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