OSDN Git Service

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