]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR tree-optimization/23109 (compiler generates wrong code leading to spurious...
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
ac264fef
RG
12005-08-01 Richard Guenther <rguenther@suse.de>
2
3 PR tree-optimization/23109
4 * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
5 If trapping math is in effect, use post-dominator information
6 to check if we'd in any case reach a trapping point before
7 doing the reciprocal insertion.
8 (execute_cse_reciprocals): Compute post-dominators, if necessary.
9 * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
10 expressions are invariant only if trapping math is not in effect.
11
57fb5341
RL
122005-08-01 Razya Ladelsky <razya@il.ibm.com>
13
14 * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
15 cgraph_function_versioning): New declarations.
16 * cgraphunit.c: Add include to ipa-prop.h.
17 (update_call_expr, cgraph_copy_node_for_versioning,
18 cgraph_function_versioning): New functions.
19 * integrate.c (copy_decl_for_inlining): Remove.
20 * ipa-prop.h (ipa_replace_map): New struct.
21 (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
22 * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
23 ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
24 ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
25 ipcp_iterate_stage, ipcp_method_scale_print,
26 ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
27 ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
28 ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
29 ipcp_update_bb_counts, ipcp_update_profiling,
30 ipcp_update_edges_counts): New functions.
31 (ipcp_method_cval_init): Remove restriction regarding local methods.
32 (ipcp_init_stage): Add ipcp_method_compute_scale.
33 (ipcp_insert_stage): Add versioning.
34 (ipcp_structures_print): Add ipcp_method_scale_print.
35 (ipcp_driver): Dump profiling info.
36 * Makefile.in: Remove integrate.h dependency from tree-inline.o.
37 Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
38 * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
39 (struct inline_data): Add versioning_p, ipa_info, new fields.
40 (remap_decl, mark_local_for_remap_r, setup_one_parameter,
41 declare_return_variable): Replace calls to copy_decl_for_inlining with
42 copy_decl_for_dup.
43 (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
44 versioning support.
45 (copy_decl_for_dup): Rename from copy_decl_for_inlining.
46 Add argument VERSIONING.
47 (copy_arguments_for_versioning, copy_static_chain,
48 function_versionable_p, tree_versionable_function_p,
49 tree_function_versioning, replace_ref_tree): New functions.
50 * tree-inline.h: Include varray.h.
51 (tree_versionable_function_p, tree_function_versioning,
52 tree copy_decl_for_dup): New declarations.
53
542005-08-01 Razya Ladelsky <razya@il.ibm.com>
55
56 * ipa-cp.c: New file. Contains IPCP specific functionality.
57 * ipa-prop.h: New file. Contains structures/definitions that can be
58 used by several interprocedural data flow optimizations (and also IPCP).
59 * ipa-prop.c: New file.
60 * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
61 * common.opt: Add ipa-cp flag.
62 * timevar.def: Add IPCP optimization.
63 * tree-optimize.c (init_tree_optimization_passes): Schedule
64 pass_ipa_cp.
65 * tree-pass.h (pass_ipa_cp): Declare.
66
569b7f6a
KH
672005-08-01 Kazu Hirata <kazu@codesourcery.com>
68
69 * dwarf2out.c, fold-const.c, ipa-type-escape.c,
70 loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
71 tree-sra.c, config/arm/arm.c, config/crx/crx.c,
72 config/i386/i386.c, config/mips/mips.h,
73 config/rs6000/rs6000.h, config/sh/sh.c,
74 config/stormy16/stormy16.c: Fix comment typos.
75
5922c215
JM
762005-08-01 Joseph S. Myers <joseph@codesourcery.com>
77
78 PR c/22311
79 * c-typeck.c (build_binary_op): Use common_type wrapper on
80 shortened types.
81 (common_type): Update comment.
82
a3f4b7d8
SB
832005-07-31 Steven Bosscher <stevenb@suse.de>
84
85 PR target/23095
86 * common.opt (flag_gcse_after_reload): Don't initialize to 2.
87 (flag_rerun_cse_after_loop): Initialize this to 2 instead.
88 * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
89
baf7a0d3
JH
902005-07-31 Jan Hubicka <jh@suse.cz>
91
92 * pretty-print.h (pp_widest_integer): New macro.
93 * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
94 counts.
95
7dcbf659
JH
962005-07-31 Jan Hubicka <jh@suse.cz>
97
98 * output.h (enum section_category): Export from varasm.c
99 (categorize_decl_for_section): Likewise.
100 * varasm.c (enum section_category): Kill.
101 (categorize_decl_for_section): Make global.
102 * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
103 Declare.
104 * i386.c (ix86_section_threshold): New static variable.
105 (ix86_in_large_data_p, ix86_encode_section_info,
106 x86_64_elf_unique_section,
107 x86_64_elf_select_section): New functions.
108 (TARGET_ENCODE_SECTION_INFO): Define
109 (override_options): Enable medium model for PIC.
110 (ix86_expand_prologue): Expand gen_set_got_rex64.
111 (legitimate_constant_p): Handle new UNSPECs.
112 (legitimate_pic_address_disp_p): Likewise.
113 (legitimize_pic_address): Lower MEDIUM model addressing.
114 * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
115 (enum cmodel): Add MEDIUM_PIC.
116 (SYMBOL_REF_FAR_ADDR_P): New macro.
117 (SYMBOL_FLAG_FAR_ADDR): New flag.
118 * i386.md (movdi): Support medium model.
119 (set_got_rex64): New pattern.
120 * i386.opt (mlarge-data-threshold): New flag.
121 * predicates.md (zext_operand/sext_operand): Deal with medium model.
122 * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
123 (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
124 TARGET_ASM_UNIQUE_SECTION): New.
125
126 * invoke.texi (-mlarge_data_threshold): Document
127
0bde02b3
JH
1282005-07-31 Jan Hubicka <jh@suse.cz>
129
130 * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
131 (coalesce_vars): Likewise.
132 * tree-ssa-live.c (coalesce_cost): New.
133 (build_tree_conflict_graph): Use coalesce_cost.
134 * tree-ssa-live.h (coalesce_cost): Declare.
135
a4ccc336
RE
1362005-07-30 Richard Earnshaw <richard.earnshaw@arm.com>
137
138 * arm.md (all peepholes for post-increment operations): Delete.
139 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
140 (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
141 (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
142 (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
143 (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
144
06581725
JM
1452005-07-30 James A. Morrison <phython@gcc.gnu.org>
146
147 * fold-const.c (tree_expr_nonnegative_p): Always return true for
148 non-integral types.
149
0cbc4d77
WB
1502005-07-29 Wolfgang Bangerth <bangerth@dealii.org>
151
152 PR target/22582
153 * doc/invoke.texi: Document -rdynamic.
154
91d975b8
JM
1552005-07-30 Joseph S. Myers <joseph@codesourcery.com>
156
157 PR c/23143
158 * c-parser.c (c_parser_parms_list_declarator): Call
159 mark_forward_parm_decls.
160 * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
161 decls with visibility structure.
162
f26b8ec9
PB
1632005-07-30 Paul Brook <paul@codesourcery.com>
164
165 * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
166
a14b88bb
PB
1672005-07-30 Paul Brook <paul@codesourcery.com>
168
169 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
170 prototype.
171 * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
172 value for mode.
173 * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
174
7c47d6e9
JM
1752005-07-29 Joseph S. Myers <joseph@codesourcery.com>
176
177 PR c/529
178 * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
179 nested function declarators.
180 (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
181 (grokparms): Call warn_if_shadowing for parameters used within the
182 parameter list.
183 (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
184 not used within the parameter list.
185 (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
186
3bc751bd
JH
1872005-07-30 Jan Hubicka <jh@suse.cz>
188
189 * expr.c (expand_expr_real_1): Do not load mem targets into register.
190 * i386.c (ix86_fixup_binary_operands): Likewise.
191 (ix86_expand_unary_operator): Likewise.
192 (ix86_expand_fp_absneg_operator): Likewise.
193 * optabs.c (expand_vec_cond_expr): Validate dest.
194
bc1594c1
JM
1952005-07-29 Joseph S. Myers <joseph@codesourcery.com>
196
197 PR c/21720
198 * real.c (real_from_string): Also set last bit if there is a
199 nonzero hex digit beyond GCC's internal precision after ".".
200
3aca4bff
DE
2012005-07-29 David Edelsohn <edelsohn@gnu.org>
202
203 * config/rs6000/altivec.md: Convert UNSPEC numerical values to
204 define_constants. Change duplicate values to unassigned numbers.
205 Change UNSPEC_SUBS to UNSPEC_VSUBS.
206 (*altivec_vspltsf): New.
207 (altivec_vperm_v4sf): Delete.
208 (altivec_vperm_<mode>): Use mode macro V.
209 (altivec_vsldoi_<mode>): Convert to mode macro pattern.
210 (altivec_predicate_v4sf): Delete.
211 (altivec_predicate_<mode>): Use mode macro V.
212 (*altivec_lvesfx): New.
213 (*altivec_stvesfx): New.
214 (vec_realign_load_v4sf): Delete.
215 (vec_realign_load_<mode>): Use mode macro V.
216 * config/rs6000/rs6000.c (generate_set_vrsave): Use
217 UNSPECV_SET_VRSAVE.
218
b28250ab
MM
2192005-07-29 Mark Mitchell <mark@codesourcery.com>
220
221 PR bootstrap/23131
222 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
223 string.
224 * configure: Regenerated.
225
eae50c87
PB
2262005-07-29 Paul Brook <paul@codesourcery.com>
227
228 * doc/install.texi: Add link to GFortran binaries wiki page.
229
79dad081
DU
2302005-07-29 David Ung <davidu@mips.com>
231
232 * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
233 (mips_rtx_cost_data): Add costs for 5kc and 5kf.
234 * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
235 * config/mips/mips.md (cpu): Add 5kf name.
236 (includes): Includes 5k.md.
237 * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
238 * doc/invoke.texi (MIPS Options): Updated cpu name supported with
239 -march flag.
240
89e80dd4
DN
2412005-07-29 Diego Novillo <dnovillo@redhat.com>
242
243 PR 22550
244 * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
245 (cleanup_tree_cfg): ... here.
246 Call cleanup_tree_cfg_1 until there are no more cleanups to
247 do.
248
d2f3ffba
JM
2492005-07-29 James A. Morrison <phython@gcc.gnu.org>
250
251 * tree-vrp.c (compare_range_with_value): Return true or false
252 for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
253 EQ_EXPR respectively.
254
536fa7b7
KH
2552005-07-29 Kazu Hirata <kazu@codesourcery.com>
256
257 * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
258 Fix comment typos.
259
6a2cf9dc
DN
2602005-07-29 Diego Novillo <dnovillo@redhat.com>
261
262 * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
263 (tree_ssa_dominator_optimize): Increment it.
264 (dump_dominator_optimization_stats): Print it.
265
abf86bf2
RE
2662005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
267 Steven Bosscher <stevenb@suse.de>
268
269 PR rtl-optimization/23117
270 * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
271 when head == tail. Tidy comment.
272
37cf6116
RH
2732005-07-28 Richard Henderson <rth@redhat.com>
274
275 * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
276 * cselib.c (rtx_equal_for_cselib_p): Likewise.
277 * jump.c (rtx_renumbered_equal_p): Likewise.
278 * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
279 CONST_INT and CONST_DOUBLE.
280 (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
281 * reload.c (operands_match_p): Special case CONST_INT and
282 CONST_DOUBLE; check mode earlier.
283
13b22d3a
JM
2842005-07-29 Joseph S. Myers <joseph@codesourcery.com>
285
286 PR c/22240
287 * c-typeck.c (convert_for_assignment): Do not check
288 DECL_IN_SYSTEM_HEADER on NULL fundecl.
289
ca8bdb78
JM
2902005-07-29 Joseph S. Myers <joseph@codesourcery.com>
291
292 PR c/22192
293 * c-typeck.c (composite_type): Prefer constant size arrays to
294 VLAs.
295
b608d27a
JM
2962005-07-29 Joseph S. Myers <joseph@codesourcery.com>
297
298 PR c/21720
299 * real.c (real_from_string): Set last bit if there is a nonzero
300 hex digit beyond GCC's internal precision.
301
a560c83a
RH
3022005-07-28 Richard Henderson <rth@redhat.com>
303
304 PR rtl-opt/22619
305 * cfgcleanup.c (try_forward_edges): Watch out for end of
306 insn chain.
307
66f33c03
JW
3082005-07-28 James E Wilson <wilson@specifixinc.com>
309
310 PR c/23106
311 * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
312
c5a4444c
JH
3132005-07-28 Jan Hubicka <jh@suse.cz>
314
8a76829c
JH
315 * Makefile.in (rtl-profile.o): Kill all traces of it.
316 * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
317 * coverage.h (rtl_coverage_counter_ref): Kill.
318 * opts.c (flag_speculative_prefetching_set): Kill.
319 (flag_loop_optimize_set): New.
320 (common_handle_option): Disable loop optimizer when profiling;
321 do not handle speculative prefetching.
322 * passes.c (init_optimization_passes): Replace pass_profiling combo
323 by branch_prob pass.
324 * profile.c (compute_value_histograms): Update for simplified value
325 profiles.
326 (rtl_register_profile_hooks): Kill.
327 (pass_profiling): Kill.
328 (rest_of_handle_branch_prob): Do not profile.
329 * toplev.c (process_options): Remove speculative prefetching.
330 * toplev.h (flag_tree_based_profiling): Kill.
331 * tree-profile.c (prepare_instrumented_value,
332 tree_gen_interval_profiler, tree_gen_pow2_profiler,
333 tree_gen_one_value_profiler, do_tree_profiling): Update for
334 simplified datastructures.
335 * value-prof.c: Add comment that speculative prefetching was dropped;
336 update rest of file for simplified datastructures.
337 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
338 rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
339 find_mem_reference_1, find_mem_reference_2, find_mem_reference,
340 rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
341 rtl_mod_subtract, gen_speculative_prefetch,
342 rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
343 rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
344 (gate_handle_value_profile_transformations,
345 rest_of_handle_value_profile_transformations,
346 pass_value_profile_transformations): Kill.
347 * value-prof.h (histogram_value_t): Remove IL based unions.
348 (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
349 rtl_profile_hooks): Remove hooks.
350
351 * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
352
c5a4444c
JH
353 * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
354 (cgraph_clone_node): Likewise.
355 * cgraph.h (cgraph_clone_edge): Update prototype.
356 (cgraph_clone_node): Likewise.
357 * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
358 cgraph_clone_node.
359 (lookup_recursive_calls): Consider profile.
360 (cgraph_decide_recursive_inlining): Fix updating; use new
361 probability argument; use profile.
362 * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
363 * tree-inline.c (copy_bb): Update clal of clone_edge.
364 * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
365
366 * invoke.texi (min-inline-recursive-probability): Document.
367
ccf548a7
GP
3682005-07-28 Gerald Pfeifer <gerald@pfeifer.com>
369
370 * doc/install.texi (Configuration): Update Valgrind homepage.
371
2c97f8e4
RH
3722005-07-28 Richard Henderson <rth@redhat.com>
373
407ab83b 374 PR middle-end/21362
2c97f8e4
RH
375 * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
376 labels we want to delete.
377 (cfg_layout_merge_blocks): Likewise.
378
b188ebb1
RH
3792005-07-28 Richard Henderson <rth@redhat.com>
380
381 PR target/17692
382 * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
383 when expanding to nothing.
384
facc20ee
JC
3852005-07-28 Josh Conner <jconner@apple.com>
386
387 * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
388 (cgraph_decide_inlining_of_small_functions): Likewise.
389
9de21a23
JC
3902005-07-28 Josh Conner <jconner@apple.com>
391
392 * ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift
393 direction of badness if negative.
394 (cgraph_default_inline_p): Add reason to parameters, and assign it
395 a value.
396 (cgraph_decide_inlining_of_small_functions): New parameter in call
397 to cgraph_default_inline_p.
398 (cgraph_decide_inlining_incrementally): Likewise.
399 * cgraphunit.c (decide_is_function_needed): Likewise.
400 * cgraph.h (cgraph_default_inline_p): Likewise.
401
206048bd
VR
4022005-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
403
404 * builtins.c: Fix comment typo(s).
405 * genautomata.c: Likewise.
406 * gimplify.c: Likewise.
407 * tree-dfa.c: Likewise.
408 * tree-flow-inline.h: Likewise.
409 * tree-into-ssa.c: Likewise.
410 * tree-ssa-alias.c: Likewise.
411 * tree-ssa-ccp.c: Likewise.
412 * tree-ssa-copy.c: Likewise.
413 * tree-ssa-dce.c: Likewise.
414 * tree-ssa-dom.c: Likewise.
415 * tree-ssa-operands.c: Likewise.
416 * tree-tailcall.c: Likewise.
417 * tree-vectorizer.c: Likewise.
418 * tree-vrp.c: Likewise.
419 * tree.c: Likewise.
420
d579f20b
JL
4212005-07-28 Jeff Law <law@redhat.com>
422
423 * tree-vrp.c (test_for_singularity): Extracted from ...
424 (simplify_cond_using_ranges): Attempt to simplify a relational
425 test to NE_EXPR. Dump information when a COND_EXPR is simplified.
426
5bb1823d
DN
4272005-07-28 Dorit Nuzman <dorit@il.ibm.com>
428
429 PR tree-optimization/22506
430 * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
431 phis whose argument is constant.
432
b92ba6ff
R
4332005-07-28 J"orn Rennecke <joern.rennecke@st.com>
434
435 PR rtl-optimization/18992
436 Back out this patch:
437 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
438 PR optimization/12142
439 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
440 uses of the register in the SET_SRC. Remove unnecessary argument.
441
442 Replace it with this:
443 * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
444 if flag_non_call_exceptions is set and the insn may trap, pass
445 pc_rtx as dest for recursion.
446 In SET_SRC part of SET case, if dest is already set, pass it down
447 unchanged.
448
09bac500
JH
4492005-07-28 Jan Hubicka <jh@suse.cz>
450
451 * cfg.c (update_bb_profile_for_threading): Use RDIV.
452 (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
453 (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
454 roundoff errors.
455 * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
456 profile when available.
457
4582005-07-28 Jan Beulich <jbeulich@novell.com>
a71aef0b
JB
459
460 * config/ia64/ia64.c (ia64_load_pair_ok): New.
461 (ia64_print_operand): Describe and handle 'X'.
462 (ia64_register_move_cost): Also handle FP_REGS.
463 (ia64_preferred_reload_class): Likewise.
464 (ia64_secondary_reload_class): Likewise.
465 (ia64_dependencies_evaluation_hook): New local variable c. Initialize
466 it. Also check for ITANIUM_CLASS_FLDP.
467 * config/ia64/ia64.h (FP_REGNO_P): New.
468 (HARD_REGNO_MODE_OK): Remove explusion of TImode.
469 (reg_class): Add FP_REGS.
470 (REG_CLASS_NAMES): Adjust for it.
471 (REG_CLASS_CONTENTS): Likewise.
472 (REGNO_REG_CLASS): Use FP_REGS where appropriate.
473 (REG_CLASS_FROM_LETTER): Handle 'x'.
474 (CLASS_MAX_NREGS): Handle FP_REGS.
475 (MEMORY_MOVE_COST): Likewise.
476 * config/ia64/ia64.md (itanium_class): Add fldp.
477 (type): Handle fldp.
478 (movti_internal): More allowable operand combinations. Use ldfp8 when
479 splitting unnecessary. Remove predicable attribute. Adjust
480 itanium_class attribute.
481 (smuldi3_highpart): Remove outdated comment.
482 (mulditi3, umulditi3, rotlti3): New expanders.
483 (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
484 (absti2): Disabled new insn for future reference.
485 Respective new splitters.
486 * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
487 * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
488 * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
489
77d1d8e0
JM
4902005-07-25 James A. Morrison <phython@gcc.gnu.org>
491
492 PR rtl-optimization/23047
493 * simplify-rtx.c (simplify_const_relational_operation): Respect
494 flag_wrapv for comparisons with ABS.
495
ff08cbee
JM
4962005-07-27 James A. Morrison <phython@gcc.gnu.org>
497
498 PR tree-optimization/22493
499 * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
500 VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
501
38c28a25
AH
5022005-07-27 Aldy Hernandez <aldyh@redhat.com>
503
504 * config/frv/frv.opt (moptimize-membar): New.
505
506 * doc/invoke.texi: Document -moptimize-membar and its inverse.
507
508 * config/frv/frv.h: Remove machine_function definition.
509
510 * config/frv/frv.c (struct frv_io): New.
511 (struct machine_function): Moved from frv.h. Add has_membar_p.
512 (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
513 (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
514 (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
515 (frv_optimize_membar_global, frv_optimize_membar): New functions.
516 (frv_reorg): Call frv_optimize_membar when appropriate.
517 (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
518 (frv_expand_builtin): Adjust calls accordingly.
519 (frv_io_address_cookie): New function.
520 (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
521 load or store rather than a special insn. Add ccnstant address and
522 io-type operands to the membar.
523 (frv_ifcvt_modify_tests): Unsign regno.
524 (frv_ifcvt_modify_tests): Same.
525
526 * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}. Change
527 UNSPEC_OPTIONAL_MEMBAR constant.
528 (builtin_read_<mode>): Delete.
529 (builtin_write_<mode>): Delete.
530 ("optional_membar_<mode>"): Add operand.
531
532 * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
533 * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
534 * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
535 * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
536 * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
537 * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
538 * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
539 * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
540 * testsuite/gcc.target/frv/all-read-write-1.c: New.
541
47c504ea
KK
5422005-07-28 Kaz Kojima <kkojima@gcc.gnu.org>
543
544 * df.c (df_uses_record): Handle SCRATCH.
545
ef11c839
SB
5462005-07-28 Steven Bosscher <stevenb@suse.de>
547
548 PR debug/20161
549 * passes.c (rest_of_decl_compilation): If decl is a type and
550 we have encountered errors, don't emit debug information.
551
1eb68dca 5522005-07-27 Kenneth Zadeck <zadeck@naturalbridge.com>
ef11c839 553
1eb68dca
KZ
554 * params.def: Fixed comment.
555
10252a62
BH
5562005-07-27 Bjoern Haase <bjoern.m.haase@web.de>
557
558 PR target/19885
559 * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
560 (TARGET_ASM_UNALIGNED_HI_OP): Add.
561 (TARGET_ASM_UNALIGNED_SI_OP): Add.
562
e4598783
SB
5632005-07-27 Steven Bosscher <stevenb@suse.de>
564
565 PR c++/22003
566 * varasm.c (assemble_start_function): Don't do anything that may
567 require a CFG if the current function is a thunk.
568
a9fdd472
GK
5692005-07-25 Geoffrey Keating <geoffk@apple.com>
570
571 * doc/install.texi (Prerequisites): Mention that perl is needed
572 to do export control in libstdc++ targetting Darwin.
573
2bd1e239
SB
5742005-07-27 Steven Bosscher <stevenb@suse.de>
575
576 PR rtl-optimization/17808
577 * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
578 (sched_insns_conditions_mutex_p): Split out from...
579 (add_dependence): ...here. But don't call it from here.
580 (add_dependence_list): Check sched_insns_conditions_mutex_p
581 before calling add_dependence.
582 (add_dependence_list_and_free): Likewise.
583 (fixup_sched_groups): Likewise.
584 (sched_analyze_1): Likewise.
585 (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
586 (sched_analyze): Likewise.
587 (sched_analyze_insn): Likewise.
588 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
589 * sched-rgn.c (add_branch_dependences): Likewise. Also, add
590 dependencies on all COND_EXEC insns to jumps ending basic blocks
591 when doing intrablock scheduling.
592 * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
593
880031e1
JL
5942005-07-27 Jeff Law <law@redhat.com>
595
596 * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
597 meeting a VR_ANTI_RANGE with a VR_RANGE. When intersecting
598 equivalency sets, correctly handle the case were vr0 has an
599 equivalency set, but vr1 does not.
600
b940ce0e
DN
6012005-07-27 Dorit Nuzman <dorit@il.ibm.com>
602
603 PR tree-optimization/23073
604 * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
605 vect_print_dump_info before fprintf.
606
26c40640
ZD
6072005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
608
609 PR tree-optimize/22348
610 * tree-ssa-loop-niter.c (number_of_iterations_cond):
611 Fold the partial computation.
612
3ac01fde
ZD
6132005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
614
615 PR tree-optimization/22325
616 * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
617 Declare.
618 * tree-scalar-evolution.c (scev_const_prop): Add generic final
619 value replacement.
620 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
621 (force_var_cost): ... this function.
622 (compute_phi_arg_on_exit): Export.
623
77fcaf4b
ZD
6242005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
625
626 PR tree-optimization/20773
627 * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
628 edge.
629
c11b0231
RG
6302005-07-27 Richard Guenther <rguenther@suse.de>
631
632 * tree-ssa-structalias.c (push_fields_onto_fieldstack):
633 Avoid pushing again if current struct contains only
634 fields we decomposed.
635
57a73709
JH
6362005-07-27 Jan Hubicka <jh@suse.cz>
637
093c2329
JH
638 PR tree-optimization/22574
639 * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
640 not available.
641
23504559
JH
642 * tree-tailcall.c (decrease_profile): New function.
643 (eliminate_tail_call): Use it.
644
57a73709
JH
645 * cgraphunit.c (cgraph_function_and_variable_visibility): Set
646 visibility flags correctly in whole program mode.
647
b5395c33
SE
6482005-07-26 Steve Ellcey <sje@cup.hp.com>
649
650 PR rtl-optimization/22472
651 * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
652
86979811
SB
6532005-07-26 Steven Bosscher <stevenb@suse.de>
654
655 PR tree-optimization/22504
656 * tree-complex.c (expand_complex_addition): Use 'code' instead
657 of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
658
faf9ab98
AH
6592005-07-26 Aldy Hernandez <aldyh@redhat.com>
660
661 * config.gcc (cpu_type): Add frv case.
662 (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
663 (supported_defaults): Add fr550 case.
664
31521cd4
DN
6652005-07-26 Diego Novillo <dnovillo@redhat.com>
666
667 PR 22591
668 * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
669 whether a pointer of type T * may point to objects of type T *.
670
45499411
DD
6712005-07-26 DJ Delorie <dj@redhat.com>
672
673 * configure: Regenerate.
674
576a4795
DJ
6752005-07-26 Dale Johannesen <dalej@apple.com>
676
677 * postreload-gcse.c (alloc_mem): Start CUID numbering at 1.
678
526635cb
MM
6792005-07-26 Mark Mitchell <mark@codesourcery.com>
680
681 * doc/install.texi (--with-build-sysroot): Fix grammatical error.
682 Clarify use of "build" in name.
683
c14ff86e
AH
6842005-07-26 Aldy Hernandez <aldyh@redhat.com>
685
686 * doc/extend.texi (Raw read/write Functions): New section.
687 * testsuite/gcc.target/frv/all-builtin-read8.c: New.
688 * testsuite/gcc.target/frv/all-builtin-read16.c: New.
689 * testsuite/gcc.target/frv/all-builtin-read32.c: New.
690 * testsuite/gcc.target/frv/all-builtin-read64.c: New.
691 * testsuite/gcc.target/frv/all-builtin-write8.c: New.
692 * testsuite/gcc.target/frv/all-builtin-write16.c: New.
693 * testsuite/gcc.target/frv/all-builtin-write32.c: New.
694 * testsuite/gcc.target/frv/all-builtin-write64.c: New.
695 * config/frv/frv.c: Add bdesc_loads global.
696 Add bdesc_stores global.
697 (frv_init_builtins): Add support for __builtin_{read/write}*.
698 (frv_volatile_memref): New.
699 (frv_expand_load_builtin): New.
700 (frv_expand_store_builtin): New.
701 * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
702 FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
703 FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
704 FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
705 * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
706 UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
707 (builtin_read_<mode>): New.
708 (builtin_write_<mode>): New.
709 (builtin_write64): New.
710 (optional_membar_<mode>): New.
711
db487452
R
7122005-07-26 J"orn Rennecke <joern.rennecke@st.com>
713
714 * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
715 (rather than units) against HOST_BITS_PER_WIDE_INT.
716
783455db
KH
7172005-07-26 Kazu Hirata <kazu@codesourcery.com>
718
719 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
720 ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
721 ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
722 config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
723 FSF address.
724
a4174ebf
KH
725 * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
726 tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
727 config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
728 comment typos.
729 * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
730
46c0a59d
RG
7312005-07-26 Richard Guenther <rguenther@suse.de>
732
733 PR tree-optimization/22486
734 * fold-const.c (fold_unary): Fold away useless component
735 references of the form (T *)&T.x, if the address
736 doesn't change.
737
3e2844cb
JW
7382005-07-25 James E Wilson <wilson@specifixinc.com>
739
740 * dwarf2out.c (add_call_src_coords_attributes): New.
741 (gen_inlined_subroutine_die): Call it.
742 (maybe_emit_file, init_file_table): Add comments.
743 (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
744 maybe_emit_file.
745 * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
746 (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
747 * tree.h (BLOCK_SOURCE_LOCATION): New.
748 (struct tree_block): New field locus.
749
9275de65
AS
7502005-07-26 Andreas Schwab <schwab@suse.de>
751
752 PR rtl-optimization/23043
753 * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
754 when allocating a struct unoccr.
755
5306ec31
RH
7562005-07-25 Richard Henderson <rth@redhat.com>
757
758 PR 22626
759 * tree-complex.c (gate_no_optimization): True if errors.
760 * Makefile.in (tree-complex.o): Update dependencies.
761
bfa653b3
AH
7622005-07-25 Aldy Hernandez <aldyh@redhat.com>
763
764 * config/frv/predicates.md (integer_register_operand): Use
765 GPR_AP_OR_PSEUDO_P.
766
43e364dd
AP
7672005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
768
769 PR tree-opt/22484
770 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
771 after fold.
772 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
773
c72f711f
AP
7742005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
775
776 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
777 types when flag_unsafe_math_optimizations is true.
778
160633c6
MM
7792005-07-25 Mark Mitchell <mark@codesourcery.com>
780
781 * gcc.c (option_map): Add --sysroot.
782 (process_command): Handle --sysroot.
783 (display_help): Document it.
784 * doc/cppopts.tex (-isysroot): Document.
785 * doc/invoke.texi (--sysroot): Document.
786 * doc/install.texi (--with-build-sysroot): Document.
787
788 * Makefile.in (inhibit_libc): New variable.
789 (INHIBIT_LIBC_CFLAGS): Likewise.
790 (LIBGCC2_CFLAGS): Include
791 $(INHIBIT_LIBC_CFLAGS).
792 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
793 ($(T)crtbegin.o): Do not use @inhibit_libc@.
794 ($(T)crtend.o): Likewise.
795 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
796 ($(T)crtendS.o): Likewise.
797 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
798 ($(T)crtendT.o): Likewise.
799 (stmp-fixinc): Do not complain about missing headers if
800 inhibit_libc.
801 * configure.ac (inhibit_libc): Set it to true/false.
802 (--with-build-sysroot): New option. Use it to set
803 SYSTEM_HEADER_DIR.
804 * configure: Regenerated.
805
1490f93a
MH
8062005-07-25 Manfred Hollstein <mh@suse.com>
807
808 * calls.c (store_one_arg): Fix unsigned comparison warning.
809
76e20664
SB
8102005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
811
812 PR other/22337
813 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
814 (ggc_print_statistics): Initialize variable before use.
815
5c97e2de
RG
8162005-07-25 Richard Guenther <rguenther@suse.de>
817
818 * tree-dfa.c (mark_new_vars_to_rename): Protect against
819 calling with a PHI_NODE argument.
820
821 * tree-flow-inline.h (overlap_subvar): Protect against
822 possible overflow.
823
7fefc172
PB
8242005-07-25 Paolo Bonzini <bonzini@gnu.org>
825
826 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
827 * configure: Regenerate.
828
86a07404
IR
8292005-07-25 Ira Rosen <irar@il.ibm.com>
830
831 * expr.c (highest_pow2_factor): Make extern.
832 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
833 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
834 record_array_differ_p, array_ptr_differ_p): Likewise.
835 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
836 additional cases. Call the above functions.
837 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
838 base_object_differ_p when there are two base objects. Otherwise, compare
839 base address and offset. Call may_alias_p.
840 (dump_data_reference): Use a correct field name.
841 (analyze_array): Make static. Initialize new data-ref fields.
842 (analyze_indirect_ref): New function.
843 (init_data_ref): Initialize new data-ref fields.
844 (strip_conversion): Moved from tree-vect-analyze.c.
7fefc172
PB
845 (analyze_offset_expr, get_ptr_offset, address_analysis,
846 object_analysis): Likewise.
86a07404 847 (analyze_offset): New function.
86979811 848 (create_data_ref): Likewise.
86a07404
IR
849 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
850 dimensions for ARRAY_REFs only.
851 (build_classic_dist_vector): Make static.
852 (access_functions_are_affine_or_constant_p): Call macro to get the
853 address of access functions.
854 (compute_all_dependences): Add new parameter
855 compute_self_and_read_read_dependences. Compute self and read-read
856 dependences if it is true.
857 (find_data_references_in_loop): Call create_data_ref. Initialize new
858 data-ref fields.
859 (compute_data_dependences_for_loop): Add new parameter
860 compute_self_and_read_read_dependences. Remove parameter nb_loops,
7fefc172
PB
861 compute nb_loops. Call compute_all_dependences,
862 build_classic_dist_vector and build_classic_dir_vector with correct
863 parameters.
864 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
865 with correct parameters. Compare dimensions for ARRAY_REFs only.
86a07404
IR
866 (free_data_refs): Call macro to free access functions.
867 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
868 fields from stmt_vinfo.
869 (struct base_object_info): New structure.
870 (struct data_reference): Move fields to base_object_info. Add fields
871 first_location and object_info for above structures. Move fields from
7fefc172
PB
872 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
873 aligned_to. Add macros to access the new fields.
86a07404
IR
874 Update functions declarations.
875 * tree-flow.h (is_aliased_with): Declare.
876 * tree-loop-linear.c (linear_transform_loops): Call
877 compute_data_dependences_for_loop with correct parameters.
878 * tree-ssa-alias.c (is_aliased_with): New function.
86979811 879 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
86a07404
IR
880 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
881 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
882 vect_base_addr_differ_p, compute_subscript_distance and
883 build_classic_dist_vector. Add printings. Check absolute value of
884 distance.
7fefc172
PB
885 (vect_analyze_data_ref_dependences): Go through ddrs instead of
886 data-refs.
86a07404
IR
887 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
888 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
889 to bytes. Add printing.
7fefc172
PB
890 (vect_compute_data_refs_alignment): Go through loads and stores in one
891 loop.
86a07404
IR
892 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
893 vect_analyze_data_ref_access): Likewise.
894 (vect_analyze_pointer_ref_access): Remove.
895 (vect_address_analysis, vect_object_analysis): Likewise.
896 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
897 and analyze data-refs in the loop.
7fefc172
PB
898 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
899 fields of data-ref instead of stmt. Add init to the offset from the
900 base.
86a07404
IR
901 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
902 (vect_update_init_of_dr): Likewise.
903 (vect_update_inits_of_drs): Go through loads and stores in one loop.
7fefc172
PB
904 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
905 removed fields.
86a07404
IR
906 (new_loop_vec_info): Initialize new fields.
907 (destroy_loop_vec_info): Free new fields.
908 (vect_strip_conversion): Remove.
909 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
910 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
911 datarefs. Add new field ddrs.
912 Add macros for the new fields access.
913 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
914 base_aligned_p, misalignment, memtag, ptr_info and subvars.
915 Remove their macros.
916 * tree.h (highest_pow2_factor): Declare.
917
0dc42b03
JJ
9182005-07-25 Jakub Jelinek <jakub@redhat.com>
919
920 * calls.c (store_one_arg): Check for sibling call MEM arguments
921 from already clobbered incoming argument area.
922
104f8784
KG
9232005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
924
925 * c-common.c (check_missing_format_attribute): New.
926 * c-common.h (check_missing_format_attribute): Likewise.
927 * c-typeck.c (convert_for_assignment): Use it.
928
1b8452d0
AS
9292005-07-24 Andreas Schwab <schwab@suse.de>
930
931 * config/m68k/m68k.md ("extendqidi2"): When source is an address
932 register use a word move. Correct operand of ext.w in 68000 code.
933
2b402955
MM
9342005-07-23 Mark Mitchell <mark@codesourcery.com>
935
936 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
937 variables as declarations, rather than definitions.
938
c8af1197
IR
9392005-07-24 Ira Rosen <irar@il.ibm.com>
940
86979811
SB
941 PR tree-optimization/22526
942 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
943 of the zero node.
c8af1197 944
1b135aa5
FXC
9452005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
946
947 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
948 that C99 reserve for future use. Use it to define clog10,
949 clog10f and clog10l.
950
ac0f3f39
KG
9512005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
952
953 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
954 * configure.ac: Check for -Wmissing-format-attribute.
955
956 * configure: Regenerate.
957
db753fa1
RH
9582005-07-23 Richard Henderson <rth@redhat.com>
959
960 PR tree-optimization/22623
961 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
962
28f155be
GB
9632005-07-23 Giovanni Bajo <giovannibajo@libero.it>
964
965 PR target/22577
966 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
967
db857e7d
KG
9682005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
969
970 * Makefile.in (C_TREE_H): Update dependencies.
971 * c-tree.h: Include toplev.h.
972 * diagnostic.h (diagnostic_set_info): Add format attribute.
973 * rtl-error.c (diagnostic_for_asm): Likewise.
974
118ea793
CF
9752005-07-23 Chao-ying Fu <fu@mips.com>
976
977 * config/mips/mips-dsp.md: New file.
978 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
979 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
980 functions.
981 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
982 MIPS_BUILTIN_BPOSGE32.
983 (mips_expand_builtin_direct): Add one parameter to indicate that
984 builtin functions need to return a value.
985 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
986 functions.
987 (mips_regno_to_class): Add classes for 12 new DSP registers.
988 (mips_subword): Change to check four HI registers.
989 (mips_output_move): Output move to and from 6 new DSP accumulators.
990 (override_options): Make sure -mdsp and -mips16 are not used together.
991 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
992 for machine modes.
993 (mips_conditional_register_usage): Disable 6 new DSP accumulators
994 when !TARGET_DSP.
995 (print_operand): Add 'q' for printing DSP accumulators.
996 (mips_cannot_change_mode_class): Check ACC_REGS.
997 (mips_secondary_reload_class): Check ACC_REGS.
998 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
999 (mips_register_move_cost): Check ACC_REGS.
1000 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
1001 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
1002 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
1003 (dsp_bdesc): New array.
1004 (bdesc_arrays): Add DSP builtin function table.
1005 (mips_prepare_builtin_arg): Check predicate again after
1006 copy_to_mode_reg.
1007 (mips_expand_builtin): Add one more parameter to
1008 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
1009 MIPS_BUILTIN_BPOSGE32.
1010 (mips_init_builtins): Initialize new function types.
1011 (mips_expand_builtin_direct): Check if builtin functions need to
1012 return a value and pass operands properly.
1013 (mips_expand_builtin_bposge): New function.
1014 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
1015 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
1016 (FIRST_PSEUDO_REGISTER): Increase to 188.
1017 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1018 Update for 12 new DSP registers.
1019 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
1020 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
1021 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
1022 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
1023 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
1024 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
1025 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
1026 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
1027 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
1028 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
1029 (REGISTER_NAMES): Add names for 12 new DSP registers.
1030 * config/mips/mips.md: Include mips-dsp.md.
1031 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1032 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1033 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1034 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1035 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1036 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1037 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1038 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1039 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1040 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1041 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1042 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1043 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1044 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1045 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1046 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1047 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1048 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1049 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1050 (UNSPEC_RDDSP): New constants.
1051 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
1052 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
1053 A<-d alternative.
1054 * config/mips/mips.opt (-mdsp): New option.
1055 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
1056 (reg_imm10_operand): New predicates.
1057 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
1058 * doc/invoke.texi (-mdsp): Document new option.
1059
d2fcbf6f
DD
10602005-07-22 DJ Delorie <dj@redhat.com>
1061
1062 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
1063 to warning calls.
1064 * tree-inline.c (inlinable_function_p): Likewise.
1065
9881e3e5
MM
10662005-07-22 Mark Mitchell <mark@codesourcery.com>
1067
1068 PR debug/21828
1069 * toplev.c (check_global_declarations): Do not mark undefined
1070 variables as DECL_IGNORED_P.
1071 * varasm.c (first_global_object_name): GTY it.
1072 (weak_global_object_name): Likewise.
1073 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
1074 a string to go into {weak,first}_global_object_name.
1075
1a8d0d41
DD
10762005-07-22 DJ Delorie <dj@redhat.com>
1077
1078 * c-format.c (check_function_format): Change warning control
1079 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
1080
17c7e33e
DN
10812005-07-22 Diego Novillo <dnovillo@redhat.com>
1082
1083 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
1084 &PTR->FLD a dereference of PTR.
1085 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
1086 a potential dereference of PTR.
1087
45002e59
R
10882005-07-22 J"orn Rennecke <joern.rennecke@st.com>
1089
191e1ff2
R
1090 PR rtl-optimization/20370
1091 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
1092 call allocate_reg_info if necessary.
1093
475a3eef
R
1094 PR rtl-optimization/21848
1095 * calls.c (emit_library_call_value_1): For const functions, add
1096 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
1097
29c1846b
R
1098 PR rtl-optimization/22445
1099 * cselib.c (target.h): Include.
1100 (rtx_equal_for_cselib_p): Allow commutative matches.
1101 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
1102 Remove MODE parameter. Changed all callers.
1103
45002e59
R
1104 PR rtl-optimization/22258
1105 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
1106 New functions.
1107 (try_combine): Use likely_spilled_retval_p.
1108
db869733
PW
11092005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
1110
1111 * config.gcc: Add crx-elf support.
1112
1113 * doc/contrib.texi: Mention crx.
1114 * doc/extend.texi: Document crx extensions.
1115 * doc/install.texi: Document crx install.
1116 * doc/invoke.texi: Document crx options.
1117 * doc/md.texi: Document crx constraints.
1118
1119 * config/crx/crx-protos.h: New file.
1120 * config/crx/crx.c: New file.
1121 * config/crx/crx.h: New file.
1122 * config/crx/crx.md: New file.
1123 * config/crx/crx.opt: New file.
1124 * config/crx/t-crx: New file.
1125
32cafd73
MH
11262005-07-22 Manfred Hollstein <mh@suse.com>
1127
1128 * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
1129 warnings.
1130 (int_add_graph_edge): Likewise.
1131 (collapse_nodes): Likewise.
1132 (process_unification_queue): Likewise.
1133
ee184c4d 11342005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
86979811 1135 Laurent GUERBY <laurent@guerby.net>
ee184c4d 1136
86979811
SB
1137 PR tree-optimization/22336
1138 * function.c (record_block_change): Check for
1139 cfun->ib_boundaries_block.
ee184c4d 1140
b49ceb45
JM
11412005-07-21 James A. Morrison <phython@gcc.gnu.org>
1142
1143 * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
1144 (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
1145
30c54de9
DD
11462005-07-21 DJ Delorie <dj@redhat.com>
1147
1148 * toplev.c (warn_deprecated_use): Add warning control to warning
1149 call.
c303630a
DD
1150 * c-typeck.c (parser_build_binary_op): Likewise.
1151 (c_finish_if_stmt): Likewise.
30480ec4
DD
1152 * c-common.c (check_function_sentinel): Likewise.
1153 (check_nonnull_arg): Likewise.
30c54de9 1154
95a8c155
RH
11552005-07-21 Richard Henderson <rth@redhat.com>
1156
1157 PR tree-opt/22504
1158 * tree-complex.c (complex_ssa_name_components): New.
1159 (cvc_lookup): Allow entry not found.
1160 (create_components): Remove.
1161 (create_one_component_var, get_component_var): New.
1162 (get_component_ssa_name, set_component_ssa_name): New.
1163 (extract_component): Use get_component_ssa_name.
1164 (update_complex_components): Use set_component_ssa_name.
1165 (update_complex_components_on_edge): Likewise.
1166 (update_phi_components): Create new PHI nodes directly, instead
1167 of adding insns to edges.
1168 (tree_lower_complex): Allocate and free complex_variable_components
1169 and complex_ssa_name_components here.
1170
c05a0766
DB
11712005-07-20 Daniel Berlin <dberlin@dberlin.org>
1172
1173 * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
1174 revert to returning false.
1175
de343c8d
UB
11762005-07-21 Uros Bizjak <uros@kss-loka.si>
1177
86979811
SB
1178 PR target/21149
1179 * config/i386/i386.md (sse_movhlps): Fix vec_select values.
de343c8d 1180
5acc26ef
UB
11812005-07-21 Uros Bizjak <uros@kss-loka.si>
1182
1183 PR target/22576
1184 * config/i386/i386.md (cmpxf): Change operand constraints
1185 to "nonmemory_operand".
1186
61cb44fe
AP
11872005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
1188
1189 * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
1190
e2fe73f6
AP
11912005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
1192
1193 PR middle-end/21180
1194 * fold-const.c (fold_build1): Add checksum for the operands.
1195 (fold_build2): Likewise.
1196 (fold_build3): Likewise.
1197
9d24eb54
AP
11982005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
1199
1200 PR middle-end/19055
1201 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
1202
b2e0afa0
PB
12032005-07-21 Paolo Bonzini <bonzini@gnu.org>
1204
1205 * common.opt (-fforward-propagate): Committed by mistake,
1206 removed.
1207
2e48874f
VR
12082005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1209
1210 * reg-stack.c: Fix comment typo(s).
1211 * tree-ssa-operands.c: Likewise.
1212 * tree-vectorizer: Likewise.
1213
889d8465
NC
12142005-07-21 Nick Clifton <nickc@redhat.com>
1215
1216 * config/sh/symbian.c: Replace C++ style line comments with C
1217 style line comments.
86979811 1218 (symbian_add_attribute): Do not use a ? operator on the LHS of
889d8465 1219 an assignment.
86979811 1220 (sh_symbian_handle_dll_attribute): Change the type of the
889d8465
NC
1221 method vector to "VEC(tree,gc)*" and use vector accessor
1222 macros to walk over the elements.
86979811
SB
1223 (symbian_export_vtable_and_rtti_p): Likewise.
1224 (symbian_class_needs_attribute_p): Likewise.
889d8465 1225
2fab365e
PB
12262005-07-21 Paolo Bonzini <bonzini@gnu.org>
1227
1228 PR target/22085
1229 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
1230 initialize targetm.resolve_overloaded_builtin here.
1231 (altivec_expand_overloaded_builtin): Make it non-static.
1232 * config/rs6000/rs6000-protos.h
1233 (altivec_expand_overloaded_builtin): New prototype.
1234 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
1235 targetm.resolve_overloaded_builtin here.
1236 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
1237
f9cc1a70 12382005-07-21 Paolo Bonzini <bonzini@gnu.org>
86979811 1239 Zdenek Dvorak <dvorakz@suse.cz>
f9cc1a70
PB
1240
1241 PR tree-optimization/19210
1242 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
1243 New.
1244 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
1245 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
1246 rely on unproven assumptions.
1247 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
1248 * tree-flow.h (number_of_iterations_exit): Add final parameter.
1249 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
1250 to number_of_iterations_exit.
1251 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
1252 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
1253 * tree-ssa-loop-niter.c (find_loop_niter,
1254 estimate_numbers_of_iterations_loop): Likewise.
1255 (number_of_iterations_exit): Honor the new options.
1256 * doc/invoke.texi (Wunsafe-loop-optimizations,
1257 funsafe-loop-optimizations): Document them.
1258
cb83c2ec
RS
12592005-07-21 Richard Sandiford <richard@codesourcery.com>
1260
1261 PR rtl-optimization/22167
1262 * gcse.c (hoist_code): Fix hoist_exprs[] check.
1263
5e5cbbfb
AN
12642005-07-20 Adam Nemet <anemet@lnxw.com>
1265
1266 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
1267 __do_global_dtors_aux longcall.
1268
c2acaf06
KH
12692005-07-20 Kazu Hirata <kazu@cs.umass.edu>
1270
1271 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
1272 (old_special_pred_table): Don't reference
1273 SPECIAL_MODE_PREDICATES.
1274 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
1275 * config/arc/arc.h: Don't mention PREDICATE_CODES.
1276 * config/sh/predicates.h: Don't mention
1277 SPECIAL_MODE_PREDICATES.
1278 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
1279 Remove.
1280
38b2d076
DD
12812005-07-20 DJ Delorie <dj@redhat.com>
1282
1283 * config.gcc: Add m32c-elf support.
1284
1285 * doc/contrib.texi: Mention m32c.
1286 * doc/extend.texi: Document m32c extensions.
1287 * doc/install.texi: Mention m32c.
1288 * doc/invoke.texi: Document m32c options.
1289 * doc/md.texi: Document m32c constraints.
1290
1291 * config/m32c/addsub.md: New file.
1292 * config/m32c/bitops.md: New file.
1293 * config/m32c/cond.md: New file.
1294 * config/m32c/jump.md: New file.
1295 * config/m32c/m32c-lib1.S: New file.
1296 * config/m32c/m32c-lib2.c: New file.
1297 * config/m32c/m32c-modes.def: New file.
1298 * config/m32c/m32c-pragma.c: New file.
1299 * config/m32c/m32c-protos.h: New file.
1300 * config/m32c/m32c.abi: New file.
1301 * config/m32c/m32c.c: New file.
1302 * config/m32c/m32c.h: New file.
1303 * config/m32c/m32c.md: New file.
1304 * config/m32c/m32c.opt: New file.
1305 * config/m32c/minmax.md: New file.
1306 * config/m32c/mov.md: New file.
1307 * config/m32c/muldiv.md: New file.
1308 * config/m32c/predicates.md: New file.
1309 * config/m32c/prologue.md: New file.
1310 * config/m32c/shift.md: New file.
1311 * config/m32c/t-m32c: New file.
1312
50b69666
KK
13132005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
1314
1315 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
1316 (stack_protect_set, stack_protect_test): New expanders.
86979811 1317 (stack_protect_set_si, stack_protect_set_si_media,
50b69666 1318 stack_protect_set_di_media, stack_protect_test_si,
86979811 1319 stack_protect_test_si_media, stack_protect_test_di_media):
50b69666
KK
1320 New insns.
1321
71b50543
AP
13222005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
1323
1324 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
1325
4db8040c
JM
13262005-07-20 James A. Morrison <phython@gcc.gnu.org>
1327
1328 * tree.h (tree_expr_nonzero_p): Export.
1329 * fold-const.c (tree_expr_nonzero_p): Likewise.
1330 Return true for CALL_EXPRs that are alloca calls.
1331 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
1332 against zero.
1333 * tree-flow.h (expr_computes_nonzero): Remove.
1334 * tree-vrp.c (expr_computes_nonzero): Remove.
86979811 1335 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
4db8040c
JM
1336 (extract_range_from_unary_expr): Likewise.
1337 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
1338 tree_expr_nonzero_p.
1339
6d459e2b
BS
13402005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
1341
09350e36
BS
1342 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
1343 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
1344 extra arg "picreg" and use it instead of pic_offset_table_rtx.
1345 All callers changed.
1346 (frame_related_constant_load): New arg "related" which controls
1347 setting of RTX_FRAME_RELATED_P. All callers changed.
1348 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
1349 (bfin_expand_prologue): Add stack limit checking.
1350 * config/bfin/bfin.md (trapifcc): New pattern.
1351
05905337
BS
1352 * config/bfin/bfin.c: Include "langhooks.h".
1353 (def_builtin): Go through lang_hooks to call builtin_function.
1354
6d459e2b
BS
1355 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
1356 * config/bfin/predicates.md (symbol_ref_operand): New.
1357 (call_insn_operand): Delete. All callers changed to use
1358 register_no_elim_operand.
1359 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
1360 call_cookie field.
1361 (function_arg): Use it to generate the call's operand 2.
1362 (bfin_longcall_p): New function.
1363 (bfin_expand_call): Extra arg "cookie". All callers and declaration
1364 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
1365 determine if the address needs to be in a REG.
1366 (bfin_handle_longcall_attribute): New function.
1367 (bfin_attribute_table): Add "longcall" and "shortcall".
1368 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
1369 (CUMULATIVE_ARGS): New member call_cookie.
1370 (PREDICATE_CODES): Add symbol_ref_operand.
1371 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
1372 extra USE to the pattern.
1373 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
1374 New patterns, split off call_insn, sibcall_insn, call_value_insn and
1375 sibcall_value_insn; now the new patterns handle direct calls and the
1376 old ones indirect calls.
1377 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
1378
67135ef4
ZD
13792005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
1380
1381 * doc/trouble.texi: Update section on handling of empty loops.
1382
fdda361d
KH
13832005-07-20 Kazu Hirata <kazu@codesourcery.com>
1384
1385 * config.gcc: Remove support for sparc-*-openbsd*,
1386 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
1387 ns32k-*-netbsd*.
1388 * config.host: Remove support for i860-*-sysv4* as a host.
1389 * config/i860/*, config/ip2k/*, config/ns32k/*,
1390 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
1391 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
1392 mention obsolete ports.
1393
96a2347e
KK
13942005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
1395
1396 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
1397 soft frame pointer.
1398 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
1399 of frame_pointer_rtx.
1400 (sh_expand_epilogue): Likewise.
1401 (sh_set_return_address): Likewise.
1402 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
1403 instead of FRAME_POINTER_REGNUM if needed. Add elimination
1404 offsets from FRAME_POINTER_REGNUM.
1405 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
1406 (sh_register_names): Add initializer for sfp.
1407 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
1408 (VALID_REGISTER_P): Likewise.
1409 (FIRST_PSEUDO_REGISTER): Update.
1410 (DWARF_FRAME_REGISTERS): Define.
1411 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
1412 (HARD_FRAME_POINTER_REGNUM): Define.
1413 (FRAME_POINTER_REGNUM): Redefine.
1414 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
1415 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
1416 from FRAME_POINTER_REGNUM.
1417 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
1418 FRAME_POINTER_REGNUM.
1419 (REG_CLASS_CONTENTS): Add sfp.
1420 (REG_ALLOC_ORDER): Likewise.
1421 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
1422 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
1423 of frame_pointer_rtx.
1424 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
1425
1ade5842
JM
14262005-07-19 James A. Morrison <phython@gcc.gnu.org>
1427
1428 * fold-const.c (tree_expr_nonnegative_p): Only return true for
1429 ABS_EXPR when flag_wrapv is false because of INT_MIN.
1430 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
1431 of an ABS_EXPR.
1432 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
1433 ABS_EXPR<x>.
1434
4038c495
GB
14352005-07-20 Giovanni Bajo <giovannibajo@libero.it>
1436
1437 Make CONSTRUCTOR use VEC to store initializers.
1438 * c-common.c (complete_array_type): Update to cope with VEC in
1439 CONSTRUCTOR_ELTS.
1440 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
1441 (pp_c_constructor_elts): New function.
1442 * c-pretty-print.h (pp_c_constructor_elts): Declare.
1443 * c-typeck.c (build_function_call, build_c_cast, digest_init,
1444 struct constructor_stack, struct initializer_stack,
1445 constructor_elements, push_init_level, pop_init_level,
1446 add_pending_init, find_init_member, output_init_element): Update to
1447 cope with VEC in CONSTRUCTOR_ELTS.
1448 * coverage.c (build_fn_info_value, build_ctr_info_value,
1449 build_gcov_info): Likewise.
1450 * expr.c (categorize_ctor_elements_1, store_constructor,
1451 expand_expr_real_1): Likewise.
1452 * fold-const.c (fold_ternary): Likewise.
1453 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
1454 gimplify_init_constructor, gimplify_expr): Likewise.
1455 * tree-dump.c (dequeue_and_dump): Likewise.
1456 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
1457 node.
1458 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
1459 CONSTRUCTOR_ELTS.
1460 * tree-sra.c (generate_element_init_1): Likewise.
1461 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
1462 * tree-ssa-operands.c (get_expr_operands): Likewise.
1463 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1464 * tree-vect-transform.c (vect_get_vec_def_for_operand):
1465 (get_initial_def_for_reduction): Likewise.
1466 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
1467 value handle in annotations.
1468 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
1469 tree_node_structure): Add support for constr_kind.
1470 (build_vector_from_ctor, build_constructor_single,
1471 build_constructor_from_list): New functions.
1472 (build_constructor): Update to take a VEC instead of a TREE_LIST.
1473 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
1474 Update to cope with VEC in CONSTRUCTOR_ELTS.
1475 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
1476 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
1477 CONSTRUCTOR_APPEND_ELT): New macros.
1478 (struct constructor_elt, struct tree_constructor): New data types.
1479 (union tree_node): Add tree_constructor field.
1480 * treestruct.def: Define TS_CONSTRUCTOR.
1481 * varasm.c (const_hash_1, compare_constant, copy_constant,
1482 compute_reloc_for_constant, output_addressed_constants,
1483 initializer_constant_valid_p, output_constant,
1484 array_size_for_constructor, output_constructor): Update to cope with
1485 VEC in CONSTRUCTOR_ELTS.
1486 * vec.h (VEC_empty, VEC_copy): New macros.
1487
f37d7c60
DP
14882005-07-19 Devang Patel <dpatel@apple.com>
1489
1490 * dbxout.c (dbxout_type): Check Objective-C++ lang.
1491
af62f6f9
RH
14922005-07-19 Richard Henderson <rth@redhat.com>
1493
1494 PR tree-opt/22278
1495 * gimplify.c (gimplify_expr): Use main variant type for the temp
1496 destination for a discarded volatile read.
1497 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
1498 casts between non-void types that change volatility.
1499
b9b8dde3
DD
15002005-07-15 DJ Delorie <dj@redhat.com>
1501
1502 * toplev.h: Add comment about the first parameter for warning().
1503 * errors.h: Likewise.
1504
1505 * c.opt (Wpragmas): New.
1506 * doc/invoke.texi: Document it.
1507
1508 * function.c (do_warn_unused_parameter): Add warning control to
1509 warning call.
1510 * c-decl.c (warn_if_shadowing): Likewise.
1511 * c-lex.c (cb_def_pragma): Likewise.
1512 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
1513 (pop_alignment): Likewise.
1514 (handle_pragma_pack): Likewise.
1515 (apply_pragma_weak): Likewise.
1516 (handle_pragma_weak): Likewise.
1517 (handle_pragma_redefine_extname): Likewise.
1518 (add_to_renaming_pragma_list): Likewise.
1519 (handle_pragma_extern_prefix): Likewise.
1520 (maybe_apply_renaming_pragma): Likewise.
1521 (handle_pragma_visibility): Likewise.
1522
1523 * config/c4x/c4x-c.c (BAD): Likewise.
1524 (c4x_parse_pragma): Likewise.
1525 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
1526 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
1527 (rs6000_pragma_longcall): Likewise.
1528 * config/v850/v850-c.c (pop_data_area): Likewise.
1529 (ghs_pragma_section): Likewise.
1530 (ghs_pragma_section): Likewise.
1531 (ghs_pragma_interrupt): Likewise.
1532 (ghs_pragma_starttda): Likewise.
1533 (ghs_pragma_startsda): Likewise.
1534 (ghs_pragma_startzda): Likewise.
1535 (ghs_pragma_endtda): Likewise.
1536 (ghs_pragma_endsda): Likewise.
1537 (ghs_pragma_endzda): Likewise.
1538
6a9a79a8
DB
15392005-07-19 Danny Berlin <dberlin@dberlin.org>
1540 Kenneth Zadeck <zadeck@naturalbridge.com>
1541
1542 * Makefile.in: Removed tree-promote-statics.c
1543 * tree-promote-statics.c: Removed.
1544 * common.opt: Removed flag-promote-statics.
1545 * opts.c: Ditto.
1546 * passes.c: Removed tree-promote-statics pass.
1547 * tree-pass.h: Ditto.
1548 * timevar.def: Removed TV_PROMOTE_STATICS.
1549
1550
0219cf3d
GP
15512005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
1552
1553 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
1554 and *-*-freebsd9.
1555 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
1556
7876a414
KG
15572005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1558
1559 PR c/22476
1560 * c-common.c (check_function_arguments): Call
1561 'check_function_format' if either -Wformat or
1562 -Wmissing-format-attribute are specified.
1563 * c-format.c (check_function_format): Check -Wformat before
1564 calling 'check_format_info'.
1565 * c-opts.c (c_common_post_options): Don't warn for
1566 -Wmissing-format-attribute without -Wformat.
1567 * c-typeck.c (convert_for_assignment): Detect additional cases for
1568 -Wmissing-format-attribute.
1569 * doc/invoke.texi (-Wmissing-format-attribute): Document new
1570 behavior.
1571
98ea7437
RG
15722005-07-19 Richard Guenther <rguenther@suse.de>
1573
1574 * config/i386/i386.md (lrint<mode>2): Use temporary
1575 instead of clobbering non-existent memory.
1576
89a0b917
NC
15772005-07-19 Nick Clifton <nickc@redhat.com>
1578
1579 * config/avr/avr.c (legitimate_address_p): Fix debugging print
1580 statement to avoid displaying ASCII control characters.
1581
dfea6c85
BE
15822005-07-19 Ben Elliston <bje@au.ibm.com>
1583
1584 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
1585 * cfganal.c (find_edge_index): Ditto.
1586 * combine.c (combine_instructions): Ditto.
1587 * ddg.c (create_scc): Ditto.
1588 (find_successors): Ditto.
1589 (find_predecessors): Ditto.
1590 (find_nodes_on_paths): Ditto.
1591 (longest_simple_path): Ditto.
1592 * flow.c (update_life_info): Ditto.
1593 (count_or_remove_death_notes): Ditto.
1594 (clear_log_links): Ditto.
1595 * modulo-sched.c (generate_reg_moves): Ditto.
1596 (find_max_asap): Ditto.
1597 (find_max_hv_min_mob): Ditto.
1598 (find_max_dv_min_mob): Ditto.
1599 * sbitmap.c (sbitmap_first_set_bit): Ditto.
1600 * sched-rgn.c (extract_edgelst): Ditto.
1601 * tree-into-ssa.c (prepare_names_to_update): Ditto.
1602 (dump_update_ssa): Ditto.
1603 (ssa_names_to_replace) Ditto.
1604 (switch_virtuals_to_full_rewrite): Ditto.
1605 (update_ssa): Ditto.
1606 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
1607
b9d33488
DB
16082005-07-18 Daniel Berlin <dberlin@dberlin.org>
1609
1610 Fix PR tree-optimization/22483
1611
1612 * tree-complex.c (create_components): Use
1613 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
1614 * tree-flow-inline.h (fill_referenced_var_vec): New function.
1615 * tree-flow.h (safe_referenced_var_iterator): New structure.
1616 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
1617 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
1618 safe_referenced_var iterator.
1619 (add_type_alias): Ditto.
1620
9fa26457
SB
16212005-07-19 Steven Bosscher <stevenb@suse.de>
1622
1623 * loop-init.c (rest_of_handle_loop2): Remove.
1624 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
1625 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
1626 (pass_rtl_loop_init, pass_rtl_loop_done,
1627 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
1628 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
1629 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
1630 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
1631 pass_tree_loop_done, and pass_tree_unswitch.
1632 (gate_loop): Rename to gate_tree_loop.
1633 * passes.c (init_optimization_passes): Update for renamed tree
1634 loop passes. Add the new loop2 passes as subpasses of loop2.
1635 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
1636 Update for the renamed tree loop passes.
1637
7825308e
ILT
16382005-07-18 Ian Lance Taylor <ian@airs.com>
1639
1640 PR middle-end/22057
1641 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
1642 blocks when optimizing.
1643
2928d0f8
SE
16442005-07-18 Steve Ellcey <sje@cup.hp.com>
1645
1646 * common.opt (frename-registers): Initialize to 2.
1647 (fweb): Ditto.
1648 (fgcse-after-reload): Ditto.
1649 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
1650 (process_options): Only change flag_web, flag_rename_registers,
1651 and flag_rerun_cse_after_loop if not explicitly set by user.
1652
28356f52
JB
16532005-07-18 Jan Beulich <jbeulich@novell.com>
1654
1655 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
1656 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
1657 in 64-bit mode the same as DImode in 32-bit mode.
1658 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
1659 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
1660 mode. Add new mode parameter.
1661 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
1662 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
1663 x86_64_shift_adj): New expanders.
1664 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
1665 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
1666 insns.
1667 Respective new splitters. Use renamed shift splitter helpers in 32-bit
1668 DImode shift splitters.
1669 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
1670 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
1671 mode parameter.
1672
422edd6f
JB
16732005-07-18 Jan Beulich <jbeulich@novell.com>
1674
1675 * i386.md (movdi_extzv_1): New.
1676 (zero_extendhidi2): Combine alternatives and never force use of
1677 REX64 prefix.
1678 (zero_extendqidi2): Likewise. Don't restrict input selection.
1679
c625053b
DB
16802005-07-17 Daniel Berlin <dberlin@dberlin.org>
1681
1682 Fix PR tree-optimization/22531
1683 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
1684 moment.
1685
3b1355f3
DB
16862005-07-17 Daniel Berlin <dberlin@dberlin.org>
1687
1688 * tree-promote-statics.c (pass_promote_statics): Change dump file
1689 name.
1690
16912005-07-17 Daniel Berlin <dberlin@dberlin.org>
45159bf6
DB
1692
1693 * tree-optimize.c (init_tree_optimization_passes): Add
1694 pass_eliminate_useless_stores pass.
1695 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
1696 * tree-ssa-pre.c (is_copy_stmt): New function.
1697 (follow_copies_till_vuse): Ditto.
1698 (do_eustores): Ditto.
1699 (gate_eustores): Ditto.
1700
7544a87f
RH
17012005-07-16 Richard Henderson <rth@redhat.com>
1702
1703 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
1704
bf0d50f1
KZ
17052005-07-16 Danny Berlin <dberlin@dberlin.org>
1706 Kenneth Zadeck <zadeck@naturalbridge.com>
1707
1708 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
1709 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
1710 ipa-type-escape.h, tree-promote-statics.c
1711 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
1712 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
1713 tree-promote-statics.c: new files.
1714 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
1715 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
1716 int nonlocal_set_p, mark_constant_function): Deleted.
1717 (rest_of_handle_cfg): Removed call to mark_constant_function.
86979811 1718 (nonoverlapping_component_refs_p): Added calls to support
bf0d50f1 1719 type based aliasing.
86979811 1720 * tree-ssa-alias.c (may_alias_p,
bf0d50f1
KZ
1721 compute_flow_insensitive_aliasing): Ditto.
1722 * calls.c (flags_from_decl_or_type): Removed reference to
1723 cgraph_rtl_info.
86979811 1724 * c-typeck.c (convert_arguments): Make builtins tolerant of having
bf0d50f1
KZ
1725 too many arguments. This is necessary for Spec 2000.
1726 * cgraph.h (const_function, pure_function): Removed.
1727 * common.opt: Added "fipa-pure-const", "fipa-reference",
1728 "fipa-type-escape", and "ftree-promote-static".
1729 * opts.c: Ditto.
1730 * passes.c: Added ipa and tree-promote-statics passes.
1731 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
1732 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
bf0d50f1
KZ
1733 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
1734 * tree-flow.h: Added exposed sra calls and addition of
1735 reference_vars_info field for FUNCTION_DECLS.
1736 * tree-pass.h: Added passes.
1737 * tree-sra.c: (sra_init_cache): New function.
1738 (sra_insert_before, sra_insert_after) Made public.
1739 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
1740 and made public.
1741 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
1742 aliasing. (may_alias_p): Added code to use type escape analysis to
1743 improve alias sets.
1744 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
1745 code to prune clobbers of static variables based on information
1746 produced in ipa-reference pass. Changed call clobbering so that
1747 statics are not marked as clobbered if the call does not clobber
1748 them.
1749
b6e0bdbd
DB
17502005-07-16 Daniel Berlin <dberlin@dberlin.org>
1751
1752 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
1753 too.
1754
2c00bd42
EB
17552005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
1756
1757 * doc/install.texi (*-*-solaris2*): Document recommended version
1758 of GNU binutils and mention GNU linker problem on Solaris 10.
1759
0b359b01
JM
17602005-07-16 Joseph S. Myers <joseph@codesourcery.com>
1761
1762 PR c/22421
1763 * c-decl.c (c_build_bitfield_integer_type): New function.
1764 (finish_struct): Call it.
1765 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
1766
8fcef540
KG
17672005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1768
1769 * c-typeck.c (digest_init): Call 'convert_for_assignment'
1770 before returning.
1771
84fc24e8
JH
17722005-07-16 Jan Hubicka <jh@suse.cz>
1773
1774 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
1775 (scale_bbs_frequencies_int): Watch roundoff errors.
1776 * predict.c (return_prediction): Initialize return_stmt.
1777
3258272f
JH
17782005-07-16 Jan Hubicka <jh@suse.cz>
1779
1780 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
1781 after RTL profiling.
1782
01c0a9fa
AP
17832005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
1784
1785 PR middle-end/22398
1786 * fold-const.c (build_range_check): Convert high/low to etype
1787 if we are only comparing against exp.
1788
27811bfe
DB
17892005-07-13 Daniel Berlin <dberlin@dberlin.org>
1790
1791 Fix PR tree-optimization/22376
1792 * tree-ssa-structalias.c (build_constraint_graph): We really meant
1793 special var here.
1794 (need_to_solve): New function.
1795 (compute_points_to_sets): Use it.
1796
2b151cb2
JH
17972005-07-15 Jan Hubicka <jh@suse.cz>
1798
1799 * cfg.c (update_bb_profile_for_threading): More diagnostic.
1800 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
1801
0691d1d4
RG
18022005-07-15 Richard Guenther <rguenther@suse.de>
1803
1804 * c-common.c (handle_flatten_attribute): New function.
1805 Add flatten function attribute.
1806 * doc/extend.texi: Document flatten function attribute.
1807 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
1808 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
1809 New functions.
1810 (cgraph_decide_inlining): Handle functions with flatten
1811 attribute.
1812
9f0076e5
DE
18132005-07-14 David Edelsohn <edelsohn@gnu.org>
1814
1815 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
1816 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
1817 UNSPEC_XCHG, UNSPEC_AND): New.
1818 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
1819 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
1820 * config/rs6000/sync.md (FETCHOP): New code macro.
1821 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
1822 New code attrs.
1823 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
1824 (sync_compare_and_swap<mode>): Same.
1825 (sync_lock_test_and_set<mode>): Same.
1826 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
1827 for QImode and HImode, and not PPC405.
1828 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
1829 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
1830 (sync_<fetchop>{si,di}_internal): New.
1831 (sync_nand{si,di}_internal): New.
1832 (sync_old_<fetchop>{si,di}_internal): New.
1833 (sync_old_nand{si,di}_internal): New
1834 (sync_new_<fetchop>{si,di}_internal): New.
1835 (sync_new_nand{si,di}_internal): New.
1836 (atomic_and{si,di}): New.
1837 (sync_new_nand{si,di}_internal): New.
1838 (atomic_and{si,di}): New.
1839 (sync_add<mode>_internal): Delete.
1840 (sync_addshort_internal): Use unspec instead of unspec_volatile.
1841 (sync_sub<mode>_internal): Delte.
1842 (sync_subshort_internal): New.
1843 (sync_andsi_internal): Use unspec instead of unspec_volatile.
1844 (sync_anddi_internal): Delete.
1845 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
1846 (sync_booldi_internal): Delete.
1847 (sync_boolc<mode>_internal): Delete.
1848 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
1849 (sync_boolc<mode>_internal2): Delete.
1850 (sync_boolcc<mode>_internal): Delete.
1851 (isync, lwsync): Use unspec instead of unspec_volatile.
1852 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
1853 Revert UNSPEC_VOLATILE.
1854 (rs6000_split_atomic_op): New.
1855 * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
1856
06277571
EC
18572005-07-14 Eric Christopher <echristo@redhat.com>
1858
1859 * config/mips/mips.c (mips_canonicalize_comparison): Cast
1860 argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
1861
b838c72b
EC
18622005-07-14 Eric Christopher <echristo@redhat.com>
1863
1864 * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
1865
3c341936
SB
18662005-07-14 Steven Bosscher <stevenb@suse.de>
1867
1868 PR tree-optimization/22230
1869 * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
1870 the computation of the four cross productions for "range op range".
1871
704b6cb5 18722005-07-14 Alexandre Oliva <aoliva@redhat.com>
86979811 1873 Ulrich Weigand <uweigand@de.ibm.com>
704b6cb5
AO
1874
1875 PR target/20126
1876 * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
1877 in some insn.
1878
a771c4b3
UW
18792005-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1880
1881 * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
1882
6f3113ed
SE
18832005-07-14 Steve Ellcey <sje@cup.hp.com>
1884
1885 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
1886
cb1119b7
RG
18872005-07-14 Richard Guenther <rguenther@suse.de>
1888
1889 PR middle-end/22347
1890 * config/i386/i386-protos.h (ix86_function_value): Change
1891 prototype to match new target hook.
1892 * config/i386/i386.c (ix86_value_regno): Change prototype
1893 to take extra type argument.
1894 (TARGET_FUNCTION_VALUE): Define.
1895 (ix86_function_ok_for_sibcall): Pass extra argument to
1896 ix86_value_regno, check return slot rtx for exact match.
1897 (ix86_function_value): Take extra parameter. Dispatch to
1898 ix86_value_regno with fndecl/fntype as provided.
1899 (ix86_value_regno): Handle extra type argument.
1900 * config/i386/i386.h (FUNCTION_VALUE): No longer define.
1901
1902 * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
1903 * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
1904 * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
1905 * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
1906 * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
1907
1d636cc6
RG
19082005-07-14 Richard Guenther <rguenther@suse.de>
1909
1910 * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
1911 * calls.c (expand_call): Pass fntype to hard_function_value.
1912 (emit_library_call_value_1): Likewise.
1913 * explow.c: Include target.h.
1914 (hard_function_value): Take extra argument, the fntype.
1915 Use new target hook for function_value.
1916 * expr.h (hard_function_value): Change prototype.
1917 * function.c (aggregate_value_p): Pass 0 as fntype to
1918 hard_function_value.
1919 (assign_parms): Use new target hook for function_value.
1920 Pass 0 as fntype to hard_function_value.
1921 (expand_function_end): Likewise.
1922 * reg-stack.c: Include target.h.
1923 (stack_result): Use new target hook for function_value.
1924 * target-def.h: New target hook function_value.
1925 * target.h: Likewise.
1926 * targhooks.c (default_function_value): New function.
1927 * targhooks.h (default_function_value): Declare.
1928
09d8cc0e
ILT
19292005-07-13 Ian Lance Taylor <ian@airs.com>
1930
1931 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
1932
df1f6f31
JH
19332005-07-14 Jan Hubicka <jh@suse.cz>
1934
1935 * tree-dfa.c (dump_variable): Use default_def function.
1936 * tree-ssa-alias.c (dump_points_to_info): Likewise.
1937 * tree-ssa.c (verify_use): Likewise.
1938 * tree-ssanames.c (release_ssa_name): Likewise.
1939 * tree-tailcall.c (eliminate_tail_call): Likewise.
1940 (tree_optimize_tail_calls_1): Likewise.
1941 * tree-vrp.c (get_value_range): Likewise.
1942
9ef0b1bd
BE
19432005-07-14 Ben Elliston <bje@au.ibm.com>
1944
1945 * gcc.c (main): Compare language[0] with '*' when iterating over
1946 the infiles.
1947
69950452
AS
1948