OSDN Git Service

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