OSDN Git Service

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