OSDN Git Service

f4960d60a2f26925307f0a1eef336bd8eac282fd
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
2
3         * simplify-rtx.c (simplify_const_relational_operation): When
4         extracting arguments of a COMPARE, recompute the mode as well.
5
6 2005-08-15  Ian Lance Taylor  <ian@airs.com>
7
8         * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
9
10 2005-08-15  DJ Delorie  <dj@redhat.com>
11
12         * config/m32c/mov.md (movqi_op): Immediates can't be moved to
13         the stack.
14         (movsi_splittable): Allow, but split, moves to the stack.
15         * config/m32c/m32c.c (m32c_split_move): Always split moves to the
16         stack.
17
18 2005-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19
20         * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
21         * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
22         * system.h (HOST_PTR_PRINTF): Don't define, poison it.
23         
24         * bitmap.c, c-decl.c, config/i386/i386-interix.h,
25         config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
26         Delete HOST_PTR_PRINTF.
27
28         * configure, config.in: Regenerate.
29
30 2005-08-15  David Edelsohn  <edelsohn@gnu.org>
31
32         * config/rs6000/rs6000.md (QHSI): New mode macro.
33         (wd): Extend mode attr for QImode and HImode
34         (dbits): New mode attr.
35         (zero_extend<mode>di2): Convert to mode macro.
36
37 2005-08-15  Steve Ellcey  <sje@cup.hp.com>
38
39         PR target/21841
40         * doc/invoke.texi (-mgnu-ld): Update description.
41         (-mhp-ld): Ditto.
42
43 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
44
45         PR 23391
46         * Makefile.in (tree-chrec.o): Depends on real.h.
47         * tree-chrec.c: Include real.h.
48         (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
49         chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
50         * tree-scalar-evolution.c (add_to_evolution_1,
51         interpret_rhs_modify_expr): Ditto.
52
53 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
54
55         PR 23386
56         * tree-data-ref.c (estimate_niter_from_size_of_data): When
57         step is negative compute the estimation from init downwards to zero.
58         
59 2005-08-14  James A. Morrison  <phython@gcc.gnu.org>
60
61         * fold-const (fold_binary): Call fold_build2 instead of fold (build.
62
63 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
64
65         * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
66         constraint.
67         (legitimate_reload_constant_p): Fix handling of lliXX operands.
68         Accept double-word constants that can be split.
69         * config/s390/s390.md ("movti"): Use 'P' constraint.
70         ("*movdi_31", "*movdf_31"): Likewise.
71
72 2005-08-14  Daniel Berlin  <dberlin@dberlin.org>
73
74         Fix PR tree-optimization/22615
75         
76         * tree-ssa-structalias.c (solution_set_add): Handle
77         first_vi_for_offset returning NULL. 
78         (do_da_constraint): Ditto.
79         (do_sd_constraint): Ditto.
80         (do_ds_constraint): Ditto
81         (find_func_aliases): Ditto.
82         (build_constraint_graph): RHS is allowed be ANYTHING.
83         (first_vi_for_offset): Return NULL if we couldn't find anything at
84         the offset.
85         
86 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
87
88         * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
89         over memory as first operand.
90
91 2005-08-14  H.J. Lu  <hongjiu.lu@intel.com>
92
93         PR target/23360
94         * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
95         available for setting it.
96
97 2005-08-14  Ira Rosen  <irar@il.ibm.com>
98
99         PR tree-optimization/23320
100         * tree-data-ref.c (base_addr_differ_p): Add comment. Check 
101         data-refs' types instead of base object nullness. Add check for 
102         pointer type data-refs before first location comparison. Remove 
103         assert.
104
105 2005-08-14  Andreas Schwab  <schwab@suse.de>
106
107         * doc/md.texi (Machine Constraints): Fix misplaced @end table.
108
109 2005-08-13  James E Wilson  <wilson@specifix.com>
110
111         * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
112         * doc/invoke.texi (-Wstack-protector, -fstack-protector,
113         -fstack-protector-all, --param ssp-buffer-size): Document.
114         (-Wvariadic-macros): Alphabetize.
115         (-fsched-stalled-insns-dep): Add missing 'f'.
116
117         * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
118         macros.
119
120 2005-08-13  David Edelsohn  <edelsohn@gnu.org>
121
122         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
123         or indirect address operand.
124         (EXTRA_ADDRESS_CONSTRAINT): New.
125         * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
126
127 2005-08-13  Sebastian Pop  <pop@cri.ensmp.fr>
128
129         PR tree-optimization/22236
130         * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
131         successors and predecessors.
132         * tree-chrec.c (chrec_convert): Before converting, check that
133         sequences don't wrap.
134         * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
135         (analyze_array): Extern.
136         (find_data_references_in_loop): Remove call to
137         compute_estimated_nb_iterations.
138         * tree-data-ref.h (analyze_array): Declared.
139         * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
140         single_ssa_def_operand, zero_ssa_operands): Fix documentation.
141         * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
142         * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry 
143         condition.
144         * tree-ssa-loop-ivcanon.c: Fix documentation.
145         * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
146         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
147         (infer_loop_bounds_from_undefined): New.
148         (estimate_numbers_of_iterations_loop): Use
149         infer_loop_bounds_from_undefined.
150         (used_in_pointer_arithmetic_p): New.
151         (scev_probably_wraps_p): Pass an extra parameter.  Call
152         used_in_pointer_arithmetic_p.  Check that AT_STMT is not null.
153         (convert_step): Fix documentation.
154         * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
155         Use initial_condition_in_loop_num and evolution_part_in_loop_num
156         instead of CHREC_LEFT and CHREC_RIGHT.  Adjust the call to
157         scev_probably_wraps_p.
158
159 2005-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
160
161         * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
162         (s390_register_info): Ignore clobbered_regs information for fixed
163         registers, and only fixed registers.
164         (s390_init_frame_layout): Remove redundant call.
165
166 2005-08-12  Gerald Pfeifer  <gerald@pfeifer.com>
167
168         * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to 
169         description of -Wold-style-casts.
170
171 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
172             Jakub Jelinek  <jakub@redhat.com>
173
174         * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
175         * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
176         * config/s390/s390.c (print_operand): New output modifier 'G' added.
177         (get_thread_pointer): Renamed to s390_get_thread_pointer.
178         * config/s390/s390.md (stack_protect_set, stack_protect_test): If
179         TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
180         (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
181         (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
182         ("stack_protect_set", "stack_protect_test"): New expanders.
183         ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
184         "stack_protect_testdi"): New insn definitions.
185
186 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
187
188         * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
189
190 2005-08-12  Paul Brook  <paul@codesourcery.com>
191
192         * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
193
194 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
195
196         * config/s390/predicates.md (setmem_operand): New predicate.
197         (shift_count_operand): Accept ANDs with special constants as
198         operand.
199         * config/s390/s390.c (print_shift_count_operand): Skip ANDs
200         with special constants.
201         * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
202         shift_count_operand with setmem_operand.
203
204 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
205
206         * config/s390/s390.c (s390_extract_part, s390_single_part):
207         Type cast added.
208         (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
209         (s390_output_mi_thunk): Don't use lg on 31 bit.
210         * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
211         ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
212
213 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
214
215         * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
216         (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
217         s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
218         s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
219         with one of the new macros.
220
221 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
222
223         * config/s390/s390.c (s390_split_branches, s390_init_frame_layout): 
224         Don't set save_return_addr_p.
225         (s390_register_info): Make clobbered_regs not depending on
226         save_return_addr_p.
227
228 2005-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
229
230         * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
231         (LINK_COMMAND_SPEC): Add space after %(link_ssp).
232
233 2005-08-11  James E. Wilson  <wilson@specifix.com>
234
235         * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
236
237 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
238
239         * dwarf2out.c (add_location_or_const_value_attribute): Prefer
240         locations gathered by var-tracking in single entry loc_list
241         over loc_descriptor_from_tree.
242
243         * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
244         pass it down to loc_descriptor.
245         (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
246         (containing_function_has_frame_base): Move earlier in the file.
247         (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
248         instead of always assuming fbreg can't be used.
249
250 2005-08-11  David Edelsohn  <edelsohn@gnu.org>
251
252         * config/rs6000/altivec.md: Change constraint "m" to "Z".
253         * config/rs6000/predicates.md (indexed_or_indirect_operand):
254         Accept address wrapped in AND for Altivec.
255         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
256         Strip AND wrapping offset address for Altivec.
257
258 2005-08-11  Richard Henderson  <rth@redhat.com>
259
260         PR middle-end/23312
261         * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
262         before using TYPE_IS_SIZETYPE.
263
264 2005-08-11  Richard Henderson  <rth@redhat.com>
265
266         PR target/22225
267         * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
268         insn types not present on ev4.
269         (alphaev5_insn_pipe): Similarly.
270
271 2005-08-11  Richard Earnshaw  <richard.earnshaw@arm.com>
272
273         PR target/23250
274         * arm.c (arm_override_options): If the user has selected callee-super-
275         interworking, then enable normal interworking.
276
277 2005-08-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
278
279         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
280         redefinition.
281
282 2005-08-11  Wu Zhou  <woodzltc@cn.ibm.com>
283
284         * doc/rtl.texi: Fix two typos.
285
286 2005-08-11  Richard Guenther  <rguenther@suse.de>
287
288         PR target/23289
289         * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
290         cases where we call to/from functions returning void.
291
292 2005-08-10  James A. Morrison  <phython@gcc.gnu.org>
293
294         PR c++/23225
295         * tree.c (build_pointer_type_for_mode): Robustify.
296
297 2005-08-10  James E Wilson  <wilson@specifix.com>
298
299         * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
300         (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
301
302         * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
303         "cum->".
304
305 2005-08-10  Eric Christopher  <echristo@apple.com>
306
307         * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
308         * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
309         V2DFmode.
310
311 2005-08-10  Andrew Pinski  <pinskia@physics.uc.edu>
312
313         PR target/21887
314         * config/darwin.c (machopic_indirect_data_reference): Use a new register
315         for the high part when generating dynamic-no-pic code.
316
317 2005-08-10  H.J. Lu  <hongjiu.lu@intel.com>
318
319         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
320         (x86_64-*-linux*): Likewise.
321
322         * config/i386/crtfastmath.c: New file.
323         * config/i386/t-crtfm: Likewise.
324
325         * config/i386/linux.h (ENDFILE_SPEC): New.
326         * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
327
328         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
329         crtfastmath.o.
330
331 2005-08-10  Dorit Nuzman  <dorit@il.ibm.com>
332
333         * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
334         (vec_shl, vec_shr): Document new operations.
335         * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
336
337 2005-08-10  David Edelsohn  <edelsohn@gnu.org>
338
339         * config/rs6000/predicates.md (indexed_or_indirect_address): New.
340         * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
341         change predicate to indexed_or_indirect_address.
342
343 2005-08-10  Richard Sandiford  <richard@codesourcery.com>
344
345         * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
346         * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
347         __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
348         and __aeabi_uwrite8.
349         * config/arm/unaligned-funcs.c: New file.
350         * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
351
352 2005-08-09  Paolo Bonzini  <bonzini@gnu.org>
353
354         * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
355         Add dump.
356         * cfglayout.c (pass_insn_locators_initialize): Add dump.
357         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
358         Add dump.
359         * except.c (pass_convert_to_eh_region_ranges): Add dump.
360         * final.c (pass_shorten_branches): Add dump.
361         * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
362         (pass_life): Rename dump.
363         (rest_of_handle_flow2): Remove initial verify_flow_info.
364         * function.c (pass_instantiate_virtual_regs): Add dump.
365         * integrate.c (pass_initial_value_sets): Add dump.
366         * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
367         * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
368         (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
369         pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
370         (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
371         gate_rtl_unrool_and_peel_loops): New.
372         (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
373         rtl_doloop): Do not look at flags.
374         * mode-switching.c (pass_mode_switching): Add dump.
375         * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
376         pass_split_before_regstack): Add dump.
377         * regmove.c (pass_stack_adjustments): Add dump.
378         * tree-optimize.c (pass_fixup_cfg): Add dump.
379
380 2005-08-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
381
382         PR 23309
383         * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
384         deciding which instruction sequence to use.
385
386 2005-08-09  Dorit Nuzman  <dorit@il.ibm.com>
387
388         * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
389         BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
390
391 2005-08-09  Richard Guenther  <rguenther@suse.de>
392
393         * c-common.c (builtin_function_2): Remove.
394         (def_builtin_1): New function.
395         (c_common_nodes_and_builtins): Use def_builtin_1 to
396         build builtin functions.
397
398 2005-08-09  Jie Zhang  <jie.zhang@analog.com>
399
400         * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
401         * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
402         * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
403         Visual DSP.
404
405 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
406
407         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
408         fold_binary instead of fold_build2 since we don't care about the
409         resulting tree.
410         (loop_niter_by_eval): Likewise.
411         (compare_trees): Likewise.
412         (proved_non_wrapping_p): Likewise.
413
414 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
415
416         PR c/23161
417         PR c/23165
418         * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
419         if the if is really empty.
420
421 2005-08-09  Steven Bosscher  <stevenb@suse.de>
422
423         PR tree-optimization/23234
424         * tree-ssa-math-opts.c (place_reciprocal): New enum.
425         (execute_cse_reciprocals_1): Replace the 'phi' argument with an
426         argument of the new enum.
427         (execute_cse_reciprocals): Add reciprocals for function arguments
428         on the unique successor edge of the entry block.  Update other calls
429         to execute_cse_reciprocals_1.
430
431 2005-08-08  Richard Henderson  <rth@redhat.com>
432
433         PR 22439
434         * gimplify.c (gimplify_one_sizepos): Preserve the original type.
435
436 2005-08-08  Bob Wilson  <bob.wilson@acm.org>
437
438         * expr.c (write_complex_part): Return after handling MEM.
439
440 2005-08-08  Josh Conner  <jconner@apple.com>
441
442         PR rtl-optimization/23241
443         * combine.c (simplify_comparison): Fix error in determining
444         whether to lift a subreg from comparison.
445
446 2005-08-08  David Edelsohn  <edelsohn@gnu.org>
447
448         PR target/18506
449         * config/rs6000/altivec.md (vec_init<mode>): New.
450         (vec_set<mode>): New.
451         (vec_extract<mode>): New.
452         * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
453         (rs6000_expand_vector_set): New.
454         (rs6000_expand_vector_extract): New.
455         (rs6000_legitimate_offset_address_p): Offset addresses are valid
456         for Altivec modes before reload.
457         (altivec_expand_vec_init_builtin): New.
458         (get_element_number): New.
459         (altivec_expand_vec_set_builtin): New.
460         (altivec_expand_vec_ext_builtin): New.
461         (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
462         builtins.
463         (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
464         builtins.
465         * config/rs6000/rs6000.h (rs6000_builtins): Add
466         ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
467         ALTIVEC_BUILTIN_VEC_EXT_<mode>.
468         * config/rs6000/rs6000-protos.h: Declare new functions.
469
470 2005-08-08  Jan Hubicka  <jh@suse.cz>
471
472         * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
473         (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
474         * i386.md (movdi*): Use pic_32bit_operand.
475         * predicates.md (pic_32bit_operand): New.
476
477 2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
478
479         PR c++/21166
480         * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
481
482 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
483
484         * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
485         (test_for_singularity): Use fold_build2.
486
487 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
488
489         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
490
491 2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
492
493         * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
494         (COMMON_ASM_OP) Define.
495         * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
496         (ix86_encode_section_info): Likewise.
497         (TARGET_ENCODE_SECTION_INFO): Conditionally define as
498         SUBTARGET_ENCODE_SECTION_INFO.
499
500 2005-08-06  Richard Henderson  <rth@redhat.com>
501
502         PR 21894
503         * tree-nested.c (convert_local_reference): Save and restore val_only
504         around component_ref and friends.  Clear walk_subtrees by default.
505
506 2005-08-06  Peter O'Gorman  <peter@pogma.com>
507
508         PR 21366
509         * gcc.c (process_command): Check the argument to -b has a dash.
510         * doc/invoke.texi: Update -b and -V docs.
511
512 2005-08-06  James E Wilson  <wilson@specifix.com>
513
514         * config/mips/cross64.h, config/mips/t-cross64: Delete.
515
516 2005-08-06  Michael Matz  <matz@suse.de>
517
518         * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
519         member only if only one insn is associated with the value.
520
521 2005-08-06  Nick Clifton  <nickc@redhat.com>
522
523         * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
524         New define.
525         (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
526         * config/stormy16/stormy16.c (xstormy16_below100_symbol):
527         Check symbol flags instead of symbol name mangling.
528         (xstormy16_asm_output_aligned_common): Likewise.  Also
529         simplify code since the bss100_section cass is the only case
530         where the below100 code will be triggered.
531         (xstormy16_encode_section_info): Encode below100 attribute
532         using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
533         the name.
534         (xstormy16_strip_name_encoding): Delete - this function is no
535         longer needed.
536         (TARGET_STRIP_NAME_ENCODING): Undefine.
537         * config/stormy16/stormy16-protos.h: Delete prototype for
538         xstormy16_strip_name_encoding.
539
540 2005-08-06  Kazu Hirata  <kazu@codesourcery.com>
541
542         * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
543         config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
544         tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
545         config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
546         config/alpha/predicates.md, config/arc/arc.h,
547         config/arm/arm.h, config/arm/ieee754-df.S,
548         config/arm/ieee754-sf.S, config/bfin/bfin.c,
549         config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
550         config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
551         config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
552         config/m68hc11/m68hc11.h, config/mips/mips.c,
553         config/mips/mips.h, config/mips/openbsd.h,
554         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
555         config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
556         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
557         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
558         config/sparc/linux.h, config/sparc/linux64.h,
559         config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
560         doc/extend.texi, doc/gcov.texi, doc/install.texi,
561         doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
562         typos.  Follow spelling conventions.
563
564 2005-08-06  Joseph S. Myers  <joseph@codesourcery.com>
565
566         PR c/23113
567         * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
568         Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
569         specially.  Check for side effects only for COND_EXPR.
570         * c-typeck.c (c_finish_stmt_expr): Mark statement expression
571         return with TREE_NO_WARNING.
572
573 2005-08-06  Richard Sandiford  <richard@codesourcery.com>
574
575         PR rtl-optimization/23233
576         * loop.c (combine_movables): Require the modes to be the same.
577         (move_movables): Remove handling of cases where the replacement
578         had a different mode to the original.
579
580 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
581
582         PR tree-optimization/23128
583         * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
584         subtraction wrap, and set TREE_OVERFLOW if they do.
585
586 2005-08-05  Richard Henderson  <rth@redhat.com>
587
588         PR 21728
589         * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
590         FORCED_LABEL labels.
591
592 2005-08-05  J"orn Rennecke <joern.rennecke@st.com>
593
594         PR middle-end/23135
595         * reload.c (find_reloads_subreg_address): Pass down TYPE
596         unchanged.  Change all callers except find_reloads_toplev.
597
598 2005-08-05  Michael Matz  <matz@suse.de>
599
600         * genattrtab.c (current_alternative_string): Remove.
601         (SIMPLIFY_ALTERNATIVE): Ditto.
602         (attr_alt_bit_p): Ditto.
603         (alternative_name): Make const char *.
604         (evaluate_eq_attr): Remove use of above things.
605         (simplify_test_exp): Ditto.
606         (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
607         (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
608
609 2005-08-04  James E Wilson  <wilson@specifix.com>
610
611         * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
612         config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
613         config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
614         config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
615         (LINK_SPEC): Delete useless %{Wl,*:%*} item.
616
617 2005-08-04  Richard Henderson  <rth@redhat.com>
618
619         PR 21529
620         * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
621         * params.h (SRA_MAX_STRUCTURE_COUNT): New.
622         * tree-sra.c (decide_block_copy): Use it.  Disable element copy
623         if we'd have to instantiate too many members.
624
625 2005-08-04  Richard Henderson  <rth@redhat.com>
626
627         PR 21291
628         * tree-outof-ssa.c (coalesce_asm_operands): New.
629         (coalesce_ssa_name): Use it.  Split out ...
630         (coalesce_phi_operands, coalesce_result_decls): ... these.
631
632 2005-08-04  Paul Brook  <paul@codesourcery.com>
633
634         * read-rtl.c (read_quoted_string): Break if EOF.
635
636 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
637
638         * tree.h (fold_build1): Change to macro and call fold_build1_stat.
639         (fold_build2): Likewise.
640         (fold_build3): Likewise.
641         (fold_build1_stat): New function prototype.
642         (fold_build2_stat): Likewise.
643         (fold_build3_stat): Likewise.
644         * fold-const.c (fold_build1): Rename to ..
645         (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
646         through to build1_stat.
647         (fold_build2): Rename to ..
648         (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
649         through to build2_stat.
650         (fold_build3): Rename to ..
651         (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
652         through to build3_stat.
653
654 2005-08-04  David Edelsohn  <edelsohn@gnu.org>
655             Ian Lance Taylor  <ian@airs.com>
656
657         * function.c (assign_stack_local_1): Do not correct stack slot
658         address if allocation size is smaller than mode size.
659
660 2005-08-04  Diego Novillo  <dnovillo@redhat.com>
661
662         PR 22037
663         * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
664         (tree_merge_blocks): Propagate anything allowed by
665         may_propagate_copy.
666         Clarify documentation.
667         * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
668         SSA form, schedule an update if necessary.
669
670 2005-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
671
672         * doc/install.texi (Binaries): Remove broken link to
673         Sinix/Reliant Unix binaries.
674
675 2005-08-03  Richard Henderson  <rth@redhat.com>
676
677         PR 23221
678         * function.c (stack_protect_epilogue): Export.
679         * tree.h (stack_protect_epilogue): Declare.
680         * calls.c (expand_call): Call it.
681
682 2005-08-03  Eric Christopher  <echristo@apple.com>
683
684         * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
685         * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
686         spec.
687
688 2005-08-04  Jan Hubicka  <jh@suse.cz>
689
690         * profile.c (branch_prob): Split edges with goto locus on them
691         to get proper line counts.
692         * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
693
694 2005-08-03  Paul Brook  <paul@codesourcery.com>
695
696         * function.c (assign_parms): Round current_function_args_size
697         to PARM_BOUNDARY, not STACK_BOUNDARY.
698
699 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
700
701         * config/i386/i386.c (x86_elf_aligned_common)
702         (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
703
704 2005-08-03  Zdenek Dvorak  <dvorakz@suse.cz>
705
706         PR tree-optimization/23157
707         * tree-scalar-evolution.c (scev_const_prop): Unshare trees
708         before emitting them.
709
710 2005-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
711
712         PR tree-optimization/19899
713         * Makefile.in (tree-scalar-evolution.o): Add real.h.
714         * tree-scalar-evolution.c: Include real.h.
715         (add_to_evolution): Build constant -1 of correct type.
716
717 2005-08-03  Jan Hubicka  <jh@suse.cz>
718
719         * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
720         * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
721         profile updating for complette unrolling.
722         * loop-unroll.c (peel_loop_completely): Use it.
723         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
724         (tree_unroll_loops_completely): Disable code growing unrolling of cold
725         loops.
726
727 2005-08-03  Paul Brook  <paul@codesourcery.com>
728
729         * combine.c (can_change_dest_mode): New function.
730         (try_combine, simplify_set): Use it.
731
732 2005-08-03  Eric Botcazou  <ebotcazou@adacore.com>
733
734         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
735         TFmode to BLKmode.
736
737 2005-08-03  Gerald Pfeifer  <gerald@pfeifer.com>
738
739         * doc/install.texi (Specific): Adjust link to openavr.org.
740         (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
741         (Binaries): Adjust HP-UX Porting Center link.
742         (Binaries): Adjust Free Software Foundation ordering link.
743
744 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
745
746         * convert.c (convert_to_integer): Use fold_build1 instead of
747         build1 when converting an integer to an integer.
748
749 2005-08-02  Richard Henderson  <rth@redhat.com>
750
751         * combine.c (combine_instructions): Don't use reg_equal/equiv
752         results if the mode doesn't match.
753
754 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
755
756         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
757         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
758
759 2005-08-02  Richard Henderson  <rth@redhat.com>
760
761         PR 23196
762         * explow.c (memory_address): Remove special-case for
763         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
764
765 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
766
767         PR 23164
768         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
769         number of calls to cleanup_tree_cfg_1.
770
771 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
772
773         * doc/invoke.texi: document file extensions .F90 and .F95
774
775 2005-08-02  Richard Guenther  <rguenther@suse.de>
776
777         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
778         positive if its first argument is positive.
779
780 2005-08-02  Richard Guenther  <rguenther@suse.de>
781
782         PR tree-optimization/23177
783         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
784         on TMR_TAG.
785
786 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
787
788         PR tree-optimization/23129
789         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
790         varying for divisions with anti-ranges.
791
792 2005-08-02  Jan Hubicka  <jh@suse.cz>
793
794         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
795         * tree-ssa-threadupdate.c (thread_block): Add it here.
796
797 2005-08-01  James E Wilson  <wilson@specifix.com>
798
799         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
800         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
801         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
802         New.
803         * config/mips/predicates.md (const_call_insn_operand): Add check for
804         SYMBOL_REF_LONG_CALL_P.
805         * doc/extend.texi (long_call): Document the new attribute.
806
807 2005-08-01  Ian Lance Taylor  <ian@airs.com>
808             Richard Henderson  <rth@redhat.com>
809
810         * Makefile.in (RTL_BASE_H): Add real.h.
811         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
812         instead of memcpy.
813         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
814         directly.
815         * rtl.c (rtl_check_failed_code_mode): New.
816         * rtl.h (struct rtx_def): Add u.rv.
817         (XCMWINT, XCNMPRV): New.
818         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
819         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
820
821 2005-08-01  Richard Henderson  <rth@redhat.com>
822
823         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
824         with auto-inc codes.
825
826         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
827
828 2005-08-01  Jan Hubicka  <jh@suse.cz>
829
830         * i386-protos.h (asm_preferred_eh_data_format): Declare.
831         * i386.c: Include dwarf2.h
832         (asm_preferred_eh_data_format): New.
833         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
834
835 2005-08-01  Ian Lance Taylor  <ian@airs.com>
836
837         * config/host-linux.c (linux_gt_pch_get_address): Add new name
838         randomize_va_space for virtual address randomization control.
839
840 2005-08-01  Steven Bosscher  <stevenb@suse.de>
841
842         * common.opt (flag_ipa_cp): Put in right place to maintain
843         alphabetic sort.
844
845 2005-08-01  Jan Hubicka  <jh@suse.cz>
846
847         * profile.c (compute_value_histograms): Fix thinko.
848         * value-prof.c: Include toplev.h
849         (check_counter): New function.
850         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
851         tree_mod_subtract_transform): Add sanity check.
852
853 2005-08-01  Richard Guenther  <rguenther@suse.de>
854
855         PR tree-optimization/23133
856         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
857         current functions parameter decls to find defs to cse
858         reciprocals of.
859
860 2005-08-01  Richard Guenther  <rguenther@suse.de>
861
862         PR tree-optimization/23109
863         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
864         If trapping math is in effect, use post-dominator information
865         to check if we'd in any case reach a trapping point before
866         doing the reciprocal insertion.
867         (execute_cse_reciprocals): Compute post-dominators, if necessary.
868         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
869         expressions are invariant only if trapping math is not in effect.
870
871 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
872
873         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
874         cgraph_function_versioning): New declarations.
875         * cgraphunit.c: Add include to ipa-prop.h.
876         (update_call_expr, cgraph_copy_node_for_versioning,
877         cgraph_function_versioning): New functions.
878         * integrate.c (copy_decl_for_inlining): Remove.
879         * ipa-prop.h (ipa_replace_map): New struct.
880         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
881         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
882         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
883         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
884         ipcp_iterate_stage, ipcp_method_scale_print,
885         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
886         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
887         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
888         ipcp_update_bb_counts, ipcp_update_profiling,
889         ipcp_update_edges_counts): New functions.
890         (ipcp_method_cval_init): Remove restriction regarding local methods.
891         (ipcp_init_stage): Add ipcp_method_compute_scale.
892         (ipcp_insert_stage): Add versioning.
893         (ipcp_structures_print): Add ipcp_method_scale_print.
894         (ipcp_driver): Dump profiling info.
895         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
896         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
897         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
898         (struct inline_data): Add versioning_p, ipa_info, new fields.
899         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
900         declare_return_variable): Replace calls to copy_decl_for_inlining with
901         copy_decl_for_dup.
902         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
903         versioning support.
904         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
905         Add argument VERSIONING.
906         (copy_arguments_for_versioning, copy_static_chain,
907         function_versionable_p, tree_versionable_function_p,
908         tree_function_versioning, replace_ref_tree): New functions.
909         * tree-inline.h: Include varray.h.
910         (tree_versionable_function_p,  tree_function_versioning,
911         tree copy_decl_for_dup): New declarations.
912
913 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
914
915         * ipa-cp.c: New file. Contains IPCP specific functionality.
916         * ipa-prop.h: New file. Contains structures/definitions that can be
917         used by several interprocedural data flow optimizations (and also IPCP).
918         * ipa-prop.c: New file.
919         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
920         * common.opt: Add ipa-cp flag.
921         * timevar.def: Add IPCP optimization.
922         * tree-optimize.c (init_tree_optimization_passes): Schedule
923         pass_ipa_cp.
924         * tree-pass.h (pass_ipa_cp): Declare.
925
926 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
927
928         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
929         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
930         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
931         config/i386/i386.c, config/mips/mips.h,
932         config/rs6000/rs6000.h, config/sh/sh.c,
933         config/stormy16/stormy16.c: Fix comment typos.
934
935 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
936
937         PR c/22311
938         * c-typeck.c (build_binary_op): Use common_type wrapper on
939         shortened types.
940         (common_type): Update comment.
941
942 2005-07-31  Steven Bosscher  <stevenb@suse.de>
943
944         PR target/23095
945         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
946         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
947         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
948
949 2005-07-31  Jan Hubicka  <jh@suse.cz>
950
951         * pretty-print.h (pp_widest_integer): New macro.
952         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
953         counts.
954
955 2005-07-31  Jan Hubicka  <jh@suse.cz>
956
957         * output.h (enum section_category): Export from varasm.c
958         (categorize_decl_for_section): Likewise.
959         * varasm.c (enum section_category): Kill.
960         (categorize_decl_for_section): Make global.
961         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
962         Declare.
963         * i386.c (ix86_section_threshold): New static variable.
964         (ix86_in_large_data_p, ix86_encode_section_info,
965         x86_64_elf_unique_section,
966         x86_64_elf_select_section): New functions.
967         (TARGET_ENCODE_SECTION_INFO): Define
968         (override_options): Enable medium model for PIC.
969         (ix86_expand_prologue): Expand gen_set_got_rex64.
970         (legitimate_constant_p): Handle new UNSPECs.
971         (legitimate_pic_address_disp_p): Likewise.
972         (legitimize_pic_address): Lower MEDIUM model addressing.
973         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
974         (enum cmodel): Add MEDIUM_PIC.
975         (SYMBOL_REF_FAR_ADDR_P): New macro.
976         (SYMBOL_FLAG_FAR_ADDR): New flag.
977         * i386.md (movdi): Support medium model.
978         (set_got_rex64): New pattern.
979         * i386.opt (mlarge-data-threshold): New flag.
980         * predicates.md (zext_operand/sext_operand): Deal with medium model.
981         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
982         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
983         TARGET_ASM_UNIQUE_SECTION): New.
984
985         * invoke.texi (-mlarge_data_threshold): Document
986
987 2005-07-31  Jan Hubicka  <jh@suse.cz>
988
989         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
990         (coalesce_vars): Likewise.
991         * tree-ssa-live.c (coalesce_cost): New.
992         (build_tree_conflict_graph): Use coalesce_cost.
993         * tree-ssa-live.h (coalesce_cost): Declare.
994
995 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
996
997         * arm.md (all peepholes for post-increment operations): Delete.
998         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
999         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
1000         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
1001         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
1002         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
1003
1004 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
1005
1006         * fold-const.c (tree_expr_nonnegative_p): Always return true for
1007         non-integral types.
1008
1009 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
1010
1011         PR target/22582
1012         * doc/invoke.texi: Document -rdynamic.
1013
1014 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
1015
1016         PR c/23143
1017         * c-parser.c (c_parser_parms_list_declarator): Call
1018         mark_forward_parm_decls.
1019         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
1020         decls with visibility structure.
1021
1022 2005-07-30  Paul Brook  <paul@codesourcery.com>
1023
1024         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
1025
1026 2005-07-30  Paul Brook  <paul@codesourcery.com>
1027
1028         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
1029         prototype.
1030         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
1031         value for mode.
1032         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
1033
1034 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
1035
1036         PR c/529
1037         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
1038         nested function declarators.
1039         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
1040         (grokparms): Call warn_if_shadowing for parameters used within the
1041         parameter list.
1042         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
1043         not used within the parameter list.
1044         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
1045
1046 2005-07-30  Jan Hubicka  <jh@suse.cz>
1047
1048         * expr.c (expand_expr_real_1): Do not load mem targets into register.
1049         * i386.c (ix86_fixup_binary_operands): Likewise.
1050         (ix86_expand_unary_operator): Likewise.
1051         (ix86_expand_fp_absneg_operator): Likewise.
1052         * optabs.c (expand_vec_cond_expr): Validate dest.
1053
1054 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
1055
1056         PR c/21720
1057         * real.c (real_from_string): Also set last bit if there is a
1058         nonzero hex digit beyond GCC's internal precision after ".".
1059
1060 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
1061
1062         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
1063         define_constants.  Change duplicate values to unassigned numbers.
1064         Change UNSPEC_SUBS to UNSPEC_VSUBS.
1065         (*altivec_vspltsf): New.
1066         (altivec_vperm_v4sf): Delete.
1067         (altivec_vperm_<mode>): Use mode macro V.
1068         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
1069         (altivec_predicate_v4sf): Delete.
1070         (altivec_predicate_<mode>): Use mode macro V.
1071         (*altivec_lvesfx): New.
1072         (*altivec_stvesfx): New.
1073         (vec_realign_load_v4sf): Delete.
1074         (vec_realign_load_<mode>): Use mode macro V.
1075         * config/rs6000/rs6000.c (generate_set_vrsave): Use
1076         UNSPECV_SET_VRSAVE.
1077
1078 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
1079
1080         PR bootstrap/23131
1081         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
1082         string.
1083         * configure: Regenerated.
1084
1085 2005-07-29  Paul Brook  <paul@codesourcery.com>
1086
1087         * doc/install.texi: Add link to GFortran binaries wiki page.
1088
1089 2005-07-29  David Ung  <davidu@mips.com>
1090
1091         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
1092         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
1093         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
1094         * config/mips/mips.md (cpu): Add 5kf name.
1095         (includes): Includes 5k.md.
1096         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
1097         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
1098         -march flag.
1099
1100 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
1101
1102         PR 22550
1103         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
1104         (cleanup_tree_cfg): ... here.
1105         Call cleanup_tree_cfg_1 until there are no more cleanups to
1106         do.
1107
1108 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
1109
1110         * tree-vrp.c (compare_range_with_value): Return true or false
1111         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
1112         EQ_EXPR respectively.
1113
1114 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
1115
1116         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
1117         Fix comment typos.
1118
1119 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
1120
1121         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
1122         (tree_ssa_dominator_optimize): Increment it.
1123         (dump_dominator_optimization_stats): Print it.
1124
1125 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
1126             Steven Bosscher  <stevenb@suse.de>
1127
1128         PR rtl-optimization/23117
1129         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
1130         when head == tail.  Tidy comment.
1131
1132 2005-07-28  Richard Henderson  <rth@redhat.com>
1133
1134         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
1135         * cselib.c (rtx_equal_for_cselib_p): Likewise.
1136         * jump.c (rtx_renumbered_equal_p): Likewise.
1137         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
1138         CONST_INT and CONST_DOUBLE.
1139         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
1140         * reload.c (operands_match_p): Special case CONST_INT and
1141         CONST_DOUBLE; check mode earlier.
1142
1143 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
1144
1145         PR c/22240
1146         * c-typeck.c (convert_for_assignment): Do not check
1147         DECL_IN_SYSTEM_HEADER on NULL fundecl.
1148
1149 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
1150
1151         PR c/22192
1152         * c-typeck.c (composite_type): Prefer constant size arrays to
1153         VLAs.
1154
1155 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
1156
1157         PR c/21720
1158         * real.c (real_from_string): Set last bit if there is a nonzero
1159         hex digit beyond GCC's internal precision.
1160
1161 2005-07-28  Richard Henderson  <rth@redhat.com>
1162
1163         PR rtl-opt/22619
1164         * cfgcleanup.c (try_forward_edges): Watch out for end of
1165         insn chain.
1166
1167 2005-07-28  James E Wilson  <wilson@specifixinc.com>
1168
1169         PR c/23106
1170         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
1171
1172 2005-07-28  Jan Hubicka  <jh@suse.cz>
1173
1174         * Makefile.in (rtl-profile.o): Kill all traces of it.
1175         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
1176         * coverage.h (rtl_coverage_counter_ref): Kill.
1177         * opts.c (flag_speculative_prefetching_set): Kill.
1178         (flag_loop_optimize_set): New.
1179         (common_handle_option): Disable loop optimizer when profiling;
1180         do not handle speculative prefetching.
1181         * passes.c (init_optimization_passes): Replace pass_profiling combo
1182         by branch_prob pass.
1183         * profile.c (compute_value_histograms): Update for simplified value
1184         profiles.
1185         (rtl_register_profile_hooks): Kill.
1186         (pass_profiling): Kill.
1187         (rest_of_handle_branch_prob): Do not profile.
1188         * toplev.c (process_options): Remove speculative prefetching.
1189         * toplev.h (flag_tree_based_profiling): Kill.
1190         * tree-profile.c (prepare_instrumented_value,
1191         tree_gen_interval_profiler, tree_gen_pow2_profiler,
1192         tree_gen_one_value_profiler, do_tree_profiling): Update for
1193         simplified datastructures.
1194         * value-prof.c: Add comment that speculative prefetching was dropped;
1195         update rest of file for simplified datastructures.
1196         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
1197         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
1198         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
1199         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
1200         rtl_mod_subtract, gen_speculative_prefetch,
1201         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
1202         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
1203         (gate_handle_value_profile_transformations,
1204         rest_of_handle_value_profile_transformations,
1205         pass_value_profile_transformations): Kill.
1206         * value-prof.h (histogram_value_t): Remove IL based unions.
1207         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
1208         rtl_profile_hooks): Remove hooks.
1209
1210         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
1211
1212         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
1213         (cgraph_clone_node): Likewise.
1214         * cgraph.h (cgraph_clone_edge): Update prototype.
1215         (cgraph_clone_node): Likewise.
1216         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
1217         cgraph_clone_node.
1218         (lookup_recursive_calls): Consider profile.
1219         (cgraph_decide_recursive_inlining): Fix updating; use new
1220         probability argument; use profile.
1221         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
1222         * tree-inline.c (copy_bb): Update clal of clone_edge.
1223         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
1224
1225         * invoke.texi (min-inline-recursive-probability): Document.
1226
1227 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
1228
1229         * doc/install.texi (Configuration): Update Valgrind homepage.
1230
1231 2005-07-28  Richard Henderson  <rth@redhat.com>
1232
1233         PR middle-end/21362
1234         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
1235         labels we want to delete.
1236         (cfg_layout_merge_blocks): Likewise.
1237
1238 2005-07-28  Richard Henderson  <rth@redhat.com>
1239
1240         PR target/17692
1241         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
1242         when expanding to nothing.
1243
1244 2005-07-28  Josh Conner  <jconner@apple.com>
1245
1246         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
1247         (cgraph_decide_inlining_of_small_functions): Likewise.
1248
1249 2005-07-28  Josh Conner  <jconner@apple.com>
1250
1251         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
1252         direction of badness if negative.
1253         (cgraph_default_inline_p): Add reason to parameters, and assign it
1254         a value.
1255         (cgraph_decide_inlining_of_small_functions): New parameter in call
1256         to cgraph_default_inline_p.
1257         (cgraph_decide_inlining_incrementally): Likewise.
1258         * cgraphunit.c (decide_is_function_needed): Likewise.
1259         * cgraph.h (cgraph_default_inline_p): Likewise.
1260
1261 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1262
1263         * builtins.c: Fix comment typo(s).
1264         * genautomata.c: Likewise.
1265         * gimplify.c: Likewise.
1266         * tree-dfa.c: Likewise.
1267         * tree-flow-inline.h: Likewise.
1268         * tree-into-ssa.c: Likewise.
1269         * tree-ssa-alias.c: Likewise.
1270         * tree-ssa-ccp.c: Likewise.
1271         * tree-ssa-copy.c: Likewise.
1272         * tree-ssa-dce.c: Likewise.
1273         * tree-ssa-dom.c: Likewise.
1274         * tree-ssa-operands.c: Likewise.
1275         * tree-tailcall.c: Likewise.
1276         * tree-vectorizer.c: Likewise.
1277         * tree-vrp.c: Likewise.
1278         * tree.c: Likewise.
1279
1280 2005-07-28  Jeff Law  <law@redhat.com>
1281
1282         * tree-vrp.c (test_for_singularity): Extracted from  ...
1283         (simplify_cond_using_ranges): Attempt to simplify a relational
1284         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
1285
1286 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
1287
1288         PR tree-optimization/22506
1289         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
1290         phis whose argument is constant.
1291
1292 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
1293
1294         PR rtl-optimization/18992
1295         Back out this patch:
1296           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1297           PR optimization/12142
1298           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
1299           uses of the register in the SET_SRC.  Remove unnecessary argument.
1300
1301         Replace it with this:
1302         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
1303         if flag_non_call_exceptions is set and the insn may trap, pass
1304         pc_rtx as dest for recursion.
1305         In SET_SRC part of SET case, if dest is already set, pass it down
1306         unchanged.
1307
1308 2005-07-28  Jan Hubicka  <jh@suse.cz>
1309
1310         * cfg.c (update_bb_profile_for_threading): Use RDIV.
1311         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
1312         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
1313         roundoff errors.
1314         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
1315         profile when available.
1316
1317 2005-07-28  Jan Beulich <jbeulich@novell.com>
1318
1319         * config/ia64/ia64.c (ia64_load_pair_ok): New.
1320         (ia64_print_operand): Describe and handle 'X'.
1321         (ia64_register_move_cost): Also handle FP_REGS.
1322         (ia64_preferred_reload_class): Likewise.
1323         (ia64_secondary_reload_class): Likewise.
1324         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
1325         it. Also check for ITANIUM_CLASS_FLDP.
1326         * config/ia64/ia64.h (FP_REGNO_P): New.
1327         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
1328         (reg_class): Add FP_REGS.
1329         (REG_CLASS_NAMES): Adjust for it.
1330         (REG_CLASS_CONTENTS): Likewise.
1331         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
1332         (REG_CLASS_FROM_LETTER): Handle 'x'.
1333         (CLASS_MAX_NREGS): Handle FP_REGS.
1334         (MEMORY_MOVE_COST): Likewise.
1335         * config/ia64/ia64.md (itanium_class): Add fldp.
1336         (type): Handle fldp.
1337         (movti_internal): More allowable operand combinations. Use ldfp8 when
1338         splitting unnecessary. Remove predicable attribute. Adjust
1339         itanium_class attribute.
1340         (smuldi3_highpart): Remove outdated comment.
1341         (mulditi3, umulditi3, rotlti3): New expanders.
1342         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
1343         (absti2): Disabled new insn for future reference.
1344         Respective new splitters.
1345         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
1346         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
1347         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
1348
1349 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
1350
1351         PR rtl-optimization/23047
1352         * simplify-rtx.c (simplify_const_relational_operation): Respect
1353         flag_wrapv for comparisons with ABS.
1354
1355 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
1356
1357         PR tree-optimization/22493
1358         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
1359         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
1360
1361 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
1362
1363         * config/frv/frv.opt (moptimize-membar): New.
1364
1365         * doc/invoke.texi: Document -moptimize-membar and its inverse.
1366
1367         * config/frv/frv.h: Remove machine_function definition.
1368
1369         * config/frv/frv.c (struct frv_io): New.
1370         (struct machine_function): Moved from frv.h.  Add has_membar_p.
1371         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
1372         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
1373         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
1374         (frv_optimize_membar_global, frv_optimize_membar): New functions.
1375         (frv_reorg): Call frv_optimize_membar when appropriate.
1376         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
1377         (frv_expand_builtin): Adjust calls accordingly.
1378         (frv_io_address_cookie): New function.
1379         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
1380         load or store rather than a special insn.  Add ccnstant address and
1381         io-type operands to the membar.
1382         (frv_ifcvt_modify_tests): Unsign regno.
1383         (frv_ifcvt_modify_tests): Same.
1384
1385         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
1386         UNSPEC_OPTIONAL_MEMBAR constant.
1387         (builtin_read_<mode>): Delete.
1388         (builtin_write_<mode>): Delete.
1389         ("optional_membar_<mode>"): Add operand.
1390
1391         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
1392         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
1393         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
1394         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
1395         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
1396         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
1397         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
1398         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
1399         * testsuite/gcc.target/frv/all-read-write-1.c: New.
1400
1401 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
1402
1403         * df.c (df_uses_record): Handle SCRATCH.
1404
1405 2005-07-28  Steven Bosscher  <stevenb@suse.de>
1406
1407         PR debug/20161
1408         * passes.c (rest_of_decl_compilation): If decl is a type and
1409         we have encountered errors, don't emit debug information.
1410
1411 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
1412
1413         * params.def: Fixed comment.
1414
1415 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
1416
1417         PR target/19885
1418         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
1419         (TARGET_ASM_UNALIGNED_HI_OP): Add.
1420         (TARGET_ASM_UNALIGNED_SI_OP): Add.
1421
1422 2005-07-27  Steven Bosscher  <stevenb@suse.de>
1423
1424         PR c++/22003
1425         * varasm.c (assemble_start_function): Don't do anything that may
1426         require a CFG if the current function is a thunk.
1427
1428 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
1429
1430         * doc/install.texi (Prerequisites): Mention that perl is needed
1431         to do export control in libstdc++ targetting Darwin.
1432
1433 2005-07-27  Steven Bosscher  <stevenb@suse.de>
1434
1435         PR rtl-optimization/17808
1436         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
1437         (sched_insns_conditions_mutex_p): Split out from...
1438         (add_dependence): ...here.  But don't call it from here.
1439         (add_dependence_list): Check sched_insns_conditions_mutex_p
1440         before calling add_dependence.
1441         (add_dependence_list_and_free): Likewise.
1442         (fixup_sched_groups): Likewise.
1443         (sched_analyze_1): Likewise.
1444         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
1445         (sched_analyze): Likewise.
1446         (sched_analyze_insn): Likewise.
1447         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1448         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
1449         dependencies on all COND_EXEC insns to jumps ending basic blocks
1450         when doing intrablock scheduling.
1451         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
1452
1453 2005-07-27  Jeff Law  <law@redhat.com>
1454
1455         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
1456         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
1457         equivalency sets, correctly handle the case were vr0 has an
1458         equivalency set, but vr1 does not.
1459
1460 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
1461
1462         PR tree-optimization/23073
1463         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
1464         vect_print_dump_info before fprintf.
1465
1466 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
1467
1468         PR tree-optimize/22348
1469         * tree-ssa-loop-niter.c (number_of_iterations_cond):
1470         Fold the partial computation.
1471
1472 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
1473
1474         PR tree-optimization/22325
1475         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
1476         Declare.
1477         * tree-scalar-evolution.c (scev_const_prop): Add generic final
1478         value replacement.
1479         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
1480         (force_var_cost): ... this function.
1481         (compute_phi_arg_on_exit): Export.
1482
1483 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
1484
1485         PR tree-optimization/20773
1486         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
1487         edge.
1488
1489 2005-07-27  Richard Guenther  <rguenther@suse.de>
1490
1491         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
1492         Avoid pushing again if current struct contains only
1493         fields we decomposed.
1494
1495 2005-07-27  Jan Hubicka  <jh@suse.cz>
1496
1497         PR tree-optimization/22574
1498         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
1499         not available.
1500
1501         * tree-tailcall.c (decrease_profile): New function.
1502         (eliminate_tail_call): Use it.
1503
1504         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
1505         visibility flags correctly in whole program mode.
1506
1507 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
1508
1509         PR rtl-optimization/22472
1510         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
1511
1512 2005-07-26  Steven Bosscher  <stevenb@suse.de>
1513
1514         PR tree-optimization/22504
1515         * tree-complex.c (expand_complex_addition): Use 'code' instead
1516         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
1517
1518 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
1519
1520         * config.gcc (cpu_type): Add frv case.
1521         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
1522         (supported_defaults): Add fr550 case.
1523
1524 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
1525
1526         PR 22591
1527         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
1528         whether a pointer of type T * may point to objects of type T *.
1529
1530 2005-07-26  DJ Delorie  <dj@redhat.com>
1531
1532         * configure: Regenerate.
1533
1534 2005-07-26  Dale Johannesen  <dalej@apple.com>
1535
1536         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
1537
1538 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
1539
1540         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
1541         Clarify use of "build" in name.
1542
1543 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
1544
1545         * doc/extend.texi (Raw read/write Functions): New section.
1546         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
1547         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
1548         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
1549         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
1550         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
1551         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
1552         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
1553         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
1554         * config/frv/frv.c: Add bdesc_loads global.
1555         Add bdesc_stores global.
1556         (frv_init_builtins): Add support for __builtin_{read/write}*.
1557         (frv_volatile_memref): New.
1558         (frv_expand_load_builtin): New.
1559         (frv_expand_store_builtin): New.
1560         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
1561         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
1562         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
1563         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
1564         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
1565         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
1566         (builtin_read_<mode>): New.
1567         (builtin_write_<mode>): New.
1568         (builtin_write64): New.
1569         (optional_membar_<mode>): New.
1570
1571 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
1572
1573         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
1574         (rather than units) against HOST_BITS_PER_WIDE_INT.
1575
1576 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
1577
1578         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
1579         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
1580         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
1581         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
1582         FSF address.
1583
1584         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
1585         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
1586         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
1587         comment typos.
1588         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
1589
1590 2005-07-26  Richard Guenther  <rguenther@suse.de>
1591
1592         PR tree-optimization/22486
1593         * fold-const.c (fold_unary): Fold away useless component
1594         references of the form (T *)&T.x, if the address
1595         doesn't change.
1596
1597 2005-07-25  James E Wilson  <wilson@specifixinc.com>
1598
1599         * dwarf2out.c (add_call_src_coords_attributes): New.
1600         (gen_inlined_subroutine_die): Call it.
1601         (maybe_emit_file, init_file_table): Add comments.
1602         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
1603         maybe_emit_file.
1604         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
1605         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
1606         * tree.h (BLOCK_SOURCE_LOCATION): New.
1607         (struct tree_block): New field locus.
1608
1609 2005-07-26  Andreas Schwab  <schwab@suse.de>
1610
1611         PR rtl-optimization/23043
1612         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
1613         when allocating a struct unoccr.
1614
1615 2005-07-25  Richard Henderson  <rth@redhat.com>
1616
1617         PR 22626
1618         * tree-complex.c (gate_no_optimization): True if errors.
1619         * Makefile.in (tree-complex.o): Update dependencies.
1620
1621 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
1622
1623         * config/frv/predicates.md (integer_register_operand): Use
1624         GPR_AP_OR_PSEUDO_P.
1625
1626 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
1627
1628         PR tree-opt/22484
1629         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
1630         after fold.
1631         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
1632
1633 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
1634
1635         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
1636         types when flag_unsafe_math_optimizations is true.
1637
1638 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
1639
1640         * gcc.c (option_map): Add --sysroot.
1641         (process_command): Handle --sysroot.
1642         (display_help): Document it.
1643         * doc/cppopts.tex (-isysroot): Document.
1644         * doc/invoke.texi (--sysroot): Document.
1645         * doc/install.texi (--with-build-sysroot): Document.
1646
1647         * Makefile.in (inhibit_libc): New variable.
1648         (INHIBIT_LIBC_CFLAGS): Likewise.
1649         (LIBGCC2_CFLAGS): Include
1650         $(INHIBIT_LIBC_CFLAGS).
1651         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
1652         ($(T)crtbegin.o): Do not use @inhibit_libc@.
1653         ($(T)crtend.o): Likewise.
1654         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
1655         ($(T)crtendS.o): Likewise.
1656         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
1657         ($(T)crtendT.o): Likewise.
1658         (stmp-fixinc): Do not complain about missing headers if
1659         inhibit_libc.
1660         * configure.ac (inhibit_libc): Set it to true/false.
1661         (--with-build-sysroot): New option.  Use it to set
1662         SYSTEM_HEADER_DIR.
1663         * configure: Regenerated.
1664
1665 2005-07-25  Manfred Hollstein  <mh@suse.com>
1666
1667         * calls.c (store_one_arg): Fix unsigned comparison warning.
1668
1669 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
1670
1671         PR other/22337
1672         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
1673         (ggc_print_statistics): Initialize variable before use.
1674
1675 2005-07-25  Richard Guenther  <rguenther@suse.de>
1676
1677         * tree-dfa.c (mark_new_vars_to_rename): Protect against
1678         calling with a PHI_NODE argument.
1679
1680         * tree-flow-inline.h (overlap_subvar): Protect against
1681         possible overflow.
1682
1683 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
1684
1685         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
1686         * configure: Regenerate.
1687
1688 2005-07-25  Ira Rosen  <irar@il.ibm.com>
1689
1690         * expr.c (highest_pow2_factor): Make extern.
1691         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
1692         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
1693         record_array_differ_p, array_ptr_differ_p): Likewise.
1694         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
1695         additional cases. Call the above functions.
1696         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
1697         base_object_differ_p when there are two base objects. Otherwise, compare
1698         base address and offset. Call may_alias_p.
1699         (dump_data_reference): Use a correct field name.
1700         (analyze_array): Make static. Initialize new data-ref fields.
1701         (analyze_indirect_ref): New function.
1702         (init_data_ref): Initialize new data-ref fields.
1703         (strip_conversion): Moved from tree-vect-analyze.c.
1704         (analyze_offset_expr, get_ptr_offset, address_analysis,
1705         object_analysis): Likewise.
1706         (analyze_offset): New function.
1707         (create_data_ref): Likewise.
1708         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
1709         dimensions for ARRAY_REFs only.
1710         (build_classic_dist_vector): Make static.
1711         (access_functions_are_affine_or_constant_p): Call macro to get the
1712         address of access functions.
1713         (compute_all_dependences): Add new parameter
1714         compute_self_and_read_read_dependences. Compute self and read-read
1715         dependences if it is true.
1716         (find_data_references_in_loop): Call create_data_ref. Initialize new
1717         data-ref fields.
1718         (compute_data_dependences_for_loop): Add new parameter
1719         compute_self_and_read_read_dependences. Remove parameter nb_loops,
1720         compute nb_loops. Call compute_all_dependences,
1721         build_classic_dist_vector and build_classic_dir_vector with correct
1722         parameters.
1723         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
1724         with correct parameters. Compare dimensions for ARRAY_REFs only.
1725         (free_data_refs): Call macro to free access functions.
1726         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
1727         fields from stmt_vinfo.
1728         (struct base_object_info): New structure.
1729         (struct data_reference): Move fields to base_object_info. Add fields
1730         first_location and object_info for above structures. Move fields from
1731         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
1732         aligned_to.  Add macros to access the new fields.
1733         Update functions declarations.
1734         * tree-flow.h (is_aliased_with): Declare.
1735         * tree-loop-linear.c (linear_transform_loops): Call
1736         compute_data_dependences_for_loop with correct parameters.
1737         * tree-ssa-alias.c (is_aliased_with): New function.
1738         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
1739         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
1740         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
1741         vect_base_addr_differ_p, compute_subscript_distance and
1742         build_classic_dist_vector. Add printings. Check absolute value of
1743         distance.
1744         (vect_analyze_data_ref_dependences): Go through ddrs instead of
1745         data-refs.
1746         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
1747         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
1748         to bytes. Add printing.
1749         (vect_compute_data_refs_alignment): Go through loads and stores in one
1750         loop.
1751         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
1752         vect_analyze_data_ref_access): Likewise.
1753         (vect_analyze_pointer_ref_access): Remove.
1754         (vect_address_analysis, vect_object_analysis): Likewise.
1755         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
1756         and analyze data-refs in the loop.
1757         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
1758         fields of data-ref instead of stmt. Add init to the offset from the
1759         base.
1760         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
1761         (vect_update_init_of_dr): Likewise.
1762         (vect_update_inits_of_drs): Go through loads and stores in one loop.
1763         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
1764         removed fields.
1765         (new_loop_vec_info): Initialize new fields.
1766         (destroy_loop_vec_info): Free new fields.
1767         (vect_strip_conversion): Remove.
1768         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
1769         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
1770         datarefs. Add new field ddrs.
1771         Add macros for the new fields access.
1772         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
1773         base_aligned_p, misalignment, memtag, ptr_info and subvars.
1774         Remove their macros.
1775         * tree.h (highest_pow2_factor): Declare.
1776
1777 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
1778
1779         * calls.c (store_one_arg): Check for sibling call MEM arguments
1780         from already clobbered incoming argument area.
1781
1782 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1783
1784         * c-common.c (check_missing_format_attribute): New.
1785         * c-common.h (check_missing_format_attribute): Likewise.
1786         * c-typeck.c (convert_for_assignment): Use it.
1787
1788 2005-07-24  Andreas Schwab  <schwab@suse.de>
1789
1790         * config/m68k/m68k.md ("extendqidi2"): When source is an address
1791         register use a word move.  Correct operand of ext.w in 68000 code.
1792
1793 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
1794
1795         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
1796         variables as declarations, rather than definitions.
1797
1798 2005-07-24  Ira Rosen  <irar@il.ibm.com>
1799
1800         PR tree-optimization/22526
1801         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
1802         of the zero node.
1803
1804 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1805
1806         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
1807         that C99 reserve for future use. Use it to define clog10,
1808         clog10f and clog10l.
1809
1810 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1811
1812         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
1813         * configure.ac: Check for -Wmissing-format-attribute.
1814
1815         * configure: Regenerate.
1816
1817 2005-07-23  Richard Henderson  <rth@redhat.com>
1818
1819         PR tree-optimization/22623
1820         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
1821
1822 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
1823
1824         PR target/22577
1825         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
1826
1827 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1828
1829         * Makefile.in (C_TREE_H): Update dependencies.
1830         * c-tree.h: Include toplev.h.
1831         * diagnostic.h (diagnostic_set_info): Add format attribute.
1832         * rtl-error.c (diagnostic_for_asm): Likewise.
1833
1834 2005-07-23  Chao-ying Fu  <fu@mips.com>
1835
1836         * config/mips/mips-dsp.md: New file.
1837         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
1838         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
1839         functions.
1840         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
1841         MIPS_BUILTIN_BPOSGE32.
1842         (mips_expand_builtin_direct): Add one parameter to indicate that
1843         builtin functions need to return a value.
1844         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
1845         functions.
1846         (mips_regno_to_class): Add classes for 12 new DSP registers.
1847         (mips_subword): Change to check four HI registers.
1848         (mips_output_move): Output move to and from 6 new DSP accumulators.
1849         (override_options): Make sure -mdsp and -mips16 are not used together.
1850         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
1851         for machine modes.
1852         (mips_conditional_register_usage): Disable 6 new DSP accumulators
1853         when !TARGET_DSP.
1854         (print_operand): Add 'q' for printing DSP accumulators.
1855         (mips_cannot_change_mode_class): Check ACC_REGS.
1856         (mips_secondary_reload_class): Check ACC_REGS.
1857         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
1858         (mips_register_move_cost): Check ACC_REGS.
1859         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
1860         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
1861         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
1862         (dsp_bdesc): New array.
1863         (bdesc_arrays): Add DSP builtin function table.
1864         (mips_prepare_builtin_arg): Check predicate again after
1865         copy_to_mode_reg.
1866         (mips_expand_builtin): Add one more parameter to
1867         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
1868         MIPS_BUILTIN_BPOSGE32.
1869         (mips_init_builtins): Initialize new function types.
1870         (mips_expand_builtin_direct): Check if builtin functions need to
1871         return a value and pass operands properly.
1872         (mips_expand_builtin_bposge): New function.
1873         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
1874         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
1875         (FIRST_PSEUDO_REGISTER): Increase to 188.
1876         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1877         Update for 12 new DSP registers.
1878         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
1879         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
1880         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
1881         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
1882         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
1883         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
1884         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
1885         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
1886         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
1887         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
1888         (REGISTER_NAMES): Add names for 12 new DSP registers.
1889         * config/mips/mips.md: Include mips-dsp.md.
1890         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1891         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1892         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1893         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1894         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1895         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1896         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1897         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1898         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1899         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1900         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1901         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1902         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1903         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1904         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1905         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1906         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1907         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1908         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1909         (UNSPEC_RDDSP): New constants.
1910         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
1911         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
1912         A<-d alternative.
1913         * config/mips/mips.opt (-mdsp): New option.
1914         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
1915         (reg_imm10_operand): New predicates.
1916         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
1917         * doc/invoke.texi (-mdsp): Document new option.
1918
1919 2005-07-22  DJ Delorie  <dj@redhat.com>
1920
1921         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
1922         to warning calls.
1923         * tree-inline.c (inlinable_function_p): Likewise.
1924
1925 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
1926
1927         PR debug/21828
1928         * toplev.c (check_global_declarations): Do not mark undefined
1929         variables as DECL_IGNORED_P.
1930         * varasm.c (first_global_object_name): GTY it.
1931         (weak_global_object_name): Likewise.
1932         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
1933         a string to go into {weak,first}_global_object_name.
1934
1935 2005-07-22  DJ Delorie  <dj@redhat.com>
1936
1937         * c-format.c (check_function_format): Change warning control
1938         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
1939
1940 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
1941
1942         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
1943         &PTR->FLD a dereference of PTR.
1944         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
1945         a potential dereference of PTR.
1946
1947 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
1948
1949         PR rtl-optimization/20370
1950         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
1951         call allocate_reg_info if necessary.
1952
1953         PR rtl-optimization/21848
1954         * calls.c (emit_library_call_value_1): For const functions, add
1955         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
1956
1957         PR rtl-optimization/22445
1958         * cselib.c (target.h): Include.
1959         (rtx_equal_for_cselib_p): Allow commutative matches.
1960         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
1961         Remove MODE parameter.  Changed all callers.
1962
1963         PR rtl-optimization/22258
1964         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
1965         New functions.
1966         (try_combine): Use likely_spilled_retval_p.
1967
1968 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
1969
1970         * config.gcc: Add crx-elf support.
1971
1972         * doc/contrib.texi: Mention crx.
1973         * doc/extend.texi: Document crx extensions.
1974         * doc/install.texi: Document crx install.
1975         * doc/invoke.texi: Document crx options.
1976         * doc/md.texi: Document crx constraints.
1977
1978         * config/crx/crx-protos.h: New file.
1979         * config/crx/crx.c: New file.
1980         * config/crx/crx.h: New file.
1981         * config/crx/crx.md: New file.
1982         * config/crx/crx.opt: New file.
1983         * config/crx/t-crx: New file.
1984
1985 2005-07-22  Manfred Hollstein  <mh@suse.com>
1986
1987         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
1988         warnings.
1989         (int_add_graph_edge): Likewise.
1990         (collapse_nodes): Likewise.
1991         (process_unification_queue): Likewise.
1992
1993 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1994             Laurent GUERBY  <laurent@guerby.net>
1995
1996         PR tree-optimization/22336
1997         * function.c (record_block_change): Check for
1998         cfun->ib_boundaries_block.
1999
2000 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
2001
2002         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
2003         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
2004
2005 2005-07-21  DJ Delorie  <dj@redhat.com>
2006
2007         * toplev.c (warn_deprecated_use): Add warning control to warning
2008         call.
2009         * c-typeck.c (parser_build_binary_op): Likewise.
2010         (c_finish_if_stmt): Likewise.
2011         * c-common.c (check_function_sentinel): Likewise.
2012         (check_nonnull_arg): Likewise.
2013
2014 2005-07-21  Richard Henderson  <rth@redhat.com>
2015
2016         PR tree-opt/22504
2017         * tree-complex.c (complex_ssa_name_components): New.
2018         (cvc_lookup): Allow entry not found.
2019         (create_components): Remove.
2020         (create_one_component_var, get_component_var): New.
2021         (get_component_ssa_name, set_component_ssa_name): New.
2022         (extract_component): Use get_component_ssa_name.
2023         (update_complex_components): Use set_component_ssa_name.
2024         (update_complex_components_on_edge): Likewise.
2025         (update_phi_components): Create new PHI nodes directly, instead
2026         of adding insns to edges.
2027         (tree_lower_complex): Allocate and free complex_variable_components
2028         and complex_ssa_name_components here.
2029
2030 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
2031
2032         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
2033         revert to returning false.
2034
2035 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
2036
2037         PR target/21149
2038         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
2039
2040 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
2041
2042         PR target/22576
2043         * config/i386/i386.md (cmpxf): Change operand constraints
2044         to "nonmemory_operand".
2045
2046 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
2047
2048         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
2049
2050 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
2051
2052         PR middle-end/21180
2053         * fold-const.c (fold_build1): Add checksum for the operands.
2054         (fold_build2): Likewise.
2055         (fold_build3): Likewise.
2056
2057 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
2058
2059         PR middle-end/19055
2060         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
2061
2062 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
2063
2064         * common.opt (-fforward-propagate): Committed by mistake,
2065         removed.
2066
2067 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2068
2069         * reg-stack.c: Fix comment typo(s).
2070         * tree-ssa-operands.c: Likewise.
2071         * tree-vectorizer: Likewise.
2072
2073 2005-07-21  Nick Clifton  <nickc@redhat.com>
2074
2075         * config/sh/symbian.c: Replace C++ style line comments with C
2076         style line comments.
2077         (symbian_add_attribute): Do not use a ? operator on the LHS of
2078         an assignment.
2079         (sh_symbian_handle_dll_attribute): Change the type of the
2080         method vector to "VEC(tree,gc)*" and use vector accessor
2081         macros to walk over the elements.
2082         (symbian_export_vtable_and_rtti_p): Likewise.
2083         (symbian_class_needs_attribute_p): Likewise.
2084
2085 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
2086
2087         PR target/22085
2088         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
2089         initialize targetm.resolve_overloaded_builtin here.
2090         (altivec_expand_overloaded_builtin): Make it non-static.
2091         * config/rs6000/rs6000-protos.h
2092         (altivec_expand_overloaded_builtin): New prototype.
2093         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
2094         targetm.resolve_overloaded_builtin here.
2095         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
2096
2097 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
2098             Zdenek Dvorak  <dvorakz@suse.cz>
2099
2100         PR tree-optimization/19210
2101         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
2102         New.
2103         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
2104         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
2105         rely on unproven assumptions.
2106         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
2107         * tree-flow.h (number_of_iterations_exit): Add final parameter.
2108         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
2109         to number_of_iterations_exit.
2110         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
2111         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
2112         * tree-ssa-loop-niter.c (find_loop_niter,
2113         estimate_numbers_of_iterations_loop): Likewise.
2114         (number_of_iterations_exit): Honor the new options.
2115         * doc/invoke.texi (Wunsafe-loop-optimizations,
2116         funsafe-loop-optimizations): Document them.
2117
2118 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
2119
2120         PR rtl-optimization/22167
2121         * gcse.c (hoist_code): Fix hoist_exprs[] check.
2122
2123 2005-07-20  Adam Nemet  <anemet@lnxw.com>
2124
2125         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
2126         __do_global_dtors_aux longcall.
2127
2128 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
2129
2130         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
2131         (old_special_pred_table): Don't reference
2132         SPECIAL_MODE_PREDICATES.
2133         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
2134         * config/arc/arc.h: Don't mention PREDICATE_CODES.
2135         * config/sh/predicates.h: Don't mention
2136         SPECIAL_MODE_PREDICATES.
2137         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
2138         Remove.
2139
2140 2005-07-20  DJ Delorie  <dj@redhat.com>
2141
2142         * config.gcc: Add m32c-elf support.
2143
2144         * doc/contrib.texi: Mention m32c.
2145         * doc/extend.texi: Document m32c extensions.
2146         * doc/install.texi: Mention m32c.
2147         * doc/invoke.texi: Document m32c options.
2148         * doc/md.texi: Document m32c constraints.
2149
2150         * config/m32c/addsub.md: New file.
2151         * config/m32c/bitops.md: New file.
2152         * config/m32c/cond.md: New file.
2153         * config/m32c/jump.md: New file.
2154         * config/m32c/m32c-lib1.S: New file.
2155         * config/m32c/m32c-lib2.c: New file.
2156         * config/m32c/m32c-modes.def: New file.
2157         * config/m32c/m32c-pragma.c: New file.
2158         * config/m32c/m32c-protos.h: New file.
2159         * config/m32c/m32c.abi: New file.
2160         * config/m32c/m32c.c: New file.
2161         * config/m32c/m32c.h: New file.
2162         * config/m32c/m32c.md: New file.
2163         * config/m32c/m32c.opt: New file.
2164         * config/m32c/minmax.md: New file.
2165         * config/m32c/mov.md: New file.
2166         * config/m32c/muldiv.md: New file.
2167         * config/m32c/predicates.md: New file.
2168         * config/m32c/prologue.md: New file.
2169         * config/m32c/shift.md: New file.
2170         * config/m32c/t-m32c: New file.
2171
2172 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2173
2174         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
2175         (stack_protect_set, stack_protect_test): New expanders.
2176         (stack_protect_set_si, stack_protect_set_si_media,
2177         stack_protect_set_di_media, stack_protect_test_si,
2178         stack_protect_test_si_media, stack_protect_test_di_media):
2179         New insns.
2180
2181 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
2182
2183         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
2184
2185 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
2186
2187         * tree.h (tree_expr_nonzero_p): Export.
2188         * fold-const.c (tree_expr_nonzero_p): Likewise.
2189         Return true for CALL_EXPRs that are alloca calls.
2190         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
2191         against zero.
2192         * tree-flow.h (expr_computes_nonzero): Remove.
2193         * tree-vrp.c (expr_computes_nonzero): Remove.
2194         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
2195         (extract_range_from_unary_expr): Likewise.
2196         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
2197         tree_expr_nonzero_p.
2198
2199 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
2200
2201         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
2202         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
2203         extra arg "picreg" and use it instead of pic_offset_table_rtx.
2204         All callers changed.
2205         (frame_related_constant_load): New arg "related" which controls
2206         setting of RTX_FRAME_RELATED_P.  All callers changed.
2207         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
2208         (bfin_expand_prologue): Add stack limit checking.
2209         * config/bfin/bfin.md (trapifcc): New pattern.
2210
2211         * config/bfin/bfin.c: Include "langhooks.h".
2212         (def_builtin): Go through lang_hooks to call builtin_function.
2213
2214         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
2215         * config/bfin/predicates.md (symbol_ref_operand): New.
2216         (call_insn_operand): Delete.  All callers changed to use
2217         register_no_elim_operand.
2218         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
2219         call_cookie field.
2220         (function_arg): Use it to generate the call's operand 2.
2221         (bfin_longcall_p): New function.
2222         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
2223         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
2224         determine if the address needs to be in a REG.
2225         (bfin_handle_longcall_attribute): New function.
2226         (bfin_attribute_table): Add "longcall" and "shortcall".
2227         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
2228         (CUMULATIVE_ARGS): New member call_cookie.
2229         (PREDICATE_CODES): Add symbol_ref_operand.
2230         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
2231         extra USE to the pattern.
2232         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
2233         New patterns, split off call_insn, sibcall_insn, call_value_insn and
2234         sibcall_value_insn; now the new patterns handle direct calls and the
2235         old ones indirect calls.
2236         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
2237
2238 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
2239
2240         * doc/trouble.texi: Update section on handling of empty loops.
2241
2242 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
2243
2244         * config.gcc: Remove support for sparc-*-openbsd*,
2245         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
2246         ns32k-*-netbsd*.
2247         * config.host: Remove support for i860-*-sysv4* as a host.
2248         * config/i860/*, config/ip2k/*, config/ns32k/*,
2249         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
2250         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
2251         mention obsolete ports.
2252
2253 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2254
2255         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
2256         soft frame pointer.
2257         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
2258         of frame_pointer_rtx.
2259         (sh_expand_epilogue): Likewise.
2260         (sh_set_return_address): Likewise.
2261         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
2262         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
2263         offsets from FRAME_POINTER_REGNUM.
2264         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
2265         (sh_register_names): Add initializer for sfp.
2266         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
2267         (VALID_REGISTER_P): Likewise.
2268         (FIRST_PSEUDO_REGISTER): Update.
2269         (DWARF_FRAME_REGISTERS): Define.
2270         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
2271         (HARD_FRAME_POINTER_REGNUM): Define.
2272         (FRAME_POINTER_REGNUM): Redefine.
2273         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
2274         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
2275         from FRAME_POINTER_REGNUM.
2276         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
2277         FRAME_POINTER_REGNUM.
2278         (REG_CLASS_CONTENTS): Add sfp.
2279         (REG_ALLOC_ORDER): Likewise.
2280         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
2281         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
2282         of frame_pointer_rtx.
2283         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
2284
2285 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
2286
2287         * fold-const.c (tree_expr_nonnegative_p): Only return true for
2288         ABS_EXPR when flag_wrapv is false because of INT_MIN.
2289         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
2290         of an ABS_EXPR.
2291         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
2292         ABS_EXPR<x>.
2293
2294 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
2295
2296         Make CONSTRUCTOR use VEC to store initializers.
2297         * c-common.c (complete_array_type): Update to cope with VEC in
2298         CONSTRUCTOR_ELTS.
2299         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
2300         (pp_c_constructor_elts): New function.
2301         * c-pretty-print.h (pp_c_constructor_elts): Declare.
2302         * c-typeck.c (build_function_call, build_c_cast, digest_init,
2303         struct constructor_stack, struct initializer_stack,
2304         constructor_elements, push_init_level, pop_init_level,
2305         add_pending_init, find_init_member, output_init_element): Update to
2306         cope with VEC in CONSTRUCTOR_ELTS.
2307         * coverage.c (build_fn_info_value, build_ctr_info_value,
2308         build_gcov_info): Likewise.
2309         * expr.c (categorize_ctor_elements_1, store_constructor,
2310         expand_expr_real_1): Likewise.
2311         * fold-const.c (fold_ternary): Likewise.
2312         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
2313         gimplify_init_constructor, gimplify_expr): Likewise.
2314         * tree-dump.c (dequeue_and_dump): Likewise.
2315         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
2316         node.
2317         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
2318         CONSTRUCTOR_ELTS.
2319         * tree-sra.c (generate_element_init_1): Likewise.
2320         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
2321         * tree-ssa-operands.c (get_expr_operands): Likewise.
2322         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2323         * tree-vect-transform.c (vect_get_vec_def_for_operand):
2324         (get_initial_def_for_reduction): Likewise.
2325         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
2326         value handle in annotations.
2327         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
2328         tree_node_structure): Add support for constr_kind.
2329         (build_vector_from_ctor, build_constructor_single,
2330         build_constructor_from_list): New functions.
2331         (build_constructor): Update to take a VEC instead of a TREE_LIST.
2332         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
2333         Update to cope with VEC in CONSTRUCTOR_ELTS.
2334         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
2335         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
2336         CONSTRUCTOR_APPEND_ELT): New macros.
2337         (struct constructor_elt, struct tree_constructor): New data types.
2338         (union tree_node): Add tree_constructor field.
2339         * treestruct.def: Define TS_CONSTRUCTOR.
2340         * varasm.c (const_hash_1, compare_constant, copy_constant,
2341         compute_reloc_for_constant, output_addressed_constants,
2342         initializer_constant_valid_p, output_constant,
2343         array_size_for_constructor, output_constructor): Update to cope with
2344         VEC in CONSTRUCTOR_ELTS.
2345         * vec.h (VEC_empty, VEC_copy): New macros.
2346
2347 2005-07-19  Devang Patel  <dpatel@apple.com>
2348
2349         * dbxout.c (dbxout_type): Check Objective-C++ lang.
2350
2351 2005-07-19  Richard Henderson  <rth@redhat.com>
2352
2353         PR tree-opt/22278
2354         * gimplify.c (gimplify_expr): Use main variant type for the temp
2355         destination for a discarded volatile read.
2356         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
2357         casts between non-void types that change volatility.
2358
2359 2005-07-15  DJ Delorie  <dj@redhat.com>
2360
2361         * toplev.h: Add comment about the first parameter for warning().
2362         * errors.h: Likewise.
2363
2364         * c.opt (Wpragmas): New.
2365         * doc/invoke.texi: Document it.
2366
2367         * function.c (do_warn_unused_parameter): Add warning control to
2368         warning call.
2369         * c-decl.c (warn_if_shadowing): Likewise.
2370         * c-lex.c (cb_def_pragma): Likewise.
2371         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
2372         (pop_alignment): Likewise.
2373         (handle_pragma_pack): Likewise.
2374         (apply_pragma_weak): Likewise.
2375         (handle_pragma_weak): Likewise.
2376         (handle_pragma_redefine_extname): Likewise.
2377         (add_to_renaming_pragma_list): Likewise.
2378         (handle_pragma_extern_prefix): Likewise.
2379         (maybe_apply_renaming_pragma): Likewise.
2380         (handle_pragma_visibility): Likewise.
2381
2382         * config/c4x/c4x-c.c (BAD): Likewise.
2383         (c4x_parse_pragma): Likewise.
2384         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
2385         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
2386         (rs6000_pragma_longcall): Likewise.
2387         * config/v850/v850-c.c (pop_data_area): Likewise.
2388         (ghs_pragma_section): Likewise.
2389         (ghs_pragma_section): Likewise.
2390         (ghs_pragma_interrupt): Likewise.
2391         (ghs_pragma_starttda): Likewise.
2392         (ghs_pragma_startsda): Likewise.
2393         (ghs_pragma_startzda): Likewise.
2394         (ghs_pragma_endtda): Likewise.
2395         (ghs_pragma_endsda): Likewise.
2396         (ghs_pragma_endzda): Likewise.
2397
2398 2005-07-19  Danny Berlin <dberlin@dberlin.org>
2399             Kenneth Zadeck <zadeck@naturalbridge.com>
2400
2401         * Makefile.in: Removed tree-promote-statics.c
2402         * tree-promote-statics.c: Removed.
2403         * common.opt: Removed flag-promote-statics.
2404         * opts.c: Ditto.
2405         * passes.c: Removed tree-promote-statics pass.
2406         * tree-pass.h: Ditto.
2407         * timevar.def: Removed TV_PROMOTE_STATICS.
2408
2409
2410 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
2411
2412         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
2413         and *-*-freebsd9.
2414         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
2415
2416 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2417
2418         PR c/22476
2419         * c-common.c (check_function_arguments): Call
2420         'check_function_format' if either -Wformat or
2421         -Wmissing-format-attribute are specified.
2422         * c-format.c (check_function_format): Check -Wformat before
2423         calling 'check_format_info'.
2424         * c-opts.c (c_common_post_options): Don't warn for
2425         -Wmissing-format-attribute without -Wformat.
2426         * c-typeck.c (convert_for_assignment): Detect additional cases for
2427         -Wmissing-format-attribute.
2428         * doc/invoke.texi (-Wmissing-format-attribute): Document new
2429         behavior.
2430
2431 2005-07-19  Richard Guenther  <rguenther@suse.de>
2432
2433         * config/i386/i386.md (lrint<mode>2): Use temporary
2434         instead of clobbering non-existent memory.
2435
2436 2005-07-19  Nick Clifton  <nickc@redhat.com>
2437
2438         * config/avr/avr.c (legitimate_address_p): Fix debugging print
2439         statement to avoid displaying ASCII control characters.
2440
2441 2005-07-19  Ben Elliston  <bje@au.ibm.com>
2442
2443         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
2444         * cfganal.c (find_edge_index): Ditto.
2445         * combine.c (combine_instructions): Ditto.
2446         * ddg.c (create_scc): Ditto.
2447         (find_successors): Ditto.
2448         (find_predecessors): Ditto.
2449         (find_nodes_on_paths): Ditto.
2450         (longest_simple_path): Ditto.
2451         * flow.c (update_life_info): Ditto.
2452         (count_or_remove_death_notes): Ditto.
2453         (clear_log_links): Ditto.
2454         * modulo-sched.c (generate_reg_moves): Ditto.
2455         (find_max_asap): Ditto.
2456         (find_max_hv_min_mob): Ditto.
2457         (find_max_dv_min_mob): Ditto.
2458         * sbitmap.c (sbitmap_first_set_bit): Ditto.
2459         * sched-rgn.c (extract_edgelst): Ditto.
2460         * tree-into-ssa.c (prepare_names_to_update): Ditto.
2461         (dump_update_ssa): Ditto.
2462         (ssa_names_to_replace) Ditto.
2463         (switch_virtuals_to_full_rewrite): Ditto.
2464         (update_ssa): Ditto.
2465         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
2466
2467 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
2468
2469         Fix PR tree-optimization/22483
2470
2471         * tree-complex.c (create_components): Use
2472         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
2473         * tree-flow-inline.h (fill_referenced_var_vec): New function.
2474         * tree-flow.h (safe_referenced_var_iterator): New structure.
2475         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
2476         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
2477         safe_referenced_var iterator.
2478         (add_type_alias): Ditto.
2479
2480 2005-07-19  Steven Bosscher  <stevenb@suse.de>
2481
2482         * loop-init.c (rest_of_handle_loop2): Remove.
2483         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
2484         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
2485         (pass_rtl_loop_init, pass_rtl_loop_done,
2486         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
2487         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
2488         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
2489         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
2490         pass_tree_loop_done, and pass_tree_unswitch.
2491         (gate_loop): Rename to gate_tree_loop.
2492         * passes.c (init_optimization_passes): Update for renamed tree
2493         loop passes.  Add the new loop2 passes as subpasses of loop2.
2494         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
2495         Update for the renamed tree loop passes.
2496
2497 2005-07-18  Ian Lance Taylor  <ian@airs.com>
2498
2499         PR middle-end/22057
2500         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
2501         blocks when optimizing.
2502
2503 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
2504
2505         * common.opt (frename-registers): Initialize to 2.
2506         (fweb): Ditto.
2507         (fgcse-after-reload): Ditto.
2508         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
2509         (process_options): Only change flag_web, flag_rename_registers,
2510         and flag_rerun_cse_after_loop if not explicitly set by user.
2511
2512 2005-07-18  Jan Beulich  <jbeulich@novell.com>
2513
2514         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
2515         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
2516         in 64-bit mode the same as DImode in 32-bit mode.
2517         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
2518         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
2519         mode. Add new mode parameter.
2520         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
2521         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
2522         x86_64_shift_adj): New expanders.
2523         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
2524         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
2525         insns.
2526         Respective new splitters. Use renamed shift splitter helpers in 32-bit
2527         DImode shift splitters.
2528         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
2529         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
2530         mode parameter.
2531
2532 2005-07-18  Jan Beulich  <jbeulich@novell.com>
2533
2534         * i386.md (movdi_extzv_1): New.
2535         (zero_extendhidi2): Combine alternatives and never force use of
2536         REX64 prefix.
2537         (zero_extendqidi2): Likewise. Don't restrict input selection.
2538
2539 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
2540
2541         Fix PR tree-optimization/22531
2542         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
2543          moment.
2544
2545 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
2546
2547         * tree-promote-statics.c (pass_promote_statics): Change dump file
2548          name.
2549
2550 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
2551
2552         * tree-optimize.c (init_tree_optimization_passes): Add
2553         pass_eliminate_useless_stores pass.
2554         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
2555         * tree-ssa-pre.c (is_copy_stmt): New function.
2556         (follow_copies_till_vuse): Ditto.
2557         (do_eustores): Ditto.
2558         (gate_eustores): Ditto.
2559
2560 2005-07-16  Richard Henderson  <rth@redhat.com>
2561
2562         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
2563
2564 2005-07-16 Danny Berlin <dberlin@dberlin.org>
2565            Kenneth Zadeck <zadeck@naturalbridge.com>
2566
2567         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
2568         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
2569         ipa-type-escape.h, tree-promote-statics.c
2570         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
2571         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
2572         tree-promote-statics.c: new files.
2573         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
2574         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
2575         int nonlocal_set_p, mark_constant_function): Deleted.
2576         (rest_of_handle_cfg): Removed call to mark_constant_function.
2577         (nonoverlapping_component_refs_p): Added calls to support
2578         type based aliasing.
2579         * tree-ssa-alias.c (may_alias_p,
2580         compute_flow_insensitive_aliasing): Ditto.
2581         * calls.c (flags_from_decl_or_type): Removed reference to
2582         cgraph_rtl_info.
2583         * c-typeck.c (convert_arguments): Make builtins tolerant of having
2584         too many arguments.  This is necessary for Spec 2000.
2585         * cgraph.h (const_function, pure_function): Removed.
2586         * common.opt: Added "fipa-pure-const", "fipa-reference",
2587         "fipa-type-escape", and "ftree-promote-static".
2588         * opts.c: Ditto.
2589         * passes.c: Added ipa and tree-promote-statics passes.
2590         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
2591         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
2592         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
2593         * tree-flow.h: Added exposed sra calls and addition of
2594         reference_vars_info field for FUNCTION_DECLS.
2595         * tree-pass.h: Added passes.
2596         * tree-sra.c: (sra_init_cache): New function.
2597         (sra_insert_before, sra_insert_after) Made public.
2598         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
2599         and made public.
2600         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
2601         aliasing. (may_alias_p): Added code to use type escape analysis to
2602         improve alias sets.
2603         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
2604         code to prune clobbers of static variables based on information
2605         produced in ipa-reference pass.  Changed call clobbering so that
2606         statics are not marked as clobbered if the call does not clobber
2607         them.
2608
2609 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
2610
2611         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
2612         too.
2613
2614 2005-07-16  Eric Botcazou <ebotcazou@libertysurf.fr>
2615
2616         * doc/install.texi (*-*-solaris2*): Document recommended version
2617         of GNU binutils and mention GNU linker problem on Solaris 10.
2618
2619 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
2620
2621         PR c/22421
2622         * c-decl.c (c_build_bitfield_integer_type): New function.
2623         (finish_struct): Call it.
2624         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
2625
2626 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2627
2628         * c-typeck.c (digest_init): Call 'convert_for_assignment'
2629         before returning.
2630
2631 2005-07-16  Jan Hubicka  <jh@suse.cz>
2632
2633         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
2634         (scale_bbs_frequencies_int): Watch roundoff errors.
2635         * predict.c (return_prediction): Initialize return_stmt.
2636
2637 2005-07-16  Jan Hubicka  <jh@suse.cz>
2638
2639         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
2640         after RTL profiling.
2641
2642 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
2643
2644         PR middle-end/22398
2645         * fold-const.c (build_range_check): Convert high/low to etype
2646         if we are only comparing against exp.
2647
2648 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
2649
2650         Fix PR tree-optimization/22376
2651         * tree-ssa-structalias.c (build_constraint_graph): We really meant
2652         special var here.
2653         (need_to_solve): New function.
2654         (compute_points_to_sets): Use it.
2655
2656 2005-07-15  Jan Hubicka  <jh@suse.cz>
2657
2658         * cfg.c (update_bb_profile_for_threading): More diagnostic.
2659         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
2660
2661 2005-07-15  Richard Guenther  <rguenther@suse.de>
2662
2663         * c-common.c (handle_flatten_attribute): New function.
2664         Add flatten function attribute.
2665         * doc/extend.texi: Document flatten function attribute.
2666         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
2667         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
2668         New functions.
2669         (cgraph_decide_inlining): Handle functions with flatten
2670         attribute.
2671
2672 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
2673
2674         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
2675         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
2676         UNSPEC_XCHG, UNSPEC_AND): New.
2677         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
2678         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
2679         * config/rs6000/sync.md (FETCHOP): New code macro.
2680         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
2681         New code attrs.
2682         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
2683         (sync_compare_and_swap<mode>): Same.
2684         (sync_lock_test_and_set<mode>): Same.
2685         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
2686         for QImode and HImode, and not PPC405.
2687         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
2688         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
2689         (sync_<fetchop>{si,di}_internal): New.
2690         (sync_nand{si,di}_internal): New.
2691         (sync_old_<fetchop>{si,di}_internal): New.
2692         (sync_old_nand{si,di}_internal): New
2693         (sync_new_<fetchop>{si,di}_internal): New.
2694         (sync_new_nand{si,di}_internal): New.
2695         (atomic_and{si,di}): New.
2696         (sync_new_nand{si,di}_internal): New.
2697         (atomic_and{si,di}): New.
2698         (sync_add<mode>_internal): Delete.
2699         (sync_addshort_internal): Use unspec instead of unspec_volatile.
2700         (sync_sub<mode>_internal): Delte.
2701         (sync_subshort_internal): New.
2702         (sync_andsi_internal): Use unspec instead of unspec_volatile.
2703         (sync_anddi_internal): Delete.
2704         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
2705         (sync_booldi_internal): Delete.
2706         (sync_boolc<mode>_internal): Delete.
2707         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
2708         (sync_boolc<mode>_internal2): Delete.
2709         (sync_boolcc<mode>_internal): Delete.
2710         (isync, lwsync): Use unspec instead of unspec_volatile.
2711         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
2712         Revert UNSPEC_VOLATILE.
2713         (rs6000_split_atomic_op): New.
2714         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
2715
2716 2005-07-14  Eric Christopher  <echristo@redhat.com>
2717
2718         * config/mips/mips.c (mips_canonicalize_comparison): Cast
2719         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
2720
2721 2005-07-14  Eric Christopher  <echristo@redhat.com>
2722
2723         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
2724
2725 2005-07-14  Steven Bosscher  <stevenb@suse.de>
2726
2727         PR tree-optimization/22230
2728         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
2729         the computation of the four cross productions for "range op range".
2730
2731 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
2732             Ulrich Weigand  <uweigand@de.ibm.com>
2733
2734         PR target/20126
2735         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
2736         in some insn.
2737
2738 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
2739
2740         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
2741
2742 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
2743
2744         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
2745
2746 2005-07-14  Richard Guenther  <rguenther@suse.de>
2747
2748         PR middle-end/22347
2749         * config/i386/i386-protos.h (ix86_function_value): Change
2750         prototype to match new target hook.
2751         * config/i386/i386.c (ix86_value_regno): Change prototype
2752         to take extra type argument.
2753         (TARGET_FUNCTION_VALUE): Define.
2754         (ix86_function_ok_for_sibcall): Pass extra argument to
2755         ix86_value_regno, check return slot rtx for exact match.
2756         (ix86_function_value): Take extra parameter.  Dispatch to
2757         ix86_value_regno with fndecl/fntype as provided.
2758         (ix86_value_regno): Handle extra type argument.
2759         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
2760
2761         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
2762         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
2763         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
2764         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
2765         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
2766
2767 2005-07-14  Richard Guenther  <rguenther@suse.de>
2768
2769         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
2770         * calls.c (expand_call): Pass fntype to hard_function_value.
2771         (emit_library_call_value_1): Likewise.
2772         * explow.c: Include target.h.
2773         (hard_function_value): Take extra argument, the fntype.
2774         Use new target hook for function_value.
2775         * expr.h (hard_function_value): Change prototype.
2776         * function.c (aggregate_value_p): Pass 0 as fntype to
2777         hard_function_value.
2778         (assign_parms): Use new target hook for function_value.
2779         Pass 0 as fntype to hard_function_value.
2780         (expand_function_end): Likewise.
2781         * reg-stack.c: Include target.h.
2782         (stack_result): Use new target hook for function_value.
2783         * target-def.h: New target hook function_value.
2784         * target.h: Likewise.
2785         * targhooks.c (default_function_value): New function.
2786         * targhooks.h (default_function_value): Declare.
2787
2788 2005-07-13  Ian Lance Taylor  <ian@airs.com>
2789
2790         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
2791
2792 2005-07-14  Jan Hubicka  <jh@suse.cz>
2793
2794         * tree-dfa.c (dump_variable): Use default_def function.
2795         * tree-ssa-alias.c (dump_points_to_info): Likewise.
2796         * tree-ssa.c (verify_use): Likewise.
2797         * tree-ssanames.c (release_ssa_name): Likewise.
2798         * tree-tailcall.c (eliminate_tail_call): Likewise.
2799         (tree_optimize_tail_calls_1): Likewise.
2800         * tree-vrp.c (get_value_range): Likewise.
2801
2802 2005-07-14  Ben Elliston  <bje@au.ibm.com>
2803
2804         * gcc.c (main): Compare language[0] with '*' when iterating over
2805         the infiles.
2806
2807 2005-07-13  Adrian StraeĀ½tling  <straetling@de.ibm.com>
2808
2809         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
2810         "s390_emit_compare".  Add handling of CCZ1mode.
2811         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
2812         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
2813         checking.
2814         (s390_branch_condition_mask): Add CCZ1mode handling.
2815         * config/s390/s390.md: ("seq", "*seq"): New pattern.
2816         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
2817         Use CCZ1mode instead of CCZmode.
2818         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
2819
2820 2006-07-13  Adrian StraeĀ½tling  <straetling@de.ibm.com>
2821
2822         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
2823         pattern.
2824         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
2825
2826 2005-07-13  Eric Christopher  <echristo@redhat.com>
2827
2828         * config/mips/mips.c (mips_canonicalize_comparison): New.
2829         (mips_emit_int_relational): Use.
2830
2831 2005-07-13  Eric Christopher  <echristo@redhat.com>
2832
2833         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
2834         static extra parts.
2835         * config/s390/s390.md: Include tpf.md. Move tpf specific
2836         patterns...
2837         * config/s390/tpf.md: To here.
2838         * config/s390/s390.opt: Move tpf specific options...
2839         * config/s390/tpf.opt: to here. Add mmain option.
2840         * config/s390/tpf-unwind.h: Remove unnecessary defines.
2841         * config/s390/tpf.h: Rewrite.
2842
2843 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
2844
2845         * doc/tm.texi: Remove @xref{Cross-profiling}.
2846
2847 2005-07-13  Jeff Law  <law@redhat.com>
2848
2849         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
2850         expressions, test their _DECL operands for pointer equality rather
2851         than using operand_equal_p.
2852
2853 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
2854
2855         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
2856         (TARGET_POSIX_IO): This.
2857         * config/darwin.h: Likewise.
2858         * config/freebsd.h: Likewise.
2859         * config/linux.h: Likewise.
2860         * config/lynx.h: Likewise.
2861         * config/netbsd.h: Likewise.
2862         * config/rs6000/linux64.h: Likewise.
2863         * config/rs6000/linux.h: Likewise.
2864         * config/s390/tpf.h: Likewise.
2865         * config/sh/embed-elf.h: Likewise.
2866         * config/sparc/linux64.h: Likewise.
2867         * config/sparc/linux.h: Likewise.
2868         * config/svr4.h: Likewise.
2869         * gcov-io.h: Likewise.
2870
2871         * doc/tm.texi: Updated.
2872
2873         * libgcov.c (create_file_directory): Defined only if
2874         TARGET_POSIX_IO is defined.
2875         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
2876         is defined.
2877
2878 2005-07-13  Jan Hubicka  <jh@suse.cz>
2879
2880         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
2881
2882 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
2883
2884         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
2885         structure as argument.
2886
2887 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
2888
2889         PR tree-optimization/21921
2890         * tree-iterator.c (tsi_link_before): Support the case when
2891         tsi_end_p (tsi) == true.
2892
2893 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
2894
2895         PR tree-optimization/22442
2896         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
2897         correctly.
2898
2899 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
2900
2901         PR rtl-optimization/20376
2902         * toplev.c (process_options): Enable -fweb and -frename-registers when
2903         unrolling.
2904         * doc/invoke.texi: Update the information about when -fweb and
2905         -frename-registers are enabled.
2906
2907 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
2908
2909         PR tree-opt/21840
2910         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
2911         if *rhs_p is not a SSA_NAME.
2912
2913 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
2914
2915         Fix PR tree-optimization/22422
2916         * tree-ssa-structalias.c (struct variable_info): Add flag for
2917         special vars.
2918         (get_varinfo): Now a static function.
2919         (new_varinfo): init has_union and is_special_var to false.
2920         (solution_set_add): Check has_union.
2921         (do_da_constraint): Move temporary variable so it gets reset
2922         properly.
2923         Also check for special variable.
2924         (do_ds_constraint): Ditto.
2925         (do_sd_constraint): Ditto.
2926         (do_structure_copy): Check for special variable.
2927         (find_func_aliases): Ditto.
2928         (init_base_vars): Set special vars properly.
2929
2930 2005-07-13  Jan Hubicka  <jh@suse.cz>
2931
2932         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
2933         do unit-at-a-time.
2934
2935         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
2936         (get_expr_operands): Fix thinko wrt flags and subvars.
2937
2938         PR tree-optimize/22379
2939         * tree-inline.c (expand_call_inline): Do not output sorry in early
2940         inlining.
2941
2942 2005-07-12  Dale Johannesen  <dalej@apple.com>
2943
2944         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
2945
2946 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
2947
2948         PR bootstrap/21704
2949         * host-linux.h: Include limits.h.
2950
2951 2005-07-12  Dale Johannesen  <dalej@apple.com>
2952
2953         * expr.c (compress_float_constant):  Add cost check.
2954         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
2955
2956 2005-07-12  Dale Johannesen  <dalej@apple.com>
2957
2958         * gcc.target/i386/compress-float-sse.c:  New.
2959         * gcc.target/i386/compress-float-sse-pic.c:  New.
2960         * gcc.target/i386/compress-float-387.c:  New.
2961         * gcc.target/i386/compress-float-387-pic.c:  New.
2962         * gcc.dg/compress-float-ppc.c:  New.
2963         * gcc.dg/compress-float-ppc-pic.c:  New.
2964
2965 2005-07-12  Eric Christopher  <echristo@redhat.com>
2966
2967         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
2968         static extra parts.
2969         * config/s390/s390.md: Include tpf.md. Move tpf specific
2970         patterns...
2971         * config/s390/tpf.md: To here.
2972         * config/s390/s390.opt: Move tpf specific options...
2973         * config/s390/tpf.opt: to here. Add mmain option.
2974         * config/s390/tpf-unwind.h: Remove unnecessary defines.
2975         * config/s390/tpf.h: Rewrite.
2976
2977 2005-07-12  Eric Christopher  <echristo@redhat.com>
2978
2979         * gcc.c (struct infile): Update comment for language.
2980         (main): Rewrite input file resetting code.
2981
2982 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
2983
2984         PR tree-opt/22335
2985         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
2986         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
2987         (lookup_avail_expr): Use constant_boolean_node instead
2988         of boolean_false_node/boolean_true_node.
2989
2990 2005-07-12  Ben Elliston  <bje@au.ibm.com>
2991
2992         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
2993         and use it when printing num_edges.
2994
2995 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2996
2997         * doc/extend.texi (Blackfin Built-in Functions): New section.
2998         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
2999         @opindex.
3000
3001 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
3002
3003         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
3004         s/cmpstrsi/cmpstrnsi
3005         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
3006         'cmpstrnsi'.
3007         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
3008         (init_optabs): Initialize cmpstrn_optab.
3009         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
3010         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
3011         * expr.c: (enum insn_code cmpstrn_optab): Declare.
3012         * config/i386/i386.md: s/cmpstr/cmpstrn
3013         * config/c4x/c4x.md: s/cmpstr/cmpstrn
3014         * doc/md.texi: Update documentation.
3015
3016 2005-07-11  Richard Henderson  <rth@redhat.com>
3017
3018         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
3019         build_va_arg_indirect_ref.
3020         (alpha_gimplify_va_arg): Likewise.
3021         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
3022         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
3023         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
3024         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
3025         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
3026         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
3027         Likewise.
3028         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
3029
3030 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
3031
3032         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
3033         * passes.c (init_optimization_passes): Add pass_empty_loop.
3034         * tree-pass.h (pass_empty_loop): Declare.
3035         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
3036         try_remove_empty_loop, remove_empty_loops): New functions.
3037         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
3038         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
3039
3040 2005-07-12  Peter Barada  <peter@the-baradas.com>
3041
3042         PR middle-end/16719
3043         PR middle-end/18421
3044         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
3045         in address registers.
3046         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
3047         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
3048         alternative of addsi3_5200.
3049
3050 2005-07-11  Ian Lance Taylor  <ian@airs.com>
3051
3052         * config/mips/mips.md (ffs<mode>2): Remove.
3053
3054 2005-07-11  Ian Lance Taylor  <ian@airs.com>
3055
3056         * doc/tree-ssa.texi (Cleanups): Improve description of
3057         TRY_FINALLY_EXPR.
3058         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
3059
3060 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
3061
3062         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
3063         * tree.h (DECL_ARGUMENT_FLD): New macro.
3064
3065 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
3066
3067         Fix PR tree-optimization/22404
3068
3069         * tree-ssa-structalias.c (create_variable_info_for): Use
3070         correct offset.
3071
3072 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
3073
3074         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
3075         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
3076         for second comparison operand.
3077         * config/bfin/predicates.md (reg_or_const_int_operand): New.
3078
3079         * config/bfin/bfin.md (define_attr "type"): Add "sync".
3080         (define_insn_reservation "alu"): Likewise.
3081         (csync, ssync): Now of type sync.
3082         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
3083         -mcsync-anomaly -mspecld-anomaly.
3084         * config/bfin/bfin.opt (mcsync): Remove.
3085         (mcsync-anomaly, mspecld-anomaly): Add.
3086         * config/bfin/bfin.c: Include "insn-codes.h".
3087         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
3088         (TARGET_DEFAULT_TARGET_FLAGS): New.
3089         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
3090
3091 2005-07-11  Steven Bosscher  <stevenb@suse.de>
3092
3093         * basic-block.h: Give the BB flags enum a name, bb_flags.
3094         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
3095         * cfgcleanup.c (enum bb_flags): Remove here.
3096         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
3097         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
3098         (update_forwarder_flag): Likewise.
3099         (thread_jump): Likewise.
3100         (try_forward_edges): Likewise.
3101         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
3102         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
3103         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
3104
3105 2005-07-11  Richard Guenther  <rguenther@suse.de>
3106
3107         * config/i386/i386.opt: New target option -msseregparm.
3108         * config/i386/i386.c (override_options): Error out for
3109         -msseregparm but no SSE support.
3110         (ix86_function_sseregparm): Check for global sseregparm.
3111         * doc/invoke.texi: Document -msseregparm.
3112
3113 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3114
3115         * config.gcc (m32r-*-linux*): Use the default extra_parts.
3116         (m32rle-*-linux*): Ditto.
3117
3118 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
3119
3120         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
3121         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
3122         bytes.
3123
3124 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3125
3126         PR middle-end/22239
3127         PR target/20126
3128         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
3129         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
3130
3131 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
3132
3133         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
3134         (varmap): Heapify varmap.
3135         (constraints): Heapify constraints.
3136         (struct constraint_graph): Heapify succs and preds.
3137         (constraint_vec_find): Update for heapification.
3138         (constraint_set_union): Ditto.
3139         (insert_into_complex): Ditto.
3140         (constraint_edge_vec_find): Ditto.
3141         (erase_graph_self_edge): Ditto.
3142         (add_graph_edge): Ditto.
3143         (get_graph_weights): Ditto.
3144         (merge_graph_nodes): Ditto.
3145         (build_constraint_graph): Ditto.
3146         (topo_visit): Ditto.
3147         (solve_graph): Ditto.
3148         (create_variable_info_for): Ditto.
3149         (init_base_vars): Ditto.
3150         (delete_points_to_sets): Free graph, varmap, and complex constraints.
3151         (condese_varmap_nodes): Free complex vector.
3152         (clear_edges_for_node): Clear succs and preds vector.
3153
3154 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
3155
3156         * tree-ssa-structalias.c (update_alias_info): Change counting of
3157         references to not include vdefs.
3158
3159 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
3160
3161         * tree-ssa-alias.c (free_used_part_map): Add missing free.
3162         (up_insert): Ditto.
3163
3164 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3165
3166         * pa.c (pa_commutative_p): Make PLUS commutative when
3167         TARGET_NO_SPACE_REGS is true.
3168
3169 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
3170
3171         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
3172         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
3173         * tree-dfa.c (dump_subvars_for): New.
3174         (debug_subvars_for): New.
3175         (dump_variable): Show subvariables if VAR has them.
3176         * tree-flow-inline.h (get_subvar_at): New.
3177         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
3178         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
3179         Update all users.
3180         (struct subvar): Change fields offset and size to unsigned
3181         HOST_WIDE_INT.
3182         (dump_subvars_for): Declare.
3183         (debug_subvars_for): Declare.
3184         (get_subvar_at): Declare.
3185         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
3186         to unsigned HOST_WIDE_INT *.
3187         (overlap_subvar): Likewise.
3188         * tree-gimple.c (is_gimple_reg): Always return false for
3189         SFTs and memory tags.
3190         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
3191         Update all callers.
3192         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
3193         (compute_may_aliases): Call compute_points_to_sets.
3194         (collect_points_to_info_for): Remove.
3195         (compute_points_to_and_addr_escape): Remove.
3196         (delete_alias_info): Call delete_points_to_sets.
3197         (compute_flow_sensitive_aliasing): If the call to
3198         find_what_p_points_to returns false, call set_pt_anything.
3199         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
3200         (set_pt_anything): Clear pi->pt_vars.
3201         (set_pt_malloc): Remove.
3202         (merge_pointed_to_info): Remove.
3203         (add_pointed_to_expr): Remove.
3204         (add_pointed_to_var): Remove.
3205         (collect_points_to_info_r): Remove.
3206         (is_escape_site): Make extern.
3207         (create_sft): New.
3208         (create_overlap_variables_for): Call it.
3209         * tree-ssa-copy.c (merge_alias_info): Never merge
3210         flow-sensitive alias information.
3211         * tree-ssa-operands.c (get_expr_operands): Adjust variables
3212         offset and size to be unsigned HOST_WIDE_INT.
3213         (add_to_addressable_set): Rename from note_addressable.
3214         Set TREE_ADDRESSABLE as the variables are added to the set.
3215         Update all users.
3216         (add_stmt_operand): Do not try to micro-optimize unmodifiable
3217         operands into VUSEs when adding V_MAY_DEFs for members in an
3218         alias set.
3219         * tree-ssa-operands.h (add_to_addressable_set): Declare.
3220         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
3221         (struct variable_info): Add bitfield is_heap_var.
3222         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
3223         (new_var_info): Initialize is_heap_var.
3224         (get_constraint_for): Add HEAP variables to the symbol table.
3225         Mark them with is_heap_var.
3226         (update_alias_info): New.  Taken mostly from the old
3227         compute_points_to_and_addr_escape.
3228         (handle_ptr_arith): New.
3229         (find_func_aliases): Call update_alias_info.
3230         Call handle_ptr_info for tcc_binary expressions.
3231         Call mark_stmt_modified.
3232         (create_variable_info_for): If DECL has subvars, do not create
3233         variables for its subvars.  Always add all the fields.
3234         (set_uids_in_ptset): If the solution includes ANYOFFSET and
3235         SFTs, then add all the SFTs of the structure.
3236         If VI->DECL is an aggregate with subvariables, add the SFT at
3237         VI->OFFSET.
3238         (find_what_p_points_to): If VI is an artificial variable,
3239         translate to bitfields in SSA_NAME_PTR_INFO.
3240         If the solution is empty, set pi->pt_vars to NULL
3241         (init_base_vars): Create ANYOFFSET.
3242         (compute_points_to_sets): Rename from create_alias_vars.
3243         Make extern.
3244         (pass_build_pta): Remove.
3245         (delete_points_to_sets): Rename from delete_alias_vars.
3246         (pass_del_pta): Remove.
3247         * tree-ssa-structalias.h (struct alias_info): Move from
3248         tree-ssa-alias.h.
3249         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
3250         NUM_REFERENCES_SET): Likewise.
3251         (compute_points_to_sets, delete_points_to_sets): Declare.
3252
3253 2005-07-09  Richard Henderson  <rth@redhat.com>
3254
3255         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
3256         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
3257         alpha_split_lock_test_and_set_12): New functions.
3258         * config/alpha/alpha-protos.h: Update.
3259         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
3260         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
3261         * config/alpha/sync.md (I12MODE): New.
3262         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
3263         (sync_<fetchop_name><I48MODE>): Likewise.
3264         (sync_nand<I48MODE>): Likewise.
3265         (sync_old_<fetchop_name><I48MODE>): Likewise.
3266         (sync_new_<fetchop_name><I48MODE>): Likewise.
3267         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
3268         (sync_compare_and_swap<I48MODE>): Likewise.
3269         (sync_lock_test_and_set<I48MODE>): Likewise.
3270         (sync_compare_and_swap<I12MODE>): New.
3271         (sync_compare_and_swap<I12MODE>_1): New.
3272         (sync_lock_test_and_set<I12MODE>): New.
3273         (sync_lock_test_and_set<I12MODE>_1): New.
3274
3275 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
3276
3277         PR 21356
3278         PR 22332
3279         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
3280
3281 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
3282
3283         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
3284         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
3285
3286 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
3287
3288         PR target/21656
3289         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
3290
3291 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
3292
3293         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
3294         memory_operand constraint.
3295         (store_conditional_<mode>): Same.
3296         (sync_compare_and_swap<mode>): Same.
3297         (sync_lock_test_and_set<mode>): Same.
3298
3299 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
3300
3301         Rewrite PIC support to more closely model actual instructions.
3302         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
3303         (cris_symbol): Remove prototypes for removed functions.
3304         (cris_pic_symbol_type_of, cris_valid_pic_const)
3305         (cris_expand_pic_call_address): Prototypes for new functions.
3306         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
3307         variable.
3308         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
3309         modifiers.
3310         <case ':'>: Add case for new punctuation character.
3311         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
3312         emitting (extra) PIC modifier.
3313         <case UNSPEC>: Do not assert for PLT.
3314         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
3315         (cris_expand_prologue, cris_expand_epilogue): Check
3316         for pic_offset_table_rtx usage instead of taking
3317         current_function_uses_pic_offset_table as the final word.
3318         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
3319         Remove flag_pic difference.
3320         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
3321         the moral equivalents of...
3322         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
3323         functions.
3324         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
3325         (cris_handle_option): Mark ARG as unused.
3326         (cris_expand_pic_call_address): New worker function for "call",
3327         "call_value".
3328         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
3329         output PIC constructs here.
3330         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
3331         as symbol-specific modifers, not whole or part of operands.
3332         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
3333         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
3334         constants and flag_pic.
3335         (CONSTANT_INDEX_P): Adjust for new functions.
3336         (enum cris_pic_symbol_type): New helper type.
3337         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
3338         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
3339         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
3340         define_constants.
3341         ("movsi"): Emit actual instructions for GOT and relative access.
3342         ("*movsi_got_load"): New pattern to set up the register holding
3343         the GOT pointer.
3344         ("*movsi_internal"): Operand 1 is not a plain general_operand.
3345         Adjust FIXME for 'S'.
3346         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
3347         Use "movs" for -fpic cases.
3348         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
3349         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
3350         ("call", "call_value"): Just call cris_expand_pic_call_address for
3351         PIC addresses.
3352         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
3353         Remove special pattern.
3354         ("*expanded_call_side", "*expanded_call_value_side"): New
3355         patterns.
3356         (gotplt-to-plt, gotplt-to-plt-side-call)
3357         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
3358         peephole2:s.
3359         * config/cris/cris/predicates.md
3360         ("cris_general_operand_or_gotless_symbol"): Remove unused
3361         predicate.
3362         ("cris_general_operand_or_symbol"): Adjust for new functions.
3363
3364 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
3365
3366         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
3367
3368 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
3369
3370         * Makefile.in (TREE_H): Add treestruct.def.
3371         (c-decl.o): Add pointer-set.h
3372         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
3373         visibility on regular DECL's.
3374         (merge_decls): Fix the copying of decl nodes of various types for
3375         the new structures.  Don't update RTL, section name, weak status,
3376         etc, on DECL's without RTL.
3377         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
3378         Don't check volatile on non-variable types.
3379         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
3380         to check whether we have seen arguments.
3381         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
3382         flag is checked before field (flag is common, field is not).
3383         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
3384         TS_DECL_COMMON could have an origin.
3385         (add_location_or_const_value_attribute): Don't check section name
3386         on non-var/function decls.
3387         (dwarf2out_var_location): Reverse order of tests.
3388         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
3389         with DECL_WRTL_CHECK.
3390         * expmed.c (make_tree): rtl is now in decl_with_rtl.
3391         * fold-const.c (fold_binary): Don't check weakness on
3392         non-var/function decls.
3393         (tree_expr_nonzero_p): Ditto.
3394         (fold_checksum_tree): Use tree_decl_extra as sizeof
3395         buffer.
3396         * ggc-page.c (extra_order_size_table): Add sizes for
3397         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
3398         tree_field_decl.
3399         * gimplify.c (gimplify_bind_expr): Only set
3400         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
3401         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
3402         without RTL.
3403         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
3404         * langhooks.h (init_ts). New langhook.
3405         * passes.c (rest_of_decl_compilation): Reverse order of tests.
3406         * print-tree.c (print_node): Update to only print fields that
3407         exist in the structures the passed decl has.
3408         * toplev.c (wrapup_global_declarations): Don't reset
3409         DECL_DEFER_OUTPUT on DECL's that don't contain it.
3410         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
3411         * tree-inline.c (remap_decl): Ditto.
3412         * tree-outof-ssa.c (create_temp): Reverse order of tests.
3413         * tree-pretty-print.c (print_declaration): Don't print
3414         DECL_REGISTER on things that don't contain it.
3415         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
3416         non-var/function decls.
3417         * tree.c (tree_contains_struct): New structure.
3418         (init_priority_for_decl): New hashtable.
3419         (tree_int_map): New structure.
3420         (tree_int_map_eq): New function.
3421         (tree_int_map_marked_p): Ditto.
3422         (tree_int_map_hash): Ditto.
3423         (tree_map): Move to tree.h.
3424         (tree_map_eq): Externalize.
3425         (tree_map_hash): Ditto.
3426         (tree_map_marked_p): Ditto.
3427         (init_ttree): Set up tree_contains_struct and call langhook.
3428         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
3429         (tree_code_size): Update for new structures.
3430         (tree_node_structure): Update for new structures.
3431         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
3432         without the field.
3433         (copy_node_stat):  Copy init priority.
3434         (build_decl_stat): Ditto for visibility.
3435         (ts_enum_names): New.
3436         (tree_contains_struct_check_failed): New function.
3437         (decl_init_priority_lookup): Ditto.
3438         (decl_init_priority_insert): Ditto.
3439         * treestruct.def: New file.
3440         * tree.h (CODE_CONTAINS_STRUCT): New macro.
3441         (CONTAINS_STRUCT_CHECK): Ditto.
3442         (tree_contains_struct_check_failed): New prototype.
3443         (DECL_CHECK): Removed.
3444         (DECL_MINIMAL_CHECK): New.
3445         (DECL_COMMON_CHECK): Ditto.
3446         (DECL_WRTL_CHECK): Ditto.
3447         (DECL_NON_COMMON_CHECK): Ditto.
3448         (DECL_WITH_VIS_CHECK): Ditto.
3449         (VAR_OR_FUNCTION_DECL_P): Ditto
3450         (struct tree_decl_minimal): New structure.
3451         (struct tree_decl_common): Ditto.
3452         (struct tree_decl_with_rtl): Ditto.
3453         (struct tree_decl_with_vis): Ditto.
3454         (struct tree_decl_non_common): Ditto.
3455         (struct tree_field_decl): Ditto.
3456         (struct tree_parm_decl): Ditto.
3457         (struct tree_var_decl): Ditto.
3458         (struct tree_function_decl): Ditto.
3459         (struct tree_const_decl): Ditto.
3460         (struct tree_result_decl): Ditto.
3461         (union tree_node): Add new structures.
3462         * var-tracking.c (track_expr_p): Reverse order of tests.
3463
3464         * doc/c-tree.texi: Add documentation on DECL node internal structure.
3465
3466 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
3467
3468         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
3469         * system.h: Poison FINALIZE_PIC.
3470         * doc/tm.texi (FINALIZE_PIC): Remove.
3471
3472 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
3473
3474         PR tree-opt/22329
3475         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
3476         to the correct type if we have a MODIFY_EXPR.
3477
3478 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
3479
3480         PR tree-optimization/22360
3481         * tree.c (upper_bound_in_type): Fix calculations for casting
3482         to a non-wider signed type and casting a signed value to a
3483         wider unsigned type.
3484         (lower_bound_in_type): Fix calculations for casting to a
3485         non-wider signed type.
3486
3487         PR tree-optimization/20139
3488         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
3489         release_defs.
3490         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
3491         fold_cond_expr_cond.
3492         * tree-ssanames.c (release_defs): Assert in_ssa_p.
3493         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
3494
3495 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
3496
3497         PR tree-opt/22356
3498         * tree-complex.c (expand_complex_libcall): Produce
3499         REALPART_EXPR/IMAGPART_EXPR with the correct type.
3500
3501 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
3502
3503         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
3504         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
3505         b" assert and inserted fastpath code for this case.
3506         (bitmap_ior): Removed "a != b" assert.
3507
3508 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3509
3510         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
3511         (ENDFILE_SPEC): Likewise.
3512         * config/m32r/m32r.h (ASM_SPEC): Likewise.
3513
3514         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
3515         a large stack frame at epilogue.
3516
3517 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
3518
3519         * final.c: Include sdbout.h when required.
3520
3521 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
3522
3523         * config.gcc (*-*-darwin*): Only one target-specific header file
3524         for generic darwin.
3525         (powerpc-*-darwin*): Add version-specific header files.
3526         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
3527         * config.in: Regenerate.
3528         * configure: Regenerate.
3529         * gcc.c: Include xregex.h.
3530         (version_compare_spec_function): New.
3531         (spec_function): Add version-compare.
3532         (replace_outfile_spec_function): Reformat comment.
3533         (compare_version_strings): New.
3534         * config/darwin-c.c (version_as_macro): New.
3535         (builtin_define): New.
3536         (darwin_cpp_builtins): New.
3537         * config/darwin-protos.h (darwin_cpp_builtins): New.
3538         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
3539         (LIB_SPEC): Make unconditional, update comment.
3540         (TARGET_C99_FUNCTIONS): Define.
3541         * config/darwin.opt: Sort.
3542         (mmacosx-version-min=): New.
3543         * config/darwin7.h: Delete.
3544         * config/darwin8.h: Delete.
3545         * config/i386/darwin.h (): Call darwin_cpp_builtins.
3546         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
3547         (TARGET_C99_FUNCTIONS): Define.
3548         * config/rs6000/darwin7.h: New.
3549         * config/rs6000/darwin8.h: New.
3550         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
3551         (-mmacosx-version-min): Document.
3552
3553 2005-07-07  Ian Lance Taylor  <ian@airs.com>
3554
3555         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
3556
3557 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
3558
3559         PR middle-end/22239
3560         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
3561
3562 2005-07-07  Khem Raj  <kraj@mvista.com>
3563
3564         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
3565         in bytes, not words.
3566
3567 2005-07-07  Paul Brook  <paul@codesourcery.com>
3568
3569         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
3570         DEFAULT_FUNCTION_ARG_PADDING to upward.
3571
3572 2005-07-07  Richard Henderson  <rth@redhat.com>
3573
3574         * function.c (locate_and_pad_parm): Record parameter alignment in
3575         stack_alignment_needed.
3576
3577 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
3578
3579         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
3580         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
3581         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
3582         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
3583         (define_attr "type"): Add isync, sync, load_l, store_c.
3584         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
3585         Create scratch volatile MEM.
3586         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
3587         sync.
3588         (load_locked_<mode>): New.
3589         (store_conditional_<mode>): New.
3590         (sync_compare_and_swap<mode>): Replace with splitter.
3591         (sync_lock_test_and_set<mode>): Replace with splitter.
3592         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
3593         and UNSPECV_ISYNC.
3594         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
3595         is ics.  Attribute isync.
3596         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
3597         lwsync.
3598         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
3599         and UNSPECV_SYNC_OP.
3600         (emit_unlikely_jump): New.
3601         (emit_load_locked): New.
3602         (emit_store_conditional): New.
3603         (rs6000_split_compare_and_swap): New.
3604         (rs6000_split_lock_test_and_set): New.
3605         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
3606         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
3607         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
3608         rs6000_split_lock_test_and_set): Declare.
3609         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
3610         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
3611         store_c, isync, sync.
3612
3613 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
3614
3615         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
3616         filenames to gtyp-gen.h.
3617         (s-typ-gen): Use it in place of for loops.
3618
3619 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
3620
3621         * hooks.c (hook_bool_rtx_int_false): New function.
3622         * hooks.h (hook_bool_rtx_int_false): Declare.
3623         * target-def.h (TARGET_COMMUTATIVE_P): Define.
3624         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
3625         * target.h (struct gcc_target): Add commutative_p member.
3626         * targhooks.c (hook_bool_rtx_commutative_p): New function.
3627         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
3628         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
3629         (pa_commutative_p): New function.
3630         * jump.c (target.h): Include.
3631         (rtx_renumbered_equal_p): Use targetm.commutative_p.
3632         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
3633
3634 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
3635
3636         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
3637         (s390_expand_setmem): New.
3638         * config/s390/s390.c: Likewise.
3639         (print_shift_count_operand): Truncate to 12 bits instead of 6.
3640         Adapt comments.
3641         * config/s390/s390.md: ("setmem<mode>"): Accept character as
3642         general_operand.  Call new function "s390_expand_setmem".
3643         ("clrmem_long", "*clrmem_long"): Rewrite to ...
3644         ("setmem_long", "*setmem_long"): ... this.
3645
3646 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
3647
3648         * config/s390/s390.c: (optimization_options): Enable
3649         TARGET_MVCLE at -Os.
3650         * doc/invoke.texi: Document changes in default behaviour.
3651         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
3652
3653 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
3654
3655         * expr.c: (set_storage_via_setmem): Convert opchar to mode
3656         defined by back-end.
3657
3658 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
3659
3660         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
3661         all sets in the pattern.
3662         * config/rs6000/rs6000.md (stack_protect_testsi,
3663         stack_protect_testdi): Likewise.
3664
3665 2005-07-06  Jeff Law  <law@redhat.com>
3666
3667         * tree-vrp.c (simplify_using_ranges): Kill.
3668         (vrp_finalize): Remove call to simplify_using_ranges.
3669         (simplify_stmt_using_ranges): New function extracted from
3670         simplify_using_ranges.
3671         (simplify_div_or_mod_using_ranges): Likewise.
3672         (simplify_abs_using_ranges): Likewise.
3673         (simplify_cond_using_ranges): New function.
3674         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
3675         * tree-ssa-propagate.c (substitute_and_fold): Call
3676         simplify_stmt_using_ranges if we have range information.
3677
3678 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
3679
3680         * config/ia64/ia64.c (ia64_reorg): Check optimize before
3681         ia64_flag_schedule_isns2.
3682
3683         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
3684         reading/writing general registers.
3685         (ia64_function_arg): Revert 2005-06-18 change.
3686
3687 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
3688
3689         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
3690         (legitimize_tls_address): Use gcc_unreachable instead of abort.
3691
3692 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
3693
3694         * function.c (expand_function_end): Revert part of 2005-06-27
3695         patch.  Do sjlj_emit_function_exit_after after return_label.
3696
3697 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
3698
3699         * doc/install.texi (--disable-libssp): New.
3700
3701 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
3702
3703         * doc/invoke.texi: Update -fforce-mem documentation.
3704         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
3705         code for -fforce-mem.
3706         * expmed.c: (store_bit_field,store_fixed_bit_field,
3707         extract_bit_field): Ditto.
3708         * expr.c: (convert_move): Ditto.
3709         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
3710         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
3711         emit_conditional_add,expand_float,expand_fix): Ditto.
3712         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
3713         (common_handle_option): Issue warning when -fforce-mem specified.
3714
3715 2005-07-06  Paul Brook  <paul@codesourcery.com>
3716
3717         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
3718         argument is empty.
3719         * configure: Regenerate.
3720
3721 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
3722
3723         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
3724
3725 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
3726
3727         Fix PR tree-optimization/22319
3728         Fix PR tree-optimization/22140
3729         Fix PR tree-optimization/22310
3730
3731         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
3732         variable sized types.
3733         Use correct type for intermediate structure on *a = *b structure
3734         copies.
3735
3736 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
3737
3738         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
3739         Remove.
3740         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
3741         (machine_function): Move typedef to...
3742         * config/rs6000/rs6000.c (machine_function): ... here.  Add
3743         varargs_save_offset field.
3744         (rs6000_stack_t): Remove varargs_size field.
3745         (setup_incoming_varargs): Allocate varargs save area using
3746         assign_stack_local, try to make it as small as possible.
3747         Save offset from virtual_stack_vars_rtx to the save area
3748         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
3749         instead of magic 8 when fp word byte size is used.
3750         (rs6000_va_start): Use cfun->machine->varargs_save_offset
3751         instead of -RS6000_VARARGS_SIZE.
3752         (rs6000_stack_info, debug_stack_info,
3753         rs6000_initial_elimination_offset): Remove all traces of
3754         varargs_size.
3755         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
3756         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
3757         RS6000_VARARGS_AREA.
3758
3759 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
3760
3761         PR tree-optimization/21963
3762         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
3763         constant_multiple_of in the same way get_computation_cost_at does.
3764
3765 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
3766
3767         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
3768         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
3769         (gen_compare_reg): If sparc_compare_emitted is set, clear it
3770         and return its previous value.
3771         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
3772         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
3773         constants.
3774         (stack_protect_set, stack_protect_test): New expanders.
3775         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
3776         stack_protect_testdi): New insns.
3777         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
3778         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
3779
3780 2005-07-06  Jeff Law  <law@redhat.com>
3781
3782         * tree-ssa-dce.c (cfg_altered): New global.
3783         (tree_dce_init): Initialize cfg_altered.
3784         (remove_dead_stmt): If we remove an edge in the CFG, then set
3785         CFG_ALTERED.
3786         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
3787         the dominators.
3788
3789 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
3790
3791         * Makefile.in (stamp-collect-ld): Use
3792         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
3793         ./collect-ld if it already exists.
3794         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
3795         Don't remove ./nm if it already exists.
3796
3797 2005-07-05  Devang Patel  <dpatel@apple.com>
3798
3799         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
3800         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
3801         * tree-vectorizer.c (vect_loop_location): New.
3802         (vect_print_dump_info): Use vect_loop_location.
3803         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
3804         (vectorize_loops): Set vect_loop_location.
3805         * tree-vect-analyze.c (vect_analyze_offset_expr,
3806         vect_determin_vectorization_factor, vect_analyze_operations,
3807         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
3808         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
3809         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
3810         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
3811         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
3812         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
3813         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
3814         vect_analyze_loop): Adjust vect_print_dump_info API.
3815         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
3816         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
3817         vect_finish_stmt_generation, vectorizable_assignment,
3818         vectorizable_operation, vectorizable_store, vectorizable_load,
3819         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
3820         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
3821         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
3822         vect_transform_loop): Same.
3823         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
3824         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
3825         Same.
3826
3827 2005-07-05  Randolph Chung  <tausq@debian.org>
3828
3829         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
3830         * configure: Regenerate.
3831         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
3832         (pa_tls_referenced_p): Declare.
3833         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
3834         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
3835         (legitimize_tls_address): New.
3836         (hppa_legitimize_address): Handle TLS addresses.
3837         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
3838         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3839         (emit_move_sequence): Handle TLS addresses.
3840         (pa_encode_section_info): Call default handler to handle common
3841         sections.
3842         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
3843         (CONSTANT_ADDRESS_P): Reject TLS operands.
3844         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
3845         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
3846         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
3847         (UNSPEC_TLSLE): Define new constants.
3848         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
3849         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
3850         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
3851         (tie_symbolic_operand, tle_symbolic_operand): New
3852
3853 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
3854
3855         * aclocal.m4: Update macros for autoconf 2.59 style.
3856         * configure.ac: Likewise.
3857
3858 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3859
3860         * pa.c (function_value): Handle small aggregates on 32-bit targets.
3861         (function_arg): Pass small aggregates in general registers on 32-bit
3862         targets.
3863         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
3864
3865 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
3866
3867         * Makefile.in (final.o): Fix dependencies.
3868
3869 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
3870
3871         PR c/22013
3872         PR c/22098
3873         * langhooks.h (struct lang_hooks): Add expr_to_decl.
3874         * langhooks.c (lhd_expr_to_decl): New.
3875         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
3876         New.
3877         (LANG_HOOKS_INITIALIZER): Update.
3878         * tree.c (recompute_tree_invarant_for_addr_expr): Call
3879         expr_to_decl langhook.
3880         * c-tree.h (c_expr_to_decl): Declare.
3881         * c-typeck.c (c_expr_to_decl): New.
3882         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
3883         specially.
3884         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
3885
3886 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
3887
3888         PR c/22308
3889         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
3890         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
3891
3892 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
3893
3894         * Makefile.in: Adjust dependencies.
3895         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
3896         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
3897         * alias.c (rest_of_handle_cfg, pass_cfg): New.
3898         * bb-reorder.c (duplicate_computed_gotos): Make it static.
3899         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
3900         rest_of_compilation.
3901
3902         * bb-reorder.c (gate_duplicate_computed_gotos,
3903         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
3904         rest_of_handle_reorder_blocks, pass_reorder_blocks,
3905         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
3906         pass_partition_blocks): New.
3907         * bt-load.c (gate_handle_branch_target_load_optimize,
3908         rest_of_handle_branch_target_load_optimize,
3909         pass_branch_target_load_optimize): New.
3910         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
3911         pass_jump2): New.
3912         * cfglayout.c (pass_insn_locators_initialize): New.
3913         * cfgrtl.c (pass_free_cfg): New.
3914         * combine.c (gate_handle_combine, rest_of_handle_combine,
3915         pass_combine): New.
3916         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
3917         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
3918         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
3919         * except.c (pass_set_nothrow_function_flags,
3920         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
3921         pass_rtl_eh): New.
3922         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
3923         rest_of_handle_shorten_branches, pass_shorten_branches,
3924         rest_of_clean_state, pass_clean_state): New.
3925         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
3926         rest_of_handle_remove_death_notes, pass_remove_death_notes,
3927         rest_of_handle_life, pass_life, rest_of_handle_flow2,
3928         pass_flow2): New.
3929         * function.c (pass_instantiate_virtual_regs, pass_init_function,
3930         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
3931         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
3932         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
3933         pass_gcse): New.
3934         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
3935         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
3936         pass_rtl_ifcvt, gate_handle_if_after_combine,
3937         rest_of_handle_if_after_combine, pass_if_after_combine,
3938         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
3939         pass_if_after_reload): New.
3940         * integrate.c (pass_initial_value_sets): New.
3941         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
3942         pass_purge_lineno_notes): New.
3943         * mode-switching.c (rest_of_handle_mode_switching,
3944         pass_mode_switching): New.
3945         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
3946         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
3947         pass_loop2): New.
3948         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
3949         pass_loop_optimize): New.
3950         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
3951         pass_sms): New.
3952         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
3953         pass_gcse2): New.
3954         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
3955         pass_postreload_cse): New.
3956         * profile.c (gate_handle_profiling, pass_profiling,
3957         rest_of_handle_branch_prob, pass_branch_prob): New.
3958         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
3959         pass_split_before_regstack, gate_handle_split_before_regstack,
3960         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
3961         rest_of_handle_split_all_insns, pass_split_all_insns): New.
3962         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
3963         pass_stack_regs): New.
3964         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
3965         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
3966         pass_stack_adjustments): New.
3967         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
3968         pass_regrename): New.
3969         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
3970         pass_delay_slots, gate_handle_machine_reorg,
3971         rest_of_handle_machine_reorg, pass_machine_reorg): New.
3972         * rtl.h (extern void purge_line_number_notes): New.
3973         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
3974         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
3975         pass_sched2): New.
3976         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
3977         pass_tracer): New.
3978         * value-prof.c (gate_handle_value_profile_transformations,
3979         rest_of_handle_value_profile_transformations,
3980         pass_value_profile_transformations): New.
3981         * var-tracking.c (gate_handle_var_tracking,
3982         pass_variable_tracking): New.
3983         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
3984
3985         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
3986         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
3987         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
3988         rest_of_handle_old_regalloc, rest_of_handle_regrename,
3989         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
3990         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
3991         rest_of_handle_gcse2, rest_of_handle_regmove,
3992         rest_of_handle_tracer, rest_of_handle_if_conversion,
3993         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
3994         rest_of_handle_web, rest_of_handle_branch_prob,
3995         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
3996         rest_of_handle_jump_bypass, rest_of_handle_combine,
3997         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
3998         rest_of_handle_gcse, rest_of_handle_loop_optimize,
3999         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
4000         rest_of_handle_mode_switching, rest_of_handle_jump,
4001         rest_of_handle_eh, rest_of_handle_stack_adjustments,
4002         rest_of_handle_flow2, rest_of_handle_jump2,
4003         rest_of_handle_peephole2, rest_of_handle_postreload,
4004         rest_of_handle_shorten_branches, rest_of_clean_state,
4005         rest_of_compilation): Remove.
4006
4007         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
4008         * passes.c (dump_flags, in_gimple_form, all_passes,
4009         all_ipa_passes, all_lowering_passes, register_one_dump_file,
4010         register_dump_files, next_pass_1, last_verified, execute_todo,
4011         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
4012         from tree-optimize.c.
4013         (init_optimization_passes): Moved from tree-optimize.c,
4014         adding the RTL optimizations.
4015         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
4016         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
4017         all_ipa_passes, all_lowering_passes, register_one_dump_file,
4018         register_dump_files, next_pass_1, last_verified, execute_todo,
4019         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
4020         init_tree_optimization_passes, ipa_passes): Delete.
4021         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
4022         the RTL dumps.