OSDN Git Service

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