]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR testsuite/22522 (gcc.dg/tree-ssa/flatten-2.c scan-assembler cycle.: fails)
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
2fab365e
PB
12005-07-21 Paolo Bonzini <bonzini@gnu.org>
2
3 PR target/22085
4 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
5 initialize targetm.resolve_overloaded_builtin here.
6 (altivec_expand_overloaded_builtin): Make it non-static.
7 * config/rs6000/rs6000-protos.h
8 (altivec_expand_overloaded_builtin): New prototype.
9 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
10 targetm.resolve_overloaded_builtin here.
11 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
12
f9cc1a70
PB
132005-07-21 Paolo Bonzini <bonzini@gnu.org>
14 Zdenek Dvorak <dvorakz@suse.cz>
15
16 PR tree-optimization/19210
17 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
18 New.
19 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
20 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
21 rely on unproven assumptions.
22 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
23 * tree-flow.h (number_of_iterations_exit): Add final parameter.
24 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
25 to number_of_iterations_exit.
26 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
27 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
28 * tree-ssa-loop-niter.c (find_loop_niter,
29 estimate_numbers_of_iterations_loop): Likewise.
30 (number_of_iterations_exit): Honor the new options.
31 * doc/invoke.texi (Wunsafe-loop-optimizations,
32 funsafe-loop-optimizations): Document them.
33
cb83c2ec
RS
342005-07-21 Richard Sandiford <richard@codesourcery.com>
35
36 PR rtl-optimization/22167
37 * gcse.c (hoist_code): Fix hoist_exprs[] check.
38
5e5cbbfb
AN
392005-07-20 Adam Nemet <anemet@lnxw.com>
40
41 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
42 __do_global_dtors_aux longcall.
43
c2acaf06
KH
442005-07-20 Kazu Hirata <kazu@cs.umass.edu>
45
46 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
47 (old_special_pred_table): Don't reference
48 SPECIAL_MODE_PREDICATES.
49 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
50 * config/arc/arc.h: Don't mention PREDICATE_CODES.
51 * config/sh/predicates.h: Don't mention
52 SPECIAL_MODE_PREDICATES.
53 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
54 Remove.
55
38b2d076
DD
562005-07-20 DJ Delorie <dj@redhat.com>
57
58 * config.gcc: Add m32c-elf support.
59
60 * doc/contrib.texi: Mention m32c.
61 * doc/extend.texi: Document m32c extensions.
62 * doc/install.texi: Mention m32c.
63 * doc/invoke.texi: Document m32c options.
64 * doc/md.texi: Document m32c constraints.
65
66 * config/m32c/addsub.md: New file.
67 * config/m32c/bitops.md: New file.
68 * config/m32c/cond.md: New file.
69 * config/m32c/jump.md: New file.
70 * config/m32c/m32c-lib1.S: New file.
71 * config/m32c/m32c-lib2.c: New file.
72 * config/m32c/m32c-modes.def: New file.
73 * config/m32c/m32c-pragma.c: New file.
74 * config/m32c/m32c-protos.h: New file.
75 * config/m32c/m32c.abi: New file.
76 * config/m32c/m32c.c: New file.
77 * config/m32c/m32c.h: New file.
78 * config/m32c/m32c.md: New file.
79 * config/m32c/m32c.opt: New file.
80 * config/m32c/minmax.md: New file.
81 * config/m32c/mov.md: New file.
82 * config/m32c/muldiv.md: New file.
83 * config/m32c/predicates.md: New file.
84 * config/m32c/prologue.md: New file.
85 * config/m32c/shift.md: New file.
86 * config/m32c/t-m32c: New file.
87
50b69666
KK
882005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
89
90 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
91 (stack_protect_set, stack_protect_test): New expanders.
92 (stack_protect_set_si, stack_protect_set_si_media,
93 stack_protect_set_di_media, stack_protect_test_si,
94 stack_protect_test_si_media, stack_protect_test_di_media):
95 New insns.
96
71b50543
AP
972005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
98
99 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
100
4db8040c
JM
1012005-07-20 James A. Morrison <phython@gcc.gnu.org>
102
103 * tree.h (tree_expr_nonzero_p): Export.
104 * fold-const.c (tree_expr_nonzero_p): Likewise.
105 Return true for CALL_EXPRs that are alloca calls.
106 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
107 against zero.
108 * tree-flow.h (expr_computes_nonzero): Remove.
109 * tree-vrp.c (expr_computes_nonzero): Remove.
110 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
111 (extract_range_from_unary_expr): Likewise.
112 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
113 tree_expr_nonzero_p.
114
6d459e2b
BS
1152005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
116
09350e36
BS
117 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
118 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
119 extra arg "picreg" and use it instead of pic_offset_table_rtx.
120 All callers changed.
121 (frame_related_constant_load): New arg "related" which controls
122 setting of RTX_FRAME_RELATED_P. All callers changed.
123 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
124 (bfin_expand_prologue): Add stack limit checking.
125 * config/bfin/bfin.md (trapifcc): New pattern.
126
05905337
BS
127 * config/bfin/bfin.c: Include "langhooks.h".
128 (def_builtin): Go through lang_hooks to call builtin_function.
129
6d459e2b
BS
130 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
131 * config/bfin/predicates.md (symbol_ref_operand): New.
132 (call_insn_operand): Delete. All callers changed to use
133 register_no_elim_operand.
134 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
135 call_cookie field.
136 (function_arg): Use it to generate the call's operand 2.
137 (bfin_longcall_p): New function.
138 (bfin_expand_call): Extra arg "cookie". All callers and declaration
139 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
140 determine if the address needs to be in a REG.
141 (bfin_handle_longcall_attribute): New function.
142 (bfin_attribute_table): Add "longcall" and "shortcall".
143 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
144 (CUMULATIVE_ARGS): New member call_cookie.
145 (PREDICATE_CODES): Add symbol_ref_operand.
146 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
147 extra USE to the pattern.
148 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
149 New patterns, split off call_insn, sibcall_insn, call_value_insn and
150 sibcall_value_insn; now the new patterns handle direct calls and the
151 old ones indirect calls.
152 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
153
67135ef4
ZD
1542005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
155
156 * doc/trouble.texi: Update section on handling of empty loops.
157
fdda361d
KH
1582005-07-20 Kazu Hirata <kazu@codesourcery.com>
159
160 * config.gcc: Remove support for sparc-*-openbsd*,
161 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
162 ns32k-*-netbsd*.
163 * config.host: Remove support for i860-*-sysv4* as a host.
164 * config/i860/*, config/ip2k/*, config/ns32k/*,
165 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
166 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
167 mention obsolete ports.
168
96a2347e
KK
1692005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
170
171 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
172 soft frame pointer.
173 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
174 of frame_pointer_rtx.
175 (sh_expand_epilogue): Likewise.
176 (sh_set_return_address): Likewise.
177 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
178 instead of FRAME_POINTER_REGNUM if needed. Add elimination
179 offsets from FRAME_POINTER_REGNUM.
180 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
181 (sh_register_names): Add initializer for sfp.
182 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
183 (VALID_REGISTER_P): Likewise.
184 (FIRST_PSEUDO_REGISTER): Update.
185 (DWARF_FRAME_REGISTERS): Define.
186 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
187 (HARD_FRAME_POINTER_REGNUM): Define.
188 (FRAME_POINTER_REGNUM): Redefine.
189 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
190 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
191 from FRAME_POINTER_REGNUM.
192 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
193 FRAME_POINTER_REGNUM.
194 (REG_CLASS_CONTENTS): Add sfp.
195 (REG_ALLOC_ORDER): Likewise.
196 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
197 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
198 of frame_pointer_rtx.
199 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
200
1ade5842
JM
2012005-07-19 James A. Morrison <phython@gcc.gnu.org>
202
203 * fold-const.c (tree_expr_nonnegative_p): Only return true for
204 ABS_EXPR when flag_wrapv is false because of INT_MIN.
205 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
206 of an ABS_EXPR.
207 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
208 ABS_EXPR<x>.
209
4038c495
GB
2102005-07-20 Giovanni Bajo <giovannibajo@libero.it>
211
212 Make CONSTRUCTOR use VEC to store initializers.
213 * c-common.c (complete_array_type): Update to cope with VEC in
214 CONSTRUCTOR_ELTS.
215 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
216 (pp_c_constructor_elts): New function.
217 * c-pretty-print.h (pp_c_constructor_elts): Declare.
218 * c-typeck.c (build_function_call, build_c_cast, digest_init,
219 struct constructor_stack, struct initializer_stack,
220 constructor_elements, push_init_level, pop_init_level,
221 add_pending_init, find_init_member, output_init_element): Update to
222 cope with VEC in CONSTRUCTOR_ELTS.
223 * coverage.c (build_fn_info_value, build_ctr_info_value,
224 build_gcov_info): Likewise.
225 * expr.c (categorize_ctor_elements_1, store_constructor,
226 expand_expr_real_1): Likewise.
227 * fold-const.c (fold_ternary): Likewise.
228 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
229 gimplify_init_constructor, gimplify_expr): Likewise.
230 * tree-dump.c (dequeue_and_dump): Likewise.
231 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
232 node.
233 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
234 CONSTRUCTOR_ELTS.
235 * tree-sra.c (generate_element_init_1): Likewise.
236 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
237 * tree-ssa-operands.c (get_expr_operands): Likewise.
238 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
239 * tree-vect-transform.c (vect_get_vec_def_for_operand):
240 (get_initial_def_for_reduction): Likewise.
241 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
242 value handle in annotations.
243 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
244 tree_node_structure): Add support for constr_kind.
245 (build_vector_from_ctor, build_constructor_single,
246 build_constructor_from_list): New functions.
247 (build_constructor): Update to take a VEC instead of a TREE_LIST.
248 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
249 Update to cope with VEC in CONSTRUCTOR_ELTS.
250 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
251 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
252 CONSTRUCTOR_APPEND_ELT): New macros.
253 (struct constructor_elt, struct tree_constructor): New data types.
254 (union tree_node): Add tree_constructor field.
255 * treestruct.def: Define TS_CONSTRUCTOR.
256 * varasm.c (const_hash_1, compare_constant, copy_constant,
257 compute_reloc_for_constant, output_addressed_constants,
258 initializer_constant_valid_p, output_constant,
259 array_size_for_constructor, output_constructor): Update to cope with
260 VEC in CONSTRUCTOR_ELTS.
261 * vec.h (VEC_empty, VEC_copy): New macros.
262
f37d7c60
DP
2632005-07-19 Devang Patel <dpatel@apple.com>
264
265 * dbxout.c (dbxout_type): Check Objective-C++ lang.
266
af62f6f9
RH
2672005-07-19 Richard Henderson <rth@redhat.com>
268
269 PR tree-opt/22278
270 * gimplify.c (gimplify_expr): Use main variant type for the temp
271 destination for a discarded volatile read.
272 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
273 casts between non-void types that change volatility.
274
b9b8dde3
DD
2752005-07-15 DJ Delorie <dj@redhat.com>
276
277 * toplev.h: Add comment about the first parameter for warning().
278 * errors.h: Likewise.
279
280 * c.opt (Wpragmas): New.
281 * doc/invoke.texi: Document it.
282
283 * function.c (do_warn_unused_parameter): Add warning control to
284 warning call.
285 * c-decl.c (warn_if_shadowing): Likewise.
286 * c-lex.c (cb_def_pragma): Likewise.
287 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
288 (pop_alignment): Likewise.
289 (handle_pragma_pack): Likewise.
290 (apply_pragma_weak): Likewise.
291 (handle_pragma_weak): Likewise.
292 (handle_pragma_redefine_extname): Likewise.
293 (add_to_renaming_pragma_list): Likewise.
294 (handle_pragma_extern_prefix): Likewise.
295 (maybe_apply_renaming_pragma): Likewise.
296 (handle_pragma_visibility): Likewise.
297
298 * config/c4x/c4x-c.c (BAD): Likewise.
299 (c4x_parse_pragma): Likewise.
300 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
301 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
302 (rs6000_pragma_longcall): Likewise.
303 * config/v850/v850-c.c (pop_data_area): Likewise.
304 (ghs_pragma_section): Likewise.
305 (ghs_pragma_section): Likewise.
306 (ghs_pragma_interrupt): Likewise.
307 (ghs_pragma_starttda): Likewise.
308 (ghs_pragma_startsda): Likewise.
309 (ghs_pragma_startzda): Likewise.
310 (ghs_pragma_endtda): Likewise.
311 (ghs_pragma_endsda): Likewise.
312 (ghs_pragma_endzda): Likewise.
313
6a9a79a8
DB
3142005-07-19 Danny Berlin <dberlin@dberlin.org>
315 Kenneth Zadeck <zadeck@naturalbridge.com>
316
317 * Makefile.in: Removed tree-promote-statics.c
318 * tree-promote-statics.c: Removed.
319 * common.opt: Removed flag-promote-statics.
320 * opts.c: Ditto.
321 * passes.c: Removed tree-promote-statics pass.
322 * tree-pass.h: Ditto.
323 * timevar.def: Removed TV_PROMOTE_STATICS.
324
325
0219cf3d
GP
3262005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
327
328 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
329 and *-*-freebsd9.
330 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
331
7876a414
KG
3322005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
333
334 PR c/22476
335 * c-common.c (check_function_arguments): Call
336 'check_function_format' if either -Wformat or
337 -Wmissing-format-attribute are specified.
338 * c-format.c (check_function_format): Check -Wformat before
339 calling 'check_format_info'.
340 * c-opts.c (c_common_post_options): Don't warn for
341 -Wmissing-format-attribute without -Wformat.
342 * c-typeck.c (convert_for_assignment): Detect additional cases for
343 -Wmissing-format-attribute.
344 * doc/invoke.texi (-Wmissing-format-attribute): Document new
345 behavior.
346
98ea7437
RG
3472005-07-19 Richard Guenther <rguenther@suse.de>
348
349 * config/i386/i386.md (lrint<mode>2): Use temporary
350 instead of clobbering non-existent memory.
351
89a0b917
NC
3522005-07-19 Nick Clifton <nickc@redhat.com>
353
354 * config/avr/avr.c (legitimate_address_p): Fix debugging print
355 statement to avoid displaying ASCII control characters.
356
dfea6c85
BE
3572005-07-19 Ben Elliston <bje@au.ibm.com>
358
359 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
360 * cfganal.c (find_edge_index): Ditto.
361 * combine.c (combine_instructions): Ditto.
362 * ddg.c (create_scc): Ditto.
363 (find_successors): Ditto.
364 (find_predecessors): Ditto.
365 (find_nodes_on_paths): Ditto.
366 (longest_simple_path): Ditto.
367 * flow.c (update_life_info): Ditto.
368 (count_or_remove_death_notes): Ditto.
369 (clear_log_links): Ditto.
370 * modulo-sched.c (generate_reg_moves): Ditto.
371 (find_max_asap): Ditto.
372 (find_max_hv_min_mob): Ditto.
373 (find_max_dv_min_mob): Ditto.
374 * sbitmap.c (sbitmap_first_set_bit): Ditto.
375 * sched-rgn.c (extract_edgelst): Ditto.
376 * tree-into-ssa.c (prepare_names_to_update): Ditto.
377 (dump_update_ssa): Ditto.
378 (ssa_names_to_replace) Ditto.
379 (switch_virtuals_to_full_rewrite): Ditto.
380 (update_ssa): Ditto.
381 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
382
b9d33488
DB
3832005-07-18 Daniel Berlin <dberlin@dberlin.org>
384
385 Fix PR tree-optimization/22483
386
387 * tree-complex.c (create_components): Use
388 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
389 * tree-flow-inline.h (fill_referenced_var_vec): New function.
390 * tree-flow.h (safe_referenced_var_iterator): New structure.
391 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
392 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
393 safe_referenced_var iterator.
394 (add_type_alias): Ditto.
395
9fa26457
SB
3962005-07-19 Steven Bosscher <stevenb@suse.de>
397
398 * loop-init.c (rest_of_handle_loop2): Remove.
399 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
400 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
401 (pass_rtl_loop_init, pass_rtl_loop_done,
402 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
403 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
404 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
405 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
406 pass_tree_loop_done, and pass_tree_unswitch.
407 (gate_loop): Rename to gate_tree_loop.
408 * passes.c (init_optimization_passes): Update for renamed tree
409 loop passes. Add the new loop2 passes as subpasses of loop2.
410 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
411 Update for the renamed tree loop passes.
412
7825308e
ILT
4132005-07-18 Ian Lance Taylor <ian@airs.com>
414
415 PR middle-end/22057
416 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
417 blocks when optimizing.
418
2928d0f8
SE
4192005-07-18 Steve Ellcey <sje@cup.hp.com>
420
421 * common.opt (frename-registers): Initialize to 2.
422 (fweb): Ditto.
423 (fgcse-after-reload): Ditto.
424 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
425 (process_options): Only change flag_web, flag_rename_registers,
426 and flag_rerun_cse_after_loop if not explicitly set by user.
427
28356f52
JB
4282005-07-18 Jan Beulich <jbeulich@novell.com>
429
430 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
431 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
432 in 64-bit mode the same as DImode in 32-bit mode.
433 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
434 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
435 mode. Add new mode parameter.
436 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
437 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
438 x86_64_shift_adj): New expanders.
439 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
440 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
441 insns.
442 Respective new splitters. Use renamed shift splitter helpers in 32-bit
443 DImode shift splitters.
444 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
445 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
446 mode parameter.
447
422edd6f
JB
4482005-07-18 Jan Beulich <jbeulich@novell.com>
449
450 * i386.md (movdi_extzv_1): New.
451 (zero_extendhidi2): Combine alternatives and never force use of
452 REX64 prefix.
453 (zero_extendqidi2): Likewise. Don't restrict input selection.
454
c625053b
DB
4552005-07-17 Daniel Berlin <dberlin@dberlin.org>
456
457 Fix PR tree-optimization/22531
458 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
459 moment.
460
3b1355f3
DB
4612005-07-17 Daniel Berlin <dberlin@dberlin.org>
462
463 * tree-promote-statics.c (pass_promote_statics): Change dump file
464 name.
465
4662005-07-17 Daniel Berlin <dberlin@dberlin.org>
45159bf6
DB
467
468 * tree-optimize.c (init_tree_optimization_passes): Add
469 pass_eliminate_useless_stores pass.
470 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
471 * tree-ssa-pre.c (is_copy_stmt): New function.
472 (follow_copies_till_vuse): Ditto.
473 (do_eustores): Ditto.
474 (gate_eustores): Ditto.
475
7544a87f
RH
4762005-07-16 Richard Henderson <rth@redhat.com>
477
478 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
479
bf0d50f1
KZ
4802005-07-16 Danny Berlin <dberlin@dberlin.org>
481 Kenneth Zadeck <zadeck@naturalbridge.com>
482
483 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
484 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
485 ipa-type-escape.h, tree-promote-statics.c
486 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
487 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
488 tree-promote-statics.c: new files.
489 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
490 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
491 int nonlocal_set_p, mark_constant_function): Deleted.
492 (rest_of_handle_cfg): Removed call to mark_constant_function.
493 (nonoverlapping_component_refs_p): Added calls to support
494 type based aliasing.
495 * tree-ssa-alias.c (may_alias_p,
496 compute_flow_insensitive_aliasing): Ditto.
497 * calls.c (flags_from_decl_or_type): Removed reference to
498 cgraph_rtl_info.
bf0d50f1
KZ
499 * c-typeck.c (convert_arguments): Make builtins tolerant of having
500 too many arguments. This is necessary for Spec 2000.
501 * cgraph.h (const_function, pure_function): Removed.
502 * common.opt: Added "fipa-pure-const", "fipa-reference",
503 "fipa-type-escape", and "ftree-promote-static".
504 * opts.c: Ditto.
505 * passes.c: Added ipa and tree-promote-statics passes.
506 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
507 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
bf0d50f1
KZ
508 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
509 * tree-flow.h: Added exposed sra calls and addition of
510 reference_vars_info field for FUNCTION_DECLS.
511 * tree-pass.h: Added passes.
512 * tree-sra.c: (sra_init_cache): New function.
513 (sra_insert_before, sra_insert_after) Made public.
514 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
515 and made public.
516 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
517 aliasing. (may_alias_p): Added code to use type escape analysis to
518 improve alias sets.
519 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
520 code to prune clobbers of static variables based on information
521 produced in ipa-reference pass. Changed call clobbering so that
522 statics are not marked as clobbered if the call does not clobber
523 them.
524
b6e0bdbd
DB
5252005-07-16 Daniel Berlin <dberlin@dberlin.org>
526
527 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
528 too.
529
2c00bd42
EB
5302005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
531
532 * doc/install.texi (*-*-solaris2*): Document recommended version
533 of GNU binutils and mention GNU linker problem on Solaris 10.
534
0b359b01
JM
5352005-07-16 Joseph S. Myers <joseph@codesourcery.com>
536
537 PR c/22421
538 * c-decl.c (c_build_bitfield_integer_type): New function.
539 (finish_struct): Call it.
540 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
541
8fcef540
KG
5422005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
543
544 * c-typeck.c (digest_init): Call 'convert_for_assignment'
545 before returning.
546
84fc24e8
JH
5472005-07-16 Jan Hubicka <jh@suse.cz>
548
549 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
550 (scale_bbs_frequencies_int): Watch roundoff errors.
551 * predict.c (return_prediction): Initialize return_stmt.
552
3258272f
JH
5532005-07-16 Jan Hubicka <jh@suse.cz>
554
555 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
556 after RTL profiling.
557
01c0a9fa
AP
5582005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
559
560 PR middle-end/22398
561 * fold-const.c (build_range_check): Convert high/low to etype
562 if we are only comparing against exp.
563
27811bfe
DB
5642005-07-13 Daniel Berlin <dberlin@dberlin.org>
565
566 Fix PR tree-optimization/22376
567 * tree-ssa-structalias.c (build_constraint_graph): We really meant
568 special var here.
569 (need_to_solve): New function.
570 (compute_points_to_sets): Use it.
571
2b151cb2
JH
5722005-07-15 Jan Hubicka <jh@suse.cz>
573
574 * cfg.c (update_bb_profile_for_threading): More diagnostic.
575 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
576
0691d1d4
RG
5772005-07-15 Richard Guenther <rguenther@suse.de>
578
579 * c-common.c (handle_flatten_attribute): New function.
580 Add flatten function attribute.
581 * doc/extend.texi: Document flatten function attribute.
582 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
583 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
584 New functions.
585 (cgraph_decide_inlining): Handle functions with flatten
586 attribute.
587
9f0076e5
DE
5882005-07-14 David Edelsohn <edelsohn@gnu.org>
589
590 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
591 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
592 UNSPEC_XCHG, UNSPEC_AND): New.
593 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
594 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
595 * config/rs6000/sync.md (FETCHOP): New code macro.
596 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
597 New code attrs.
598 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
599 (sync_compare_and_swap<mode>): Same.
600 (sync_lock_test_and_set<mode>): Same.
601 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
602 for QImode and HImode, and not PPC405.
603 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
604 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
605 (sync_<fetchop>{si,di}_internal): New.
606 (sync_nand{si,di}_internal): New.
607 (sync_old_<fetchop>{si,di}_internal): New.
608 (sync_old_nand{si,di}_internal): New
609 (sync_new_<fetchop>{si,di}_internal): New.
610 (sync_new_nand{si,di}_internal): New.
611 (atomic_and{si,di}): New.
612 (sync_new_nand{si,di}_internal): New.
613 (atomic_and{si,di}): New.
614 (sync_add<mode>_internal): Delete.
615 (sync_addshort_internal): Use unspec instead of unspec_volatile.
616 (sync_sub<mode>_internal): Delte.
617 (sync_subshort_internal): New.
618 (sync_andsi_internal): Use unspec instead of unspec_volatile.
619 (sync_anddi_internal): Delete.
620 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
621 (sync_booldi_internal): Delete.
622 (sync_boolc<mode>_internal): Delete.
623 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
624 (sync_boolc<mode>_internal2): Delete.
625 (sync_boolcc<mode>_internal): Delete.
626 (isync, lwsync): Use unspec instead of unspec_volatile.
627 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
628 Revert UNSPEC_VOLATILE.
629 (rs6000_split_atomic_op): New.
630 * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
631
06277571
EC
6322005-07-14 Eric Christopher <echristo@redhat.com>
633
634 * config/mips/mips.c (mips_canonicalize_comparison): Cast
635 argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
636
b838c72b
EC
6372005-07-14 Eric Christopher <echristo@redhat.com>
638
639 * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
640
3c341936
SB
6412005-07-14 Steven Bosscher <stevenb@suse.de>
642
643 PR tree-optimization/22230
644 * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
645 the computation of the four cross productions for "range op range".
646
704b6cb5
AO
6472005-07-14 Alexandre Oliva <aoliva@redhat.com>
648 Ulrich Weigand <uweigand@de.ibm.com>
649
650 PR target/20126
651 * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
652 in some insn.
653
a771c4b3
UW
6542005-07-14 Ulrich Weigand <uweigand@de.ibm.com>
655
656 * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
657
6f3113ed
SE
6582005-07-14 Steve Ellcey <sje@cup.hp.com>
659
660 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
661
cb1119b7
RG
6622005-07-14 Richard Guenther <rguenther@suse.de>
663
664 PR middle-end/22347
665 * config/i386/i386-protos.h (ix86_function_value): Change
666 prototype to match new target hook.
667 * config/i386/i386.c (ix86_value_regno): Change prototype
668 to take extra type argument.
669 (TARGET_FUNCTION_VALUE): Define.
670 (ix86_function_ok_for_sibcall): Pass extra argument to
671 ix86_value_regno, check return slot rtx for exact match.
672 (ix86_function_value): Take extra parameter. Dispatch to
673 ix86_value_regno with fndecl/fntype as provided.
674 (ix86_value_regno): Handle extra type argument.
675 * config/i386/i386.h (FUNCTION_VALUE): No longer define.
676
677 * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
678 * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
679 * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
680 * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
681 * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
682
1d636cc6
RG
6832005-07-14 Richard Guenther <rguenther@suse.de>
684
685 * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
686 * calls.c (expand_call): Pass fntype to hard_function_value.
687 (emit_library_call_value_1): Likewise.
688 * explow.c: Include target.h.
689 (hard_function_value): Take extra argument, the fntype.
690 Use new target hook for function_value.
691 * expr.h (hard_function_value): Change prototype.
692 * function.c (aggregate_value_p): Pass 0 as fntype to
693 hard_function_value.
694 (assign_parms): Use new target hook for function_value.
695 Pass 0 as fntype to hard_function_value.
696 (expand_function_end): Likewise.
697 * reg-stack.c: Include target.h.
698 (stack_result): Use new target hook for function_value.
699 * target-def.h: New target hook function_value.
700 * target.h: Likewise.
701 * targhooks.c (default_function_value): New function.
702 * targhooks.h (default_function_value): Declare.
703
09d8cc0e
ILT
7042005-07-13 Ian Lance Taylor <ian@airs.com>
705
706 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
707
df1f6f31
JH
7082005-07-14 Jan Hubicka <jh@suse.cz>
709
710 * tree-dfa.c (dump_variable): Use default_def function.
711 * tree-ssa-alias.c (dump_points_to_info): Likewise.
712 * tree-ssa.c (verify_use): Likewise.
713 * tree-ssanames.c (release_ssa_name): Likewise.
714 * tree-tailcall.c (eliminate_tail_call): Likewise.
715 (tree_optimize_tail_calls_1): Likewise.
716 * tree-vrp.c (get_value_range): Likewise.
717
9ef0b1bd
BE
7182005-07-14 Ben Elliston <bje@au.ibm.com>
719
720 * gcc.c (main): Compare language[0] with '*' when iterating over
721 the infiles.
722
69950452
AS
723