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