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