OSDN Git Service

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