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