OSDN Git Service

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