1 2005-12-31 Andrew Pinski <pinskia@physics.uc.edu>
4 * tree-ssa-pre.c (compute_avail): Treat the static chain decl as a
5 parameter and pretend that it is defined in the entry basic block.
7 2005-12-30 Kazu Hirata <kazu@codesourcery.com>
9 * tree-outof-ssa.c (_elim_graph): Change the type of STACK to
11 (new_elim_graph, delete_elim_graph, elim_forward,
12 eliminate_phi): Use the VEC API on STACK.
14 2005-12-29 Daniel Berlin <dberlin@dberlin.org>
16 * tree.h (VALUE_HANDLE_VUSES): New.
17 (struct tree_value_handle): Add vuses.
19 * tree-vn.c (struct val_expr_pair_d): Remove stmt, add vuses.
20 (vn_compute): Remove stmt argument.
21 Don't use vuses in hash value computation.
22 (val_expr_pair_eq): Compare vuse lists.
23 (copy_vuses_from_stmt): New function.
24 (shared_vuses_from_stmt): Ditto.
25 (vn_add): Rewrite in terms of vn_add_with_vuses.
26 (vn_add_with_vuses): New function.
27 (vn_lookup): Rewrite in terms of vn_lookup_with_vuses.
28 (vn_lookup_with_vuses): New function.
29 (vuses_compare): New function.
30 (print_creation_to_file): Ditto.
31 (vn_lookup_or_add): Rewrite to handle vuses.
32 (sort_vuses): New function.
33 (vn_lookup_or_add_with_vuses): Ditto.
34 (vn_init): Initialize shared_lookup_vuses.
35 (vn_delete): Free shared_lookup_vuses.
37 * tree-ssa-pre.c: Update todo list.
38 (bb_value_sets_t): Add rvuse_in, rvuse_out, rvuse_gen, and
40 (RVUSE_IN): New macro.
44 (modify_expr_node_pool): New function.
47 (mergephitemp): Ditto.
49 (struct expr_pred_trans_d): Add vuses member.
50 (expr_pred_trans_eq): Compare vuses.
51 (phi_trans_lookup): Add vuses argument.
52 (phi_trans_add): Ditto.
53 (translate_vuses_through_block): New function.
54 (phi_translate): Use vuses to ask about those expressions that can
56 Properly translate virtual uses through phis, and use
57 vn_lookup_or_add_with vuses. Handle tcc_reference.
58 (phi_translate_set): Don't add pointless translations to the
60 (get_representative): New function.
61 (vuses_dies_in_block_x): Ditto.
62 (valid_in_set): Add block argument. Check virtual use validity.
63 (clean): Add block argument. Update call to valid_in_set
64 (compute_antic_aux): Update call to clean.
65 (dump_bitmap_of_names): New function.
66 (compute_vuse_representatives): Ditto.
67 (compute_rvuse): Ditto.
68 (can_value_number_call): Modified to accept calls with vuses.
69 (can_value_number_operation): New function.
70 (can_PRE_operation): Ditto.
71 (need_creation): New vector of stores that may need creation.
72 (find_or_generate_expression): use can_PRE_operation.
73 (create_expression_by_pieces): Handle INDIRECT_REF.
74 Only create one temp until we have to change types.
75 Mark new vars for renaming.
76 (insert_into_preds_of_block): Ignore loopiness of loads.
77 Use can_PRE_operation.
78 Only create one temp until we have to chnge types.
79 (insert_aux): Use can_PRE_operation.
80 Don't pass name to insert_into_preds_of_block.
81 (insert_extra_phis): Only use one temp until we have to change
83 (poolify_tree): New function.
84 (modify_expr_template): New var.
85 (poolify_modify_expr): New function.
86 (insert_fake_stores): Ditto.
87 (realify_fake_stores): Ditto.
88 (compute_avail): Use can_value_number_operation.
89 (mark_operand_necessary): Return NULL for non-SSA names.
90 (remove_dead_inserted_code): Update comment.
91 (init_pre): Initialize pretemp, need_creation, storetemp,
92 mergephitemp, prephitemp.
93 Create modify_expr_node_pool.
94 (fini_pre): Free modify_expr_node_pool and need_creation array.
95 (execute_pre): Call insert_fake_stores, compute_rvuse, and
97 * tree-flow.h (vn_compute): Fix prototype.
101 (vn_lookup_or_add_with_vuses): Ditto.
102 (vn_add_with_vuses): Ditto.
103 (vn_lookup_with_vuses): Ditto.
104 * passes.c (pass_may_alias): Add.
106 2005-12-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
108 * c-pretty-print.h (struct c_pretty_print_info): Add new member
110 (pp_constant): New macro.
111 * c-pretty-print.c (pp_c_pretty_printer_init): Set pp->constant.
113 2005-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
116 * pa.md: Remove REG_POINTER check from REG+REG peephole2 floating-point
119 2005-12-29 Kenneth Zadeck <zadeck@naturalbridge.com>
121 * bitmap.c (bitmap_element_free, bitmap_element_link,
122 bitmap_elt_insert_after, bitmap_and, bitmap_and_compl,
123 bitmap_and_compl, bitmap_ior, bitmap_ior_into, bitmap_xor,
124 bitmap_xor_into): Added code to properly maintain the variants
125 associated with the CURRENT and HEAD fields.
126 (bitmap_popcount, bitmap_clear_range, bitmap_compl_and_into): New
128 * bitmap.h: Added defs for bitmap_popcount, bitmap_clear_range,
129 and bitmap_compl_and_into.
132 2005-12-29 Mike Stump <mrs@apple.com>
134 * doc/invoke.texi (Objective-C and Objective-C++ Dialect Options
135 -fobjc-exceptions): Don't imply this doesn't work with the GNU
138 2005-12-29 Nathan Sidwell <nathan@codesourcery.com>
140 * varasm.c (get_section): Use gcc_assert.
142 2005-12-29 Paul Brook <paul@codesourcery.com>
144 * config/m68k/m68k.h (RETURN_ADDR_RTX): Define.
145 * config/m68k/m68k.c (m68k_initial_elimination_offset): Remove FIXME.
146 Include offset due to FIRST_PARM_OFFSET.
148 2005-12-29 Paul Brook <paul@codesourcery.com>
150 * config/m68k/lb1sf68.asm (__cmpdf2): Fix typo in immediate mask.
151 Create wrapper and rename body...
152 (__cmpdf2_internal): ... to this. Return correct value for unordered
154 (__cmpsf2): Create wrapper and rename body...
155 (__cmpsf2_internal): ... to this. Return corerct value for unordered
157 (__eqdf2, __nedf2, __gtdf2, __gedf2, __ltdf2, __ledf2): Use
159 (__eqsf2, __nesf2, __gtsf2, __gesf2, __ltsf2, __lesf2): Use
162 2005-12-29 Paul Brook <paul@codesourcery.com>
164 * config/m68k/fpgnulib.c (__extendsfdf2): Handle negative zero.
165 (__truncdfsf2): Ditto.
166 (__extenddfxf2): Ditto.
167 (__truncxfdf2): Ditto.
168 * config/m68k/lb1sf68.asm (__addsf3): Return -0.0 for -0.0 + -0.0.
171 2005-12-29 Daniel Jacobowitz <dan@codesourcery.com>
172 Paul Brook <paul@codesourcery.com>
174 * config/m68k/m68k.c (m68k_output_pic_call): Don't use bsr.l for
176 * config/m68k/t-m68kelf (EXTRA_PARTS): Remove.
177 (EXTRA_MULTILIB_PARTS): Set.
178 * config/m68k/t-uclinux (EXTRA_PARTS): Remove.
179 (EXTRA_MULTILIB_PARTS): Set.
181 2005-12-29 Alan Modra <amodra@bigpond.net.au>
184 * config/rs6000/rs6000.c (create_TOC_reference): Set regs_ever_live.
186 2005-12-28 Nathan Sidwell <nathan@codesourcery.com>
188 * config.gcc (mt-*-*): Add --with-arch support.
189 (--with): Print accepted options on error.
190 * config/mt/mt.h (OPTION_DEFAULT_SPECS): Define.
192 * config/mt/mt.c (DEF_VEC_P(basic_block),
193 DEF_VEC_ALLOC_P(basic_bloc,heap)): Remove from here.
195 2005-12-28 Daniel Berlin <dberlin@dberlin.org>
197 Fix PR tree-optimization/25394
198 * fold-const.c (fold_checksum_tree): Guard
199 portions of checksumming with correct structure checks.
201 2005-12-27 Kazu Hirata <kazu@codesourcery.com>
203 * global.c, tree-ssa-pre.c: Move DEF_VEC_P(basic_block) and
204 DEF_VEC_ALLOC_P(basic_block,{gc,heap}) to ...
205 * basic-block.h: ... here.
207 2005-12-27 Roger Sayle <roger@eyesopen.com>
209 * fold-const.c (int_const_binop): Return NULL_TREE when an expression
210 can't be evaluated at compile-time (instead of calling abort).
211 Return NULL_TREE for division (and modulus) by zero.
212 (const_binop): Return NULL_TREE for floating point operators that
213 aren't handled by real_arithmetic.
214 (fold_binary): Eliminate "wins" variable, and "binary" label, by
215 folding operators with constant operands early. Assert that
216 operands are non-NULL.
218 2005-12-27 Kazu Hirata <kazu@codesourcery.com>
220 * tree-vrp.c (extract_range_from_binary_expr): Use
221 build_int_cst instead of fold_convert.
223 2005-12-26 Mark Mitchell <mark@codesourcery.com>
225 PR c++/23171, c++/23172, c++/25417.
226 * c-decl.c (compound_literal_number): Remove.
227 (build_compound_literal): Use set_compound_literal_name.
228 * c-common.c (compound_literal_number): New variable.
229 (set_compound_literal_name): New function.
230 * c-common.h (set_compound_literal_name): Declare.
232 2005-12-26 Kazu Hirata <kazu@codesourcery.com>
234 PR tree-optimization/25125
235 * convert.c (convert_to_integer): Don't narrow the type of a
236 PLUS_EXPR or MINUS_EXPR if !flag_wrapv and the unwidened type
239 2005-12-26 Graham Stott <graham.stott@btinternet.com>
242 * combine.c (simplify_shift_const_1 <case PLUS>):Fix enable-checking
243 rtl bootstrap failure.
245 2005-12-25 Kazu Hirata <kazu@codesourcery.com>
247 * final.c (compute_alignments): Make it static.
248 * gcse.c (gcse_main, bypass_jumps): Likewise.
249 * web.c (web_main): Likewise.
250 * output.h: Remove the prototype for compute_alignments.
251 * rtl.h: Remove the prototypes for web_main, gcse_main, and
254 2005-12-24 Roger Sayle <roger@eyesopen.com>
256 * expr.c (force_operand): Use expand_fix and expand_float to
257 implement integer <-> FP conversions instead of convert_to_mode.
259 2005-12-24 Mark Mitchell <mark@codesourcery.com>
262 * varasm.c (initializer_constant_valid_p): An ADDR_EXPR of a
263 CONSTRUCTOR is invalid.
265 2005-12-23 Daniel Berlin <dberlin@dberlin.org>
267 * tree-pass.h (pass_eliminate_useless_stores): Remove.
268 * tree-ssa-pre.c (is_copy_stmt): Ditto.
269 (follow_copies_till_vuse): Ditto.
271 (gate_eustores): Ditto.
272 (pass_eliminate_useless_stores): Ditto.
273 * passes.c (init_optimization_passes): Ditto.
275 2005-12-23 Paolo Bonzini <bonzini@gnu.org>
277 * combine.c (simplify_shift_const): Fix typo. Use, whenever
278 applicable, simplify_const_binary_operation.
280 (simplify_shift_const): Leave only the fallback
281 case when no simplification is possible. Extract to...
282 (simplify_shift_const_1): ... here. Always create a new
283 RTX instead of substituting. Remove the signed_count variable.
284 Return NULL_RTX if no substitution is possible.
286 (simplify_and_const_int): Leave only the fallback
287 case when no simplification is possible. Extract to...
288 (simplify_and_const_int_1): ... here. Always create a new
289 RTX instead of substituting. Return NULL_RTX if no substitution
292 (force_to_mode, simplify_comparison): Don't pass a non-NULL first
293 parameter to simplify_and_const_int and simplify_shift_const,
294 unless it is equal to the expected non-simplified result.
296 2005-12-23 Jakub Jelinek <jakub@redhat.com>
299 * regrename.c (replace_oldest_value_reg): Use validate_change with
300 IN_GROUP set to 1 instead of doing direct modifications.
301 (copyprop_hardreg_forward_1): Likewise. If any replace_oldest_*
302 replacements have been performed on an instruction, use
303 apply_change_group ().
305 2005-12-23 Hans-Peter Nilsson <hp@axis.com>
307 * config/cris/arit.c (do_31div): Clarify what "31" refers to.
308 [L_divsi3] (__Udiv): Don't use as inline function.
309 [L_modsi3] (__Umod): Ditto.
310 (__Div): Rearrange to call do_31div directly instead of __Udiv.
311 (__Mod): Similarly regarding __Umod.
314 * config/cris/cris.c (cris_split_movdx): Add REG_INC notes for
315 emitted insns with post-increments.
316 (cris_expand_epilogue): Ditto.
318 2005-12-22 Jakub Jelinek <jakub@redhat.com>
319 Richard Henderson <rth@redhat.com>
321 Merge from gomp-branch.
322 * builtins.def: Move all DEF_SYNC_BUILTIN to ...
323 * sync-builtins.def: ... new file.
324 (BUILT_IN_FETCH_AND_ADD_16,
325 BUILT_IN_FETCH_AND_SUB_16, BUILT_IN_FETCH_AND_OR_16,
326 BUILT_IN_FETCH_AND_AND_16, BUILT_IN_FETCH_AND_XOR_16,
327 BUILT_IN_FETCH_AND_NAND_16, BUILT_IN_ADD_AND_FETCH_16,
328 BUILT_IN_SUB_AND_FETCH_16, BUILT_IN_OR_AND_FETCH_16,
329 BUILT_IN_AND_AND_FETCH_16, BUILT_IN_XOR_AND_FETCH_16,
330 BUILT_IN_NAND_AND_FETCH_16, BUILT_IN_BOOL_COMPARE_AND_SWAP_16,
331 BUILT_IN_VAL_COMPARE_AND_SWAP_16, BUILT_IN_LOCK_TEST_AND_SET_16,
332 BUILT_IN_LOCK_RELEASE_16): New builtins.
333 * builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
334 BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
335 * builtins.c (expand_builtin): Handle sync BUILT_IN_*_16 builtins.
336 * c-common.c (enum c_builtin_type): Move to top-level from
337 c_common_nodes_and_builtins enum builtin_type.
338 (builtin_types): Move from c_common_nodes_and_builtins.
340 (c_common_nodes_and_builtins): Use it.
341 (def_builtin_1): Check for error_mark_node.
342 (sync_resolve_size): Handle also 128 bit sync builtins.
343 * Makefile.in (BUILTINS_DEF): New. Use it instead of builtins.def.
345 * config/i386/i386.h (x86_cmpxchg8b, x86_cmpxchg16b): New decls.
346 (TARGET_CMPXCHG8B, TARGET_CMPXCHG16B): Define.
347 * config/i386/i386.c (x86_cmpxchg8b, x86_cmpxchg16b): New variables.
348 * config/i386/sync.md (CASMODE, DCASMODE): New mode macros.
349 (doublemodesuffix, DCASHMODE): New mode attrs.
350 (sync_compare_and_swap<mode>): Change into expand, use CASMODE
351 instead of IMODE, if mode is wider than a word, expand into
352 sync_double_compare_and_swap*.
353 (*sync_compare_and_swap<mode>): New insn.
354 (sync_double_compare_and_swap<mode>): Likewise.
355 (*sync_double_compare_and_swapdi_pic): Likewise.
356 (sync_compare_and_swap_cc<mode>): Use CASMODE instead of IMODE, if
357 mode is wider than a word, expand into
358 sync_double_compare_and_swap_cc*.
359 (sync_double_compare_and_swap_cc<mode>): New insn.
360 (*sync_double_compare_and_swap_ccdi_pic): Likewise.
362 2005-12-22 Richard Henderson <rth@redhat.com>
364 * config/i386/mmintrin.h (_mm_add_si64): Only define for SSE2.
365 (_mm_sub_si64): Likewise.
366 * config/i386/xmmintrin.h (_mm_shuffle_pi16, _m_pshufw): Likewise.
368 2005-12-23 Alan Modra <amodra@bigpond.net.au>
370 PR rtl-optimization/25432
371 * reload1.c (eliminate_regs_in_insn): Update insn code on
372 successfully re-recognizing modified insn.
374 2005-12-22 Richard Guenther <rguenther@suse.de>
376 * tree.c (tree_fold_gcd): Use build_int_cst where appropriate.
377 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
378 * varasm.c (array_size_for_constructor): Likewise.
379 * fold-const.c (size_diffop, invert_truthvalue,
380 optimize_bit_field_compare, make_range, build_range_check,
381 fold_cond_expr_with_comparison, fold_truthop,
382 fold_single_bit_test_into_sign_test, fold_binary): Likewise.
384 2005-12-22 Dale Johannesen <dalej@apple.com>
386 * config/i386/sse.md (sse_movhlps): Reverse operands for
387 2nd and 3rd alternatives.
389 2005-12-22 Andrew Pinski <pinskia@physics.uc.edu>
392 * tree-dfa.c (make_rename_temp): Set DECL_COMPLEX_GIMPLE_REG_P complex
395 2005-12-22 Zdenek Dvorak <dvorakz@suse.cz>
396 Steven Bosscher <stevenb@suse.de>
398 * df.c (df_bitmaps_free): Only work for bbs for that structures are
400 (df_bb_modify): Realloc tables to the new index.
401 (df_find_use): New function.
402 (df_find_def, df_reg_used): Handle subregs.
403 * df.h (df_find_use): Declare.
405 * loop-invariant.c: Include hashtab.h.
406 (struct invariant): Remove processed field, add eqto and reg fields.
407 (struct invariant_expr_entry): New.
408 (invariant_for_use, hash_invariant_expr_1, invariant_expr_equal_p,
409 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv,
410 find_identical_invariants, merge_identical_invariants): New functions.
411 (create_new_invariant): Return the new invariant. Initialize new
413 (find_invariants): Call merge_identical_invariants.
414 (get_inv_cost, best_gain_for_invariant, set_move_mark,
415 move_invariant_reg): Handle equivalent invariants.
416 * Makefile.in (loop-invariant.o): Add HASHTAB_H dependency.
418 2005-12-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
421 * c-lex.c (c_lex_with_flags): Add PURE_ZERO to cpp_flags if
422 number is a single digit '0'.
424 2005-12-22 Kazu Hirata <kazu@codesourcery.com>
426 PR tree-optimization/23518
427 * fold-const.c (make_range): Don't move a constant to the
428 other side of the comparison if the type is signed and -fwrapv
431 2005-12-22 Kazu Hirata <kazu@codesourcery.com>
433 * tree-vrp.c (extract_range_from_binary_expr): Clean up uses
436 2005-12-21 Joseph S. Myers <joseph@codesourcery.com>
439 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add _floatundidf and
442 2005-12-21 Andrew Haley <aph@redhat.com>
445 * recog.c (peephole2_optimize): Don't peephole any
446 RTX_FRAME_RELATED_P insns.
448 2005-12-21 Kazu Hirata <kazu@codesourcery.com>
450 * tree-data-ref.c (estimate_niter_from_size_of_data): Replace
451 fold_build2 with fold_binary.
452 * tree-ssa-ccp.c (visit_assignment, maybe_fold_stmt_addition):
453 Replace fold_build1 with fold_unary.
454 * tree-ssa-reassoc.c (optimize_ops_list): Replace fold_build2
457 2005-12-21 Steven Bosscher <stevenb@suse.de>
459 PR rtl-optimization/25196
460 * postreload-gcse.c (record_last_set_info): Notice stack pointer
461 changes in push insns without REG_INC notes.
463 2005-12-21 Kazu Hirata <kazu@codesourcery.com>
465 PR tree-optimization/25382.
466 * tree-vrp.c (extract_range_from_binary_expr): Extract a range
469 2005-12-21 Janis Johnson <janis187@us.ibm.com>
470 Ben Elliston <bje@au.ibm.com>
472 * configure.ac: Enable C extension for decimal float if invoked
473 with --enable-decimal-float.
474 * doc/install.texi (Configuration): Document it.
475 * configure, config.in: Regenerate.
477 2005-12-20 Mike Stump <mrs@apple.com>
479 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Handle the
480 ambiguity between -seg_addr_table and -seg_addr_table_filename.
481 (WORD_SWITCH_TAKES_ARG): Likewise.
482 (LINK_SPEC): Likewise.
484 2005-12-20 Kenneth Zadeck <zadeck@naturalbridge.com>
486 * cfganal.c (flow_reverse_top_sort_order_compute):
487 Renamed to post_order_compute and additional parameter added which
488 allows the inclusion of entry and exit blocks into list.
489 (mark_dfs_back_edges): Fixed comment.
490 (flow_depth_first_order_compute): Renamed to
491 pre_and_rev_post_order_compute additional parameter added which
492 allows the inclusion of entry and exit blocks into list.
493 * global.c (set_up_bb_rts_numbers): Call to
494 flow_reverse_top_sort_order_compute renamed to
496 * var-tracking.c (vt_stack_adjustments): Fixed comment.
497 (vt_find_locations): Call to
498 flow_depth_first_order_compute renamed to
499 pre_and_rev_post_order_compute.
500 * cfgloop.c (flow_find_loops): Ditto.
501 * tree-ssa-reassoc.c (init_reassoc): Ditto.
502 * df.c (df_analyze_1, df_analyze_subcfg): Calls to
503 flow_reverse_top_sort_order_compute renamed to post_order_compute
504 and calls to flow_reverse_top_sort_order_compute renamed to
506 * basic_block.h: Ditto.
509 2005-12-20 Roger Sayle <roger@eyesopen.com>
510 Paolo Bonzini <bonzini@gnu.org>
512 PR rtl-optimization/25115
513 * gcse.c (pre_insert_copy_insn): Fall back to the sole
514 SET in the insn if there is no SET for an
515 expression that is equivalent to EXPR.
517 2005-12-20 Richard Guenther <rguenther@suse.de>
520 * builtins.c (std_gimplify_va_arg_expr): Do not align
521 va frame for zero sized types.
522 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
524 2005-12-20 Kazu Hirata <kazu@codesourcery.com>
526 PR tree-optimization/25501
527 * tree-cfgcleanup.c (merge_phi_nodes): Check that RESULT is
528 used in the PHI argument corresponding to the edge from BB to
531 2005-12-20 Richard Guenther <rguenther@suse.de>
534 2005-12-02 Richard Guenther <rguenther@suse.de>
536 * tree-cfg.c (mark_used_vars): New function.
537 (dump_function_to_file): Dump only used VAR_DECLs.
539 2005-12-19 Roger Sayle <roger@eyesopen.com>
541 * combine.c (try_combine): Improve splitting of binary operators
542 by taking advantage of reassociative transformations.
544 2005-12-19 Jeff Law <law@redhat.com>
546 * tree-ssa-dom.c (thread_across_edge): Do not use local_fold.
547 Strip away all type conversions after simplifying the
550 * tree-cfgcleanup.c (merge_phi_nodes): Allow merging in some
551 cases the forwarder block dominates the destination.
553 2005-12-19 DJ Delorie <dj@redhat.com>
555 * reload1.c (spill_failure): Dump reload data to dump file.
556 (find_reload_regs): Likewise.
558 2005-12-19 Zdenek Dvorak <dvorakz@suse.cz>
560 PR tree-optimization/24793
561 * tree-ssa-loop-ivopts.c (get_ref_tag): Remember the
562 original reference if there are subvars.
563 * tree-ssa-operands.c (get_tmr_operands): Handle subvars.
565 2005-12-19 Kenneth Zadeck <zadeck@naturalbridge.com>
567 * df.c (df_analyze_1, df_analyze_subcfg, iterative_dataflow):
568 Corrected basic block number calculations for changes in entry and
571 2005-12-19 Zdenek Dvorak <dvorakz@suse.cz>
573 * tree-flow.h (struct var_ann_d): Change type of
574 may_aliases field to VEC(tree, gc) *.
575 (may_aliases): Declaration changed.
576 * tree-ssa-alias.c (group_aliases, add_may_alias,
577 replace_may_alias, dump_may_aliases_for,
578 is_aliased_with, add_type_alias, new_type_alias):
579 Work with VEC(tree, gc) * instead of varray.
580 * tree-flow-inline.h (may_aliases): Ditto.
581 * tree-ssa.c (verify_flow_insensitive_alias_info,
582 verify_name_tags): Ditto.
583 * tree-ssa-operands.c (add_stmt_operand): Ditto.
585 2005-12-19 J"orn Rennecke <joern.rennecke@st.com>
587 * cfgcleanup.c: Temporarily revert patches for PR 20070 till Bernd
590 2005-12-19 J"orn Rennecke <joern.rennecke@st.com>
592 * struct-equiv.c (struct_equiv_improve_checkpoint): Fix sets_cc0_p
595 2005-12-19 Ben Elliston <bje@au.ibm.com>
597 * doc/install.texi (Configuration): Typo in Fortran subheading.
599 2005-12-19 Nathan Sidwell <nathan@codesourcery.com>
601 * config/mt/mt.md (decrement_and_branch_until_zero): Add another
602 scratch. Correct its reload split. Adjust its peephole.
603 (doloop_end): Add additional scratch.
605 * config/mt/mt.c (MT_INT_ARG_FIRST): Remove.
606 (mt_asm_output_opcode, mt_print_operand): Use 'nop'.
607 (mt_function_arg_slotno): Use FIRST_ARG_REGNUM.
608 (mt_builtin_saveregs): Replace with ...
609 (mt_setup_incoming_varargs): ... here. Save just the varadic
611 (mt_va_start): Remove.
612 (mt_reorg_hazard): Ignore USE insns. Don't call set_noop_p.
613 (mt_machine_reorg): Split all insns here.
614 (TARGET_SETUP_INCOMING_VARARGS): Override.
615 * config/mt/mt.h (TARGET_CPU_CPP_BUILTINS): Define __mt__ only.
617 (EXPAND_BUILTIN_VA_START): Remove.
619 2005-12-17 Kenneth Zadeck <zadeck@naturalbridge.com>
621 * flow.c (update_life_info, count_or_remove_death_notes): Fixed
622 latent bug that could happen if update_life_info was called with a
623 blocks parameter and the call to cleanup_cfg actually deleted one
626 2005-12-19 Zdenek Dvorak <dvorakz@suse.cz>
628 * tree-ssa-structalias.c (update_alias_info): Remove handling
629 of may_be_aliased (SSA_NAME_VAR (op)) case.
631 2005-12-19 Zdenek Dvorak <dvorakz@suse.cz>
633 * tree-flow.h (struct stmt_ann_d): Remove
634 makes_aliased_loads and makes_aliased_stores fields.
635 * tree-ssa-ccp.c (likely_value): Do not use makes_aliased_stores
636 and makes_aliased_loads fields.
637 * tree-ssa-dom.c (eliminate_redundant_computations): Do not
638 use makes_aliased_stores.
639 * tree-ssa-operands.c (clobbered_aliased_loads,
640 clobbered_aliased_stores, ro_call_aliased_loads): Removed.
641 (build_ssa_operands, add_stmt_operand, add_call_clobber_ops,
642 add_call_read_ops): Do not set makes_aliased_stores and
643 makes_aliased_loads fields.
644 * tree-ssa.c (verify_ssa): Do not verify makes_aliased_stores
647 2005-12-18 Geoffrey Keating <geoffk@apple.com>
649 * config/darwin.h: Don't include darwin-sections.def to declare
650 global variables; instead create darwin_section_enum.
651 (darwin_section_enum): New.
652 (darwin_sections): New.
653 * config/darwin.c: Don't include darwin-sections.def to define
655 (darwin_sections): New.
656 (output_objc_section_asm_op): Rewrite to take advantage of
658 (darwin_init_sections): Rewrite to use darwin_sections.
659 (machopic_output_indirection): Update for darwin_sections array.
660 (machopic_select_section): Likewise.
661 (machopic_select_rtx_section): Likewise.
662 (machopic_asm_out_constructor): Likewise.
663 (machopic_asm_out_destructor): Likewise.
664 (darwin_file_end): Likewise.
665 * config/rs6000/rs6000.c (machopic_output_stub): Likewise.
666 * config/i386/i386.c (machopic_output_stub): Likewise.
668 2005-12-18 Richard Guenther <rguenther@suse.de>
670 PR tree-optimization/25481
671 * tree-ssa-structalias.c (handle_ptr_arith): Handle accesses we
672 don't have a varinfo for.
674 2005-12-18 Jon Grimm <jgrimm2@us.ibm.com>
675 Janis Johnson <janis187@us.ibm.com>
676 Ben Elliston <bje@au.ibm.com>
678 * optabs.c (init_floating_libfuncs): Handle decimal float modes.
679 (init_optabs): Handle libfuncs for decimal float.
680 * genopinit.c (gen_insn): Handle MODE_DECIMAL_FLOAT.
681 * stor-layout.c (int_mode_for_mode): Likewise.
682 * simplify-rtx.c (simplify_immed_subreg): Likewise.
683 (simplify_unary_operation_1): Skip optimisations for decimal float
685 * varasm.c (output_constant_pool_2): Handle MODE_DECIMAL_FLOAT.
686 * emit-rtl.c (gen_const_vector): Add assertion check.
687 (init_emit_once): Populate const_tiny_rtx with constants in each
689 * expmed.c (extract_high_half, expand_mult_highpart_optab,
690 expand_mult_highpart): Assert that mode is not a scalar float
692 * expr.c (convert_move): Handle conversion between decimal and
693 binary floats of the same size.
694 * convert.c (convert_to_real): Consider decimal float types when
696 * dwarf2out.c (base_type_die): Use DW_ATE_decimal_float to
697 describe decimal floating point types.
699 2005-12-18 Ulrich Weigand <uweigand@de.ibm.com>
701 PR rtl-optimization/21041
702 * reload.c (find_reloads_subreg_address): Replace paradoxical
703 subreg of MEM by widened access only if the resulting memory
704 is properly aligned, even on !STRICT_ALIGNMENT targets.
706 2005-12-18 Andreas Krebbel <krebbel1@de.ibm.com>
708 * tree-cfg.c (tree_flow_call_edges_add): Check for empty basic blocks.
710 2005-12-18 Steven Bosscher <stevenb@suse.de>
712 * gcse.c (gcse_main, bypass_jumps): Fix non-GNU-isms from
713 the 2005-12-17 patch to renumber the entry and exit blocks.
715 2005-12-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
717 * doc/objc.texi (Type encoding): Fix typo.
719 2005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
721 * tree-tailcall.c (find_tail_calls): Use XNEW.
722 * tree-ssa-dom.c (allocate_edge_info): Use XCNEW.
723 (free_all_edge_infos): Use explicit cast to convert from void *.
724 (vrp_free): Likewise.
725 (dom_opt_finalize_block): Likewise.
726 (record_equivalences_from_incoming_edge): Likewise.
727 (thread_across_edge): Likewise. Use XCNEWVEC.
728 (record_cond): Use XCNEW.
729 (record_conditions): Use XNEWVEC.
730 (record_edge_info): Use XCNEWVEC.
731 (lookup_avail_expr): Use XNEW.
732 (record_range): Likewise. Use GGC_NEW.
733 * tree-nested.c (var_map_hash): Use explicit cast to convert from
735 (var_map_eq): Likewise.
736 (lookup_field_for_decl): Likewise.
737 (convert_nonlocal_reference): Likewise.
738 (convert_local_reference): Likewise.
739 (convert_nl_goto_reference): Likewise.
740 (convert_nl_goto_receiver): Likewise.
741 (convert_call_expr): Likewise.
742 (convert_tramp_reference): Likewise.
743 (lookup_tramp_for_decl): Likewise.Use GGC_NEW.
744 (convert_nl_goto_reference): Likewise.
745 (lookup_field_for_decl): Use GGC_NEW.
746 (create_nesting_tree): Use GGC_CNEW.
747 * tree-ssa-phiopt.c (blocks_in_phiopt_order): Use XNEWVEC.
748 * tree-ssa-alias.c (init_alias_info): Use XCNEW.
749 (create_alias_map_for): Likewise.
750 (setup_pointers_and_addressables): Use XCNEWVEC.
751 (get_ptr_info): Use GGC_NEW.
752 (used_part_map_eq): Use explicit cast to convert from void *.
753 (up_lookup): Likewise.
754 (up_insert): Use XNEW.
755 (get_or_create_used_part_for): Use XCNEW.
756 (get_tmt_for): Likewise.
757 * tree-ssa-operands.c (ssa_operand_alloc): Use GGC_NEW.
758 * tree-ssa-pre.c (phi_trans_add): Use XNEW.
759 (bitmap_set_new): Use explicit cast to convert from void *.
761 (insert_into_set): Likewise.
762 (pool_copy_list): Likewise.
763 (phi_translate): Likewise.
764 (create_value_expr_from): Likewise.
765 (insert_aux): Use XCNEWVEC.
766 (compute_avail): Use XNEWVEC.
767 * tree-ssa-live.c (calculate_live_on_entry): Likewise.
768 (sort_coalesce_list): Likewise.
769 (build_tree_conflict_graph): Use XCNEWVEC.
770 * tree-ssa-dce.c (tree_dce_init): Use XNEWVEC.
771 * tree-ssa-copy.c (init_copy_prop): Likewise.
772 (fini_copy_prop): Likewise.
773 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use XNEW
775 (record_equiv): Use XNEW.
776 (uncprop_into_successor_phis): Use explicit cast to convert from
778 (uncprop_initialize_block): Likewise.
780 2005-12-18 Dorit Nuzman <dorit@il.ibm.com>
782 PR tree-optimization/24378
783 * tree-vect-transform.c (vect_transform_loop): Create single-predecessor
784 basic-block after loop-versioning.
786 2005-12-18 Jeff Law <law@redhat.com>
788 * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Code
789 to simplify SWITCH_EXPR_CODE moved from here to ...
790 * tree-ssa-forwprop.c (simplify_switch_expr): Here.
791 (tree-ssa-forward_propagate_single_use_vars): Call
792 simplify_switch_expr when appropriate.
794 2005-12-17 Andrew Pinski <pinskia@physics.uc.edu>
796 * doc/objc.texi (Type encoding): Add documentation about encoding
797 complex types and _Bool.
799 2005-12-17 Paul Brook <paul@codesourcery.com>
801 * config/m68k/m68k.md (m68k_output_function_prologue): Always call
802 dwarf2out_def_cfa. Only add space for frame pointer to cfa_offset
803 when frame_pointer_needed.
805 2005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
807 * tree-vn.c (vn_add): Use XNEW.
808 * tree-ssa-ccp.c (ccp_initialize): Use XNEWVEC.
809 (ccp_fold): Likewise.
810 (fold_stmt_r): Use explicit cast to convert from void *.
811 * tree-outof-ssa.c (new_temp_expr_table): Use XCNEWVEC.
812 (new_temp_expr_table): Likewise.
813 * gimplify.c (lookup_tmp_var): Use XNEW.
814 (gimplify_asm_expr): Use explcit cast to convert from void *.
815 * tree-into-ssa.c (get_ssa_name_ann): Likewise.
816 (get_def_blocks_for): Use XNEW.
817 (add_to_repl_tbl): Likewise.
818 (mark_def_sites): Use explicit cast to convert from void *.
819 (def_blocks_free): Likewise.
820 (mark_def_sites_initialize_block): Likewise.
821 (update_ssa): Use XNEWVEC.
822 * tree-dfa.c (create_var_ann): Use GGC_NEW.
823 (create_stmt_ann): Likewise.
824 (create_tree_ann): Likewise.
825 (referenced_var_insert): Likewise.
826 (set_default_def): Likewise.
827 (referenced_var_lookup_if_exists): Use explicit cast to convert
829 (referenced_var_lookup): Likewise.
830 (default_def): Likewise.
831 (set_default_def): Likewise.
832 * tree-cfg.c (create_bb): Likewise.
833 (edge_to_cases_cleanup): Likewise.
834 (verify_node_sharing): Likewise.
835 (record_switch_edge): Use XNEW.
836 (cleanup_dead_labels): Use XCNEWVEC.
837 (tree_duplicate_sese_region): Use XNEWVEC.
838 * tree-scalar-evolution.c (get_instantiated_value): Likewise.
839 * tree-ssa.c (verify_ssa): Use XCNEWVEC.
840 (int_tree_map_eq): Use explicit cast to convert from void *.
841 * libgcov.c (gcov_exit): Use explicit cast to convert from void *.
842 (__gcov_execl): Likewise.
843 (__gcov_execlp): Likewise.
844 (__gcov_execle): Likewise.
845 * tree-eh.c (struct_ptr_eq): Likewise.
846 (struct_ptr_hash): Likewise.
847 (lookup_stmt_eh_region_fn): Likewise.
848 (outside_finally_tree): Likewise.
849 (find_goto_replacement): Likewise.
850 (make_eh_edge): Likewise.
851 (mark_eh_edge): Likewise.
852 (add_stmt_to_eh_region_fn): Use GGC_NEW.
853 (record_in_finally_tree): Use XNEW.
854 (maybe_record_in_goto_queue): Use XRESIZEVEC.
855 (lower_try_finally_copy): Use XCNEWVEC.
857 2005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
859 * tree-inline.c (copy_body_r): Use explicit cast when converting
862 (copy_edges_for_bb): Likewise.
863 (remap_decl_1): Likewise.
864 (estimate_num_insns_1): Likewise.
865 * cgraph.c (hash_node): Use explicit cast when converting from
868 (cgraph_create_node): Use GGC_CNEW.
869 (cgraph_create_edge): Use GGC_NEW.
870 (cgraph_remove_node): Use explicit cast when converting from void *.
871 (hash_varpool_node): Likewise.
872 (eq_varpool_node): Likewise.
873 (cgraph_varpool_node): Use GGC_CNEW.
874 * lambda.h (lambda_vector_new): Use GGC_CNEWVEC.
875 * tree-scalar-evolution.c (new_scev_info_str): Use XNEW.
876 (eq_scev_info): Use explicit cast when converting from void *.
877 (find_var_scev_info): Likewise.
878 (set_instantiated_value): Likewise.
879 (gather_stats_on_scev_database_1): Likewise.
880 * cfgloop.h (simple_loop_desc): Use explicit cast when converting
882 * c-pch.c (c_common_write_pch): Use XNEWVEC.
883 (c_common_read_pch): Likewise.
884 * prefix.c (save_string): Use XNEWVEC.
885 (translate_name): Use explicit cast when converting from void *.
886 * c-ppoutput.c (print_line): Use explicit cast when converting
888 (pp_dir_change): Likewise.
889 * c-cppbuiltin.c (builtin_define_std): Likewise.
890 (builtin_define_with_value): Likewise.
891 (builtin_define_with_value_n): Likewise.
892 (builtin_define_with_int_value): Likewise.
893 (builtin_define_type_max): Likewise.
894 * c-incpath.c (add_env_var_paths): Use XNEWVEC.
895 (add_path): Use XNEW.
896 * c-format.c (check_format_info_main): Use GGC_NEW.
897 (format_type_warning): Use explicit cast when converting from void *.
898 * c-typeck.c (alloc_tagged_tu_seen_cache): Use XNEW instead of
900 (start_init): Likewise.
901 * tree-flow-inline.h (first_referenced_var): Use explicit cast
902 when converting from void *.
903 (next_referenced_var): Likewise.
904 * c-pragma.c (push_alignment): Use GGC_NEW instead of ggc_alloc.
905 * gensupport.c (lookup_predicate): Use explicit cast to convert
907 (init_predicate_table): Use XCNEW instead of xcalloc.
908 * genpreds.c (process_define_predicate): Likewise.
910 2005-12-17 Danny Berlin <dberlin@dberlin.org>
911 Kenneth Zadeck <zadeck@naturalbridge.com>
913 * basic-block.h: Changed basic block numbering so that the entry
914 block is 0 and the exit block is 1. Changed insn iterators so
915 that they are tolerant of blocks with no insns.
916 * regrename.c (copyprop_hardreg_forward): Changed basic block
917 numbering so that the entry block is 0 and the exit block is 1.
918 * sched-ebb.c (sehedule_ebbs): Ditto.
919 * tracer.c (branch_ratio_cutoff): Ditto.
920 * cfgloopmanip.c (fix_loop_structure): Ditto.
921 * cfghooks.c (verify_flow_info): Ditto.
922 * cfg.c (compact_blocks): Ditto.
923 * reorg.c (dbr_schedule): Ditto.
924 * flow.c (calculate_global_regs_live, libcall_dead_p): Ditto.
925 * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
926 calculate_dominance_info): Ditto.
927 * cfganal.c (create_edge_list, print_edge_list,
928 flow_depth_first_order_compute, flow_dfs_compute_reverse_init,
929 flow_dfs_compute_reverse_add_bb, flow_dfs_compute_reverse_execute,
930 dfs_enumerate_from): Ditto.
931 * global.c (global_alloc, set_up_bb_rts_numbers): Ditto.
932 * ifcvt.c (find_if_case_2): Ditto.
933 * cfgbuild.c (control_flow_insn_p, count_basic_blocks,
934 find_basic_blocks): Ditto.
935 * predict.c (predict_loops, tree_bb_level_predictions,
936 predict_paths_leading_to, propagate_freq): Ditto.
937 * lcm.c (compute_antinout_edge, compute_laterin,
938 compute_available): Ditto.
939 * function.c (thread_prologue_and_epilogue_insns): Ditto.
940 * gcse.c (gcse_main, bypass_jumps): Ditto.
941 * profile.c (compute_branch_probabilities,
942 compute_value_histograms, branch_prob): Ditto.
943 * tree-flow-inline.h (bsi_start, bsi_after_labels,
945 * tree-ssa-phiopt.c (tree_ssa_phiopt,
946 blocks_in_phiopt_order): Ditto.
947 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
948 compute_out, link_btr_uses, migrate_btr_defs): Ditto.
949 * tree-dfa.c (collect_dfa_stats): Ditto.
950 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Ditto.
951 * cfglayout.c (fixup_reorder_chain): Ditto.
952 * bb-reorder.c (reorder_basic_blocks, duplicate_computed_gotos,
953 partition_hot_cold_basic_blocks): Ditto.
954 * var-tracking.c (vt_find_locations): Ditto.
955 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find, get_loop_body): Ditto.
956 * sched-rgn.c (compute_trg_info, init_regions, schedule_insns): Ditto.
957 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, make_edges
958 label_to_block_fn, print_loop_ir, tree_flow_call_edges_add): Ditto.
959 * tree-ssa-reassoc.c (init_reassoc): Ditto.
960 * cfgrtl.c (entry_of_function, rtl_verify_flow_info,
961 rtl_flow_call_edges_add, rtl_flow_call_edges_add): Ditto.
962 * df.c (df_analyze_1, hybrid_search, iterative_dataflow): Ditto
963 and removed unused reverse orders.
965 * combine.c: Fix document typo.
967 2005-12-17 Jan Hubicka <jh@suse.cz>
969 * tree-flow-inline.h (set_default_def, default_def): Kill.
970 * tree-dfa.c (default_defs): New global variable.
971 (default_def, set_default_def): New functions.
972 * tree-ssa.c (init_tree_ssa, delete_tree_ssa): Add default_def hash.
973 * tree-flow.h (struct var_ann_d): Kill default_def field.
974 (set_default_def, default_def): Update prototype.
975 (default_defs): Declare.
977 2005-12-16 Jeff Law <law@redhat.com>
979 * tree-ssa-dom.c (update_rhs_and_lookup_avail_expr): Kill.
980 (simplify_rhs_and_lookup_avail_expr): Kill. Remnants moved
981 into tree-ssa-forwprop.c.
982 (eliminate_redundant_computations): Do not call
983 simplify_rhs_and_lookup_avail_expr anymore.
984 * tree-ssa-forwprop.c (simplify_not_neg_expr): New function
985 extracted from remnants of simplify_rhs_and_lookup_avail_expr.
986 (tree_ssa_forward_propagate_single_use_vars): Call
987 simplify_not_neg_expr appropriately.
989 2005-12-16 Bernd Trog <berndtrog@yahoo.com>
992 * config/avr/t-avr: Add -Os to TARGET_LIBGCC2_CFLAGS.
994 2005-12-17 Kazu Hirata <kazu@codesourcery.com>
996 PR rtl-optimization/25456
997 * struct-equiv.c (struct_equiv_improve_checkpoint): Replace
998 info->x_start with p->x_start.
1000 2005-12-17 Alan Modra <amodra@bigpond.net.au>
1002 * simplify-rtx.c (simplify_binary_operation_1 <IOR>): Correct bug
1003 introduced 2005-12-16.
1005 2005-12-16 Steven Bosscher <stevenb@suse.de>
1007 PR rtl-optimization/23837
1008 * optabs.c (expand_binop): For a multi-word rotate, never emit
1009 a REG_NO_CONFLICT block.
1011 2005-12-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1014 * reorg.c (mostly_true_jump): Remove unused variable 'insn'.
1017 * config/pa/pa.c (pa_scalar_mode_supported_p): Handle
1020 2005-12-16 Steven Bosscher <stevenb@suse.de>
1022 * loop-invariant.c (move_loop_invariants): Add missing hunk from
1023 the previous patch, to nullify df.
1025 2005-12-16 Steven Bosscher <stevenb@suse.de>
1027 * reorg.c (mostly_true_jump): Clean up code depending on
1028 LABEL_OUTSIDE_LOOP_P and loop notes. Remove code doing
1029 poor man's branch prediction, instead rely on REG_BR_PROB
1030 notes to be available.
1032 2005-12-16 Jakub Jelinek <jakub@redhat.com>
1034 PR rtl-optimization/24899
1035 * loop.c (strength_reduce): Don't reduce giv that is not always
1036 computable and where add_val or mult_val can trap.
1038 * doc/invoke.texi (-fdump-tree-*): Remove note about C/C++ only.
1040 2005-12-16 Nathan Sidwell <nathan@codesourcery.com>
1042 * config/mt/mt.h (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Correct
1043 names of ms1-16-002 files.
1045 2005-12-16 Alan Modra <amodra@bigpond.net.au>
1048 * gcc.c (for_each_path): New function.
1049 (add_to_obstack, file_at_path): New functions.
1050 (struct file_at_path_info, struct add_to_obstack_info): New.
1051 (build_search_list): Rewrite using for_each_path. Constify struct
1052 path_prefix pointer. Add do_multi param. Adjust all callers.
1053 (find_a_file): Similarly, but just change existing param to bool.
1054 (putenv_from_prefixes): Add do_multi param, make "paths" const.
1055 (do_spec_path): Delete.
1056 (struct spec_path_info): New.
1057 (spec_path): New function.
1058 (do_spec_1): Use for_each_path for %D and %I.
1059 (find_file): Adjust for find_a_file changes.
1060 (main): Search multilibs for specs. Print multilib lib path for
1061 -print-search-dirs. Likewise add multilibs to LIBRARY_PATH_ENV.
1062 (read_specs): Search multilibs for %include and %include_noerr.
1063 (is_directory): Remove second string param. Change last param
1064 to a bool. Don't use concat. Remove SMALL_ARG_MAX test, always
1065 check path is a dir. Update all callers.
1066 * doc/hostconfig.texi (SMALL_ARG_MAX): Remove mention.
1067 * system.h (SMALL_ARG_MAX): Poison.
1068 * config.gcc: Don't define SMALL_ARG_MAX.
1069 * config.host: Likewise.
1070 * config.build: Likewise.
1072 2005-12-16 Paolo Bonzini <bonzini@gnu.org>
1074 * combine.c (combine_simplify_rtx <case NOT, NEG, TRUNCATE,
1075 FLOAT_TRUNCATE, FLOAT_EXTEND, PLUS, MINUS, AND, IOR, XOR,
1076 ABS, VEC_SELECT, POPCOUNT, PARITY, FFS, FLOAT>,
1077 simplify_logical): Move simplifications that do not require
1078 additional infrastructure...
1079 * simplify-rtx.c (simplify_unary_operation_1,
1080 simplify_binary_operation_1): ... here.
1082 2005-12-16 Andreas Krebbel <krebbel1@de.ibm.com>
1085 * flow.c (mark_used_dest_regs): New function.
1086 (mark_used_regs): Call mark_used_dest_regs.
1088 2005-12-16 Jeff Law <law@redhat.com>
1090 * tree-ssa-dse.c (dse_optimize_stmt): Correctly handle PHI nodes which
1091 represent a use and definition of the same SSA_NAME.
1093 2005-12-16 Jon Grimm <jgrimm2@us.ibm.com>
1094 Janis Johnson <janis187@us.ibm.com>
1095 Ben Elliston <bje@au.ibm.com>
1097 * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): New.
1098 (TARGET_INITIALIZER): Add TARGET_DECIMAL_FLOAT_P.
1099 * target.h (struct gcc_target): Add decimal_float_supported_p.
1100 * targhooks.c (default_scalar_mode_supported_p): Handle
1102 * builtins.def: Add new builtins for 32, 64 and 128 bit variants
1103 of inf, nan, finite, isinf and isnan.
1104 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128,
1105 BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR,
1106 BT_FN_DFLOAT32, BT_FN_DFLOAT64, BT_FN_DFLOAT128,
1107 BT_FN_INT_DFLOAT32, BT_FN_INT_DFLOAT64, BT_FN_INT_DFLOAT128,
1108 BT_FN_DFLOAT32_CONST_STRING, BT_FN_DFLOAT64_CONST_STRING,
1109 BT_FN_DFLOAT32_CONST_STRING, BT_FN_DFLOAT32_DFLOAT32,
1110 BT_FN_DFLOAT64_DFLOAT64, BT_FN_DFLOAT128_DFLOAT128): New.
1111 * c-decl.c (declspecs_add_type): Verify combos on type qualifiers.
1112 Pedwarn if decimal floating point types are used. Error if
1113 decimal floating point is not supported by the target.
1114 (finish_declspecs): Return type from DFP typespec_word.
1115 * c-typeck.c (c_common_type): Choose the decimal floating point
1116 type with the greater precision when determining a common type.
1117 (convert_arguments): Warn if there is a mismatch between argument
1118 and prototype for decimal float types. Warn of conversions with
1119 binary float types and of precision narrowing due to prototype.
1120 * c-parser.c (reswords): Add _Decimal32, _Decimal64, _Decimal128.
1121 (c_token_starts_typename): Handle RID_DFLOAT32/64/128.
1122 (c_token_starts_declspecs): Likewise.
1123 (c_parser_attributes): Likewise.
1124 * c-common.h (enum rid): Add new enumeration values RID_DFLOAT32,
1125 RID_DFLOAT64, RID_DFLOAT128.
1126 (T_D32, TEX_D32, T_D64, TEX_D64, T_D128, TEX_D128): New macros.
1127 * c-common.c (c_common_type_for_mode): Handle decimal float modes.
1128 (shorten_compare): Convert DFP/BFP operands to a common type.
1129 (c_common_modes_and_builtins): Register built-in decimal float
1130 types if the target supports them.
1131 (handle_mode_addtribute): Handle MODE_DECIMAL_FLOAT.
1132 * builtins.c (fold_builtin_1): Handle 32, 64 and 128 bit cases of
1133 inf, nan, finite, isinf and isnan builtins.
1134 * c-cppbuiltin.c (builtin_define_decimal_float_constants): New.
1135 (builtin_define_float_constants): Assert non-decimal radix.
1136 (c_cpp_builtins): Register built-in __DEC_EVAL_METHOD__ define.
1137 Call builtin_define_decimal_float_constants for each type.
1138 * c-lex.c (interpret_float): Decode decimal float types from CPP_N
1139 flags. Use real_from_string3, which can handle binary or decimal
1141 * c-tree.h (enum c_typespec_keyword): Add cts_dfloat32,
1142 cts_dfloat64, cts_dfloat128.
1143 * tree.c (build_common_tree_nodes_2): Add decimal float types.
1144 * tree.h (enum tree_index): Add new enumeration values
1145 TI_DFLOAT32_TYPE, TI_DFLOAT64_TYPE, TI_DFLOAT128_TYPE,
1146 TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE, TI_DFLOAT128_PTR_TYPE.
1147 (dfloat32_type_node): New macro.
1148 (dfloat64_type_node, dfloat128_type_node): Likewise.
1149 (dfloat32_ptr_type_node, dfloat64_ptr_type_node): Likewise.
1150 (dfloat128_ptr_type_node): Likewise.
1151 * c-pretty-print.c (pp_c_floating_constant): Append 32, 64 and 128
1152 bit decimal floating point types with "df", "dd" and "dl".
1153 * c-format.h (enum format_lengths): Add new enumeration values
1154 FMT_LEN_H, FMT_LEN_D and FMT_LEN_DD.
1155 * c-format.c (printf_length_specs, scanf_length_specs): Add
1156 entries for H, D, DD.
1157 (print_char_table, scan_char_table): Use new entries.
1158 (asm_fprintf_char_table, gcc_diag_char_table,
1159 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Adjust for longer
1161 * defaults.h (DECIMAL32_TYPE_SIZE): Define.
1162 (DECIMAL64_TYPE_SIZE): Likewise.
1163 (DECIMAL128_TYPE_SIZE): Likewise.
1164 (TARGET_DEC_EVAL_METHOD): Likewise.
1165 * doc/extend.texi (Decimal Float): New node.
1166 (Constructing Calls): Document decimal float built-ins.
1167 * doc/tm.texi: Document TARGET_DECIMAL_FLOAT_SUPPORTED_P hook.
1168 * Makefile.in (USER_H): Add $(srcdir)/ginclude/decfloat.h.
1169 * ginclude/decfloat.h: New file.
1171 2005-12-16 Alan Modra <amodra@bigpond.net.au>
1173 * reload.c (find_reloads): Fix comment typo.
1174 * recog.h (recog_memoized): Correct comment.
1176 2005-12-16 Kazu Hirata <kazu@codesourcery.com>
1178 * basic-block.h, config/i386/winnt.c, config/pa/pa.c,
1179 config/s390/s390.c, dfp.c, expr.c, fold-const.c, params.def,
1180 reload.c, struct-equiv.c, tree-ssa-ccp.c, tree-ssa-pre.c,
1181 tree-ssa-reassoc.c, tree-ssa-structalias.c: Fix comment typos.
1182 * doc/invoke.texi, doc/tm.texi: Fix typos.
1184 2005-12-16 Ben Elliston <bje@au.ibm.com>
1186 * real.c (decimal_quad_format): Correct values for emin, emax.
1188 2005-12-15 DJ Delorie <dj@redhat.com>
1190 * config/m32c/predicates.md (m32c_psi_scale): New.
1191 * config/m32c/m32c.c (m32c_expand_neg_mulpsi3): New.
1192 * config/m32c/muldiv.md (mulpsi3): Support negative constants.
1194 2005-12-16 Jan Hubicka <jh@suse.cz>
1196 PR rtl-optimization/25224
1197 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free copy
1200 2005-12-15 Zdenek Dvorak <dvorakz@suse.cz>
1201 Steven Bosscher <stevenb@suse.de>
1203 * loop-invariant.c (df): New global variable.
1204 (find_defs, check_dependencies, find_invariant_insn, record_uses,
1205 find_invariants_bb, find_invariants_body, find_invariants,
1206 find_invariants_to_move, move_invariants, free_inv_motion_data,
1207 move_single_loop_invariants, move_loop_invariants): Do not pass df in
1210 2005-12-15 Jakub Jelinek <jakub@redhat.com>
1212 * varasm.c (default_unique_section_1): Use special section
1213 names for SECCAT_DATA_REL{,_RO}{,_LOCAL}.
1215 2005-12-16 Ben Elliston <bje@au.ibm.com>
1217 * doc/invoke.texi (Warning Options): Document -Walways-true being
1220 2005-12-15 Joseph S. Myers <joseph@codesourcery.com>
1223 * libgcc2.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Define.
1224 * libgcc2.c (__floatdixf, __floatundixf, __floatditf,
1225 __floatunditf): Use #error if type sizes don't match requirements
1227 (__floatdisf, __floatdidf): Unify. Possibly use XFmode or TFmode
1228 as wider floating-point type. Use #error if type sizes don't
1229 match requirements of implementation. Avoid overflow in computing
1230 Wtype_MAXp1_F * Wtype_MAXp1_F. When special casing conversion,
1231 shift one more bit. Cast 1 to DWtype or UDWtype for shifting.
1232 (__floatundisf, __floatundidf): Likewise.
1233 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Define.
1234 * config/ia64/ia64.c (ia64_init_libfuncs): Use
1235 _U_Qfcnvfxt_quad_to_quad and _U_Qfcnvxf_quad_to_quad for
1236 TFmode-TImode conversions.
1237 * doc/tm.texi (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Document.
1239 2005-12-14 Craig Rodrigues <rodrigc@gcc.gnu.org>
1241 * freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS):
1242 Use builtin_define_with_int_value() instead of
1243 adding a new check for every new major FreeBSD version.
1245 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1247 * config/t-darwin (darwin-c.o): Depend on $(TREE_H) instead of tree.h.
1249 2005-12-15 Richard Sandiford <richard@codesourcery.com>
1251 * config/arm/predicates.md (call_memory_operand): New.
1252 * config/arm/arm.md (*call_mem, *call_value_mem): Use it.
1254 2005-12-15 Andrew Haley <aph@redhat.com>
1256 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Guard
1257 against prev_cache_entry == NULL when moving a cache entry to the
1260 2005-12-15 Nathan Sidwell <nathan@codesourcery.com>
1262 * config/mt/mt.c (mt_override_options): Require lower case
1263 architectures. Revert accidental default to ms2.
1264 * config/mt/mt.h (ASM_SPEC, LIBSPEC, STARTFILE_SPEC,
1265 ENDFILE_SPEC): Require lower case architectures. Revert default
1268 * doc/invoke.texi (MT Options): Rename and update.
1269 * doc/md.texi (MorphoTech family): Rename and update.
1271 2005-12-15 Olivier Hainque <hainque@adacore.com>
1273 * stor-layout.c (layout_type): Don't complain about a too small
1274 an array element type size compared to its alignment when the
1277 2005-12-15 Jan Hubicka <jh@suse.cz>
1280 * i386.c (classify_argument): Properly adjust offset of bitfield for
1283 2005-12-15 Richard Sandiford <richard@codesourcery.com>
1285 * final.c (final_scan_insn): Flip in_cold_section_p when changing
1286 between the hot and cold sections. Use current_function_section
1287 to get the new section.
1288 * dwarf2out.c (output_line_info): Use in_cold_section_p to
1289 determine whether we are assembling hot or cold code.
1290 (secname_for_decl, dwarf2out_var_location): Likewise.
1291 (dwarf2out_init, dwarf2out_finish): Use switch_to_section.
1292 * varasm.c (last_text_section): Delete.
1293 (in_cold_section_p): New variable.
1294 (hot_function_section): New function.
1295 (current_function_section): Pass in_cold_section_p as the
1296 reloc argument to select_section. Use it to decide between
1297 unlikely_function_section and hot_function_section.
1298 (assemble_start_function): Use switch_to_section. Set
1299 in_cold_section_p instead of last_text_section.
1300 (assemble_end_function): Use switch_to_section.
1301 (switch_to_section): Don't set last_text_section.
1302 * config/darwin/darwin.c (machopic_select_section): Trust the reloc
1303 argument to make the right choice between hot and cold sections.
1305 2005-12-15 Nathan Sidwell <nathan@codesourcery.com>
1307 Second part of MS1->MT renaming
1308 * config/mt/mt.md (doloop_end): Call mt_add_loop.
1309 (movqi, movhi): Call mt_set_memflags.
1310 (*movdf_internal): Call mt_split_words.
1311 (reload_inqi, reload_outqi, reload_inhi, reload_outhi): Call
1313 (cmpsi): Store to mt_compare_op[01].
1314 (beq, bne, bge, bgt, ble, blt, bgeu, bgtu, bleu, bltu, bunge,
1315 bungt, bunle, bunlt): Call mt_emit_cbranch.
1316 (prologue): Call mt_expand_prologue.
1317 (epilogu): Call mt_expend_epilogue.
1318 (eh_return): Call mt_expand_eh_return.
1319 (eh_epilogue): Call me_emit_eh_epilogue.
1320 (conditional_trap): Store to mt_compare_op[01].
1321 * config/mt/crti.asm: Adjust comment.
1322 * config/mt/crtn.asm: Adjust comment.
1323 * config/mt/mt.c (MT_INT_ARG_FIRST): Renamed.
1324 (mt_compare_op0, mt_compare_op1): Renamed.
1325 (current_frame_info, zero_frame_info): Adjust type.
1326 (mt_ucmpsi3_libcall): Renamed.
1327 (mt_flag_delayed_branch): Renamed.
1328 (mt_struct_value_rtx, mt_return_addr_rtx): Renamed.
1329 (mt_nops_required, mt_nop_reasons): Renamed.
1330 (mt_asm_output_opcode, mt_get_attr_type, mt_final_prescan_insn,
1331 mt_debug_stack, mt_print_operand_simple_address,
1332 mt_print_operand_address, mt_print_operand): Renamed, adjusted.
1333 (mt_init_cumulative_args, mt_function_arg_slotno, mt_function_arg,
1334 mt_function_arg_advance, mt_arg_partial_bytes,
1335 mt_pass_by_reference, mt_function_arg_boundary,
1336 mt_reg_ok_for_base_p, mt_legitimate_simple_address_p,
1337 mt_legitimate_address_p): Renamed, adjusted.
1339 (mt_init_machine_status, mt_override_options, mt_builtin_saveregs,
1340 mt_va_start, mt_compute_frame_size, mt_emit_save_restore,
1341 mt_emit_save_fp, mt_emit_save_regs, mt_interrupt_function_p,
1342 mt_expand_prologue, mt_epilogue_uses, mt_expand_epilogue,
1343 mt_expand_eh_return, mt_emit_eh_prologue,
1344 mt_handl_interrupt_attribute): Renamed, adjusted.
1345 (mt_attribute_table): Renamed, adjusted.
1346 (mt_initial_elimination_offset, mt_generate_compare,
1347 mt_emit_cbranch, mt_set_memflags_1, mt_set_memflags,
1348 mt_secondary_reload_class, mt_function_value, mt_split_words,
1349 mt_pass_in_stack, mt_add_loop, mt_loop_nesting, mt_block_length,
1350 mt_scan_loop, mt_reorg_loops): Renamed, adjusted.
1351 (mt_labels): Renamed.
1352 (mt_add_branches, mt_check_delay_slot, mt_reorg_hazard,
1353 mt_machine_reorg): Renamed, adjusted.
1354 (mt_attribute_table: Renamed.
1355 (TARGET_ATTRIBUTE_TABLE, TARGET_STRUCT_VALUE_RTX,
1356 TARGET_PASS_BY_REFERENCE, TARGET_MUST_PASS_IN_STACK,
1357 TARGET_ARG_PARTIAL_BYTES, TARGET_MACHINE_DEPENDENT_REORG): Adjust.
1358 * config/mt/mt.opt (march): Set mt_cpu_string.
1359 * config/mt/mt.h (mt_ucmpsi3_libcall, mt_cpu): Renamed.
1360 (TARGET_CPU_CPP_BUILTINS): Adjust.
1361 (TARGET_MS1_64_001, TARGET_MS1_16_002, TARGET_MS1_16_003,
1362 TARGET_MS2): Adjust.
1363 (TARGET_VERSION, OVERRIDE_OPTIONS, SECONDARY_RELOAD_CLASS): Adjust.
1364 (MT_MIN_INT): Renamed.
1365 (RETURN_ADDR_RTX): Adjust.
1366 (struct mt_frame_info): Renamed.
1367 (current_frame_info): Adjust type.
1368 (INITIAL_ELIMINATION_OFFSET): Adjust.
1369 (MT_NUM_ARG_REGS): Renamed.
1370 (REG_PARM_STACK_SPACE, FUNCTION_ARG, INIT_CUMULATVE_ARGS,
1371 FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY, FUNCTION_VALUE,
1372 LIBCALL_VALUE, EPILOGUE_USES, EXPAND_BUILTIN_VA_START,
1373 GO_IF_LEGITIMATE_ADDRESS, REG_OK_FOR_BASE_P, ASM_OUTPUT_OPCODE,
1374 FINAL_REPSCAN_INSN, PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Adjust.
1375 (mt_compare_op0, mt_compare_op1): Renamed.
1376 * config/mt/mt-protos.h: Rename prototypes.
1378 2005-12-15 Richard Guenther <rguenther@suse.de>
1380 * tree-flow.h (okay_component_ref_for_subvars): Remove.
1381 (get_ref_base_and_extent): Declare.
1382 * tree-dfa.c (okay_component_ref_for_subvars): Remove.
1383 (get_ref_base_and_extent): New function.
1384 * tree-ssa-alias.c (find_used_portions): Use it.
1385 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1387 * tree-ssa-operands.c (get_expr_operands): Likewise.
1389 2005-12-15 Paolo Bonzini <bonzini@gnu.org>
1391 * combine.c: Remove force_to_mode's fourth parameter.
1392 (force_to_mode): Do not handle REG.
1393 (canon_reg_for_combine): New.
1394 (make_field_assignment): Use it where the removed argument was non-NULL.
1396 2005-12-15 Alan Modra <amodra@bigpond.net.au>
1399 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Handle
1400 error_mark_node. Make alignment params unsigned.
1401 * config/rs6000/rs6000-protos.h
1402 (rs6000_special_round_type_align): Update prototype.
1403 (rs6000_machopic_legitimize_pic_address): Remove arg names.
1405 2005-12-14 Ulrich Weigand <uweigand@de.ibm.com>
1407 PR rtl-optimization/25310
1408 * reload1.c (eliminate_regs_in_insn): Handle lowpart SUBREGs
1409 of the eliminable register when substituting into a PLUS.
1411 2005-12-14 Jakub Jelinek <jakub@redhat.com>
1414 * config/i386/i386.c (ix86_force_to_memory): Always use
1415 SImode push for HImode in -m32.
1416 (ix86_free_from_memory): Likewise.
1418 2005-12-14 Richard Sandiford <richard@codesourcery.com>
1420 * config/arm/arm.md: Provide a big-endian version of the
1421 (zero_extend:SI (subreg:QI ...)) splitter.
1423 2005-12-14 J"orn Rennecke <joern.rennecke@st.com>
1425 * struct-equiv.c (note_local_live): Handle hard regs with different
1428 2005-12-14 Jeff Law <law@redhat.com>
1430 * tree-ssa-ccp.c (fold_stmt_r): DATA argument is now a pointer
1431 to a structure containing state rather than a pointer to bool.
1432 (case ARRAY_REF): New code to handle folding some array references.
1433 (case ADDR_EXPR): Note when we are processing expressions found
1434 within an ADDRE_EXPR.
1435 (fold_stmt, fold_stmt_inplace): Pass in a structure to fold_stmt_r
1436 for state variables rather than just a pointer to a boolean.
1437 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
1438 handling of constant string references.
1440 2005-12-14 Adrian Straetling <straetling@de.ibm.com>
1442 * config/s390/s390.md ("*tstdi_extimm", "*tstsi_extimm"): Merge.
1443 ("*tstdi_cconly_extimm", "*tstsi_cconly_extimm"): Merge.
1444 ("*tstdi_cconly2", "*tstsi_cconly2"): Merge.
1445 Move other tst* patterns to retain partial order.
1447 2005-12-14 Adrian Straetling <straetling@de.ibm.com>
1449 * config/s390/s390.md ("d0", "1"): New mode attributes.
1450 ("<shift>di3", "<shift>si3"): Merge.
1451 ("*<shift>di3_and", "*<shift>si3_and"): Merge.
1452 ("ashrdi3", "ashrsi3"): Merge.
1453 ("*ashrdi3_cc", "*ashrsi3_cc"): Merge.
1454 ("*ashrdi3_cc_and", "*ashrsi3_cc_and"): Merge.
1455 ("*ashrdi3_cconly", "*ashrsi3_cconly"): Merge.
1456 ("*ashrdi3_cconly_and", "*ashrsi3_cconly_and"): Merge.
1457 ("*ashrdi3", "*ashrsi3"): Merge.
1458 ("*ashrdi3_and", "*ashrsi3_and"): Merge.
1460 2005-12-14 Adrian Straetling <straetling@de.ibm.com>
1462 * config/s390/s390.md ("extend<mode>di2", "extend<mode>si2"): Merge.
1463 ("*extendqidi2_extimm", "*extendqisi2_extimm"): Merge.
1464 ("*extendqidi2", "*extendqisi2") Merge.
1465 ("*extendqidi2_short_displ", "*extendqisi2_short_displ"): Merge.
1466 ("zero_extendhidi2", "zero_extendqidi2"): Merge.
1467 ("*zero_extend<mode>di2_extimm", "*zero_extend<mode>si2_extimm"): Merge.
1468 Move some patterns to retain partial ordering.
1470 2005-12-14 Adrian Straetling <straetling@de.ibm.com>
1472 * config/s390/s390.md ("atype", "length"): Rewrite.
1473 ("*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): Add mode.
1475 2005-12-14 Sebastian Pop <pop@cri.ensmp.fr>
1477 * tree-ssa-operands.c (build_ssa_operands): Update leading comment.
1479 2005-12-14 J"orn Rennecke <joern.rennecke@st.com>
1481 * struct-equiv.c (rtx_equiv_p): Allow arbitrary RVALUE values for
1482 PARALLELs with a mode.
1484 2005-12-14 Sebastian Pop <pop@cri.ensmp.fr>
1486 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Adjust the type of
1487 cond_expr parameter.
1489 2005-12-14 Sebastian Pop <pop@cri.ensmp.fr>
1491 * loop-unswitch.c (unswitch_loop): Free zero_bitmap before returning.
1493 2005-12-14 J"orn Rennecke <joern.rennecke@st.com>
1497 * struct-equiv.c (struct_equiv_init): Fix off-by-one error in clearing
1500 * struct-euiv.c (rtx_equiv_p): Remove SUBREG case.
1502 2005-12-14 Jakub Jelinek <jakub@redhat.com>
1506 * config/i386/i386.c (x86_64_elf_select_section): If DECL is not
1507 DECL_P, call get_section rather than get_named_section. Supply
1508 section flags to it.
1510 2005-12-14 Ben Elliston <bje@au.ibm.com>
1512 * c-common.c (c_common_truthvalue_conversion): Generalise warning
1513 for addresses converted to booleans; not just function addresses.
1514 * c-typeck.c (build_binary_op): Warn for address comparisons which
1515 can never be NULL (eg. func == NULL or &var == NULL).
1516 * common.opt (Walways-true): New option.
1517 * c-opts.c (c_common_handle_option): Set it with -Wall.
1518 * doc/invoke.texi: Document it.
1520 2005-12-13 Paul Brook <paul@codesourcery.com>
1522 * config/m68k/fpgnulib.c (__unordsf2, __unorddf2, __unordxf2,
1523 __floatunsidf, __floatunsisf, __floatunsixf): New functions.
1525 2005-12-13 Nathan Sidwell <nathan@codesourcery.com>
1527 * config/mt/t-mt (crti.o, crtn.o): Add multilib options.
1528 (EXTRA_MULTILIB_PARTS): Define.
1530 2005-12-13 J"orn Rennecke <joern.rennecke@st.com>
1532 PR rtl-optimization/20070 / part1
1533 * flow.c (update_life_info): If PROP_POST_REGSTACK is set, call
1534 count_or_remove_death_notes with kill == -1.
1535 (mark_set_1): Don't add REG_DEAD / REG_UNUSED notes for stack
1536 registers if PROP_POST_REGSTACK is set.
1537 (mark_used_reg): Likewise.
1538 (count_or_remove_death_notes): If kill is -1, don't remove REG_DEAD /
1539 REG_UNUSED notes for stack regs.
1540 * cfgcleanup.c (condjump_equiv_p): Change parameters and processing
1541 to match rtx_equiv_p machinery. Change caller.
1542 (outgoing_edges_match): Likewise.
1543 (try_crossjump_to_edge): Use struct_equiv_block_eq
1544 instead of flow_find_cross_jump.
1545 * basic-block.h (PROP_POST_REGSTACK, STRUCT_EQUIV_START): Define.
1546 (STRUCT_EQUIV_RERUN, STRUCT_EQUIV_FINAL): Likewise.
1547 (STRUCT_EQUIV_NEED_FULL_BLOCK, STRUCT_EQUIV_MATCH_JUMPS): Likewise.
1548 (STRUCT_EQUIV_MAX_LOCAL): Likewise.
1549 (struct struct_equiv_checkpoint, struct equiv_info): Likewise.
1550 (insns_match_p): Update prototype.
1551 (flow_find_cross_jump): Remove prototype.
1552 (struct_equiv_block_eq, struct_equiv_init): Declare.
1553 (rtx_equiv_p, condjump_equiv_p): Likewise.
1554 * struct-equiv.c: Include reload.h.
1555 (IMPOSSIBLE_MOVE_FACTOR): Define.
1556 (assign_reg_reg_set, struct_equiv_make_checkpoint): New functions.
1557 (struct_equiv_improve_checkpoint): Likewise.
1558 (struct_equiv_restore_checkpoint, rtx_equiv_p): Likewise.
1559 (set_dest_equiv_p, set_dest_addr_equiv_p, struct_equiv_init): Likewise.
1560 (struct_equiv_merge, find_dying_input): Likewise.
1561 (resolve_input_conflict, note_local_live): Likewise.
1562 (death_notes_match_p): Change parameters and processing
1563 to match rtx_equiv_p machinery. Change caller.
1564 (insns_match_p): Likewise.
1565 (flow_find_cross_jump): Replace with:
1566 (struct_equiv_block_eq).
1568 Back out this change:
1569 2005-03-07 Kazu Hirata <kazu@cs.umass.edu>
1570 * recog.c (verify_changes): Make it static.
1571 * recog.h: Remove the corresponding prototype.
1573 2005-12-13 J"orn Rennecke <joern.rennecke@st.com>
1575 * rtlhooks.c (gen_lowpart_general): Handle SUBREGs of floating point
1578 2005-12-13 Nathan Sidwell <nathan@codesourcery.com>
1580 * config/mt/t-mt (MULTILIB_OPTIONS): Add ms2
1581 (MULTILIB_DIRNAMES): Add ms2. Prefix ms1 dirs with 'ms1'.
1582 * config/mt/mt.c (ms1_final_prescan): Use TARGET_MS2,
1583 TARGET_MS1_64_001 appropriately.
1584 (ms1_machine_reorg): Use TARGET_MS2.
1586 2005-12-13 Jakub Jelinek <jakub@redhat.com>
1590 * expr.c (emit_move_resolve_push): Handle PRE_MODIFY
1591 and POST_MODIFY with CONST_INT adjustment equal to PUSH_ROUNDING.
1592 Fix POST_INC/POST_DEC handling if PUSH_ROUNDING is not identity.
1593 * config/i386/i386.md (pushhi2, pushqi2): Use pushl instead of pushw.
1594 Set mode to SI, adjust constraints.
1595 (pushhi2_rex64, pushqi2_rex64): Set mode to DI.
1596 * config/i386/i386.h (PUSH_ROUNDING): Round up to 4 instead of 2 for
1599 2005-12-13 Carlos O'Donell <carlos@codesourcery.com>
1601 * c-cppbuiltin.c (builtin_define_float_constants): Add
1602 fp_cast parameter, pass to builtin_define_with_hex_fp_value.
1603 Define __FLT_HAS_DENORM__, __DBL_HAS_DENORM__, __LDBL_HAS_DENORM__.
1604 (builtin_define_with_hex_fp_value): Use fp_cast when building macro.
1605 (c_cpp_builtins): If flag_single_precision_constant then set fp_cast
1606 to "((double)%sL)" otherwise "%s".
1608 2005-12-13 Paul Brook <paul@codesourcery.com>
1610 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for
1613 2005-12-11 Rafael vila de Espndola <rafael.espindola@gmail.com>
1615 * tree-flow.h: Allow compilation with a C++ compiler.
1616 (struct edge_prediction): Prefix all field names with "ep_".
1617 * predict.c (tree_predicted_by_p): Likewise for struct edge_prediction.
1618 (tree_predict_edge, combine_predictions_for_bb): Likewise.
1619 (remove_predictions_associated_with_edge): Likewise.
1621 2005-12-12 Jeff Law <law@redhat.com>
1623 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
1625 * passes.c (init_optimization_passes): Run reassociation again
1626 after loop optimizations.
1628 2005-12-12 Daniel Berlin <dberlin@dberlin.org>
1630 * tree-ssa-dom.c (thread_across_edge): Canonicalize condition
1632 (optimize_stmt): Ditto.
1633 (canonicalize_comparison): New function.
1634 * tree-ssa-operands.c (swap_tree_operands): Make external.
1635 (get_expr_operands): Stop auto-canonicalization.
1636 * tree-ssa-reassoc.c: Rewrite.
1637 (init_optimization_passes):
1638 * tree-flow.h (swap_tree_operands): Prototype.
1639 * Makefile.in (tree-ssa-reassoc.o): Update dependencies.
1641 2005-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1643 * pa.c (pa_output_function_epilogue): Set cfun->machine->in_nsubspa to
1644 indicate function epilogue has been output.
1645 (pa_asm_output_mi_thunk): Likewise.
1646 (output_deferred_plabels): Put plabels in readonly data section when
1647 not generating PIC code.
1648 (som_output_text_section_asm_op): Use .NSUBSPA to output debug
1649 information. Add assert.
1650 (som_output_comdat_data_section_asm_op): New function.
1651 (pa_som_asm_init_sections): Use som_output_comdat_data_section_asm_op
1652 instead of output_section_asm_op for COMDAT sections.
1654 2005-12-12 J"orn Rennecke <joern.rennecke@st.com>
1656 * cfgcleanup.c (condjump_equiv_p, try_crossjump_to_edge):
1657 Fix whitespace in vincinity of to-be-installed changes.
1658 * struct-equiv.c (merge_memattrs, death_notes_match_p): Fix whitespace.
1659 (insns_match_p): Likewise.
1661 2005-12-12 Nathan Sidwell <nathan@codesourcery.com>
1663 * config.gcc (ms1): Replace with ...
1665 * config/ms1: Rename to ...
1666 * config/mt: ... here. Rename ms1 files to mt.
1667 * config/mt/mt.c: Adjust gt-mt.h #include.
1668 * config/mt/t-mt (LIB1ASMSRCS, LIB2FUNCS_EXTRA): Adjust.
1669 (crti.o, crtn.o): Adjust file names.
1671 2005-12-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
1673 * varray.h: Allow compilation with a C++ compiler.
1674 (union varray_data_tag): Prefix all field names with "vdt_".
1675 (VARRAY_CHAR, VARRAY_UCHAR, VARRAY_SHORT, VARRAY_USHORT,
1676 VARRAY_INT, VARRAY_UINT, VARRAY_LONG, VARRAY_ULONG,
1677 VARRAY_WIDE_INT, VARRAY_UWIDE_INT, VARRAY_GENERIC_PTR,
1678 VARRAY_GENERIC_PTR_NOGC, VARRAY_CHAR_PTR, VARRAY_RTX,
1679 VARRAY_RTVEC, VARRAY_TREE, VARRAY_BITMAP, VARRAY_REG, VARRAY_BB,
1680 VARRAY_ELT_LIST, VARRAY_EDGE, VARRAY_TREE_PTR): Adjust definition.
1681 (VARRAY_PUSH_CHAR, VARRAY_PUSH_UCHAR, VARRAY_PUSH_SHORT,
1682 VARRAY_PUSH_USHORT, VARRAY_PUSH_INT, VARRAY_PUSH_UINT,
1683 VARRAY_PUSH_LONG, VARRAY_PUSH_ULONG, VARRAY_PUSH_WIDE_INT,
1684 VARRAY_PUSH_UWIDE_INT, VARRAY_PUSH_GENERIC_PTR,
1685 VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_CHAR_PTR,
1686 VARRAY_PUSH_RTX, VARRAY_PUSH_RTVEC, VARRAY_PUSH_TREE,
1687 VARRAY_PUSH_BITMAP, VARRAY_PUSH_REG, VARRAY_PUSH_BB,
1688 VARRAY_PUSH_EDGE, VARRAY_PUSH_TREE_PTR): Likewise.
1689 (VARRAY_TOP_CHAR, VARRAY_TOP_UCHAR, VARRAY_TOP_SHORT,
1690 VARRAY_TOP_USHORT, VARRAY_TOP_INT, VARRAY_TOP_UINT,
1691 VARRAY_TOP_LONG, VARRAY_TOP_ULONG, VARRAY_TOP_WIDE_INT,
1692 VARRAY_TOP_UWIDE_INT, VARRAY_TOP_GENERIC_PTR,
1693 VARRAY_TOP_GENERIC_PTR_NOGC, VARRAY_TOP_CHAR_PTR, VARRAY_TOP_RTX,
1694 VARRAY_TOP_RTVEC, VARRAY_TOP_TREE, VARRAY_TOP_BITMAP,
1695 VARRAY_TOP_REG, VARRAY_TOP_BB, VARRAY_TOP_EDGE,
1696 VARRAY_TOP_TREE_PTR): Likewise.
1697 * varray.c (varray_grow): Likewise.
1698 (varray_clear): Likewise.
1700 2005-12-12 Alan Modra <amodra@bigpond.net.au>
1703 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Increase
1704 alignment to doubleword if the first field is a double array.
1705 * config/rs6000/linux64.h (TARGET_ALIGN_NATURAL): Define.
1707 2005-12-11 Daniel Berlin <dberlin@dberlin.org>
1709 * tree-ssa-structalias.c (process_constraint): Remove code to
1710 transform addressofs into scalar.
1711 (create_variable_info_for): In whole-program IPA, globals don't
1712 point to ANYTHING by default.
1714 2005-12-11 Daniel Berlin <dberlin@dberlin.org>
1716 * timevar.def (TV_IPA_PTA): New.
1717 * tree-pass.h (pass_ipa_pta): New
1718 * tree-ssa-structalias.c: Include cgraph.h
1720 (predbitmap_obstack): New.
1721 (EXECUTE_IF_IN_NONNULL_BITMAP): New.
1722 (struct constraint_stats): Add num_edges.
1723 (new_var_info): Don't call bitmap_clear.
1724 (struct constraint_edge): Update docs.
1725 (new_constraint_edge): Remove src param.
1726 (struct constraint_graph): Add zero_weight_succs,
1727 zero_weight_preds. Update docs.
1728 (constraint_expr_equal): Reformat.
1729 (constraint_edge_equal): Update for removal of src.
1730 (constraint_edge_less): Ditto.
1731 (constraint_edge_vec_find): Ditto.
1732 (erase_graph_self_edge): Update for removal of src and and zero
1734 (clear_edges_for_node): Ditto.
1735 (add_graph_edge): Ditto.
1736 (get_graph_weights): Ditto.
1737 (allocate_graph_weights): Ditto.
1738 (merge_graph_nodes): Ditto.
1739 (int_add_graph_edge): Ditto.
1740 (valid_graph_edge): Ditto.
1741 (valid_weighted_graph_edge): Ditto.
1742 (build_constraint_graph): Ditto.
1744 (collapse_nodes): Ditto.
1745 (process_unification_queue): Ditto.
1746 (topo_visit): Ditto.
1747 (solve_graph): Ditto.
1748 (do_structure_copy): Ditto.
1749 (perform_var_substitution): Ditto.
1750 Init and release obstack.
1751 (handle_ptr_arith): Try to resolve directly.
1752 (find_func_aliases): Don't call update_alias_info here
1753 Handle RETURN_EXPR, and CALL_EXPR's in IPA mode.
1754 (do_sd_constraint): Add code for propagating faster.
1756 (do_ds_constraint): Ditto.
1757 (count_num_arguments): New function.
1758 (create_function_info_for): Ditto.
1759 (create_variable_info_for): Handle FUNCTION_DECL.
1760 (intra_create_variable_infos): Use make_constraint_to_anything.
1761 (init_alias_vars): Init obstacks here.
1762 (need_to_solve): Handle zero weight graph changes.
1763 (compute_points_to_sets): Call update_alias_info here.
1764 (delete_points_to_sets): Free zero weight preds/succs here.
1765 (gate_ipa_pta): New.
1766 (ipa_pta_execute): New
1768 2005-12-11 Daniel Berlin <dberlin@dberlin.org>
1770 * tree-ssa-structalias.c (var_anyoffset): Removed.
1771 (anyoffset_tree): Ditto.
1772 (anyoffset_id): Ditto.
1773 (do_deref): Take vector of constraints, no return value.
1774 Update to work on vector.
1775 (get_constraint_for): Ditto.
1776 (get_constraint_for_component_ref): Ditto.
1777 (do_structure_copy): Ditto.
1778 (handle_ptr_arith): Ditto.
1779 (find_func_aliases): Ditto.
1780 (set_uids_in_ptset): Remove anyoffset handling.
1781 (init_base_vars): Ditto.
1783 2005-12-10 Mark Mitchell <mark@codesourcery.com>
1786 * ipa-inline.c (cgraph_clone_inlined_nodes): Do not assume that
1787 DECL_EXTERNAL functions have no bodies. Tidy.
1789 2005-12-10 Andreas Schwab <schwab@suse.de>
1791 * except.c (switch_to_exception_section): Only define if
1792 TARGET_UNWIND_INFO is not defined.
1794 2005-12-10 Richard Sandiford <richard@codesourcery.com>
1796 * config/darwin.h (HAS_INIT_SECTION): Remove definition.
1797 (INIT_SECTION_ASM_OP): Restore empty definition from before 2005-12-07.
1799 2005-12-10 Richard Sandiford <richard@codesourcery.com>
1801 * output.h (init_section, fini_section): Delete.
1802 * varasm.c (init_section, fini_section): Delete.
1803 (init_varasm_once): Don't initialize them.
1804 * doc/tm.texi (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Say that
1805 there are no corresponding varasm.c variables.
1807 2005-12-10 Richard Sandiford <richard@codesourcery.com>
1809 * dwarf2out.c (default_eh_frame_section): Delete, moving handling
1810 of EH_FRAME_SECTION_NAME into...
1811 (switch_to_eh_frame_section): ...here. Try to set eh_frame_section
1812 if it is still null.
1813 * except.c (default_exception_section): Delete, moving most
1815 (switch_to_exception_section): ...this new function. Set
1816 exception_section if it is still null, then switch to it.
1817 (output_function_exception_table): Use switch_to_exception_section.
1818 * varasm.c (exception_section, eh_frame_section): Update comments.
1819 (get_section): Hoist use of SECTION_NAMED.
1820 (init_varasm_once): Don't set exception_section and eh_frame_section.
1821 * output.h (default_exception_section): Delete.
1822 (default_eh_frame_section): Delete.
1824 2005-12-09 Bernd Schmidt <bernd.schmidt@analog.com>
1826 * config/bfin/bfin.c: Include "cgraph.h".
1827 (bfin_load_pic_reg): Omit loading pic reg if in a local function.
1828 Return the reg that holds the pointer to the GOT.
1829 (bfin_expand_prologue): Use return value of bfin_load_pic_reg when
1830 doing stack checking.
1832 2005-12-09 Diego Novillo <dnovillo@redhat.com>
1834 * tree.c (recompute_tree_invariant_for_addr_expr): Rename from
1835 recompute_tree_invarant_for_addr_expr.
1836 Update uses everywhere.
1838 2005-12-09 Aldy Hernandez <aldyh@redhat.com>
1840 * config/ms1/t-ms1 (MULTILIB_OPTIONS): Define.
1841 (MULTILIB_DIRNAMES): Define.
1843 2005-12-09 Ulrich Weigand <uweigand@de.ibm.com>
1846 * config/s390/s390.c (struct s390_address): New field literal_pool.
1847 (s390_decompose_address): Compute literal_pool field. Do not
1848 assume register %r13 is always (and solely) used as pool base.
1849 (s390_extra_constraint_str): Use literal_pool field.
1851 2005-12-09 Thiemo Seufer <ths@networkno.de>
1853 * config/mips/mips.c (override_options): Don't allow too small
1854 integers in FP registers.
1856 2005-12-09 Ulrich Weigand <uweigand@de.ibm.com>
1858 * config/s390/s390.c (s390_function_ok_for_sibcall): Use
1859 targetm.binds_local_p to check for local function calls.
1861 2005-12-09 Alan Modra <amodra@bigpond.net.au>
1864 * dwarf2out.c (dwarf2out_frame_debug_expr): Don't assert that
1865 call_used_regs can't be used to save reg in another reg.
1867 2005-12-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1868 Christophe Jaillet <christophe.jaillet@wanadoo.fr>
1870 * ipa-type-escape.c (analyze_variable): Use gcc_assert instead of
1872 * except.c (output_ttype): Likewise.
1873 * tree-object-size.c (collect_object_sizes_for): Likewise.
1874 (check_for_plus_in_loops_1): Likewise.
1875 (check_for_plus_in_loops): Likewise.
1876 (compute_object_sizes): Use gcc_unreachable instead of abort.
1878 2005-12-08 Nathan Sidwell <nathan@codesourcery.com>
1880 * config/ms1/ms1.md (UNSPEC_LOOP): New constant.
1881 (loop_end, loop_init, doloop_end): New insns.
1882 * config/ms1/ms1.h (LOOP_FIRST, LOOP_LAST): New.
1883 (SPECIAL_REG_FIRST, FIRST_PSEUDO_REGISTER): Adjust.
1884 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
1885 (REG_CLASS_CONTENTS, REGISTER_NAMES): Adjust.
1886 * config/ms1/ms1.c: #include basic-block.h
1887 (struct machine_function): Add has_loops field.
1888 (ms1_add_loop): New.
1889 (MAX_LOOP_DEPTH, MAX_LOO_LENGTH): New.
1890 (struct loop_info, struct loop_work): New.
1891 (ms1_loop_nesting, ms1_block_length, ms1_scan_loop): New workers.
1892 (ms1_reorg_loops): New loop optimization.
1893 (ms1_machine_reorg): Call it.
1894 * config/ms1/ms1-protos.h (ms1_add_loop): Declare.
1896 2005-12-08 Zdenek Dvorak <dvorakz@suse.cz>
1898 PR tree-optimization/25248
1899 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Do not use
1900 evolution_of_loop from the failed attempt. Remove handling
1903 2005-12-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
1905 * tree.h (DECL_EXTERNAL): Clarify documentation.
1907 2005-12-08 Andreas Krebbel <krebbel1@de.ibm.com>
1908 Jakub Jelinek <jakub@redhat.com>
1911 * config/s390/s390.c (s390_decompose_shift_count): Remove BITS
1912 argument. Don't drop outer ANDs.
1913 (s390_extra_constraint_str, print_shift_count_operand): Adjust callers.
1914 * config/s390/s390-protos.h (s390_decompose_shift_count): Adjust
1916 * config/s390/predicates.md (setmem_operand): Remove.
1917 (shift_count_operand): Rename to...
1918 (shift_count_or_setmem_operand): ... this. Adjust
1919 s390_decompose_shift_count caller.
1920 * config/s390/s390.md (<shift>di3_31_and, <shift>di3_64_and,
1921 ashrdi3_cc_31_and, ashrdi3_cconly_31_and, ashrdi3_31_and,
1922 ashrdi3_cc_64_and, ashrdi3_cconly_64_and, ashrdi3_64_and,
1923 <shift>si3_and, ashrsi3_cc_and, ashrsi3_cconly_and, ashrsi3_and,
1924 rotl<mode>3_and, setmem_long_and): New insns.
1925 (<shift>di3_31, <shift>di3_64, ashrdi3_cc_31, ashrdi3_cconly_31,
1926 ashrdi3_31, ashrdi3_cc_64, ashrdi3_cconly_64, ashrdi3_64,
1927 <shift>si3, ashrsi3_cc, ashrsi3_cconly, ashrsi3, rotl<mode>3,
1928 <shift>di3, ashrdi3): Use shift_count_or_setmem_operand instead
1929 of shift_count_operand.
1930 (setmem_long): Use shift_count_or_setmem_operand instead of
1933 2005-12-08 Daniel Jacobowitz <dan@codesourcery.com>
1934 Andreas Tobler <a.tobler@schweiz.ch>
1936 * Makefile.in (ALL_GTFILES_H): Replace sed statement with more portable
1939 2005-12-07 J"orn Rennecke <joern.rennecke@st.com>
1941 * expr.c (force_operand): Use convert_to_mode for conversions.
1943 2005-12-07 J"orn Rennecke <joern.rennecke@st.com>
1945 * reload.h (reg_equiv_invariant): Declare.
1946 * reload.c (refers_to_regno_for_reload_p): Allow R to be a pseudo
1947 register also when reg_equiv_invariant[R] is set.
1949 2005-12-07 Richard Sandiford <richard@codesourcery.com>
1950 Andreas Tobler <a.tobler@schweiz.ch>
1952 * config/darwin.h: Guard section variables with #ifndef USED_FOR_TARGET.
1954 2005-12-07 Daniel Berlin <dberlin@dberlin.org>
1956 * tree-ssa-pre.c (bitmap_set_and): New function.
1957 (bitmap_set_and_compl): New function.
1958 (bitmap_set_empty_p): New function.
1959 (insert_extra_phis): New function.
1960 (compute_avail): Use insert_extra_phis.
1962 2005-12-07 Adrian Straetling <straetling@de.ibm.com>
1964 * config/s390/s390.c (s390_expand_atomic): New function.
1965 Adjust comment of helper functions.
1966 * config/s390/s390-protos.h (s390_expand_atomic): Declare.
1967 * config/s390/s390.md ("ATOMIC"): New code macro.
1968 ("atomic"): Corresponding new code attribute.
1969 ("sync_lock_test_and_set[hq]i",
1970 "sync_{new_,old_,}{and,ior,xor,add,sub,nand}[hq]i"): New pattern.
1972 2005-12-07 Adrian Straetling <straetling@de.ibm.com>
1974 * config/s390/s390.c (s390_expand_mask_and_shift,
1975 struct alignment_context, init_alignment_context,
1976 s390_expand_cs_hqi): New.
1977 * config/s390/s390-protos.h (s390_expand_cs_hqi): Declare.
1978 * config/s390/s390.md ("sync_compare_and_swaphi",
1979 "sync_compare_and_swapqi"): New pattern.
1981 2005-12-07 Daniel Berlin <dberlin@dberlin.org>
1983 Fix PR tree-optimization/25291
1984 * tree-ssa-operands.c (add_call_clobber_ops): Remove
1985 redundant and crashing check.
1987 2005-12-08 Alan Modra <amodra@bigpond.net.au>
1990 * config/rs6000/rs6000.c (legitimate_indexed_address_p): Relax
1991 tests further when !strict && reload_in_progress.
1992 (print_operand): Check that both operands of indexed address are regs.
1993 (print_operand_address): Likewise.
1994 * config/rs6000/rs6000.h (INT_REG_OK_FOR_INDEX_P): Simplify.
1995 (INT_REG_OK_FOR_BASE_P): Correct.
1997 2005-12-07 J"orn Rennecke <joern.rennecke@st.com>
1999 Preparation for PR rtl-optimization/20070 / part1
2000 * basic-block.h (insns_match_p, flow_find_cross_jump): Declare.
2001 * cfgcleanup.c (condjump_equiv_p): New function, broken out of
2002 outgoing_edges_match.
2003 (outgoing_edges_match): Use condjump_equiv_p.
2004 (merge_memattrs, insns_match_p, flow_find_cross_jump): Move from here
2006 * struct-equiv.c: New file.
2007 (death_notes_match_p) New function, broken out of insns_match_p.
2008 * Makefile.in (OBJS-common): Add struct-equiv.o.
2009 (struct-equiv.o): New target.
2011 2005-12-07 Richard Sandiford <richard@codesourcery.com>
2013 * coretypes.h: Revert previous change.
2014 * config/darwin.h: Revert previous reversion.
2015 * config/avr/avr.h (progmem_section): Guard with #ifndef IN_LIBGCC2.
2017 2005-12-07 Richard Sandiford <richard@codesourcery.com>
2019 * coretypes.h (section): Provide dummy definition for target files.
2020 * config/darwin.h: Revert previous change.
2022 2005-12-07 Rafael vila de Espndola <rafael.espindola@gmail.com>
2024 * doc/sourcebuild.texi (all.build, install-normal): Remove.
2025 * configure.ac: Remove all.build and install-normal from target_list
2026 * configure: Regenerate.
2027 * Makefile.in (install): Don't depend on install-normal.
2029 2005-12-07 Rafael vila de Espndola <rafael.espindola@gmail.com>
2031 * Makefile.in: Document the use of stamps.
2033 2005-12-07 Rafael vila de Espndola <rafael.espindola@gmail.com>
2035 * doc/gty.texi: Remove instructions for adding a dependency on s-gtype.
2036 * Makefile.in: Add code to compute some dependencies on s-gtype
2037 automatically. Remove the declaration of those dependencies.
2039 2005-12-07 Richard Sandiford <richard@codesourcery.com>
2041 * reload.c (push_secondary_reload): Fix typo:
2042 s/insn_constraint/scratch_constraint/.
2044 2005-12-07 Richard Sandiford <richard@codesourcery.com>
2046 * config/darwin.h: Guard section variables with #ifndef IN_LIBGCC2.
2048 2005-12-07 Richard Sandiford <richard@codesourcery.com>
2050 * config/alpha/alpha.c (alpha_start_function): Use switch_to_section.
2051 (alpha_elf_select_rtx_section): Return the selected section rather
2052 than emitting assembly code.
2053 (alpha_write_linkage): Emit a ".link" directive directly and then
2054 set in_section to NULL.
2055 (vms_asm_out_constructor): Use switch_to_section.
2056 (vms_asm_out_destructor): Likewise.
2057 (unicosmk_output_common): Set in_section to NULL instead of calling
2058 the dummy common_section function.
2059 (unicosmk_text_section): Delete in favor of...
2060 (unicosmk_output_text_section_asm_op): ...this new function.
2061 (unicosmk_data_section): Delete in favor of...
2062 (unicosmk_output_data_section_asm_op): ...this new function.
2063 (unicosmk_init_sections): New function.
2064 (unicosmk_output_deferred_case_vectors): Use switch_to_section.
2065 (unicosmk_output_ssib): Set in_section to NULL instead of calling
2066 the dummy ssib_section function.
2067 (unicosmk_section_buf): Delete.
2068 * config/alpha/alpha-protos.h (unicosmk_text_section): Delete.
2069 (unicosmk_data_section): Delete.
2070 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
2071 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, sbss_section, sdata_section)
2072 (SECTION_FUNCTION_TEMPLATE): Delete.
2073 * config/alpha/unicosmk.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP)
2074 (READONLY_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2075 (common_section, COMMON_SECTION, ssib_section, SSIB_SECTION): Delete.
2076 (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
2077 (TARGET_ASM_INIT_SECTIONS): Define.
2078 * config/alpha/vms.h (LINK_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP)
2079 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2080 (link_section, literals_section): Delete.
2081 (ASM_OUTPUT_DEF): Emit the ".literal" directive directly and then
2082 set in_section to NULL.
2084 * config/arm/aof.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Delete.
2085 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, ZERO_INIT_SECTION): Delete.
2086 (COMMON_SECTION): Delete.
2087 (TARGET_ASM_INIT_SECTIONS): Define.
2088 (ASM_OUTPUT_COMMON): Set in_section to NULL rather than calling
2089 the dummy common_section function.
2090 * config/arm/aout.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
2091 * config/arm/arm.c (get_jump_table_size): Use pointer comparison
2092 between readonly_data_section and text_section to check whether
2093 read-only data is being put in the text section.
2094 (arm_output_function_epilogue): Use switch_to_section.
2095 (arm_elf_asm_constructor): Likewise.
2096 (thumb_call_via_reg): Replace call to in_text_section with
2097 a comparison between in_section and text_section.
2098 (arm_file_end): Use switch_to_section.
2099 (aof_text_section): Delete in favor of...
2100 (aof_output_text_section_asm_op): ...this new function.
2101 (aof_data_section): Delete in favor of...
2102 (aof_output_data_section_asm_op): ...this new function.
2103 (aof_asm_init_sections): New function.
2104 (zero_init_section): Moved from config/arm/aof.h.
2105 (aof_dump_imports, aof_file_start): Use switch_to_section.
2106 * config/arm/arm.h (thumb_call_via_label): Update comment.
2107 * config/arm/arm-protos.h (aof_text_section, aof_data_section): Delete.
2108 (common_section): Delete.
2109 * config/arm/pe.h (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
2110 (ASM_DECLARE_OBJECT_NAME): Update the type of save_section. Use the
2111 global switch_to_section function instead of the old port-local one.
2112 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION)
2113 (SWITCH_TO_SECTION_FUNCTION): Delete.
2114 (drectve_section): Redefine as a macro.
2115 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS):
2116 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use get_named_section and
2119 * config/avr/avr.c (progmem_section): New variable.
2120 (avr_output_progmem_section_asm_op): New function.
2121 (avr_asm_init_sections): New function.
2122 (avr_output_addr_vec_elt): Use switch_to_section.
2123 * config/avr/avr.h (progmem_section): Declare.
2124 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2125 (READONLY_DATA_SECTION): Delete.
2126 (TARGET_ASM_INIT_SECTIONS): Define.
2127 (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
2128 * config/avr/avr-protos.h (progmem_section): Delete.
2130 * config/bfin/bfin.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
2132 * config/c4x/c4x.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2133 (INIT_SECTION_FUNCTION, FINI_SECTION_FUNCTION): Delete.
2135 * config/darwin-sections.def: New file.
2136 * config/darwin.c: Define all sections in darwin-sections.def.
2137 (output_objc_section_asm_op, darwin_init_sections): New functions.
2138 (machopic_output_indirection): Use switch_to_section.
2139 (machopic_select_section): Return the selected section rather than
2140 emitting assembly code. Replace the static function table with
2141 inline conditional expressions. Update the tests of last_text_section
2142 and move them into the FUNCTION_DECL block.
2143 (machopic_select_rtx_section): Return the selected section rather than
2144 emitting assembly code.
2145 (machopic_asm_out_constructor, machopic_asm_out_destructor)
2146 (darwin_file_end): Use switch_to_section.
2147 * config/darwin.h: Use darwin-sections.def to declare sections.
2148 (INIT_SECTION_ASM_OP): Remove empty definition.
2149 (HAS_INIT_SECTION): Define this instead.
2150 (SECTION_FUNCTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2151 (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
2152 (TARGET_ASM_EH_FRAME_SECTION): Delete.
2153 (TARGET_ASM_INIT_SECTIONS): Define.
2154 * config/darwin-protos.h (darwin_init_sections): Declare.
2155 (machopic_picsymbol_stub_section, machopic_picsymbol_stub1_section)
2156 (machopic_symbol_stub_section, machopic_symbol_stub1_section): Delete.
2157 (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
2158 (constructor_section, destructor_section, mod_init_section): Delete.
2159 (mod_term_section): Delete.
2160 (darwin_exception_section, darwin_eh_frame_section): Delete.
2161 (machopic_select_section): Return a section.
2162 (machopic_select_rtx_section): Likewise.
2163 (text_coal_section, text_unlikely_section, text_unlikely_coal_section)
2164 (const_section, const_coal_section, const_data_section): Delete.
2165 (const_data_coal_section, data_coal_section, cstring_section): Delete.
2166 (literal4_section, literal8_section, constructor_section): Delete.
2167 (mod_init_section, mod_term_section, destructor_section): Delete.
2168 (objc_class_section, objc_meta_class_section, objc_category_section)
2169 (objc_class_vars_section, objc_instance_vars_section): Delete.
2170 (objc_cls_meth_section, objc_inst_meth_section): Delete.
2171 (objc_cat_cls_meth_section, objc_cat_inst_meth_section): Delete.
2172 (objc_selector_refs_section, objc_selector_fixup_section): Delete.
2173 (objc_symbols_section, objc_module_info_section): Delete.
2174 (objc_image_info_section, objc_protocol_section): Delete.
2175 (objc_string_object_section, objc_constant_string_object_section)
2176 (objc_class_names_section, objc_meth_var_names_section): Delete.
2177 (objc_meth_var_types_section, objc_cls_refs_section): Delete.
2178 (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
2179 (machopic_symbol_stub_section, machopic_picsymbol_stub_section)
2180 (darwin_exception_section, darwin_eh_frame_section): Delete.
2181 * config/t-darwin (darwin.o): Depend on config/darwin-sections.def.
2183 * config/frv/frv.c (frv_asm_out_constructor): Use switch_to_section.
2184 (frv_asm_out_destructor): Likewise.
2185 * config/frv/frv.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2186 (SDATA_SECTION_FUNCTION, FIXUP_SECTION_FUNCTION): Delete.
2187 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use switch_to_section and
2189 (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
2190 * config/frv/frv-protos.h (fixup_section, sdata_section, sbss_section)
2191 (data_section): Delete.
2193 * config/i386/cygming.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2194 (DRECTVE_SECTION_FUNCTION): Delete.
2195 (drectve_section): Redefine as a macro that sets in_section after
2196 emitting the directive.
2197 (SWITCH_TO_SECTION_FUNCTION): Delete.
2198 * config/i386/darwin.h (ASM_OUTPUT_ALIGN): Replace call to
2199 in_text_section with comparison between in_section and text_section.
2200 * config/i386/i386.c (x86_64_elf_select_section): Return the section
2201 rather than emitting assembly code. Use get_named_section.
2202 (x86_output_aligned_bss, ix86_file_end): Use switch_to_section and
2204 (machopic_output_stub): Use switch_to_section.
2205 * config/i386/nwld.c (nwld_named_section_asm_out_constructor)
2206 (nwld_named_section_asm_out_destructor): Use get_section and
2209 * config/ia64/ia64.c (ia64_select_rtx_section): Return the section
2210 rather than emitting assembly code.
2211 (ia64_rwreloc_select_section): Likewise.
2212 (ia64_rwreloc_select_rtx_section): Likewise.
2213 * config/ia64/ia64-protos.h (sdata_section, sbss_section): Delete.
2214 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
2216 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2217 (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Delete.
2219 * config/iq2000/iq2000.c (iq2000_select_rtx_section): Return the
2220 section rather than emitting assembly code.
2221 (iq2000_select_section): Likewise.
2222 * config/iq2000/iq2000.h (rdata_section, sdata_section): Delete.
2223 (sbss_section): Delete.
2225 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use switch_to_section
2226 and get_named_section.
2227 * config/m32r/m32r-protos.h (sbss_section, sdata_section): Delete.
2229 * config/mcore/mcore-elf.h (EXPORTS_SECTION_ASM_OP): Delete.
2230 (SUBTARGET_EXTRA_SECTIONS, SUBTARGET_EXTRA_SECTION_FUNCTIONS): Delete.
2231 (EXPORT_SECTION_FUNCTION, SUBTARGET_SWITCH_SECTIONS): Delete.
2232 (MCORE_EXPORT_NAME): Emit the exports directive directly, then set
2234 (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
2235 (ASM_DECLARE_OBJECT_NAME): Update the type of save_section. Use the
2236 global switch_to_section function instead of the old port-local one.
2237 * config/mcore/mcore.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2238 (SWITCH_SECTION_FUNCTION): Delete.
2239 * config/mcore/mcore-pe.h (SUBTARGET_SWITCH_SECTIONS): Delete.
2240 (DRECTVE_SECTION_ASM_OP, SUBTARGET_EXTRA_SECTIONS): Delete.
2241 (SUBTARGET_EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION): Delete.
2242 (MCORE_EXPORT_NAME): Emit ".section .drectve" directly, then set
2244 (ASM_DECLARE_OBJECT_NAME): Update the type of save_section. Use the
2245 global switch_to_section function instead of the old port-local one.
2246 (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
2248 * config/mips/mips.c (mips_file_start): Update comment.
2249 (mips_output_aligned_bss): Use switch_to_section and get_named_section.
2250 (mips_output_aligned_decl_common): Use switch_to_section.
2251 (mips_select_rtx_section): Return the section rather than emitting
2252 assembly code. Use get_named_section.
2253 (mips_function_rodata_section: Likewise get_section.
2254 (build_mips16_function_stub): Use switch_to_section.
2255 * config/mips/mips.h (ASM_OUTPUT_IDENT): Use switch_to_section.
2256 (SDATA_SECTION_ASM_OP): Delete.
2257 * config/mips/vxworks.h (EXTRA_SECTIONS): Delete.
2258 (EXTRA_SECTION_FUNCTIONS): Delete.
2260 * config/mmix/mmix.c (mmix_file_start, mmix_file_end)
2261 (mmix_asm_output_aligned_local): Use switch_to_section.
2263 * config/pa/pa.c (som_readonly_data_section, som_one_only_data_section)
2264 (som_one_only_readonly_data_section): New variables.
2265 (pa_output_function_epilogue): Set in_section to NULL instead of
2266 calling forget_section.
2267 (output_deferred_plabels): Use select_section.
2268 (pa_asm_output_mi_thunk): Likewise. Set in_section to NULL instead
2269 of calling forget_section.
2270 (pa_asm_output_aligned_bss, pa_asm_output_aligned_common)
2271 (pa_asm_output_aligned_local): Use select_section.
2272 (som_text_section_asm_op): Delete in favor of...
2273 (som_output_text_section_asm_op): ...this new function.
2274 (pa_som_asm_init_sections): New function.
2275 (pa_select_section): Return the section rather than emitting
2277 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2278 (SOM_READONLY_DATA_SECTION_FUNCTION): Delete.
2279 (SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION): Delete.
2280 (SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): Delete.
2281 * config/pa/pa-protos.h (som_text_section_asm_op): Delete.
2282 (som_readonly_data_section, som_one_only_readonly_data_section)
2283 (som_one_only_data_section, forget_section): Delete.
2284 * config/pa/som.h (TEXT_SECTION_ASM_OP): Delete.
2285 (TARGET_ASM_INIT_SECTIONS): Define.
2286 (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
2288 * config/rs6000/rs6000.c (read_only_data_section): New variable.
2289 (private_data_section, read_only_private_data_section): New variables.
2290 (sdata2_section, toc_section): New variables.
2291 (rs6000_file_start): Use switch_to_section.
2292 (rs6000_assemble_integer): Use comparisons against in_section
2293 instead of calling in_toc_section and in_text_section. Use
2294 unlikely_text_section_p.
2295 (rs6000_elf_output_toc_section_asm_op): New function, derived
2296 from the old rs6000/sysv4.h toc_section function.
2297 (rs6000_elf_asm_init_sections): New function.
2298 (rs6000_elf_select_rtx_section, rs6000_elf_select_section): Return
2299 the section rather than emitting assembly code.
2300 (machopic_output_stub): Use switch_to_section.
2301 (toc_section): Delete dummy function.
2302 (rs6000_elf_asm_out_constructor, rs6000_elf_asm_out_destructor): Use
2303 switch_to_section and get_section.
2304 (rs6000_xcoff_output_readonly_section_asm_op): New function.
2305 (rs6000_xcoff_output_readwrite_section_asm_op): New function.
2306 (rs6000_xcoff_output_toc_section_asm_op): New function, derived from
2307 the old rs6000/xcoff.h toc_section function.
2308 (rs6000_xcoff_asm_init_sections): New function.
2309 (rs6000_xcoff_select_section, rs6000_xcoff_select_rtx_section): Return
2310 the section rather than emitting assembly code.
2311 (rs6000_xcoff_file_start): Use switch_to_section.
2312 (rs6000_xcoff_file_end): Likewise.
2313 * config/rs6000/rs6000-protos.h (toc_section, sdata_section): Delete.
2314 (sdata2_section, sbss_section, private_data_section): Delete.
2315 (read_only_data_section, read_only_private_data_section): Delete.
2316 * config/rs6000/sysv4.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2317 (TOC_SECTION_FUNCTION, SDATA_SECTION_FUNCTION, SDATA2_SECTION_FUNCTION)
2318 (SBSS_SECTION_FUNCTION, INIT_SECTION_FUNCTION): Delete.
2319 (FINI_SECTION_FUNCTION): Delete.
2320 (TARGET_ASM_INIT_SECTIONS): Define.
2321 (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
2322 * config/rs6000/xcoff.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2323 (READ_ONLY_DATA_SECTION_FUNCTION, PRIVATE_DATA_SECTION_FUNCTION)
2324 (READ_ONLY_PRIVATE_DATA_SECTION_FUNCTION, TOC_SECTION_FUNCTION)
2325 (READONLY_DATA_SECTION): Delete.
2326 (TARGET_ASM_INIT_SECTIONS): Define.
2327 (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section. Set in_section
2328 to NULL rather than no_section.
2329 (TARGET_ASM_EXCEPTION_SECTION): Delete.
2331 * config/sh/sh.c (sh_file_start): Use switch_to_section.
2333 * config/sparc/sparc.c (emit_pic_helper): Use switch_to_section.
2334 (sparc_output_deferred_case_vectors): Likewise. Remove argument
2335 from call to current_function_section.
2337 * config/stormy16/stormy16.c: Include ggc.h and gt-storm16.h.
2338 (bss100_section): New variable.
2339 (xstormy16_asm_output_aligned_common): Use switch_to_section.
2340 (xstormy16_asm_init_sections): New function.
2341 (xstormy16_asm_out_destructor, xstormy16_asm_out_constructor): Use
2342 switch_to_section and get_section.
2343 (xstormy16_output_addr_vec): Use switch_to_section. Remove argument
2344 from calls to current_function_section.
2345 * config/stormy16/stormy16.h (EXTRA_SECTIONS): Delete.
2346 (XSTORMY16_SECTION_FUNCTION, EXTRA_SECTION_FUNCTIONS): Delete.
2347 (TARGET_ASM_INIT_SECTIONS): Define.
2348 * config/stormy16/stormy16-protos.h (bss100_section): Delete.
2350 * config/svr3.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
2351 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, INIT_SECTION_FUNCTION)
2352 (FINI_SECTION_FUNCTION): Delete.
2354 * config/v850/v850.c: Include gt-v850.h.
2355 (rosdata_section, rozdata_section, tdata_section, zdata_section)
2356 (zbss_section): New variables.
2357 (v850_output_aligned_bss): Use switch_to_section.
2358 (v850_asm_init_sections): New function.
2359 (v850_select_section): Return the section rather than emitting
2361 * config/v850/v850.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2362 (ZDATA_SECTION_ASM_OP, ZBSS_SECTION_ASM_OP, TDATA_SECTION_ASM_OP)
2363 (ROSDATA_SECTION_ASM_OP, ROZDATA_SECTION_ASM_OP): Delete.
2364 (TARGET_ASM_INIT_SECTIONS): Define.
2365 * config/v850/v850-protos.h (sdata_section, rosdata_section): Delete.
2366 (sbss_section, tdata_section, zdata_section, rozdata_section): Delete.
2367 (zbss_section): Delete.
2369 * config/vax/vaxv.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
2371 * config/vx-common.h (vxworks_exception_section): Delete.
2372 (TARGET_ASM_EXCEPTION_SECTION): Delete.
2374 * config/xtensa/xtensa.c (xtensa_select_rtx_section): Return the
2375 section rather than emitting assembly code.
2376 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Use
2379 * Makefile.in (GTFILES): Add $(srcdir)/output.h.
2380 * coretypes.h (section): New union and typedef.
2381 * dbxout.c (FORCE_TEXT): Use switch_to_section. Remove argument
2382 from call to current_function_section.
2383 (dbxout_function_end, dbxout_init, dbxout_source_file, dbxout_finish)
2384 (dbxout_symbol_location): Use switch_to_section.
2385 * dwarf2out.c (named_section_eh_frame_section): Delete, moving
2386 most of the code into...
2387 (default_eh_frame_section): ...here. Return a section.
2388 (collect2_eh_frame_section): Delete, moving most of the code into..
2389 (switch_to_eh_frame_section): ...this new function.
2390 (debug_info_section, debug_abbrev_section, debug_aranges_section)
2391 (debug_macinfo_section, debug_line_section, debug_loc_section)
2392 (debug_pubnames_section, debug_str_section, debug_ranges_section): New
2394 (output_call_frame_info): Call switch_to_eh_frame_section instead of
2395 eh_frame_section. Use switch_to_section and get_section.
2396 (dwarf2out_begin_prologue): Use switch_to_section.
2397 (AT_string_form): Check the flags in debug_str_section instead of
2398 DEBUG_STR_SECTION_FLAGS.
2399 (output_comp_unit): Use switch_to_section, get_section, and
2401 (output_line_info, secname_for_decl): Use unlikely_text_section_p.
2402 (dwarf2out_begin_block): Use switch_to_section. Remove argument
2403 from call to current_function_section.
2404 (dwarf2out_var_location): Use unlikely_text_section_p.
2405 (dwarf2out_source_line): Use switch_to_section. Remove argument
2406 from call to current_function_section.
2407 (dwarf2out_start_source_file, dwarf2out_end_source_file)
2408 (dwarf2out_define, dwarf2out_undef: Use switch_to_section and
2409 debug_macinfo_section.
2410 (dwarf2out_init): Initialize the new section variables. Use them
2411 instead of calls to named_section_flags. Use switch_to_section.
2412 (output_indirect_string): Use switch_to_section and debug_str_section.
2413 (dwarf2out_finish): Use switch_to_section and the new section
2415 * except.c (default_exception_section): Return the section instead
2416 of emitting assembly code.
2417 (output_function_exception_table): Use the global exception_section
2418 variable instead of the target hook. Use switch_to_section. Remove
2419 argument from call to current_function_section.
2420 * final.c (HAVE_READONLY_DATA_SECTION): Delete.
2421 (shorten_branches): Use pointer comparisons to detect whether the
2422 text section is the same as readonly_data_section.
2423 (profile_function): Use switch_to_section. Remove argument from
2424 call to current_function_section.
2425 (final_scan_insn): Likewise. Update use of last_text_section.
2426 * gengtype.c (open_base_files): Add an include of output.h.
2427 * output.h (text_section, data_section, readonly_data_section)
2428 (ctors_section, dtors_section, bss_section, init_section)
2429 (fini_section, sdata_section): Turn into section pointers.
2430 (in_text_section, in_unlikely_text_section, exports_section)
2431 (drectve_section, named_section, mergeable_string_section)
2432 (last_text_section_name): Delete.
2433 (default_exception_section, default_eh_frame_section): Return sections.
2434 (SECTION_DECLARED, SECTION_NAMED): New macros.
2435 (SECTION_MACH_DEP): Bump value.
2436 (section_common, named_section, unnamed_section): New structures.
2437 (unnamed_section_callback): New typedef.
2438 (section): New union.
2439 (sbss_section, exception_section, eh_frame_section): New variables.
2440 (in_section, last_text_section): Turn into section pointers.
2441 (get_unnamed_section, get_section, get_named_section): New functions.
2442 (mergeable_constant_section, function_section): Return a section.
2443 (unlikely_text_section): Likewise.
2444 (current_function_section): Likewise. Remove the decl argument.
2445 (unlikely_text_section_p, switch_to_section): New functions.
2446 (output_section_asm_op): New function.
2447 (set_named_section_flags, named_section_flags, named_section_real)
2448 (named_section_first_declaration): Delete.
2449 (default_select_section, default_elf_select_section): Return a section.
2450 (default_elf_select_section_1, default_function_rodata_section)
2451 (default_no_function_rodata_section, default_select_rtx_section)
2452 (default_elf_select_rtx_section): Likewise.
2453 * rtl.h (in_data_section): Delete.
2454 * sdbout.c (sdbout_one_type): Use switch_to_section.
2455 * system.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Poison.
2456 (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Poison.
2457 (TARGET_ASM_EH_FRAME_SECTION): Poison.
2458 * target-def.h (TARGET_ASM_INIT_SECTIONS): New macro.
2459 (TARGET_ASM_EXCEPTION_SECTION, TARGET_ASM_EH_FRAME_SECTION): Delete.
2460 (TARGET_ASM_OUT): Update after above changes.
2461 * target.h (init_sections): New hook.
2462 (exception_section, eh_frame_section): Delete.
2463 (select_section, select_rtx_section, function_rodata_section): Return
2464 a section rather than emitting assembly code.
2465 * varasm.c (text_section, data_section, readonly_data_section)
2466 (ctors_section, dtors_section, bss_section, init_section)
2467 (fini_section): Turn into section pointers.
2468 (sdata_section, sbss_section, exception_section): New variables.
2469 (eh_frame_section): New variable.
2470 (in_section): Make global and turn into a section pointer.
2471 (last_text_section): Turn into a section pointer.
2472 (unnamed_sections): New variable.
2473 (in_named_name, last_text_section_name): Delete.
2474 (EXTRA_SECTION_FUNCTIONS): Delete.
2475 (in_named_entry): Delete.
2476 (section_htab): New variable, replacing...
2477 (in_named_htab): ...this deleted variable.
2478 (section_entry_eq, section_entry_hash): New functions, based on...
2479 (in_named_entry_eq, in_named_entry_hash): ...these deleted functions.
2480 (get_unnamed_section, get_section): New functions.
2481 (unlikely_text_section): Return a section instead of emitting
2483 (in_text_section, in_unlikely_text_section, in_data_section): Delete.
2484 (get_named_section_flags, named_section_first_declaration): Delete.
2485 (unlikely_text_section_p): New function.
2486 (named_section_real, named_section): Delete.
2487 (get_named_section): New function.
2488 (asm_output_bss, asm_output_aligned_bss): Use switch_to_section.
2489 (function_section): Return a section rather than emitting
2491 (current_function_section): Likewise. Remove argument. Use
2492 last_text_section if nonnull, otherwise use function_section.
2493 (default_function_rodata_section): Return a section rather than
2494 emitting assembly code. Use get_section.
2495 (default_no_function_rodata_section): Return a section rather than
2496 emitting assembly code.
2497 (variable_section): Use switch_to_section and get_named_section.
2498 (mergeable_string_section): Return a section rather than emitting
2499 assembly code. Use get_section. Make static. Don't take special
2500 countermeasures for empty strings.
2501 (mergeable_constant_section): Return a section rather than emitting
2502 assembly code. Use get_section.
2503 (default_named_section_asm_out_destructor): Use switch_to_section
2505 (default_dtor_section_asm_out_destructor): Use switch_to_section.
2506 (default_named_section_asm_out_constructor): Use switch_to_section
2508 (default_ctor_section_asm_out_constructor): Use switch_to_section.
2509 (assemble_start_function): Likewise. Set last_text_section to
2510 NULL rather than no_section. Change the type of save_section.
2511 (assemble_zeros, assemble_variable): Use the section flags to detect
2512 whether or not a section is text.
2513 (assemble_static_space): Use switch_to_section.
2514 (assemble_trampoline_template): Likewise.
2515 (output_constant_def_contents): Use switch_to_section and
2517 (output_constant_pool_1): Use switch_to_section. Use the section
2518 flags to see whether sections contain mergeable data.
2519 (init_varasm_once): Initialize section_htab instead of in_named_htab.
2520 Initialize new section variables. Call TARGET_ASM_INIT_SECTIONS.
2521 (default_elf_asm_named_section): Use SECTION_DECLARED to detect
2522 whether a section has already been declared.
2523 (default_select_section, default_elf_select_section): Return a
2524 section rather than emitting assembly code.
2525 (default_elf_select_section_1): Likewise. Use bss_section for
2526 SECCAT_BSS if nonnull. Use get_named_section.
2527 (default_select_rtx_section): Return a section rather than
2528 emitting assembly code.
2529 (default_elf_select_rtx_section): Likewise. Use get_named_section.
2530 (file_end_indicate_exec_stack): Use switch_to_section and get_section.
2531 (output_section_asm_op, switch_to_section): New functions.
2532 * vmsdbgout.c (vmsdbgout_finish): Use switch_to_section and
2535 * doc/tm.texi: Expand the introduction to the sections documentation.
2536 (TRAMPOLINE_SECTION): Document new interface.
2537 (SDATA_SECTION_ASM_OP): Document new macro.
2538 (READONLY_DATA_SECTION): Delete.
2539 (SDATA_SECTION_ASM_OP): Document new macro.
2540 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2541 (TARGET_ASM_INIT_SECTIONS): Document new hook.
2542 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_FUNCTION_RODATA_SECTION)
2543 (TARGET_ASM_SELECT_RTX_SECTION): Adjust for new interface.
2544 (TARGET_EXCEPTION_SECTION, TARGET_EH_FRAME_SECTION): Delete.
2546 2005-12-07 Alan Modra <amodra@bigpond.net.au>
2548 * gcc.c (init_gcc_specs): Match braces inside conditionally
2551 2005-12-06 Geoffrey Keating <geoffk@apple.com>
2553 * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): New.
2555 2005-12-06 Aldy Hernandez <aldyh@redhat.com>
2558 * tree.c (integer_all_onesp): Always return true if all bits on.
2560 * testsuite/g++.dg/init/array0.C: New.
2562 2005-12-06 Adrian Straetling <straetling@de.ibm.com>
2564 * doc/md.texi: Adapt to implementation.
2566 2005-12-06 Andreas Schwab <schwab@suse.de>
2568 * opts.c (decode_options): Fix typo in message.
2570 2005-12-06 Alan Modra <amodra@bigpond.net.au>
2573 * longlong.h: Merge PPC tests from upstream.
2575 2005-12-06 Richard Guenther <rguenther@suse.de>
2577 * fold-const.c (fold_convert): Do not build and fold
2578 CONVERT_EXPR, but always use NOP_EXPR.
2580 2005-12-06 Jan Beulich <jbeulich@novell.com>
2582 * config/i386/i386.c (builtin_description): Use MASK_SSE2 for
2583 __builtin_ia32_paddq and __builtin_ia32_psubq.
2584 (ix86_init_mmx_sse_builtins): Use MASK_SSE|MASK_3DNOW_A for
2585 __builtin_ia32_pshufw.
2586 * config/i386/i386.md (mmx_adddi3, mmx_subdi3): Depend on TARGET_SSE2.
2588 2005-12-05 James E Wilson <wilson@specifix.com>
2591 * opts.c (decode_options): Turn off partitioning if flag_unwind_tables
2594 2005-12-05 Daniel Berlin <dberlin@dberlin.org>
2596 * print-tree.c (print_node): Ditto.
2597 * tree-dfa.c (add_referenced_var): Tag's don't have DECL_INITIAL.
2598 * tree-dump.c (dequeue_and_dump): Check for decl_common structure
2599 before accessing DECL_ARTIFICIAL.
2600 Handle new tag tree codes.
2601 * tree-flow-inline.h (clear_call_clobbered): Update for tag
2603 (unmodifiable_var_p): Ditto.
2604 * tree-flow.h (mem_tag_kind): Remove.
2605 (struct var_ann_d): Remove mem_tag_kind member.
2606 * tree-gimple.c (is_gimple_reg): Tags are not gimple registers.
2607 * tree-pretty-print.c (dump_generic_node): Handle memory tags.
2608 * tree-ssa-alias.c (init_alias_info): Update for memory tag changes.
2609 (group_aliases): Ditto.
2610 (setup_pointers_and_addressables): Ditto.
2611 (is_escape_site): Ditto.
2612 (may_alias_p): Ditto.
2613 (create_tag_raw): New function.
2614 (create_memory_tag): Use it.
2615 (dump_alias_info): Update for tags.
2616 (may_be_aliased): Ditto.
2617 (add_type_alias): Ditto.
2618 (new_type_alias): Ditto.
2619 (create_sft): Ditto.
2620 (create_structure_vars): Ditto.
2621 * tree-ssa-ccp.c (get_default_value): Ditto.
2622 * tree-ssa-operands.c (get_expr_operands): Ditto.
2623 (add_stmt_operand): Ditto.
2624 (add_call_clobber_ops): Remove duplicated condition.
2625 * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
2627 * tree-tailcall.c (suitable_for_tail_opt_p): Ditto.
2628 * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
2629 * tree.c (init_ttree): Update structures for new tree codes.
2630 (tree_code_size): Update sizes for new tree codes.
2631 (make_node_stat): Don't try to set common things on minimal
2633 (tree_node_structure): Update for tags.
2634 (is_global_var): Ditto.
2635 * tree.def: Add new tree codes.
2636 * tree.h (MTAG_P): New macro.
2637 (TREE_MEMORY_TAG_CHECK): Ditto.
2638 (SSA_VAR_P): Update for tags.
2639 (struct tree_memory_tag): New structure.
2640 (MTAG_GLOBAL): New macro.
2641 (union tree_node): Add memory tag member.
2642 * treestruct.def (TS_MEMORY_TAG): New.
2644 2005-12-05 Dale Johannesen <dalej@apple.com>
2646 * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Fix to match
2647 what was approved (PR 24323).
2649 2005-12-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2651 * doc/c-tree.texi (Function Bodies): Remove description of
2654 2005-12-05 Joseph S. Myers <joseph@codesourcery.com>
2656 * doc/libgcc.texi (__floatunsisf, __floatunsidf, __floatunsitf,
2657 __floatunsixf, __floatundisf, __floatundidf, __floatunditf,
2658 __floatundixf, __floatuntisf, __floatuntidf, __floatuntitf,
2659 __floatuntixf, __powisf2, __powidf2, __powixf2, __mulsc3,
2660 __muldc3, __multc3, __mulxc3, __divsc3, __divdc3, __divtc3,
2661 __divxc3): Document.
2663 2005-12-05 Geoffrey Keating <geoffk@apple.com>
2665 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Preserve
2667 * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Define to
2668 hook_bool_void_false.
2669 (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
2670 * config/darwin.c (darwin_cxx_determine_class_data_visibility): New.
2672 * config/darwin.c (machopic_select_section): It's not defined
2673 as weak if it's only marked as weak_import.
2675 * config/darwin-protos.h (darwin_cxx_determine_class_data_visibility):
2678 * varasm.c (default_binds_local_p_1): Weakrefs don't bind locally.
2679 A hidden weak object does bind locally. Strong linkonce data
2680 counts like any other strong symbol for binding.
2681 (weak_finish_1): Don't specially handle weakrefs, they no longer
2683 (assemble_alias): Weakrefs can't be TREE_PUBLIC yet.
2684 * c-common.c (handle_alias_attribute): Allow static aliases
2686 (handle_weakref_attribute): Don't call declare_weak on weakrefs.
2687 * gthr-dce.h: Make weakrefs static.
2688 * gthr-tpf.h: Likewise.
2689 * gthr-solaris.h: Likewise.
2690 * gthr-posix.h: Likewise.
2691 * gthr-posix95.h: Likewise.
2692 * config/darwin.c (darwin_encode_section_info): static weakref
2693 variables are not necessarily defined in this translation unit.
2694 * doc/extend.texi (Function Attributes): Mention that an alias
2695 attribute creates a definition for the thing it's attached to.
2696 Change the documentation for weakref to say that the thing
2697 it's attached to must be static.
2699 * config/rs6000/host-darwin.c (segv_handler): Unblock SEGV so
2700 we don't go into an infinite loop.
2702 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
2704 * config/rs6000/predicates.md (logical_const_operand): Split
2705 out of logical_operand.
2706 (logical_operand): Use it.
2707 * config/rs6000/rs6000.md (cmp -> xor peephole2): Use
2708 logical_const_operand.
2710 2005-12-05 Jan Beulich <jbeulich@novell.com>
2712 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_CMPNEPS
2713 and IX86_BUILTIN_CMPNESS.
2714 (ix86_init_mmx_sse_builtins): Remove ti_ftype_ti_ti.
2715 * config/i386/i386.h (ALIGN_MODE_128): Don't check TFmode explicitly.
2716 * config/i386/i386.md (movti_internal): Correct type attribute.
2717 Simplify mode attribute.
2718 (movti_rex64, movsf_1, movdf_nointeger, movdf_integer, movtf_internal):
2719 Correct type attribute.
2720 (absxf2): Correct operator.
2721 * config/i386/mmx.md (mov<mode>_internal_rex64, mov<mode>_internal,
2722 movv2sf_internal_rex64, movv2sf_internal): Correct type attribute.
2723 * config/i386/sse.md (mov<mode>_internal, movv2df_internal): Simplify
2725 (sse2_vmsqrtv2df2): Correct mode attribute.
2727 2005-12-05 Jan Beulich <jbeulich@novell.com>
2729 * config/ia64/ia64.md (rotlsi3_internal): Don't split if rotating by
2730 16 bits. Provide insn pattern for this case.
2732 2005-12-05 Jan Beulich <jbeulich@novell.com>
2734 * libgcc2.c (__popcountSI2): Don't use wide type for iterator and
2736 (__popcountDI2): Likewise.
2738 2005-12-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2741 * pa/pa.c (pa_hpux_init_libfuncs): Add _U_Qfcnvxf_usgl_to_quad and
2742 _U_Qfcnvxf_udbl_to_quad to set of initialized libfuncs.
2743 * pa/quadlib.c (_U_Qfcnvxf_usgl_to_quad, _U_Qfcnvxf_udbl_to_quad): New
2746 2005-12-04 Joseph S. Myers <joseph@codesourcery.com>
2748 * c-typeck.c (null_pointer_constant_p): New function.
2749 (build_conditional_expr, build_c_cast, convert_for_assignment,
2750 build_binary_op): Use it.
2752 2005-12-04 Joseph S. Myers <joseph@codesourcery.com>
2754 * c-common.c (binary_op_error): Do not allow NOP_EXPR.
2755 (c_common_truthvalue_conversion): Handle NOP_EXPR the same as
2757 (check_function_arguments_recurse): Allow both NOP_EXPR and
2758 CONVERT_EXPR but check conversions preserve precision.
2759 * c-typeck.c (pointer_diff): Allow both NOP_EXPR and CONVERT_EXPR
2760 but check conversions preserve precision.
2761 (build_unary_op): Don't allow NOP_EXPR. Use gcc_unreachable () in
2764 2005-12-04 Roger Sayle <roger@eyesopen.com>
2767 * common.opt (Wstring-literal-comparison): New command line option.
2768 * c-opts.c (c_common_handle_option): Set it with -Wall.
2769 * c-typeck.c (parser_build_binary_op): Issue warning if either
2770 operand of a comparison operator is a string literal, except for
2771 testing equality or inequality against NULL.
2773 * doc/invoke.texi: Document new -Wstring-literal-comparison option.
2775 2005-12-03 Joseph S. Myers <joseph@codesourcery.com>
2777 * c-common.c (c_sizeof_or_alignof_type): Use fold_convert instead
2778 of building a NOP_EXPR.
2779 (c_alignof_expr): Likewise. Handle CONVERT_EXPR the same as
2781 * c-convert.c (convert): Use fold_convert instead of building
2782 NOP_EXPRs and CONVERT_EXPRs directly. Don't special case
2783 c_objc_common_truthvalue_conversion returning a NOP_EXPR. Remove
2785 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Handle
2786 NOP_EXPR the same as CONVERT_EXPR.
2787 * c-typeck.c (build_function_call): Use fold_convert instead of
2788 building a NOP_EXPR directly.
2789 (build_compound_expr): Handle NOP_EXPR the same as CONVERT_EXPR.
2791 2005-12-03 Alan Modra <amodra@bigpond.net.au>
2793 PR rtl-optimization/25197
2794 * dwarf2out.c (dwarf2out_frame_debug_expr <rule 12>): Assert we
2797 2005-12-02 Stuart Hastings <stuart@apple.com>
2799 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove -fpic
2802 2005-12-03 Joseph S. Myers <joseph@codesourcery.com>
2804 * c-typeck.c (default_function_array_conversion,
2805 build_function_call): Allow for CONVERT_EXPR as well as NOP_EXPR.
2806 (build_conditional_expr): Apply integer_zerop to orig_op1 and
2807 orig_op2. Don't check them for NOP_EXPR.
2808 (build_c_cast, convert_for_assignment): Don't check for NOP_EXPR
2809 around integer zero.
2811 2005-12-03 Alan Modra <amodra@bigpond.net.au>
2813 * config/rs6000/rs6000.c (rs6000_stack_t): Remove toc_save_p,
2814 toc_save_offset, toc_size, lr_size.
2815 (rs6000_stack_info): Use memset rather than bss struct copy to init.
2816 Test rs6000_ra_ever_killed last in condition setting lr_save_p.
2817 Adjust for removal of unused rs6000_stack_t fields.
2818 (debug_stack_info): Adjust.
2819 (rs6000_ra_ever_killed): Expand FIND_REG_INC_NOTE. Test for calls
2820 first, and don't bother checking for set/inc of lr on sibcalls.
2821 (rs6000_emit_epilogue): Tidy code restoring stack pointer.
2823 2005-12-02 Jakub Jelinek <jakub@redhat.com>
2826 * config/i386/i386.md (movqi_1): Only force imovx for alternative
2827 5 if operand 1 is not aligned. Undo previous constraint change.
2828 * config/i386/predicates.md (aligned_operand): Use MEM_ALIGN.
2830 2005-12-02 Richard Guenther <rguenther@suse.de>
2832 * tree.h (build): Remove prototype.
2833 (build, _buildN1, _buildN2, _buildC1, _buildC2): Remove macros.
2834 * tree.c (build): Remove.
2835 (build0_stat): Update comment.
2837 2005-12-02 Richard Guenther <rguenther@suse.de>
2839 * tree-ssa-loop-im.c (schedule_sm): Use buildN instead of build.
2840 * tree-complex.c (update_complex_assignment, expand_complex_div_wide):
2842 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref,
2843 maybe_fold_offset_to_component_ref): Likewise.
2844 * tree-ssa-dom.c (thread_across_edge,
2845 simplify_rhs_and_lookup_avail_expr,
2846 find_equivalent_equality_comparison, record_equivalences_from_stmt):
2848 * gimple-low.c (lower_function_body, lower_return_expr): Likewise.
2849 * tree-eh.c (do_return_redirection, honor_protect_cleanup_actions,
2850 lower_try_finally_switch): Likewise.
2851 * tree-if-conv.c (add_to_dst_predicate_list,
2852 replace_phi_with_cond_modify_expr, ifc_temp_var): Likewise.
2853 * gimplify.c (internal_get_tmp_var, gimple_build_eh_filter,
2854 voidify_wrapper_expr, build_stack_save_restore, gimplify_bind_expr,
2855 gimplify_return_expr, gimplify_decl_expr, gimplify_switch_expr,
2856 gimplify_case_label_expr, gimplify_exit_expr, gimplify_self_mod_expr,
2857 shortcut_cond_r, shortcut_cond_expr, gimplify_cond_expr,
2858 gimplify_init_ctor_eval, gimplify_init_constructor,
2859 gimplify_variable_sized_compare, gimplify_boolean_expr,
2860 gimplify_cleanup_point_expr, gimple_push_cleanup, gimplify_target_expr,
2861 gimplify_expr, gimplify_body, gimplify_function_tree,
2862 force_gimple_operand): Likewise.
2863 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
2864 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for,
2865 mx_register_decls): Likewise.
2866 * tree-nested.c (init_tmp_var, save_tmp_var, get_static_chain,
2867 get_frame_field, finalize_nesting_tree_1): Likewise.
2868 * tree-inline.c (setup_one_parameter): Likewise.
2869 * tree-vect-transform.c (vectorizable_condition): Likewise.
2870 * tree-outof-ssa.c (insert_copy_on_edge, insert_backedge_copies):
2872 * tree-profile.c (tree_gen_edge_profiler): Likewise.
2873 * tree-cfg.c (factor_computed_gotos, gimplify_val): Likewise.
2874 * c-parser.c (c_parser_if_body, c_parser_switch_statement): Likewise.
2875 * tree-chrec.h (build_polynomial_chrec): Likewise.
2877 2005-12-02 Richard Guenther <rguenther@suse.de>
2879 * config/alpha/alpha.c (alpha_va_start, alpha_gimplify_va_arg_1i,
2880 alpha_gimplify_va_arg): Use buildN and fold_buildN where applicable.
2881 * config/frv/frv.c (frv_expand_builtin_va_start): Likewise.
2882 * config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise.
2883 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2884 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
2885 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg):
2887 * config/sh/sh.c (sh_va_start, sh_gimplify_va_arg_expr,
2888 sh_adjust_unroll_max): Likewise.
2889 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
2890 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2891 * config/xtensa/xtensa.c (xtensa_va_start, xtensa_gimplify_va_arg_expr):
2893 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
2895 * config/mips/mips.c (mips_va_start, mips_gimplify_va_arg_expr):
2898 2005-12-02 Richard Guenther <rguenther@suse.de>
2900 * tree-vrp.c (build_assert_expr_for, process_assert_insertions_for,
2901 simplify_cond_using_ranges): Use buildN instead of build.
2902 * tree-tailcall.c (adjust_accumulator_values,
2903 adjust_return_value): Likewise.
2904 * tree-sra.c (generate_one_element_ref, generate_copy_inout,
2905 generate_element_copy, generate_element_zero,
2906 generate_one_element_init): Likewise.
2907 * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Likewise.
2908 * lambda-code.c (gcc_loop_to_lambda_loop, lbv_to_gcc_expression,
2909 lle_to_gcc_expression, lambda_loopnest_to_gcc_loopnest,
2910 perfect_nestify): Likewise.
2912 2005-12-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2914 * pa.c (pa_secondary_reload): Revise initialization of variable regno.
2916 2005-12-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2918 * ggc.h (GGC_RESIZEVEC): New.
2920 2005-12-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2922 * gcc.c (execute): Improve readability.
2924 2005-12-02 Richard Guenther <rguenther@suse.de>
2926 * tree-cfg.c (mark_used_vars): New function.
2927 (dump_function_to_file): Dump only used VAR_DECLs.
2929 2005-12-02 Richard Guenther <rguenther@suse.de>
2931 * convert.c (convert_to_integer): Fix compare for nonpositive
2932 constant to use tree_int_cst_sgn <= 0.
2934 2005-12-02 Richard Guenther <rguenther@suse.de>
2936 * convert.c (convert_to_integer): Use fold_convert instead
2937 of fold_build1 (NOP_EXPR, ...). Use tree_int_cst_sgn < 0
2938 instead of comparing against 0. Use build_int_cst instead
2939 of converting integer_zero_node.
2941 2005-12-02 Richard Guenther <rguenther@suse.de>
2943 * tree-pretty-print.c (op_symbol): Handle LROTATE_EXPR
2946 2005-12-02 Alan Modra <amodra@bigpond.net.au>
2949 * combine.c (simplify_logical <IOR>): Simplify more patterns to
2952 2005-12-02 Alan Modra <amodra@bigpond.net.au>
2955 * function.c (expand_function_end): Emit blockage for unwinder
2958 2005-12-01 Roger Sayle <roger@eyesopen.com>
2960 * tree.h (TREE_OVERFLOW): Make this flag/predicate specific to
2961 constant nodes, i.e. INTEGER_CST, REAL_CST, etc...
2962 * tree-vrp.c (compare_values): Only check TREE_OVERFLOW for
2963 integer constant comparisons.
2965 2005-12-02 Jon Grimm <jgrimm2@us.ibm.com>
2966 Janis Johnson <janis187@us.ibm.com>
2967 David Edelsohn <dje@watson.ibm.com>
2968 Ben Elliston <bje@au.ibm.com>
2970 * dfp.h, dfp.c: New files.
2971 * Makefile.in (DECNUM, DECNUMINC, LIBDECNUMBER): New variables.
2972 (DECNUM_H): Likewise.
2973 (LIBDEPS, LIBS, BACKEND): Append $(LIBDECNUMBER).
2974 (INCLUDES): Append $(DECNUMINC).
2975 (OBJS-common): Add dfp.o.
2977 * real.h (EXP_BITS): Pinch one bit to ..
2978 (struct real_value): Add decimal field.
2979 (real_format): Change table size, update documentation.
2980 (REAL_MODE_FORMAT): Update for to handle float, decimal float.
2981 (real_from_string3): Declare.
2982 (decimal_single_format): Declare.
2983 (decimal_double_format): Declare.
2984 (decimal_quad_format): Declare.
2985 (REAL_VALUE_TO_TARGET_DECIMAL32): New.
2986 (REAL_VALUE_TO_TARGET_DECIMAL64): New.
2987 (REAL_VALUE_TO_TARGET_DECIMAL128): New.
2988 * real.c: Include dfp.h.
2989 (normalize): Early return for decimal floats.
2990 (do_add): Zero decimal field.
2991 (do_compare): Call do_decimal_compare for decimal floats.
2992 (do_fix_trunc): Likewise, call decimal_do_fix_trunc.
2993 (real_arithmetic): Call decimal_real_arithmetic for decimal
2994 floating point operands.
2995 (real_identical): If a and b are of differing radix, return false.
2996 (real_to_integer): Call decimal_real_to_integer if the value is a
2998 (real_to_integer2): Likewise, call decimal_real_to_integer2.
2999 (real_to_decimal): Likewise, call decimal_real_to_decimal.
3000 (real_to_hexadecimal): Place "N/A" in the return string for
3002 (real_from_string3): New variant, given a mode.
3003 (real_maxval): Use decimal_real_maxval for decimal floats.
3004 (round_for_format): Use decimal_round_for_format for decimals.
3005 (real_convert): Use decimal_real_convert where appropriate.
3006 (significand_size): Handle base 10.
3007 (encode_decimal_single, decode_decimal_single,
3008 encode_decimal_double, decode_decimal_double, encode_decimal_quad,
3009 decode_decimal_quad): New functions.
3010 (decimal_single_format): New.
3011 (decimal_double_format): New.
3012 (decimal_quad_format): New.
3013 * machmode.def: Add SD, DD and TD decimal floating point modes.
3014 * machmode.h (FLOAT_MODE_P, SCALAR_FLOAT_MODE_P, MODES_WIDEN_P):
3015 Include MODE_DECIMAL_FLOAT.
3016 (DECIMAL_FLOAT_MODE_P): New.
3017 * mode-classes.def (MODE_DECIMAL_FLOAT): New mode class.
3018 * genmodes.c (struct mode_data): Add counter field.
3019 (struct mode_data): Update comment for format.
3020 (blank_mode): Initialise counter field.
3021 (new_mode): Increment counter field for each mode defined.
3022 (complete_mode): Handle MODE_DECIMAL_FLOAT, update check for mode
3024 (make_complex_modes): Handle modes containing `D'.
3025 (DECIMAL_FLOAT_MODE, FRACTIONAL_DECIMAL_FLOAT_MODE): New.
3026 (make_decimal_float_mode): New.
3027 (reset_float_format): Handle MODE_DECIMAL_FLOAT.
3028 (cmp_modes): Compare counter field if other characteristics
3030 (emit_real_format_for_mode): Support formats for decimal floats.
3031 * doc/rtl.texi (Machine Modes): Document SD, DD and TDmodes.
3032 Document MODE_DECIMAL_FLOAT.
3034 2005-12-02 Alan Modra <amodra@bigpond.net.au>
3036 * simplify-rtx.c (simplify_plus_minus): Do simplify constants.
3039 2005-12-01 Richard Henderson <rth@redhat.com>
3041 * optabs.c (expand_vec_cond_expr): Use EXPAND_NORMAL.
3043 2005-12-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3045 * builtins.def (BUILT_IN_PUTC, BUILT_IN_PUTC_UNLOCKED): New.
3047 * config/pa/pa.c (pa_init_builtins): If we detect
3048 DONT_HAVE_FPUTC_UNLOCKED, set builtin fputc_unlocked to
3051 2005-12-01 Richard Guenther <rguenther@suse.de>
3053 * fold-const.c (fold_binary): Use fold_build2, not
3056 2005-12-01 Nathan Sidwell <nathan@codesourcery.com>
3058 * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves.
3060 * vec.h (VEC_block_remove): New.
3062 2005-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
3065 * c-common.c (lvalue_error): Fix wording.
3067 2005-12-01 Richard Guenther <rguenther@suse.de>
3069 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Fix
3070 thinko in last patch.
3072 2005-12-01 Geoffrey Keating <geoffk@apple.com>
3074 * config/t-slibgcc-darwin (SHLIB_LINK): Use -single_module rather
3075 than -flat_namespace.
3077 2005-12-01 Ben Elliston <bje@au.ibm.com>
3079 * mklibgcc.in: Parameterise the script to build soft float
3080 functions by iterating over each type, rather than cloning the
3083 2005-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3086 * builtins.c (fold_builtin_fputs): Defer check for missing
3087 replacement functions.
3089 2005-11-30 Kean Johnston <jkj@sco.com>
3091 * config/i386/i386.c: Check the value of SUPPORTS_ONE_ONLY, not
3092 simply its presense in case targets #define SUPPORTS_ONE_ONLY 0.
3094 2005-11-30 Richard Guenther <rguenther@suse.de>
3096 PR tree-optimization/22501
3097 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
3098 function split out from ...
3099 (forward_propagate_addr_expr): ... here. Use it to propagate
3100 ADDR_EXPRs to all uses.
3102 2005-11-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3104 * tree.h (CASE_FLT_FN, CASE_INT_FN): New macros.
3105 * builtins.c (expand_builtin_mathfn): Use them.
3106 (expand_builtin_mathfn_2): Likewise.
3107 (expand_builtin_mathfn_3): Likewise.
3108 (expand_builtin_int_roundingfn): Likewise.
3109 (expand_builtin): Likewise.
3110 (integer_valued_real_p): Likewise.
3111 (fold_builtin_int_roundingfn): Likewise.
3112 (fold_builtin_bitop): Likewise.
3113 (fold_builtin_logarithm): Likewise.
3114 (fold_builtin_1): Likewise.
3115 * convert.c (convert_to_integer): Likewise.
3116 * fold-const.c (negate_mathfn_p): Likewise.
3117 (tree_expr_nonnegative_p): Likewise.
3119 2005-11-30 Dale Johannesen <dalej@apple.com>
3120 Andrew Pinski <pinskia@physics.uc.edu>
3122 * combine.c (find_split_point): Sign extend bitmask
3123 when changing bitfield assignment to IOR of AND.
3125 2005-11-30 Nathan Sidwell <nathan@codesourcery.com>
3127 * config/ms1/ms1.md (decrement_and_branch_until_zero): Add early
3128 clobber to scratch reg.
3129 (*decrement_and_branch_until_zero_no_clobber): Remove.
3130 (decrement_and_branch peephole): Add dummy scratch reg to pattern.
3131 (mulhish3): Use TARGET_MS1_16_003, TARGET_MS2.
3132 * config/ms1/ms1.opt (mmul): Remove.
3133 * config/ms1/ms1.h (ASM_SPEC): Cope with uppercase arch names.
3134 (LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Default to 16-002.
3136 2005-11-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3137 Bernd Schmidt <bernd.schmidt@analog.com>
3139 * pa/predicates.md (symbolic_operand): Add comment.
3140 * pa/pa.md (reload_insi_r1, reload_indi_r1): New reload expanders.
3141 * pa/pa-protos.h (pa_secondary_reload_class): Delete.
3142 * pa/pa.c (TARGET_SECONDARY_RELOAD): Define.
3143 (pa_secondary_reload_class): Delete.
3144 (pa_secondary_reload): New function derived from SECONDARY_RELOAD_CLASS
3145 and pa_secondary_reload_class. Reorder some checks. Update inline
3146 copy of symbolic operand.
3147 * pa/pa.h (SECONDARY_RELOAD_CLASS): Delete.
3149 2005-11-30 Nathan Sidwell <nathan@codesourcery.com>
3151 * loop-doloop.c (add_test): Only add jump notes if we did emit a
3154 2005-11-30 Jeff Law <law@redhat.com>
3156 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Properly
3157 handle SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3159 2005-11-30 Jakub Jelinek <jakub@redhat.com>
3161 * config/ia64/ia64.c (ia64_expand_tls_address): Add ORIG_OP1 argument.
3162 Move ADDEND_{HI,LO} computation into TLS_MODEL_INITIAL_EXEC case.
3163 (ia64_expand_move): Adjust caller.
3165 * config/ia64/ia64.c (ia64_expand_atomic_op): Only use
3166 fetchadd{4,8}.acq instruction if CODE is PLUS or MINUS, for MINUS
3169 2005-11-30 Paolo Bonzini <bonzini@gnu.org>
3171 * simplify-rtx.c (simplify_plus_minus): Remove final parameter.
3172 Always produce an output if we can remove NEGs or canonicalize
3173 (minus (minus ...)) expressions. Provide a fast path for the
3175 (simplify_gen_binary): Do not call simplify_plus_minus.
3176 (simplify_binary_operation_1): Reassociate at the end of the
3179 2005-11-29 Evan Cheng <evan.cheng@apple.com>
3181 * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Rewrite using high/low
3182 moves and unpack to speed up.
3184 2005-11-29 David S. Miller <davem@sunset.davemloft.net>
3186 * config/sparc/sparc.c (gen_compare_reg): Kill 2nd and 3rd
3187 argument, they are always sparc_compare_op0 and sparc_compare_op1.
3188 (gen_v9_scc): Update callers.
3189 * config/sparc/sparc.md: Likewise.
3190 * config/sparc/sparc-protos.h: Update extern declaration.
3192 * tree-into-ssa.c (rewrite_into_ssa): Fix comment typo.
3194 2005-11-29 Andrew Pinski <pinskia@physics.uc.edu>
3196 * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
3199 2005-11-29 Andrew Pinski <pinskia@physics.uc.edu>
3201 * fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.
3202 (fold_unary) <case NEGATE_EXPR>: Move -(~a) transformation to ...
3203 (negate_expr): Here.
3205 2005-11-29 Ben Elliston <bje@au.ibm.com>
3207 * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN):
3208 Fix typo in comment.
3210 2005-11-29 Ben Elliston <bje@au.ibm.com>
3212 * Makefile.in (clean-target): Depend on clean-target-libgcc.
3213 (clean-target-libgcc): Import rule from the top-level Makefile.in.
3215 2005-11-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3219 * builtins.c (init_target_chars): New.
3220 (expand_builtin_printf, expand_builtin_fprintf,
3221 expand_builtin_sprintf, fold_builtin_sprintf,
3222 maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
3223 fold_builtin_snprintf_chk, fold_builtin_printf,
3224 fold_builtin_fprintf): Check for matching format strings using
3227 2005-11-29 Paul Brook <paul@codesourcery.com>
3229 * config.gcc: Do not use fixproto on m68k-elf.
3231 2005-11-28 Roger Sayle <roger@eyesopen.com>
3233 * expmed.c (div_cost): Replace with...
3234 (sdiv_cost, udiv_cost): New.
3235 (init_expmed): Initialize sdiv_cost and udiv_cost, not div_cost.
3236 Rename the div and mod fields, used to initialize sdiv_pow2_cheap
3237 and smod_pow2_cheap, to sdiv_32 and smod_32 to avoid confusion.
3238 (expand_divmod): Replace use of div_cost with either sdiv_cost
3239 or udiv_cost depending upon the signedness of the operation.
3241 2005-11-28 Alexandre Oliva <aoliva@redhat.com>
3244 * config/darwin.c (machopic_indirection_name,
3245 machopic_output_indirection): Follow transparent alias chain.
3247 2005-11-28 Alexandre Oliva <aoliva@redhat.com>
3249 * varasm.c (ultimate_transparent_alias_target): Add comment.
3251 2005-11-28 Kazu Hirata <kazu@codesourcery.com>
3253 * config/m68k/m68k.c (notice_update_cc): Use SET_DEST and
3254 SET_SRC instead of XEXP where appropriate.
3256 2005-11-28 Joseph S. Myers <joseph@codesourcery.com>
3258 * config/fp-bit.c (isnan, isinf, pack_d, unpack_d): Use
3261 2005-11-28 Joseph S. Myers <joseph@codesourcery.com>
3263 * config/fp-bit.h (LSHIFT): Take shift count parameter.
3264 * config/fp-bit.c (_fpadd_parts): Shift in one go instead of one
3267 2005-11-28 Bernd Schmidt <bernd.schmidt@analog.com>
3269 * config/bfin/bfin.c (bfin_secondary_reload): Renamed from
3270 secondary_input_reload_class, made static. Adapt to new
3272 (secondary_output_reload_class): Delete.
3273 (TARGET_SECONDARY_RELOAD): New macro.
3274 * config/bfin/bfin.h (SECONDARY_INPUT_RELOAD_CLASS,
3275 SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
3277 2005-11-28 Nathan Sidwell <nathan@codesourcery.com>
3280 * c-decl.c (finish_struct): Only set DECL_PACKED on a field
3281 when its natural alignment is > BITS_PER_UNIT.
3282 * stor-layout.c (finalize_type_size): Revert my patch of 2005-08-08.
3283 * c-common.c (handle_packed_attribute): Ignore packing on a field
3284 whose type is naturally char aligned.
3286 2005-11-28 Richard Guenther <rguenther@suse.de>
3288 * c-common.c (strict_aliasing_warning): Handle all
3289 component-ref like accesses.
3291 2005-11-28 Roger Sayle <roger@eyesopen.com>
3292 Uros Bizjak <uros@kss-loka.si>
3295 * fold-const.c (fold binary) <RDIV_EXPR>: Optimize
3296 sin(x)/tan(x) as cos(x) and tan(x)/sin(x) as 1.0/cos(x)
3297 when flag_unsafe_math_optimizations is set and
3298 we don't care about NaNs or Infinities.
3300 Move x/expN(y) and x/pow(y,z) transformation into common
3301 flag_unsafe_math_optimizations section.
3303 2005-11-27 Mark Mitchell <mark@codesourcery.com>
3305 * gcc.c (main): Change type of argv to "char **".
3307 2005-11-28 Alan Modra <amodra@bigpond.net.au>
3309 * doc/invoke.texi (powerpc msdata-data): Static data doesn't go in
3310 small data sections.
3311 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Make global.
3312 * config/rs6000/rs6000-protos.h: (rs6000_elf_in_small_data_p): Declare.
3313 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Rename to..
3314 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ..this, adding extra parm. Don't
3315 output locals to sbss if !rs6000_elf_in_small_data_p.
3316 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above.
3318 2005-11-28 Alan Modra <amodra@bigpond.net.au>
3321 * config/rs6000/rs6000.c (legitimate_indexed_address_p): Allow pattern
3322 generated by reload.
3323 * config/rs6000/predicates.md (indexed_or_indirect_operand): Use
3324 indexed_or_indirect_address.
3325 (indexed_or_indirect_address): Don't test for base reg. Call
3326 address_operand last. Make it a special predicate.
3328 2005-11-27 Kazu Hirata <kazu@codesourcery.com>
3330 * config/m68k/m68k.c (notice_update_cc): Remove useless code.
3332 2005-11-27 Andrew Pinski <pinskia@physics.uc.edu>
3335 * fold-const.c (negate_expr_p): Add case for signed divides if overflow
3337 (negate_expr): Likewise.
3339 2005-11-27 Andreas Schwab <schwab@suse.de>
3341 * config/m68k/m68k.c: Reindent and fix whitespace, remove
3344 2005-11-27 Steven Bosscher <stevenb@suse.de>
3346 * cfgcleanup.c (try_crossjump_to_edge): Always split SRC2 if it
3347 has EH predecessor edges.
3349 2005-11-26 Eric Christopher <echristo@apple.com>
3351 * config/i386/i386.md (*zero_extendqihi2_movzbw): Avoid partial
3352 register stalls by zero extending to the full register.
3354 2005-11-27 Joseph S. Myers <joseph@codesourcery.com>
3356 * config/floatunsisf.c, config/floatunsidf.c,
3357 config/floatunsixf.c, config/floatunsitf.c: New files.
3358 * config/ia64/t-hpux: Add floatunsitf.c.
3359 * config/ia64/ia64.c (ia64_init_libfuncs): Use
3360 _U_Qfcnvxuf_dbl_to_quad for unsigned DImode-to-TFmode conversion.
3362 2005-11-26 Richard Henderson <rth@redhat.com>
3364 * c-lex.c (pragma_lex): Rename from c_lex.
3365 * c-pch.c: Update for pragma_lex rename.
3366 * c-pragma.c, c-pragma.h, config/ia64/ia64-c.c: Likewise.
3367 * config/m32c/m32c-pragma.c, config/darwin-c.c: Likewise.
3368 * config/rs6000/rs6000-c.c, config/c4x/c4x-c.c: Likewise.
3369 * config/sol2-c.c, config/v850/v850-c.c: Likewise.
3370 * doc/tm.texi: Likewise.
3372 2005-11-26 Andrew Pinski <pinskia@physics.uc.edu>
3375 * fold-const.c (fold_binary): Convert -A/-B to A/B for signed types
3376 when overflow is undefined.
3378 2005-11-26 Hans-Peter Nilsson <hp@axis.com>
3380 * doc/md.texi (Insn Canonicalizations): Refer to the
3381 function commutative_operand_precedence for further rules.
3383 2005-11-25 Roger Sayle <roger@eyesopen.com>
3386 * expmed.c (choose_mult_variant): Return immediately when mult_cost
3387 is less than zero. Limit mult_cost to a reasonable upper bound for
3388 the synthetic multiplication sequence.
3390 2005-11-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3393 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
3394 fold_builtin_fputs, fold_builtin_printf, fold_builtin_fprintf):
3395 Lookup the explicit replacement functions for any unlocked
3396 stdio builtin transformations.
3398 2005-11-25 Hans-Peter Nilsson <hp@axis.com>
3400 * config/cris/cris.md ("reload_out<mode>"): Mark operand 2 as
3402 * targhooks.c (default_secondary_reload): Don't require operand 2
3403 for an input reload to be earlyclobber.
3405 2005-11-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3407 * fold-const.c (negate_mathfn_p): Fix comment and add support
3408 for BUILT_IN_CBRT, BUILT_IN_SINH, BUILT_IN_TANH, BUILT_IN_ASINH,
3411 2005-11-25 Joseph S. Myers <joseph@codesourcery.com>
3414 * config/sparc/sparc.c (sparc_init_libfuncs): Use _Q_utoq and
3415 _Q_ulltoq for unsigned conversions from SImode and DImode to
3418 2005-11-25 Alan Modra <amodra@bigpond.net.au>
3420 * config/rs6000/ppc64-fp.c (__floatunditf): New function.
3421 (__floatundidf, __floatundisf): Likewise.
3423 2005-11-25 David Edelsohn <edelsohn@gnu.org>
3425 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Delete.
3426 (rs6000_override_options): Remove initialization of
3427 rs6000_sr_alias_set.
3428 (rs6000_emit_eh_reg_restore): Use gen_frame_mem.
3429 (rs6000_emit_stack_tie): Same.
3430 (emit_frame_save): Same.
3431 (gen_frame_mem_offset): Same.
3432 (rs6000_emit_prologue): Same.
3433 (rs6000_emit_epilogue): Same.
3435 2005-11-25 Andrew Pinski <pinskia@physics.uc.edu>
3438 * fold-const.c (fold_build): Convert bool_var != 1 and
3439 bool_var == 0 to !bool_var.
3441 2005-11-25 Andrew Pinski <pinskia@physics.uc.edu>
3444 * fold-const.c (fold_binary): Fold (~a) == C to a == ~C
3445 for C being INTEGER_CST. Likewise for !=.
3447 2005-11-25 Joseph S. Myers <joseph@codesourcery.com>
3450 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use _q_utoq for
3451 unsigned conversions from SImode to TFmode.
3453 2005-11-24 Bernd Schmidt <bernd.schmidt@analog.com>
3455 * expr.c (expand_expr_real_1): Fix error in last change.
3457 2005-11-24 J"orn Rennecke <joern.rennecke@st.com>
3459 * caller-save.c: (this_insn_sets): Move into:
3460 (save_call_clobbered_regs).
3461 (mark_set_regs): Get this_insn_sets from data.
3463 (save_call_clobbered_regs): Take sets of the return value by
3464 sibcalls into account.
3466 2005-11-24 J"orn Rennecke <joern.rennecke@st.com>
3469 * regclass.c (FORBIDDEN_INC_DEC_CLASSES): Remove
3470 SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS tests.
3471 (init_fake_stack_mems): Remove HAVE_SECONDARY_RELOADS test.
3472 (memory_move_secondary_cost, init_reg_autoinc): Remove
3473 SECONDARY_INPUT_RELOAD_CLASS / SECONDARY_OUTPUT_RELOAD_CLASS tests.
3474 Replace SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with
3475 secondary_reload_class call.
3476 (copy_cost): Likewise. Add new parameter prev_sri. Changed all
3478 * reload.c (entire file): Remove HAVE_SECONDARY_RELOADS checks.
3479 (push_secondary_reload): Use secondary_reload target hook.
3480 (secondary_reload_class, scratch_reload_class): New functions.
3481 (push_reload): Remove SECONDARY_INPUT_RELOAD_CLASS and
3482 SECONDARY_OUTPUT_RELOAD_CLASS tests. Replace
3483 SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with secondary_reload_class call.
3484 * reload.h (HAVE_SECONDARY_RELOADS): Don't define nor test.
3485 (secondary_reload_class, scratch_reload_class): Declare.
3486 * reload1.c: Include target.h.
3487 (reload_adjust_reg_for_temp): New function.
3488 (reload_adjust_reg_for_icode): Likewise.
3489 (choose_reload_regs): Remove SECONDARY_INPUT_RELOAD_CLASS test.
3490 Replace SECONDARY_INPUT_RELOAD_CLASS use with secondary_reload_class
3492 (emit_input_reload_insns): Likewise. Rewrite secondary reload checks
3493 for inheritance. Support case when both secondary & tertiary reloads
3494 are for intermediate registers.
3495 (emit_output_reload_insns): Replace SECONDARY_OUTPUT_RELOAD_CLASS use
3496 with secondary_reload_class call. Support case when both secondary
3497 & tertiary reloads are for intermediate registers.
3498 * target-def.h (TARGET_SECONDARY_RELOAD): Provide default definition.
3499 (TARGET_INITIALIZER) Add TARGET_SECONDARY_RELOAD.
3500 * target.h (secondary_reload_info): New struct / typedef.
3501 (struct gcc_target): New member secondary_reload.
3502 * targhooks.c Include reload.h, optabs.h and recog.h.
3503 (default_secondary_reload): New function.
3504 * targhooks.h (default_secondary_reload): Declare.
3505 * doc/tm.texi: Document secondary_reload target hook. Update
3506 description of SECONDARY_*RELOAD_CLASS and reload_{in,out}<mode>.
3507 * doc/md.texi: Likewise.
3509 * sh-protos.h (sh_secondary_reload): Declare.
3510 * sh.c (TARGET_SECONDARY_RELOAD): Override.
3511 (sh_secondary_reload): New function.
3512 * sh.h (SECONDARY_INOUT_RELOAD_CLASS): Don't define.
3513 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
3514 (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
3515 (HAVE_SECONDARY_RELOADS): Define.
3516 * sh.md (reload_indf): Rename to:
3518 (reload_outdf): Rename to:
3519 (reload_outdf__RnFRm).
3520 (reload_insf): Rename to:
3522 (reload_insi): Rename to:
3523 (reload_insi__i_fpul).
3525 2005-11-24 Uros Bizjak <uros@kss-loka.si>
3527 * configure.ac: Require at least texinfo 4.4.
3528 * configure: Regenerate.
3530 * doc/install.texi (Tools/packages necessary for building GCC):
3531 Update required version of texinfo to at least 4.4.
3532 (Installing GCC: Building): Update required version of texinfo
3534 (Installing GCC: Final installation): Update required version
3535 of texi2dvi to at least 4.4.
3536 (Host/target specific installation notes for GCC): Update required
3537 version of texinfo to at least 4.4.
3539 2005-11-24 Richard Guenther <rguenther@suse.de>
3540 Dirk Mueller <dmueller@suse.de>
3543 * c-common.h (strict_aliasing_warning): Declare.
3544 * c-common.c (strict_aliasing_warning): New function,
3546 * c-typeck.c (build_c_cast): ... here.
3548 2005-11-24 Paolo Bonzini <bonzini@gnu.org>
3550 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
3552 (swap_commutative_operands_with_target): New.
3554 2005-11-24 Paolo Bonzini <bonzini@gnu.org>
3556 * gcse.c (hash_scan_set): Look through REG_EQUAL or REG_EQUIV notes
3557 also when doing PRE, rather than only for global CPROP.
3559 2005-11-24 Ben Elliston <bje@au.ibm.com>
3561 * machmode.h (CLASS_HAS_WIDER_MODES_P): New macro.
3562 * optabs.c (expand_binop): Use CLASS_HAS_WIDER_MODES_P, improve
3564 (expand_twoval_unop): Likewise.
3565 (widen_clz): Likewise.
3566 (expand_parity): Likewise.
3567 (expand_unop): Likewise.
3568 (emit_cmp_and_jmp_insn_1): Likewise.
3569 (prepare_float_lib_cmp): Likewise.
3571 2005-11-24 Ben Elliston <bje@au.ibm.com>
3573 * optabs.c (prepare_cmp_insn): Use SCALAR_FLOAT_MODE_P.
3574 Remove unused `class' variable.
3576 2005-11-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
3579 * c-typeck.c (build_array_ref): Avoid code duplicate. Use common
3580 C/C++ diagnostic function warn_array_subscript_with_type_char.
3581 * c-common.h (warn_array_subscript_with_type_char): Declare.
3582 * c-common.c (warn_array_subscript_with_type_char): Define.
3584 2005-11-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
3587 * c-decl.c (grokdeclarator): Don't warn for 'extern const' when
3588 compiling at the intersection of C and C++.
3590 2005-11-23 Mark Mitchell <mark@codesourcery.com>
3592 * doc/invoke.texi: For man pages, include gcc-vers.texi.
3593 List @file in the option summary. Include the libiberty
3594 documentation for @file.
3595 * gcc.c (main): Call expandargv.
3596 * Makefile.in (gcc-vers.texi): Define srcdir.
3598 2005-11-23 Diego Novillo <dnovillo@redhat.com>
3600 * passes.c (init_optimization_passes): Document
3601 sequencing of passes.
3603 2005-11-23 Kazu Hirata <kazu@codesourcery.com>
3605 * config/m68k/predicates.md (pcrel_address, extend_operator,
3606 post_inc_operand, pre_dec_operand): Remove redundant
3608 (const_uint32_operand, const_sint32_operand): Use gcc_assert
3610 (valid_dbcc_comparison_p): Rewrite in the lisp style.
3612 2005-11-23 Ben Elliston <bje@au.ibm.com>
3614 * dwarf2.h (enum dwarf_type): Add DW_ATE_decimal_float.
3616 2005-11-22 J"orn Rennecke <joern.rennecke@st.com>
3618 Preparatory work for PR target/21623:
3619 * alpha.c (secondary_reload_class): Rename to:
3620 (alpha_secondary_reload_class).
3621 * alpha.h, alpha-protos.h: Likewise.
3622 * mn10300.c (secondary_reload_class): Rename to:
3623 (mn10300_secondary_reload_class).
3624 * mn10300.h, mn10300-protos.h: Likewise.
3625 * pa.c (secondary_reload_class): Rename to:
3626 (pa_secondary_reload_class).
3627 * pa.h, pa-protos.h: Likewise.
3628 * rs6000.c (secondary_reload_class): Rename to:
3629 rs6000_secondary_reload_class.
3630 * rs6000.h, rs6000-protos.h: Likewise.
3632 2005-11-22 Eric Botcazou <ebotcazou@adacore.com>
3635 * tree-ssa-structalias.c (get_constraint_for): Handle ARRAY_RANGE_REF.
3637 2005-11-22 Ian Lance Taylor <ian@airs.com>
3639 * optabs.c (expand_unop): Call SCALAR_FLOAT_MODE_P on a mode, not
3641 (prepare_cmp_insn): Likewise.
3643 2005-11-22 Kazu Hirata <kazu@codesourcery.com>
3646 * m68k.md (zero_extendsidi2): Force operands[1] to a register
3647 if both operands[0] and operands[1] are memory.
3649 2005-11-22 Andrew Pinski <pinskia@physics.uc.edu>
3652 * fold-const.c (fold_unary) <case NOP_EXPR, CONVERT_EXPR>: For
3653 COMPARISON_CLASS_P and an integral types create create a new
3654 expression with the new type and fold that.
3656 2005-11-22 Andrew Pinski <pinskia@physics.uc.edu>
3659 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Remove call
3660 to SUBTARGET_OS_CPP_BUILTINS.
3662 2005-11-22 Richard Earnshaw <richard.earnshaw@arm.com>
3664 * arm.c (emit_set_insn): New function.
3665 (arm_split_constant): Call it.
3666 (arm_gen_compare_reg, arm_reload_in_hi, arm_reload_out_hi): Likewise.
3667 (arm_legitimize_address): Likewise. Use plus_constant.
3668 (arm_expand_prologue): Likewise. Use VOIDmode in SET.
3669 (thumb_expand_prologue): Likewise.
3670 (arm_gen_load_multiple): Use VOIDmode in SET.
3671 (arm_gen_store_multiple): Likewise.
3672 (vfp_emit_fstmx): Likewise. Use plus_constant.
3673 (emit_multi_reg_push): Likewise.
3674 (emit_sfm): Use plus_constant.
3676 2005-11-23 Alan Modra <amodra@bigpond.net.au>
3679 * config/rs6000/predicates.md (easy_vector_constant_add_self): Fix
3682 2005-11-22 Alan Modra <amodra@bigpond.net.au>
3685 * expmed.c (store_bit_field): Don't attempt to insv a field
3686 larger than the reg.
3688 2005-11-22 Alan Modra <amodra@bigpond.net.au>
3691 * config/rs6000/predicated.md (easy_vector_constant_add_self): Use
3692 explicit sign extension, not a (char) cast.
3694 2005-11-22 Ben Elliston <bje@au.ibm.com>
3696 * optabs.c: Use SCALAR_FLOAT_MODE_P instead of explicitly testing
3697 GET_MODE_CLASS (x) == MODE_FLOAT.
3698 * config/i386/i386.c: Likewise.
3699 * config/rs6000/xcoff.h: Likewise.
3700 * config/rs6000/linux64.h: Likewise.
3701 * config/rs6000/rs6000.c: Likewise.
3702 * config/rs6000/rs6000.h: Likewise.
3703 * config/rs6000/predicates.md: Likewise.
3704 * config/rs6000/sysv4.h: Likewise.
3706 2005-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3708 * c-cppbuiltin.c (c_cpp_builtins): Define __pic__ and __PIC__ when
3711 * config/alpha/freebsd.h, config/alpha/linux.h,
3712 config/arm/linux-elf.h, config/bfin/bfin.h,
3713 config/cris/linux.h, config/darwin.h, config/freebsd-spec.h,
3714 config/i386/beos-elf.h, config/i386/gnu.h,
3715 config/i386/linux.h, config/i386/linux64.h, config/i386/nto.h,
3716 config/i386/sco5.h, config/m32r/m32r.h, config/m68k/linux.h,
3717 config/m68k/m68k.h, config/mips/linux.h, config/pa/pa-linux.h,
3718 config/rs6000/linux64.h, config/rs6000/sysv4.h,
3719 config/rs6000/vxworks.h, config/s390/linux.h, config/s390/tpf.h,
3720 config/sh/linux.h, config/sh/sh.h, config/sol2.h,
3721 config/sparc/linux.h, config/sparc/linux64.h,
3722 config/xtensa/xtensa.h: Don't define __pic__ or __PIC__.
3724 * doc/invoke.texi: Document that the macros __pic__ and __PIC__
3725 are both defined when either flag -fpic or -fPIC are used.
3727 2005-11-22 Joseph S. Myers <joseph@codesourcery.com>
3729 * config/fp-bit.c (clzusi): New function.
3730 (si_to_float, usi_to_float): Use it to compute proper shift.
3731 (usi_to_float): Preserve guard bits when shifting right.
3732 * libgcc-std.ver (GCC_4.2.0): New version.
3733 * libgcc2.c (__floatundixf, __floatunditf, __floatundidf,
3734 __floatundisf): New functions.
3735 * libgcc2.h (__floatundixf, __floatunditf, __floatundidf,
3736 __floatundisf): Declare.
3737 * mklibgcc.in (lib2funcs): Add _floatundidf, _floatundisf,
3738 _floatundixf, and _floatunditf.
3739 * optabs.c (expand_float): If target does not define a pattern for
3740 signed or unsigned conversion, use an unsigned libcall instead of
3742 (init_optabs): Initialize ufloat_optab.
3744 2005-11-22 Joseph S. Myers <joseph@codesourcery.com>
3746 * config/rs6000/rs6000.opt (mmulhw): New option.
3747 * doc/invoke.texi (-mmulhw): Document.
3748 * config/rs6000/rs6000.c (rs6000_override_options): Enable -mmulhw
3750 * config/rs6000/rs6000.md: Add half-word multiply and
3751 multiply-accumulate instructions for 405 and 440.
3753 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
3755 * config/arm/rtems-elf.h: Added definition of LINK_GCC_C_SEQUENCE_SPEC
3756 which matches behavior of gcc 4.0 and older for RTEMS targets. The
3757 default now includes a linker group which makes the RTEMS one nest.
3759 2005-11-22 Ben Elliston <bje@au.ibm.com>
3761 * cse.c (fold_rtx): Typo fix.
3762 (find_comparison_args): Pass the mode of arg1, not arg1 itself.
3764 2005-11-21 Richard Henderson <rth@redhat.com>
3766 * c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h,
3767 langhooks-def.h, langhooks.h: Revert 2005-11-18 lookup_name patch.
3769 * c-tree.h (lookup_name): Move declaration ...
3770 * c-common.h (lookup_name): ... here.
3771 * config/darwin-c.c: Include c-common.h.
3772 * config/t-darwin: Update dependencies.
3774 2005-11-22 Ben Elliston <bje@au.ibm.com>
3776 * optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of
3777 explicitly testing GET_MODE_CLASS (x) == MODE_FLOAT.
3778 * genopinit.c (gen_insn): Likewise.
3779 * reload.c (find_equiv_reg): Likewise.
3780 * loop.c (load_mems): Likewise.
3781 * rtlanal.c (may_trap_p_1, canonicalize_condition): Likewise.
3782 * cse.c (find_comparison_args, fold_rtx): Likewise.
3783 * dwarf2out.c (add_const_value_attribute): Likewise.
3784 * expr.c (convert_move): Likewise.
3785 * recog.c (general_operand, register_operand): Likewise.
3786 * reg-stack.c (replace_reg): Likewise.
3787 * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
3788 * c-common.c (handle_vector_size_attribute): Likewise.
3789 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3790 (simplify_binary_operation_1): Likewise.
3791 (simplify_const_binary_operation): Likewise.
3792 (simplify_relational_operation): Likewise.
3793 (simplify_const_relational_operation): Likewise.
3794 (simplify_immed_subreg): Likewise.
3795 * emit-rtl.c (gen_lowpart_common): Likewise.
3796 * expmed.c (expand_mult): Likewise.
3797 * stor-layout.c (layout_type): Likewise.
3799 2005-11-21 Paolo Bonzini <bonzini@gnu.org>
3802 * config/rs6000/rs6000.c (output_vec_const_move): Load cst and
3803 cst2 only for SPE vectors.
3805 2005-11-21 David Edelsohn <edelsohn@gnu.org>
3808 * config/rs6000/predicates.md (vrsave_operation): Check
3809 UNSPEC_VOLATILE value.
3811 2005-11-21 Jan Hubicka <jh@suse.cz>
3813 PR tree-optimization/24653
3814 * tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
3816 2005-11-21 Uros Bizjak <uros@kss-loka.si>
3818 * config/i386/predicates.md (ax_reg_operand): New predicate.
3819 (memory_displacement_only_operand): New predicate.
3820 * config/i386/i386.md ("modrm" attribute): Return 0 if one
3821 operand is AX register and the other operand is memory operand
3822 with displacement only.
3824 2005-11-21 Uros Bizjak <uros@kss-loka.si>
3826 * fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0
3827 if we don't care about NaNs or Infinities.
3829 2005-11-20 Ian Lance Taylor <ian@airs.com>
3831 PR rtl-optimization/24883
3832 * combine.c (combinable_i3pat): When checking whether the
3833 destination of i3 is used in i3, consider paradoxical subregs.
3835 2005-11-21 Kazu Hirata <kazu@codesourcery.com>
3838 * cse.c (cse_insn): Reject invalid forms of CONST earlier.
3840 2005-11-20 Joseph S. Myers <joseph@codesourcery.com>
3842 * combine.c (try_combine): Do not run subst on i1src and i2src in
3843 the case of generating a PARALLEL for a comparison.
3845 2005-11-20 Richard Henderson <rth@redhat.com>
3848 * tree-sra.c (struct sra_elt): Add all_no_warning.
3849 (struct sra_walk_fns) <use>: Add use_all argument.
3850 (sra_walk_expr): Pass it.
3851 (sra_walk_modify_expr): Likewise.
3852 (scalarize_ldst): Likewise.
3853 (scan_use): Update for new argument.
3854 (mark_no_warning): New.
3855 (scalarize_use): Use it.
3857 2005-11-20 Bernd Schmidt <bernd.schmidt@analog.com>
3859 * expr.c (expand_expr_real): Use usmul_optab for widening
3860 signed * unsigned multiplies.
3861 * genopinit.c (optabs): Add usmul_widen_optab.
3862 * optabs.c (init_optabs): Likewise.
3863 * optabs.h (enum optab_index): Add OTI_usmul_widen.
3864 (usmul_widen_optab): Define.
3865 * config/bfin/bfin.md (usmulhisi3): New pattern.
3867 * doc/md.texi (usmulqihi3, usmulhisi3, usmulsidi3): Document.
3869 2005-11-20 Graham Stott <btinternet.com>
3871 * gensupport.c (std_preds): Fixed extraneous `false` in last change.
3873 2005-11-20 Andreas Schwab <schwab@suse.de>
3876 * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
3879 2005-11-19 Richard Henderson <rth@redhat.com>
3882 * tree-gimple.c (is_gimple_id): Export.
3883 * tree-gimple.h (is_gimple_id): Declare.
3884 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
3885 (get_default_value): Use it.
3886 (maybe_fold_stmt_indirect): Likewise.
3888 2005-11-19 James A. Morrison <phython@gcc.gnu.org>
3890 * tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less
3891 than VR1 or vice-versa.
3893 2005-11-19 Hans-Peter Nilsson <hp@axis.com>
3897 * reload.c (find_reloads_address_1): Mention dependency on
3899 * reload1.c (gen_reload): For IN with an unary operation, try
3900 moving inner expression to OUT if trivial SET is not valid.
3901 Confirm that the result is valid. Move common code block into...
3902 (emit_insn_if_valid_for_reload): New function.
3904 2005-11-19 Richard Guenther <rguenther@suse.de>
3906 * fold-const.c (fold_indirect_ref_1): Make sure we fold
3907 ARRAY_REFs of constant strings.
3909 2005-11-19 Jakub Jelinek <jakub@redhat.com>
3911 * gcc.c (version_compare_spec_function): Use '%s' rather than %qs in
3912 fatal format string.
3914 2005-11-19 Joseph S. Myers <joseph@codesourcery.com>
3916 * combine.c (make_compound_operation): Swap operands of
3917 commutative operation if necessary before returning.
3919 2005-11-19 Richard Guenther <rguenther@suse.de>
3922 * fold-const.c (fold_plusminus_mult_expr): New function.
3923 (fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
3924 cases, remove now unnecessary code.
3926 2005-11-19 Paolo Bonzini <bonzini@gcc.gnu.org>
3928 * gensupport.c (old_preds): Rename to std_preds, add special field.
3929 (struct old_pred_table): Rename to struct std_pred_table, add special
3931 (NUM_KNOWN_OLD_PREDS): Rename to NUM_KNOWN_STD_PREDS.
3932 (NUM_OLD_SPECIAL_MODE_PREDS): Remove.
3933 (init_predicate_table): Adjust, and set along the way whether a
3934 predicate is special.
3936 2005-11-18 Mark Mitchell <mark@codesourcery.com>
3938 * BASE-VER: Change to 4.2.0.
3940 2005-11-18 James E Wilson <wilson@specifix.com>
3942 * builtins.c (fold_builtin_strstr): Pass s1 through fold_convert before
3945 2005-11-18 Mike Stump <mrs@apple.com>
3947 * c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
3948 * config/darwin-c.c (darwin_pragma_unused): Likewise.
3949 * c-decl.c (lookup_name_two) Remove.
3950 * c-tree.h (lookup_name_two): Remove.
3951 * c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
3952 * langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
3953 (LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
3954 * langhooks.h (lang_hooks_for_decls): Add lookup_name.
3956 2005-11-18 Richard Earnshaw <richard.earnshaw@arm.com>
3959 * arm.c (arm_hard_regno_mode_ok): Co-processor registers aren't ok
3960 when not generating code to use that co-processor.
3962 2005-11-18 James A. Morrison <phython@gcc.gnu.org>
3964 * tree-flow.h (reserve_phi_args_for_new_edge, create_phi_node,
3965 add_phi_arg, remove_phi_args, remove_phi_node phi_reverse): Mention that
3966 these functions are now in tree-phinodes.c.
3968 2005-11-18 Jie Zhang <jie.zhang@analog.com>
3970 * config/bfin/bfin.md (trap): New pattern.
3972 2005-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3974 * tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds
3977 * expr.c (expand_expr_real): Don't call record_block_change unless
3978 ib_boundaries_block is non-null
3980 * postreload.c (reload_cse_move2add): Don't try to work with BImode.
3982 * fold-const.c (build_range_check): Use proper type for subtraction
3983 when merging lower bound.
3985 2005-11-18 Zdenek Dvorak <dvorakz@suse.cz>
3987 PR rtl-optimization/24497
3988 * loop-unroll.c (apply_opt_in_copies): Do not verify equality of
3991 2005-11-18 Zdenek Dvorak <dvorakz@suse.cz>
3993 * tree-scalar-evolution.c (expression_expensive_p): New function.
3994 (scev_const_prop): Use compute_overall_effect_of_inner_loop.
3996 2005-11-18 Bernd Schmidt <bernd.schmidt@analog.com>
3998 * config/bfin/crtlibid.s: New file.
4000 2005-11-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4003 * config.gcc (hppa*-*-hpux*): Add pa/t-slibgcc-elf-ver to tmake config
4004 when not using sjlj exceptions.
4005 * config/pa/pa64-hpux.h (LIB_SPEC): Add -lpthread in static links.
4006 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4007 * config/pa/som.h (ASM_PREFERRED_EH_DATA_FORMAT): Delete define.
4008 * config/pa/linux-unwind.h (pa32_fallback_frame_state): Use
4009 DWARF_ALT_FRAME_RETURN_COLUMN instead of column 0 as return column.
4010 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): New define.
4011 * config/pa/pa-linux.h (INCOMING_RETURN_ADDR_RTX,
4012 DWARF_FRAME_RETURN_COLUMN, ASM_PREFERRED_EH_DATA_FORMAT,
4013 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Delete defines.
4014 * config/pa/pa.h (ARG_POINTER_CFA_OFFSET): Delete.
4015 (FRAME_POINTER_CFA_OFFSET, INCOMING_RETURN_ADDR_RTX,
4016 DWARF_FRAME_RETURN_COLUMN, DWARF_ALT_FRAME_RETURN_COLUMN,
4017 ASM_PREFERRED_EH_DATA_FORMAT, ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New
4019 * config/pa/hpux-unwind.h: New file.
4021 2005-11-17 Alexandre Oliva <aoliva@redhat.com>
4023 * config/rs6000/rs6000.h (ASM_OUTPUT_WEAKREF): Define.
4024 * defaults.h (ASM_OUTPUT_WEAKREF): Add decl argument.
4025 * varasm.c (do_assemble_alias): Adjust call.
4026 (weak_finish): Don't use ASM_WEAKEN_LABEL if ASM_WEAKEN_DECL
4028 * doc/tm.texi (ASM_OUTPUT_WEAKREF): Document it.
4030 2005-11-17 James E Wilson <wilson@specifix.com>
4032 * tree.def (FUNCTION_DECL): Correct typo in comment.
4034 2005-11-17 Richard Henderson <rth@redhat.com>
4036 * dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
4037 (lookup_cfa_1): Apply data alignment to DW_CFA_def_cfa_offset_sf
4038 and DW_CFA_def_cfa_sf.
4039 (def_cfa_1): Use DW_CFA_def_cfa_offset_sf with negative values.
4040 (dbx_reg_number): Don't assert particular registers here.
4041 (based_loc_descr): ... do it here instead. Fold in ...
4042 (eliminate_reg_to_offset): ... this function.
4043 (compute_frame_pointer_to_cfa_displacement): Fold in the effects
4044 of eliminate_reg_to_offset; use FRAME_POINTER_CFA_OFFSET.
4045 * unwind-dw2.c (execute_cfa_program): Apply data align factor
4046 to DW_CFA_def_cfa_offset_sf and DW_CFA_def_cfa_sf.
4047 * function.c (instantiate_new_reg): Use FRAME_POINTER_CFA_OFFSET.
4048 (instantiate_virtual_regs): Likewise.
4049 * var-tracking.c (adjust_stack_reference): Likewise.
4050 * doc/tm.texi (FRAME_POINTER_CFA_OFFSET): New.
4052 2005-11-17 Bernd Schmidt <bernd.schmidt@analog.com>
4054 * config/bfin/elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
4055 * config/bfin/uclinux.h (STARFILE_SPEC): Likewise.
4056 * config/bfin/t-bfin-elf (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Add
4058 ($(T)crtlibid.o): New rule.
4060 2005-11-16 Richard Guenther <rguenther@suse.de>
4063 * fold-const.c (extract_array_ref): Return byte offset
4065 (fold_binary): Fold &x[a] CMP &x[b] to
4066 a*sizeof(*x) CMP b*sizeof(*x) to get correct overflow
4069 2005-11-16 Richard Henderson <rth@redhat.com>
4072 * tree-ssa.c (warn_uninitialized_var): Skip real and imaginary
4073 parts of an SSA_NAME.
4075 2005-11-16 Richard Earnshaw <richard.earnshaw@arm.com>
4078 * arm.md (split for movsf with immediate): Restrict split to insns
4079 that set a general register.
4081 2005-11-16 Daniel Jacobowitz <dan@codesourcery.com>
4083 * config/ia64/unwind-ia64.c (uw_advance_context): New. Call
4085 * unwind-dw2.c (uw_advance_context): Likewise.
4086 * unwind-sjlj.c (uw_advance_context): Likewise. Also call
4087 _Unwind_SjLj_Unregister.
4088 * unwind.inc (_Unwind_ForcedUnwind_Phase2): Call uw_advance_context.
4090 2005-11-16 Daniel Jacobowitz <dan@codesourcery.com>
4092 * unwind-sjlj.c (_Unwind_GetCFA): Handle the builtin_setjmp case.
4094 2005-11-16 Eric Botcazou <ebotcazou@adacore.com>
4096 * config/alpha/alpha.c (alpha_init_builtins): Use type_for_mode
4097 langhook to get a DImode integer type.
4099 2005-11-16 Richard Henderson <rth@redhat.com>
4100 J"orn Rennecke <joern.rennecke@st.com>
4101 Ulrich Weigand <uweigand@de.ibm.com>
4105 * reload1.c (reg_equiv_invariant): New.
4106 (reload): Allocate, initialize, and free it.
4107 (calculate_needs_all_insns): Check it when skipping equivalence
4109 (alter_reg): Likewise.
4110 (eliminate_regs_1): Rename from eliminate_regs. Add new
4111 may_use_invariant argument; only use reg_equiv_invariant when true.
4112 (eliminate_regs): New.
4113 (eliminate_regs_in_insn): Use eliminate_regs_1; track when we're in
4114 a context for which may_use_invariant may be true.
4116 2005-11-16 Eric Botcazou <ebotcazou@adacore.com>
4118 * fold-const.c (const_binop): Don't constant fold the operation
4119 if the result has overflowed and flag_trapping_math.
4120 * simplify-rtx.c (simplify_const_binary_operation): Likewise.
4122 2005-11-16 Daniel Jacobowitz <dan@codesourcery.com>
4124 * config/arm/unwind-arm.c (abort): Add prototype here.
4125 (UCB_FORCED_STOP_ARG): Correct typo in macro argument.
4126 (struct phase1_vrs): Add prev_sp.
4127 (unwind_phase2_forced): Save the original core registers instead of
4128 modifying entry_vrs. Take a new flag argument for resuming unwinding
4129 and set action flags accordingly. Always set _US_END_OF_STACK when
4130 get_eit_entry fails. Unwind before calling the stop function.
4131 (_Unwind_GetCFA): New function.
4132 (__gnu_Unwind_ForcedUnwind): Update call to unwind_phase2_forced.
4133 (__gnu_Unwind_Resume_or_Rethrow): Likewise.
4134 (__gnu_Unwind_Resume): Do not unwind here for forced unwinding;
4135 just call unwind_phase2_forced.
4136 (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Move to here.
4137 * config/arm/unwind-arm.h (abort): Remove prototype.
4138 (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Change to
4140 (_Unwind_GetCFA): New prototype.
4141 * config/arm/pr-support.c (abort): Add prototype here.
4142 * unwind-c.c (PERSONALITY_FUNCTION) [__ARM_EABI_UNWINDER__]: Handle
4144 * config/arm/arm.c (arm_expand_prologue, thumb_expand_prologue): Do
4145 not schedule the prologue with non-call exceptions and EABI.
4147 2005-11-16 Nathan Sidwell <nathan@codesourcery.com>
4149 * config/arm/unwind-arm.h: Reorder interface function declarations.
4150 (_URC_END_OF_STACK): New enumeration value.
4151 (_US_UNWIND_ACTION_MASK, _US_FORCE_UNWIND, _US_END_OF_STACK): Likewise.
4152 (struct _Unwind_Control_Block): Document reserved field use.
4153 (_Unwind_Stop_Fn): New typedef.
4154 (_Unwind_ForcedUnwind): Declare.
4155 (_Unwind_Resume_or_Rethrow): Declare.
4156 * config/arm/libunwind.S (UNWIND_WRAPER): Add nargs
4158 (_Unwind_Resume_or_Rethrow, _Unwind_ForcedUnwind): New.
4159 * config/arm/unwind-arm.c (UCB_FORCED_STOP_FN)
4160 (UCB_FORCED_STOP_ARG): New.
4161 (search_EIT_table): Update boundary condition checks.
4162 (get_eit_entry): Return _URC_END_OF_STACK when cannot unwind.
4163 (unwind_phase2): Replace for with do..while.
4164 (unwind_phase2_forced): New.
4165 (__gnu_Unwind_RaiseException): Replace for with do..while.
4166 (__gnu_Unwind_ForcedUnwind): New.
4167 (__gnu_Unwind_Resume): Set FORCE_UNWIND flag, if forced unwinding.
4168 Use appropriate phase2 unwinder.
4169 (__gnu_Unwind_Resume_or_Rethrow): New.
4170 (__gnu_unwind_pr_common): Cope with forced unwinding.
4172 2005-11-16 David Edelsohn <edelsohn@gnu.org>
4175 * config/rs6000/predicates.md (vrsave_operation): SET_SRC is a VEC.
4177 * config/rs6000/rs6000.md (btruncsf2, ceilsf2, floorsf2,
4178 roundsf2): Remove "s" from mnemonic.
4180 2005-11-16 Bernd Schmidt <bernd.schmidt@analog.com>
4182 * config/bfin/crti.s (__init, __fini): Use appropriate prologue if
4184 * config/bfin/crtn.s: Change epilogues to match.
4185 * config/bfin/t-bfin-elf (EXTRA_MULTILIB_PARTS): Define.
4186 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If flag_pic, define
4187 __PIC__ and __pic__.
4189 2005-11-16 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
4192 * doc/invoke.texi: Distinguish between free and fixed form instead of
4193 Fortran and Fortran 90/95. Remove ratfor from the list of supported
4195 * gcc.c (default_compilers): Remove double entries, add entries for
4196 suffixes '.F90' and '.F95'.
4198 2005-11-16 Eric Botcazou <ebotcazou@adacore.com>
4200 * config/alpha/alpha.c (alpha_expand_prologue): Fix off-by-one bug
4201 in the stack probing loop.
4203 2005-11-15 David Edelsohn <edelsohn@gnu.org>
4205 * configure.ac: Use .machine power5 not power5x.
4206 * configure: Regenerate.
4208 2005-11-15 Mike Stump <mrs@apple.com>
4210 * c-decl.c (lookup_name_two): Add.
4211 * c-tree.h (lookup_name_two): Likewise.
4212 * c-common.c (handle_cleanup_attribute): Use lookup_name_two instead.
4213 * config/darwin-c.c (darwin_pragma_unused): Likewise.
4215 2005-11-16 Alan Modra <amodra@bigpond.net.au>
4217 PR rtl-optimization/23392
4218 * regrename.c (enum scan_actions) Add mark_access.
4219 (scan_actions_name): Ditto.
4220 (scan_rtx_reg): Handle mark_access.
4221 (scan_rtx_address): Do nothing for mark_access.
4222 (build_def_use): Mark source registers in REG_FRAME_RELATED_EXPR
4223 and regs in REG_INC notes before closing chains for dead regs.
4224 Mark destination regs in REG_FRAME_RELATED_EXPR notes after
4225 opening chains for new writes.
4227 2005-11-15 David Edelsohn <edelsohn@gnu.org>
4229 * c.opt (ffixed-line-length-none): New.
4231 2005-11-15 Steve Ellcey <sje@cup.hp.com>
4233 * mklibgcc.in: Change contents of eh_dummy.c.
4235 2005-11-15 Daniel Jacobowitz <dan@codesourcery.com>
4237 * loop.c (scan_loop): Do not insert temporaries for hard registers.
4239 2005-11-15 Daniel Jacobowitz <dan@codesourcery.com>
4241 * config/arm/lib1funcs.asm (div0) [L_dvmd_lnx]: Call raise instead
4243 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define. Set r7 also.
4245 2005-11-15 Jan Hubicka <jh@suse.cz>
4247 * invoke.texi (large-unit-insns): Document.
4248 * ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
4249 * params.def (large-unit-insns): New param.
4251 2005-11-15 Hans-Peter Nilsson <hp@axis.com>
4254 * config/cris/cris.md ("*mov_sidesisf_mem"): Do not match
4255 special register for operand 3. Reindent constraints to align
4258 2005-11-14 David Edelsohn <edelsohn@gnu.org>
4260 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf,
4261 -mpopcntb, -mfprnd. Add -mcpu=power5+.
4262 * configure.ac: Add test for FP rounding instructions.
4263 * configure: Regenerate.
4264 * config.in: Regenerate.
4265 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4266 _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if
4268 * config/rs6000/rs6000.opt (mfprnd): New.
4269 * config/rs6000/rs6000.c (processor_target_table): Add power5+.
4270 (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND.
4271 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+.
4272 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+.
4273 (TARGET_FPRND): New.
4274 * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP,
4276 (btrunc<mode>2): New.
4278 (floor<mode>2): New.
4279 (round<mode>2): New.
4281 2005-11-14 Geoffrey Keating <geoffk@apple.com>
4283 * gcc.c (version_compare_spec_function): Use fatal() rather than
4286 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
4287 (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
4288 * config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
4290 * config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
4293 * config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
4294 on -mmacosx-version-min setting.
4296 2005-11-14 Diego Novillo <dnovillo@redhat.com>
4299 * tree-vrp.c (infer_value_range): Return false if STMT is a
4300 block terminator and its basic block has no successors.
4302 2005-11-14 Mike Stump <mrs@apple.com>
4304 * config/i386/i386.c (override_options): -masm=intel isn't
4305 supported on darwin.
4306 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
4308 2005-11-15 Joseph S. Myers <joseph@codesourcery.com>
4310 * crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
4311 vfork after including auto-host.h.
4313 2005-11-15 Alan Modra <amodra@bigpond.net.au>
4315 PR rtl-optimization/22002
4316 * combine.c (distribute_notes): Detect cases where a reg dies
4317 two or more times in a bb, including on the insn we are combining,
4318 and place the death note on the correct range.
4320 2005-11-14 Dale Johannesen <dalej@apple.com>
4322 * expmed.c (store_bit_field): Add offset unconditionally for
4324 (extract_bit_field): Don't force extzv or extv operand into
4325 a register if field is too big.
4327 2005-11-14 Daniel Jacobowitz <dan@codesourcery.com>
4329 * config/arm/arm.c (pic_labelno): New.
4330 (arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a
4331 LABEL_REF. Pass only the labelno to PIC insns.
4332 (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
4333 (arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL.
4334 * arm.md (UNSPEC_PIC_LABEL): New constant.
4335 (pic_add_dot_plus_four, pic_add_dot_plus_eight)
4336 (tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF.
4337 Use the correct label prefix.
4339 2005-11-14 Daniel Jacobowitz <dan@codesourcery.com>
4341 * config/arm/arm.c (legitimize_tls_address): Use correct rtx for
4344 2005-11-14 Richard Earnshaw <richard.earnshaw@arm.com>
4346 * loop-invariant.c: Include tm_p.h.
4347 * Makefile.in: Updated.
4349 2005-11-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4351 * pa.c (store_reg): Revise generation of frame notes in large frames.
4352 (set_reg_plus_d): Likewise.
4354 2005-11-13 Andrew MacLeod <amacleod@redhat.com>
4356 PR tree-optimization/24709
4357 * tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
4360 2005-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4362 * gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
4363 and duplicate declaration of pthread_self.
4365 2005-11-13 Eric Botcazou <ebotcazou@adacore.com>
4366 Ian Lance Taylor <ian@airs.com>
4369 * calls.c (expand_call): If TARGET is a MEM and some part of the
4370 argument area has been saved, force TARGET to a register.
4372 2005-11-13 Razya Ladelsky <razya@il.ibm.com>
4374 * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type
4377 2005-11-13 Jason Merrill <jason@redhat.com>
4380 * dwarf2out.c (gen_subprogram_die): Force a declaration die for
4381 lazily declared methods.
4382 (force_decl_die): Stop if forcing out the context already make a
4384 (force_type_die): Likewise.
4386 2005-11-13 Andrew Pinski <pinskia@physics.uc.edu>
4389 * builtins.c (integer_valued_real_p): Add break in
4390 REAL_CST having TREE_OVERFLOW set.
4392 2005-11-13 Zdenek Dvorak <dvorakz@suse.cz>
4394 * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
4395 addressing modes during calculation of costs.
4397 2005-11-12 Eric Botcazou <ebotcazou@adacore.com>
4399 * function.c (assign_stack_local_1): Restrict sanity check
4400 on frame size overflow to 32-bit and above platforms.
4402 2005-11-12 Hans-Peter Nilsson <hp@axis.com>
4404 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
4405 * config/cris/cris.c: Include reload.h.
4406 (cris_initial_elimination_offset): New function.
4407 * config/cris/cris-protos.h: (cris_initial_elimination_offset):
4410 2005-11-12 Richard Guenther <rguenther@suse.de>
4412 * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
4414 2005-11-12 Jan Hubicka <jh@suse.cz>
4416 * expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize
4417 to compare against 0 when possible.
4419 2005-11-12 Jie Zhang <jie.zhang@analog.com>
4421 * config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES,
4422 HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
4423 REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers.
4424 * config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers
4427 2005-11-12 Hans-Peter Nilsson <hp@axis.com>
4429 * recog.c (constrain_operands) <case 'g'>: For a match, require
4430 that a non-register matches general_operand when strict >= 0.
4432 2005-11-11 Steven Bosscher <stevenb@suse.de>
4434 * loop-invariant.c (move_loop_invariants): Fix a thinko in the
4437 2005-11-11 Daniel Jacobowitz <dan@codesourcery.com>
4439 * tree-ssa-dse.c (struct address_walk_data, memory_ssa_name_same)
4440 (memory_address_same): New.
4441 (dse_optimize_stmt): Call memory_address_same.
4443 2005-11-12 Hans-Peter Nilsson <hp@axis.com>
4446 * reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND,
4447 ZERO_EXTEND>: New cases.
4449 2005-11-11 Daniel Jacobowitz <dan@codesourcery.com>
4451 * longlong.h (__clz_tab): Always provide.
4453 2005-11-11 Steven Bosscher <stevenb@suse.de>
4456 * loop-invariant.c (may_assign_reg_p): Make sure a hard register
4458 (find_invariant_insn): Do the cheapest check, may_assign_reg_p,
4459 before check_maybe_invariant.
4460 (move_invariant_reg): Use gen_move_insn instead of replacing
4461 SET_DEST with the temporary for the invariant.
4462 (move_loop_invariants): If checking is enabled, do internal
4463 consistency checks after completing the pass.
4465 2005-11-11 David Edelsohn <edelsohn@gnu.org>
4468 * common.opt (Wvolatile-register-var): New.
4469 * varasm.c (make_decl_rtl): Only emit warning when option
4470 specified. Clarify warning message.
4471 * doc/invoke.texi (Wvolatile-register-var): Document new option.
4473 * doc/md.texi (copysign): Document standard named pattern.
4475 2005-11-11 Jie Zhang <jie.zhang@analog.com>
4477 * config/bfin/bfin.c (bfin_expand_strmov): Correctly move the trailing
4478 bytes when align is 2.
4479 * config/bfin/bfin.md (rep_movsi, rep_movhi): Make LSETUP be followed
4480 by the first instruction of the loop.
4482 2005-11-11 Jason Merrill <jason@redhat.com>
4485 * gimplify.c (gimplify_cleanup_point_expr): Also save and restore
4488 2005-11-11 Zdenek Dvorak <dvorakz@suse.cz>
4490 PR rtl-optimization/22509
4491 * local-alloc.c (memref_used_between_p): Check whether a function call
4492 could not reference the memref.
4494 2005-11-11 Ulrich Weigand <uweigand@de.ibm.com>
4496 * postreload.c (reload_cse_simplify_operands): Fix bug in sorting
4497 algorithm so as to choose the best, not the worst, alternative.
4498 Reset accumulated register class before processing next alternative.
4500 2005-11-11 Kaz Kojima <kkojima@gcc.gnu.org>
4503 * calls.c (expand_call): Copy a return value to a plain register
4506 2005-11-10 Alexandre Oliva <aoliva@redhat.com>
4509 * varasm.c (assemble_name): Recompute name only for transparent
4512 2005-11-10 Hans-Peter Nilsson <hp@axis.com>
4514 * tree-ssa-structalias.c (heapvar_lookup): Fix typo: stmt to from.
4516 2005-11-04 Jeff Law <law@redhat.com>
4519 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Do not
4520 perform reassociation if the parent statement will not die as
4521 a result of the optimization.
4523 2005-11-10 Daniel Berlin <dberlin@dberlin.org>
4525 * tree-ssa-alias.c (compute_may_aliases): Remove call to
4526 delete_old_heap_vars.
4527 * tree-dfa.c (referenced_var_remove): Remove function.
4528 * tree-ssa.c (init_tree_ssa): Call init_alias_heapvars.
4529 (delete_tree_ssa): Remove call to delete_old_heapvars.
4530 Add call to delete_alias_heapvars.
4531 * tree-flow.h (referenced_var_remove): Remove prototype
4532 (init_alias_heapvars): New prototype.
4533 (delete_alias_heapvars): Ditto.
4534 * Makefile.in (tree-ssa-structalias.o): Add
4535 gt-tree-ssa-structalias.o
4536 (GTFILES): Add tree-ssa-structalias.h and
4537 tree-ssa-structalias.c.
4538 (s-gtype): Add gt-tree-ssa-structalias.h.
4539 * tree-ssa-structalias.c (heapvars): Remove.
4540 (oldheapvars): Remove.
4541 (heapvar_for_stmt): New variable.
4542 (heapvar_lookup): New function.
4543 (heapvar_insert): Ditto.
4544 (get_constraint_for): See if we have an old heapvar
4546 (init_alias_heapvars): New function.
4547 (delete_alias_heapvars): Ditto.
4548 Add include of gt-tree-ssa-structalias.h.
4550 2005-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
4553 * calls.c (special_function_p): Set ECF_RETURNS_TWICE for getcontext.
4555 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
4557 * tree.c (int_fits_type_p): Only look at the base type
4558 if it has the same precision as the original type.
4560 2005-11-10 Jakub Jelinek <jakub@redhat.com>
4563 * varasm.c (assemble_alias): Use %q+D in the error
4564 message instead of %J and %qD.
4566 2005-11-10 Richard Guenther <rguenther@suse.de>
4568 * gcse.c (free_ldst_entry): Only free hashtable if
4571 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
4573 * function.c (assign_stack_local_1): Issue an error message if
4574 the frame size overflows in the signed target arithmetics.
4576 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
4578 * tree.c (build_qualified_type): Chain the new type to the original
4579 type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
4580 a POINTER_TYPE or a REFERENCE_TYPE respectively.
4581 (build_pointer_type_for_mode): Only return unqualified types.
4582 (build_reference_type_for_mode): Likewise.
4584 2005-11-09 Jakub Jelinek <jakub@redhat.com>
4586 * Makefile.in (gnucompare): Do comparison of all files using one of
4587 the chosen methods and only afterwards decide if just warning should
4588 be issued or comparison failure raised.
4590 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
4592 * ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
4593 (noce_try_abs): Negate if the comparison is reversed.
4594 Look only one instruction backwards for a REG_EQUAL note.
4596 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
4599 * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
4600 gthr-tpf.h: Define __gthrw. For all identifiers that might
4601 be weak, introduce weakrefs or non-weak aliases with __gthrw,
4602 and prefix all uses with __ghtrw.
4604 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
4607 * tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New.
4608 (TREE_DEPRECATED): Adjust comment. Check for a DECL.
4609 * c-common.c (handle_weakref_attribute): New.
4610 (c_common_attribute_table): Add weakref.
4611 * configure.ac (HAVE_GAS_WEAKREF): Check for weakref support
4613 * configure, config.in: Rebuilt.
4614 * defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF.
4615 * doc/extend.texi: Document weakref attribute.
4616 * varasm.c (ultimate_transparent_alias_target): New
4617 (assemble_name): Use it.
4618 (weak_finish_1): Split out of...
4619 (weak_finish): ... and deal with weakrefs in...
4620 (weakref_targets): ... new list.
4621 (globalize_decl): Clean up weakref_targets.
4622 (do_assemble_alias): Handle weakrefs.
4623 (finish_aliases_1): Do not reject weakrefs to external symbols.
4624 (assemble_alias): Handle weakrefs.
4626 2005-11-09 Richard Guenther <rguenther@suse.de>
4628 PR tree-optimization/24716
4629 * tree-scalar-evolution.c (analyze_evolution_in_loop): Use
4630 t_bool to track results from follow_ssa_edge.
4632 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
4634 * final.c (force_source_line): New global variable.
4635 (final_scan_insn): Set it to true instead of clearing last_filename.
4636 (notice_source_line): Return true if force_source_line is true,
4637 unless source info is absent.
4639 2005-11-09 Andrew Pinski <pinskia@physics.uc.edu>
4642 * dwarf2-out.c (add_name_and_src_coords_attributes): Don't add
4643 a linkage name for a variable if it a register variable.
4644 * c-decl.c (grokdeclarator): Global register variables
4645 should be set as PUBLIC.
4647 2005-11-09 Andreas Krebbel <krebbel1@de.ibm.com>
4650 * config/s390/s390.c (struct s390_frame_layout): New fields
4651 first_save_gpr_slot and last_save_gpr_slot.
4652 (cfun_grps_save_area_size, s390_frame_info, s390_emit_prologue,
4653 s390_emit_epilogue, s390_initial_elimination_offset): Replaced
4654 first_save_gpr and last_save_gpr with the _slot variants.
4655 (s390_register_info): Calculate first_save_gpr_slot and
4656 last_save_gpr_slot using regs_ever_live.
4658 2005-11-09 Andreas Krebbel <krebbel1@de.ibm.com>
4661 * config/s390/s390.c (s390_regs_ever_clobbered): Only save live eh regs
4662 for a function containing a landing pad.
4664 2005-11-09 Andreas Krebbel <krebbel1@de.ibm.com>
4667 * flow.c (mark_set_1): Handle CLOBBERs like SETs if the register
4670 2005-11-08 Bernd Schmidt <bernd.schmidt@analog.com>
4672 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DEFAULTS,
4673 MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): New.
4675 2005-11-09 Nathan Sidwell <nathan@codesourcery.com>
4678 * config/ms1/ms1.md (UNSPEC_BLOCKAGE, UNSPEC_EI, UNSPEC_DI): New
4680 (call,load,store): New insn types.
4681 (mem_access, branch_access): Adjust reservation conditions.
4682 (define_delay): Adjust condition.
4683 (decrement_and_branch_until_zero): Allow for ms2. Set branch
4685 (*decrement_and_rbanch_until_zero_no_clobber): Allow for ms2.
4686 (*movqi_internal,*movsi_internal,*movsf_internal): Use load,store
4688 (call_internal, call_value_internal, return_internal,
4689 return_interrupt_internal, eh_return_internal, indirect_jump,
4690 tablejump): Set call insn type.
4691 (blockage, ei, di): Use appropriate unspec const.
4692 * config/ms1/ms1.c (ms1_flag_delayed_branch): New.
4693 (ms1_get_attr_type): Adjust to give load & store types.
4694 (ms1_final_prescan_insn): Adjust for new insn types. Don't look
4695 backwards past a barrier.
4696 (ms1_override_options): Accept ms2 arch. Copy and reset delayed
4698 (struct branch_info, struct label_info): New.
4700 (ms1_add_branches, ms1_check_delay_slot, ms1_reorg_hazard): New.
4701 (ms1_machine_reorg): New.
4702 (TARGET_MACHINE_DEPENDENT_REORG): Override.
4703 * config/ms1/crtn.asm: Add nop for ms2 JAL hazard.
4704 * config/ms1/ms1.h (processor_type): Add PROCESSOR_MS2.
4705 (ASM_SPEC, LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Add ms2.
4708 2005-11-09 Per Bothner <per@bothner.com>
4709 Uros Bizjak <uros@kss-loka.si>
4712 * toplev.c (process_options): Initialize debug_hooks early
4713 in case lang_hooks.post_options ends up calling a debug_hook.
4715 2005-11-08 Jakub Jelinek <jakub@redhat.com>
4717 * dwarf2out.c (multiple_reg_loc_descriptor): Don't assume
4718 DBX_REGISTER_NUMBER being contiguous.
4720 2005-11-08 James A. Morrison <phython@gcc.gnu.org>
4721 Diego Novillo <dnovillo@redhat.com>
4724 * tree-vrp.c (register_edge_assert_for): Do not register
4725 always-false predicates.
4727 2005-11-08 Devang Patel <dpatel@apple.com>
4729 PR tree-optimization/23115
4730 * tree-if-conv.c (find_phi_replacement_condition): Check domninated_by
4733 2005-11-08 Joseph S. Myers <joseph@codesourcery.com>
4735 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include
4738 2005-11-08 Daniel Berlin <dberlin@dberlin.org>
4740 Fix PR tree-optimization/23382
4742 * tree-ssa-alias.c (compute_may_aliases): Call
4743 delete_old_heap_vars.
4744 * tree-dfa.c (referenced_var_remove): New function.
4745 * tree-ssa.c (delete_tree_ssa): Call delete_old_heap_vars.
4746 * tree-flow.h (referenced_var_remove): Add prototype.
4747 (delete_old_heap_vars): Ditto.
4748 * tree-ssa-structalias.c (heapvars): New variable.
4749 (oldheapvars): Ditto.
4750 (get_constraint_for): Put heap vars on heapvars list.
4751 (delete_old_heap_vars): New function.
4753 2005-11-08 Jason Merrill <jason@redhat.com>
4755 * tree.h (CALL_FROM_THUNK_P): Add CALL_EXPR_CHECK.
4757 2005-11-08 Uros Bizjak <uros@kss-loka.si>
4760 * reg-stack.c (reg_to_stack): Update register liveness also
4761 for flag_sched2_use_traces.
4763 2005-11-08 Alan Modra <amodra@bigpond.net.au>
4766 * config/rs6000/rs6000.c (rs6000_handle_option <OPT_m64>): Don't
4767 override prior explicit -mno-powerpc-gfxopt.
4769 2005-11-07 Eric Botcazou <ebotcazou@adacore.com>
4771 * expmed.c (extract_bit_field): Do not use insv/extv/extzv patterns
4772 if the bitsize is zero.
4773 * doc/md.texi (Standard Pattern Names): Document it.
4775 * config/ia64/ia64.c (ia64_pass_by_reference): Delete.
4776 (TARGET_PASS_BY_REFERENCE): Likewise.
4778 2005-11-07 Ian Lance Taylor <ian@airs.com>
4780 PR rtl-optimization/24683
4781 * config/i386/i386.c (legitimize_pic_address): If constant operand
4782 to PLUS is too large, put it in a register.
4784 2005-11-07 Jie Zhang <jie.zhang@analog.com>
4786 * configure.ac: Enable checking assembler dwarf2 support for bfin
4788 * configure: Regenerate.
4790 2005-11-07 Paolo Bonzini <bonzini@gnu.org>
4794 * config/rs6000/rs6000.c (easy_vector_splat_const, easy_vector_same,
4795 gen_easy_vector_constant_add_self): Delete.
4796 (vspltis_constant, easy_altivec_constant, gen_easy_altivec_constant):
4798 (output_vec_const_move): Use gen_easy_altivec_constant.
4799 (rs6000_expand_vector_init): Do not emit a set of a VEC_DUPLICATE.
4800 * config/rs6000/predicates.md (easy_vector_constant): Reorganize tests.
4801 (easy_vector_constant_add_self): Rewritten.
4802 * config/rs6000/rs6000-protos.h (easy_vector_splat_const,
4803 easy_vector_same, gen_easy_vector_constant_add_self): Remove prototype.
4804 (easy_altivec_constant, gen_easy_altivec_constant): Add prototype.
4805 * config/rs6000/altivec.md (easy_vector_constant_add_self splitters):
4806 Macroize and adjust for the other changes.
4808 2005-11-07 Paolo Bonzini <bonzini@gnu.org>
4812 * c-typeck.c (build_c_cast): Try using a shared constant, and see
4813 if TREE_OVERFLOW or TREE_CONSTANT_OVERFLOW really changed.
4815 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4817 PR rtl-optimization/23567
4818 * ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
4819 (noce_process_if_block): Don't do any optimizations except
4820 if (cond) x = x; if !set_b and write into orig_x may trap
4821 or fault. Remove the MEM_READONLY_P check.
4823 2005-11-06 Diego Novillo <dnovillo@redhat.com>
4826 * tree-vrp.c (fix_equivalence_set): New.
4827 (extract_range_from_assert): Call it.
4829 2005-11-05 Ian Lance Taylor <ian@airs.com>
4832 * combine.c (apply_distributive_law): Don't distribute across a
4835 2005-11-05 Kazu Hirata <kazu@codesourcery.com>
4837 * c-typeck.c, config/i386/netware.h, config/m32c/cond.md,
4838 config/ms1/ms1.h, config/rs6000/predicates.md,
4839 config/s390/s390.c, params.def, postreload-gcse.c,
4840 tree-flow-inline.h, tree-ssa-operands.c, tree-vectorizer.c,
4841 tree-vrp.c, tree.c: Fix comment typos.
4842 * doc/invoke.texi: Fix typos.
4844 2005-11-05 Sebastian Pop <pop@cri.ensmp.fr>
4846 * lambda-code.c (lambda_transform_legal_p): Use DDR_NUM_DIST_VECTS
4847 for testing whether the data_dependence_relation contains distance
4848 vectors. Iterate over all distance vectors of the ddr.
4849 * lambda.h: Define a vec of lambda_vector pointers.
4850 * tree-data-ref.c (dump_data_dependence_relation,
4851 dump_data_dependence_direction): Iterate over all distance and
4852 direction vectors of the ddr.
4853 (initialize_data_dependence_relation): Initialize DDR_DIR_VECTS and
4855 (build_classic_dist_vector, build_classic_dir_vector): Push a set
4856 of distance/direction vectors instead of a single one.
4857 * tree-data-ref.h (dir_vects, dist_vects): Replace dir/dist
4858 lambda_vectors with a vec of lambda_vectors.
4859 (DDR_DIR_VECT, DDR_DIST_VECT): Redefined as operations on vec.
4860 (DDR_DIR_VECTS, DDR_DIST_VECTS, DDR_NUM_DIR_VECTS,
4861 DDR_NUM_DIST_VECTS): New.
4862 * tree-loop-linear.c (gather_interchange_stats): Test for the
4863 existence of distance vectors only after having checked that there
4864 is a dependence. Iterate over all distance vectors of the ddr.
4865 (linear_transform_loops): Use dump_data_dependence_relation.
4866 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Test for
4867 distance vectors using DDR_NUM_DIST_VECTS. Iterate over all the
4868 distance vectors of the ddr.
4870 2005-11-05 Bernd Schmidt <bernd.schmidt@analog.com>
4872 * config/bfin/bfin.c (n_dregs_to_save, n_pregs_to_save,
4873 expand_prologue_reg_save, expand_epilogue_reg_restore): New argument
4874 IS_INTHANDLER; all callers changed.
4875 (n_regs_saved_by_prologue): Take interrupt handler attributes into
4877 (do_link, do_unlink): New argument ALL; all callers changed.
4878 (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
4879 If function isn't leaf, save and restore all registers.
4880 (bfin_function_ok_for_sibcall): Only true if not an interrupt or
4883 2005-11-05 Jan Hubicka <jh@suse.cz>
4885 PR rtl-optimization/23490
4886 * doc/invoke.texi (max-predicted-iterations, max-cse-insns,
4887 max-flow-memory-location): Document.
4888 * flow.c: Include params.h
4889 (MAX_MEM_SET_LIST_LEN): Kill.
4890 (add_to_mem_set_list): Use new param.
4891 * cse.c (cse_basic_block): Replace 1000 by new param.
4892 * params.def (PARAM_MAX_PREDICTED_ITERATIONS, PARAM_MAX_CSE_INSNS,
4893 PARAM_MAX_FLOW_MEMORY_LOCATIONS): New.
4894 * predict.c (predict_loops): Use new param.
4895 * predict.def (MAX_PRED_LOOP_ITERATIONS): Remove.
4897 * ipa-inline.c (cgraph_decide_inlining_of_small_function,
4898 cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
4899 Do not hold memory returned by cgraph_node_name across other call.
4901 2005-11-04 Hans-Peter Nilsson <hp@axis.com>
4904 * config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
4907 2005-11-04 Jeff Law <law@redhat.com>
4910 * doc/invoke.texi: Document max-jump-thread-duplication-stmts PARAM.
4911 * tree-ssa-dom.c: Include params.h.
4912 (thread_across_edge): If there are too many statements in the
4913 target block, then do not thread through it.
4914 * Makefile.in (tree-ssa-dom.o): Depend on $(PARAMS_H).
4915 * params.def (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS): New PARAM.
4917 2005-11-03 Diego Novillo <dnovillo@redhat.com>
4920 * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Use
4921 TODO_update_ssa instead of TODO_update_ssa_no_phi.
4923 2005-11-04 Sebastian Pop <pop@cri.ensmp.fr>
4926 * tree-scalar-evolution.c (instantiate_parameters_1,
4927 instantiate_parameters, resolve_mixers): Compute the size of an
4928 expression to be instantiated and give up the instantiation if the
4929 size exceeds PARAM_SCEV_MAX_EXPR_SIZE.
4931 2005-11-04 Richard Guenther <rguenther@suse.de>
4933 * tree-flow.h (ref_contains_indirect_ref): Rename to
4934 array_ref_contains_indirect_ref.
4935 * tree-flow-inline.h (ref_contains_indirect_ref): Likewise.
4936 (array_ref_contains_indirect_ref): Make comment match the code
4938 (ref_contains_array_ref): Likewise.
4939 * tree-ssa-structalias.c (find_func_aliases): Remove call to
4940 ref_contains_indirect_ref.
4941 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
4942 Rename calls to ref_contains_indirect_ref.
4944 2005-11-04 Paul Brook <paul@codesourcery.com>
4946 * config/arm/arm.c (arm_load_pic_register): Pass extra reg to
4947 gen_pic_add_dot_plus_four and gen_pic_add_dot_plus_eight.
4948 (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
4949 * config/arm/arm.md: Use match_operand in peephole input templates
4950 and match_dup in peephole output templates.
4952 2005-11-04 Daniel Jacobowitz <dan@codesourcery.com>
4954 * config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
4957 2005-11-04 Mark Mitchell <mark@codesourcery.com>
4958 Daniel Jacobowitz <dan@codesourcery.com>
4960 * longlong.h (add_ssaaaa): Clobber condition code register
4962 (sub_ddmmss): Likewise.
4963 (umul_ppmm): Likewise.
4965 2005-11-04 Daniel Jacobowitz <dan@codesourcery.com>
4966 Paul Brook <paul@codesourcery.com>
4967 Phil Blundell <pb@reciva.com>
4969 * configure.ac: Add test for ARM TLS support.
4970 * configure: Regenerated.
4971 * config/arm/arm-protos.h (legitimize_tls_address)
4972 (arm_tls_referenced_p, tls_mentioned_p)
4973 (arm_output_addr_const_extra): New prototypes.
4974 (thumb_legitimize_pic_address): Delete.
4975 * config/arm/arm.c: Include "gt-arm.h".
4976 (enum tls_reloc): New.
4977 (arm_cannot_copy_insn_p, arm_tls_symbol_p, load_tls_operand)
4978 (pcrel_constant_p, get_tls_get_addr, arm_load_tp)
4979 (arm_call_tls_get_addr, legitimize_tls_address)
4980 (arm_tls_referenced_p, arm_tls_operand_p_1, tls_mentioned_p)
4981 (arm_init_tls_builtins, arm_emit_tls_decoration)
4982 (arm_output_addr_const_extra): New functions.
4983 (TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM)
4984 (TARGET_HAVE_TLS): Define.
4985 (target_thread_pointer): New.
4986 (arm_override_options): Handle -mtp=.
4987 (legitimize_pic_address): Ignore UNSPECs.
4988 (arm_legitimate_address_p, thumb_legitimate_address_p): Handle PC
4990 (arm_legitimize_address, thumb_legitimize_address): Handle TLS.
4991 (tls_get_addr_libfunc): New variable.
4992 (symbol_mentioned_p, label_mentioned_p): Ignore UNSPEC_TLS.
4993 (arm_init_builtins): Call arm_init_tls_builtins.
4994 (arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER.
4995 (arm_encode_section_info): Call default_encode_section_info.
4996 * config/arm/arm.h (TARGET_HARD_TP, TARGET_SOFT_TP): Define.
4997 (enum arm_tp_type): New.
4998 (target_thread_pointer): Add declaration.
4999 (LEGITIMATE_CONSTANT_P): Handle TLS.
5000 (LEGITIMATE_PIC_OPERAND_P): Handle TLS.
5001 (OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra.
5002 (enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER.
5003 * config/arm/arm.md: Add UNSPEC_TLS.
5004 (movsi): Handle TLS.
5005 (pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for
5007 (tls_load_dot_plus_eight): New insn and a peephole to create it.
5008 (load_tp_hard, load_tp_soft): New insns.
5009 * arm.opt: Add -mtp=.
5010 * doc/invoke.texi (ARM Options): Document -mtp.
5012 2005-11-04 Daniel Jacobowitz <dan@codesourcery.com>
5014 * config/arm/lib1funcs.asm: Don't include "libunwind.S".
5015 * config/arm/libunwind.S: Include "lib1funcs.asm".
5016 * config/arm/t-bpabi (LIB1ASMFUNCS): Remove _unwind.
5017 (LIB2ADDEH): Add libunwind.S.
5018 (LIB2ADDEHDEP): Add lib1funcs.asm.
5019 * mklibgcc.in: Handle asm files in libgcc_eh.a.
5021 2005-11-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
5024 * c.opt: Add a -lang-fortran option.
5025 * c-opts.c: Add a lang_fortran flag.
5026 (c_common_init_options): Handling the -lang-fortran option.
5027 (c_common_handle_option): Add a case for Fortran options in
5028 preprocessing. Remove cases for -ffixed-form and
5029 -ffixed-line-length. Add a case for -lang-fortran.
5031 2005-11-03 David Edelsohn <edelsohn@gnu.org>
5033 * config/rs6000/rs6000.c: Include params.h
5034 (optimization_options): Set max-grow-copy-bb-insns default to 16.
5035 (bdesc_2arg): Delete vpkuhss and vpkuwss.
5036 * config/rs6000/altivec.md (UNSPEC_VPKUHSS): Delete.
5037 (UNSPEC_VPKUWSS): Delete.
5038 (altivec_vpkuhss): Delete.
5039 (altivec_vpkuwss): Delete.
5040 * config/rs6000/rs6000.md (plus_eqsi): Remove optimize_size from
5042 (neg_eq0<mode>): Remove final condition.
5043 (neg_eq<mode>): Remove condition and split-condition.
5045 2005-11-04 Alan Modra <amodra@bigpond.net.au>
5047 * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
5048 Use associated print macros.
5050 2005-11-03 Joseph S. Myers <joseph@codesourcery.com>
5053 * diagnostic.c (diagnostic_set_info_translated): New function.
5054 (diagnostic_set_info): Use it. Add comment.
5055 * diagnostic.h (diagnostic_set_info_translated): Declare.
5057 2005-11-03 Eric Botcazou <ebotcazou@adacore.com>
5059 * dwarf2asm.c (dw2_force_const_mem): Add new parameter 'public'.
5060 On USE_LINKONCE_INDIRECT platforms, build a DECL_ONE_ONLY indirect
5061 reference only if 'public' is true.
5062 (dw2_output_indirect_constant_1): On USE_LINKONCE_INDIRECT platforms,
5063 emit the .hidden directive only if the indirect reference is public.
5064 (dw2_asm_output_encoded_addr_rtx): Add new parameter 'public'.
5065 Pass it to dw2_force_const_mem.
5066 * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): New param 'public'.
5067 * dwarf2out.c (output_cfi): Adjust calls to above function.
5068 (output_call_frame_info): Likewise.
5069 * except.c (output_ttype): Pass TREE_PUBLIC of the type_info object
5070 as 'public' argument to dw2_asm_output_encoded_addr_rtx.
5072 2005-11-03 Zdenek Dvorak <dvorakz@suse.cz>
5074 PR tree-optimization/24483
5075 * tree-ssa-loop-ivopts.c (aff_combination_add_elt): Move rest
5076 field to elts if possible.
5078 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5081 * gimplifier.c (gimplify_expr): Create a temporary for lvalue
5084 2005-11-03 Daniel Berlin <dberlin@dberlin.org>
5086 Fix PR tree-optimization/24351
5088 * tree-ssa-structalias.c (struct variable_info): Add
5090 (get_varinfo_fc): New function to follow collapsing.
5091 (new_var_info): Set collapsed_to to NULL.
5092 (dump_constraint): Follow collapsing.
5093 (build_constraint_graph): Handle collapsing.
5094 (do_simple_structure_copy): Return false if something bad
5096 (collapse_rest_of_var): New function.
5097 (do_structure_copy): Collapse if do_simple_structure_copy returns
5100 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5103 * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
5104 expressions to a statement list instead of gimplifying them.
5106 2005-11-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5108 PR rtl-optimization/23585
5109 * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
5110 that can't trap plus a constant integer, if the mode has zero size.
5112 2005-11-03 Ulrich Weigand <uweigand@de.ibm.com>
5115 * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
5117 ("*insv<mode>_reg_extimm"): Likewise.
5119 2005-11-03 Joseph S. Myers <joseph@codesourcery.com>
5122 * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
5123 c_common_type_for_mode returns an unnamed type.
5125 2005-11-02 Richard Henderson <rth@redhat.com>
5129 * dwarf2out.c (dwarf2out_reg_save_reg): New.
5130 (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
5131 * function.c (assign_parms): Use calls.internal_arg_pointer.
5132 (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
5134 * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
5135 (TARGET_CALLS): Add it.
5136 * target.h (struct gcc_target): Add calls.internal_arg_pointer.
5137 * targhooks.c (default_internal_arg_pointer): New.
5138 * targhooks.h (default_internal_arg_pointer): Declare.
5139 * tree.h (dwarf2out_reg_save_reg): Declare.
5140 * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
5141 * config/i386/i386.c (dbx_register_map): Add return column.
5142 (dbx64_register_map, svr4_dbx_register_map): Likewise.
5143 (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
5144 (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
5145 (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
5146 (ix86_save_reg): Save force_align_arg_pointer.
5147 (ix86_emit_save_regs): Make regno unsigned.
5148 (ix86_emit_save_regs_using_mov): Likewise.
5149 (ix86_expand_prologue): Handle force_align_arg_pointer.
5150 (ix86_expand_epilogue): Likewise.
5151 * config/i386/i386.h: (dbx_register_map): Update.
5152 (dbx64_register_map, svr4_dbx_register_map): Update.
5153 (struct machine_function): Add force_align_arg_pointer.
5154 * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
5155 (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
5156 (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
5158 2005-11-02 Jan Hubicka <jh@suse.cz>
5161 * i386.md: Add peep2 for simplyfing array accesses.
5163 2005-11-02 Ulrich Weigand <uweigand@de.ibm.com>
5166 * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
5167 * config/s390/s390.c (s390_decompose_shift_count): New function.
5168 (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
5169 (print_shift_count_operand): Use s390_decompose_shift_count.
5170 * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
5171 Use s390_decompose_shift_count. Do not accept any non-base hard regs.
5173 2005-11-02 Ulrich Weigand <uweigand@de.ibm.com>
5176 * loop.c (loop_givs_rescan): Use force_operand to expand
5179 2005-11-02 Andrew Pinski <pinskia@physics.uc.edu>
5182 * fold-const.c (build_range_check): Use unsigned when signed
5183 overflow is undefined also. If etype is subtype, make sure that
5184 the subtraction is in the supertype.
5186 2005-11-02 Richard Henderson <rth@redhat.com>
5189 * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
5192 2005-11-01 Richard Henderson <rth@redhat.com>
5195 * loop.c (scan_loop): Do not propagate computations to a hard
5196 register destination with SMALL_REGISTER_CLASSES.
5198 2005-11-01 Joseph S. Myers <joseph@codesourcery.com>
5200 * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
5201 costs for MULT inside PLUS or MINUS.
5203 2005-11-01 Bob Wilson <bob.wilson@acm.org>
5205 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
5206 (TRAMPOLINE_SIZE): Round up to 60.
5207 * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
5209 2005-10-31 James E. Wilson <wilson@specifix.com>
5212 * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
5213 ifdef. Put ifdefs around call in gen_subprogram_die.
5214 (compute_frame_pointer_to_cfa_displacement): Likewise.
5215 (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
5218 PR rtl-optimization/17356
5219 * cfgrtl.c (purge_dead_edges): Undo last change. In EDGE_EH code,
5220 add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
5222 2005-10-31 Jan Hubicka <jh@suse.cz>
5225 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
5228 * i386.c (legitimize_pic_address): Deal with large immediates.
5231 * coverage.c (coverage_checksum_string): Fix code to stip random seeds
5232 from symbol names while computing checkup.
5235 * predict.c (predict_loops): Do not estimate more than
5236 MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
5237 * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
5239 2005-10-31 Andrew MacLeod <amacleod@redhat.com>
5241 PR tree-optimization/19097
5242 * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
5244 2005-10-31 J"orn Rennecke <joern.rennecke@st.com>
5246 * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
5248 2005-10-31 Andrew Pinski <pinskia@physics.uc.edu>
5251 * tree-inline.c (setup_one_parameter): If the init_stmt
5252 is NULL, don't insert the statement.
5254 2005-10-30 Jan Hubicka <jh@suse.cz>
5256 PR tree-optimization/24172
5257 * tree-inline.c (copy_body_r): Unshare the substituted value first.
5259 2005-10-30 Hans-Peter Nilsson <hp@bitrange.com>
5261 * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
5262 constants for hosts with long != 32 bits.
5264 2005-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
5267 * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
5269 2005-10-28 Aldy Hernandez <aldyh@redhat.com>
5271 * config/ms1/ms1.h (TARGET_MS1_64_001): New.
5272 (TARGET_MS1_16_002): New.
5273 (TARGET_MS1_16_003): New.
5275 * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
5276 ("*decrement_and_branch_until_zero_no_clobber"): New.
5277 Add corresponding splitter for decrement_and_branch_until_zero
5279 Key all decrement_and_branch_until_zero patterns off of
5282 2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
5285 * tree-complex.c (extract_component): Treat RESULT_DECL
5286 like the rest of the decls.
5288 2005-10-25 Eric Botcazou <ebotcazou@adacore.com>
5290 * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
5291 indirect call to _mcount if the function needs a static chain.
5293 2005-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
5294 Caroline Tice <ctice@apple.com>
5296 PR rtl-optimization/24460
5297 * dwarf2out.c (have_switched_text_sections): New boolean variable.
5298 (dwarf2out_switch_text_section): Set it to true instead of
5299 incrementing separate_line_info_table_in_use.
5300 (output_loc_list): Additionally test have_switched_text_sections.
5301 (output_ranges): Likewise.
5302 (dwarf2out_finish): Likewise.
5303 * varasm.c (assemble_start_function): Do not call
5304 insert_section_boundary_note.
5305 (assemble_end_function): If flag_reorder_blocks_and_partition,
5306 switch to the function's section before emitting the .size directive.
5307 * bb-reorder.c (insert_section_boundary_note): Staticify.
5308 (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
5309 * output.h (insert_section_boundary_note): Delete.
5311 2005-10-24 Andrew Pinski <pinskia@physics.uc.edu>
5314 * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
5315 instead of pointer equality when comparing types.
5317 2005-10-24 James E. Wilson <wilson@specifix.com>
5319 * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
5320 add_dependence_list_and_free calls.
5322 2005-10-24 Steven Bosscher <stevenb@suse.de>
5324 * contrib.texi: Add the names of the LLNL folks who donated
5325 Cray pointer support for gfortran.
5327 2005-10-24 Steven Bosscher <stevenb@suse.de>
5329 PR tree-optimization/24225
5330 * profile.c (branch_prob): Look from end to start through a
5331 basic block when looking for a locus.
5333 2005-10-24 Richard Henderson <rth@redhat.com>
5335 * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
5337 (hppa_expand_prologue): Likewise.
5339 2005-10-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5341 * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
5342 (NO_DEFERRED_PROFILE_COUNTERS): Define.
5343 * pa.h (NO_PROFILE_COUNTERS): Define.
5344 * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
5345 (funcdef_nos): New vector to hold label numbers of deferred profile
5347 (output_deferred_profile_counters): New function.
5348 (hppa_profile_hook): Push label number onto funcdef_nos.
5349 (pa_hpux_file_end): Call output_deferred_profile_counters if
5350 NO_DEFERRED_PROFILE_COUNTERS is false.
5352 * pa-protos.h (get_deferred_plabel): New prototype.
5353 * pa.c (get_plabel): Rename to get_deferred_plabel. Return plabel.
5355 (output_call): Adjust calls.
5357 2005-10-24 Alan Modra <amodra@bigpond.net.au>
5359 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
5360 peculiarity of GOT/TOC section usage.
5362 2005-10-23 Andrew Pinski <pinskia@physics.uc.edu>
5365 * c-common.c (constant_string_class_name): Add documentation.
5367 2005-10-23 Kaz Kojima <kkojima@gcc.gnu.org>
5370 * recog.c (peephole2_optimize): Increment peep2_current_count
5371 only when the slot is empty.
5373 2005-10-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5376 * except.c (output_function_exception_table): Call
5377 assemble_external_libcall if we need a personality function.
5379 2005-10-21 Eric Botcazou <ebotcazou@libertysurf.fr>
5381 PR rtl-optimization/24460
5382 * bb-reorder.c (fix_crossing_unconditional_branches): Do not
5383 set the basic block for barriers.
5385 2005-10-21 Janis Johnson <janis187@us.ibm.com>
5387 * var-tracking.c (vt_initialize): Initialize post.
5389 2005-10-21 Devang Patel <dpatel@apple.com>
5392 * c-common.c (vector_types_convertible_p): Check vector element type.
5394 2005-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
5396 * config/sh/sh.c (prepare_move_operands): Handle the address
5397 constant which is a tls symbolic address plus a constant.
5399 2005-10-21 Andrew Pinski <pinskia@physics.uc.edu>
5402 * gcc.c (main): Use the correct counter for erroring out
5403 about mulitple files.
5405 2005-10-21 Alan Modra <amodra@bigpond.net.au>
5408 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
5409 use r2 for 64-bit tls .got access.
5411 2005-10-21 Paolo Bonzini <bonzini@gnu.org>
5413 * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
5416 2005-10-20 Steven Bosscher <stevenb@suse.de>
5418 PR tree-optimization/24307
5419 * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
5421 2005-10-20 Alexandre Oliva <aoliva@redhat.com>
5424 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
5426 * varasm.c (find_decl_and_mark_needed): After cgraph global info
5427 is ready, stop marking functions, but still mark variables.
5429 2005-10-20 Richard Guenther <rguenther@suse.de>
5432 * fold-const.c (invert_truthvalue): Handle COND_EXPR with
5435 2005-10-20 Eric Botcazou <ebotcazou@libertysurf.fr>
5437 PR rtl-optimization/23585
5438 * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
5439 (rtx_addr_can_trap_p): ... here. Invoke rtx_addr_can_trap_p_1.
5440 (may_trap_p_1): New predicate extracted from...
5441 (may_trap_p): ... here. Invoke may_trap_p_1.
5442 (may_trap_or_fault_p): New predicate.
5443 * rtl.h (may_trap_or_fault_p): Declare it.
5444 * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
5445 instead of may_trap_p.
5446 (steal_delay_list_from_fallthrough): Likewise.
5447 (fill_simple_delay_slots): Likewise.
5448 (fill_slots_from_thread): Likewise.
5449 * function.c (pad_to_arg_alignment): Rework comment about
5450 SPARC_STACK_BOUNDARY_HACK.
5451 * config/sparc/sparc.h: Likewise.
5453 2005-10-19 Adrian Straetling <straetling@de.ibm.com>
5455 * config/s390/s390.c (s390_expand_insv): New.
5456 * config/s390/s390-protos.h (s390_expand_insv): Declare.
5457 * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
5458 ("icm_hi"): Remove mode attribute.
5459 ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
5461 ("*extracthi", "*extractqi"): Remove.
5462 (extv<mode>", "*extzv<mode>"): New.
5463 ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
5464 "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
5466 2005-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5468 * cfgexpand.c (discover_nonconstant_array_refs_r,
5469 discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
5470 (tree_expand_cfg): Call discover_nonconstant_array_refs.
5471 * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
5472 discover_nonconstant_array_refs.
5474 2005-10-19 Steven Bosscher <stevenb@suse.de>
5477 * c-decl.c (pop_scope): Don't warn about an unused variable
5478 if it is marked with TREE_NO_WARNING.
5479 (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
5480 somenow mismatch and olddecl is to be replaced.
5482 2005-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
5485 * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
5486 whether registers live on the edge can be saved/restored.
5488 2005-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
5490 * config/sh/sh.c (fixup_mova): Skip notes.
5492 2005-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5494 * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
5495 * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
5496 (s390_can_eliminate): Handle BASE_REGNUM elimination.
5497 (s390_initial_elimination_offset): Likewise.
5498 (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
5499 register on TARGET_ZARCH targets.
5500 * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
5501 (INITIAL_FRAME_POINTER_OFFSET): Remove.
5502 (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
5503 (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
5505 2005-10-19 Andreas Krebbel <krebbel1@de.ibm.com>
5507 * config/s390/s390.md: Comment describing output modifiers updated.
5508 * config/s390/s390.c (print_operand): Likewise.
5510 2005-10-19 Andreas Krebbel <krebbel1@de.ibm.com>
5512 * config/s390/s390.c (override_options): Added check for -mstack-size
5514 * doc/invoke.texi: Mention that limit in the documenation.
5516 2005-10-18 Paolo Bonzini <bonzini@gnu.org>
5519 * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
5521 2005-10-18 Daniel Berlin <dberlin@dberlin.org>
5523 Fix PR tree-optimization/24231
5525 * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
5526 (compute_avail): Ditto.
5528 2005-10-18 Richard Henderson <rth@redhat.com>
5531 * config/i386/i386.c (legitimate_constant_p): Check
5532 SYMBOL_REF_TLS_MODEL directly. Don't fallthru to SYMBOL_REF
5534 (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
5535 (legitimate_pic_address_disp_p): Reorg CONST checking to make
5536 sure SYMBOL_REF_TLS_MODEL is tested. Test SYMBOL_REF_TLS_MODEL
5538 (print_operand_address): Likewise.
5539 * config/i386/predicates.md (x86_64_immediate_operand): Test
5540 SYMBOL_REF_TLS_MODEL properly inside CONST.
5541 (x86_64_zext_immediate_operand): Likewise.
5542 (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
5543 initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
5544 * config/i386/i386-protos.h: Remove predicates.md entries.
5546 2005-10-18 Danny Smith <dannysmith@users.sourceforge.net>
5548 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
5549 Check that elements of TYPE_METHODS are FUNCTION_DECLs.
5551 2005-10-17 Alexey Starovoytov <alexey.starovoytov@sun.com>
5552 Ian Lance Taylor <ian@airs.com>
5555 * fold-const.c (fold_widened_comparison): Do not allow range based
5556 constant folding when right operand cannot be unwidened.
5558 2005-10-17 Richard Henderson <rth@redhat.com>
5560 * builtins.c (expand_builtin_synchronize): Build a new-style asm
5561 with a memory clobber.
5563 2005-10-17 James E Wilson <wilson@specifix.com>
5565 PR rtl-optimization/17356
5566 * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
5567 checking for EDGE_EH.
5569 2005-10-17 Eric Botcazou <ebotcazou@libertysurf.fr>
5571 * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
5572 the slot on an even boundary for any type with 16-byte alignment.
5574 2005-10-17 Hans-Peter Nilsson <hp@axis.com>
5577 * md.texi (Modifiers) <%>: Clarify that % doesn't work
5578 after register allocation.
5580 2005-10-17 DJ Delorie <dj@redhat.com>
5582 * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
5585 2005-10-17 Nathan Sidwell <nathan@codesourcery.com>
5588 * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
5591 2005-10-17 Kaz Kojima <kkojima@gcc.gnu.org>
5593 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
5594 to 2 if it's already non-zero.
5595 (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
5596 is set and warn about it if flag_schedule_insns is 1.
5598 2005-10-17 Paul Woegerer <paul.woegerer@nsc.com>
5600 * config/crx/crx.md: Compare-and-branch instructions need to
5603 2005-10-17 Uros Bizjak <uros@kss-loka.si>
5606 * config/i386/i386.md (*pushdi2_rex64 splitter)
5607 (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
5608 (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
5609 flow2 pass only when (optimize > 0 && flag_peephole2).
5611 2005-10-16 Andrew Pinski <pinskia@physics.uc.edu>
5614 * gcc.c (have_c): New static variable.
5616 (process_command): Remove declation of have_c.
5617 Set have_o to 1 when handling -o.
5618 (main): Add a fatel error if there are multiple
5619 files specified and -o and -c/-S is passed witout
5620 -combine or multiple languages.
5622 2005-10-16 Daniel Berlin <dberlin@dberlin.org>
5624 Fix PR tree-optimization/22444
5625 * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
5626 Assert that we don't hit something with subvars.
5627 (setup_pointers_and_addressables): Don't add things with subvars,
5628 because we'll already process the subvars for aliasing purposes.
5630 2005-10-16 Hans-Peter Nilsson <hp@axis.com>
5633 * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
5634 ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
5635 ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
5636 ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
5637 ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
5638 swapped, alternatives for the R constraint.
5641 * builtins.c (get_builtin_sync_mode): Make unlimited
5642 mode_for_size request.
5644 2005-10-15 Richard Henderson <rth@redhat.com>
5646 * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
5647 (gimplify_expr): ... here.
5648 (gimplify_compound_lval): Use it in initial scan loop. Allow
5649 fb_lvalue in base expression.
5651 2005-10-15 Richard Henderson <rth@redhat.com>
5654 * builtins.c (expand_builtin_trap): Export.
5655 * expr.h (expand_builtin_trap): Declare.
5656 * expr.c (expand_assignment): Emit a trap for integral offsets
5657 from registers that weren't reduced to bitpos.
5659 * tree-cfg.c (mark_array_ref_addressable_1): Remove.
5660 (mark_array_ref_addressable): Remove.
5661 * tree-flow.h (mark_array_ref_addressable): Remove.
5662 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
5664 2005-10-15 James E Wilson <wilson@specifix.com>
5667 * sched-deps.c (add_dependence_list): New arg UNCOND. Fix all callers.
5668 (add_dependence_list_and_free): Likewise.
5669 (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
5672 2005-10-15 Diego Novillo <dnovillo@redhat.com>
5676 * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
5677 sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
5679 (vrp_visit_phi_node): Only prevent infinite iterations when
5680 the previous result and the new result are both VR_RANGEs.
5682 2005-10-15 Ranjit Mathew <rmathew@gcc.gnu.org>
5684 * tree-into-ssa.c (mark_def_sites): Correct minor typo in
5687 2005-10-14 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5690 * c-parser.c (c_parser_for_statement): Use location of RID_FOR
5693 2005-10-14 Per Bothner <per@bothner.com>
5695 PR preprocessor/21250
5696 * c-ppoutput.c (print_line): Print internal line 0 as 1.
5698 2005-10-14 Nathan Sidwell <nathan@codesourcery.com>
5701 * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
5702 overflow flags. Refactor some conditionals.
5704 2005-10-13 Andrew Pinski <pinskia@physics.uc.edu>
5707 * tree-dfa.c (add_referenced_var): Only look at decls which
5708 have TREE_CONSTANT or TREE_READONLY set instead of if
5709 !TREE_PUBLIC or !TREE_CONSTANT.
5711 2005-10-13 James E Wilson <wilson@specifix.com>
5713 * doc/invoke.texi: For -x, add f95-cpp-input.
5714 * doc/install.texi: For --enable-languages doc, change f95 to fortran.
5716 2005-10-12 Sebastian Pop <pop@cri.ensmp.fr>
5718 PR tree-optimization/24262
5719 * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
5720 in loop all the time.
5722 2005-10-12 Richard Henderson <rth@redhat.com>
5725 * tree.h (DECL_TRANSPARENT_UNION): Remove.
5726 * function.c (assign_parm_find_data_types): Don't support it.
5727 * print-tree.c (print_node): Likewise.
5728 * c-common.c (handle_transparent_union_attribute): Likewise.
5729 Use build_duplicate_type.
5730 * tree-inline.c (remap_type_1): Split out of remap_type;
5731 properly remap aggregate fields.
5732 (build_duplicate_type): New.
5733 * doc/extend.texi (Variable Attributes): Remove documentation
5734 for transparent_union.
5736 2005-10-12 Eric Botcazou <ebotcazou@libertysurf.fr>
5739 * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
5740 (gen_stack_pointer_dec): Likewise.
5742 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5746 * target.h (struct gcc_target): Add valid_dllimport_attribute_p
5748 (struct cxx): Add adjust_class_at_definition target hook.
5749 * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
5750 defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
5751 (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
5752 hook_void_tree. Add to TARGET_CXX.
5753 * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
5755 (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
5756 * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
5757 instead of attribute. Check for dllexport override. Warn if
5758 inconsistent dll linkage. Don't lose old dllimport if decl has
5759 had address referenced. Tweak lookup of dllimport atribute.
5760 (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
5761 for target specific rules. Don't add dllimport attribute if
5762 DECL_DECLARED_INLINE_P. Set DECL_DLLIMPORT_P when adding
5763 dllimport attribute.
5764 (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
5765 * varasm.c (initializer_constant_valid_p): Replace
5766 DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
5770 * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
5771 'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
5772 (i[34567]86-*-mingw32*): Likewise.
5774 * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
5775 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
5777 * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
5778 C++-specific code. Change return value to bool.
5779 (i386_pe_dllimport_p): Likewise.
5780 (associated_type): Simplify and make language-independent
5781 (i386_pe_encode_section_info): Replace override of ambiguous
5782 dllimport symbol refs with a gcc_assert.
5783 (i386_pe_valid_dllimport_attribute_p): Define.
5784 * config/i386/winnt-cxx.c: New file. Define C++ versions of
5785 i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
5786 i386_pe_adjust_class_at_definition.
5787 * config/i386/winnt-stubs.c: New file. Define stub versions of
5788 lang-specific functions.
5789 * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
5790 i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
5791 i386_pe_adjust_class_at_definition.
5792 (i386_pe_valid_dllimport_attribute_p): Declare.
5793 * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
5794 (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
5795 * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
5798 * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
5799 dllimport attribute with test of DECL_DLLIMPORT_P.
5801 2005-10-12 Adrian Straetling <straetling@de.ibm.com>
5803 * combine.c (make_extraction): Correct offset computation.
5805 2005-10-12 Hans-Peter Nilsson <hp@axis.com>
5807 * config/cris/t-linux (LIMITS_H_TEST): Define.
5809 2005-10-12 Richard Henderson <rth@redhat.com>
5812 * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
5814 2005-10-12 Richard Guenther <rguenther@suse.de>
5816 * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
5818 2005-10-12 Nathan Sidwell <nathan@codesourcery.com>
5821 * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
5822 DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
5825 2005-10-12 Richard Guenther <rguenther@suse.de>
5828 * varasm.c (output_constant): Correct typo from previous
5831 2005-10-11 Ian Lance Taylor <ian@airs.com>
5833 PR rtl-optimization/13931
5834 * combine.c: Revert patch of 2003-05-14, and:
5835 (try_combine): Only set elim_i1 and elim_i2 if the destination is
5836 completely killed in the appropriate insn.
5837 (distribute_notes): Don't skip multiple hard register test for
5838 elim_i1 and elim_i2.
5840 2005-10-11 Richard Henderson <rth@redhat.com>
5843 * c-typeck.c (convert_for_assignment): Use build_constructor_single
5844 to initialize a transparent union instead of a nop_expr.
5846 2005-10-11 Richard Henderson <rth@redhat.com>
5848 * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
5849 * tree-ssa-dce.c: Include tree-scalar-evolution.h.
5850 (tree_ssa_dce_loop): Call scev_reset.
5853 * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
5854 * tree-ssa-dce.c: Include cfgloop.h.
5855 (tree_ssa_dce_loop, pass_dce_loop): New.
5856 * tree-pass.h (pass_dce_loop): Declare it.
5857 * passes.c (init_optimization_passes): Use it.
5859 2005-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
5862 * convert.c (convert_to_real): Revert 2005-10-05 patch.
5863 Only apply the optimization for rounding builtins if the inner
5864 cast is also an extension.
5866 2005-10-11 Andrew Pinski <pinskia@physics.uc.edu>
5869 * tree-ssa-ccp.c (execute_fold_all_builtins): Call
5870 mark_new_vars_to_rename instead of update_stmt.
5872 2005-10-11 Bernd Schmidt <bernd.schmidt@analog.com>
5874 * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
5876 2005-10-11 Jakub Jelinek <jakub@redhat.com>
5878 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
5879 for setting MMX register to 0 rather than mmx.
5881 2005-10-10 Mark Mitchell <mark@codesourcery.com>
5883 * toplev.c (check_global_declaration_1): Robustify.
5885 2005-10-10 Steve Ellcey <sje@cup.hp.com>
5888 * configure.ac: Move gas check from mips specific case to common case.
5889 Do check for GNU as for mips*-*-* and *-*-hpux* targets.
5890 * configure: Regenerate
5891 * doc/install.texi: Update.
5893 2005-10-10 Eric Botcazou <ebotcazou@libertysurf.fr>
5896 * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
5898 2005-10-10 Maciej W. Rozycki <macro@linux-mips.org>
5900 * gcc.c (do_spec_1): Accept numeric characters in file name
5903 2005-10-10 Nick Clifton <nickc@redhat.com>
5905 * config/arm/arm.c: Remove extraneous whitespace. Remove comment
5906 describing the deleted arm_gen_rotated_half_load function.
5908 2005-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
5910 * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
5913 2005-10-09 Daniel Jacobowitz <dan@codesourcery.com>
5915 * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
5917 * config/arm/t-linux-eabi (LIB1ASMFUNCS)
5918 (EXTRA_MULTILIB_PARTS): Define.
5919 * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
5920 (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
5921 (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
5922 * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
5923 (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
5924 (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
5926 2005-10-09 Zdenek Dvorak <dvorakz@suse.cz>
5928 PR tree-optimization/24226
5929 * tree-cfg.c (remove_bb): Clean up unreachable loops.
5930 * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
5931 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
5934 2005-10-09 Eric Botcazou <ebotcazou@libertysurf.fr>
5936 * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
5938 2005-10-08 Andrew Pinski <pinskia@physics.uc.edu>
5941 * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
5942 Rewrite for no need for the early clobber.
5944 2005-10-08 Kazu Hirata <kazu@codesourcery.com>
5946 Merge from csl-arm-branch:
5947 2005-09-07 Paul Brook <paul@codesourcery.com>
5948 * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
5951 2005-04-30 Paul Brook <paul@codesourcery.com>
5952 * config/arm/bpabi.h (TARGET_DEFAULT): Define.
5953 * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
5955 2005-03-07 Daniel Jacobowitz <dan@codesourcery.com>
5956 * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
5957 (arm_override_options): Use TARGET_AAPCS_BASED.
5958 * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
5959 (PTRDIFF_TYPE): Use int for AAPCS.
5960 (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
5961 * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
5962 (DEFAULT_SHORT_ENUMS): Delete.
5963 * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
5965 2004-12-15 Daniel Jacobowitz <dan@codesourcery.com>
5966 * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
5967 * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
5968 * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
5970 2004-12-03 Mark Mitchell <mark@codesourcery.com>
5971 * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
5973 2004-11-22 Mark Mitchell <mark@codesourcery.com>
5974 * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
5976 2004-11-19 Mark Mitchell <mark@codesourcery.com>
5977 * config.gcc (arm*-*-linux-gnueabi): Add it.
5978 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
5980 (TARGET_OS_CPP_BUILTINS): Likeiwse.
5981 * config/arm/linux-eabi.h: New file.
5982 * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
5983 (LINUX_TARET_LINK_SPEC): Likewise.
5984 (LINK_SPEC): Use it.
5985 * config/arm/t-linux-eabi: New file.
5987 2005-10-08 Steven Bosscher <stevenb@suse.de>
5990 * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
5992 (PARAM_SMS_DFA_HISTORY): Likewise.
5994 2005-10-08 Kazu Hirata <kazu@codesourcery.com>
5997 * calls.c (mem_overlaps_already_clobbered_arg_p): New.
5998 (load_register_parameters): Call it.
5999 (check_sibcall_argument_overlap_1): Likewise.
6000 (store_one_arg): Likewise.
6002 2005-10-07 James E. Wilson <wilson@specifix.com>
6004 * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
6005 DImode not VECINT24 for operand 2.
6008 * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
6012 * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
6013 fr_spill): Use destination_operand for operand 0.
6015 2005-10-07 DJ Delorie <dj@redhat.com>
6017 * varasm.c (output_constant): Limit error to expanding
6020 2005-10-07 Richard Guenther <rguenther@suse.de>
6023 * fold-const.c (fold_binary): Fix operand types during folding
6024 of X op (A, Y). Evaluation order of the side-effects of
6025 X and A are frontend-defined, so ensure we honour that even for
6026 tcc_comparison class operands; eased by removing duplicate code.
6028 2005-10-07 Steve Ellcey <sje@cup.hp.com>
6030 * stor-layout.c (layout_type): Do not allow alignment of array
6031 elements to be greater than their size.
6033 2005-10-07 Steve Ellcey <sje@cup.hp.com>
6035 * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
6037 (hppa*-*-linux*): Ditto.
6038 (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
6039 * config/host-hpux.c: New.
6040 * config/x-hpux: New.
6041 * config/pa/x-hpux: Remove.
6042 * config/pa/x-linux: Remove.
6043 * config/pa/pa-host.c: Remove.
6045 2005-10-07 Jeff Law <law@redhat.com>
6047 * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
6048 determine whether or not to try and thread outgoing edges.
6050 2005-10-07 David Edelsohn <edelsohn@gnu.org>
6052 * config/rs6000/rs6000.md (eqsi_power): New.
6053 (neg_eq0si): Add TARGET_POWER to final condition.
6056 2005-10-06 Richard Henderson <rth@redhat.com>
6058 * config/rs6000/rs6000.c: Revert last change.
6060 2005-10-06 Richard Henderson <rth@redhat.com>
6062 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
6063 (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
6065 2005-10-06 Andrew Pinski <pinskia@physics.uc.edu>
6069 * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
6070 out return_label and naked_return_label.
6072 2005-10-06 Daniel Berlin <dberlin@dberlin.org>
6074 * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
6077 2005-10-06 Richard Henderson <rth@redhat.com>
6080 * tree-inline.c (declare_return_variable): Handle modify_dest not
6083 2005-10-06 Daniel Berlin <dberlin@dberlin.org>
6085 Fix PR tree-optimization/22488
6086 * tree-ssa-structalias.c (check_for_overlaps): New function.
6087 (create_variable_info_for): Use it.
6089 2005-10-06 Richard Henderson <rth@redhat.com>
6092 * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
6093 (dwarf2out_start_source_file): Print it.
6095 2005-10-06 Geoffrey Keating <geoffk@apple.com>
6097 * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
6099 2005-10-06 Richard Henderson <rth@redhat.com>
6102 * mode-switching.c (optimize_mode_switching): Clear transp bit
6103 for block with incomming abnormal edges.
6105 * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
6106 (fpscr_set_from_mem): Use them.
6107 * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
6108 (fpscr postinc splitters): Rewrite as peephole2+split.
6110 2005-10-06 David Edelsohn <edelsohn@gnu.org>
6112 * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
6113 (eq<mode>_compare): Same.
6115 2005-10-06 Richard Guenther <rguenther@suse.de>
6117 PR tree-optimization/24238
6118 * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
6120 2005-10-06 Daniel Jacobowitz <dan@codesourcery.com>
6122 * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
6123 here. Use AC_PATH_PROG for environment variables instead of
6125 * configure.ac: Update calls to gcc_AC_CHECK_TOOL. Use it for
6127 * configure: Regenerated.
6129 2005-10-06 Richard Earnshaw <richard.earnshaw@arm.com>
6132 * arm.md (call): If the address isn't a SYMBOL_REF or a register,
6133 then force it into a register.
6134 (call_value): Likewise.
6136 2005-10-06 Richard Henderson <rth@redhat.com>
6139 * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
6140 under pass_vectorize. Clear TODO_ggc_collect from the dce pass
6141 under pass_vectorize.
6143 2005-10-05 Devang Patel <dpatel@apple.com>
6146 * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
6147 handling constants. Check NAMESPACE_DECL context for constants.
6149 2005-10-05 Eric Christopher <echristo@apple.com>
6151 * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
6153 2005-10-05 Richard Henderson <rth@redhat.com>
6156 * tree-cfg.c (mark_array_ref_addressable_1): New.
6157 (mark_array_ref_addressable): New.
6158 * tree-flow.h (mark_array_ref_addressable): Declare.
6159 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
6161 2005-10-05 Andrew Pinski <pinskia@physics.uc.edu>
6165 * reload.c (subst_reloads): When adding a REG_LABEL to a
6166 jump instruction, also update JUMP_LABEL.
6168 2005-10-05 David Edelsohn <edelsohn@gnu.org>
6170 * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
6171 * bb-reorder.c (copy_bb_p): Use it.
6172 * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
6174 2005-10-05 Richard Henderson <rth@redhat.com>
6177 * toplev.c (process_options): Warn about unsupported combinations
6178 of unwind tables and omit-frame-pointer.
6179 * config/i386/i386.c (override_options): Similarly. Enable
6180 accumulate-outgoing-args if not explicitly disabled.
6182 2005-10-05 Steve Ellcey <sje@cup.hp.com>
6184 * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
6185 Handle big endian vs. small endian.
6186 (vec_initv2sf): Handle big endian vs. small endian.
6187 (*vec_extractv2sf_1): Ditto.
6189 2005-10-05 Dale Johannesen <dalej@apple.com>
6191 * convert.c (convert_to_real): Don't convert
6192 (float)floor(double d) to floorf((float)d).
6194 2005-10-05 Daniel Jacobowitz <dan@codesourcery.com>
6196 * config/arm/arm.md (insv): Use gen_int_mode in more places.
6198 2005-10-05 Andrew MacLeod <amacleod@redhat.com>
6200 PR tree-optimization/18587
6201 * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
6202 (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
6203 build_vuses): Change to VEC type.
6204 (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
6205 opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
6206 opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
6207 opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
6208 (get_name_decl): New. Return DECL_UID of base variable.
6209 (operand_build_cmp): New. qsort comparison routine.
6210 (operand_build_sort_virtual): New. Sort virtual build vector.
6211 (init_ssa_operands, fini_ssa_operands): Use VEC routines.
6212 (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
6213 (FINALIZE_BASE): Use get_name_decl.
6214 (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
6215 finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
6216 (start_ssa_stmt_operands, append_def, append_use, append_vuse,
6217 append_v_may_def, append_v_must_def): Replace opbuild_* routines with
6218 direct VEC_* manipulations.
6219 (build_ssa_operands): Call operand_build_sort_virtual.
6220 (copy_virtual_operand, create_ssa_artficial_load_stmt,
6221 add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
6222 with direct VEC_* manipulations.
6223 * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
6224 with direct VEC manipulations.
6226 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
6228 PR tree-optimization/21419
6229 PR tree-optimization/24146
6230 PR tree-optimization/24151
6232 * c-typeck.c (readonly_error): Handle USE being lv_asm.
6233 (build_asm_expr): Call it if outputs are read-only.
6234 * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
6236 2005-10-05 Billy Biggs <billy.biggs@gmail.com>
6237 Paolo Bonzini <bonzini@gnu.org>
6241 * doc/extend.texi (x86 Built-ins): Document that -msse and friends
6242 enable the instructions and not just the built-ins.
6243 * doc/invoke.texi (x86 Options): Likewise.
6245 2005-10-04 Geoffrey Keating <geoffk@apple.com>
6247 * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
6249 * doc/invoke.texi (Option Summary): Correct spelling
6250 of -mmacosx-version-min.
6252 2005-10-04 Devang Patel <dpatel@apple.com>
6254 * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
6257 2005-10-04 Steve Ellcey <sje@cup.hp.com>
6259 * tree-vect-transform.c (vect_create_epilog_for_reduction):
6260 Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
6262 2005-10-04 Adrian Straetling <straetling@de.ibm.com>
6264 * config/s390/s390.md ("TDSI","DP"): New mode macros.
6265 ("TE","tg"): New mode attributes.
6266 ("sync_compare_and_swap<mode>"): Replace with a define_expand.
6267 ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
6268 ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
6269 dword_mode and one for GPRmode.
6271 2005-10-04 Ian Lance Taylor <ian@airs.com>
6273 PR preprocessor/13726
6274 * c-ppoutput.c (cb_include): Add comments parameter, and print out
6275 any comments passed in.
6277 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
6279 * tree.c (annotate_with_file_line): Fix typo.
6281 2005-10-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6284 * builtins.c (fold_builtin_memcmp): When constructing the pointer
6285 type used to access data in the inlined length == 1 case, use
6286 build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
6287 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
6289 2005-10-04 Uros Bizjak <uros@kss-loka.si>
6291 * config/i386/i386.h (TARGET_FISTTP): Enable also for
6292 TARGET_SSE3 and only for TARGET_80387.
6293 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
6294 (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
6295 Do not depend on TARGET_80387.
6297 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
6299 * tree.c (last_annotated_node): Change type to location_t*.
6300 (annotate_with_file_line): Reflect the change of
6301 last_annotated_node type.
6303 2005-10-04 Richard Guenther <rguenther@suse.de>
6306 * c-decl.c (grokdeclarator): Don't write to fields
6309 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
6312 * c-decl.c (finish_decl): Use set_user_assembler_name even for
6314 * varasm.c (make_decl_rtl): If a register variable does not
6315 have a set user assmbler name, error out.
6316 Decode the asmspec is now name+1 bypassing '*'.
6318 2005-10-04 Steven Bosscher <stevenb@suse.de>
6320 PR tree-optimization/23049
6321 * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
6322 of a COND_EXPR is folded before calling fold on the whole rhs of a
6323 conditional assignment.
6324 * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
6325 document that a COND_EXPR may appear there.
6327 2005-10-03 Diego Novillo <dnovillo@redhat.com>
6330 * tree-vrp.c (extract_range_from_assert): If the new numeric
6331 range created out of the assertion contradicts the existing
6332 numeric range of the ASSERT_EXPR variable, make the new range
6335 2005-10-03 Kaz Kojima <kkojima@gcc.gnu.org>
6337 * config/sh/sh.c (sh_register_move_cost): Add case for moving
6338 from T_REGS to FP register class.
6340 2005-10-03 Richard Henderson <rth@redhat.com>
6343 * tree-nested.c (convert_nl_goto_reference): Lookup a translation
6344 before creating a new one.
6346 2005-10-03 David Edelsohn <edelsohn@gnu.org>
6348 * config/rs6000/t-aix43 (LDFLAGS): New.
6349 * config/rs6000/t-aix52 (LDFLAGS): New.
6351 2005-10-03 Ian Lance Taylor <ian@airs.com>
6353 * gimplify.c (find_single_pointer_decl_1): New static function.
6354 (find_single_pointer_decl): New static function.
6355 (internal_get_tmp_var): For a formal variable, set restrict base
6356 information if appropriate.
6357 * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
6359 * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
6360 (DECL_GET_RESTRICT_BASE): Define.
6361 (SET_DECL_RESTRICT_BASE): Define.
6362 (decl_restrict_base_lookup): Declare.
6363 (decl_restrict_base_insert): Declare.
6364 (struct tree_decl_with_vis): Add based_on_restrict_p field.
6365 * tree.c (restrict_base_for_decl): New static variable.
6366 (init_ttree): Initialize restrict_base_for_decl.
6367 (copy_node_stat): Copy restrict base information.
6368 (decl_restrict_base_lookup): New function.
6369 (decl_restrict_base_insert): New function.
6370 (print_restrict_base_statistics): New static function.
6371 (dump_tree_statistics): Call print_restrict_base_statistics.
6373 2005-10-02 Diego Novillo <dnovillo@redhat.com>
6376 * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
6377 case of anti-ranges.
6379 2005-10-02 Andrew Pinski <pinskia@physics.uc.edu>
6382 * c-typeck.c (tagged_tu_seen): Rename to ...
6383 (tagged_tu_seen_cache): this and add val field.
6384 (comptypes): Move functional to comptypes_internal
6385 and free tagged_tu_seen.
6386 (comptypes_internal): New function and call comptypes_internal
6387 instead of comptypes. Speed up by sibcalling
6388 tagged_types_tu_compatible_p.
6389 (alloc_tagged_tu_seen): New function
6390 (free_all_tagged_tu_seen_up_to): New function.
6391 (tagged_types_tu_compatible_p): Return the val of the seen two
6393 Add that the two types are the same to tagged_tu_seen_base
6394 if they are and call comptypes_internal instead of comptypes.
6395 <case UNION_TYPE>: Speed up common type where the fields are
6397 (function_types_compatible_p): Call comptypes_internal instead of
6399 (type_lists_compatible_p): Likewise.
6400 (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
6402 2005-10-02 Matthias Klose <doko@debian.org>
6404 * doc/invoke.texi: Fix typo and speling error.
6406 2005-10-01 Richard Henderson <rth@redhat.com>
6408 * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
6410 2005-10-01 Mark Mitchell <mark@codesourcery.com>
6412 * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
6413 using --start-group and --end-group.
6415 2005-10-01 Diego Novillo <dnovillo@redhat.com>
6417 * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
6418 FIXME note regarding quirky semantics.
6420 2005-10-01 Diego Novillo <dnovillo@redhat.com>
6423 * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
6424 non-null range as a last resort.
6426 2005-10-01 James A. Morrison <phython@gcc.gnu.org>
6427 Diego Novillo <dnovillo@redhat.com>
6430 * tree-vrp.c (extract_range_from_assert): For !=
6431 assertions, only build an anti-range if LIMIT is a
6432 single-valued range.
6434 2005-09-30 Richard Earnshaw <richard.earnshaw@arm.com>
6436 * arm.md (movqi): On thumb when optimizing, handle loading from
6437 memory by describing this as taking a subreg of a zero-extended load
6438 into an SImode register.
6441 2005-09-30 Daniel Jacobowitz <dan@codesourcery.com>
6443 * reload1.c (merge_assigned_reloads): Do not change any
6444 RELOAD_FOR_OUTPUT_ADDRESS reloads.
6446 2005-09-30 Geoffrey Keating <geoffk@apple.com>
6448 * Makefile.in (LIPO_FOR_TARGET): Define.
6449 (STRIP_FOR_TARGET): Define.
6451 * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
6452 before creating new ones. Do symlinks before creating the actual
6455 * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
6456 to work out which multilibs are actually being built.
6458 2005-09-30 Kazu Hirata <kazu@codesourcery.com>
6460 * tree-vect-transform.c, config/ms1/ms1.md,
6461 config/s390/s390.c, config/v850/v850.md: Fix comment typos.
6462 Follow spelling conventions.
6463 * doc/invoke.texi, doc/md.texi: Fix typos.
6465 2005-09-30 Andrew Macleod <amacleod@redat.com>
6467 PR tree-optimization/21430
6468 * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
6469 use operands, and set stmt pointer if need be.
6470 (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
6471 tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
6474 2005-09-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6477 * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
6479 2005-09-29 Mark Mitchell <mark@codesourcery.com>
6481 * optabs.c (expand_binop): Initialize first_pass_p.
6483 2005-09-29 Jakub Jelinek <jakub@redhat.com>
6486 * c-decl.c (c_write_global_declarations_1): If any
6487 wrapup_global_declaration_2 call returned true, restart the loop.
6489 2005-09-29 Daniel Berlin <dberlin@dberlin.org>
6491 Fix PR tree-optimization/24117
6492 * tree-ssa-structalias.c (find_func_aliases): Strip nops
6493 before considering whether to use anyoffset.
6495 2005-09-29 Paolo Bonzini <bonzini@gnu.org>
6499 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
6501 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
6503 (swap_commutative_operands_with_target): New.
6505 2005-09-29 Paolo Bonzini <bonzini@gnu.org>
6508 * gimplify.c (gimplify_asm_expr): Raise an error if an output is
6511 2005-09-29 Steven Bosscher <stevenb@suse.de>
6513 PR tree-optimization/23911
6514 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
6515 and IMAGPART_EXPR too.
6517 2005-09-28 Mark Mitchell <mark@codesourcery.com>
6520 * expmed.c (expand_shift): Move logic to reverse rotation
6521 direction when rotating by constants ...
6522 * optabs.c (expand_binop): ... here.
6523 * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
6524 (ix86_rotrdi3): New pattern.
6525 (rotldi3): Handle 32-bit mode.
6526 (ix86_rotldi3): New pattern.
6528 2005-09-29 Alan Modra <amodra@bigpond.net.au>
6531 * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
6532 check for numbers that need no bit twiddle.
6534 2005-09-28 Geoffrey Keating <geoffk@apple.com>
6536 * config/rs6000/t-darwin8: Uncomment contents, allow -m64
6537 multilib to be built.
6539 * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
6540 (stage1-start): Delete old libgcc and libunwind before moving
6541 anything into the stage directory.
6542 (stage2-start): Likewise.
6543 (stage3-start): Likewise.
6544 (stage4-start): Likewise.
6545 (stageprofile-start): Likewise.
6546 (stagefeedback-start): Likewise.
6547 * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
6548 header in tm_file and CPU-specific t-darwin in tmake_file.
6549 (i[34567]86-*-darwin*): Don't change tm_file.
6550 (powerpc-*-darwin*): Don't change tm_file or tmake_file.
6551 * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
6552 shared library stub for target OS version.
6553 * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
6554 (SHLIB_LINK): Don't make SHLIB_SOLINK.
6555 (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
6556 (libgcc_s.%.dylib): New.
6558 (install-darwin-libgcc-stubs): New.
6559 (INSTALL_LIBGCC): New append.
6560 * config/i386/darwin-libgcc.10.4.ver: New.
6561 * config/i386/darwin-libgcc.10.5.ver: New.
6562 * config/i386/t-darwin: New.
6563 * config/rs6000/darwin-libgcc.10.4.ver: New.
6564 * config/rs6000/darwin-libgcc.10.5.ver: New.
6565 * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
6566 * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
6568 2005-09-28 Paul Brook <paul@codesourcery.com>
6570 * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
6573 2005-09-28 Richard Guenther <rguenther@suse.de>
6575 PR tree-optimization/23853
6576 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
6577 host_integerp to verify misalignment value.
6579 2005-09-28 Richard Henderson <rth@redhat.com>
6581 * builtins.c (get_builtin_sync_mode): New.
6582 (expand_builtin_sync_operation): Pass in mode argument.
6583 (expand_builtin_compare_and_swap): Likewise.
6584 (expand_builtin_lock_test_and_set): Likewise.
6585 (expand_builtin_lock_release): Likewise.
6586 (expand_builtin): Update to match.
6588 2005-09-28 Nick Clifton <nickc@redhat.com>
6590 * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
6591 formatting. Add check to PLUS case to ensure that the offset is
6592 within an acceptable range.
6594 * config/v850/v850.md (casesi): Disable the generation of the
6595 switch pattern as it is not being handled properly at the moment.
6597 * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
6598 for when the high words are identical.
6600 2005-09-27 Richard Henderson <rth@redhat.com>
6602 * pretty-print.c (pp_base_format): Fix typo for %>.
6604 2005-09-27 Daniel Berlin <dberlin@dberlin.org>
6605 Devang Patel <dpatel@apple.com>
6607 PR tree-optimization/23625
6608 * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
6609 LABEL_EXPR, assertion check.
6611 2005-09-27 J"orn Rennecke <joern.rennecke@st.com>
6613 * optabs.c (no_conflict_move_test): Check if a result of a
6614 to-be-moved insn would be clobbered by an originally
6617 2005-09-27 Jeff Law <law@redhat.com>
6619 * passes.c (init_optimization_passes): Replace copy propagation
6620 passes immediately after DOM with phi-only copy propagation
6621 pases. Add phi-only copy propagation pass after first DOM pass.
6622 * tree-pass.h (pass_phi_only_copy_prop): Declare.
6623 * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
6624 If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
6625 (execute_copy_prop): Accept new PHI_ONLY argument. Pass it along
6626 to init_copy_prop. Callers updated.
6627 (do_phi_only_copy_prop): New function.
6628 (pass_phi_only_copy_prop): New pass descriptor.
6630 2005-09-27 Nick Clifton <nickc@redhat.com>
6632 * libgcc2.c (__popcount_tab): Remove redundant prototype.
6634 2005-09-26 Jason Merrill <jason@redhat.com>
6637 * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
6639 * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
6641 2005-09-26 James E Wilson <wilson@specifix.com>
6643 * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
6644 copyright. Add gcc copyright plus libgcc exception.
6645 * config/ia64/crtfastmath.asm: Remove glibc copyright. Add gcc
6647 * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
6649 2005-09-26 Jeff Law <law@redhat.com>
6651 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
6652 about when to iterate.
6654 2005-09-23 Fariborz Jahanian <fjahanian@apple.com>
6657 * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
6658 for __complex__ double in -mcpu=G5 mode.
6660 2005-09-26 Sebastian Pop <pop@cri.ensmp.fr>
6662 PR tree-optimization/23942
6663 * Makefile.in (SCEV_H): Depends on PARAMS_H.
6664 * tree-scalar-evolution.c: Include params.h.
6666 (follow_ssa_edge, follow_ssa_edge_in_rhs,
6667 follow_ssa_edge_in_condition_phi_branch,
6668 follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
6669 Change return type to t_bool. Use a parameter to limit the size of
6670 trees that are walked before stopping
6671 (analyze_evolution_in_loop): Initialize the limit to 0.
6672 (follow_ssa_edge): Give up by returning t_dont_know if the limit
6673 exceeds PARAM_SCEV_MAX_EXPR_SIZE.
6675 2005-09-26 Uros Bizjak <uros@kss-loka.si>
6678 * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
6679 simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
6681 2005-09-26 Fariborz Jahanian <fjahanian@apple.com>
6683 * combine.c (make_extraction): Check for valid use of subreg.
6685 2005-09-26 Uros Bizjak <uros@kss-loka.si>
6688 * config/i386/i386.md ("*fistdi2_1"): New pattern.
6689 ("*fist<mode>2_1"): Use only HImode and SImode register operands.
6690 ("fist<mode>2_with_temp"): Use only register operands.
6692 2005-09-26 J"orn Rennecke <joern.rennecke@st.com>
6694 * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
6695 CALL_INSN_FUNCTION_USAGE.
6697 2005-09-26 Richard Guenther <rguenther@suse.de>
6700 * gcse.c: Include hashtab.h, define ldst entry hashtable.
6701 (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
6702 (ldst_entry): Use the hashtable instead of list-walking.
6703 (find_rtx_in_ldst): Likewise.
6704 (free_ldst_entry): Free the hashtable.
6705 (compute_ld_motion_mems): Create the hashtable.
6706 (trim_ld_motion_mems): Remove entry from hashtable if
6707 removing it from list.
6708 (compute_store_table): Likewise^2.
6709 (store_motion): Free hashtable in case we did not see
6712 2005-09-25 Kazu Hirata <kazu@codesourcery.com>
6714 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
6715 and arg1 if we are passing them to fold_build2.
6717 2005-09-25 Dan Nicolaescu <dann@ics.uci.edu>
6720 * config/i386/i386.c (ix86_function_regparm): Fix the test for
6723 2005-09-25 Richard Henderson <rth@redhat.com>
6725 * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
6726 SYMBOL_REF_TLS_MODEL to be correct.
6728 2005-09-24 Richard Henderson <rth@redhat.com>
6730 * ipa-type-escape.c (discover_unique_type): Remove dead code at
6731 end of function. Reindent.
6733 2005-09-24 Ian Lance Taylor <ian@airs.com>
6735 * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
6736 NEGATE_EXPR/BIT_NOT_EXPR case.
6738 2005-09-24 Richard Henderson <rth@redhat.com>
6740 * c-common.c (handle_mode_attribute): When not modifying in place,
6741 create subtypes for enumerations.
6742 (sync_resolve_return): Use TYPE_MAIN_VARIANT.
6743 * gimplify.c (create_tmp_from_val): Likewise.
6745 2005-09-24 Alexandre Oliva <aoliva@redhat.com>
6747 * config/i386/i386.md (*tls_global_dynamic_64,
6748 *tls_local_dynamic_base_64): Add missing mode to call.
6749 (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
6751 2005-09-24 Jan Hubicka <jh@suse.cz>
6753 * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
6754 (cgraph_clone_node): Likewise.
6755 * cgraph.h (cgraph_clone_edge): Update prototype.
6756 (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
6757 duplicated prototypes; add updating argument.
6758 * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
6759 * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
6761 (cgraph_mark_inline_edge): Likewise.
6762 (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
6763 (cgraph_flatten_node): Likewise.
6764 (cgraph_decide_recursive_inlining): Likewise.
6765 (cgraph_decide_inlining_of_small_function): Likewise.
6766 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6768 2005-09-23 David Edelsohn <edelsohn@gnu.org>
6769 Pete Steinmetz <steinmtz@us.ibm.com>
6771 * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
6772 (rldic.): Set type to "compare".
6774 (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR. Set type to
6775 mfjmpr for MFCTR/MFLR.
6776 (movdf_hardfloat64): Same.
6777 (movdf_softfloat64): Same. Correct order of store and move types.
6778 (movti_string): Set type to store_ux/load_ux.
6779 (load_multiple): Set type to load_ux.
6780 (store_multiple): Set type to store_ux.
6781 (movmemsi): Set type to store_ux.
6782 (output_cbranch direct_return): Set type to jmpreg.
6783 (stmw): Set type to store_ux.
6784 (lmw): Set type to load_ux.
6785 * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
6786 * config/rs6000/440.md (ppc440-store): Increase latency to 6.
6787 * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
6788 * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
6789 * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
6790 * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
6791 (rios1-fpstore): Increase latency to 3.
6792 * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
6793 * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
6795 2005-09-23 David Edelsohn <edelsohn@gnu.org>
6796 Andrew Pinski <pinskia@physics.uc.edu>
6798 * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
6799 operand2 constraint to "b".
6800 (sync_<fetchop_name>di_internal): Same.
6801 (sync_old_<fetchop_name>si_internal): Change operand3 constraint
6803 (sync_old_<fetchop_name>di_internal): Same.
6804 (sync_new_<fetchop_name>si_internal): Same.
6805 (sync_new_<fetchop_name>di_internal): Same.
6807 2005-09-23 J"orn Rennecke <joern.rennecke@st.com>
6810 * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
6811 case, define as macros.
6813 PR rtl-optimization/23837
6814 * optabs.c (no_conflict_move_test): Don't set must_stay for a
6815 clobber / clobber match between dest and p->first.
6817 * optabs.c (emit_libcall_block): Use no_conflict_move_test.
6818 (no_conflict_move_test): Update comments.
6820 2005-09-22 Ranjit Mathew <rmathew@gcc.gnu.org>
6822 * doc/install.texi: Update URL for Jacks.
6823 * doc/sourcebuild.texi: Likewise.
6825 2005-09-22 David Edelsohn <edelsohn@gnu.org>
6828 * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
6829 registers when choosing register preferences.
6830 (movdf_hardfloat64): Same.
6832 2005-09-22 Andreas Krebbel <krebbel1@de.ibm.com>
6834 * expmed.c (expand_shift): Don't use the target of the rotate as
6835 target for the first expanded shift insn.
6836 * testsuite/gcc.dg/20050922-1.c: Testcase added.
6838 2005-09-21 Zdenek Dvorak <dvorakz@suse.cz>
6840 PR tree-optimization/22438
6841 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
6842 preserved iv rhs rewriting specially.
6844 2005-09-21 Daniel Berlin <dberlin@dberlin.org>
6846 * tree-data-ref.c (analyze_array_indexes): Only estimate when
6847 estimate_only is true.
6848 * tree-flow.h (ref_contains_indirect_ref): New prototype.
6849 * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
6850 tree-ssa-structalias.c
6851 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
6852 ref_contains_indirect_ref.
6853 * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
6855 2005-09-21 DJ Delorie <dj@redhat.com>
6857 * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
6859 (mn10300_return_in_memory): Support variable size types also.
6860 (mn10300_pass_by_reference): Likewise.
6861 (mn10300_function_value): New.
6862 * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
6863 (FUNCTION_OUTGOING_VALUE): Likewise.
6864 * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
6865 * doc/invoke.texi: Document it.
6867 2005-09-21 Uros Bizjak <uros@kss-loka.si>
6870 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
6871 force integer op1 into register for XFmode compares.
6873 2005-09-21 Kazu Hirata <kazu@codesourcery.com>
6876 * expmed.c (alg_code): Add alg_impossible.
6877 (alg_hash_entry): Add cost.
6878 (synth_mult): Record alg_impossible in the hash table if
6879 multiplication by a given integer is impossble within the
6880 limit. Speed up using alg_impossible.
6882 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
6884 * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
6885 argument. Allow and set any offset if needs_anyoffset is passed
6887 (get_constraint_for): Add argument here too.
6889 (do_structure_copy): Pass NULL to get_constraint_for.
6890 (handle_ptr_arith): Ditto.
6891 (find_func_aliases): Ditto.
6893 2005-09-20 J"orn Rennecke <joern.rennecke@st.com>
6895 PR rtl-optimization/23898
6896 * output.h (get_attr_min_length): Declare.
6897 * final.c (get_attr_length_1): New function, broken out of:
6899 (get_attr_min_length): New function.
6900 * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
6901 (duplicate_computed_gotos): Likewise.
6902 * genattr.c (insn_min_length): Generate declaration.
6903 * genattrtab.c (min_fn, min_attr_value): New functions.
6904 (make_length_attrs): Generate insn_min_length.
6906 2005-09-20 Steve Ellcey <sje@cup.hp.com>
6908 * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
6910 2005-09-20 Richard Henderson <rth@redhat.com>
6912 PR tree-optimization/24059
6913 * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
6916 2005-09-20 Joseph S. Myers <joseph@codesourcery.com>
6918 * c.opt (fextended-identifiers): New.
6919 * c-opts.c (c_common_handle_option): Handle
6920 -fextended-identifiers.
6921 * doc/cpp.texi: Update documentation of extended identifiers.
6922 * doc/cppopts.texi (-fextended-identifiers): Document.
6924 2005-09-20 Jakub Jelinek <jakub@redhat.com>
6926 PR tree-optimization/23929
6927 * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
6930 PR tree-optimization/23818
6931 * tree-stdarg.c (execute_optimize_stdarg): Call
6932 calculate_dominance_info.
6934 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
6936 * tree-data-ref.c (get_number_of_iters_for_loop): New function.
6937 (analyze_siv_subscript_cst_affine): Add weak SIV test.
6938 (compute_overlap_steps_for_affine_1_2): Use
6939 get_number_of_iters_for_loop.
6940 (analyze_subscript_affine_affine): Check whether difference is
6942 Use get_number_of_iters_for_loop.
6943 Check whether overlap occurs outside of bounds.
6944 (analyze_miv_subscript): Use get_number_of_iters_for_loop.
6946 2005-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
6948 * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
6949 base register if possible.
6951 2005-09-20 Zdenek Dvorak <dvorakz@suse.cz>
6953 PR tree-optimization/18463
6954 * tree-chrec.c (chrec_convert): Return fold_converted chrec if
6955 converting it directly is not possible.
6956 (chrec_convert_aggressive): New function.
6957 * tree-chrec.h (chrec_convert_aggressive): Declare.
6958 * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
6959 Fold chrec conversions aggressively if asked to.
6960 (instantiate_parameters): Modified because of changes in
6961 instantiate_parameters_1.
6963 2005-09-19 Richard Henderson <rth@redhat.com>
6965 * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
6966 (reduc_splus_v2df): New.
6968 2005-09-19 Richard Sandiford <richard@codesourcery.com>
6970 * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
6971 (ADDITIONAL_REGISTER_NAMES): Add missing comma. Remove final comma.
6973 2005-09-19 Richard Henderson <rth@redhat.com>
6975 * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
6978 2005-09-19 Richard Henderson <rth@redhat.com>
6980 * config/ia64/ia64.c (ia64_expand_widen_sum): New.
6981 (ia64_expand_dot_prod_v8qi): New.
6982 * config/ia64/ia64-protos.h: Update.
6983 * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
6984 widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
6985 sdot_prodv8qi, sdot_prodv4hi): New.
6986 (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
6988 2005-09-19 Richard Henderson <rth@redhat.com>
6991 * real.c (exact_real_truncate): Return false if the format cannot
6992 represent the number as a normal.
6994 * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
6995 for a memory source.
6997 2005-09-19 Dorit Nuzman <dorit@il.ibm.com>
6999 * tree-ssa-operands.c (swap_tree_operands): Export.
7000 * tree.h (swap_tree_operands): Declare.
7001 * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
7002 Call swap_tree_operands.
7004 2005-09-19 Richard Henderson <rth@redhat.com>
7006 * tree-flow.h (merge_alias_info): Declare.
7007 * tree-ssa-copy.c (merge_alias_info): Export.
7008 * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
7009 (vect_create_data_ref_ptr): Use create_iv directly.
7010 (vectorizable_load): Use correct types for integer constants.
7011 (vect_generate_tmps_on_preheader): Likewise.
7012 (vect_gen_niters_for_prolog_loop): Likewise.
7014 2005-09-19 Steven Bosscher <stevenb@suse.de>
7016 PR rtl-optimization/23943
7017 * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
7019 2005-09-18 Jan Hubicka <jh@suse.cz>
7021 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
7023 2005-09-18 Eric Botcazou <ebotcazou@adacore.com>
7025 * varasm.c (output_constant): Do not abort on conversions to union
7026 types between different sizes.
7028 2005-09-18 Richard Guenther <rguenther@suse.de>
7031 * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
7034 2005-09-18 Paul Brook <paul@codesourcery.com>
7036 * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
7038 2005-09-17 Richard Henderson <rth@redhat.com>
7040 * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
7041 * tree-ssa-loop.c (pass_vect_dce): Remove.
7042 * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
7045 2005-09-17 Richard Henderson <rth@redhat.com>
7047 * tree-pass.h (pass_vect_dce): Declare.
7048 * passes.c (init_optimization_passes): Add it.
7049 * tree-flow.h (tree_ssa_dce): Declare.
7050 * tree-ssa-dce.c (tree_ssa_dce): Export.
7051 * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
7052 (gate_tree_vectorize): ... here.
7053 (pass_vect_dce): New.
7055 2005-09-17 Jan Hubicka <jh@suse.cz>
7057 * except.c (struct eh_status): Turn region_array into vec.
7058 (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
7059 convert_from_eh_region_ranges, find_exception_handler_labels,
7060 current_function_has_exception_handlers, assign_filter_values,
7061 build_post_landing_pads, dw2_build_landing_pads,
7062 sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
7063 sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
7064 foreach_reachable_handler, can_throw_internal_1,
7065 convert_to_eh_region_ranges, verify_eh_tree): Update uses of
7067 (duplicate_eh_region_1): Update region_array.
7068 (duplicate_eh_regions): Resize region_array and avoid recomputing.
7070 2005-09-17 David Edelsohn <edelsohn@gnu.org>
7073 * expmed.c (expand_mult): Substitute simple register for op0 when
7076 2005-09-17 Richard Henderson <rth@redhat.com>
7078 * expr.c (emit_move_via_integer): Add force argument, pass it on
7079 to emit_move_change_mode. Update callers.
7080 (emit_move_complex): Pass true to new force argument.
7081 * function.c (expand_function_end): Move expand_eh_return call
7082 earlier. Merge sub-word complex values into a pseudo before
7083 copying to the return hard register.
7085 2005-09-17 Eric Botcazou <ebotcazou@adacore.com>
7087 * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
7088 between different sizes.
7090 2005-09-16 Paolo Bonzini <bonzini@gnu.org>
7094 * passes.c (init_optimization_passes): Register dump files for
7097 2005-09-16 Andreas Krebbel <krebbel1@de.ibm.com>
7099 * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
7100 * config/s390/s390.c (s390_overlap_p): New function.
7101 * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
7102 peephole2, "*xc" peephole2): Added overlap check to the peephole2
7105 2005-09-16 Richard Guenther <rguenther@suse.de>
7107 * ipa-pure-const.c (static_execute): Free auxiliar information.
7108 * ipa-type-escape.c (discover_unique_type): Free temporary key.
7109 * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
7111 2005-09-15 DJ Delorie <dj@redhat.com>
7113 * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
7115 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
7117 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
7119 (swap_commutative_operands_with_target): New.
7121 2005-09-15 Daniel Berlin <dberlin@dberlin.org>
7123 * tree-data-ref.c (analyze_array_indexes): Add estimate_only
7126 (estimate_iters_using_array): New function.
7127 * tree-data-ref.h (estimate_iters_using_array): Prototype
7128 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
7129 Use estimate_iters_using_array instead of analyze_array.
7131 2005-09-15 Eric Botcazou <ebotcazou@adacore.com>
7133 * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
7136 2005-09-15 Michael Matz <matz@suse.de>
7138 * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
7140 2005-09-14 Daniel Berlin <dberlin@dberlin.org>
7142 PR tree-optimization/23835
7143 * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
7144 (create_name_tags): Rewrite to be not O(num_ssa_names^2).
7146 2005-09-14 Richard Henderson <rth@redhat.com>
7148 * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
7149 (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
7151 2005-09-14 Andrew Pinski <pinskia@physics.uc.edu>
7153 * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
7154 in the ARRAY_TYPE case.
7156 2005-09-14 Eric Botcazou <ebotcazou@adacore.com>
7158 * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
7160 2005-09-14 Uros Bizjak <uros@kss-loka.si>
7163 * tree-vect-transform.c (vectorizable_operation): Return false for
7164 scalar shift operations and for vector shift operations with
7165 non-invariant shift arguments. Use scalar tree operand op1 as
7166 a shift operand when vector shift insn pattern uses scalar shift
7168 * Makefile.in (tree-vect-transform.o): Depend on recog.h.
7170 2005-09-14 Olivier Hainque <hainque@adacore.com>
7172 * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
7173 value if it has side-effects.
7175 2005-09-14 David Edelsohn <edelsohn@gnu.org>
7178 * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
7180 2005-09-14 Alan Modra <amodra@bigpond.net.au>
7182 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
7183 passed as NAME as if it were label at start of function code.
7185 2005-09-13 Kaz Kojima <kkojima@gcc.gnu.org>
7187 * config/sh/sh.md (*movv4sf_i): Add general register cases to
7190 2005-09-13 Andrew Pinski <pinskia@physics.uc.edu>
7192 * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
7193 as early clobber. Rewrite so the PIC register is not implicitly used.
7195 2005-09-13 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
7197 * tree.c (annotate_with_file_line): Compare line numbers before
7200 2005-09-13 Uros Bizjak <uros@kss-loka.si>
7203 * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
7204 (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
7206 2005-09-13 Ian Lance Taylor <ian@airs.com>
7208 * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
7209 than a HOST_WIDEST_INT to gen_doloop_begin.
7211 2005-09-13 Diego Novillo <dnovillo@redhat.com>
7213 * tree-dfa.c (dump_variable): Guard against NULL annotations.
7215 2005-09-13 Zdenek Dvorak <dvorakz@suse.cz>
7217 PR tree-optimize/23817
7218 * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
7220 2005-09-13 Alan Modra <amodra@bigpond.net.au>
7223 * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
7224 word before changing the stack pointer. Use gen_frame_mem for MEMs.
7225 Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
7226 (restore_stack_nonlocal): Likewise.
7227 (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
7229 2005-09-12 Ian Lance Taylor <ian@airs.com>
7232 * c.opt (ffriend-injection): New C++ option.
7233 * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
7234 (C++ Dialect Options): Document -ffriend-injection.
7236 2005-09-12 Josh Conner <jconner@apple.com>
7239 * ipa-reference.c (static_execute): Don't mark variables in
7240 named sections TREE_READONLY.
7242 2005-09-12 Alan Modra <amodra@bigpond.net.au>
7244 * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
7247 2005-09-12 Andrew Pinski <pinskia@physics.uc.edu>
7249 * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
7250 V_MUST_DEF instead of just the first_use_p.
7251 Don't mark the virtual variables for renaming on the statement which
7253 (pass_dse): Remove TODO_update_ssa.
7255 2005-09-12 J"orn Rennecke <joern.rennecke@st.com>
7258 * stor-layout.c (compute_record_mode): For records with a single
7259 field, actually check the field's mode size against the type size.
7261 * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
7262 registers for TARGET_SHMEDIA.
7263 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
7264 GENERAL_FP_REGS to GENERAL_DF_REGS. Add GENERAL_FP_REGS as union
7265 of GENERAL_REGS and FP_REGS.
7267 2005-09-12 Bernd Schmidt <bernd.schmidt@analog.com>
7269 * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
7271 2005-09-12 Alan Modra <amodra@bigpond.net.au>
7273 * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
7274 CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
7275 are omitted. Exclude stack_tie insn too.
7277 2005-09-11 David Edelsohn <edelsohn@gnu.org>
7279 PR rtl-optimization/23098
7280 * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
7282 * config/rs6000/rs6000.md (movdf splitter): Use
7283 const_double_operand predicate for TARGET_POWERPC64.
7284 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
7285 SYMBOL_REF method to ABI_V4.
7287 * config/rs6000/altivec.md (build_vector_mask_for_load): Use
7288 replace_equiv_address.
7289 * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
7290 rs6000_sr_alias_set and MEM_NOTRAP.
7291 (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
7293 2005-09-11 Eric Botcazou <ebotcazou@adacore.com>
7295 * tree.c (contains_placeholder_p) <tcc_expression>: Properly
7296 handle CALL_EXPR again.
7298 2005-09-11 Richard Earnshaw <richard.earnshaw@arm.com>
7300 * arm/predicates.md (alignable_memory_operand): Delete.
7302 2005-09-10 Richard Henderson <rth@redhat.com>
7305 * dbxout.c (dbxout_expand_expr): New.
7306 (dbxout_symbol): Use it.
7308 2005-09-10 Richard Earnshaw <richard.earnshaw@arm.com>
7310 * arm.c (arm_gen_rotated_half_load): Delete.
7311 (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
7312 (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
7313 (thumb_set_return_address): Likewise.
7314 (thumb_load_double_from_address): Use adjust_address.
7315 * arm.md (splits calling arm_gen_rotated_half_load): Delete.
7316 (extendhsisi2_mem, movhi_bytes): Use change_address.
7317 (movhi): Use widen_memory_access.
7318 (reload_out_df): Use replace_equiv_address.
7319 * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
7321 2005-09-09 Richard Henderson <rth@redhat.com>
7324 * dbxout.c: Include expr.h.
7325 (dbxout_global_decl): Don't suppress for DECL_RTL unset.
7326 (dbxout_symbol): Handle DECL_VALUE_EXPR.
7327 * Makefile.in (dbxout.o): Add EXPR_H.
7329 2005-09-09 Zdenek Dvorak <dvorakz@suse.cz>
7331 PR tree-optimization/23509
7332 * tree-cfg.c (replace_uses_by): Use replace_exp.
7333 * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
7334 pointers have name_mem_tag or type_mem_tag set.
7336 2005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
7338 * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
7339 CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
7340 of wrongly accessing operands.
7342 2005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
7344 * Makefile.in (tree-chrec.o): Depends on SCEV_H.
7345 * tree-chrec.c: Include tree-scalar-evolution.h.
7346 (chrec_convert): Instantiate the base and step before calling
7347 scev_probably_wraps_p that would fail on parametric evolutions.
7348 Collect all the fails into a single section failed_to_convert,
7349 print a diagnostic, and return chrec_dont_know instead of calling
7351 * tree-scalar-evolution.c (loop_closed_phi_def): New.
7352 (instantiate_parameters_1): Avoid instantiation of loop closed ssa
7354 (scev_const_prop): Don't replace the definition of a loop closed ssa
7355 phi node by itself, or by another loop closed ssa phi node.
7356 * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
7357 that base and step are defined.
7359 2005-09-09 Richard Guenther <rguenther@suse.de>
7362 * fold-const.c (fold_ternary): Check truth_value_p before
7363 calling invert_truthvalue.
7365 2005-09-09 Nick Clifton <nickc@redhat.com>
7367 * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
7368 * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
7369 dimension of these arrays.
7370 * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
7372 * longlong.h: Only provide a prototype for the __clz_tab[] array
7373 if this header has not been included from libgcc2.h.
7374 * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
7376 Provide prototypes for exported functions.
7377 Use the __clz_tab[] and __popcount_tab[] arrays provided by
7380 2005-09-08 Josh Conner <jconner@apple.com>
7384 * expr.c (expand_expr_addr_expr_1): Don't invoke
7385 expand_simple_binop for EXPAND_INITIALIZER.
7387 2005-09-08 Richard Henderson <rth@redhat.com>
7390 * toplev.c (wrapup_global_declaration_1): Split out ...
7391 (wrapup_global_declaration_2): ... from ...
7392 (wrapup_global_declarations): ... here. Return bool.
7393 (check_global_declaration_1): Split out ...
7394 (check_global_declarations): from here.
7395 (emit_debug_global_declarations): New.
7396 * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
7397 check_global_declaration_1, emit_debug_global_declarations): Declare.
7398 * c-decl.c (c_write_global_declarations_1): Don't create a vector
7399 of decls. Call wrapup_global_declaration_1,
7400 wrapup_global_declaration_2, check_global_declaration_1 directly.
7401 (c_write_global_declarations_2): New.
7403 (c_write_global_declarations): Call c_write_global_declarations_2.
7404 * langhooks.c (write_global_declarations): Call
7405 emit_debug_global_declarations.
7407 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
7408 remove decls that have DECL_RTL_SET_P.
7409 * passes.c (rest_of_decl_compilation): Invoke
7410 cgraph_varpool_finalize_decl for all but functions.
7412 2005-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
7414 * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
7415 the result of a conversion if the new min and max cannot be compared.
7417 2005-09-08 Andreas Krebbel <krebbel1@de.ibm.com>
7419 * config/s390/s390.c (s390_sr_alias_set): Variable removed.
7420 (override_options): Setting s390_sr_alias_set removed.
7421 (save_fpr, save_gprs): Set alias set to vararg or frame.
7422 (restore_fpr, restore_gprs, s390_emit_prologue): Replace
7423 s390_sr_alias_set with get_frame_alias_set ().
7424 (s390_gimplify_va_arg): Replace s390_sr_alias_set with
7425 get_varargs_alias_set ().
7427 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
7431 * c-parser.c (c_parser_objc_method_definition): If the next
7432 token is not "{", error out and don't start the function.
7434 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
7436 * tree-vrp.c (extract_range_from_expr): Move the check for non
7437 nullness after the check for gimple invariant.
7439 2005-09-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7441 * tree.c (host_integerp, tree_low_cst): Correct function comment.
7443 2005-09-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7446 * config/m32r.md (movmemsi_internal): Canonicalize order of
7447 operands in PLUS component of template.
7449 2005-09-07 Andreas Krebbel <krebbel1@de.ibm.com>
7451 * reload1.c (fixup_eh_region_note): Remove assertion.
7452 (fixup_abnormal_edges): Reverted removal of call to
7453 find_many_sub_basic_blocks made on 2005-08-31.
7455 2005-09-07 Richard Henderson <rth@redhat.com>
7457 * function.c (ARG_POINTER_CFA_OFFSET): Move ...
7458 * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
7459 (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
7460 * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
7461 rearrange for better packing.
7462 (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
7463 (lookup_cfa_1): Remove inline marker.
7464 (cfa_equal_p): Split out of ...
7465 (def_cfa_1): ... here. Use INVALID_REGNUM.
7466 (build_cfa_loc): Handle !cfa->indirect.
7467 (frame_pointer_cfa_offset): New.
7468 (dbx_reg_number): Assert register elimination performed; do
7469 leaf register remapping.
7470 (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
7471 (eliminate_reg_to_offset): New.
7472 (based_loc_descr): Remove can_use_fbreg argument. Use fbreg only
7473 for verifiably local stack frame addresses; re-base to CFA.
7474 (mem_loc_descriptor): Remove can_use_fbreg argument.
7475 (concat_loc_descriptor, loc_descriptor): Likewise.
7476 (containing_function_has_frame_base): Remove.
7477 (rtl_for_decl_location): Don't do register elimination or
7478 leaf register remapping here.
7479 (secname_for_decl): Split out from ..
7480 (add_location_or_const_value_attribute): ... here.
7481 (convert_cfa_to_loc_list): New.
7482 (compute_frame_pointer_to_cfa_displacement): New.
7483 (gen_subprogram_die): Use them.
7484 * tree.h (frame_base_decl): Remove.
7485 * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
7486 (prologue_stack_adjust): Remove.
7487 (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
7488 (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
7489 (set_frame_base_location): Remove.
7490 (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
7491 (dump_attrs_list, dump_dataflow_set): Use string concatenation.
7492 (vt_add_function_parameters): Don't eliminate_regs.
7493 (vt_initialize): Don't create frame_base_decl.
7495 2005-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
7497 * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
7498 version of GNU binutils for 4.x and later.
7500 2005-09-06 Mark Mitchell <mark@codesourcery.com>
7502 * ggc-page.c (ggc_push_context): Remove.
7503 (ggc_pop_context): Likewise.
7504 * ggc.h (ggc_push_context): Remove.
7505 (ggc_pop_context): Likewise.
7507 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
7510 * config/arc/arc.c (arc_output_function_epilogue): Update flags while
7511 returning from an interrupt handler.
7513 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
7516 * config/arc/arc.c (output_shift): Add check for loop count when
7519 2005-09-06 Steven Bosscher <stevenb@suse.de>
7521 * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
7523 (abs_replacement): Likewise.
7524 (pass_phiopt): Remove TODO_update_ssa.
7526 2005-09-06 Jakub Jelinek <jakub@redhat.com>
7529 * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
7530 if "return with no value, in function returning non-void" warning
7532 * tree-cfg.c (execute_warn_function_return): Don't look at
7533 RETURN_EXPRs with TREE_NO_WARNING set.
7536 * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
7537 for internal functions doesn't use registers used by global registers
7538 variables. Use fewer register parameters if there are global register
7541 2005-09-06 Olivier Hainque <hainque@adacore.com>
7542 Eric Botcazou <ebotcazou@adacore.com>
7545 * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
7546 when we would be extracting outside its bit span (bitpos+bitsize
7547 larger than its mode), possible with some VIEW_CONVERT_EXPRs from
7548 Ada unchecked conversions.
7550 2005-09-06 Steven Bosscher <stevenb@suse.de>
7552 * tree-ssa-pre.c (try_look_through_load): New function.
7553 (compute_avail): Use it to try to look through loads for some
7554 more useful expressions.
7556 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
7558 * simplify-rtx.c (simplify_binary_operation_1): Correct the
7559 condition for detecting cases like (a&a) and (a^a).
7561 2005-09-06 Keith Besaw <kbesaw@us.ibm.com>
7563 * common.opt: Add option ftree-vect-loop-version.
7564 * params.def: Add --param vect-max-version-checks.
7565 * doc/invoke.texi: Document ftree-vect-loop-version and
7566 --param vect-max-version-checks.
7567 * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
7568 may_misalign_stmts and defines for accessors.
7569 * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
7570 LOOP_VINFO_MAY_MISALIGN_STMTS.
7571 (destroy_loop_vec_info): VEC_free for
7572 LOOP_VINFO_MAY_MISALIGN_STMTS.
7573 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
7574 Update documentation.
7575 (vect_update_misalignment_for_peel): New.
7576 (vect_enhance_data_refs_alignment): Update to choose loop
7577 peeling or loop versioning if appropriate for the (potentially)
7578 unaligned data references in the loop.
7579 (vect_analyze_data_refs_alignment): Remove call to
7580 vect_enhance_data_refs_alignment so the checks can be done
7582 (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
7583 and move up call to vect_analyze_data_refs_alignment.
7584 * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
7585 (vect_transform_loop): Add call to loop_version.
7587 2005-09-06 Jakub Jelinek <jakub@redhat.com>
7589 PR rtl-optimization/23098
7590 * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
7591 * simplify-rtx.c (constant_pool_reference_p): New function.
7592 * rtl.h (constant_pool_reference_p): New prototype.
7593 * config/i386/i386.md (pushf split, mov[sdx]f split): Use
7594 constant_pool_reference_p in condition and
7595 avoid_constant_pool_reference in preparation statements.
7597 2005-09-06 Andreas Krebbel <krebbel1@de.ibm.com>
7599 * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
7600 STRICT_LOW_PART SETs.
7602 2005-09-06 Alan Modra <amodra@bigpond.net.au>
7605 * except.c (sjlj_emit_function_enter): Find the function begin
7606 note even when it's not in first basic block.
7608 2005-09-06 Kelley Cook <kcook@gcc.gnu.org>
7610 * acinclude.m4: Renamed from aclocal.m4. Delete AM_LANGINFO_CODESET,
7611 AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
7612 * aclocal.m4: Regenerate.
7614 2005-09-05 DJ Delorie <dj@redhat.com>
7616 * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
7619 2005-09-06 Kazu Hirata <kazu@codesourcery.com>
7621 * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
7622 config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
7623 config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
7624 Follow spelling conventions.
7625 * doc/invoke.texi: Follow spelling conventions.
7627 2005-09-05 J"orn Rennecke <joern.rennecke@st.com>
7629 * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
7630 * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
7631 * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
7633 2005-09-05 J"orn Rennecke <joern.rennecke@st.com>
7636 * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
7637 (output_stack_adjust): Use gen_tmp_stack_mem.
7638 (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
7639 (sh_set_return_address, sh_allocate_initial_value): Likewise.
7640 (sh_get_pr_initial_val): Likewise.
7641 (sh_builtin_saveregs): Use gen_frame_mem and change_address.
7642 (sh_initialize_trampoline): Likewise. Also use adjust_address.
7643 * sh.md (divsi_inv_m0): Use gen_const_mem.
7644 (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
7645 (movdf_i4+1): Use gen_tmp_stack_mem.
7646 (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
7647 (fpu_switch+2): Likewise.
7648 (movv4sf_i, movv16sf_i): Use adjust_address.
7649 (symGOT_load): Set MEM_NOTRAP_P bit.
7651 2005-09-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7654 * pa.c (emit_move_sequence): Fix typo in last change.
7656 2005-09-03 Jakub Jelinek <jakub@redhat.com>
7658 PR rtl-optimization/23454
7659 * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
7662 2005-09-03 Richard Henderson <rth@redhat.com>
7663 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7666 * pa.c (emit_move_sequence): Use replace_equiv_address instead of
7669 2005-09-02 Nicolas Pitre <nico@cam.org>
7671 * config/arm/arm.c (arm_legitimize_address): Limit the value passed
7672 to bit_count to 32 bits.
7674 2005-08-31 Mark Mitchell <mark@codesourcery.com>
7677 * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
7678 generating synthetic loads from volatile lvalues.
7680 005-09-02 Nick Clifton <nickc@redhat.com>
7682 * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
7683 __ctzhi2, __clzhi2): New functions.
7685 2005-09-02 Andrew Pinski <pinskia@physics.uc.edu>
7688 * tree-nested.c (struct var_map_elt): Mark with GTY.
7689 (struct nesting_info): Mark with GTY. Mark var_map's param is struct
7691 (lookup_field_for_decl): Allocate new element in GC memory.
7692 (lookup_tramp_for_decl): Likewise.
7693 (convert_nl_goto_reference): Likewise
7694 (create_nesting_tree): Allocate info in GC memory. Likewise for
7696 (free_nesting_tree): Free with ggc_free instead of free.
7697 (root): New static variable.
7698 (lower_nested_functions): Remove root as local variable. And zero out
7699 root at the end of the function.
7701 2005-09-02 J"orn Rennecke <joern.rennecke@st.com>
7703 PR rtl-optimization/20365
7704 * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
7705 to short. New member ix.
7706 (simplify_plus_minus_op_data_cmp): Break ties using ix member.
7707 (simplify_plus_minus): Initialize ix members before calling qsort.
7709 2005-09-02 Zdenek Dvorak <dvorakz@suse.cz>
7711 PR tree-optimization/23626
7712 * tree-cfg.c (replace_uses_by): Clean up eh info.
7714 2005-09-01 DJ Delorie <dj@redhat.com>
7716 * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
7719 2005-09-01 David Edelsohn <edelsohn@gnu.org>
7721 * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
7722 (rs6000_split_multireg_move): Use replace_equiv_address instead of
7725 2005-09-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
7727 * c-decl.c (diagnose_mismatched_decls): With -Wredundant-decls,
7728 do not issue warning for a variable definition following
7731 2005-09-01 Richard Henderson <rth@redhat.com>
7734 * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
7735 conversion to CONST_VECTOR.
7737 2005-09-01 Richard Henderson <rth@redhat.com>
7740 * reload1.c (reload_as_needed): Check !CALL_P before calling
7741 fixup_eh_region_note.
7742 * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
7744 2005-09-01 DJ Delorie <dj@redhat.com>
7746 * varasm.c (output_constant): Let the target resolve
7747 conversions of addresses to non-default pointer sizes.
7749 2005-09-01 Nicolas Pitre <nico@cam.org>
7751 * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
7752 to alow matching ARM pre-indexed addressing mode.
7753 (arm_override_options): Remove now irrelevant comment.
7755 2005-09-01 Phil Edwards <phil@codesourcery.com>
7757 * config.gcc (i*86-wrs-vxworks): Update. Split out vxworksae target.
7758 * config/i386/t-vxworks: Update multilibs for VxWorks 6 and RTP mode.
7759 * config/i386/vxworks.h: Likewise.
7760 * config/i386/t-vxworksae: New file, for VxWorks AE.
7761 * config/i386/vxworksae.h: Likewise.
7763 2005-09-01 Sebastian Pop <pop@cri.ensmp.fr>
7765 PR tree-optimization/23410
7766 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
7767 sequence is not wrapping during the first step.
7769 2005-09-01 Jakub Jelinek <jakub@redhat.com>
7772 * dwarf2out.c (base_type_die): Compare char_type_node with
7773 TYPE_MAIN_VARIANT (type), not type.
7775 2005-09-01 Richard Guenther <rguenther@suse.de>
7777 PR tree-optimization/15366
7778 * common.opt: Add -finline-functions-called-once.
7779 Put -fearly-inlining in alphabetically ordered place.
7780 * doc/invoke.texi: Document new option.
7781 * ipa-inline.c (cgraph_decide_inlining): Honour
7782 flag_inline_functions_called_once.
7784 2005-09-01 Jakub Jelinek <jakub@redhat.com>
7786 PR rtl-optimization/23478
7787 * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
7788 (alloc_qty): Initialize it.
7789 (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
7790 (combine_regs): Combine also n_throwing_calls_crossed fields.
7791 (find_free_reg): Don't attempt to caller-save pseudos crossing
7792 calls that might throw.
7793 * global.c (struct allocno): Add throwing_calls_crossed field.
7794 (global_alloc): Revert 2005-08-22 change. Initialize
7795 throwing_calls_crossed.
7796 (find_reg): Don't attempt to caller-save pseudos crossing calls that
7799 2005-09-01 Alan Modra <amodra@bigpond.net.au>
7802 * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
7803 (mask64_operand): Reinstate code prior to 2005-06-11 change.
7804 (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
7805 (and64_2_operand): Tweak to use predicate.
7806 (and_operand): Adjust for mask_operand changes.
7807 * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
7808 (print_operand): Likewise.
7809 (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
7810 (mask64_1or2_operand): Delete.
7811 * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
7812 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
7813 (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
7814 (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
7815 * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
7816 (rotldi3_internal4): Likewise.
7817 (rotldi3_internal5, rotldi3_internal5 split): Likewise.
7818 (rotldi3_internal6, rotldi3_internal6 split): Likewise.
7819 (ashldi3_internal7): Likewise.
7820 (ashldi3_internal8, ashldi3_internal8 split): Likewise.
7821 (ashldi3_internal, ashldi3_internal9 split): Likewise.
7822 (anddi3 split): Don't match mask64_operand.
7823 (anddi3_internal2): Add rlwinm. Modify 't' splitter predicate.
7824 (anddi3_internal3): Add rlwinm. Use and64_2_operand in non-cr0
7825 splitter and match TARGET_64BIT not TARGET_POWERPC64. Modify
7826 't' splitter predicate.
7827 (movdi_internal64 + 2): Revert 2005-06-11 change.
7829 2005-08-31 DJ Delorie <dj@redhat.com>
7831 * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
7832 (m32c_asm_integer): Add support for 32 bit pointers.
7834 2005-08-31 Richard Henderson <rth@redhat.com>
7836 * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
7837 component-like references for setting MEM_NOTRAP_P.
7839 * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
7840 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
7842 2005-08-31 Richard Henderson <rth@redhat.com>
7844 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
7845 into a pseudo before applying gen_lowpart.
7847 2005-08-31 Geoffrey Keating <geoffk@apple.com>
7849 * doc/install.texi (Specific): Update cctools version required
7850 for full functionality.
7851 * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
7852 linkers as -macosx_version_min.
7854 2005-08-31 J"orn Rennecke <joern.rennecke@st.com>
7857 * sh.c (print_operand, %R and %S): Add handling of floating point
7858 registers, memory, constants and invalid operands.
7860 2005-08-31 Daniel Berlin <dberlin@dberlin.org>
7862 * ipa-pure-const.c: Change dump name.
7864 2005-08-31 Uros Bizjak <uros@kss-loka.si>
7867 * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
7868 to "reg_or_0_operand".
7869 (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
7871 2005-08-31 Dale Johannesen <dalej@apple.com>
7873 * loop-iv.c (iv_number_of_iterations): Fix overflow check for
7874 loops that count down.
7876 2005-08-31 Richard Henderson <rth@redhat.com>
7879 * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
7880 (fixup_eh_region_note): New.
7881 (reload_as_needed): Call it.
7882 (fixup_abnormal_edges): Allow all throwing insns to be deleted;
7883 don't call find_many_sub_basic_blocks; call verify_flow_info.
7884 * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
7885 (keep_stack_depressed): Likewise.
7886 (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
7888 2005-08-31 Richard Henderson <rth@redhat.com>
7890 * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
7893 2005-08-31 Fariborz Jahanian <fjahanian@apple.com>
7895 * expr.c (expand_expr_real_1): Compare size of address
7896 mode to target's address mode size in deciding expansion of
7897 the constant address.
7899 2005-08-31 Richard Guenther <rguenther@suse.de>
7902 * expr.c (all_zeros_p): New function.
7903 (expand_expr_real_1): Handle the case of an all-zero
7904 non-addressable constructor separately.
7906 2005-08-31 Adrian Straetling <straetling@de.ibm.com>
7908 * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
7909 arguments, adjust all callers.
7910 (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
7912 2005-08-30 Richard Henderson <rth@redhat.com>
7915 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
7916 whenever the mode sizes match.
7918 2005-08-31 Alan Modra <amodra@bigpond.net.au>
7920 * calls.c (load_register_parameters): Fix comment typo.
7921 * expr.c (emit_push_insn): Comment formatting.
7923 2005-08-30 Ian Lance Taylor <ian@airs.com>
7925 * config/i386/x-cygwin (host-cygwin): Change dependency from
7926 hosthooks-def.h to $(HOSTHOOKS_DEF_H).
7928 2005-08-29 Geoffrey Keating <geoffk@apple.com>
7930 * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
7933 2005-08-29 Andrew Pinski <pinskia@physics.uc.edu>
7936 * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
7937 call to ggc_collect.
7939 2005-08-29 Paolo Bonzini <bonzini@gnu.org>
7942 * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
7943 beginning. Remove $(INCLUDES) from all the rules, if following
7944 $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
7946 2005-08-29 Jakub Jelinek <jakub@redhat.com>
7949 * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
7950 fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
7951 not constant, but maxlen is, don't set len to maxlen, rather
7952 set maxlen to len if len is a constant.
7954 2005-08-29 Zdenek Dvorak <dvorakz@suse.cz>
7956 PR tree-optimization/23475
7957 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
7960 2005-08-28 Daniel Berlin <dberlin@dberlin.org>
7962 Fix PR middle-end/22455
7964 * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
7965 Checksum only the parts of the tree that exist for the tree code.
7967 2005-08-28 Dale Johannesen <dalej@apple.com>
7969 * config/i386/i386.c (nocona_cost): Increase MOVE_RATIO.
7971 2005-08-28 Andrew Pinski <pinskia@physics.uc.edu>
7973 * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
7975 2005-08-28 Richard Henderson <rth@redhat.com>
7977 * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
7978 * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
7981 2005-08-28 Jakub Jelinek <jakub@redhat.com>
7984 * builtins.c (get_memory_rtx): Don't strip nops
7985 in between COMPONENT_REFs.
7987 2005-08-27 Andrew Pinski <pinskia@physics.uc.edu>
7990 * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
7992 (gimplify_modify_expr): Check for zero sized types and gimplify the
7993 rhs and lhs as statements.
7995 2005-08-27 John David Anglin <dave.anflin@nrc-cnrc.gc.ca>
7998 * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
7999 state for return address column of signal frames.
8001 2005-08-27 David Edelsohn <edelsohn@gnu.org>
8004 * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
8005 bytes >= 2 not bytes == 2.
8006 (expand_block_move): Same.
8008 2005-08-27 Richard Guenther <rguenther@suse.de>
8011 * config/i386/sse.md (sse2_movsd): Add missing closing
8014 2005-08-27 Paul Brook <paul@codesourcery.com>
8016 * genrecog.c (enum decision_type): Add DT_num_insns.
8017 (struct decision_test): Add u.num_insns.
8018 (add_to_sequence): Add DT_num_insns test.
8019 (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
8020 (write_cond, debug_decision_2): Ditto.
8021 (change_state): Assume peep2_next_insn never fails.
8022 Remove "afterward" argument.
8023 (write afterward, write_tree): Update to match.
8024 * recog.c (peep2_current_count): New variable.
8025 (peep2_next_insn): Check it.
8026 (peephole2_optimize): Set peep2_current_count.
8027 * recog.h (peep2_current_count): Declare.
8029 2005-08-26 Josh Conner <jconner@apple.com>
8032 * ipa-pure-const.c (check_tree): Check for volatile-ness
8033 when considering a dereference.
8035 2005-08-27 Jakub Jelinek <jakub@redhat.com>
8037 * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
8039 2005-08-26 Jakub Jelinek <jakub@redhat.com>
8041 PR rtl-optimization/23561
8042 * builtins.c (get_memory_rtx): Add LEN argument. If MEM_EXPR is
8043 a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
8044 at most LEN bytes long memory fits into the field.
8045 (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
8046 expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
8047 expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
8049 2005-08-26 Richard Henderson <rth@redhat.com>
8052 * loop.c (biased_biv_may_wrap_p): New.
8053 (maybe_eliminate_biv_1): Use it to suppress non-equality
8054 comparison transformations. Delete disabled code.
8056 2005-08-26 Ian Lance Taylor <ian@airs.com>
8058 * combine.c (make_extraction): Avoid reference outside object.
8060 2005-08-26 J"orn Rennecke <joern.rennecke@st.com>
8062 * stor-layout.c (finalize_type_size): Restore behaviour for
8063 non-aggregate types to the status quo ante of the patch for
8064 pr 23467. Document why it matters.
8066 2005-08-26 Jakub Jelinek <jakub@redhat.com>
8069 * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
8070 array by one element, initialize the BT_LAST element with NULL.
8072 2005-08-26 David Edelsohn <edelsohn@gnu.org>
8074 * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
8075 optimizing for size.
8077 (compare_plus_eqsi): Same.
8078 (plus_eqsi_compare): Same.
8079 (neg_eq0<mode>): Same.
8080 (neg_eq<mode>): Same.
8082 * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
8085 2005-08-26 Nick Clifton <nickc@redhat.com>
8087 * config/v850/v850.c (ep_memory_operand): Return FALSE if
8088 TARGET_EP is not defined.
8089 * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
8090 TARGET_EP is enabled.
8091 (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
8092 * config/v850/v850.md (save_all_interrupt): Only use the EP
8093 register if TARGET_EP is defined.
8094 (restore_all_interrupt): Likewise.
8095 * config/v850/lib1funcs.asm: Update functions so that the EP
8096 register is only used if __EP__ is defined.
8098 2005-08-26 David Ung <davidu@mips.com>
8100 * config/mips/mips.c (mips_expand_prologue): Handle case when
8101 generating for MIPS16 and the outgoing argument area is more than
8102 SMALL_OPERAND. Use the frame pointer as temporary to generate the
8105 2005-08-26 Paul Woegerer <paul.woegerer@nsc.com>
8107 * config/crx/crx.md: Make doloop_end pattern usage controllable
8108 via mloop-nesting=<max-nesting> command line switch. Make sure
8109 the combiner cannot use doloop_end_<mode> in an illegal way.
8110 * config/crx/crx.c: Use regs up to r6 for argument passing.
8111 Refine crx_address_cost (non cst4 displacements are expensive).
8112 * config/crx/crx.opt: Add switch for mloop-nesting=.
8114 2005-08-26 Adrian Straetling <straetling@de.ibm.com>
8116 * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
8117 (UNSPEC_MVST): New constant.
8119 2005-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
8121 * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
8122 Reject operands containing eliminable registers.
8123 * testsuite/gcc.dg/20050825-1.c: New testcase.
8125 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
8126 Jan Hubicka <jh@suse.cz>
8128 * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
8130 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
8132 PR tree-optimization/23546
8133 * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
8136 2005-08-24 Pete Steinmetz <steinmtz@us.ibm.com>
8138 * params.def (PARAM_MIN_SPEC_PROB): New.
8139 * sched-rgn.c (MIN_PROBABILITY): Delete.
8140 (compute_trg_info): Convert to PARAM_VALUE.
8141 * doc/invoke.texi (param): Document min-spec-prob.
8143 2005-08-24 Fariborz Jahanian <fjahanian@apple.com>
8145 * config/darwin.h: define __PIC__
8146 * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
8147 TARGET_OS_CPP_BUILTINS macro.
8149 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
8151 * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
8154 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
8156 * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
8158 * cfghooks.c (duplicate_block): Added position where to place
8159 new block as argument.
8160 * cfghooks.h (duplicate_block): Declaration changed.
8161 * cfglayout.c (copy_bbs): Add argument after. Pass it to
8163 * cfglayout.h (copy_bbs): Declaration changed.
8164 * cfgloop.h (loop_version): Declaration changed.
8165 * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
8166 position to copy_bbs.
8167 (loop_version): Pass position to duplicate_loop_to_header_edge.
8168 Add place_after argument and position new blocks according to
8170 * modulo-sched.c (sms_schedule): Pass place_after argument
8172 * tracer.c (tail_duplicate): Pass argument to duplicate_block.
8173 * tree-cfg.c (split_edge_bb_loc): New function.
8174 (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
8175 to determine position of new blocks.
8176 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
8178 * tree-ssa-threadupdate.c (create_block_for_threading): Pass
8179 argument to duplicate_block.
8180 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
8181 Pass position to copy_bbs.
8183 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
8185 * fold-const.c (ptr_difference_const): Use
8186 cst_and_fits_in_hwi instead of host_integerp.
8188 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
8190 * config/darwin.c (gen_pic_offset): New.
8191 (machopic_indirect_data_reference, machopic_legitimize_pic_address):
8194 2005-08-23 Zdenek Dvorak <dvorakz@suse.cz>
8196 PR tree-optimization/23486
8197 * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
8199 2005-08-23 Phil Edwards <phil@codesourcery.com>
8201 * config.gcc (*-*-vxworks*): Update tm_file, add extra_options,
8202 remove use_collect2.
8203 (powerpc-wrs-vxworks): Update, split out *-*-vxworksae target.
8205 * target-def.h (TARGET_HAVE_CTORS_DTORS): Allow target
8206 configuration files to override the default value.
8208 * config/t-vxworks: Remove INSTALL_ASSERT_H. Define STMP_FIXPROTO,
8209 EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
8210 * config/vx-common.h: New file, split out from...
8211 * config/vxworks.h: here. Update for VxWorks 6.x and RTP mode.
8212 * config/vxworksae.h: New file, for VxWorks AE.
8213 * config/vxworks.opt: New file.
8214 * config/vxlib.c: Update for VxWorks 6.
8216 * config/rs6000/t-vxworks (MULTILIB_OPTIONS): New list. Adjust
8217 other MULTILIB_* variables appropriately.
8218 (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS): Correct from t-ppccomm.
8219 * config/rs6000/t-vxworksae: New file, adjust multilibs for AE.
8220 * config/rs6000/vxworks.h: Update for VxWorks 6.
8221 * config/rs6000/vxworksae.h: New file, mostly placeholder for now.
8223 2005-08-23 Andrew Pinski <pinskia@physics.uc.edu>
8226 * config/darwin.c (machopic_select_section): Remove the hack to
8227 mark "::operator new" and "::operator delete" for coalescing
8228 even though they are not weak.
8230 2005-08-24 Alan Modra <amodra@bigpond.net.au>
8232 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
8233 * configure: Regenerate.
8235 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
8238 * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
8240 * convert.c (convert_to_integer, convert_to_vector): Likewise.
8241 * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
8244 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
8246 * config/rs6000/predicates.md (equality_operator): New.
8247 * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
8248 comparison with a large constant.
8250 2005-08-23 Mark Mitchell <mark@codesourcery.com>
8252 * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
8254 2005-08-23 J"orn Rennecke <joern.rennecke@st.com>
8256 * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
8257 registers is even, and we have a hardware double precision fp,
8259 (sh_gimplify_va_arg_expr): For floating point arguments, consider
8260 size of current argument when checking if argument was passed in
8263 * sh.c (sh_attr_renesas_p): Handle error_mark_node.
8266 * stor-layout.c (finalize_type_size): Dont override
8267 existing alignment with a smaller alignment from the mode.
8269 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
8271 * lambda-code.c (lambda_vector_lexico_pos): Moved...
8272 * lambda.h (lambda_vector_lexico_pos): ... here.
8273 * tree-data-ref.c (build_classic_dist_vector): Return false when
8274 the distance vector is lexicographically negative.
8276 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
8278 PR tree-optimization/23511
8279 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
8280 handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
8282 2005-08-23 Jakub Jelinek <jakub@redhat.com>
8284 PR tree-optimization/22043
8285 * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
8286 * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
8287 If ALLOW_FLEXARR, handle types ending with flexible array member.
8288 Pass false as second argument to recursive count_type_elements calls.
8289 (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
8290 argument to count_type_elements call.
8291 * tree-sra.c (decide_block_copy): Likewise.
8292 * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
8293 for a constant-sized object, set cleared as well. Pass true as
8294 second argument to count_type_elements call.
8296 2005-08-23 Alan Modra <amodra@bigpond.net.au>
8299 * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
8300 from legitimate_small_data_p, and make global. Update use.
8301 Remove forward declaration.
8302 * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
8304 * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
8306 2005-08-23 David Edelsohn <edelsohn@gnu.org>
8308 * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
8309 of scratch intermediates.
8310 (eq<mode>_compare): Same.
8311 (neg_eq0<mode>): New.
8312 (neg_eq<mode>): Convert to define_insn_and_split.
8314 2005-08-23 Alan Modra <amodra@bigpond.net.au>
8317 * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
8318 stdarg functions, set/clear the fp marker even when no variable
8320 * config/rs6000/sysv4.opt (mprototype): Describe.
8322 2005-08-22 Jakub Jelinek <jakub@redhat.com>
8324 PR rtl-optimization/23478
8325 * regs.h (reg_info): Add throw_calls_crossed.
8326 (REG_N_THROWING_CALLS_CROSSED): Define.
8327 * flow.c (allocate_reg_life_data): Initialize
8328 REG_N_THROWING_CALLS_CROSSED.
8329 (propagate_one_insn, attempt_auto_inc): Update
8330 REG_N_THROWING_CALLS_CROSSED.
8331 * global.c (global_alloc): Don't allocate pseudos across
8332 calls that may throw.
8334 2005-08-22 Andrew Pinski <pinskia@physics.uc.edu>
8337 * c-common.c (c_do_switch_warnings): Look for a node where the enum's
8338 value is inbetween the range if we did not find an exact match.
8340 2005-08-22 Aldy Hernandez <aldyh@redhat.com>
8342 * doc/invoke.texi (Option Summary): Add ms1 options.
8343 * doc/extend.texi: Document interrupt handler attribute for ms1.
8344 * doc/md.texi: Document ms1 constraints.
8345 * config.gcc: Add ms1-*-elf.
8346 * config/ms1/ms1.h: New.
8347 * config/ms1/ms1.c: New.
8348 * config/ms1/ms1.md: New.
8349 * config/ms1/ms1-protos.h: New.
8350 * config/ms1/ABI.txt: New.
8351 * config/ms1/crti.asm: New.
8352 * config/ms1/crtn.asm: New.
8353 * config/ms1/lib2extra-funcs.c: New.
8354 * config/ms1/t-ms1: New.
8355 * config/ms1/ms1.opt: New.
8357 2005-08-22 Ira Rosen <irar@il.ibm.com>
8359 * config/rs6000/altivec.md (xorv4sf3): New.
8360 (negv4sf2, neg<mode>2): Likewise.
8362 2005-08-21 H.J. Lu <hongjiu.lu@intel.com>
8365 * config/ia64/ia64.md (divsi3): Check divide by zero.
8366 (udivsi3): Likewise.
8368 (udivdi3): Likewise.
8370 2005-08-21 Jakub Jelinek <jakub@redhat.com>
8372 * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
8373 up to elem_bitsize bits, not max_bitsize.
8375 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
8377 PR tree-optimization/23433
8378 * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
8379 REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
8381 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
8383 PR tree-optimization/23434
8384 * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
8385 the iteration bound is not an INTEGER_CST.
8387 2005-08-21 Dorit Nuzman <dorit@il.ibm.com>
8389 * tree-vect-transform.c (get_initial_def_for_reduction): Set
8390 need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
8391 NULL if need_epilog_adjust is false.
8392 (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
8393 Case 3 always peels first itration, not just for PLUS case, and no need
8394 to use scalar_initial_def here. Create an epilog adjustment only if
8395 scalar_initial_def is not NULL.
8397 (vectorizable_reduction): Remove assert.
8399 2005-08-20 H.J. Lu <hongjiu.lu@intel.com>
8402 * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
8403 (__moddi3): Likewise.
8404 (__udivdi3): Likewise.
8405 (__umoddi3): Likewise.
8406 (__divsi3): Likewise.
8407 (__modsi3): Likewise.
8408 (__udivsi3): Likewise.
8409 (__umodsi3): Likewise.
8411 2005-08-20 Jakub Jelinek <jakub@redhat.com>
8413 * tree-pass.h (TDF_GRAPH): Define.
8414 * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
8415 * passes.c (finish_optimization_passes): Only call
8416 finish_graph_dump_file if TDF_GRAPH is set.
8417 (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
8418 NULL. Set TDF_GRAPH bit.
8419 (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
8421 2005-08-20 Richard Earnshaw <richard.earnshaw@arm.com>
8423 * arm.h (arm_stack_offsets): Add locals_base field.
8424 * arm.c (arm_get_frame_offsets): Compute it.
8425 (thumb_compute_initial_elimination offset): Make the Thumb frame
8426 pointer point to the base of the local variables.
8427 (thumb_expand_prologue): Update accordingly.
8428 (thumb_expand_epilogue): Likewise.
8430 * arm.md (thumb_movhi_clobber): Make this insn a define_expand. Change
8431 mode of clobbered scratch to DImode. Handle a case that's known to
8434 2005-08-19 David Edelsohn <edelsohn@gnu.org>
8436 * config/rs6000/rs6000.md (gt0<mode>): Delete.
8437 (gt0<mode>_compare): Delete.
8438 (neg_gt0<mode>): Delete.
8440 2005-08-19 Eric Christopher <echristo@apple.com>
8442 * optabs.h: Change CTI_ to COI_.
8445 2005-08-19 James E Wilson <wilson@specifix.com>
8447 * builtins.c (expand_builtin_return_addr): Set
8448 current_function_accesses_prior_frames when count != 0. Use
8449 frame_pointer_rtx when count == 0.
8450 * function.h (struct function): Add accesses_prior_frames field.
8451 (current_function_accesses_prior_frames): Define.
8452 * reload1.c (init_elim_table): Check
8453 current_function_accesses_prior_frames.
8454 * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
8456 2005-08-19 Diego Novillo <dnovillo@redhat.com>
8458 * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
8459 indicator. Return true if the flowgraph changed during
8462 2005-08-19 Diego Novillo <dnovillo@redhat.com>
8465 * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
8466 conditional expression before testing its value.
8468 2005-08-19 Diego Novillo <dnovillo@redhat.com>
8470 * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
8472 2005-08-19 Devang Patel <dpatel@apple.com>
8474 PR tree-optimization/23048
8475 * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
8476 third parameter. Check whether latch is dominated by exit
8478 (if_convertible_loop_p): Supply exit block itself to
8479 if_convertible_bb_p.
8481 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
8484 * arm.md (arm_load_pic_register): Change argument to the mask of
8485 saved registers. Call thumb_find_work_register if we need a
8486 scratch register on Thumb.
8487 (arm_expand_prologue): Pass empty register set to
8488 arm_load_pic_register.
8489 (thumb_expand_prologue): Pass live_regs_mask directly to
8490 arm_load_pic_register.
8491 * arm-protos.h (arm_load_pic_register): Update prototype.
8493 2005-08-19 J"orn Rennecke <joern.rennecke@st.com>
8495 * sh.c (find_sole_member): New function.
8496 (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
8497 if the record's alignment is larger than the size of its only member.
8499 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
8502 * arm.c (thumb_legitimize_reload_address): New function.
8503 * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
8504 * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
8506 2005-08-19 Paul Woegerer <paul.woegerer@nsc.com>
8508 * config/crx/crx.c: Implement crx_decompose_address. Reject
8509 symbolic displacements since CRX register relative adressing
8510 mode can't handle unsigned 32-bit values as displacements.
8511 * config/crx/crx.h: Simplify definitions, remove redundant
8512 parenthesis and obsolete macros.
8513 * config/crx/crx.opt: Add new switch for debugging addresses.
8514 * config/crx/crx-protos.h: Add new declarations for above.
8516 2005-08-19 Andrew Pinski <pinskia@physics.uc.edu>
8519 * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
8522 2005-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8524 * collect2.c (dup2): Delete.
8525 * configure.ac: Don't check for dup2.
8527 * config.in, configure: Regenerate.
8529 2005-08-18 J"orn Rennecke <joern.rennecke@st.com>
8531 * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
8532 record with the type of its only member.
8534 2005-08-18 David Edelsohn <edelsohn@gnu.org>
8536 * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
8537 define_insn_and_split.
8538 (plus_ltu<mode>_compare): Same.
8539 (gtu<mode>_compare): Same.
8540 (plus_gtu<mode>_compare): Same.
8542 2005-08-18 Dorit Nuzman <dorit@il.ibm.com>
8544 PR tree-optimization/22228
8545 * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
8547 * tree-vect-transform.c (vect_transform_loop): Mark the variables that
8548 are recorded in vect_vnames_to_rename for renaming.
8549 * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
8550 (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
8551 in vect_vnames_to_rename.
8552 (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
8553 * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
8555 2005-08-18 Jan Hubicka <jh@suse.cz>
8558 * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
8559 info only for local statics, not for member variables.
8561 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
8563 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
8565 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
8567 * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
8569 2005-08-18 Andrew Pinski <pinskia@physics.uc.edu>
8572 * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
8574 2005-08-17 James E Wilson <wilson@specifix.com>
8576 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
8579 2005-08-17 David Edelsohn <edelsohn@gnu.org>
8581 * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
8582 (leu<mode>_compare): Same.
8583 (plus_leu<mode>): Same.
8584 (neg_leu<mode>): Same.
8585 (and_neg_leu<mode): Same.
8586 (ltu<mode>_compare): Same.
8587 (plus_ltu<mode>): Same.
8589 (geu<mode>_compare): Same.
8590 (plus_geu<mode>): Same.
8591 (neg_geu<mode>): Same.
8592 (and_neg_geu<mode>): Same.
8593 (plus_gt<mode>): Same.
8594 (gtu<mode>_compare): Same.
8595 (plus_gtu<mode>): Same.
8597 2005-08-17 Erik Christiansen <erik@dd.nec.com.au>
8599 * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
8600 Move call_table_data to end. Delete spurious .text.
8601 (callt_save_all_interrupt): Fix comment typo.
8603 2005-08-17 James E Wilson <wilson@specifix.com>
8604 Kevin Winchester <winchester@amirix.com>
8607 * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
8609 2005-08-17 Uros Bizjak <uros@kss-loka.si>
8612 * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
8613 ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
8615 2005-08-17 J"orn Rennecke <joern.rennecke@st.com>
8617 * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
8618 record with the type of its only member if the modes don't match.
8620 * varasm.c (decode_reg_name): Skip empty additional register names.
8622 2005-08-16 Zdenek Dvorak <dvorakz@suse.cz>
8624 * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
8625 lsm_tmp_name_length): New.
8626 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
8627 (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
8629 2005-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8630 Andreas Krebbel <krebbel1@de.ibm.com>
8632 * config.gcc: Added z9-109 switch.
8633 * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
8634 "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
8635 "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
8636 "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
8637 "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
8638 for "z9_109" cpu attribute.
8639 * config/s390/s390.c (z9_109_cost): New processor cost structure.
8640 (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
8641 (s390_handle_arch_option): Added z9-109 switch.
8642 (override_options): Set respective cost function for z9-109.
8643 (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
8644 (legitimate_reload_constant_p): Accept extended immediates.
8645 (print_operand): Three new output modifiers added: k, m and o.
8646 (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
8647 (s390_output_mi_thunk): Use extended immediate when possible.
8648 * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
8649 (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
8650 (CONSTRAINT_LEN): Added length of O constraint.
8651 (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
8652 * config/s390/s390.md ("cpu"): New value z9_109 added.
8653 ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
8654 "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
8655 "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
8656 "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
8657 "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
8658 ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
8659 "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
8660 "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
8661 ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
8662 "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
8663 "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
8664 "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
8665 "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
8666 "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
8667 "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
8669 ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
8670 "zero_extend<mode>si2"): Allow memory operands and don't manually emit
8671 insns for TARGET_EXTIMM.
8673 2005-08-17 Andreas Krebbel <krebbel1@de.ibm.com>
8675 * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
8677 2005-08-17 Nick Clifton <nickc@redhat.com>
8679 * config/stormy16/stormy16.c (xstormy16_encode_section_info):
8680 Call default_encode_section_info.
8682 2005-08-17 Steven Bosscher <stevenb@suse.de>
8684 PR tree-optimization/21574
8685 * tree-ssa-ccp.c (likely_value): If the right hand side is a
8686 constant, return CONSTANT.
8687 (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
8688 (ccp_fold, visit_assignment): Likewise.
8689 (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
8691 2005-08-16 James A. Morrison <phython@gcc.gnu.org>
8693 * c-typeck.c (build_function_call): Call fold_buildN_initializer or
8694 fold_buildN instead of buildN then fold_initializer or fold.
8695 (build_unary_op): Likewise.
8696 (build_binary_op): Likewise.
8697 * fold-const.c (fold_initializer): Remove.
8698 (fold_build1_initializer): New function.
8699 (fold_build2_initializer): New function.
8700 (fold_build3_initializer): New function.
8701 * tree.h (fold_initializer): Remove.
8702 (fold_build1_initializer): New function.
8703 (fold_build2_initializer): New function.
8704 (fold_build3_initializer): New function.
8706 2005-08-16 James A. Morrison <phython@gcc.gnu.org>
8708 * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
8709 (try_move_mult_to_index): Call fold_build2 instead of build2.
8710 (fold_binary): Don't call fold after calls to try_move_mult_to_index.
8711 * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
8712 fold_binary_to_constant.
8713 (infer_loop_bounds_from_undefined): Call fold_build2 instead of
8715 * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
8716 check if A == gcd (A, B). Remove TYPE argument.
8717 (analyze_offset) Use fold_build2 instead of fold (build.
8718 (create_data_ref): Likewise.
8719 (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
8720 * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
8723 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
8725 * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
8726 ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
8728 2005-08-16 Andrew Pinski <pinskia@physics.uc.edu>
8731 * gimplify.c (zero_sized_type): New function.
8732 (gimplify_modify_expr_rhs): If we have a zero sized type,
8733 replace the statement with an empty statement.
8735 2005-08-16 H.J. Lu <hongjiu.lu@intel.com>
8737 * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
8740 2005-08-16 Ian Lance Taylor <ian@airs.com>
8742 * doc/tm.texi (Label Output): Correct typo.
8744 2005-08-16 Steven Bosscher <stevenb@suse.de>
8747 * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
8748 force_operand will work later on using have_insn_for.
8750 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
8752 * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
8754 2005-08-16 Ian Lance Taylor <ian@airs.com>
8757 * gimplify.c (gimplify_init_ctor_eval): If we see an element of
8758 vector type, don't try to construct it element by element. Add an
8759 assertion that we use a FIELD_DECL when building a COMPONENT_REF.
8761 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
8763 * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
8765 2005-08-16 Geoffrey Keating <geoffk@apple.com>
8767 * doc/invoke.texi (Precompiled Headers): Document some more options
8768 which are known to be safe.
8770 2005-08-16 James E Wilson <wilson@specifix.com>
8772 PR tree-optimization/21105
8773 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
8774 TREE_OVERFLOW check.
8776 2005-08-16 David Edelsohn <edelsohn@gnu.org>
8778 * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
8779 (neg_ltu<mode>): Same.
8781 (neg_gtu<mode>): Same.
8783 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
8785 * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
8786 (fold_builtin_isdigit): Use fold_buildN.
8787 (build_function_call_expr): Likewise.
8788 * c-typeck.c (c_finish_loop): Likewise.
8790 2005-08-16 J"orn Rennecke <joern.rennecke@st.com>
8791 Richard Shann <rshann@superh.com>
8793 PR middle-end/20396:
8794 * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
8796 2005-08-16 Sebastian Pop <pop@cri.ensmp.fr>
8798 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
8800 2005-08-15 Richard Earnshaw <richard.earnshaw@arm.com>
8803 * arm.c (thumb_compute_save_reg_mask): Use similar logic to
8804 arm_compure_save_reg0_reg12_mask to determine when the PIC register
8807 2005-08-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8810 * fold-const.c (build_range_check): Disable optimization for function
8811 pointer expressions on targets that require function pointer
8814 2005-08-15 Ulrich Weigand <uweigand@de.ibm.com>
8816 * simplify-rtx.c (simplify_const_relational_operation): When
8817 extracting arguments of a COMPARE, recompute the mode as well.
8819 2005-08-15 Ian Lance Taylor <ian@airs.com>
8821 * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
8823 2005-08-15 DJ Delorie <dj@redhat.com>
8825 * config/m32c/mov.md (movqi_op): Immediates can't be moved to
8827 (movsi_splittable): Allow, but split, moves to the stack.
8828 * config/m32c/m32c.c (m32c_split_move): Always split moves to the
8831 2005-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8833 * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
8834 * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
8835 * system.h (HOST_PTR_PRINTF): Don't define, poison it.
8837 * bitmap.c, c-decl.c, config/i386/i386-interix.h,
8838 config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
8839 Delete HOST_PTR_PRINTF.
8841 * configure, config.in: Regenerate.
8843 2005-08-15 David Edelsohn <edelsohn@gnu.org>
8845 * config/rs6000/rs6000.md (QHSI): New mode macro.
8846 (wd): Extend mode attr for QImode and HImode
8847 (dbits): New mode attr.
8848 (zero_extend<mode>di2): Convert to mode macro.
8850 2005-08-15 Steve Ellcey <sje@cup.hp.com>
8853 * doc/invoke.texi (-mgnu-ld): Update description.
8856 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
8859 * Makefile.in (tree-chrec.o): Depends on real.h.
8860 * tree-chrec.c: Include real.h.
8861 (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
8862 chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
8863 * tree-scalar-evolution.c (add_to_evolution_1,
8864 interpret_rhs_modify_expr): Ditto.
8866 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
8869 * tree-data-ref.c (estimate_niter_from_size_of_data): When
8870 step is negative compute the estimation from init downwards to zero.
8872 2005-08-14 James A. Morrison <phython@gcc.gnu.org>
8874 * fold-const (fold_binary): Call fold_build2 instead of fold (build.
8876 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
8878 * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
8880 (legitimate_reload_constant_p): Fix handling of lliXX operands.
8881 Accept double-word constants that can be split.
8882 * config/s390/s390.md ("movti"): Use 'P' constraint.
8883 ("*movdi_31", "*movdf_31"): Likewise.
8885 2005-08-14 Daniel Berlin <dberlin@dberlin.org>
8887 Fix PR tree-optimization/22615
8889 * tree-ssa-structalias.c (solution_set_add): Handle
8890 first_vi_for_offset returning NULL.
8891 (do_da_constraint): Ditto.
8892 (do_sd_constraint): Ditto.
8893 (do_ds_constraint): Ditto
8894 (find_func_aliases): Ditto.
8895 (build_constraint_graph): RHS is allowed be ANYTHING.
8896 (first_vi_for_offset): Return NULL if we couldn't find anything at
8899 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
8901 * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
8902 over memory as first operand.
8904 2005-08-14 H.J. Lu <hongjiu.lu@intel.com>
8907 * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
8908 available for setting it.
8910 2005-08-14 Ira Rosen <irar@il.ibm.com>
8912 PR tree-optimization/23320
8913 * tree-data-ref.c (base_addr_differ_p): Add comment. Check
8914 data-refs' types instead of base object nullness. Add check for
8915 pointer type data-refs before first location comparison. Remove
8918 2005-08-14 Andreas Schwab <schwab@suse.de>
8920 * doc/md.texi (Machine Constraints): Fix misplaced @end table.
8922 2005-08-13 James E Wilson <wilson@specifix.com>
8924 * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
8925 * doc/invoke.texi (-Wstack-protector, -fstack-protector,
8926 -fstack-protector-all, --param ssp-buffer-size): Document.
8927 (-Wvariadic-macros): Alphabetize.
8928 (-fsched-stalled-insns-dep): Add missing 'f'.
8930 * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
8933 2005-08-13 David Edelsohn <edelsohn@gnu.org>
8935 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
8936 or indirect address operand.
8937 (EXTRA_ADDRESS_CONSTRAINT): New.
8938 * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
8940 2005-08-13 Sebastian Pop <pop@cri.ensmp.fr>
8942 PR tree-optimization/22236
8943 * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
8944 successors and predecessors.
8945 * tree-chrec.c (chrec_convert): Before converting, check that
8946 sequences don't wrap.
8947 * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
8948 (analyze_array): Extern.
8949 (find_data_references_in_loop): Remove call to
8950 compute_estimated_nb_iterations.
8951 * tree-data-ref.h (analyze_array): Declared.
8952 * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
8953 single_ssa_def_operand, zero_ssa_operands): Fix documentation.
8954 * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
8955 * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
8957 * tree-ssa-loop-ivcanon.c: Fix documentation.
8958 * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
8959 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
8960 (infer_loop_bounds_from_undefined): New.
8961 (estimate_numbers_of_iterations_loop): Use
8962 infer_loop_bounds_from_undefined.
8963 (used_in_pointer_arithmetic_p): New.
8964 (scev_probably_wraps_p): Pass an extra parameter. Call
8965 used_in_pointer_arithmetic_p. Check that AT_STMT is not null.
8966 (convert_step): Fix documentation.
8967 * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
8968 Use initial_condition_in_loop_num and evolution_part_in_loop_num
8969 instead of CHREC_LEFT and CHREC_RIGHT. Adjust the call to
8970 scev_probably_wraps_p.
8972 2005-08-13 Ulrich Weigand <uweigand@de.ibm.com>
8974 * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
8975 (s390_register_info): Ignore clobbered_regs information for fixed
8976 registers, and only fixed registers.
8977 (s390_init_frame_layout): Remove redundant call.
8979 2005-08-12 Gerald Pfeifer <gerald@pfeifer.com>
8981 * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
8982 description of -Wold-style-casts.
8984 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
8985 Jakub Jelinek <jakub@redhat.com>
8987 * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
8988 * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
8989 * config/s390/s390.c (print_operand): New output modifier 'G' added.
8990 (get_thread_pointer): Renamed to s390_get_thread_pointer.
8991 * config/s390/s390.md (stack_protect_set, stack_protect_test): If
8992 TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
8993 (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
8994 (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
8995 ("stack_protect_set", "stack_protect_test"): New expanders.
8996 ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
8997 "stack_protect_testdi"): New insn definitions.
8999 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
9001 * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
9003 2005-08-12 Paul Brook <paul@codesourcery.com>
9005 * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
9007 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
9009 * config/s390/predicates.md (setmem_operand): New predicate.
9010 (shift_count_operand): Accept ANDs with special constants as
9012 * config/s390/s390.c (print_shift_count_operand): Skip ANDs
9013 with special constants.
9014 * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
9015 shift_count_operand with setmem_operand.
9017 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
9019 * config/s390/s390.c (s390_extract_part, s390_single_part):
9021 (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
9022 (s390_output_mi_thunk): Don't use lg on 31 bit.
9023 * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
9024 ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
9026 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
9028 * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
9029 (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
9030 s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
9031 s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
9032 with one of the new macros.
9034 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
9036 * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
9037 Don't set save_return_addr_p.
9038 (s390_register_info): Make clobbered_regs not depending on
9041 2005-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
9043 * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
9044 (LINK_COMMAND_SPEC): Add space after %(link_ssp).
9046 2005-08-11 James E. Wilson <wilson@specifix.com>
9048 * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
9050 2005-08-11 Jakub Jelinek <jakub@redhat.com>
9052 * dwarf2out.c (add_location_or_const_value_attribute): Prefer
9053 locations gathered by var-tracking in single entry loc_list
9054 over loc_descriptor_from_tree.
9056 * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
9057 pass it down to loc_descriptor.
9058 (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
9059 (containing_function_has_frame_base): Move earlier in the file.
9060 (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
9061 instead of always assuming fbreg can't be used.
9063 2005-08-11 David Edelsohn <edelsohn@gnu.org>
9065 * config/rs6000/altivec.md: Change constraint "m" to "Z".
9066 * config/rs6000/predicates.md (indexed_or_indirect_operand):
9067 Accept address wrapped in AND for Altivec.
9068 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
9069 Strip AND wrapping offset address for Altivec.
9071 2005-08-11 Richard Henderson <rth@redhat.com>
9074 * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
9075 before using TYPE_IS_SIZETYPE.
9077 2005-08-11 Richard Henderson <rth@redhat.com>
9080 * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
9081 insn types not present on ev4.
9082 (alphaev5_insn_pipe): Similarly.
9084 2005-08-11 Richard Earnshaw <richard.earnshaw@arm.com>
9087 * arm.c (arm_override_options): If the user has selected callee-super-
9088 interworking, then enable normal interworking.
9090 2005-08-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9092 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
9095 2005-08-11 Wu Zhou <woodzltc@cn.ibm.com>
9097 * doc/rtl.texi: Fix two typos.
9099 2005-08-11 Richard Guenther <rguenther@suse.de>
9102 * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
9103 cases where we call to/from functions returning void.
9105 2005-08-10 James A. Morrison <phython@gcc.gnu.org>
9108 * tree.c (build_pointer_type_for_mode): Robustify.
9110 2005-08-10 James E Wilson <wilson@specifix.com>
9112 * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
9113 (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
9115 * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
9118 2005-08-10 Eric Christopher <echristo@apple.com>
9120 * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
9121 * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
9124 2005-08-10 Andrew Pinski <pinskia@physics.uc.edu>
9127 * config/darwin.c (machopic_indirect_data_reference): Use a new register
9128 for the high part when generating dynamic-no-pic code.
9130 2005-08-10 H.J. Lu <hongjiu.lu@intel.com>
9132 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
9133 (x86_64-*-linux*): Likewise.
9135 * config/i386/crtfastmath.c: New file.
9136 * config/i386/t-crtfm: Likewise.
9138 * config/i386/linux.h (ENDFILE_SPEC): New.
9139 * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
9141 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
9144 2005-08-10 Dorit Nuzman <dorit@il.ibm.com>
9146 * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
9147 (vec_shl, vec_shr): Document new operations.
9148 * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
9150 2005-08-10 David Edelsohn <edelsohn@gnu.org>
9152 * config/rs6000/predicates.md (indexed_or_indirect_address): New.
9153 * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
9154 change predicate to indexed_or_indirect_address.
9156 2005-08-10 Richard Sandiford <richard@codesourcery.com>
9158 * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
9159 * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
9160 __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
9161 and __aeabi_uwrite8.
9162 * config/arm/unaligned-funcs.c: New file.
9163 * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
9165 2005-08-09 Paolo Bonzini <bonzini@gnu.org>
9167 * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
9169 * cfglayout.c (pass_insn_locators_initialize): Add dump.
9170 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
9172 * except.c (pass_convert_to_eh_region_ranges): Add dump.
9173 * final.c (pass_shorten_branches): Add dump.
9174 * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
9175 (pass_life): Rename dump.
9176 (rest_of_handle_flow2): Remove initial verify_flow_info.
9177 * function.c (pass_instantiate_virtual_regs): Add dump.
9178 * integrate.c (pass_initial_value_sets): Add dump.
9179 * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
9180 * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
9181 (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
9182 pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
9183 (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
9184 gate_rtl_unrool_and_peel_loops): New.
9185 (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
9186 rtl_doloop): Do not look at flags.
9187 * mode-switching.c (pass_mode_switching): Add dump.
9188 * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
9189 pass_split_before_regstack): Add dump.
9190 * regmove.c (pass_stack_adjustments): Add dump.
9191 * tree-optimize.c (pass_fixup_cfg): Add dump.
9193 2005-08-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9196 * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
9197 deciding which instruction sequence to use.
9199 2005-08-09 Dorit Nuzman <dorit@il.ibm.com>
9201 * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
9202 BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
9204 2005-08-09 Richard Guenther <rguenther@suse.de>
9206 * c-common.c (builtin_function_2): Remove.
9207 (def_builtin_1): New function.
9208 (c_common_nodes_and_builtins): Use def_builtin_1 to
9209 build builtin functions.
9211 2005-08-09 Jie Zhang <jie.zhang@analog.com>
9213 * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
9214 * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
9215 * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
9218 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
9220 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
9221 fold_binary instead of fold_build2 since we don't care about the
9223 (loop_niter_by_eval): Likewise.
9224 (compare_trees): Likewise.
9225 (proved_non_wrapping_p): Likewise.
9227 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
9231 * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
9232 if the if is really empty.
9234 2005-08-09 Steven Bosscher <stevenb@suse.de>
9236 PR tree-optimization/23234
9237 * tree-ssa-math-opts.c (place_reciprocal): New enum.
9238 (execute_cse_reciprocals_1): Replace the 'phi' argument with an
9239 argument of the new enum.
9240 (execute_cse_reciprocals): Add reciprocals for function arguments
9241 on the unique successor edge of the entry block. Update other calls
9242 to execute_cse_reciprocals_1.
9244 2005-08-08 Richard Henderson <rth@redhat.com>
9247 * gimplify.c (gimplify_one_sizepos): Preserve the original type.
9249 2005-08-08 Bob Wilson <bob.wilson@acm.org>
9251 * expr.c (write_complex_part): Return after handling MEM.
9253 2005-08-08 Josh Conner <jconner@apple.com>
9255 PR rtl-optimization/23241
9256 * combine.c (simplify_comparison): Fix error in determining
9257 whether to lift a subreg from comparison.
9259 2005-08-08 David Edelsohn <edelsohn@gnu.org>
9262 * config/rs6000/altivec.md (vec_init<mode>): New.
9263 (vec_set<mode>): New.
9264 (vec_extract<mode>): New.
9265 * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
9266 (rs6000_expand_vector_set): New.
9267 (rs6000_expand_vector_extract): New.
9268 (rs6000_legitimate_offset_address_p): Offset addresses are valid
9269 for Altivec modes before reload.
9270 (altivec_expand_vec_init_builtin): New.
9271 (get_element_number): New.
9272 (altivec_expand_vec_set_builtin): New.
9273 (altivec_expand_vec_ext_builtin): New.
9274 (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
9276 (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
9278 * config/rs6000/rs6000.h (rs6000_builtins): Add
9279 ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
9280 ALTIVEC_BUILTIN_VEC_EXT_<mode>.
9281 * config/rs6000/rs6000-protos.h: Declare new functions.
9283 2005-08-08 Jan Hubicka <jh@suse.cz>
9285 * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
9286 (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
9287 * i386.md (movdi*): Use pic_32bit_operand.
9288 * predicates.md (pic_32bit_operand): New.
9290 2005-08-08 Nathan Sidwell <nathan@codesourcery.com>
9293 * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
9295 2005-08-07 James A. Morrison <phython@gcc.gnu.org>
9297 * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
9298 (test_for_singularity): Use fold_build2.
9300 2005-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9302 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
9304 2005-08-07 Danny Smith <dannysmith@users.sourceforge.net>
9306 * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
9307 (COMMON_ASM_OP) Define.
9308 * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
9309 (ix86_encode_section_info): Likewise.
9310 (TARGET_ENCODE_SECTION_INFO): Conditionally define as
9311 SUBTARGET_ENCODE_SECTION_INFO.
9313 2005-08-06 Richard Henderson <rth@redhat.com>
9316 * tree-nested.c (convert_local_reference): Save and restore val_only
9317 around component_ref and friends. Clear walk_subtrees by default.
9319 2005-08-06 Peter O'Gorman <peter@pogma.com>
9322 * gcc.c (process_command): Check the argument to -b has a dash.
9323 * doc/invoke.texi: Update -b and -V docs.
9325 2005-08-06 James E Wilson <wilson@specifix.com>
9327 * config/mips/cross64.h, config/mips/t-cross64: Delete.
9329 2005-08-06 Michael Matz <matz@suse.de>
9331 * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
9332 member only if only one insn is associated with the value.
9334 2005-08-06 Nick Clifton <nickc@redhat.com>
9336 * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
9338 (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
9339 * config/stormy16/stormy16.c (xstormy16_below100_symbol):
9340 Check symbol flags instead of symbol name mangling.
9341 (xstormy16_asm_output_aligned_common): Likewise. Also
9342 simplify code since the bss100_section cass is the only case
9343 where the below100 code will be triggered.
9344 (xstormy16_encode_section_info): Encode below100 attribute
9345 using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
9347 (xstormy16_strip_name_encoding): Delete - this function is no
9349 (TARGET_STRIP_NAME_ENCODING): Undefine.
9350 * config/stormy16/stormy16-protos.h: Delete prototype for
9351 xstormy16_strip_name_encoding.
9353 2005-08-06 Kazu Hirata <kazu@codesourcery.com>
9355 * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
9356 config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
9357 tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
9358 config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
9359 config/alpha/predicates.md, config/arc/arc.h,
9360 config/arm/arm.h, config/arm/ieee754-df.S,
9361 config/arm/ieee754-sf.S, config/bfin/bfin.c,
9362 config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
9363 config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
9364 config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
9365 config/m68hc11/m68hc11.h, config/mips/mips.c,
9366 config/mips/mips.h, config/mips/openbsd.h,
9367 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
9368 config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
9369 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
9370 config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
9371 config/sparc/linux.h, config/sparc/linux64.h,
9372 config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
9373 doc/extend.texi, doc/gcov.texi, doc/install.texi,
9374 doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
9375 typos. Follow spelling conventions.
9377 2005-08-06 Joseph S. Myers <joseph@codesourcery.com>
9380 * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
9381 Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
9382 specially. Check for side effects only for COND_EXPR.
9383 * c-typeck.c (c_finish_stmt_expr): Mark statement expression
9384 return with TREE_NO_WARNING.
9386 2005-08-06 Richard Sandiford <richard@codesourcery.com>
9388 PR rtl-optimization/23233
9389 * loop.c (combine_movables): Require the modes to be the same.
9390 (move_movables): Remove handling of cases where the replacement
9391 had a different mode to the original.
9393 2005-08-05 James A. Morrison <phython@gcc.gnu.org>
9395 PR tree-optimization/23128
9396 * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
9397 subtraction wrap, and set TREE_OVERFLOW if they do.
9399 2005-08-05 Richard Henderson <rth@redhat.com>
9402 * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
9403 FORCED_LABEL labels.
9405 2005-08-05 J"orn Rennecke <joern.rennecke@st.com>
9408 * reload.c (find_reloads_subreg_address): Pass down TYPE
9409 unchanged. Change all callers except find_reloads_toplev.
9411 2005-08-05 Michael Matz <matz@suse.de>
9413 * genattrtab.c (current_alternative_string): Remove.
9414 (SIMPLIFY_ALTERNATIVE): Ditto.
9415 (attr_alt_bit_p): Ditto.
9416 (alternative_name): Make const char *.
9417 (evaluate_eq_attr): Remove use of above things.
9418 (simplify_test_exp): Ditto.
9419 (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
9420 (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
9422 2005-08-04 James E Wilson <wilson@specifix.com>
9424 * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
9425 config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
9426 config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
9427 config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
9428 (LINK_SPEC): Delete useless %{Wl,*:%*} item.
9430 2005-08-04 Richard Henderson <rth@redhat.com>
9433 * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
9434 * params.h (SRA_MAX_STRUCTURE_COUNT): New.
9435 * tree-sra.c (decide_block_copy): Use it. Disable element copy
9436 if we'd have to instantiate too many members.
9438 2005-08-04 Richard Henderson <rth@redhat.com>
9441 * tree-outof-ssa.c (coalesce_asm_operands): New.
9442 (coalesce_ssa_name): Use it. Split out ...
9443 (coalesce_phi_operands, coalesce_result_decls): ... these.
9445 2005-08-04 Paul Brook <paul@codesourcery.com>
9447 * read-rtl.c (read_quoted_string): Break if EOF.
9449 2005-08-04 Andrew Pinski <pinskia@physics.uc.edu>
9451 * tree.h (fold_build1): Change to macro and call fold_build1_stat.
9452 (fold_build2): Likewise.
9453 (fold_build3): Likewise.
9454 (fold_build1_stat): New function prototype.
9455 (fold_build2_stat): Likewise.
9456 (fold_build3_stat): Likewise.
9457 * fold-const.c (fold_build1): Rename to ..
9458 (fold_build1_stat): this. Add MEM_STAT_DECL. Pass the mem stats
9459 through to build1_stat.
9460 (fold_build2): Rename to ..
9461 (fold_build2_stat): this. Add MEM_STAT_DECL. Pass the mem stats
9462 through to build2_stat.
9463 (fold_build3): Rename to ..
9464 (fold_build3_stat): this. Add MEM_STAT_DECL. Pass the mem stats
9465 through to build3_stat.
9467 2005-08-04 David Edelsohn <edelsohn@gnu.org>
9468 Ian Lance Taylor <ian@airs.com>
9470 * function.c (assign_stack_local_1): Do not correct stack slot
9471 address if allocation size is smaller than mode size.
9473 2005-08-04 Diego Novillo <dnovillo@redhat.com>
9476 * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
9477 (tree_merge_blocks): Propagate anything allowed by
9479 Clarify documentation.
9480 * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
9481 SSA form, schedule an update if necessary.
9483 2005-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9485 * doc/install.texi (Binaries): Remove broken link to
9486 Sinix/Reliant Unix binaries.
9488 2005-08-03 Richard Henderson <rth@redhat.com>
9491 * function.c (stack_protect_epilogue): Export.
9492 * tree.h (stack_protect_epilogue): Declare.
9493 * calls.c (expand_call): Call it.
9495 2005-08-03 Eric Christopher <echristo@apple.com>
9497 * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
9498 * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
9501 2005-08-04 Jan Hubicka <jh@suse.cz>
9503 * profile.c (branch_prob): Split edges with goto locus on them
9504 to get proper line counts.
9505 * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
9507 2005-08-03 Paul Brook <paul@codesourcery.com>
9509 * function.c (assign_parms): Round current_function_args_size
9510 to PARM_BOUNDARY, not STACK_BOUNDARY.
9512 2005-08-03 Geoffrey Keating <geoffk@apple.com>
9514 * config/i386/i386.c (x86_elf_aligned_common)
9515 (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
9517 2005-08-03 Zdenek Dvorak <dvorakz@suse.cz>
9519 PR tree-optimization/23157
9520 * tree-scalar-evolution.c (scev_const_prop): Unshare trees
9521 before emitting them.
9523 2005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9525 PR tree-optimization/19899
9526 * Makefile.in (tree-scalar-evolution.o): Add real.h.
9527 * tree-scalar-evolution.c: Include real.h.
9528 (add_to_evolution): Build constant -1 of correct type.
9530 2005-08-03 Jan Hubicka <jh@suse.cz>
9532 * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
9533 * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
9534 profile updating for complette unrolling.
9535 * loop-unroll.c (peel_loop_completely): Use it.
9536 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
9537 (tree_unroll_loops_completely): Disable code growing unrolling of cold
9540 2005-08-03 Paul Brook <paul@codesourcery.com>
9542 * combine.c (can_change_dest_mode): New function.
9543 (try_combine, simplify_set): Use it.
9545 2005-08-03 Eric Botcazou <ebotcazou@adacore.com>
9547 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
9550 2005-08-03 Gerald Pfeifer <gerald@pfeifer.com>
9552 * doc/install.texi (Specific): Adjust link to openavr.org.
9553 (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
9554 (Binaries): Adjust HP-UX Porting Center link.
9555 (Binaries): Adjust Free Software Foundation ordering link.
9557 2005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
9559 * convert.c (convert_to_integer): Use fold_build1 instead of
9560 build1 when converting an integer to an integer.
9562 2005-08-02 Richard Henderson <rth@redhat.com>
9564 * combine.c (combine_instructions): Don't use reg_equal/equiv
9565 results if the mode doesn't match.
9567 2005-08-02 Mark Mitchell <mark@codesourcery.com>
9569 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
9570 * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
9572 2005-08-02 Richard Henderson <rth@redhat.com>
9575 * explow.c (memory_address): Remove special-case for
9576 virtual_stack_vars_rtx and virtual_incoming_args_rtx.
9578 2005-08-02 Diego Novillo <dnovillo@redhat.com>
9581 * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
9582 number of calls to cleanup_tree_cfg_1.
9584 2005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de>
9586 * doc/invoke.texi: document file extensions .F90 and .F95
9588 2005-08-02 Richard Guenther <rguenther@suse.de>
9590 * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
9591 positive if its first argument is positive.
9593 2005-08-02 Richard Guenther <rguenther@suse.de>
9595 PR tree-optimization/23177
9596 * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
9599 2005-08-02 James A. Morrison <phython@gcc.gnu.org>
9601 PR tree-optimization/23129
9602 * tree-vrp.c (extract_range_from_binary_expr): Set value range to
9603 varying for divisions with anti-ranges.
9605 2005-08-02 Jan Hubicka <jh@suse.cz>
9607 * tree-ssa-dom.c (thread_across_edge): Remove updating here.
9608 * tree-ssa-threadupdate.c (thread_block): Add it here.
9610 2005-08-01 James E Wilson <wilson@specifix.com>
9612 * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
9613 TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
9614 * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
9616 * config/mips/predicates.md (const_call_insn_operand): Add check for
9617 SYMBOL_REF_LONG_CALL_P.
9618 * doc/extend.texi (long_call): Document the new attribute.
9620 2005-08-01 Ian Lance Taylor <ian@airs.com>
9621 Richard Henderson <rth@redhat.com>
9623 * Makefile.in (RTL_BASE_H): Add real.h.
9624 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
9626 * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
9628 * rtl.c (rtl_check_failed_code_mode): New.
9629 * rtl.h (struct rtx_def): Add u.rv.
9630 (XCMWINT, XCNMPRV): New.
9631 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
9632 (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
9634 2005-08-01 Richard Henderson <rth@redhat.com>
9636 * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
9637 with auto-inc codes.
9639 * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
9641 2005-08-01 Jan Hubicka <jh@suse.cz>
9643 * i386-protos.h (asm_preferred_eh_data_format): Declare.
9644 * i386.c: Include dwarf2.h
9645 (asm_preferred_eh_data_format): New.
9646 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
9648 2005-08-01 Ian Lance Taylor <ian@airs.com>
9650 * config/host-linux.c (linux_gt_pch_get_address): Add new name
9651 randomize_va_space for virtual address randomization control.
9653 2005-08-01 Steven Bosscher <stevenb@suse.de>
9655 * common.opt (flag_ipa_cp): Put in right place to maintain
9658 2005-08-01 Jan Hubicka <jh@suse.cz>
9660 * profile.c (compute_value_histograms): Fix thinko.
9661 * value-prof.c: Include toplev.h
9662 (check_counter): New function.
9663 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
9664 tree_mod_subtract_transform): Add sanity check.
9666 2005-08-01 Richard Guenther <rguenther@suse.de>
9668 PR tree-optimization/23133
9669 * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
9670 current functions parameter decls to find defs to cse
9673 2005-08-01 Richard Guenther <rguenther@suse.de>
9675 PR tree-optimization/23109
9676 * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
9677 If trapping math is in effect, use post-dominator information
9678 to check if we'd in any case reach a trapping point before
9679 doing the reciprocal insertion.
9680 (execute_cse_reciprocals): Compute post-dominators, if necessary.
9681 * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
9682 expressions are invariant only if trapping math is not in effect.
9684 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
9686 * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
9687 cgraph_function_versioning): New declarations.
9688 * cgraphunit.c: Add include to ipa-prop.h.
9689 (update_call_expr, cgraph_copy_node_for_versioning,
9690 cgraph_function_versioning): New functions.
9691 * integrate.c (copy_decl_for_inlining): Remove.
9692 * ipa-prop.h (ipa_replace_map): New struct.
9693 (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
9694 * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
9695 ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
9696 ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
9697 ipcp_iterate_stage, ipcp_method_scale_print,
9698 ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
9699 ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
9700 ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
9701 ipcp_update_bb_counts, ipcp_update_profiling,
9702 ipcp_update_edges_counts): New functions.
9703 (ipcp_method_cval_init): Remove restriction regarding local methods.
9704 (ipcp_init_stage): Add ipcp_method_compute_scale.
9705 (ipcp_insert_stage): Add versioning.
9706 (ipcp_structures_print): Add ipcp_method_scale_print.
9707 (ipcp_driver): Dump profiling info.
9708 * Makefile.in: Remove integrate.h dependency from tree-inline.o.
9709 Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
9710 * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
9711 (struct inline_data): Add versioning_p, ipa_info, new fields.
9712 (remap_decl, mark_local_for_remap_r, setup_one_parameter,
9713 declare_return_variable): Replace calls to copy_decl_for_inlining with
9715 (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
9717 (copy_decl_for_dup): Rename from copy_decl_for_inlining.
9718 Add argument VERSIONING.
9719 (copy_arguments_for_versioning, copy_static_chain,
9720 function_versionable_p, tree_versionable_function_p,
9721 tree_function_versioning, replace_ref_tree): New functions.
9722 * tree-inline.h: Include varray.h.
9723 (tree_versionable_function_p, tree_function_versioning,
9724 tree copy_decl_for_dup): New declarations.
9726 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
9728 * ipa-cp.c: New file. Contains IPCP specific functionality.
9729 * ipa-prop.h: New file. Contains structures/definitions that can be
9730 used by several interprocedural data flow optimizations (and also IPCP).
9731 * ipa-prop.c: New file.
9732 * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
9733 * common.opt: Add ipa-cp flag.
9734 * timevar.def: Add IPCP optimization.
9735 * tree-optimize.c (init_tree_optimization_passes): Schedule
9737 * tree-pass.h (pass_ipa_cp): Declare.
9739 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
9741 * dwarf2out.c, fold-const.c, ipa-type-escape.c,
9742 loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
9743 tree-sra.c, config/arm/arm.c, config/crx/crx.c,
9744 config/i386/i386.c, config/mips/mips.h,
9745 config/rs6000/rs6000.h, config/sh/sh.c,
9746 config/stormy16/stormy16.c: Fix comment typos.
9748 2005-08-01 Joseph S. Myers <joseph@codesourcery.com>
9751 * c-typeck.c (build_binary_op): Use common_type wrapper on
9753 (common_type): Update comment.
9755 2005-07-31 Steven Bosscher <stevenb@suse.de>
9758 * common.opt (flag_gcse_after_reload): Don't initialize to 2.
9759 (flag_rerun_cse_after_loop): Initialize this to 2 instead.
9760 * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
9762 2005-07-31 Jan Hubicka <jh@suse.cz>
9764 * pretty-print.h (pp_widest_integer): New macro.
9765 * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
9768 2005-07-31 Jan Hubicka <jh@suse.cz>
9770 * output.h (enum section_category): Export from varasm.c
9771 (categorize_decl_for_section): Likewise.
9772 * varasm.c (enum section_category): Kill.
9773 (categorize_decl_for_section): Make global.
9774 * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
9776 * i386.c (ix86_section_threshold): New static variable.
9777 (ix86_in_large_data_p, ix86_encode_section_info,
9778 x86_64_elf_unique_section,
9779 x86_64_elf_select_section): New functions.
9780 (TARGET_ENCODE_SECTION_INFO): Define
9781 (override_options): Enable medium model for PIC.
9782 (ix86_expand_prologue): Expand gen_set_got_rex64.
9783 (legitimate_constant_p): Handle new UNSPECs.
9784 (legitimate_pic_address_disp_p): Likewise.
9785 (legitimize_pic_address): Lower MEDIUM model addressing.
9786 * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
9787 (enum cmodel): Add MEDIUM_PIC.
9788 (SYMBOL_REF_FAR_ADDR_P): New macro.
9789 (SYMBOL_FLAG_FAR_ADDR): New flag.
9790 * i386.md (movdi): Support medium model.
9791 (set_got_rex64): New pattern.
9792 * i386.opt (mlarge-data-threshold): New flag.
9793 * predicates.md (zext_operand/sext_operand): Deal with medium model.
9794 * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
9795 (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
9796 TARGET_ASM_UNIQUE_SECTION): New.
9798 * invoke.texi (-mlarge_data_threshold): Document
9800 2005-07-31 Jan Hubicka <jh@suse.cz>
9802 * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
9803 (coalesce_vars): Likewise.
9804 * tree-ssa-live.c (coalesce_cost): New.
9805 (build_tree_conflict_graph): Use coalesce_cost.
9806 * tree-ssa-live.h (coalesce_cost): Declare.
9808 2005-07-30 Richard Earnshaw <richard.earnshaw@arm.com>
9810 * arm.md (all peepholes for post-increment operations): Delete.
9811 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
9812 (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
9813 (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
9814 (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
9815 (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
9817 2005-07-30 James A. Morrison <phython@gcc.gnu.org>
9819 * fold-const.c (tree_expr_nonnegative_p): Always return true for
9822 2005-07-29 Wolfgang Bangerth <bangerth@dealii.org>
9825 * doc/invoke.texi: Document -rdynamic.
9827 2005-07-30 Joseph S. Myers <joseph@codesourcery.com>
9830 * c-parser.c (c_parser_parms_list_declarator): Call
9831 mark_forward_parm_decls.
9832 * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
9833 decls with visibility structure.
9835 2005-07-30 Paul Brook <paul@codesourcery.com>
9837 * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
9839 2005-07-30 Paul Brook <paul@codesourcery.com>
9841 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
9843 * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
9845 * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
9847 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
9850 * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
9851 nested function declarators.
9852 (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
9853 (grokparms): Call warn_if_shadowing for parameters used within the
9855 (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
9856 not used within the parameter list.
9857 (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
9859 2005-07-30 Jan Hubicka <jh@suse.cz>
9861 * expr.c (expand_expr_real_1): Do not load mem targets into register.
9862 * i386.c (ix86_fixup_binary_operands): Likewise.
9863 (ix86_expand_unary_operator): Likewise.
9864 (ix86_expand_fp_absneg_operator): Likewise.
9865 * optabs.c (expand_vec_cond_expr): Validate dest.
9867 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
9870 * real.c (real_from_string): Also set last bit if there is a
9871 nonzero hex digit beyond GCC's internal precision after ".".
9873 2005-07-29 David Edelsohn <edelsohn@gnu.org>
9875 * config/rs6000/altivec.md: Convert UNSPEC numerical values to
9876 define_constants. Change duplicate values to unassigned numbers.
9877 Change UNSPEC_SUBS to UNSPEC_VSUBS.
9878 (*altivec_vspltsf): New.
9879 (altivec_vperm_v4sf): Delete.
9880 (altivec_vperm_<mode>): Use mode macro V.
9881 (altivec_vsldoi_<mode>): Convert to mode macro pattern.
9882 (altivec_predicate_v4sf): Delete.
9883 (altivec_predicate_<mode>): Use mode macro V.
9884 (*altivec_lvesfx): New.
9885 (*altivec_stvesfx): New.
9886 (vec_realign_load_v4sf): Delete.
9887 (vec_realign_load_<mode>): Use mode macro V.
9888 * config/rs6000/rs6000.c (generate_set_vrsave): Use
9891 2005-07-29 Mark Mitchell <mark@codesourcery.com>
9894 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
9896 * configure: Regenerated.
9898 2005-07-29 Paul Brook <paul@codesourcery.com>
9900 * doc/install.texi: Add link to GFortran binaries wiki page.
9902 2005-07-29 David Ung <davidu@mips.com>
9904 * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
9905 (mips_rtx_cost_data): Add costs for 5kc and 5kf.
9906 * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
9907 * config/mips/mips.md (cpu): Add 5kf name.
9908 (includes): Includes 5k.md.
9909 * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
9910 * doc/invoke.texi (MIPS Options): Updated cpu name supported with
9913 2005-07-29 Diego Novillo <dnovillo@redhat.com>
9916 * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
9917 (cleanup_tree_cfg): ... here.
9918 Call cleanup_tree_cfg_1 until there are no more cleanups to
9921 2005-07-29 James A. Morrison <phython@gcc.gnu.org>
9923 * tree-vrp.c (compare_range_with_value): Return true or false
9924 for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
9925 EQ_EXPR respectively.
9927 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
9929 * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
9932 2005-07-29 Diego Novillo <dnovillo@redhat.com>
9934 * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
9935 (tree_ssa_dominator_optimize): Increment it.
9936 (dump_dominator_optimization_stats): Print it.
9938 2005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
9939 Steven Bosscher <stevenb@suse.de>
9941 PR rtl-optimization/23117
9942 * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
9943 when head == tail. Tidy comment.
9945 2005-07-28 Richard Henderson <rth@redhat.com>
9947 * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
9948 * cselib.c (rtx_equal_for_cselib_p): Likewise.
9949 * jump.c (rtx_renumbered_equal_p): Likewise.
9950 * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
9951 CONST_INT and CONST_DOUBLE.
9952 (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
9953 * reload.c (operands_match_p): Special case CONST_INT and
9954 CONST_DOUBLE; check mode earlier.
9956 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
9959 * c-typeck.c (convert_for_assignment): Do not check
9960 DECL_IN_SYSTEM_HEADER on NULL fundecl.
9962 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
9965 * c-typeck.c (composite_type): Prefer constant size arrays to
9968 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
9971 * real.c (real_from_string): Set last bit if there is a nonzero
9972 hex digit beyond GCC's internal precision.
9974 2005-07-28 Richard Henderson <rth@redhat.com>
9977 * cfgcleanup.c (try_forward_edges): Watch out for end of
9980 2005-07-28 James E Wilson <wilson@specifixinc.com>
9983 * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
9985 2005-07-28 Jan Hubicka <jh@suse.cz>
9987 * Makefile.in (rtl-profile.o): Kill all traces of it.
9988 * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
9989 * coverage.h (rtl_coverage_counter_ref): Kill.
9990 * opts.c (flag_speculative_prefetching_set): Kill.
9991 (flag_loop_optimize_set): New.
9992 (common_handle_option): Disable loop optimizer when profiling;
9993 do not handle speculative prefetching.
9994 * passes.c (init_optimization_passes): Replace pass_profiling combo
9995 by branch_prob pass.
9996 * profile.c (compute_value_histograms): Update for simplified value
9998 (rtl_register_profile_hooks): Kill.
9999 (pass_profiling): Kill.
10000 (rest_of_handle_branch_prob): Do not profile.
10001 * toplev.c (process_options): Remove speculative prefetching.
10002 * toplev.h (flag_tree_based_profiling): Kill.
10003 * tree-profile.c (prepare_instrumented_value,
10004 tree_gen_interval_profiler, tree_gen_pow2_profiler,
10005 tree_gen_one_value_profiler, do_tree_profiling): Update for
10006 simplified datastructures.
10007 * value-prof.c: Add comment that speculative prefetching was dropped;
10008 update rest of file for simplified datastructures.
10009 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
10010 rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
10011 find_mem_reference_1, find_mem_reference_2, find_mem_reference,
10012 rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
10013 rtl_mod_subtract, gen_speculative_prefetch,
10014 rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
10015 rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
10016 (gate_handle_value_profile_transformations,
10017 rest_of_handle_value_profile_transformations,
10018 pass_value_profile_transformations): Kill.
10019 * value-prof.h (histogram_value_t): Remove IL based unions.
10020 (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
10021 rtl_profile_hooks): Remove hooks.
10023 * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
10025 * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
10026 (cgraph_clone_node): Likewise.
10027 * cgraph.h (cgraph_clone_edge): Update prototype.
10028 (cgraph_clone_node): Likewise.
10029 * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
10031 (lookup_recursive_calls): Consider profile.
10032 (cgraph_decide_recursive_inlining): Fix updating; use new
10033 probability argument; use profile.
10034 * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
10035 * tree-inline.c (copy_bb): Update clal of clone_edge.
10036 * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
10038 * invoke.texi (min-inline-recursive-probability): Document.
10040 2005-07-28 Gerald Pfeifer <gerald@pfeifer.com>
10042 * doc/install.texi (Configuration): Update Valgrind homepage.
10044 2005-07-28 Richard Henderson <rth@redhat.com>
10046 PR middle-end/21362
10047 * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
10048 labels we want to delete.
10049 (cfg_layout_merge_blocks): Likewise.
10051 2005-07-28 Richard Henderson <rth@redhat.com>
10054 * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
10055 when expanding to nothing.
10057 2005-07-28 Josh Conner <jconner@apple.com>
10059 * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
10060 (cgraph_decide_inlining_of_small_functions): Likewise.
10062 2005-07-28 Josh Conner <jconner@apple.com>
10064 * ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift
10065 direction of badness if negative.
10066 (cgraph_default_inline_p): Add reason to parameters, and assign it
10068 (cgraph_decide_inlining_of_small_functions): New parameter in call
10069 to cgraph_default_inline_p.
10070 (cgraph_decide_inlining_incrementally): Likewise.
10071 * cgraphunit.c (decide_is_function_needed): Likewise.
10072 * cgraph.h (cgraph_default_inline_p): Likewise.
10074 2005-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
10076 * builtins.c: Fix comment typo(s).
10077 * genautomata.c: Likewise.
10078 * gimplify.c: Likewise.
10079 * tree-dfa.c: Likewise.
10080 * tree-flow-inline.h: Likewise.
10081 * tree-into-ssa.c: Likewise.
10082 * tree-ssa-alias.c: Likewise.
10083 * tree-ssa-ccp.c: Likewise.
10084 * tree-ssa-copy.c: Likewise.
10085 * tree-ssa-dce.c: Likewise.
10086 * tree-ssa-dom.c: Likewise.
10087 * tree-ssa-operands.c: Likewise.
10088 * tree-tailcall.c: Likewise.
10089 * tree-vectorizer.c: Likewise.
10090 * tree-vrp.c: Likewise.
10091 * tree.c: Likewise.
10093 2005-07-28 Jeff Law <law@redhat.com>
10095 * tree-vrp.c (test_for_singularity): Extracted from ...
10096 (simplify_cond_using_ranges): Attempt to simplify a relational
10097 test to NE_EXPR. Dump information when a COND_EXPR is simplified.
10099 2005-07-28 Dorit Nuzman <dorit@il.ibm.com>
10101 PR tree-optimization/22506
10102 * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
10103 phis whose argument is constant.
10105 2005-07-28 J"orn Rennecke <joern.rennecke@st.com>
10107 PR rtl-optimization/18992
10108 Back out this patch:
10109 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10110 PR optimization/12142
10111 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
10112 uses of the register in the SET_SRC. Remove unnecessary argument.
10114 Replace it with this:
10115 * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
10116 if flag_non_call_exceptions is set and the insn may trap, pass
10117 pc_rtx as dest for recursion.
10118 In SET_SRC part of SET case, if dest is already set, pass it down
10121 2005-07-28 Jan Hubicka <jh@suse.cz>
10123 * cfg.c (update_bb_profile_for_threading): Use RDIV.
10124 (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
10125 (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
10127 * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
10128 profile when available.
10130 2005-07-28 Jan Beulich <jbeulich@novell.com>
10132 * config/ia64/ia64.c (ia64_load_pair_ok): New.
10133 (ia64_print_operand): Describe and handle 'X'.
10134 (ia64_register_move_cost): Also handle FP_REGS.
10135 (ia64_preferred_reload_class): Likewise.
10136 (ia64_secondary_reload_class): Likewise.
10137 (ia64_dependencies_evaluation_hook): New local variable c. Initialize
10138 it. Also check for ITANIUM_CLASS_FLDP.
10139 * config/ia64/ia64.h (FP_REGNO_P): New.
10140 (HARD_REGNO_MODE_OK): Remove explusion of TImode.
10141 (reg_class): Add FP_REGS.
10142 (REG_CLASS_NAMES): Adjust for it.
10143 (REG_CLASS_CONTENTS): Likewise.
10144 (REGNO_REG_CLASS): Use FP_REGS where appropriate.
10145 (REG_CLASS_FROM_LETTER): Handle 'x'.
10146 (CLASS_MAX_NREGS): Handle FP_REGS.
10147 (MEMORY_MOVE_COST): Likewise.
10148 * config/ia64/ia64.md (itanium_class): Add fldp.
10149 (type): Handle fldp.
10150 (movti_internal): More allowable operand combinations. Use ldfp8 when
10151 splitting unnecessary. Remove predicable attribute. Adjust
10152 itanium_class attribute.
10153 (smuldi3_highpart): Remove outdated comment.
10154 (mulditi3, umulditi3, rotlti3): New expanders.
10155 (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
10156 (absti2): Disabled new insn for future reference.
10157 Respective new splitters.
10158 * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
10159 * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
10160 * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
10162 2005-07-25 James A. Morrison <phython@gcc.gnu.org>
10164 PR rtl-optimization/23047
10165 * simplify-rtx.c (simplify_const_relational_operation): Respect
10166 flag_wrapv for comparisons with ABS.
10168 2005-07-27 James A. Morrison <phython@gcc.gnu.org>
10170 PR tree-optimization/22493
10171 * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
10172 VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
10174 2005-07-27 Aldy Hernandez <aldyh@redhat.com>
10176 * config/frv/frv.opt (moptimize-membar): New.
10178 * doc/invoke.texi: Document -moptimize-membar and its inverse.
10180 * config/frv/frv.h: Remove machine_function definition.
10182 * config/frv/frv.c (struct frv_io): New.
10183 (struct machine_function): Moved from frv.h. Add has_membar_p.
10184 (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
10185 (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
10186 (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
10187 (frv_optimize_membar_global, frv_optimize_membar): New functions.
10188 (frv_reorg): Call frv_optimize_membar when appropriate.
10189 (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
10190 (frv_expand_builtin): Adjust calls accordingly.
10191 (frv_io_address_cookie): New function.
10192 (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
10193 load or store rather than a special insn. Add ccnstant address and
10194 io-type operands to the membar.
10195 (frv_ifcvt_modify_tests): Unsign regno.
10196 (frv_ifcvt_modify_tests): Same.
10198 * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}. Change
10199 UNSPEC_OPTIONAL_MEMBAR constant.
10200 (builtin_read_<mode>): Delete.
10201 (builtin_write_<mode>): Delete.
10202 ("optional_membar_<mode>"): Add operand.
10204 * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
10205 * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
10206 * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
10207 * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
10208 * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
10209 * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
10210 * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
10211 * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
10212 * testsuite/gcc.target/frv/all-read-write-1.c: New.
10214 2005-07-28 Kaz Kojima <kkojima@gcc.gnu.org>
10216 * df.c (df_uses_record): Handle SCRATCH.
10218 2005-07-28 Steven Bosscher <stevenb@suse.de>
10221 * passes.c (rest_of_decl_compilation): If decl is a type and
10222 we have encountered errors, don't emit debug information.
10224 2005-07-27 Kenneth Zadeck <zadeck@naturalbridge.com>
10226 * params.def: Fixed comment.
10228 2005-07-27 Bjoern Haase <bjoern.m.haase@web.de>
10231 * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
10232 (TARGET_ASM_UNALIGNED_HI_OP): Add.
10233 (TARGET_ASM_UNALIGNED_SI_OP): Add.
10235 2005-07-27 Steven Bosscher <stevenb@suse.de>
10238 * varasm.c (assemble_start_function): Don't do anything that may
10239 require a CFG if the current function is a thunk.
10241 2005-07-25 Geoffrey Keating <geoffk@apple.com>
10243 * doc/install.texi (Prerequisites): Mention that perl is needed
10244 to do export control in libstdc++ targetting Darwin.
10246 2005-07-27 Steven Bosscher <stevenb@suse.de>
10248 PR rtl-optimization/17808
10249 * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
10250 (sched_insns_conditions_mutex_p): Split out from...
10251 (add_dependence): ...here. But don't call it from here.
10252 (add_dependence_list): Check sched_insns_conditions_mutex_p
10253 before calling add_dependence.
10254 (add_dependence_list_and_free): Likewise.
10255 (fixup_sched_groups): Likewise.
10256 (sched_analyze_1): Likewise.
10257 (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
10258 (sched_analyze): Likewise.
10259 (sched_analyze_insn): Likewise.
10260 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
10261 * sched-rgn.c (add_branch_dependences): Likewise. Also, add
10262 dependencies on all COND_EXEC insns to jumps ending basic blocks
10263 when doing intrablock scheduling.
10264 * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
10266 2005-07-27 Jeff Law <law@redhat.com>
10268 * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
10269 meeting a VR_ANTI_RANGE with a VR_RANGE. When intersecting
10270 equivalency sets, correctly handle the case were vr0 has an
10271 equivalency set, but vr1 does not.
10273 2005-07-27 Dorit Nuzman <dorit@il.ibm.com>
10275 PR tree-optimization/23073
10276 * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
10277 vect_print_dump_info before fprintf.
10279 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
10281 PR tree-optimize/22348
10282 * tree-ssa-loop-niter.c (number_of_iterations_cond):
10283 Fold the partial computation.
10285 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
10287 PR tree-optimization/22325
10288 * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
10290 * tree-scalar-evolution.c (scev_const_prop): Add generic final
10292 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
10293 (force_var_cost): ... this function.
10294 (compute_phi_arg_on_exit): Export.
10296 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
10298 PR tree-optimization/20773
10299 * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
10302 2005-07-27 Richard Guenther <rguenther@suse.de>
10304 * tree-ssa-structalias.c (push_fields_onto_fieldstack):
10305 Avoid pushing again if current struct contains only
10306 fields we decomposed.
10308 2005-07-27 Jan Hubicka <jh@suse.cz>
10310 PR tree-optimization/22574
10311 * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
10314 * tree-tailcall.c (decrease_profile): New function.
10315 (eliminate_tail_call): Use it.
10317 * cgraphunit.c (cgraph_function_and_variable_visibility): Set
10318 visibility flags correctly in whole program mode.
10320 2005-07-26 Steve Ellcey <sje@cup.hp.com>
10322 PR rtl-optimization/22472
10323 * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
10325 2005-07-26 Steven Bosscher <stevenb@suse.de>
10327 PR tree-optimization/22504
10328 * tree-complex.c (expand_complex_addition): Use 'code' instead
10329 of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
10331 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
10333 * config.gcc (cpu_type): Add frv case.
10334 (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
10335 (supported_defaults): Add fr550 case.
10337 2005-07-26 Diego Novillo <dnovillo@redhat.com>
10340 * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
10341 whether a pointer of type T * may point to objects of type T *.
10343 2005-07-26 DJ Delorie <dj@redhat.com>
10345 * configure: Regenerate.
10347 2005-07-26 Dale Johannesen <dalej@apple.com>
10349 * postreload-gcse.c (alloc_mem): Start CUID numbering at 1.
10351 2005-07-26 Mark Mitchell <mark@codesourcery.com>
10353 * doc/install.texi (--with-build-sysroot): Fix grammatical error.
10354 Clarify use of "build" in name.
10356 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
10358 * doc/extend.texi (Raw read/write Functions): New section.
10359 * testsuite/gcc.target/frv/all-builtin-read8.c: New.
10360 * testsuite/gcc.target/frv/all-builtin-read16.c: New.
10361 * testsuite/gcc.target/frv/all-builtin-read32.c: New.
10362 * testsuite/gcc.target/frv/all-builtin-read64.c: New.
10363 * testsuite/gcc.target/frv/all-builtin-write8.c: New.
10364 * testsuite/gcc.target/frv/all-builtin-write16.c: New.
10365 * testsuite/gcc.target/frv/all-builtin-write32.c: New.
10366 * testsuite/gcc.target/frv/all-builtin-write64.c: New.
10367 * config/frv/frv.c: Add bdesc_loads global.
10368 Add bdesc_stores global.
10369 (frv_init_builtins): Add support for __builtin_{read/write}*.
10370 (frv_volatile_memref): New.
10371 (frv_expand_load_builtin): New.
10372 (frv_expand_store_builtin): New.
10373 * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
10374 FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
10375 FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
10376 FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
10377 * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
10378 UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
10379 (builtin_read_<mode>): New.
10380 (builtin_write_<mode>): New.
10381 (builtin_write64): New.
10382 (optional_membar_<mode>): New.
10384 2005-07-26 J"orn Rennecke <joern.rennecke@st.com>
10386 * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
10387 (rather than units) against HOST_BITS_PER_WIDE_INT.
10389 2005-07-26 Kazu Hirata <kazu@codesourcery.com>
10391 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
10392 ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
10393 ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
10394 config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
10397 * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
10398 tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
10399 config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
10401 * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
10403 2005-07-26 Richard Guenther <rguenther@suse.de>
10405 PR tree-optimization/22486
10406 * fold-const.c (fold_unary): Fold away useless component
10407 references of the form (T *)&T.x, if the address
10410 2005-07-25 James E Wilson <wilson@specifixinc.com>
10412 * dwarf2out.c (add_call_src_coords_attributes): New.
10413 (gen_inlined_subroutine_die): Call it.
10414 (maybe_emit_file, init_file_table): Add comments.
10415 (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
10417 * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
10418 (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
10419 * tree.h (BLOCK_SOURCE_LOCATION): New.
10420 (struct tree_block): New field locus.
10422 2005-07-26 Andreas Schwab <schwab@suse.de>
10424 PR rtl-optimization/23043
10425 * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
10426 when allocating a struct unoccr.
10428 2005-07-25 Richard Henderson <rth@redhat.com>
10431 * tree-complex.c (gate_no_optimization): True if errors.
10432 * Makefile.in (tree-complex.o): Update dependencies.
10434 2005-07-25 Aldy Hernandez <aldyh@redhat.com>
10436 * config/frv/predicates.md (integer_register_operand): Use
10437 GPR_AP_OR_PSEUDO_P.
10439 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
10442 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
10444 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
10446 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
10448 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
10449 types when flag_unsafe_math_optimizations is true.
10451 2005-07-25 Mark Mitchell <mark@codesourcery.com>
10453 * gcc.c (option_map): Add --sysroot.
10454 (process_command): Handle --sysroot.
10455 (display_help): Document it.
10456 * doc/cppopts.tex (-isysroot): Document.
10457 * doc/invoke.texi (--sysroot): Document.
10458 * doc/install.texi (--with-build-sysroot): Document.
10460 * Makefile.in (inhibit_libc): New variable.
10461 (INHIBIT_LIBC_CFLAGS): Likewise.
10462 (LIBGCC2_CFLAGS): Include
10463 $(INHIBIT_LIBC_CFLAGS).
10464 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
10465 ($(T)crtbegin.o): Do not use @inhibit_libc@.
10466 ($(T)crtend.o): Likewise.
10467 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
10468 ($(T)crtendS.o): Likewise.
10469 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
10470 ($(T)crtendT.o): Likewise.
10471 (stmp-fixinc): Do not complain about missing headers if
10473 * configure.ac (inhibit_libc): Set it to true/false.
10474 (--with-build-sysroot): New option. Use it to set
10476 * configure: Regenerated.
10478 2005-07-25 Manfred Hollstein <mh@suse.com>
10480 * calls.c (store_one_arg): Fix unsigned comparison warning.
10482 2005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
10485 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
10486 (ggc_print_statistics): Initialize variable before use.
10488 2005-07-25 Richard Guenther <rguenther@suse.de>
10490 * tree-dfa.c (mark_new_vars_to_rename): Protect against
10491 calling with a PHI_NODE argument.
10493 * tree-flow-inline.h (overlap_subvar): Protect against
10496 2005-07-25 Paolo Bonzini <bonzini@gnu.org>
10498 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
10499 * configure: Regenerate.
10501 2005-07-25 Ira Rosen <irar@il.ibm.com>
10503 * expr.c (highest_pow2_factor): Make extern.
10504 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
10505 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
10506 record_array_differ_p, array_ptr_differ_p): Likewise.
10507 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
10508 additional cases. Call the above functions.
10509 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
10510 base_object_differ_p when there are two base objects. Otherwise, compare
10511 base address and offset. Call may_alias_p.
10512 (dump_data_reference): Use a correct field name.
10513 (analyze_array): Make static. Initialize new data-ref fields.
10514 (analyze_indirect_ref): New function.
10515 (init_data_ref): Initialize new data-ref fields.
10516 (strip_conversion): Moved from tree-vect-analyze.c.
10517 (analyze_offset_expr, get_ptr_offset, address_analysis,
10518 object_analysis): Likewise.
10519 (analyze_offset): New function.
10520 (create_data_ref): Likewise.
10521 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
10522 dimensions for ARRAY_REFs only.
10523 (build_classic_dist_vector): Make static.
10524 (access_functions_are_affine_or_constant_p): Call macro to get the
10525 address of access functions.
10526 (compute_all_dependences): Add new parameter
10527 compute_self_and_read_read_dependences. Compute self and read-read
10528 dependences if it is true.
10529 (find_data_references_in_loop): Call create_data_ref. Initialize new
10531 (compute_data_dependences_for_loop): Add new parameter
10532 compute_self_and_read_read_dependences. Remove parameter nb_loops,
10533 compute nb_loops. Call compute_all_dependences,
10534 build_classic_dist_vector and build_classic_dir_vector with correct
10536 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
10537 with correct parameters. Compare dimensions for ARRAY_REFs only.
10538 (free_data_refs): Call macro to free access functions.
10539 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
10540 fields from stmt_vinfo.
10541 (struct base_object_info): New structure.
10542 (struct data_reference): Move fields to base_object_info. Add fields
10543 first_location and object_info for above structures. Move fields from
10544 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
10545 aligned_to. Add macros to access the new fields.
10546 Update functions declarations.
10547 * tree-flow.h (is_aliased_with): Declare.
10548 * tree-loop-linear.c (linear_transform_loops): Call
10549 compute_data_dependences_for_loop with correct parameters.
10550 * tree-ssa-alias.c (is_aliased_with): New function.
10551 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
10552 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
10553 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
10554 vect_base_addr_differ_p, compute_subscript_distance and
10555 build_classic_dist_vector. Add printings. Check absolute value of
10557 (vect_analyze_data_ref_dependences): Go through ddrs instead of
10559 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
10560 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
10561 to bytes. Add printing.
10562 (vect_compute_data_refs_alignment): Go through loads and stores in one
10564 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
10565 vect_analyze_data_ref_access): Likewise.
10566 (vect_analyze_pointer_ref_access): Remove.
10567 (vect_address_analysis, vect_object_analysis): Likewise.
10568 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
10569 and analyze data-refs in the loop.
10570 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
10571 fields of data-ref instead of stmt. Add init to the offset from the
10573 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
10574 (vect_update_init_of_dr): Likewise.
10575 (vect_update_inits_of_drs): Go through loads and stores in one loop.
10576 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
10578 (new_loop_vec_info): Initialize new fields.
10579 (destroy_loop_vec_info): Free new fields.
10580 (vect_strip_conversion): Remove.
10581 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
10582 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
10583 datarefs. Add new field ddrs.
10584 Add macros for the new fields access.
10585 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
10586 base_aligned_p, misalignment, memtag, ptr_info and subvars.
10587 Remove their macros.
10588 * tree.h (highest_pow2_factor): Declare.
10590 2005-07-25 Jakub Jelinek <jakub@redhat.com>
10592 * calls.c (store_one_arg): Check for sibling call MEM arguments
10593 from already clobbered incoming argument area.
10595 2005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10597 * c-common.c (check_missing_format_attribute): New.
10598 * c-common.h (check_missing_format_attribute): Likewise.
10599 * c-typeck.c (convert_for_assignment): Use it.
10601 2005-07-24 Andreas Schwab <schwab@suse.de>
10603 * config/m68k/m68k.md ("extendqidi2"): When source is an address
10604 register use a word move. Correct operand of ext.w in 68000 code.
10606 2005-07-23 Mark Mitchell <mark@codesourcery.com>
10608 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
10609 variables as declarations, rather than definitions.
10611 2005-07-24 Ira Rosen <irar@il.ibm.com>
10613 PR tree-optimization/22526
10614 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
10617 2005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10619 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
10620 that C99 reserve for future use. Use it to define clog10,
10621 clog10f and clog10l.
10623 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10625 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
10626 * configure.ac: Check for -Wmissing-format-attribute.
10628 * configure: Regenerate.
10630 2005-07-23 Richard Henderson <rth@redhat.com>
10632 PR tree-optimization/22623
10633 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
10635 2005-07-23 Giovanni Bajo <giovannibajo@libero.it>
10638 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
10640 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10642 * Makefile.in (C_TREE_H): Update dependencies.
10643 * c-tree.h: Include toplev.h.
10644 * diagnostic.h (diagnostic_set_info): Add format attribute.
10645 * rtl-error.c (diagnostic_for_asm): Likewise.
10647 2005-07-23 Chao-ying Fu <fu@mips.com>
10649 * config/mips/mips-dsp.md: New file.
10650 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
10651 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
10653 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
10654 MIPS_BUILTIN_BPOSGE32.
10655 (mips_expand_builtin_direct): Add one parameter to indicate that
10656 builtin functions need to return a value.
10657 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
10659 (mips_regno_to_class): Add classes for 12 new DSP registers.
10660 (mips_subword): Change to check four HI registers.
10661 (mips_output_move): Output move to and from 6 new DSP accumulators.
10662 (override_options): Make sure -mdsp and -mips16 are not used together.
10663 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
10665 (mips_conditional_register_usage): Disable 6 new DSP accumulators
10667 (print_operand): Add 'q' for printing DSP accumulators.
10668 (mips_cannot_change_mode_class): Check ACC_REGS.
10669 (mips_secondary_reload_class): Check ACC_REGS.
10670 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
10671 (mips_register_move_cost): Check ACC_REGS.
10672 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
10673 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
10674 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
10675 (dsp_bdesc): New array.
10676 (bdesc_arrays): Add DSP builtin function table.
10677 (mips_prepare_builtin_arg): Check predicate again after
10679 (mips_expand_builtin): Add one more parameter to
10680 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
10681 MIPS_BUILTIN_BPOSGE32.
10682 (mips_init_builtins): Initialize new function types.
10683 (mips_expand_builtin_direct): Check if builtin functions need to
10684 return a value and pass operands properly.
10685 (mips_expand_builtin_bposge): New function.
10686 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
10687 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
10688 (FIRST_PSEUDO_REGISTER): Increase to 188.
10689 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
10690 Update for 12 new DSP registers.
10691 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
10692 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
10693 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
10694 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
10695 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
10696 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
10697 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
10698 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
10699 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
10700 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
10701 (REGISTER_NAMES): Add names for 12 new DSP registers.
10702 * config/mips/mips.md: Include mips-dsp.md.
10703 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
10704 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
10705 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
10706 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
10707 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
10708 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
10709 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
10710 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
10711 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
10712 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
10713 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
10714 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
10715 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
10716 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
10717 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
10718 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
10719 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
10720 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
10721 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
10722 (UNSPEC_RDDSP): New constants.
10723 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
10724 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
10726 * config/mips/mips.opt (-mdsp): New option.
10727 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
10728 (reg_imm10_operand): New predicates.
10729 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
10730 * doc/invoke.texi (-mdsp): Document new option.
10732 2005-07-22 DJ Delorie <dj@redhat.com>
10734 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
10736 * tree-inline.c (inlinable_function_p): Likewise.
10738 2005-07-22 Mark Mitchell <mark@codesourcery.com>
10741 * toplev.c (check_global_declarations): Do not mark undefined
10742 variables as DECL_IGNORED_P.
10743 * varasm.c (first_global_object_name): GTY it.
10744 (weak_global_object_name): Likewise.
10745 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
10746 a string to go into {weak,first}_global_object_name.
10748 2005-07-22 DJ Delorie <dj@redhat.com>
10750 * c-format.c (check_function_format): Change warning control
10751 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
10753 2005-07-22 Diego Novillo <dnovillo@redhat.com>
10755 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
10756 &PTR->FLD a dereference of PTR.
10757 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
10758 a potential dereference of PTR.
10760 2005-07-22 J"orn Rennecke <joern.rennecke@st.com>
10762 PR rtl-optimization/20370
10763 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
10764 call allocate_reg_info if necessary.
10766 PR rtl-optimization/21848
10767 * calls.c (emit_library_call_value_1): For const functions, add
10768 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
10770 PR rtl-optimization/22445
10771 * cselib.c (target.h): Include.
10772 (rtx_equal_for_cselib_p): Allow commutative matches.
10773 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
10774 Remove MODE parameter. Changed all callers.
10776 PR rtl-optimization/22258
10777 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
10779 (try_combine): Use likely_spilled_retval_p.
10781 2005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
10783 * config.gcc: Add crx-elf support.
10785 * doc/contrib.texi: Mention crx.
10786 * doc/extend.texi: Document crx extensions.
10787 * doc/install.texi: Document crx install.
10788 * doc/invoke.texi: Document crx options.
10789 * doc/md.texi: Document crx constraints.
10791 * config/crx/crx-protos.h: New file.
10792 * config/crx/crx.c: New file.
10793 * config/crx/crx.h: New file.
10794 * config/crx/crx.md: New file.
10795 * config/crx/crx.opt: New file.
10796 * config/crx/t-crx: New file.
10798 2005-07-22 Manfred Hollstein <mh@suse.com>
10800 * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
10802 (int_add_graph_edge): Likewise.
10803 (collapse_nodes): Likewise.
10804 (process_unification_queue): Likewise.
10806 2005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10807 Laurent GUERBY <laurent@guerby.net>
10809 PR tree-optimization/22336
10810 * function.c (record_block_change): Check for
10811 cfun->ib_boundaries_block.
10813 2005-07-21 James A. Morrison <phython@gcc.gnu.org>
10815 * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
10816 (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
10818 2005-07-21 DJ Delorie <dj@redhat.com>
10820 * toplev.c (warn_deprecated_use): Add warning control to warning
10822 * c-typeck.c (parser_build_binary_op): Likewise.
10823 (c_finish_if_stmt): Likewise.
10824 * c-common.c (check_function_sentinel): Likewise.
10825 (check_nonnull_arg): Likewise.
10827 2005-07-21 Richard Henderson <rth@redhat.com>
10830 * tree-complex.c (complex_ssa_name_components): New.
10831 (cvc_lookup): Allow entry not found.
10832 (create_components): Remove.
10833 (create_one_component_var, get_component_var): New.
10834 (get_component_ssa_name, set_component_ssa_name): New.
10835 (extract_component): Use get_component_ssa_name.
10836 (update_complex_components): Use set_component_ssa_name.
10837 (update_complex_components_on_edge): Likewise.
10838 (update_phi_components): Create new PHI nodes directly, instead
10839 of adding insns to edges.
10840 (tree_lower_complex): Allocate and free complex_variable_components
10841 and complex_ssa_name_components here.
10843 2005-07-20 Daniel Berlin <dberlin@dberlin.org>
10845 * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
10846 revert to returning false.
10848 2005-07-21 Uros Bizjak <uros@kss-loka.si>
10851 * config/i386/i386.md (sse_movhlps): Fix vec_select values.
10853 2005-07-21 Uros Bizjak <uros@kss-loka.si>
10856 * config/i386/i386.md (cmpxf): Change operand constraints
10857 to "nonmemory_operand".
10859 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
10861 * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
10863 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
10865 PR middle-end/21180
10866 * fold-const.c (fold_build1): Add checksum for the operands.
10867 (fold_build2): Likewise.
10868 (fold_build3): Likewise.
10870 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
10872 PR middle-end/19055
10873 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
10875 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
10877 * common.opt (-fforward-propagate): Committed by mistake,
10880 2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
10882 * reg-stack.c: Fix comment typo(s).
10883 * tree-ssa-operands.c: Likewise.
10884 * tree-vectorizer: Likewise.
10886 2005-07-21 Nick Clifton <nickc@redhat.com>
10888 * config/sh/symbian.c: Replace C++ style line comments with C
10889 style line comments.
10890 (symbian_add_attribute): Do not use a ? operator on the LHS of
10892 (sh_symbian_handle_dll_attribute): Change the type of the
10893 method vector to "VEC(tree,gc)*" and use vector accessor
10894 macros to walk over the elements.
10895 (symbian_export_vtable_and_rtti_p): Likewise.
10896 (symbian_class_needs_attribute_p): Likewise.
10898 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
10901 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
10902 initialize targetm.resolve_overloaded_builtin here.
10903 (altivec_expand_overloaded_builtin): Make it non-static.
10904 * config/rs6000/rs6000-protos.h
10905 (altivec_expand_overloaded_builtin): New prototype.
10906 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
10907 targetm.resolve_overloaded_builtin here.
10908 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
10910 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
10911 Zdenek Dvorak <dvorakz@suse.cz>
10913 PR tree-optimization/19210
10914 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
10916 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
10917 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
10918 rely on unproven assumptions.
10919 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
10920 * tree-flow.h (number_of_iterations_exit): Add final parameter.
10921 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
10922 to number_of_iterations_exit.
10923 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
10924 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
10925 * tree-ssa-loop-niter.c (find_loop_niter,
10926 estimate_numbers_of_iterations_loop): Likewise.
10927 (number_of_iterations_exit): Honor the new options.
10928 * doc/invoke.texi (Wunsafe-loop-optimizations,
10929 funsafe-loop-optimizations): Document them.
10931 2005-07-21 Richard Sandiford <richard@codesourcery.com>
10933 PR rtl-optimization/22167
10934 * gcse.c (hoist_code): Fix hoist_exprs[] check.
10936 2005-07-20 Adam Nemet <anemet@lnxw.com>
10938 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
10939 __do_global_dtors_aux longcall.
10941 2005-07-20 Kazu Hirata <kazu@cs.umass.edu>
10943 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
10944 (old_special_pred_table): Don't reference
10945 SPECIAL_MODE_PREDICATES.
10946 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
10947 * config/arc/arc.h: Don't mention PREDICATE_CODES.
10948 * config/sh/predicates.h: Don't mention
10949 SPECIAL_MODE_PREDICATES.
10950 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
10953 2005-07-20 DJ Delorie <dj@redhat.com>
10955 * config.gcc: Add m32c-elf support.
10957 * doc/contrib.texi: Mention m32c.
10958 * doc/extend.texi: Document m32c extensions.
10959 * doc/install.texi: Mention m32c.
10960 * doc/invoke.texi: Document m32c options.
10961 * doc/md.texi: Document m32c constraints.
10963 * config/m32c/addsub.md: New file.
10964 * config/m32c/bitops.md: New file.
10965 * config/m32c/cond.md: New file.
10966 * config/m32c/jump.md: New file.
10967 * config/m32c/m32c-lib1.S: New file.
10968 * config/m32c/m32c-lib2.c: New file.
10969 * config/m32c/m32c-modes.def: New file.
10970 * config/m32c/m32c-pragma.c: New file.
10971 * config/m32c/m32c-protos.h: New file.
10972 * config/m32c/m32c.abi: New file.
10973 * config/m32c/m32c.c: New file.
10974 * config/m32c/m32c.h: New file.
10975 * config/m32c/m32c.md: New file.
10976 * config/m32c/m32c.opt: New file.
10977 * config/m32c/minmax.md: New file.
10978 * config/m32c/mov.md: New file.
10979 * config/m32c/muldiv.md: New file.
10980 * config/m32c/predicates.md: New file.
10981 * config/m32c/prologue.md: New file.
10982 * config/m32c/shift.md: New file.
10983 * config/m32c/t-m32c: New file.
10985 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
10987 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
10988 (stack_protect_set, stack_protect_test): New expanders.
10989 (stack_protect_set_si, stack_protect_set_si_media,
10990 stack_protect_set_di_media, stack_protect_test_si,
10991 stack_protect_test_si_media, stack_protect_test_di_media):
10994 2005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
10996 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
10998 2005-07-20 James A. Morrison <phython@gcc.gnu.org>
11000 * tree.h (tree_expr_nonzero_p): Export.
11001 * fold-const.c (tree_expr_nonzero_p): Likewise.
11002 Return true for CALL_EXPRs that are alloca calls.
11003 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
11005 * tree-flow.h (expr_computes_nonzero): Remove.
11006 * tree-vrp.c (expr_computes_nonzero): Remove.
11007 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
11008 (extract_range_from_unary_expr): Likewise.
11009 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
11010 tree_expr_nonzero_p.
11012 2005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
11014 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
11015 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
11016 extra arg "picreg" and use it instead of pic_offset_table_rtx.
11017 All callers changed.
11018 (frame_related_constant_load): New arg "related" which controls
11019 setting of RTX_FRAME_RELATED_P. All callers changed.
11020 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
11021 (bfin_expand_prologue): Add stack limit checking.
11022 * config/bfin/bfin.md (trapifcc): New pattern.
11024 * config/bfin/bfin.c: Include "langhooks.h".
11025 (def_builtin): Go through lang_hooks to call builtin_function.
11027 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
11028 * config/bfin/predicates.md (symbol_ref_operand): New.
11029 (call_insn_operand): Delete. All callers changed to use
11030 register_no_elim_operand.
11031 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
11033 (function_arg): Use it to generate the call's operand 2.
11034 (bfin_longcall_p): New function.
11035 (bfin_expand_call): Extra arg "cookie". All callers and declaration
11036 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
11037 determine if the address needs to be in a REG.
11038 (bfin_handle_longcall_attribute): New function.
11039 (bfin_attribute_table): Add "longcall" and "shortcall".
11040 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
11041 (CUMULATIVE_ARGS): New member call_cookie.
11042 (PREDICATE_CODES): Add symbol_ref_operand.
11043 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
11044 extra USE to the pattern.
11045 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
11046 New patterns, split off call_insn, sibcall_insn, call_value_insn and
11047 sibcall_value_insn; now the new patterns handle direct calls and the
11048 old ones indirect calls.
11049 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
11051 2005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
11053 * doc/trouble.texi: Update section on handling of empty loops.
11055 2005-07-20 Kazu Hirata <kazu@codesourcery.com>
11057 * config.gcc: Remove support for sparc-*-openbsd*,
11058 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
11060 * config.host: Remove support for i860-*-sysv4* as a host.
11061 * config/i860/*, config/ip2k/*, config/ns32k/*,
11062 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
11063 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
11064 mention obsolete ports.
11066 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
11068 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
11069 soft frame pointer.
11070 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
11071 of frame_pointer_rtx.
11072 (sh_expand_epilogue): Likewise.
11073 (sh_set_return_address): Likewise.
11074 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
11075 instead of FRAME_POINTER_REGNUM if needed. Add elimination
11076 offsets from FRAME_POINTER_REGNUM.
11077 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
11078 (sh_register_names): Add initializer for sfp.
11079 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
11080 (VALID_REGISTER_P): Likewise.
11081 (FIRST_PSEUDO_REGISTER): Update.
11082 (DWARF_FRAME_REGISTERS): Define.
11083 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
11084 (HARD_FRAME_POINTER_REGNUM): Define.
11085 (FRAME_POINTER_REGNUM): Redefine.
11086 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
11087 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
11088 from FRAME_POINTER_REGNUM.
11089 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
11090 FRAME_POINTER_REGNUM.
11091 (REG_CLASS_CONTENTS): Add sfp.
11092 (REG_ALLOC_ORDER): Likewise.
11093 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
11094 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
11095 of frame_pointer_rtx.
11096 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
11098 2005-07-19 James A. Morrison <phython@gcc.gnu.org>
11100 * fold-const.c (tree_expr_nonnegative_p): Only return true for
11101 ABS_EXPR when flag_wrapv is false because of INT_MIN.
11102 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
11104 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
11107 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
11109 Make CONSTRUCTOR use VEC to store initializers.
11110 * c-common.c (complete_array_type): Update to cope with VEC in
11112 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
11113 (pp_c_constructor_elts): New function.
11114 * c-pretty-print.h (pp_c_constructor_elts): Declare.
11115 * c-typeck.c (build_function_call, build_c_cast, digest_init,
11116 struct constructor_stack, struct initializer_stack,
11117 constructor_elements, push_init_level, pop_init_level,
11118 add_pending_init, find_init_member, output_init_element): Update to
11119 cope with VEC in CONSTRUCTOR_ELTS.
11120 * coverage.c (build_fn_info_value, build_ctr_info_value,
11121 build_gcov_info): Likewise.
11122 * expr.c (categorize_ctor_elements_1, store_constructor,
11123 expand_expr_real_1): Likewise.
11124 * fold-const.c (fold_ternary): Likewise.
11125 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
11126 gimplify_init_constructor, gimplify_expr): Likewise.
11127 * tree-dump.c (dequeue_and_dump): Likewise.
11128 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
11130 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
11132 * tree-sra.c (generate_element_init_1): Likewise.
11133 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
11134 * tree-ssa-operands.c (get_expr_operands): Likewise.
11135 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
11136 * tree-vect-transform.c (vect_get_vec_def_for_operand):
11137 (get_initial_def_for_reduction): Likewise.
11138 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
11139 value handle in annotations.
11140 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
11141 tree_node_structure): Add support for constr_kind.
11142 (build_vector_from_ctor, build_constructor_single,
11143 build_constructor_from_list): New functions.
11144 (build_constructor): Update to take a VEC instead of a TREE_LIST.
11145 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
11146 Update to cope with VEC in CONSTRUCTOR_ELTS.
11147 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
11148 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
11149 CONSTRUCTOR_APPEND_ELT): New macros.
11150 (struct constructor_elt, struct tree_constructor): New data types.
11151 (union tree_node): Add tree_constructor field.
11152 * treestruct.def: Define TS_CONSTRUCTOR.
11153 * varasm.c (const_hash_1, compare_constant, copy_constant,
11154 compute_reloc_for_constant, output_addressed_constants,
11155 initializer_constant_valid_p, output_constant,
11156 array_size_for_constructor, output_constructor): Update to cope with
11157 VEC in CONSTRUCTOR_ELTS.
11158 * vec.h (VEC_empty, VEC_copy): New macros.
11160 2005-07-19 Devang Patel <dpatel@apple.com>
11162 * dbxout.c (dbxout_type): Check Objective-C++ lang.
11164 2005-07-19 Richard Henderson <rth@redhat.com>
11167 * gimplify.c (gimplify_expr): Use main variant type for the temp
11168 destination for a discarded volatile read.
11169 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
11170 casts between non-void types that change volatility.
11172 2005-07-15 DJ Delorie <dj@redhat.com>
11174 * toplev.h: Add comment about the first parameter for warning().
11175 * errors.h: Likewise.
11177 * c.opt (Wpragmas): New.
11178 * doc/invoke.texi: Document it.
11180 * function.c (do_warn_unused_parameter): Add warning control to
11182 * c-decl.c (warn_if_shadowing): Likewise.
11183 * c-lex.c (cb_def_pragma): Likewise.
11184 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
11185 (pop_alignment): Likewise.
11186 (handle_pragma_pack): Likewise.
11187 (apply_pragma_weak): Likewise.
11188 (handle_pragma_weak): Likewise.
11189 (handle_pragma_redefine_extname): Likewise.
11190 (add_to_renaming_pragma_list): Likewise.
11191 (handle_pragma_extern_prefix): Likewise.
11192 (maybe_apply_renaming_pragma): Likewise.
11193 (handle_pragma_visibility): Likewise.
11195 * config/c4x/c4x-c.c (BAD): Likewise.
11196 (c4x_parse_pragma): Likewise.
11197 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
11198 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
11199 (rs6000_pragma_longcall): Likewise.
11200 * config/v850/v850-c.c (pop_data_area): Likewise.
11201 (ghs_pragma_section): Likewise.
11202 (ghs_pragma_section): Likewise.
11203 (ghs_pragma_interrupt): Likewise.
11204 (ghs_pragma_starttda): Likewise.
11205 (ghs_pragma_startsda): Likewise.
11206 (ghs_pragma_startzda): Likewise.
11207 (ghs_pragma_endtda): Likewise.
11208 (ghs_pragma_endsda): Likewise.
11209 (ghs_pragma_endzda): Likewise.
11211 2005-07-19 Danny Berlin <dberlin@dberlin.org>
11212 Kenneth Zadeck <zadeck@naturalbridge.com>
11214 * Makefile.in: Removed tree-promote-statics.c
11215 * tree-promote-statics.c: Removed.
11216 * common.opt: Removed flag-promote-statics.
11218 * passes.c: Removed tree-promote-statics pass.
11219 * tree-pass.h: Ditto.
11220 * timevar.def: Removed TV_PROMOTE_STATICS.
11223 2005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
11225 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
11227 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
11229 2005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11232 * c-common.c (check_function_arguments): Call
11233 'check_function_format' if either -Wformat or
11234 -Wmissing-format-attribute are specified.
11235 * c-format.c (check_function_format): Check -Wformat before
11236 calling 'check_format_info'.
11237 * c-opts.c (c_common_post_options): Don't warn for
11238 -Wmissing-format-attribute without -Wformat.
11239 * c-typeck.c (convert_for_assignment): Detect additional cases for
11240 -Wmissing-format-attribute.
11241 * doc/invoke.texi (-Wmissing-format-attribute): Document new
11244 2005-07-19 Richard Guenther <rguenther@suse.de>
11246 * config/i386/i386.md (lrint<mode>2): Use temporary
11247 instead of clobbering non-existent memory.
11249 2005-07-19 Nick Clifton <nickc@redhat.com>
11251 * config/avr/avr.c (legitimate_address_p): Fix debugging print
11252 statement to avoid displaying ASCII control characters.
11254 2005-07-19 Ben Elliston <bje@au.ibm.com>
11256 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
11257 * cfganal.c (find_edge_index): Ditto.
11258 * combine.c (combine_instructions): Ditto.
11259 * ddg.c (create_scc): Ditto.
11260 (find_successors): Ditto.
11261 (find_predecessors): Ditto.
11262 (find_nodes_on_paths): Ditto.
11263 (longest_simple_path): Ditto.
11264 * flow.c (update_life_info): Ditto.
11265 (count_or_remove_death_notes): Ditto.
11266 (clear_log_links): Ditto.
11267 * modulo-sched.c (generate_reg_moves): Ditto.
11268 (find_max_asap): Ditto.
11269 (find_max_hv_min_mob): Ditto.
11270 (find_max_dv_min_mob): Ditto.
11271 * sbitmap.c (sbitmap_first_set_bit): Ditto.
11272 * sched-rgn.c (extract_edgelst): Ditto.
11273 * tree-into-ssa.c (prepare_names_to_update): Ditto.
11274 (dump_update_ssa): Ditto.
11275 (ssa_names_to_replace) Ditto.
11276 (switch_virtuals_to_full_rewrite): Ditto.
11277 (update_ssa): Ditto.
11278 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
11280 2005-07-18 Daniel Berlin <dberlin@dberlin.org>
11282 Fix PR tree-optimization/22483
11284 * tree-complex.c (create_components): Use
11285 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
11286 * tree-flow-inline.h (fill_referenced_var_vec): New function.
11287 * tree-flow.h (safe_referenced_var_iterator): New structure.
11288 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
11289 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
11290 safe_referenced_var iterator.
11291 (add_type_alias): Ditto.
11293 2005-07-19 Steven Bosscher <stevenb@suse.de>
11295 * loop-init.c (rest_of_handle_loop2): Remove.
11296 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
11297 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
11298 (pass_rtl_loop_init, pass_rtl_loop_done,
11299 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
11300 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
11301 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
11302 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
11303 pass_tree_loop_done, and pass_tree_unswitch.
11304 (gate_loop): Rename to gate_tree_loop.
11305 * passes.c (init_optimization_passes): Update for renamed tree
11306 loop passes. Add the new loop2 passes as subpasses of loop2.
11307 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
11308 Update for the renamed tree loop passes.
11310 2005-07-18 Ian Lance Taylor <ian@airs.com>
11312 PR middle-end/22057
11313 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
11314 blocks when optimizing.
11316 2005-07-18 Steve Ellcey <sje@cup.hp.com>
11318 * common.opt (frename-registers): Initialize to 2.
11320 (fgcse-after-reload): Ditto.
11321 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
11322 (process_options): Only change flag_web, flag_rename_registers,
11323 and flag_rerun_cse_after_loop if not explicitly set by user.
11325 2005-07-18 Jan Beulich <jbeulich@novell.com>
11327 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
11328 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
11329 in 64-bit mode the same as DImode in 32-bit mode.
11330 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
11331 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
11332 mode. Add new mode parameter.
11333 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
11334 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
11335 x86_64_shift_adj): New expanders.
11336 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
11337 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
11339 Respective new splitters. Use renamed shift splitter helpers in 32-bit
11340 DImode shift splitters.
11341 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
11342 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
11345 2005-07-18 Jan Beulich <jbeulich@novell.com>
11347 * i386.md (movdi_extzv_1): New.
11348 (zero_extendhidi2): Combine alternatives and never force use of
11350 (zero_extendqidi2): Likewise. Don't restrict input selection.
11352 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
11354 Fix PR tree-optimization/22531
11355 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
11358 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
11360 * tree-promote-statics.c (pass_promote_statics): Change dump file
11363 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
11365 * tree-optimize.c (init_tree_optimization_passes): Add
11366 pass_eliminate_useless_stores pass.
11367 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
11368 * tree-ssa-pre.c (is_copy_stmt): New function.
11369 (follow_copies_till_vuse): Ditto.
11370 (do_eustores): Ditto.
11371 (gate_eustores): Ditto.
11373 2005-07-16 Richard Henderson <rth@redhat.com>
11375 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
11377 2005-07-16 Danny Berlin <dberlin@dberlin.org>
11378 Kenneth Zadeck <zadeck@naturalbridge.com>
11380 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
11381 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
11382 ipa-type-escape.h, tree-promote-statics.c
11383 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
11384 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
11385 tree-promote-statics.c: new files.
11386 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
11387 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
11388 int nonlocal_set_p, mark_constant_function): Deleted.
11389 (rest_of_handle_cfg): Removed call to mark_constant_function.
11390 (nonoverlapping_component_refs_p): Added calls to support
11391 type based aliasing.
11392 * tree-ssa-alias.c (may_alias_p,
11393 compute_flow_insensitive_aliasing): Ditto.
11394 * calls.c (flags_from_decl_or_type): Removed reference to
11396 * c-typeck.c (convert_arguments): Make builtins tolerant of having
11397 too many arguments. This is necessary for Spec 2000.
11398 * cgraph.h (const_function, pure_function): Removed.
11399 * common.opt: Added "fipa-pure-const", "fipa-reference",
11400 "fipa-type-escape", and "ftree-promote-static".
11402 * passes.c: Added ipa and tree-promote-statics passes.
11403 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
11404 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
11405 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
11406 * tree-flow.h: Added exposed sra calls and addition of
11407 reference_vars_info field for FUNCTION_DECLS.
11408 * tree-pass.h: Added passes.
11409 * tree-sra.c: (sra_init_cache): New function.
11410 (sra_insert_before, sra_insert_after) Made public.
11411 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
11413 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
11414 aliasing. (may_alias_p): Added code to use type escape analysis to
11415 improve alias sets.
11416 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
11417 code to prune clobbers of static variables based on information
11418 produced in ipa-reference pass. Changed call clobbering so that
11419 statics are not marked as clobbered if the call does not clobber
11422 2005-07-16 Daniel Berlin <dberlin@dberlin.org>
11424 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
11427 2005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
11429 * doc/install.texi (*-*-solaris2*): Document recommended version
11430 of GNU binutils and mention GNU linker problem on Solaris 10.
11432 2005-07-16 Joseph S. Myers <joseph@codesourcery.com>
11435 * c-decl.c (c_build_bitfield_integer_type): New function.
11436 (finish_struct): Call it.
11437 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
11439 2005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11441 * c-typeck.c (digest_init): Call 'convert_for_assignment'
11444 2005-07-16 Jan Hubicka <jh@suse.cz>
11446 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
11447 (scale_bbs_frequencies_int): Watch roundoff errors.
11448 * predict.c (return_prediction): Initialize return_stmt.
11450 2005-07-16 Jan Hubicka <jh@suse.cz>
11452 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
11453 after RTL profiling.
11455 2005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
11457 PR middle-end/22398
11458 * fold-const.c (build_range_check): Convert high/low to etype
11459 if we are only comparing against exp.
11461 2005-07-13 Daniel Berlin <dberlin@dberlin.org>
11463 Fix PR tree-optimization/22376
11464 * tree-ssa-structalias.c (build_constraint_graph): We really meant
11466 (need_to_solve): New function.
11467 (compute_points_to_sets): Use it.
11469 2005-07-15 Jan Hubicka <jh@suse.cz>
11471 * cfg.c (update_bb_profile_for_threading): More diagnostic.
11472 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
11474 2005-07-15 Richard Guenther <rguenther@suse.de>
11476 * c-common.c (handle_flatten_attribute): New function.
11477 Add flatten function attribute.
11478 * doc/extend.texi: Document flatten function attribute.
11479 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
11480 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
11482 (cgraph_decide_inlining): Handle functions with flatten
11485 2005-07-14 David Edelsohn <edelsohn@gnu.org>
11487 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
11488 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
11489 UNSPEC_XCHG, UNSPEC_AND): New.
11490 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
11491 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
11492 * config/rs6000/sync.md (FETCHOP): New code macro.
11493 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
11495 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
11496 (sync_compare_and_swap<mode>): Same.
11497 (sync_lock_test_and_set<mode>): Same.
11498 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
11499 for QImode and HImode, and not PPC405.
11500 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
11501 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
11502 (sync_<fetchop>{si,di}_internal): New.
11503 (sync_nand{si,di}_internal): New.
11504 (sync_old_<fetchop>{si,di}_internal): New.
11505 (sync_old_nand{si,di}_internal): New
11506 (sync_new_<fetchop>{si,di}_internal): New.
11507 (sync_new_nand{si,di}_internal): New.
11508 (atomic_and{si,di}): New.
11509 (sync_new_nand{si,di}_internal): New.
11510 (atomic_and{si,di}): New.
11511 (sync_add<mode>_internal): Delete.
11512 (sync_addshort_internal): Use unspec instead of unspec_volatile.
11513 (sync_sub<mode>_internal): Delte.
11514 (sync_subshort_internal): New.
11515 (sync_andsi_internal): Use unspec instead of unspec_volatile.
11516 (sync_anddi_internal): Delete.
11517 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
11518 (sync_booldi_internal): Delete.
11519 (sync_boolc<mode>_internal): Delete.
11520 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
11521 (sync_boolc<mode>_internal2): Delete.
11522 (sync_boolcc<mode>_internal): Delete.
11523 (isync, lwsync): Use unspec instead of unspec_volatile.
11524 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
11525 Revert UNSPEC_VOLATILE.
11526 (rs6000_split_atomic_op): New.
11527 * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
11529 2005-07-14 Eric Christopher <echristo@redhat.com>
11531 * config/mips/mips.c (mips_canonicalize_comparison): Cast
11532 argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
11534 2005-07-14 Eric Christopher <echristo@redhat.com>
11536 * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
11538 2005-07-14 Steven Bosscher <stevenb@suse.de>
11540 PR tree-optimization/22230
11541 * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
11542 the computation of the four cross productions for "range op range".
11544 2005-07-14 Alexandre Oliva <aoliva@redhat.com>
11545 Ulrich Weigand <uweigand@de.ibm.com>
11548 * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
11551 2005-07-14 Ulrich Weigand <uweigand@de.ibm.com>
11553 * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
11555 2005-07-14 Steve Ellcey <sje@cup.hp.com>
11557 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
11559 2005-07-14 Richard Guenther <rguenther@suse.de>
11561 PR middle-end/22347
11562 * config/i386/i386-protos.h (ix86_function_value): Change
11563 prototype to match new target hook.
11564 * config/i386/i386.c (ix86_value_regno): Change prototype
11565 to take extra type argument.
11566 (TARGET_FUNCTION_VALUE): Define.
11567 (ix86_function_ok_for_sibcall): Pass extra argument to
11568 ix86_value_regno, check return slot rtx for exact match.
11569 (ix86_function_value): Take extra parameter. Dispatch to
11570 ix86_value_regno with fndecl/fntype as provided.
11571 (ix86_value_regno): Handle extra type argument.
11572 * config/i386/i386.h (FUNCTION_VALUE): No longer define.
11574 * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
11575 * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
11576 * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
11577 * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
11578 * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
11580 2005-07-14 Richard Guenther <rguenther@suse.de>
11582 * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
11583 * calls.c (expand_call): Pass fntype to hard_function_value.
11584 (emit_library_call_value_1): Likewise.
11585 * explow.c: Include target.h.
11586 (hard_function_value): Take extra argument, the fntype.
11587 Use new target hook for function_value.
11588 * expr.h (hard_function_value): Change prototype.
11589 * function.c (aggregate_value_p): Pass 0 as fntype to
11590 hard_function_value.
11591 (assign_parms): Use new target hook for function_value.
11592 Pass 0 as fntype to hard_function_value.
11593 (expand_function_end): Likewise.
11594 * reg-stack.c: Include target.h.
11595 (stack_result): Use new target hook for function_value.
11596 * target-def.h: New target hook function_value.
11597 * target.h: Likewise.
11598 * targhooks.c (default_function_value): New function.
11599 * targhooks.h (default_function_value): Declare.
11601 2005-07-13 Ian Lance Taylor <ian@airs.com>
11603 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
11605 2005-07-14 Jan Hubicka <jh@suse.cz>
11607 * tree-dfa.c (dump_variable): Use default_def function.
11608 * tree-ssa-alias.c (dump_points_to_info): Likewise.
11609 * tree-ssa.c (verify_use): Likewise.
11610 * tree-ssanames.c (release_ssa_name): Likewise.
11611 * tree-tailcall.c (eliminate_tail_call): Likewise.
11612 (tree_optimize_tail_calls_1): Likewise.
11613 * tree-vrp.c (get_value_range): Likewise.
11615 2005-07-14 Ben Elliston <bje@au.ibm.com>
11617 * gcc.c (main): Compare language[0] with '*' when iterating over
11620 2005-07-13 Adrian Straetling <straetling@de.ibm.com>
11622 * config/s390/s390.c: (s390_cc_modes_compatible): Move before
11623 "s390_emit_compare". Add handling of CCZ1mode.
11624 (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
11625 (390_emit_compare): Use "s390_cc_modes_compatible" for mode
11627 (s390_branch_condition_mask): Add CCZ1mode handling.
11628 * config/s390/s390.md: ("seq", "*seq"): New pattern.
11629 ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
11630 Use CCZ1mode instead of CCZmode.
11631 * config/s390/s390-modes.def: Add CCZ1mode. Comment new mode.
11633 2005-07-13 Adrian Straetling <straetling@de.ibm.com>
11635 * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
11637 ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
11639 2005-07-13 Eric Christopher <echristo@redhat.com>
11641 * config/mips/mips.c (mips_canonicalize_comparison): New.
11642 (mips_emit_int_relational): Use.
11644 2005-07-13 Eric Christopher <echristo@redhat.com>
11646 * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
11647 static extra parts.
11648 * config/s390/s390.md: Include tpf.md. Move tpf specific
11650 * config/s390/tpf.md: To here.
11651 * config/s390/s390.opt: Move tpf specific options...
11652 * config/s390/tpf.opt: to here. Add mmain option.
11653 * config/s390/tpf-unwind.h: Remove unnecessary defines.
11654 * config/s390/tpf.h: Rewrite.
11656 2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
11658 * doc/tm.texi: Remove @xref{Cross-profiling}.
11660 2005-07-13 Jeff Law <law@redhat.com>
11662 * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
11663 expressions, test their _DECL operands for pointer equality rather
11664 than using operand_equal_p.
11666 2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
11668 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
11669 (TARGET_POSIX_IO): This.
11670 * config/darwin.h: Likewise.
11671 * config/freebsd.h: Likewise.
11672 * config/linux.h: Likewise.
11673 * config/lynx.h: Likewise.
11674 * config/netbsd.h: Likewise.
11675 * config/rs6000/linux64.h: Likewise.
11676 * config/rs6000/linux.h: Likewise.
11677 * config/s390/tpf.h: Likewise.
11678 * config/sh/embed-elf.h: Likewise.
11679 * config/sparc/linux64.h: Likewise.
11680 * config/sparc/linux.h: Likewise.
11681 * config/svr4.h: Likewise.
11682 * gcov-io.h: Likewise.
11684 * doc/tm.texi: Updated.
11686 * libgcov.c (create_file_directory): Defined only if
11687 TARGET_POSIX_IO is defined.
11688 (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
11691 2005-07-13 Jan Hubicka <jh@suse.cz>
11693 * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
11695 2005-07-13 David Edelsohn <edelsohn@gnu.org>
11697 * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
11698 structure as argument.
11700 2005-07-13 Paolo Bonzini <bonzini@gnu.org>
11702 PR tree-optimization/21921
11703 * tree-iterator.c (tsi_link_before): Support the case when
11704 tsi_end_p (tsi) == true.
11706 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
11708 PR tree-optimization/22442
11709 * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
11712 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
11714 PR rtl-optimization/20376
11715 * toplev.c (process_options): Enable -fweb and -frename-registers when
11717 * doc/invoke.texi: Update the information about when -fweb and
11718 -frename-registers are enabled.
11720 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
11723 * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
11724 if *rhs_p is not a SSA_NAME.
11726 2005-07-12 Daniel Berlin <dberlin@dberlin.org>
11728 Fix PR tree-optimization/22422
11729 * tree-ssa-structalias.c (struct variable_info): Add flag for
11731 (get_varinfo): Now a static function.
11732 (new_varinfo): init has_union and is_special_var to false.
11733 (solution_set_add): Check has_union.
11734 (do_da_constraint): Move temporary variable so it gets reset
11736 Also check for special variable.
11737 (do_ds_constraint): Ditto.
11738 (do_sd_constraint): Ditto.
11739 (do_structure_copy): Check for special variable.
11740 (find_func_aliases): Ditto.
11741 (init_base_vars): Set special vars properly.
11743 2005-07-13 Jan Hubicka <jh@suse.cz>
11745 * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
11748 * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
11749 (get_expr_operands): Fix thinko wrt flags and subvars.
11751 PR tree-optimize/22379
11752 * tree-inline.c (expand_call_inline): Do not output sorry in early
11755 2005-07-12 Dale Johannesen <dalej@apple.com>
11757 * config/rs6000.c (rs6000_rtx_cost): Move FLOAT_EXTEND.
11759 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
11762 * host-linux.h: Include limits.h.
11764 2005-07-12 Dale Johannesen <dalej@apple.com>
11766 * expr.c (compress_float_constant): Add cost check.
11767 * config/rs6000.c (rs6000_rtx_cost): Adjust FLOAT_EXTEND cost.
11769 2005-07-12 Dale Johannesen <dalej@apple.com>
11771 * gcc.target/i386/compress-float-sse.c: New.
11772 * gcc.target/i386/compress-float-sse-pic.c: New.
11773 * gcc.target/i386/compress-float-387.c: New.
11774 * gcc.target/i386/compress-float-387-pic.c: New.
11775 * gcc.dg/compress-float-ppc.c: New.
11776 * gcc.dg/compress-float-ppc-pic.c: New.
11778 2005-07-12 Eric Christopher <echristo@redhat.com>
11780 * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
11781 static extra parts.
11782 * config/s390/s390.md: Include tpf.md. Move tpf specific
11784 * config/s390/tpf.md: To here.
11785 * config/s390/s390.opt: Move tpf specific options...
11786 * config/s390/tpf.opt: to here. Add mmain option.
11787 * config/s390/tpf-unwind.h: Remove unnecessary defines.
11788 * config/s390/tpf.h: Rewrite.
11790 2005-07-12 Eric Christopher <echristo@redhat.com>
11792 * gcc.c (struct infile): Update comment for language.
11793 (main): Rewrite input file resetting code.
11795 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
11798 * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
11799 requiring a cast in a non RHS of modify_expr. Add a cast when required.
11800 (lookup_avail_expr): Use constant_boolean_node instead
11801 of boolean_false_node/boolean_true_node.
11803 2005-07-12 Ben Elliston <bje@au.ibm.com>
11805 * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
11806 and use it when printing num_edges.
11808 2005-07-12 Bernd Schmidt <bernd.schmidt@analog.com>
11810 * doc/extend.texi (Blackfin Built-in Functions): New section.
11811 * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
11814 2005-07-12 Adrian Straetling <straetling@de.ibm.com>
11816 * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
11817 s/cmpstrsi/cmpstrnsi
11818 (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
11820 * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
11821 (init_optabs): Initialize cmpstrn_optab.
11822 * optabs.h: (enum insn_code cmpstrn_optab): Declare.
11823 * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
11824 * expr.c: (enum insn_code cmpstrn_optab): Declare.
11825 * config/i386/i386.md: s/cmpstr/cmpstrn
11826 * config/c4x/c4x.md: s/cmpstr/cmpstrn
11827 * doc/md.texi: Update documentation.
11829 2005-07-11 Richard Henderson <rth@redhat.com>
11831 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
11832 build_va_arg_indirect_ref.
11833 (alpha_gimplify_va_arg): Likewise.
11834 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
11835 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
11836 * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
11837 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
11838 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
11839 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
11841 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
11843 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
11845 * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
11846 * passes.c (init_optimization_passes): Add pass_empty_loop.
11847 * tree-pass.h (pass_empty_loop): Declare.
11848 * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
11849 try_remove_empty_loop, remove_empty_loops): New functions.
11850 * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
11851 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
11853 2005-07-12 Peter Barada <peter@the-baradas.com>
11855 PR middle-end/16719
11856 PR middle-end/18421
11857 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
11858 in address registers.
11859 * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
11860 * config/m68k/m68k.md: Replace 's' with 'i' in 4th
11861 alternative of addsi3_5200.
11863 2005-07-11 Ian Lance Taylor <ian@airs.com>
11865 * config/mips/mips.md (ffs<mode>2): Remove.
11867 2005-07-11 Ian Lance Taylor <ian@airs.com>
11869 * doc/tree-ssa.texi (Cleanups): Improve description of
11871 (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
11873 2005-07-11 Daniel Berlin <dberlin@dberlin.org>
11875 * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
11876 * tree.h (DECL_ARGUMENT_FLD): New macro.
11878 2005-07-11 Daniel Berlin <dberlin@dberlin.org>
11880 Fix PR tree-optimization/22404
11882 * tree-ssa-structalias.c (create_variable_info_for): Use
11885 2005-07-11 Bernd Schmidt <bernd.schmidt@analog.com>
11887 * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
11888 compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
11889 for second comparison operand.
11890 * config/bfin/predicates.md (reg_or_const_int_operand): New.
11892 * config/bfin/bfin.md (define_attr "type"): Add "sync".
11893 (define_insn_reservation "alu"): Likewise.
11894 (csync, ssync): Now of type sync.
11895 * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
11896 -mcsync-anomaly -mspecld-anomaly.
11897 * config/bfin/bfin.opt (mcsync): Remove.
11898 (mcsync-anomaly, mspecld-anomaly): Add.
11899 * config/bfin/bfin.c: Include "insn-codes.h".
11900 (bfin_reorg): Extend to handle the CSYNC anomaly as well.
11901 (TARGET_DEFAULT_TARGET_FLAGS): New.
11902 * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
11904 2005-07-11 Steven Bosscher <stevenb@suse.de>
11906 * basic-block.h: Give the BB flags enum a name, bb_flags.
11907 Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
11908 * cfgcleanup.c (enum bb_flags): Remove here.
11909 (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
11910 (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
11911 (update_forwarder_flag): Likewise.
11912 (thread_jump): Likewise.
11913 (try_forward_edges): Likewise.
11914 (try_optimize_cfg): Likewise. Clear bb->flags before updating the
11915 forwarder flags. Don't clear bb->aux for all basic blocks. Only
11916 reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
11918 2005-07-11 Richard Guenther <rguenther@suse.de>
11920 * config/i386/i386.opt: New target option -msseregparm.
11921 * config/i386/i386.c (override_options): Error out for
11922 -msseregparm but no SSE support.
11923 (ix86_function_sseregparm): Check for global sseregparm.
11924 * doc/invoke.texi: Document -msseregparm.
11926 2005-07-11 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
11928 * config.gcc (m32r-*-linux*): Use the default extra_parts.
11929 (m32rle-*-linux*): Ditto.
11931 2005-07-11 Jakub Jelinek <jakub@redhat.com>
11933 * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
11934 instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
11937 2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11939 PR middle-end/22239
11941 * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
11942 gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
11944 2005-07-07 Daniel Berlin <dberlin@dberlin.org>
11946 * tree-ssa-structalias.c (struct variable_info): Heapify complex.
11947 (varmap): Heapify varmap.
11948 (constraints): Heapify constraints.
11949 (struct constraint_graph): Heapify succs and preds.
11950 (constraint_vec_find): Update for heapification.
11951 (constraint_set_union): Ditto.
11952 (insert_into_complex): Ditto.
11953 (constraint_edge_vec_find): Ditto.
11954 (erase_graph_self_edge): Ditto.
11955 (add_graph_edge): Ditto.
11956 (get_graph_weights): Ditto.
11957 (merge_graph_nodes): Ditto.
11958 (build_constraint_graph): Ditto.
11959 (topo_visit): Ditto.
11960 (solve_graph): Ditto.
11961 (create_variable_info_for): Ditto.
11962 (init_base_vars): Ditto.
11963 (delete_points_to_sets): Free graph, varmap, and complex constraints.
11964 (condese_varmap_nodes): Free complex vector.
11965 (clear_edges_for_node): Clear succs and preds vector.
11967 2005-07-10 Daniel Berlin <dberlin@dberlin.org>
11969 * tree-ssa-structalias.c (update_alias_info): Change counting of
11970 references to not include vdefs.
11972 2005-07-10 Daniel Berlin <dberlin@dberlin.org>
11974 * tree-ssa-alias.c (free_used_part_map): Add missing free.
11975 (up_insert): Ditto.
11977 2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11979 * pa.c (pa_commutative_p): Make PLUS commutative when
11980 TARGET_NO_SPACE_REGS is true.
11982 2005-07-09 Diego Novillo <dnovillo@redhat.com>
11984 * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
11985 * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
11986 * tree-dfa.c (dump_subvars_for): New.
11987 (debug_subvars_for): New.
11988 (dump_variable): Show subvariables if VAR has them.
11989 * tree-flow-inline.h (get_subvar_at): New.
11990 (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
11991 * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
11993 (struct subvar): Change fields offset and size to unsigned
11995 (dump_subvars_for): Declare.
11996 (debug_subvars_for): Declare.
11997 (get_subvar_at): Declare.
11998 (okay_component_ref_for_subvars): Change 2nd and 3rd argument
11999 to unsigned HOST_WIDE_INT *.
12000 (overlap_subvar): Likewise.
12001 * tree-gimple.c (is_gimple_reg): Always return false for
12002 SFTs and memory tags.
12003 * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
12004 Update all callers.
12005 * tree-ssa-alias.c: Include tree-ssa-structalias.h.
12006 (compute_may_aliases): Call compute_points_to_sets.
12007 (collect_points_to_info_for): Remove.
12008 (compute_points_to_and_addr_escape): Remove.
12009 (delete_alias_info): Call delete_points_to_sets.
12010 (compute_flow_sensitive_aliasing): If the call to
12011 find_what_p_points_to returns false, call set_pt_anything.
12012 (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
12013 (set_pt_anything): Clear pi->pt_vars.
12014 (set_pt_malloc): Remove.
12015 (merge_pointed_to_info): Remove.
12016 (add_pointed_to_expr): Remove.
12017 (add_pointed_to_var): Remove.
12018 (collect_points_to_info_r): Remove.
12019 (is_escape_site): Make extern.
12021 (create_overlap_variables_for): Call it.
12022 * tree-ssa-copy.c (merge_alias_info): Never merge
12023 flow-sensitive alias information.
12024 * tree-ssa-operands.c (get_expr_operands): Adjust variables
12025 offset and size to be unsigned HOST_WIDE_INT.
12026 (add_to_addressable_set): Rename from note_addressable.
12027 Set TREE_ADDRESSABLE as the variables are added to the set.
12029 (add_stmt_operand): Do not try to micro-optimize unmodifiable
12030 operands into VUSEs when adding V_MAY_DEFs for members in an
12032 * tree-ssa-operands.h (add_to_addressable_set): Declare.
12033 * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
12034 (struct variable_info): Add bitfield is_heap_var.
12035 (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
12036 (new_var_info): Initialize is_heap_var.
12037 (get_constraint_for): Add HEAP variables to the symbol table.
12038 Mark them with is_heap_var.
12039 (update_alias_info): New. Taken mostly from the old
12040 compute_points_to_and_addr_escape.
12041 (handle_ptr_arith): New.
12042 (find_func_aliases): Call update_alias_info.
12043 Call handle_ptr_info for tcc_binary expressions.
12044 Call mark_stmt_modified.
12045 (create_variable_info_for): If DECL has subvars, do not create
12046 variables for its subvars. Always add all the fields.
12047 (set_uids_in_ptset): If the solution includes ANYOFFSET and
12048 SFTs, then add all the SFTs of the structure.
12049 If VI->DECL is an aggregate with subvariables, add the SFT at
12051 (find_what_p_points_to): If VI is an artificial variable,
12052 translate to bitfields in SSA_NAME_PTR_INFO.
12053 If the solution is empty, set pi->pt_vars to NULL
12054 (init_base_vars): Create ANYOFFSET.
12055 (compute_points_to_sets): Rename from create_alias_vars.
12057 (pass_build_pta): Remove.
12058 (delete_points_to_sets): Rename from delete_alias_vars.
12059 (pass_del_pta): Remove.
12060 * tree-ssa-structalias.h (struct alias_info): Move from
12062 (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
12063 NUM_REFERENCES_SET): Likewise.
12064 (compute_points_to_sets, delete_points_to_sets): Declare.
12066 2005-07-09 Richard Henderson <rth@redhat.com>
12068 * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
12069 alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
12070 alpha_split_lock_test_and_set_12): New functions.
12071 * config/alpha/alpha-protos.h: Update.
12072 * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
12073 UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
12074 * config/alpha/sync.md (I12MODE): New.
12075 (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
12076 (sync_<fetchop_name><I48MODE>): Likewise.
12077 (sync_nand<I48MODE>): Likewise.
12078 (sync_old_<fetchop_name><I48MODE>): Likewise.
12079 (sync_new_<fetchop_name><I48MODE>): Likewise.
12080 (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
12081 (sync_compare_and_swap<I48MODE>): Likewise.
12082 (sync_lock_test_and_set<I48MODE>): Likewise.
12083 (sync_compare_and_swap<I12MODE>): New.
12084 (sync_compare_and_swap<I12MODE>_1): New.
12085 (sync_lock_test_and_set<I12MODE>): New.
12086 (sync_lock_test_and_set<I12MODE>_1): New.
12088 2005-07-09 Diego Novillo <dnovillo@redhat.com>
12092 * passes.c (execute_todo): Cleanup the CFG before updating SSA.
12094 2005-07-09 Jakub Jelinek <jakub@redhat.com>
12096 * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
12097 in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
12099 2005-07-09 Richard SAndiford <richard@codesourcery.com>
12102 * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
12104 2005-07-08 David Edelsohn <edelsohn@gnu.org>
12106 * config/rs6000/sync.md (load_locked_<mode>): Use Z for
12107 memory_operand constraint.
12108 (store_conditional_<mode>): Same.
12109 (sync_compare_and_swap<mode>): Same.
12110 (sync_lock_test_and_set<mode>): Same.
12112 2005-07-08 Hans-Peter Nilsson <hp@axis.com>
12114 Rewrite PIC support to more closely model actual instructions.
12115 * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
12116 (cris_symbol): Remove prototypes for removed functions.
12117 (cris_pic_symbol_type_of, cris_valid_pic_const)
12118 (cris_expand_pic_call_address): Prototypes for new functions.
12119 * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
12121 (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
12123 <case ':'>: Add case for new punctuation character.
12124 <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
12125 emitting (extra) PIC modifier.
12126 <case UNSPEC>: Do not assert for PLT.
12127 (cris_initial_frame_pointer_offset, cris_simple_epilogue)
12128 (cris_expand_prologue, cris_expand_epilogue): Check
12129 for pic_offset_table_rtx usage instead of taking
12130 current_function_uses_pic_offset_table as the final word.
12131 (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
12132 Remove flag_pic difference.
12133 (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
12134 the moral equivalents of...
12135 (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
12137 (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
12138 (cris_handle_option): Mark ARG as unused.
12139 (cris_expand_pic_call_address): New worker function for "call",
12141 (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
12142 output PIC constructs here.
12143 (cris_output_addr_const_extra): Changes for emitting PIC modifiers
12144 as symbol-specific modifers, not whole or part of operands.
12145 * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
12146 (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
12147 constants and flag_pic.
12148 (CONSTANT_INDEX_P): Adjust for new functions.
12149 (enum cris_pic_symbol_type): New helper type.
12150 (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
12151 * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
12152 (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
12154 ("movsi"): Emit actual instructions for GOT and relative access.
12155 ("*movsi_got_load"): New pattern to set up the register holding
12157 ("*movsi_internal"): Operand 1 is not a plain general_operand.
12158 Adjust FIXME for 'S'.
12159 <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
12160 Use "movs" for -fpic cases.
12161 ("addsi3"): Add alternative for 'S'; use adds.w when possible.
12162 ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
12163 ("call", "call_value"): Just call cris_expand_pic_call_address for
12165 ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
12166 Remove special pattern.
12167 ("*expanded_call_side", "*expanded_call_value_side"): New
12169 (gotplt-to-plt, gotplt-to-plt-side-call)
12170 (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
12172 * config/cris/cris/predicates.md
12173 ("cris_general_operand_or_gotless_symbol"): Remove unused
12175 ("cris_general_operand_or_symbol"): Adjust for new functions.
12177 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
12179 * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
12181 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
12183 * Makefile.in (TREE_H): Add treestruct.def.
12184 (c-decl.o): Add pointer-set.h
12185 * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
12186 visibility on regular DECL's.
12187 (merge_decls): Fix the copying of decl nodes of various types for
12188 the new structures. Don't update RTL, section name, weak status,
12189 etc, on DECL's without RTL.
12190 (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
12191 Don't check volatile on non-variable types.
12192 (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
12193 to check whether we have seen arguments.
12194 * c-objc-common.c (c_tree_printer): Reverse order of tests so that
12195 flag is checked before field (flag is common, field is not).
12196 * dwarf2out.c (decl_ultimate_origin): Only DECL's with
12197 TS_DECL_COMMON could have an origin.
12198 (add_location_or_const_value_attribute): Don't check section name
12199 on non-var/function decls.
12200 (dwarf2out_var_location): Reverse order of tests.
12201 * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
12202 with DECL_WRTL_CHECK.
12203 * expmed.c (make_tree): rtl is now in decl_with_rtl.
12204 * fold-const.c (fold_binary): Don't check weakness on
12205 non-var/function decls.
12206 (tree_expr_nonzero_p): Ditto.
12207 (fold_checksum_tree): Use tree_decl_extra as sizeof
12209 * ggc-page.c (extra_order_size_table): Add sizes for
12210 tree_decl_non_common, tree_parm_decl, tree_var_decl, and
12212 * gimplify.c (gimplify_bind_expr): Only set
12213 DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
12214 * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
12216 * langhooks-def.h (LANG_HOOK_INIT_TS): New.
12217 * langhooks.h (init_ts). New langhook.
12218 * passes.c (rest_of_decl_compilation): Reverse order of tests.
12219 * print-tree.c (print_node): Update to only print fields that
12220 exist in the structures the passed decl has.
12221 * toplev.c (wrapup_global_declarations): Don't reset
12222 DECL_DEFER_OUTPUT on DECL's that don't contain it.
12223 * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
12224 * tree-inline.c (remap_decl): Ditto.
12225 * tree-outof-ssa.c (create_temp): Reverse order of tests.
12226 * tree-pretty-print.c (print_declaration): Don't print
12227 DECL_REGISTER on things that don't contain it.
12228 * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
12229 non-var/function decls.
12230 * tree.c (tree_contains_struct): New structure.
12231 (init_priority_for_decl): New hashtable.
12232 (tree_int_map): New structure.
12233 (tree_int_map_eq): New function.
12234 (tree_int_map_marked_p): Ditto.
12235 (tree_int_map_hash): Ditto.
12236 (tree_map): Move to tree.h.
12237 (tree_map_eq): Externalize.
12238 (tree_map_hash): Ditto.
12239 (tree_map_marked_p): Ditto.
12240 (init_ttree): Set up tree_contains_struct and call langhook.
12241 (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
12242 (tree_code_size): Update for new structures.
12243 (tree_node_structure): Update for new structures.
12244 (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
12246 (copy_node_stat): Copy init priority.
12247 (build_decl_stat): Ditto for visibility.
12248 (ts_enum_names): New.
12249 (tree_contains_struct_check_failed): New function.
12250 (decl_init_priority_lookup): Ditto.
12251 (decl_init_priority_insert): Ditto.
12252 * treestruct.def: New file.
12253 * tree.h (CODE_CONTAINS_STRUCT): New macro.
12254 (CONTAINS_STRUCT_CHECK): Ditto.
12255 (tree_contains_struct_check_failed): New prototype.
12256 (DECL_CHECK): Removed.
12257 (DECL_MINIMAL_CHECK): New.
12258 (DECL_COMMON_CHECK): Ditto.
12259 (DECL_WRTL_CHECK): Ditto.
12260 (DECL_NON_COMMON_CHECK): Ditto.
12261 (DECL_WITH_VIS_CHECK): Ditto.
12262 (VAR_OR_FUNCTION_DECL_P): Ditto
12263 (struct tree_decl_minimal): New structure.
12264 (struct tree_decl_common): Ditto.
12265 (struct tree_decl_with_rtl): Ditto.
12266 (struct tree_decl_with_vis): Ditto.
12267 (struct tree_decl_non_common): Ditto.
12268 (struct tree_field_decl): Ditto.
12269 (struct tree_parm_decl): Ditto.
12270 (struct tree_var_decl): Ditto.
12271 (struct tree_function_decl): Ditto.
12272 (struct tree_const_decl): Ditto.
12273 (struct tree_result_decl): Ditto.
12274 (union tree_node): Add new structures.
12275 * var-tracking.c (track_expr_p): Reverse order of tests.
12277 * doc/c-tree.texi: Add documentation on DECL node internal structure.
12279 2005-07-08 Kazu Hirata <kazu@codesourcery.com>
12281 * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
12282 * system.h: Poison FINALIZE_PIC.
12283 * doc/tm.texi (FINALIZE_PIC): Remove.
12285 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
12288 * tree-ssa-propagate.c (fold_predicate_in): Convert the value
12289 to the correct type if we have a MODIFY_EXPR.
12291 2005-07-08 Kazu Hirata <kazu@codesourcery.com>
12293 PR tree-optimization/22360
12294 * tree.c (upper_bound_in_type): Fix calculations for casting
12295 to a non-wider signed type and casting a signed value to a
12296 wider unsigned type.
12297 (lower_bound_in_type): Fix calculations for casting to a
12298 non-wider signed type.
12300 PR tree-optimization/20139
12301 * tree-cfg.c (remove_bb): Check in_ssa_p before calling
12303 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
12304 fold_cond_expr_cond.
12305 * tree-ssanames.c (release_defs): Assert in_ssa_p.
12306 * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
12308 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
12311 * tree-complex.c (expand_complex_libcall): Produce
12312 REALPART_EXPR/IMAGPART_EXPR with the correct type.
12314 2005-07-08 Kenneth Zadeck <zadeck@naturalbridge.com>
12316 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
12317 bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
12318 b" assert and inserted fastpath code for this case.
12319 (bitmap_ior): Removed "a != b" assert.
12321 2005-07-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
12323 * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
12324 (ENDFILE_SPEC): Likewise.
12325 * config/m32r/m32r.h (ASM_SPEC): Likewise.
12327 * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
12328 a large stack frame at epilogue.
12330 2005-07-08 David Billinghurst <David.Billinghurst@riotinto.com>
12332 * final.c: Include sdbout.h when required.
12334 2005-07-07 Geoffrey Keating <geoffk@apple.com>
12336 * config.gcc (*-*-darwin*): Only one target-specific header file
12337 for generic darwin.
12338 (powerpc-*-darwin*): Add version-specific header files.
12339 * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
12340 * config.in: Regenerate.
12341 * configure: Regenerate.
12342 * gcc.c: Include xregex.h.
12343 (version_compare_spec_function): New.
12344 (spec_function): Add version-compare.
12345 (replace_outfile_spec_function): Reformat comment.
12346 (compare_version_strings): New.
12347 * config/darwin-c.c (version_as_macro): New.
12348 (builtin_define): New.
12349 (darwin_cpp_builtins): New.
12350 * config/darwin-protos.h (darwin_cpp_builtins): New.
12351 * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
12352 (LIB_SPEC): Make unconditional, update comment.
12353 (TARGET_C99_FUNCTIONS): Define.
12354 * config/darwin.opt: Sort.
12355 (mmacosx-version-min=): New.
12356 * config/darwin7.h: Delete.
12357 * config/darwin8.h: Delete.
12358 * config/i386/darwin.h (): Call darwin_cpp_builtins.
12359 * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
12360 (TARGET_C99_FUNCTIONS): Define.
12361 * config/rs6000/darwin7.h: New.
12362 * config/rs6000/darwin8.h: New.
12363 * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
12364 (-mmacosx-version-min): Document.
12366 2005-07-07 Ian Lance Taylor <ian@airs.com>
12368 * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
12370 2005-07-07 John David Anglin <dave.anglin@nrc-crc.gc.ca>
12372 PR middle-end/22239
12373 * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
12375 2005-07-07 Khem Raj <kraj@mvista.com>
12377 * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
12378 in bytes, not words.
12380 2005-07-07 Paul Brook <paul@codesourcery.com>
12382 * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
12383 DEFAULT_FUNCTION_ARG_PADDING to upward.
12385 2005-07-07 Richard Henderson <rth@redhat.com>
12387 * function.c (locate_and_pad_parm): Record parameter alignment in
12388 stack_alignment_needed.
12390 2005-07-07 David Edelsohn <edelsohn@gnu.org>
12392 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
12393 UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
12394 (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
12395 UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
12396 (define_attr "type"): Add isync, sync, load_l, store_c.
12397 * config/rs6000/sync.md (memory_barrier): Change to define_expand.
12398 Create scratch volatile MEM.
12399 (sync_internal): New. POWER mnemonic is dcs, not ics. Attribute
12401 (load_locked_<mode>): New.
12402 (store_conditional_<mode>): New.
12403 (sync_compare_and_swap<mode>): Replace with splitter.
12404 (sync_lock_test_and_set<mode>): Replace with splitter.
12405 (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
12407 (isync): Change to unspec_volatile UNSPECV_ISYNC. POWER mnemonic
12408 is ics. Attribute isync.
12409 (lwsync): Change to unspec_volatile UNSPECV_LWSYNC. Attribute
12411 * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
12412 and UNSPECV_SYNC_OP.
12413 (emit_unlikely_jump): New.
12414 (emit_load_locked): New.
12415 (emit_store_conditional): New.
12416 (rs6000_split_compare_and_swap): New.
12417 (rs6000_split_lock_test_and_set): New.
12418 (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
12419 TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
12420 * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
12421 rs6000_split_lock_test_and_set): Declare.
12422 * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
12423 mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
12424 store_c, isync, sync.
12426 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
12428 * Makefile.in (echo_quoted_to_gtyp): New template for outputing
12429 filenames to gtyp-gen.h.
12430 (s-typ-gen): Use it in place of for loops.
12432 2005-07-07 J"orn Rennecke <joern.rennecke@st.com>
12434 * hooks.c (hook_bool_rtx_int_false): New function.
12435 * hooks.h (hook_bool_rtx_int_false): Declare.
12436 * target-def.h (TARGET_COMMUTATIVE_P): Define.
12437 (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
12438 * target.h (struct gcc_target): Add commutative_p member.
12439 * targhooks.c (hook_bool_rtx_commutative_p): New function.
12440 * targhooks.h (hook_bool_rtx_commutative_p): Declare.
12441 * pa.c (TARGET_COMMUTATIVE_P): Redefine.
12442 (pa_commutative_p): New function.
12443 * jump.c (target.h): Include.
12444 (rtx_renumbered_equal_p): Use targetm.commutative_p.
12445 * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
12447 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
12449 * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
12450 (s390_expand_setmem): New.
12451 * config/s390/s390.c: Likewise.
12452 (print_shift_count_operand): Truncate to 12 bits instead of 6.
12454 * config/s390/s390.md: ("setmem<mode>"): Accept character as
12455 general_operand. Call new function "s390_expand_setmem".
12456 ("clrmem_long", "*clrmem_long"): Rewrite to ...
12457 ("setmem_long", "*setmem_long"): ... this.
12459 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
12461 * config/s390/s390.c: (optimization_options): Enable
12462 TARGET_MVCLE at -Os.
12463 * doc/invoke.texi: Document changes in default behaviour.
12464 * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
12466 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
12468 * expr.c: (set_storage_via_setmem): Convert opchar to mode
12469 defined by back-end.
12471 2005-07-07 Jakub Jelinek <jakub@redhat.com>
12473 * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
12474 all sets in the pattern.
12475 * config/rs6000/rs6000.md (stack_protect_testsi,
12476 stack_protect_testdi): Likewise.
12478 2005-07-06 Jeff Law <law@redhat.com>
12480 * tree-vrp.c (simplify_using_ranges): Kill.
12481 (vrp_finalize): Remove call to simplify_using_ranges.
12482 (simplify_stmt_using_ranges): New function extracted from
12483 simplify_using_ranges.
12484 (simplify_div_or_mod_using_ranges): Likewise.
12485 (simplify_abs_using_ranges): Likewise.
12486 (simplify_cond_using_ranges): New function.
12487 * tree-flow.h (simplify_stmt_using_ranges): Prototype.
12488 * tree-ssa-propagate.c (substitute_and_fold): Call
12489 simplify_stmt_using_ranges if we have range information.
12491 2005-07-06 James E. Wilson <wilson@specifixinc.com>
12493 * config/ia64/ia64.c (ia64_reorg): Check optimize before
12494 ia64_flag_schedule_isns2.
12496 * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
12497 reading/writing general registers.
12498 (ia64_function_arg): Revert 2005-06-18 change.
12500 2005-07-06 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
12502 * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
12503 (legitimize_tls_address): Use gcc_unreachable instead of abort.
12505 2005-07-06 Kaz Kojima <kkojima@gcc.gnu.org>
12507 * function.c (expand_function_end): Revert part of 2005-06-27
12508 patch. Do sjlj_emit_function_exit_after after return_label.
12510 2005-07-06 Kazu Hirata <kazu@codesourcery.com>
12512 * doc/install.texi (--disable-libssp): New.
12514 2005-07-06 Fariborz Jahanian <fjahanian@apple.com>
12516 * doc/invoke.texi: Update -fforce-mem documentation.
12517 * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
12518 code for -fforce-mem.
12519 * expmed.c: (store_bit_field,store_fixed_bit_field,
12520 extract_bit_field): Ditto.
12521 * expr.c: (convert_move): Ditto.
12522 * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
12523 expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
12524 emit_conditional_add,expand_float,expand_fix): Ditto.
12525 * opts.c: (decode_options): Remove setting of flag_force_mem flag.
12526 (common_handle_option): Issue warning when -fforce-mem specified.
12528 2005-07-06 Paul Brook <paul@codesourcery.com>
12530 * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
12532 * configure: Regenerate.
12534 2005-07-06 J"orn Rennecke <joern.rennecke@st.com>
12536 * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
12538 2005-07-06 Daniel Berlin <dberlin@dberlin.org>
12540 Fix PR tree-optimization/22319
12541 Fix PR tree-optimization/22140
12542 Fix PR tree-optimization/22310
12544 * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
12545 variable sized types.
12546 Use correct type for intermediate structure on *a = *b structure
12549 2005-07-06 Jakub Jelinek <jakub@redhat.com>
12551 * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
12553 (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
12554 (machine_function): Move typedef to...
12555 * config/rs6000/rs6000.c (machine_function): ... here. Add
12556 varargs_save_offset field.
12557 (rs6000_stack_t): Remove varargs_size field.
12558 (setup_incoming_varargs): Allocate varargs save area using
12559 assign_stack_local, try to make it as small as possible.
12560 Save offset from virtual_stack_vars_rtx to the save area
12561 in cfun->machine->varargs_save_offset. Use UNITS_PER_FP_WORD
12562 instead of magic 8 when fp word byte size is used.
12563 (rs6000_va_start): Use cfun->machine->varargs_save_offset
12564 instead of -RS6000_VARARGS_SIZE.
12565 (rs6000_stack_info, debug_stack_info,
12566 rs6000_initial_elimination_offset): Remove all traces of
12568 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
12569 * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
12570 RS6000_VARARGS_AREA.
12572 2005-07-06 Zdenek Dvorak <dvorakz@suse.cz>
12574 PR tree-optimization/21963
12575 * tree-ssa-loop-ivopts.c (get_computation_aff): Use
12576 constant_multiple_of in the same way get_computation_cost_at does.
12578 2005-07-06 Jakub Jelinek <jakub@redhat.com>
12580 * config/sparc/sparc.h (sparc_compare_emitted): New extern.
12581 * config/sparc/sparc.c (sparc_compare_emitted): New variable.
12582 (gen_compare_reg): If sparc_compare_emitted is set, clear it
12583 and return its previous value.
12584 (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
12585 * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
12587 (stack_protect_set, stack_protect_test): New expanders.
12588 (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
12589 stack_protect_testdi): New insns.
12590 * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
12591 * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
12593 2005-07-06 Jeff Law <law@redhat.com>
12595 * tree-ssa-dce.c (cfg_altered): New global.
12596 (tree_dce_init): Initialize cfg_altered.
12597 (remove_dead_stmt): If we remove an edge in the CFG, then set
12599 (perform_tree_ssa_dce): If we altered the CFG, then invalidate
12602 2005-07-06 Kazu Hirata <kazu@codesourcery.com>
12604 * Makefile.in (stamp-collect-ld): Use
12605 $(ORIGINAL_LD_FOR_TARGET) instead of $<. Don't remove
12606 ./collect-ld if it already exists.
12607 (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
12608 Don't remove ./nm if it already exists.
12610 2005-07-05 Devang Patel <dpatel@apple.com>
12612 * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
12613 (LOOP_VINFO_LOC, LOOP_LOC): Remove.
12614 * tree-vectorizer.c (vect_loop_location): New.
12615 (vect_print_dump_info): Use vect_loop_location.
12616 (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
12617 (vectorize_loops): Set vect_loop_location.
12618 * tree-vect-analyze.c (vect_analyze_offset_expr,
12619 vect_determin_vectorization_factor, vect_analyze_operations,
12620 vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
12621 vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
12622 vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
12623 vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
12624 vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
12625 vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
12626 vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
12627 vect_analyze_loop): Adjust vect_print_dump_info API.
12628 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
12629 vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
12630 vect_finish_stmt_generation, vectorizable_assignment,
12631 vectorizable_operation, vectorizable_store, vectorizable_load,
12632 vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
12633 vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
12634 vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
12635 vect_transform_loop): Same.
12636 * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
12637 vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
12640 2005-07-05 Randolph Chung <tausq@debian.org>
12642 * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
12643 * configure: Regenerate.
12644 * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
12645 (pa_tls_referenced_p): Declare.
12646 * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
12647 (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
12648 (legitimize_tls_address): New.
12649 (hppa_legitimize_address): Handle TLS addresses.
12650 (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
12651 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12652 (emit_move_sequence): Handle TLS addresses.
12653 (pa_encode_section_info): Call default handler to handle common
12655 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
12656 (CONSTANT_ADDRESS_P): Reject TLS operands.
12657 (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
12658 * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
12659 (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
12660 (UNSPEC_TLSLE): Define new constants.
12661 (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
12662 * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
12663 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
12664 (tie_symbolic_operand, tle_symbolic_operand): New
12666 2005-07-06 Kelley Cook <kcook@gcc.gnu.org>
12668 * aclocal.m4: Update macros for autoconf 2.59 style.
12669 * configure.ac: Likewise.
12671 2005-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12673 * pa.c (function_value): Handle small aggregates on 32-bit targets.
12674 (function_arg): Pass small aggregates in general registers on 32-bit
12676 * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
12678 2005-07-05 Andrew Pinski <pinskia@physics.uc.edu>
12680 * Makefile.in (final.o): Fix dependencies.
12682 2005-07-05 Joseph S. Myers <joseph@codesourcery.com>
12686 * langhooks.h (struct lang_hooks): Add expr_to_decl.
12687 * langhooks.c (lhd_expr_to_decl): New.
12688 * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
12690 (LANG_HOOKS_INITIALIZER): Update.
12691 * tree.c (recompute_tree_invarant_for_addr_expr): Call
12692 expr_to_decl langhook.
12693 * c-tree.h (c_expr_to_decl): Declare.
12694 * c-typeck.c (c_expr_to_decl): New.
12695 (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
12697 * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
12699 2005-07-05 Joseph S. Myers <joseph@codesourcery.com>
12702 * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
12703 C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
12705 2005-07-05 Paolo Bonzini <bonzini@gnu.org>
12707 * Makefile.in: Adjust dependencies.
12708 * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
12709 * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
12710 * alias.c (rest_of_handle_cfg, pass_cfg): New.
12711 * bb-reorder.c (duplicate_computed_gotos): Make it static.
12712 * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
12713 rest_of_compilation.
12715 * bb-reorder.c (gate_duplicate_computed_gotos,
12716 pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
12717 rest_of_handle_reorder_blocks, pass_reorder_blocks,
12718 gate_handle_partition_blocks, rest_of_handle_partition_blocks,
12719 pass_partition_blocks): New.
12720 * bt-load.c (gate_handle_branch_target_load_optimize,
12721 rest_of_handle_branch_target_load_optimize,
12722 pass_branch_target_load_optimize): New.
12723 * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
12725 * cfglayout.c (pass_insn_locators_initialize): New.
12726 * cfgrtl.c (pass_free_cfg): New.
12727 * combine.c (gate_handle_combine, rest_of_handle_combine,
12728 pass_combine): New.
12729 * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
12730 gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
12731 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
12732 * except.c (pass_set_nothrow_function_flags,
12733 pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
12735 * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
12736 rest_of_handle_shorten_branches, pass_shorten_branches,
12737 rest_of_clean_state, pass_clean_state): New.
12738 * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
12739 rest_of_handle_remove_death_notes, pass_remove_death_notes,
12740 rest_of_handle_life, pass_life, rest_of_handle_flow2,
12742 * function.c (pass_instantiate_virtual_regs, pass_init_function,
12743 rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
12744 * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
12745 pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
12747 * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
12748 * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
12749 pass_rtl_ifcvt, gate_handle_if_after_combine,
12750 rest_of_handle_if_after_combine, pass_if_after_combine,
12751 gate_handle_if_after_reload, rest_of_handle_if_after_reload,
12752 pass_if_after_reload): New.
12753 * integrate.c (pass_initial_value_sets): New.
12754 * jump.c (pass_cleanup_barriers, purge_line_number_notes,
12755 pass_purge_lineno_notes): New.
12756 * mode-switching.c (rest_of_handle_mode_switching,
12757 pass_mode_switching): New.
12758 * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
12759 * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
12761 * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
12762 pass_loop_optimize): New.
12763 * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
12765 * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
12767 * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
12768 pass_postreload_cse): New.
12769 * profile.c (gate_handle_profiling, pass_profiling,
12770 rest_of_handle_branch_prob, pass_branch_prob): New.
12771 * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
12772 pass_split_before_regstack, gate_handle_split_before_regstack,
12773 gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
12774 rest_of_handle_split_all_insns, pass_split_all_insns): New.
12775 * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
12776 pass_stack_regs): New.
12777 * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
12778 gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
12779 pass_stack_adjustments): New.
12780 * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
12781 pass_regrename): New.
12782 * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
12783 pass_delay_slots, gate_handle_machine_reorg,
12784 rest_of_handle_machine_reorg, pass_machine_reorg): New.
12785 * rtl.h (extern void purge_line_number_notes): New.
12786 * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
12787 gate_handle_sched2, rest_of_handle_sched2, pass_sched,
12789 * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
12791 * value-prof.c (gate_handle_value_profile_transformations,
12792 rest_of_handle_value_profile_transformations,
12793 pass_value_profile_transformations): New.
12794 * var-tracking.c (gate_handle_var_tracking,
12795 pass_variable_tracking): New.
12796 * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
12798 * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
12799 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
12800 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
12801 rest_of_handle_old_regalloc, rest_of_handle_regrename,
12802 rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
12803 rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
12804 rest_of_handle_gcse2, rest_of_handle_regmove,
12805 rest_of_handle_tracer, rest_of_handle_if_conversion,
12806 rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
12807 rest_of_handle_web, rest_of_handle_branch_prob,
12808 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
12809 rest_of_handle_jump_bypass, rest_of_handle_combine,
12810 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
12811 rest_of_handle_gcse, rest_of_handle_loop_optimize,
12812 rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
12813 rest_of_handle_mode_switching, rest_of_handle_jump,
12814 rest_of_handle_eh, rest_of_handle_stack_adjustments,
12815 rest_of_handle_flow2, rest_of_handle_jump2,
12816 rest_of_handle_peephole2, rest_of_handle_postreload,
12817 rest_of_handle_shorten_branches, rest_of_clean_state,
12818 rest_of_compilation): Remove.
12820 * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
12821 * passes.c (dump_flags, in_gimple_form, all_passes,
12822 all_ipa_passes, all_lowering_passes, register_one_dump_file,
12823 register_dump_files, next_pass_1, last_verified, execute_todo,
12824 execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
12825 from tree-optimize.c.
12826 (init_optimization_passes): Moved from tree-optimize.c,
12827 adding the RTL optimizations.
12828 * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
12829 * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
12830 all_ipa_passes, all_lowering_passes, register_one_dump_file,
12831 register_dump_files, next_pass_1, last_verified, execute_todo,
12832 execute_one_pass, execute_pass_list, execute_ipa_pass_list,
12833 init_tree_optimization_passes, ipa_passes): Delete.
12834 * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
12836 (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
12837 dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
12839 (ipa_passes): Remove.
12840 (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
12841 * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
12842 dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
12843 dump_switch_p, dump_flag_name): Moved to tree-pass.h.
12844 (dump_info_p, dump_flag): Moved to tree-dump.h.
12846 * Makefile.in: Adjust dependencies for tree-pretty-print.c,
12848 * passes.c (finish_optimization_passes): Use dump_begin
12849 and dump_end, TDI_end.
12850 (gate_rest_of_compilation): New.
12851 (pass_rest_of_compilation): Use it.
12852 (gate_postreload, pass_postreload): New.
12853 * toplev.c (general_init): Rename init_tree_optimization_passes.
12854 * toplev.h (init_tree_optimization_passes): Rename to
12855 init_optimizations_passes.
12856 * tree-dump.c (dump_flag): Make static.
12857 (dump_files): Remove RTL dumps.
12858 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
12859 pass_cleanup_cfg, pass_free_cfg_annotations,
12860 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
12861 pass_init_datastructures, pass_fixup_cfg): Make non-static.
12862 * tree-pretty-print.c: Include tree-pass.h.
12863 * cgraph.c: Include tree-dump.h.
12865 2005-07-04 Daniel Berlin <dberlin@dberlin.org>
12867 * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
12868 Only fall back to saying it points to readonly memory if
12869 we can't do better.
12871 2005-07-05 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
12873 * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
12874 * config/m32r/m32r.c (m32r_compute_frame_size,
12875 m32r_expand_prologue): Take current_function_profile into
12876 account whenever we reference
12877 current_function_uses_pic_offset_table.
12878 (m32r_finalize_pic): Remove.
12879 * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
12881 2005-07-05 Kazu Hirata <kazu@codesourcery.com>
12883 * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
12884 instead of $<. Don't remove ./as if it already exists.
12886 2005-07-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12889 * pa.md: Remove fcpy alternative from movhi and movqi patterns.
12890 * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
12891 for complex modes when generating code for PA 1.0.
12892 (VALID_FP_MODE_P): New macro.
12893 (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P. Use non-overlapping register
12894 sets for all general and floating point modes. Align wide floating
12895 point modes to even register boundaries to comply with architectural
12897 (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
12898 * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
12899 (VALID_FP_MODE_P): New macro.
12900 (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P. Use non-overlapping register
12901 sets for all general and floating point modes. Align wide floating
12902 point modes to even register boundaries to comply with architectural
12905 2005-07-04 Diego Novillo <dnovillo@redhat.com>
12907 * tree-dump.c (dump_files): Initialize dump number for .cgraph
12910 2005-07-04 Diego Novillo <dnovillo@redhat.com>
12912 * tree-ssa-structalias.c: Don't include expr.h.
12914 2005-07-04 Diego Novillo <dnovillo@redhat.com>
12916 * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
12919 2005-07-04 Daniel Berlin <dberlin@dberlin.org>
12921 Fix PR tree-optimization/22279
12923 * tree-ssa-structalias.c (offset_overlaps_with_access): Use
12926 2005-07-04 J"orn Rennecke <joern.rennecke@st.com>
12928 * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
12930 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
12932 * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
12933 cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
12934 config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
12935 config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
12936 config/stormy16/stormy16.c, config/v850/v850.c,
12937 config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
12938 except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
12939 Avoid "." or "\n" at end of diagnostics and capital letters at
12940 start of diagnostics.
12941 * combine.c, cse.c: Don't translate dump file output.
12942 * toplev.c (print_version): Only translate output if going to
12945 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
12947 * c-decl.c, tree-object-size.c, tree-vectorizer.c,
12948 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
12951 2005-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12953 * pa.c (fix_range): Fix typo in comment.
12955 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
12957 * tree-vrp.c (extract_range_from_assert): Replace
12958 fold (build (...)) with fold_build2.
12960 2005-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12962 * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
12963 gcc_gfc_char_table, init_dynamic_gfc_info): New.
12964 (format_types_orig, handle_format_attribute): Add support for
12967 2005-07-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
12969 * varasm.c (assemble_variable): Fix format specifier thinko.
12971 2005-07-03 Ira Rosen <irar@il.ibm.com>
12973 PR tree-optimization/22029 (and 22135)
12974 * tree-pretty-print.c (dump_generic_node): Check that the node is not
12975 a phi node before calling dump_vops.
12977 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
12979 * tree-dump.h (dump_string_field): Declare.
12980 * tree-dump.c: Use it instead of dump_string.
12981 (dump_string_field): Make non-static.
12983 2005-07-03 Kaz Kojima <kkojima@gcc.gnu.org>
12985 * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
12986 up the minimal CFG stuff always when optimize > 0. Call
12987 split_all_insns_noflow in PIC case if needed.
12989 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
12990 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
12993 * c-decl.c (c_write_global_declarations): Dump contents of
12995 * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
12996 <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
12997 <GOTO_EXPR>, <SWITCH_EXPR>: Add.
12998 (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
13001 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
13003 * c-common.h (GCC_DIAG_STYLE): Define.
13004 * c-tree.h (GCC_DIAG_STYLE): Do not define. Change minimum GCC
13005 version for format checking to 4.1.
13006 * c-format.c: Include toplev.h after c-common.h.
13007 (enum format_type): Add gcc_tdiag_format_type.
13008 (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
13009 gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
13010 (format_types_orig): Add gcc_tdiag.
13011 (init_dynamic_diag_info): Support gcc_tdiag formats.
13012 (handle_format_attribute): Likewise.
13013 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
13014 (GCC_DIAG_STYLE): Default to __gcc_tdiag__. Change minimum GCC
13015 version for format checking to 4.1.
13016 (warning0, warning, error, pedwarn, sorry): Use
13017 ATTRIBUTE_GCC_DIAG.
13018 * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
13019 (finish_aliases_1): Do not use %qE.
13020 * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
13021 config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
13022 Correct format bugs.
13023 * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
13024 parameter to unsigned HOST_WIDE_INT.
13025 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
13027 2005-07-02 David Edelsohn <edelsohn@gnu.org>
13029 PR middle-end/21742
13030 * expr.c (write_complex_part): Use adjust_address for MEM.
13031 (read_complex_part): Same.
13033 2005-07-02 Daniel Berlin <dberlin@dberlin.org>
13035 Fix PR tree-optimization/22280
13037 * tree-sra.c (generate_element_init): Remove useless loop.
13039 2005-07-02 Richard Henderson <rth@redhat.com>
13041 * config/alpha/alpha.c (alpha_legitimize_address): Check for
13043 (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
13045 2005-07-02 Andrew Pinski <pinskia@physics.uc.edu>
13047 PR middle-end/14490
13048 * fold-const.c (fold_binary): Handle the return value of
13049 fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
13050 Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
13052 2005-07-02 Jeff Law <law@redhat.com>
13054 * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
13055 a eliminate type conversion which feeds an equality comparison
13056 if the original type or either operand in the comparison is a
13059 2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
13061 * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
13062 config/rs6000/rs6000.opt, params.def: Remove "." from end of help
13064 * config/avr/avr.c: Do not use '`' as left quote.
13065 * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
13066 Remove "." from end of diagnostics. Make diagnostics start with
13069 2005-07-02 Zack Weinberg <zack@codesourcery.com>
13070 Joseph S. Myers <joseph@codesourcery.com>
13072 * toplev.c (default_tree_printer): Handle setting location with
13074 * c-objc.common.c (c_tree_printer): Likewise.
13075 * c-format.c (gcc_diag_flag_specs): Add '+'.
13076 (gcc_cdiag_char_table): Allow '+' flag for tree formats.
13077 (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
13079 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
13080 config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
13081 config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
13082 config/v850/v850.c, function.c, stor-layout.c, toplev.c,
13083 tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
13084 instead of %J or %H. Use 'q' flag for quoting. Avoid '.' at end
13085 of diagnostics. Use %q+D not %s for a decl. Do not pass excess
13086 format arguments where %J is used without %D.
13088 2005-07-02 Jakub Jelinek <jakub@redhat.com>
13090 * gcc.c (LINK_SSP_SPEC): Define.
13091 (link_ssp_spec): New variable.
13092 (LINK_COMMAND_SPEC): Add %(link_ssp).
13093 (static_specs): Add link_ssp_spec.
13094 * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
13095 * configure: Rebuilt.
13096 * config.in: Rebuilt.
13098 * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
13099 * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
13100 * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
13101 * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
13102 * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
13103 If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
13104 -0x7008(2) instead of reading __stack_chk_guard variable.
13105 * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
13107 (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
13108 (stack_protect_set, stack_protect_test): Use *_tls* patterns
13109 if TARGET_THREAD_SSP_OFFSET is defined.
13110 (stack_tls_protect_set_si, stack_tls_protect_set_di,
13111 stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
13114 2005-06-27 Richard Henderson <rth@redhat.com>
13115 * libgcc-std.ver (GCC_4.1.0): New.
13116 * libgcc.h (__stack_chk_guard): Declare.
13117 (__stack_chk_fail, __stack_chk_fail_local): Declare.
13118 * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
13119 * mklibgcc.in (lib2funcs): Add them.
13121 2005-07-01 Richard Henderson <rth@redhat.com>
13123 * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
13124 void * before struct sigcontext *.
13125 (x86_fallback_frame_state): Likewise.
13127 2005-07-01 James E. Wilson <wilson@specifixinc.com>
13129 * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
13131 2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
13134 * tree-ssa-reassoc.c (should_transpose): Fix which operand
13135 we check for SSA_NAME for.
13137 2005-07-01 Daniel Berlin <dberlin@dberlin.org>
13139 Fix PR tree-optimization/22071
13141 * tree-ssa-structalias.c (offset_overlaps_with_access): New
13143 (get_constraint_for_component_ref): Use it.
13145 2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
13148 * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
13149 print out the last new line.
13151 2005-07-01 Hans-Peter Nilsson <hp@axis.se>
13153 * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
13154 Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
13155 * config/cris/cris.c (cris_conditional_register_usage): Adjust
13156 reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
13157 (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
13158 (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
13159 * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
13160 (enum reg_class): New member CC0_REGS.
13161 (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
13162 (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
13163 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
13164 (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
13165 (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
13166 Adjust for register now described.
13168 2005-07-01 Jakub Jelinek <jakub@redhat.com>
13171 * config/i386/i386.md (stack_protect_test_si,
13172 stack_protect_test_di): Add earlyclobber for scratch 3.
13173 * config/rs6000/rs6000.md (stack_protect_testsi,
13174 stack_protect_testdi): Add earlyclobber for scratch 3,
13175 remove earlyclobber from scratch 4.
13177 Older entries for 2005 can be found in ChangeLog-2005.
13178 2005-06-30 Diego Novillo <dnovillo@redhat.com>
13182 * tree-ssa-alias.c (create_name_tags): Also process
13183 non-dereferenced pointers.
13184 Remove argument 'ai'. Update all callers.
13186 2005-06-30 Andrew Pinski <pinskia@physics.uc.edu>
13188 * config/rs6000/darwin.h (STARTING_FRAME_OFFSET):
13189 Set to 0 for FRAME_GROWS_DOWNWARD.
13190 (REGISTER_NAMES): Add sfp.
13192 2005-07-01 Kelley Cook <kcook@gcc.gnu.org>
13194 * config/arm/libunwind.S, config/arm/pr-support.c,
13195 config/arm/unwind-arm.c, config/arm/unwind-arm.h,
13196 config/c4x/predicates.md, tree-object-size.c: Update FSF address.
13198 2005-06-30 Eric Botcazou <ebotcazou@libertysurf.fr>
13201 * config/sparc/sparc.c (emit_and_preserve): Add 2nd register.
13202 Preserve the 2nd register too, if present.
13203 (sparc_output_mi_thunk) <PIC case>: Preserve the PIC register too.
13204 Adjust call to emit_and_preserve.
13206 2005-06-30 Zack Weinberg <zack@codesourcery.com>
13207 Jakub Jelinek <jakub@redhat.com>
13209 * pretty-print.h (PP_NL_ARGMAX): New.
13210 (text_info): Add locus.
13211 (struct chunk_info): New.
13212 (output_buffer): Add formatted_obstack, chunk_obstack, and
13213 cur_chunk_array. Change obstack to a pointer.
13214 (pp_wrapping_mode_t, pp_wrapping_mode, pp_set_verbatim_wrapping): New.
13215 (struct pretty_print_info): Replace ideal_maximum_length and
13216 prefixing_rule with wrapping.
13217 (pp_line_cutoff, pp_prefixing_rule): Update to match.
13218 Update prototypes and wrapper macros throughout.
13219 * pretty-print.c (pp_formatted_text_data, pp_append_r)
13220 (pp_base_clear_output_area, pp_construct, pp_base_formatted_text)
13221 (pp_base_last_position_in_text, pp_base_newline, pp_base_character):
13222 Update for changes to pp structure.
13223 (pp_base_prepare_to_format, pp_base_format_text): Delete.
13224 (pp_base_format, pp_base_output_formatted_text): New functions.
13225 (pp_base_format_verbatim): Use pp_set_verbatim_wrapping.
13226 (pp_verbatim): Clear text.locus.
13227 (pp_printf): Likewise. Use pp_format and pp_output_formatted_text.
13228 * c-objc-common.c (c_tree_printer): Update function signature.
13229 * diagnostic.c (diagnostic_initialize): Update for changes to
13231 (diagnostic_report_diagnostic): Call pp_format and then
13232 pp_output_formatted_text.
13233 (verbatim): Clear text.locus.
13234 * diagnostic.h (diagnostic_prefixing_rule, diagnostic_line_cutoff):
13235 Update for changes to pp structure.
13237 * c-lang.c: No need to include c-pretty-print.h.
13238 * Makefile.in: Remove bogus line containing only a tab.
13239 (c-lang.o): Update dependencies.
13240 * toplev.c (announce_function): Don't use verbatim.
13241 (default_tree_printer): Update signature.
13243 * objc/objc-lang.c: No need to include c-pretty-print.h.
13244 * objc/Make-lang.in: Update dependencies.
13246 2005-06-29 Daniel Berlin <dberlin@dberlin.org>
13248 * tree-complex.c (complex_variable_components): Now a hashtable.
13249 (cvc_lookup): Ditto.
13250 (cvc_insert): Ditto.
13251 (create_components): Use referenced var iterator.
13252 Initialize hashtable. Use cvc_insert/lookup.
13253 (extract_components): Use cvc_insert/lookup.
13254 (update_complex_components): Ditto.
13255 (update_complex_components_on_edge): Ditto.
13256 * tree-dfa.c (referenced_vars): Now a hashtable.
13257 (dump_referenced_vars): Use iterator.
13258 (referenced_var_lookup): New function.
13259 (referenced_var_insert): Ditto.
13260 (add_referenced_var): Use referenced_var_insert.
13261 (mark_new_vars_to_rename): Use DECL_UID.
13262 * tree-flow-inline.h (first_htab_element): New function.
13263 (end_htab_p): Ditto.
13264 (next_htab_element): Ditto.
13265 (first_referenced_var): Ditto.
13266 (end_referenced_vars_p): Ditto.
13267 (next_referenced_var): Ditto.
13268 (is_call_clobbered): Use DECL_UID.
13269 (mark_call_clobbered): Ditto.
13270 (clear_call_clobbered): Ditto.
13271 (mark_non_addressable): Ditto.
13272 * tree-flow.h (htab_iterator): New struct.
13273 (FOR_EACH_HTAB_ELEMENT): New macro.
13274 (struct int_tree_map): New struct.
13275 (int_tree_map_hash): Prototype.
13276 (int_tree_map_eq): Ditto.
13277 (referenced_var_iterator): Ditto.
13278 (FOR_EACH_REFERENCED_VAR): New macro.
13279 (referenced_vars): Now a hashtable.
13280 * tree-into-ssa.c (symbol_marked_for_renaming): Use DECL_UID.
13281 (add_new_name_mapping): Ditto.
13282 (mark_def_sites): Ditto.
13283 (insert_phi_nodes): Use referenced_var iterator.
13284 (mark_def_site_blocks): Ditto.
13285 (mark_sym_for_renaming): Use DECL_UID.
13286 * tree-sra.c (is_sra_candidate_decl): Use DECL_UID.
13287 (lookup_element): Ditto.
13288 (find_candidates_for_sra): Use referenced_vars iterator.
13290 * tree-ssa-alias.c (NUM_REFERENCES): New macro.
13291 (NUM_REFERENCES_CLEAR): Ditto.
13292 (NUM_REFERENCES_INC): Ditto.
13293 (NUM_REFERENCES_SET): Ditto.
13294 (alias_obstack): New bitmap obstack.
13295 (struct alias_map_d): Use bitmap, not sbitmap.
13296 (struct alias_info): Remove num_references.
13297 (init_alias_info): Use referenced_var iterator.
13298 Initialize bitmap obstack.
13299 (delete_alias_info): Use referenced_var iterator.
13300 Free bitmap obstack.
13301 (compute_points_to_and_addr_escape): Use DECL_UID.
13302 Use new NUM_REFERENCES macros.
13303 (compute_flow_sensitive_aliasing): may_aliases is now a bitmap.
13304 Use new NUM_REFERENCES macros.
13305 (group_aliases_into): Update prototype to use bitmap.
13306 (setup_pointers_and_addressables): Use referenced_vars iterator.
13307 Use DECL_UID. Use new NUM_REFERENCES macros.
13308 (add_pointed_to_var): Use DECL_UID.
13309 (dump_alias_info): Use referenced_var iterator.
13310 (add_type_alias): Ditto.
13311 (used_portions): Now a hashtable.
13312 (used_part_map_eq): New function.
13313 (used_part_map_hash): Ditto.
13314 (free_used_part_map): Ditto.
13315 (up_lookup): Ditto.
13316 (up_insert): Ditto.
13317 (get_or_create_used_part_for): Use up_lookup.
13318 (create_overlap_variables_for): Ditto.
13319 (find_used_portions): Use up_insert.
13321 (create_structure_vars): Init used_portions hashtable, use
13322 referenced_vars iterator.
13323 * tree-ssa-live.c (create_ssa_var_map): sbitmaps became bitmaps.
13325 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Use DECL_UID.
13326 * tree-ssa-operands.c (get_asm_expr_operands): Ditto.
13327 (note_addressable): Ditto.
13328 * tree-ssa-structalias.c (set_uids_in_ptset): Ditto.
13329 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13330 referenced_var iterator.
13332 (delete_tree_ssa): Ditto.
13333 (int_tree_map_eq): New function.
13334 (int_tree_map_hash): Ditto.
13335 * tree-stdarg.c (find_va_list_reference): Use DECL_UID.
13336 (va_list_ptr_read): Ditto.
13337 (va_list_counter_struct_op): Ditto.
13338 (va_list_ptr_write): Ditto.
13339 (check_va_list_escapes): Ditto.
13340 (check_all_va_list_escapes): Ditto.
13341 (execute_optimize_stdarg): Ditto.
13342 * tree-tailcall.c (suitable_for_tail_opt_p): Used referenced_var
13345 2005-06-30 Andrew Pinski <pinskia@physics.uc.edu>
13347 * config/rs6000/darwin.h (FRAME_POINTER_REGNUM): Rename to ...
13348 (HARD_FRAME_POINTER_REGNUM): this.
13350 2005-06-30 Jan Hubicka <jh@suse.cz>
13352 * ipa-inline.c (cgraph_clone_inlined_nodes): Revert previous patch.
13354 2005-06-30 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13356 PR middle-end/22247
13357 * tree-ssa-structalias.c (build_constraint_graph, scc_visit,
13358 process_unification_queue, init_topo_info, topo_visit,
13359 init_scc_info, free_scc_info, perform_var_substitution,
13360 solve_graph): Use unsigned instead of uint.
13362 2005-06-30 Jakub Jelinek <jakub@redhat.com>
13364 * function.c (gen_stack_protect_test): Add third argument.
13366 2005-06-30 J. D. Johnston <jjohnst@us.ibm.com>
13368 * gthr-tpf.h (CE2THRCPTR): Change field offset to 16.
13370 2005-06-30 Kazu Hirata <kazu@codesourcery.com>
13372 * config/c4x/c4x-protos.h: Remove the prototypes for those
13373 functions removed from c4x.c. Add prototypes for those
13374 functions exported in c4x.c.
13375 * config/c4x/c4x.c (any_operand, fp_zero_operand,
13376 const_operand, stik_const_operand, not_const_operand,
13377 reg_operand, r0r1_reg_operand, r2r3_reg_operand,
13378 ext_low_reg_operand, ext_reg_operand, std_reg_operand,
13379 std_or_reg_operand, addr_reg_operand, index_reg_operand,
13380 dp_reg_operand, sp_reg_operand, st_reg_operand,
13381 rc_reg_operand, call_address_operand,
13382 symbolic_address_operand, dst_operand, src_operand,
13383 src_hi_operand, lsrc_operand, tsrc_operand,
13384 nonimmediate_src_operand, nonimmediate_lsrc_operand,
13385 reg_or_const_operand, par_ind_operand, parallel_operand):
13387 (c4x_immed_float_p, c4x_a_register, c4x_x_register,
13388 c4x_K_constant, c4x_N_constant, c4x_O_constant,
13389 c4x_S_indirect): Export.
13390 * config/c4x/c4x.h (PREDICATE_CODES): Remove.
13391 * config/c4x/c4x.md: Include predicates.md.
13392 * config/c4x/predicates.md: New.
13394 2005-06-30 Jakub Jelinek <jakub@redhat.com>
13396 * function.c (stack_protect_epilogue): Pass label to
13397 stack_protect_test, assume it emitted also the conditional
13399 * doc/md.texi (stack_protect_test): Adjust documentation.
13400 * config/i386/i386.md (stack_protect_test): Add third argument,
13401 emit beq with operands[2].
13402 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Define to
13403 flag_stack_protect != 0.
13404 * config/rs6000/rs6000.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
13406 (stack_protect_set, stack_protect_test): New expanders.
13407 (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
13408 stack_protect_testdi): New insns.
13409 * config/rs6000/rs6000.c (rs6000_stack_protect_fail): New function.
13410 (TARGET_STACK_PROTECT_FAIL): Define.
13411 (rs6000_generate_compare): Handle UNSPEC_SP_TEST.
13413 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Increment.
13414 (DWARF_FRAME_REGISTERS, DWARF_REG_TO_UNWIND_COLUMN): Adjust, so
13415 that addition of sfp doesn't change these.
13416 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
13417 REG_ALLOC_ORDER): Add sfp.
13418 (INT_REGNO_P): Include FRAME_POINTER_REGNUM.
13419 (FRAME_POINTER_REGNUM): Define to 113.
13420 (HARD_FRAME_POINTER_REGNUM): Define to 31.
13421 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add sfp.
13422 (STARTING_FRAME_OFFSET): Set to 0 for FRAME_GROWS_DOWNWARD.
13423 (ELIMINABLE_REGS): Never eliminate to
13424 FRAME_POINTER_REGNUM, but HARD_FRAME_POINTER_REGNUM
13425 instead. Add eliminations from FRAME_POINTER_REGNUM.
13426 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P):
13427 Include FRAME_POINTER_REGNUM.
13428 (REGISTER_NAMES): Add sfp.
13429 * config/rs6000/rs6000.c (rs6000_reg_names): Add sfp.
13430 (alt_reg_names): Likewise.
13431 (rs6000_stack_info): Handle FRAME_GROWS_DOWNWARD.
13432 (rs6000_emit_prologue): Use HARD_FRAME_POINTER_REGNUM
13433 instead of FRAME_POINTER_REGNUM.
13434 (rs6000_initial_elimination_offset): Never eliminate to
13435 FRAME_POINTER_REGNUM, but HARD_FRAME_POINTER_REGNUM
13436 instead. Add elimination offsets from FRAME_POINTER_REGNUM.
13438 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Only return non-zero
13439 if DEFAULT_ABI == ABI_V4.
13441 2005-06-30 Steven Bosscher <stevenb@suse.de>
13443 * coretypes.h (tls_model): Add TLS_MODEL_NONE as 0.
13444 * tree.h (struct tree_decl): New field `tls_model'.
13445 (DECL_TLS_MODEL): New.
13446 (DECL_THREAD_LOCAL_P): Rename from DECL_THREAD_LOCAL, make it
13448 * rtl.h (decl_default_tls_model): Add prototype for it.
13449 * varasm.c (decl_tls_model): Rewritten and renamed to ...
13450 (decl_default_tls_model): ... this.
13451 (default_encode_section_info): Use DECL_TLS_MODEL instead of
13453 (assemble_variable): Replace DECL_THREAD_LOCAL with
13454 DECL_THREAD_LOCAL_P.
13455 (default_section_type_flags_1): Likewise.
13456 (categorize_decl_for_section): Likewise.
13457 * tree.c (staticp): Likewise.
13458 (recompute_tree_invarant_for_addr_expr): Likewise.
13459 * drawf2out (loc_descriptor_from_tree_1): Likewise.
13460 * c-decl.c (diagnose_mismatched_decls): Likewise.
13461 with DECL_THREAD_LOCAL_P.
13462 (start_decl): Likewise.
13463 * print-tree.c (print_node): Likewise. Print the TLS model.
13464 (grokdeclarator): Set the default DECL_TLS_MODEL here.
13465 * c-common.c (handle_tls_model_attribute): Rewrite to set the
13466 TLS model up based on the attribute. Never add the attribute
13467 to the decl's attributes list.
13468 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Replace
13469 DECL_THREAD_LOCAL with DECL_THREAD_LOCAL_P.
13471 2005-06-30 Zdenek Dvorak <dvorakz@suse.cz>
13474 * tree-ssa-live.c (mark_all_vars_used_1): Ignore variables in
13477 2005-06-30 Bernd Schmidt <bernd.schmidt@analog.com>
13479 * config/bfin/bfin.md (addv2hi3, subv2hi3, sminv2hi3, smaxv2hi3,
13480 mulv2hi3, negv2hi2, absv2hi2): Pattern names fixed by appending the
13483 2005-06-29 David Edelsohn <edelsohn@gnu.org>
13485 * config/rs6000/rs6000.c (rs6000_file_start): Use PPC405_ERRATUM77.
13487 2005-06-29 Diego Novillo <dnovillo@redhat.com>
13490 * tree-ssa-copy.c (fini_copy_prop): Do not overwrite copy_of
13491 when following copy-of chains.
13493 2005-06-30 Jan Hubicka <jh@suse.cz>
13495 * function.h (struct function): Add saved blocks/unexpanded var list.
13496 * gimple-low.c (record_vars): Insert only VAR_DECLs.
13497 * tree-inline.c (add_lexical_block): Declare; do not clear sublocks.
13498 (remap_decl): Do not declare vars.
13499 (remap_block): Do not care inserting blocks.
13500 (remap_blocks): New function.
13501 (copy_body_r): Update debug info.
13502 (expand_call_inline): Duplicate callee block tree into caller;
13503 copy all the unexpanded_var_list.
13504 (save_body): Save unexpanded_var_list and blocks.
13505 * tree-optimize.c (tree_rest_of_optimization): Restore
13506 blocks/unexpanded_var_list.
13508 2005-06-29 Richard Henderson <rth@redhat.com>
13510 * config/ia64/ia64.c (ia64_expand_vecint_minmax): Use us_minus and
13511 plus for V4HImode UMAX.
13513 2005-06-29 Joseph S. Myers <joseph@codesourcery.com>
13515 * c-tree.h (default_function_array_conversion): Take and return
13517 * c-typeck.c (default_function_array_conversion): Split into
13518 array_to_pointer_conversion and function_to_pointer_conversion.
13519 Take and return struct c_expr.
13520 (array_to_pointer_conversion): Do not handle type qualifiers or
13521 COMPOUND_EXPRs specially.
13522 (build_function_call): Call function_to_pointer_conversion for
13523 function designators.
13524 (build_unary_op): Call array_to_pointer_conversion, not
13525 default_function_array_conversion.
13526 (digest_init, output_init_element): Likewise.
13527 * c-parser.c: All callers of default_function_array_conversion
13530 2005-06-29 Ziemowit Laski <zlaski@apple.com>
13532 * config/darwin.c (machopic_select_section): constant ObjC string
13533 objects now always have type "__builtin_ObjCString".
13535 2005-06-29 Richard Henderson <rth@redhat.com>
13537 * config/alpha/alpha.md (vec_shl_<VEC>, vec_shr_<VEC>): New.
13539 2005-06-29 Richard Henderson <rth@redhat.com>
13541 * tree-vect-transform.c (vect_min_worthwhile_factor): Declare.
13542 (vect_create_epilog_for_reduction): Don't use vec_shr if the
13543 operation is emulated.
13544 (vectorizable_reduction): Duplicate vect_min_worthwhile_factor
13545 tests from vectorizable_operation.
13547 2005-06-29 Caroline Tice <ctice@apple.com>
13550 * varasm.c (assemble_start_function): Add "L" to beginning of
13551 local labels, so assembler & linker treat them as local.
13553 2005-06-29 Richard Henderson <rth@redhat.com>
13555 * config/i386/i386.c (ix86_expand_int_vcond): Remove unsignedp
13556 argument. Simplify canonicalization of condition. Use unsigned
13557 saturating subtraction for QI and HImode unsigned compares. Use
13558 bit arithmetic tricks for SImode unsigned compares.
13559 * config/i386/i386-protos.h (ix86_expand_int_vcond): Update decl.
13560 * config/i386/sse.md (SSEMODE14): New.
13561 (umaxv8hi3): Use us_minus+plus to avoid vcond.
13563 (smax<SSEMODE14>3): Rename from smaxv16qi3 and macroize.
13564 (smin<SSEMODE14>3): Similarly with sminv16qi3.
13565 (umin<SSEMODE24>3): Similarly with uminv8hi3.
13567 2005-06-29 Ian Lance Taylor <ian@airs.com>
13569 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Change
13570 GEN_INT to gen_int_for_mode when storing register size to memory.
13572 2005-06-29 Stuart Hastings <stuart@apple.com>
13574 * config/i386/mmintrin.h: Mark vector intrinsics always_inline.
13575 * config/i386/emmintrin.h: Likewise.
13576 * config/i386/pmmintrin.h: Likewise.
13577 * config/i386/xmmintrin.h: Likewise.
13579 2005-06-29 Steve Ellcey <sje@cup.hp.com>
13581 PR middle-end/21969
13582 * tree.h (TYPE_VECTOR_SUBPARTS): Change to shift expression.
13583 (SET_TYPE_VECTOR_SUBPARTS): New.
13584 * tree.c (make_vector_type): Replace TYPE_VECTOR_SUBPARTS with
13585 SET_TYPE_VECTOR_SUBPARTS.
13586 * tree-vect-transform.c (vect_transform_loop): Add cast.
13588 2005-06-29 Andreas Krebbel <krebbel1@de.ibm.com>
13590 * config/s390/s390.c (s390_decompose_address): Accept invalid
13591 displacements for addresses containing frame_pointer_rtx or
13592 virtual_stack_vars_rtx.
13593 (s390_frame_info): Replaced use of STARTING_FRAME_OFFSET.
13594 (s390_initial_elimination_offset): New offset when eliminating the
13595 soft frame pointer.
13596 * config/s390/s390.h (FRAME_GROWS_DOWNWARD): Defined as 1.
13597 (STARTING_FRAME_OFFSET, STACK_DYNAMIC_OFFSET): Definitions changed.
13599 2005-06-28 Ziemowit Laski <zlaski@apple.com>
13601 * c-common.c (flag_next_runtime): Move...
13602 * toplev.c (flag_next_runtime): ... here.
13603 * c-common.h (flag_next_runtime): Move...
13604 * flags.h (flag_next_runtime): ... here.
13605 * config/darwin-c.c: Include flags.h.
13606 * config/t-darwin (darwin-c.o): Depend on flags.h.
13608 2005-06-29 Kaz Kojima <kkojima@gcc.gnu.org>
13610 * config/sh/linux-unwind.h (shmedia_fallback_frame_state):
13611 Disable aliasing warning with void * cast.
13612 (sh_fallback_frame_state): Likewise.
13614 2005-06-29 Kaz Kojima <kkojima@gcc.gnu.org>
13616 * target.h (gcc_target): New field allocate_initial_value.
13617 * target-def.h (TARGET_ALLOCATE_INITIAL_VALUE): New macro.
13618 (TARGET_INITIALIZER): Include it.
13619 * integrate.c (allocate_initial_values): Use
13620 targetm.allocate_initial_value.
13621 * system.h: Poison ALLOCATE_INITIAL_VALUE.
13622 * config/sh/sh-protos.h (sh_pr_n_sets): Delete.
13623 * config/sh/sh.c (sh_pr_n_sets): Make it static.
13624 (sh_allocate_initila_value): New function.
13625 (TARGET_ALLOCATE_INITIAL_VALUE): Override default.
13626 * config/sh/sh.h (ALLOCATE_INITIAL_VALUE): Delete.
13627 * doc/tm.texi (TARGET_ALLOCATE_INITIAL_VALUE): Rename and
13628 update from ALLOCATE_INITIAL_VALUE.
13630 2005-06-28 Richard Henderson <rth@redhat.com>
13632 * tree-vectorizer.c (vect_is_simple_reduction): Compare types
13633 using TYPE_MAIN_VARIANT.
13635 2005-06-28 Richard Henderson <rth@redhat.com>
13637 * config/ia64/ia64.c (ia64_expand_vecint_compare): Decompose to EQ
13638 when using psubN.uuu.
13640 2005-06-29 Kelley Cook <kcook@gcc.gnu.org>
13642 * doc/gcc.texi: Update FSF address.
13644 2005-06-28 Eric Christopher <echristo@redhat.com>
13648 * c-decl.c (diagnose_mismatched_decls): Define DECL_EXTERN_INLINE.
13649 Use. Fix detection of invalid extern inline redefinition.
13651 2005-06-28 Diego Novillo <dnovillo@redhat.com>
13653 * tree-optimize.c (init_tree_optimization_passes): Fix typo.
13655 2005-06-28 Andrew Pinski <pinskia@physics.uc.edu>
13657 * config/rs6000/rs6000.md (setmemsi): s/operand/operands/.
13659 2005-06-28 Richard Henderson <rth@redhat.com>
13661 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use unsigned
13662 saturating subtraction for QI and HImode unsigned compares. Use
13663 bit arithmetic tricks for SImode unsigned compares.
13664 (ia64_expand_vcondu_v2si): Remove.
13665 (ia64_expand_vecint_cmov): Don't call it.
13667 2005-06-28 Richard Henderson <rth@redhat.com>
13669 * rtlanal.c (nonzero_bits1): Use the mode of the value for
13670 determining integral-ness for comparisons.
13672 2005-06-28 Andrew Pinski <pinskia@physics.uc.edu>
13674 * config/rs6000/rs6000.md (setmemsi): Fix operand 2.
13676 2005-06-28 Joseph S. Myers <joseph@codesourcery.com>
13678 * target.h (invalid_conversion, invalid_unary_op,
13679 invalid_binary_op): New hooks.
13680 * target-def.h (TARGET_INVALID_CONVERSION,
13681 TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP,
13682 TARGET_INITIALIZER): Likewise.
13683 * hooks.h (hook_constcharptr_tree_tree_null,
13684 hook_constcharptr_int_tree_null,
13685 hook_constcharptr_int_tree_tree_null): New.
13686 * hooks.c (hook_constcharptr_tree_tree_null,
13687 hook_constcharptr_int_tree_null,
13688 hook_constcharptr_int_tree_tree_null): Likewise.
13689 * doc/tm.texi (TARGET_INVALID_CONVERSION,
13690 TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Document.
13691 * c-convert.c (convert): Use invalid_conversion hook.
13692 * c-typeck.c (build_unary_op): Use invalid_unary_op hook.
13693 (build_binary_op): Use invalid_binary_op hook.
13694 * config/ia64/ia64-modes.def: Define RFmode.
13695 * config/ia64/ia64-protos.h (spill_xfmode_operand): Remove.
13696 (ia64_expand_movxf_movrf): New.
13697 * config/ia64/ia64.md (movxf): Move code to
13698 ia64_expand_movxf_movrf.
13699 (movrf, movrf_internal): New.
13700 * ia64.c (ia64_invalid_conversion, ia64_invalid_unary_op,
13701 ia64_invalid_binary_op, TARGET_INVALID_CONVERSION,
13702 TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): New.
13703 (spill_xfmode_operand): Rename to spill_xfmode_rfmode_operand.
13704 Add mode parameter. Make static.
13705 (ia64_expand_movxf_movrf): New, moved from ia64.md. Handle RFmode
13707 (ia64_function_arg, ia64_function_value, ia64_register_move_cost,
13708 ia64_scalar_mode_supported_p): Handle RFmode as well as XFmode.
13709 (ia64_init_builtins): Set up __fpreg as RFmode.
13710 (ia64_mangle_fundamental_type): Mangle __fpreg as u7__fpreg.
13712 2005-06-28 Adrian Straetling <straetling@de.ibm.com>
13714 * builtins.c: (expand_builtin_memset): Rewrite to support
13715 'set_storage_via_setmem'.
13716 * expr.c: (enum insn_code setmem_optab): Define.
13717 (enum insn_code clrmem_optab): Remove.
13718 (set_storage_via_setmem): New function.
13719 (clear_storage_via_setmem): Remove.
13720 (clear_storage): Replace call to "clear_storage_via_clrmem" with
13721 "set_storage_via_setmem".
13722 * expr.h: (set_storage_via_setmem): Declare.
13723 (CLEAR_RATIO): Redefine using HAVE_setmemM.
13724 * optabs.h: (enum insn_code setmem_optab): Declare.
13725 (enum insn_code clrmem_optab): Remove.
13726 * optabs.c: (init_optabs): Initialize setmem_optab.
13727 (enum insn_code clrmem_optab): Remove.
13728 * genopinit.c: (otabs): Likewise.
13729 * doc/md.texi: Document new standard pattern 'setmem'. Remove
13731 * config/alpha/alpha.c: (alpha_expand_block_clear): Adjust
13732 'operands' ordering.
13733 * config/frv/frv.c: (frv_expand_block_clear): Likewise.
13734 * config/rs6000/rs6000.c: (expand_block_clear): Likewise.
13735 * config/alpha/alpha.md: ("clrmemqi", "clrmemdi"): Rename to "setmemM".
13736 FAIL on operands[2]!=const0_rtx. Adjust 'operands' ordering.
13737 * config/avr/avr.md: ("clrmemhi"): Likewise.
13738 * config/frv/frv.md: ("clrmemsi"): Likewise.
13739 * config/i386/i386.md: ("clrmemsi", "clrmemdi"): Likewise.
13740 * config/pa/pa.md: ("clrmemsi", "clrmemdi"): Likewise.
13741 * config/rs6000/rs6000.md: ("clrmemsi"): Likewise.
13742 * config/s390/s390.md: ("clrmem<mode>"): Likewise.
13744 2005-06-28 Paul Brook <paul@codesourcery.com>
13746 * Makefile.in: Set and use UNWIND_H. Install as unwind.h.
13747 * c-decl.c (finish_decl): Call default_init_unwind_resume_libfunc.
13748 * except.c (add_ehspec_entry): Generate arm eabi filter lists.
13749 (assign_filter_values): Ditto.
13750 (output_ttype): New function.
13751 (output_function_exception_table): Use output_ttype. Generate arm
13753 (default_init_unwind_resume_libfunc): New function.
13754 * except.h (default_init_unwind_resume_libfunc): Add prototype.
13755 * optabs.c (init_optabs): Don't set unwind_resume_libfunc.
13756 * opts.c (decode_options): Use targetm.unwind_tables_default.
13757 * target-def.h (TARGET_ASM_TTYPE): Provide and use definition.
13758 (TARGET_ARM_EABI_UNWINDER, TARGET_UNWIND_TABLES_DEFAULT): Ditto.
13759 * target.h (struct gcc_target): Add asm.ttype, unwind_tables_default
13760 and arm_eabi_unwinder.
13761 * unwind-c.c: Support Arm EABI unwinder.
13762 * unwind.h: Rename ...
13763 * unwind-generic.h: ... To this.
13764 * doc/tm.texi (TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER): Document.
13765 (TARGET_UNWID_TABLES_DEFAULT): Document.
13767 * config/arm/arm-protos.h (arm_output_fn_unwind): Add prototype.
13768 * config/arm/arm.c (arm_unwind_emit, arm_output_ttype): New functions.
13769 (TARGET_UNWIND_EMIT, TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER):
13771 (thumb_pushpop, thumb_output_function_prologue): Output unwinding
13773 (arm_unwind_emit_stm, arm_unwind_emit_set): New functions.
13774 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS): Only define when
13775 !TARGET_UNWIND_INFO.
13776 (ARM_OUTPUT_FN_UNWIND, ARM_EABI_UNWIND_TABLES): Define.
13777 * config/arm/bpabi.h (TARGET_UNWIND_INFO): Define.
13778 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME,
13779 ASM_DECLARE_FUNCTION_SIZE): Use ARM_OUTPUT_FN_UNWIND.
13780 * config/arm/lib1funcs.asm: Include libunwind.S.
13781 * config/arm/libgcc-bpabi.ver: Add unwinding routines.
13782 * config/arm/libunwind.S: New file.
13783 * config/arm/pr-support.c: New file.
13784 * config/arm/t-bpabi (LIB1ASMFUNCS): Add _unwind.
13785 (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
13786 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
13787 * config/arm/unwind-arm.c: New file.
13788 * config/arm/unwind-arm.h: New file.
13789 * config/i386/t-netware (USER_H): Remove unwind.h.
13790 * config/ia64/ia64.h (TARGET_UNWIND_TABLES_DEFAULT): Define.
13792 2005-06-28 DJ Delorie <dj@redhat.com>
13794 * c-decl.c (pop_scope): Move warning control into warning call.
13795 (diagnose_mismatched_decls): Likewise.
13796 (pushdecl): Likewise.
13797 (start_decl): Likewise.
13798 (grokparms): Likewise.
13799 (start_function): Likewise.
13800 (store_parm_decls_newstyle): Likewise.
13801 (store_parm_decls_oldstyle): Likewise.
13802 (finish_function): Likewise.
13803 (declspecs_add_scspec): Likewise.
13804 * c-format.c (decode_format_attr): Likewise.
13805 (maybe_read_dollar_number): Likewise.
13806 (avoid_dollar_number): Likewise.
13807 (finish_dollar_format_checking): Likewise.
13808 (check_format_info): Likewise.
13809 (check_format_info_main): Likewise.
13810 (check_format_types): Likewise.
13811 (format_type_warning): Likewise.
13812 * c-typeck.c (function_types_compatible_p): Likewise.
13813 (build_array_ref): Likewise.
13814 (convert_arguments): Likewise.
13815 (build_c_cast): Likewise.
13816 (store_init_value): Likewise.
13817 (process_init_element): Likewise.
13818 (c_start_case): Likewise.
13819 * stor-layout.c (finalize_record_size): Likewise.
13820 * tree-cfg.c (execute_warn_function_noreturn): Likewise.
13821 * tree-inline.c (expand_call_inline): Likewise.
13823 2005-06-28 Uros Bizjak <uros@kss-loka.si>
13826 * config/i386/i386.md (fist<mode>2_with_temp splitter):
13827 Clobber memory operand, not scratch register.
13829 2005-06-28 Andreas Krebbel <krebbel1@de.ibm.com>
13831 * config/s390/s390.c (machine_function): New field has_landing_pad_p.
13832 (s390_set_has_landing_pad_p, s390_reg_clobbered_rtx,
13833 s390_regs_ever_clobbered): New functions.
13834 (s390_return_addr_rtx): Use get_hard_reg_initial_value.
13835 (s390_register_info, s390_init_frame_layout, s390_update_frame_layout):
13836 Use s390_regs_ever_clobbered.
13837 (s390_emit_prologue): Don't use r14 as temp reg if its content is used
13838 for builtin_return_address.
13839 * config/s390/s390.md ("exception_receiver"): New expander.
13840 * config/s390/s390-protos.h (s390_set_has_landing_pad_p): Prototype
13843 2005-06-28 Andreas Krebbel <krebbel1@de.ibm.com>
13845 * except.c (current_function_has_exception_handlers): Function
13846 description added and if statements merged.
13848 2005-06-28 Richard Henderson <rth@redhat.com>
13850 * config/i386/sse.md (smaxv16qi3): Fix buffer overflow.
13851 (sminv16qi3, umaxv8hi3, uminv8hi3): Likewise.
13853 2005-06-27 Richard Henderson <rth@redhat.com>
13855 * config/ia64/ia64.c (ia64_expand_vcondu_v2si): Generate proper
13856 comparison operations.
13857 (ia64_expand_vecint_minmax): Fix size of xops.
13858 * config/ia64/vect.md (umax<VECINT>3): Fix fallback pattern typo.
13859 (vec_shl_<VECINT>, vec_shr_<VECINT>): New.
13861 2005-06-27 Richard Henderson <rth@redhat.com>
13863 * tree-vect-transform.c (get_initial_def_for_reduction): Use correct
13864 type for DEF and INIT_VAL. Pretend MIN/MAX need epilogue adjustment.
13866 2005-06-27 Richard Henderson <rth@redhat.com>
13868 * config/i386/sse.md (vec_shl_<SSEMODEI>, vec_shr_<SSEMODEI>): New.
13869 (smaxv16qi3, umaxv8hi3, sminv16qi3, uminv8hi3): New.
13871 2005-06-27 Richard Henderson <rth@redhat.com>
13873 * tree-vect-transform.c (vect_create_epilog_for_reduction): Remove
13874 duplicate little-endian adjustment.
13876 2005-06-28 Kelley Cook <kcook@gcc.gnu.org>
13878 * doc/include/texinfo.tex: Import from upstream CVS.
13880 2005-06-28 Jan Hubicka <jh@suse.cz>
13882 * cgraph.c (cgraph_remove_node): Do not release function bodies until
13883 full cgraph is built.
13884 * cgraph.h (cgraph_decide_inlining_incrementally): Add early argument.
13885 * cgraphunit.c (cgraph_finalize_function): Update call of
13886 cgraph_decide_inlining_incrementally.
13887 (initialize_inline_failed): Break out of ...
13888 (cgraph_analyze_function): ... here.
13889 (rebuild_cgraph_edges): New function.
13890 (pass_rebuild_cgraph_edges): New pass.
13891 * common.opt (fearly-inlining): New flag.
13892 * ipa-inline.c: Include ggc.h
13893 (cgraph_clone_inlined_nodes): Avoid re-using of original copy
13894 when cgraph is not fully built.
13895 (cgraph_decide_inlining_incrementally): Add early mode.
13896 (cgraph_early_inlining): New function.
13897 (cgraph_gate_early_inlining): Likewise.
13898 (pass_early_ipa_inline): New pass.
13899 * ipa.c (cgraph_postorder): NULLify aux pointer.
13900 * tree-inline.c (expand_call_inline): Avoid warning early.
13901 * tree-optimize.c (pass_early_local_passes): New.
13902 (execute_cleanup_cfg_pre_ipa): New.
13903 (pass_cleanup_cfg): New.
13904 (register_dump_files): Fix handling subpasses of IPA pass.
13905 (init_tree_optimization_passes): Add early passes.
13906 (execute_ipa_pass_list): Fix handling of subpasses of IPA pass.
13907 * passes.h (pass_early_tree_profile, pass_rebuild_cgraph_edges,
13908 pass_early_ipa_inline): New passes.
13909 * tree-profile.c (do_early_tree_profiling, pass_early_tree_profile): New.
13911 * invoke.texi: Document early-inlining.
13913 2005-06-28 Kelley Cook <kcook@gcc.gnu.org>
13915 * doc/include/fdl.texi: Merge in changes from upstream.
13916 * doc/include/gpl.texi: Likewise.
13918 2005-06-27 Diego Novillo <dnovillo@redhat.com>
13921 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Handle type
13922 casts between unsigned and signed types with different size
13925 2005-06-28 Jan Hubicka <jh@suse.cz>
13927 * tree-optimize.c (exercute_free_datastructures):
13928 Do not disband implicit edges; do not attempt to build insn list;
13929 do not free cfg annotations.
13930 (execute_free_cfg_annotations); Disband implicit edges here;
13931 free cfg annotations here too.
13932 (pass_free_cfg_annotations); New pass.
13933 (init_tree_optimization_passes); Add pass_free_cfg_annotations.
13934 * tree-ssa-operands.c (free_ssa_operands); Recover; export.
13935 * tree-ssa-operands.h (free_ssa_operands); declare.
13936 * tree-ssa.c (delete_tree_ssa); Free SSA operand; mark stmt modified;
13938 * tree-ssanames.c (release_defs): Kill addresses_taken.
13940 * basic-block.h (basic_block_def): Kill rbi.
13941 (reorder_block_def): Kill; Remove next field (replaced by aux);
13942 move other fields to ...
13943 (rtl_bb_info): ... here.
13944 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
13945 copy_bb, connect_traces, add_labels_and_missing_jumps
13946 fix_up_fall_thru_edges, fix_crossing_conditional_branches,
13947 duplicate_computed_gotos, partition_hot_cold_basic-blocks):
13948 Update to new fields.
13949 * cfg.c (initialize_bb_rbi): Kill.
13950 * cfglayout.c (record_effective_endpoints, fixup_reorder_chain,
13951 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update.
13952 * cfgrtl.c (cfg_layout_create_basic_block): Do not initialize rbi.
13953 (try_redirect_by_replacing_jump): Update rbi references.
13954 (cfg_layout_split_block): Likewise.
13955 (cfg_layout_delete_block): Likewise.
13956 (cfg_layout_merge_blocks): Likewise.
13957 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13958 * passes.c (rest_of_handle_sms): Likewise.
13959 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
13961 2005-06-27 David Edelsohn <edelsohn@gnu.org>
13963 * config/rs6000/rs6000.c (rs6000_file_start): Note PPC405 erratum
13964 in verbose_asm output.
13965 * config/rs6000/rs6000.h (PPC405_ERRATUM77): Bracket with
13967 * config.gcc (powerpc with_which): Define CONFIG_PPC405CR for
13970 2005-06-27 Jakub Jelinek <jakub@redhat.com>
13972 * builtin-attrs.def (DEF_ATTR_FOR_INT): Add for 5 and 6.
13973 (DEF_LIST_INT_INT): Add for 4,0, 4,5, 5,0, 5,6.
13974 (ATTR_NOTHROW_NONNULL_4, ATTR_NOTHROW_NONNULL_5): Define.
13975 (ATTR_FORMAT_PRINTF_4_0, ATTR_FORMAT_PRINTF_4_5,
13976 ATTR_FORMAT_PRINTF_5_0, ATTR_FORMAT_PRINTF_5_6): Define.
13977 * builtins.c: Include tree-flow.h.
13978 (expand_builtin_mempcpy, expand_builtin_memmove): Comment fixes.
13979 (expand_builtin_object_size, expand_builtin_memory_chk,
13980 maybe_emit_chk_warning, maybe_emit_sprintf_chk_warning,
13981 compute_object_offset, compute_builtin_object_size,
13982 fold_builtin_object_size): New functions.
13983 (expand_builtin): Handle BUILT_IN_OBJECT_SIZE and BUILT_IN_*_CHK.
13984 (fold_builtin_1): Likewise. Handle BUILT_IN_{,V}{,F}PRINTF
13985 and BUILT_IN_{,F}PRINTF_UNLOCKED.
13986 (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
13987 fold_builtin_strncpy_chk, fold_builtin_strcat_chk,
13988 fold_builtin_strncat_chk, fold_builtin_sprintf_chk,
13989 fold_builtin_snprintf_chk, fold_builtin_printf, fold_builtin_fprintf):
13991 * builtins.def (BUILT_IN_OBJECT_SIZE, BUILT_IN_MEMCPY_CHK,
13992 BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK, BUILT_IN_MEMSET_CHK,
13993 BUILT_IN_STPCPY_CHK, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK,
13994 BUILT_IN_STRNCAT_CHK, BUILT_IN_STRNCPY_CHK, BUILT_IN_SNPRINTF_CHK,
13995 BUILT_IN_SPRINTF_CHK, BUILT_IN_VSNPRINTF_CHK, BUILT_IN_VSPRINTF_CHK,
13996 BUILT_IN_FPRINTF_CHK, BUILT_IN_PRINTF_CHK, BUILT_IN_VFPRINTF_CHK,
13997 BUILT_IN_VPRINTF_CHK): New builtins.
13998 * builtin-types.def (DEF_FUNCTION_TYPE_5, DEF_FUNCTION_TYPE_VAR_4):
14000 (BT_FN_SIZE_CONST_PTR_INT, BT_FN_INT_INT_CONST_STRING_VALIST_ARG,
14001 BT_FN_PTR_PTR_CONST_PTR_SIZE_SIZE, BT_FN_PTR_PTR_INT_SIZE_SIZE,
14002 BT_FN_STRING_STRING_CONST_STRING_SIZE_SIZE,
14003 BT_FN_INT_FILEPTR_INT_CONST_STRING_VALIST_ARG,
14004 BT_FN_INT_STRING_INT_SIZE_CONST_STRING_VALIST_ARG,
14005 BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VALIST_ARG,
14006 BT_FN_INT_INT_CONST_STRING_VAR, BT_FN_INT_FILEPTR_INT_CONST_STRING_VAR,
14007 BT_FN_INT_STRING_INT_SIZE_CONST_STRING_VAR,
14008 BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VAR): New types.
14009 * c-common.c (DEF_FUNCTION_TYPE_5, DEF_FUNCTION_TYPE_6,
14010 DEF_FUNCTION_TYPE_VAR_4, DEF_FUNCTION_TYPE_VAR_5): Define.
14011 * Makefile.in (OBJS-common): Add tree-object-size.o.
14012 (tree-object-size.o): Add dependencies.
14013 * tree-pass.h (pass_object_sizes): Add.
14014 * tree-optimize.c (init_tree_optimization_passes): Add
14016 * tree-object-size.c: New file.
14017 * tree.h (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
14018 fold_builtin_strncpy_chk, fold_builtin_snprintf_chk,
14019 compute_builtin_object_size, init_object_sizes, fini_object_sizes):
14021 * tree-ssa-ccp.c (get_strlen): Rename to ...
14022 (get_maxval_strlen): ...this function. Handle also computing of maximum
14023 string length and maximum integral value.
14024 (ccp_fold_builtin): Handle BUILT_IN_*_CHK. Use get_maxval_strlen
14025 instead of get_strlen. Pass CALLEE and ARGLIST variables to the
14026 folding functions instead of computing them again.
14027 (execute_fold_all_builtins): Retry ccp_fold_builtin if a builtin changed
14028 into some other builtin.
14029 * doc/extend.texi (Object Size Checking): Document.
14031 * regrename.c (copy_value): Fix comment.
14033 * toplev.c (process_options): Use if (FRAME_GROWS_DOWNWARD)
14034 instead of preprocessor conditionals.
14036 * targhooks.c (default_hidden_stack_protect_fail): Fall back to
14037 default_external_stack_protect_fail if visibility is not supported
14039 * config/i386/i386.c (ix86_stack_protect_fail): New function.
14040 (TARGET_STACK_PROTECT_FAIL): Define.
14041 * config/i386/i386.md (stack_protect_si): Change CLOBBER into
14043 (stack_protect_di): Likewise. Use %k2 instead of %2 to avoid
14044 invalid instruction xorl %rax, %rax.
14046 2005-06-27 Richard Henderson <rth@redhat.com>
14048 * c-cppbuiltin.c (c_cpp_builtins): Add __SSP_ALL__ and __SSP__.
14049 * cfgexpand.c: Include params.h.
14050 (has_protected_decls, has_short_buffer): New.
14051 (expand_stack_vars): Take a predicate to determine what to expand.
14052 (defer_stack_allocation): True when flag_stack_protect on.
14053 (SPCT_HAS_LARGE_CHAR_ARRAY, SPCT_HAS_SMALL_CHAR_ARRAY): New.
14054 (SPCT_HAS_ARRAY, SPCT_HAS_AGGREGATE): New.
14055 (stack_protect_classify_type, stack_protect_decl_phase): New.
14056 (stack_protect_decl_phase_1, stack_protect_decl_phase_2): New.
14057 (add_stack_protection_conflicts, create_stack_guard): New.
14058 (expand_used_vars): Add stack protection logic.
14059 (tree_expand_cfg): Likewise.
14060 * common.opt (Wstack-protector): New.
14061 (fstack-protector, fstack-protector-all): New.
14062 * function.c: Include predict.h.
14063 (assign_parm_adjust_stack_rtl): Zap stack_parm when stack protect
14064 wants to copy the parameter into the stack frame.
14065 (stack_protect_prologue, stack_protect_epilogue): New.
14066 (expand_function_end): Call stack_protect_epilogue. Do
14067 sjlj_emit_function_exit_after after naked_return_label.
14068 * function.h (struct function): Add stack_protect_guard.
14069 * params.def (PARAM_SSP_BUFFER_SIZE): New.
14070 * toplev.c (process_options): Disable flag_stack_protect and/or
14071 warn_stack_protect based on FRAME_GROWS_DOWNWARD.
14072 * tree.h (stack_protect_prologue): Declare.
14074 * target-def.h (TARGET_STACK_PROTECT_GUARD): New.
14075 (TARGET_STACK_PROTECT_FAIL): New.
14076 (TARGET_INITIALIZER): Add them.
14077 * target.h (struct gcc_target): Add stack_protect_guard and
14078 stack_protect_fail.
14079 * targhooks.c: Include ggc.h, gty header.
14080 (stack_chk_guard_decl, default_stack_protect_guard): New.
14081 (stack_chk_fail_decl, default_external_stack_protect_fail): New.
14082 (default_hidden_stack_protect_fail): New.
14083 * targhooks.h (default_stack_protect_guard): Declare.
14084 (default_external_stack_protect_fail): Declare.
14085 (default_hidden_stack_protect_fail): Declare.
14086 * config/i386/i386.c (TARGET_STACK_PROTECT_FAIL): New.
14087 * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New.
14089 (conditional_trap, conditional_trap_1): Remove.
14090 (stack_protect_set, stack_protect_set_si, stack_protect_set_di): New.
14091 (stack_protect_test, stack_protect_test_si, stack_protect_test_di): New.
14092 * doc/md.texi (stack_protect_set, stack_protect_test): New.
14093 * doc/tm.texi (TARGET_STACK_PROTECT_GUARD): New.
14094 (TARGET_STACK_PROTECT_FAIL): New.
14096 * libgcc-std.ver (GCC_4.1.0): New.
14097 * libgcc.h (__stack_chk_guard): Declare.
14098 (__stack_chk_fail, __stack_chk_fail_local): Declare.
14099 * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
14100 * mklibgcc.in (lib2funcs): Add them.
14102 2005-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14105 * c-common.c (check_function_sentinel): Pass in named argument
14106 list, skip over named arguments before looking for a sentinel.
14107 (check_function_arguments): Pass in named argument list.
14108 * c-common.h (check_function_arguments): Likewise.
14109 * c-typeck.c (build_function_call): Likewise.
14111 2005-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14113 * genautomata.c (decl_mode_check_failed,
14114 regexp_mode_check_failed): Add noreturn attribute.
14116 2005-06-26 Kazu Hirata <kazu@codesourcery.com>
14118 * cfg.c, tree-vect-transform.c, tree.def: Fix comment typos.
14119 * doc/invoke.texi: Fix typos.
14121 * builtins.c, c-common.c, c-convert.c, c-decl.c, c-typeck.c,
14122 convert.c, lambda-code.c, predict.c, tree-cfg.c,
14123 tree-complex.c, tree-data-ref.c, tree-if-conv.c,
14124 tree-mudflap.c, tree-scalar-evolution.c, tree-ssa-ccp.c,
14125 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
14126 tree-ssa-loop-manip.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14127 tree-vect-analyze.c, tree-vect-transform.c, tree-vectorizer.c,
14128 tree.c: Use fold_buildN instead of fold (buildN (...)).
14130 2005-06-26 Gerald Pfeifer <gerald@pfeifer.com>
14132 * doc/install.texi (Specific): Do not specify the concrete
14133 versions of GCC provided by Cygwin. Simplify the part on
14134 building on Cygwin.
14136 2005-06-26 Kazu Hirata <kazu@codesourcery.com>
14138 * config/arc/arc-protos.c: Remove the prototype for
14140 * config/arc/arc.c (arc_finalize_pic): Remove.
14141 * config/arc/arc.h (FINALIZE_PIC): Likewise.
14142 * config/bfin/bfin.h (FINALIZE_PIC): Likewise.
14143 * config/rs6000/rs6000.h (FINALIZE_PIC): Likewise.
14145 2005-06-26 Jakub Jelinek <jakub@redhat.com>
14147 PR middle-end/17965
14148 * calls.c (expand_call, emit_library_call_value_1): Use xmalloc/free
14149 instead of alloca for really big argument sizes.
14151 PR middle-end/22028
14152 * gimplify.c (gimplify_type_sizes): Check for type == error_mark_node
14153 earlier in the function.
14155 * regrename.c (copy_value): Don't replace fixed or global
14156 regs with older regs.
14158 * defaults.h (FRAME_GROWS_DOWNWARD): Define to 0 if not defined.
14159 * function.c (get_func_frame_size): Use if (FRAME_GROWS_DOWNWARD)
14160 instead of preprocessor conditionals.
14161 (assign_stack_local_1, assign_stack_temp_for_type): Likewise.
14162 * cfgexpand.c (FRAME_GROWS_DOWNWARD): Don't redefine to 1 or 0
14163 depending on if it was or was not defined previously.
14164 * doc/rtl.texi (VIRTUAL_STACK_VARS_REGNUM): Mention that only non-zero
14165 definition of FRAME_GROWS_DOWNWARD means frame grows downward.
14166 * doc/tm.texi (FRAME_GROWS_DOWNWARD): Likewise.
14167 * config/m68hc11/m68hc11.h (FRAME_GROWS_DOWNWARD): Define to 0. Update
14169 * config/pa/pa.h (FRAME_GROWS_DOWNWARD): Likewise.
14170 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Likewise.
14171 * config/stormy16/stormy16.h (FRAME_GROWS_DOWNWARD): Define to 0.
14172 * config/c4x/c4x.h (FRAME_GROWS_DOWNWARD): Likewise.
14173 * config/sh/sh.h (FRAME_GROWS_DOWNWARD): Likewise.
14174 * config/ia64/ia64.h (FRAME_GROWS_DOWNWARD): Likewise.
14175 * config/iq2000/iq2000.h (FRAME_GROWS_DOWNWARD): Likewise.
14176 * config/pdp11/pdp11.h (FRAME_GROWS_DOWNWARD): Define to 1. Update
14178 * config/i860/i860.h (FRAME_GROWS_DOWNWARD): Likewise.
14179 * config/h8300/h8300.h (FRAME_GROWS_DOWNWARD): Likewise.
14180 * config/arc/arc.h (FRAME_GROWS_DOWNWARD): Likewise.
14181 * config/vax/vax.h (FRAME_GROWS_DOWNWARD): Likewise.
14182 * config/sparc/sparc.h (FRAME_GROWS_DOWNWARD): Likewise.
14183 * config/i386/i386.h (FRAME_GROWS_DOWNWARD): Likewise.
14184 * config/fr30/fr30.h (FRAME_GROWS_DOWNWARD): Likewise.
14185 * config/frv/frv.h (FRAME_GROWS_DOWNWARD): Likewise.
14186 * config/mn10300/mn10300.h (FRAME_GROWS_DOWNWARD): Likewise.
14187 * config/bfin/bfin.h (FRAME_GROWS_DOWNWARD): Likewise.
14188 * config/ns32k/ns32k.h (FRAME_GROWS_DOWNWARD): Likewise.
14189 * config/v850/v850.h (FRAME_GROWS_DOWNWARD): Likewise.
14190 * config/alpha/alpha.h (FRAME_GROWS_DOWNWARD): Update comment.
14191 * config/s390/s390.h (FRAME_GROWS_DOWNWARD): Likewise.
14192 * config/arm/arm.h (FRAME_GROWS_DOWNWARD): Likewise.
14193 * config/alpha/unicosmk.h (FRAME_GROWS_DOWNWARD): Define to 1.
14194 * config/cris/cris.h (FRAME_GROWS_DOWNWARD): Likewise.
14195 * config/m68k/m68k.h (FRAME_GROWS_DOWNWARD): Likewise.
14196 * config/mmix/mmix.h (FRAME_GROWS_DOWNWARD): Likewise.
14198 2005-06-26 Kazu Hirata <kazu@codesourcery.com>
14200 PR tree-optimization/22026
14201 * tree-vrp.c (extract_range_from_binary_expr): Drop to
14202 VR_VARYING if a binary expression involving VR_ANTI_RANGE is
14203 PLUS_EXPR, MINUS_EXPR, or unsigned MULT_EXPR.
14205 2005-06-26 Kazu Hirata <kazu@codesourcery.com>
14207 * Makefile.in (OBJS-common): Remove duplicate object file
14210 2005-06-25 Jan Hubicka <jh@suse.cz>
14212 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update profile.
14213 * cfg.c (update_bb_profile_for_threading): Fix rescaling.
14215 * passes.c (rest_of_handle_branch_prob): Do not rebuild profiling info
14217 (rest_of_compilation): Fix conditional on branch prob pass.
14218 * predict.c (tree_estimate_probability): Enable strip_builtin_expect
14219 when not loop optimizing.
14221 2005-06-25 Bernd Schmidt <bernd.schmidt@analog.com>
14223 * config/bfin/bfin.md (ror_one, rol_one, ashrdi3, ashldi3, lshrdi3):
14225 (movbi): Add alternative to set CC to zero.
14226 (compare_eq, compare_ne, compare_le, compare_lt, compare_leu,
14227 compare_ltu): Now named patterns.
14229 2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
14231 * all files: Update FSF address in copyright headers.
14233 2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
14235 * gengtype.c: Update FSF address in copyright header.
14236 (create_file): Update FSF in outputed copyright header.
14238 2005-06-24 Kazu Hirata <kazu@codesourcery.com>
14240 * cfglayout.c (block_locators_locs, line_locators_locs,
14241 line_locators_lines, file_locators_locs): Change the type to
14243 (insn_locators_initialize, change_scope, insn_scope,
14244 locator_line, insn_line, locator_file): Use VEC instead of
14247 2005-06-24 Jason Merrill <jason@redhat.com>
14249 * tree-nrv.c (tree_nrv): Fix to check assignments to the
14250 RESULT_DECL rather than just RETURN_EXPRs.
14251 (finalize_nrv_r): Adjust.
14253 2005-06-24 Jan Hubicka <jh@suse.cz>
14255 * tree-optimize.c (init_tree_optimization_passes): Fix flags of
14256 all_passes and all_ipa_passes.
14258 * c-common.c: Include cgraph.h
14259 (handle_externally_visible_attribute): New function.
14260 (c_common_att): Add "externally_visible" attribute.
14261 * cgraph.c (decide_is_variable_needed): Obey externally
14263 (cgraph_varpool_finalize_decl): Avoid redundant checking.
14264 * cgraph.h (struct cgraph_node): New flag externally_visible.
14265 (decide_is_function_needed): Obey externally visible flag.
14266 (cgraph_finalize_function): Avoid redundant checks.
14267 (cgraph_function_and_variable_visibility): Bring symbols local
14269 * common.opt (fwhole-program): New flag.
14271 * doc/invoke.texi (-fwhole-program): Document.
14273 2005-06-24 Mark Mitchell <mark@codesourcery.com>
14276 * tree-ssa-operands.c (get_expr_operands): Check s_ann for NULL
14279 2005-06-23 Mark Mitchell <mark@codesourcery.com>
14282 * tree-ssa-operands.c (get_expr_operands): Check the volatility of
14283 the FIELD_DECL and set s_ann->has_volatile_ops accordingly.
14285 2005-06-24 Jan Hubicka <jh@suse.cz>
14287 * opts.c (decode_options): Enable unit-at-a-time by default at -O1.
14289 2005-06-23 Jeff Law <law@redhat.com>
14291 * tree-optimize.c (init_tree_optimization_passes): Move
14292 copy prop pass to run just before VRP.
14293 * tree-vrp.c (remove_range_assertions): Remove copies created
14294 by ASSERT_EXPR removal.
14296 2005-06-23 Kazu Hirata <kazu@codesourcery.com>
14298 PR tree-optimization/22117
14299 * tree-vrp.c (extract_range_from_binary_expr): Compute a
14300 correct range when adding two pointers.
14302 2005-06-23 Jason Merrill <jason@redhat.com>
14305 Leave the return slot target in the MODIFY_EXPR rather than making
14306 it an argument, but only use it if the CALL_EXPR has a flag set.
14307 * tree.h (CALL_EXPR_HAS_RETURN_SLOT_ADDR): Rename to
14308 CALL_EXPR_RETURN_SLOT_OPT.
14309 * calls.c (expand_call): Adjust.
14310 * tree-inline.c (expand_call_inline): Adjust.
14311 * tree-pretty-print.c (dump_generic_node): Adjust.
14313 And set the flag as appropriate.
14314 * gimplify.c (gimplify_modify_expr_rhs): Set
14315 CALL_EXPR_HAS_RETURN_SLOT_ADDR where the LHS is obviously safe.
14316 * tree-nrv.c (execute_return_slot_opt): Set
14317 CALL_EXPR_HAS_RETURN_SLOT_ADDR based on escape analysis.
14318 * tree-pass.h: Declare pass_return_slot.
14319 * tree-optimize.c (init_tree_optimization_passes): Add it.
14321 2005-06-23 David Edelsohn <edelsohn@gnu.org>
14324 * config/rs6000/rs6000.h (PPC405_ERRATUM77): New.
14325 * config/rs6000/rs6000.md: Move atomic instructions to ...
14326 * config/rs6000/sync.md: Here.
14327 Change sync_compare_and_swap<mode> to define_expand. All stwcx
14328 patterns test PPC405_ERRATUM77.
14330 2005-06-23 Jan Hubicka <jh@suse.cz>
14332 * tree-inline.c (copy_body_r): Remap labels correctly.
14334 2005-06-22 Alan Modra <amodra@bigpond.net.au>
14336 * config/rs6000/sysv4.h (TARGET_ASM_EXCEPTION_SECTION): Delete.
14338 2005-06-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14340 PR middle-end/20593
14341 * varasm.c (compute_reloc_for_constant): Treat VIEW_CONVER_EXPR
14342 the same as the other cast operands.
14343 (output_addressed_constants): Likewise.
14345 2005-06-21 Jeff Law <law@redhat.com>
14347 * tree-vrp.c (extract_range_from_unary_expr): Handle type
14348 conversions better.
14350 2005-06-21 Dorit Nuzman <dorit@il.ibm.com>
14352 * genopinit.c (vec_shl_optab, vec_shr_optab): Initialize new optabs.
14353 (reduc_plus_optab): Removed. Replcaed with...
14354 (reduc_splus_optab, reduc_uplus_optab): Initialize new optabs.
14355 * optabs.c (optab_for_tree_code): Return reduc_splus_optab or
14356 reduc_uplus_optab instead of reduc_plus_optab.
14357 (expand_vec_shift_expr): New function.
14358 (init_optabs): Initialize new optabs. Remove initialization of
14360 (optab_for_tree_code): Return vec_shl_optab/vec_shr_optab
14361 for VEC_LSHIFT_EXPR/VEC_RSHIFT_EXPR.
14362 * optabs.h (OTI_reduc_plus): Removed. Replaced with...
14363 (OTI_reduc_splus, OTI_reduc_uplus): New.
14364 (reduc_plus_optab): Removed. Replcaed with...
14365 (reduc_splus_optab, reduc_uplus_optab): New optabs.
14366 (vec_shl_optab, vec_shr_optab): New optabs.
14367 (expand_vec_shift_expr): New function declaration.
14369 * tree.def (VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR): New tree-codes.
14370 * tree-inline.c (estimate_num_insns_1): Handle new tree-codes.
14371 * expr.c (expand_expr_real_1): Handle new tree-codes.
14372 * tree-pretty-print.c (dump_generic_node, op_symbol, op_prio): Likewise.
14373 * tree-vect-generic.c (expand_vector_operations_1): Add assert.
14375 * tree-vect-transform.c (vect_create_epilog_for_reduction): Add two
14376 alternatives for generating reduction epilog code.
14377 (vectorizable_reduction): Don't fail of direct reduction support is
14379 (vectorizable_target_reduction_pattern): Likewise.
14381 * config/rs6000/altivec.md (reduc_smax_v4si, reduc_smax_v4sf,
14382 reduc_umax_v4si, reduc_smin_v4si, reduc_smin_v4sf, reduc_umin_v4si,
14383 reduc_plus_v4si, reduc_plus_v4sf): Removed.
14384 (vec_shl_<mode>, vec_shr_<mode>, altivec_vsumsws_nomode,
14385 reduc_splus_<mode>, reduc_uplus_v16qi): New.
14387 2005-06-20 Daniel Berlin <dberlin@dberlin.org>
14389 * c-typeck.c (build_function_call): Set fundecl = function again.
14390 * tree-ssa-alias.c (find_used_portions): Address taking causes the
14391 entire variable to be used.
14392 * tree-ssa-structalias.c (do_structure_copy): Fix handling of
14393 unknown size variables, and structure copies from addressof
14394 operations. Simplify how we do *a = *b type structure copies.
14395 (init_base_vars): Add ANYTHING = &ANYTHING constraint the right
14396 way. READONLY's address is not taken by default.
14397 INTEGER dereference should point to anything.
14398 (create_variable_info_for): It's okay for the first field to not start
14401 2005-06-20 Kaz Kojima <kkojima@gcc.gnu.org>
14403 config/sh/linux.h (FUNCTION_PROFILER): Constify a char*.
14405 2005-06-20 Roger Sayle <roger@eyesopen.com>
14406 Fariborz Jahanian <fjahanian@apple.com>
14408 * combine.c (simplify_set): Simplify setting of CC register
14409 by removing redundant compare with 0 on RHS.
14411 2005-06-20 Jan Beulich <jbeulich@novell.com>
14413 * config/i386/netware-libgcc.def: Update copyright.
14414 * config/i386/netware-libgcc.exp (__divdc3, __divsc3, __divxc3,
14415 __muldc3, __mulsc3, __mulxc3, __powidf2, __powisf2, __powixf2): Add.
14416 * config/i386/netware.c (gen_stdcall_decoration,
14417 gen_fastd_decoration): Merge into ...
14418 (gen_stdcall_or_fastcall_decoration): ... this. Adjust to match
14420 (gen_regparm_prefix): Adjust to match i386_nlm_encode_section_info.
14421 (i386_nlm_encode_section_info): Adjust to match WinNT's changes.
14422 * config/i386/t-nwld (SHLIB_LINK): Also create libgcc.imp alias of
14423 libgcc_s.imp. Use 'expr' rather than $(()) shell expressions.
14424 * gthr-nks.h (__gthread_objc_mutex_allocate): Kill another dubious
14425 use of NX_MUTEX_RECURSIVE.
14427 2005-06-19 Roger Sayle <roger@eyesopen.com>
14429 * fold-const.c (swap_tree_comparison): Add support for unordered
14430 floating point comparisons.
14431 * tree-vrp.c (opposite_comparison): Delete.
14432 (extract_range_from_assert): Replace calls to opposite_comparison
14433 with calls to swap_tree_comparison.
14434 (register_edge_assert_for): Likewise.
14435 (vrp_evaluate_conditional): Likewise.
14437 2005-06-20 Kaz Kojima <kkojima@gcc.gnu.org>
14439 * integrate.c (allocate_initial_values): Update the references
14440 to global_live_at_start and global_live_at_end.
14442 2005-06-20 Jan Hubicka <jh@suse.cz>
14444 * cfgloop.h (DLTHE_RECORD_COPY_NUMBER): New flag.
14445 * cfgloopmanip.c (duplicate_loop_to_header_edge): Set aux flags only
14447 * loop-unroll.c (peel_loop_completely, unroll_loop_constant_iterations,
14448 unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
14449 Update call of duplicate_loop_to_header_edge.
14450 (apply_opt_in_copies): Clear out aux pointers.
14452 2005-06-19 Joseph S. Myers <joseph@codesourcery.com>
14454 * config/i386/i386.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
14455 (ix86_mangle_fundamental_type): New.
14456 * config/ia64/ia64.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
14457 (ia64_mangle_fundamental_type): New.
14459 2005-06-19 Roger Sayle <roger@eyesopen.com>
14461 * c-decl.c (grokdeclarator): Only check TREE_OVERFLOW on
14463 * c-typeck.c (build_c_cast): Only preserve TREE_OVERFLOW on
14464 CONSTANT_CLASS_P nodes.
14466 2005-06-19 Richard Henderson <rth@redhat.com>
14468 * config/ia64/vect.md (vec_extractv2sf_1): Fix cut-and-paste error;
14469 the shift is always required.
14471 2005-06-19 Richard Henderson <rth@redhat.com>
14473 * config/ia64/ia64-modes.def (V4SF): Add.
14474 * config/ia64/ia64.c (ia64_legitimate_constant_p): Handle CONST_VECTOR.
14475 * config/ia64/ia64.h (CANNOT_CHANGE_MODE_CLASS): Allow vector to
14476 integer mode changes in fp regs.
14477 * config/ia64/ia64.md (UNSPEC_VECT_EXTR): New.
14478 * config/ia64/vect.md (smaxv2sf3, sminv2sf3): Fix typos in names.
14479 (reduc_plus_v2sf, reduc_smax_v2sf, reduc_smin_v2sf): New.
14480 (vcondv2sf): Use gen_fpack
14481 (fpack): Remove * from name.
14482 (fswap, fmix_l, fmix_r, fmix_lr): New.
14483 (vec_setv2sf, vec_extractv2sf_0_le, vec_extractv2sf_0_be): New.
14484 (vec_extractv2sf_1, vec_extractv2sf): New.
14486 2005-06-19 Andreas Krebbel <krebbel1@de.ibm.com>
14488 * combine.c (make_compound_operation): Use simplify_subreg. Delete
14489 a optimization already done by simplify_subreg.
14491 2005-06-19 Ulrich Weigand <uweigand@de.ibm.com>
14493 * loop.c (scan_loop): Do not consider insns setting the frame
14494 pointer to be candidates for hoisting.
14496 2005-06-19 Uros Bizjak <uros@kss-loka.si>
14498 * config/i386/i386.md (*cmpfp_0_sf, *cmpfp_0_df, cmpfp_0_xf):
14499 Remove instruction patterns.
14500 (*cmpfp_0): New instruction pattern. Set "unit" attribute to "i387".
14501 (*cmpfp_sf, *cmpfp_df, *cmpfp_xf, *cmpfp_u, *_cmpfp_<mode>):
14502 Set "unit" attribute to "i387".
14503 (*pushsf, *pushsf_rex64, *pushdf_nointeger, *pushdf_integer)
14504 (*pushxf_nointeger, *pushxf_integer): Set "unit" attribute to "i387"
14506 (*truncdfsf_mixed, *truncdfsf_i387, *truncxfsf2_mixed)
14507 (*truncxfsf2_i387, *truncxfdf2_mixed, *truncxfdf2_i387): Set "unit"
14508 attribute to "i387" when "type" attribute equals "multi".
14509 (*floathisf2_i387, *floatsisf2_mixed, *floatsisf2_i387)
14510 (*floatdisf2_mixed, *floatdisf2_i387, *floathidf2_i387)
14511 (*floatsidf2_mixed, *floatsidf2_i387, *floatdidf2_mixed)
14512 (*floatdidf2_i387, floathixf2, floatsixf2, floatdixf2): Set "unit"
14513 attribute to "i387" when "type" attribute equals "multi".
14514 * config/i386/mmx.md (*mov<mode>_internal_rex64)
14515 (*mov<mode>_internal, *movv2sf_internal_rex64, *movv2sf_internal):
14516 Set "unit" attribute to "mmx" when "type" attribute equals "ssecvt".
14517 (mmx_pmovmskb): Correct wrong "type" and "mode" attributes.
14518 * config/i386/sse.md (sse_cvtps2pi, sse_cvttps2pi, sse_cvtpd2di)
14519 (sse_cvttpd2pi): Set "unit" attribute to "mmx".
14520 (sse2_cvtpi2pd): Split register constraints. Set "unit" attribute
14521 to "mmx" for "y" operand 1.
14523 2005-06-19 Uros Bizjak <uros@kss-loka.si>
14525 * config/i386/i386.c (ix86_function_arg_regno_p): Add MMX_REGNO_P
14526 for TARGET_MMX. Use MMX_REGPARM_MAX and SSE_REGPARM_MAX for MMX
14527 and SSE registers to determine if regno is valid.
14528 (ix86_function_value_regno_p): Depend FIRST_FLOAT_REG on
14529 TARGET_FLOAT_RETURNS_IN_80387 also for TARGET_64BIT. Clean up.
14531 2005-06-18 Richard Henderson <rth@redhat.com>
14533 * tree-complex.c (init_dont_simulate_again): Clear DONT_SIMULATE_AGAIN
14534 for control-altering statements; set it again for returns.
14535 (complex_visit_stmt): Return SSA_PROP_VARYING for stmts that are
14538 2005-06-18 Richard Henderson <rth@redhat.com>
14541 * tree-ssa-pre.c (create_expression_by_pieces): Set
14542 DECL_COMPLEX_GIMPLE_REG_P.
14543 (insert_into_preds_of_block): Likewise.
14545 2005-06-18 Steven Bosscher <stevenb@suse.de>
14547 * Makefile.in: Fix tree-cfgcleanup.c dependencies.
14549 2005-06-18 Richard Henderson <rth@redhat.com>
14551 * expr.c (store_constructor): Use store of 0 to indicate value
14552 death instead of a clobber.
14554 * config/i386/i386.c (ix86_expand_reduc_v4sf): New.
14555 * config/i386/i386-protos.h (ix86_expand_reduc_v4sf): Declare.
14556 * config/i386/sse.md (reduc_plus_v4sf): New.
14557 (reduc_smax_v4sf, reduc_smin_v4sf): New.
14559 2005-06-18 James A. Morrison <phython@gcc.gnu.org>
14561 * fold_const (fold_binary): Fold X % (2**N) to X & (2**N - 1) for
14562 nonnegative values of X.
14564 2005-06-18 Uros Bizjak <uros@kss-loka.si>
14566 * doc/md.texi (Standard Names): Change insn pattern name
14567 from truncM2 to btruncM2 for 'trunc' built-in description.
14568 Add rintM2 insn pattern description.
14570 2005-06-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14572 * c-decl.c (locate_old_decl): Add format attribute.
14573 (implicit_decl_warning): Likewise.
14575 * diagnostic.h (verbatim): Move ...
14576 * toplev.h (verbatim): ... here. Add ATTRIBUTE_GCC_DIAG.
14577 * pretty-print.h (pp_verbatim): Add ATTRIBUTE_GCC_PPDIAG.
14579 2005-06-18 Roger Sayle <roger@eyesopen.com>
14582 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Remove definition.
14584 2005-06-18 Dorit Nuzman <dorit@il.ibm.com>
14586 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): New
14588 * optabs.h (OTI_reduc_smax, OTI_reduc_umax, OTI_reduc_smin,
14589 OTI_reduc_umin, OTI_reduc_plus): New optabs for reduction.
14590 (reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
14591 reduc_plus_optab): New optabs for reduction.
14592 * expr.c (expand_expr_real_1): Handle new tree-codes.
14593 * tree-inline.c (estimate_num_insns_1): Handle new tree-codes.
14594 * tree-pretty-print.c (dump_generic_node, op_prio, op_symbol): Handle
14596 * optabs.c (optab_for_tree_code): Handle new tree-codes.
14597 (init_optabs): Initialize new optabs.
14598 * genopinit.c (optabs): Define handlers for new optabs.
14600 * tree-vect-analyze.c (vect_analyze_operations): Fail vectorization in
14601 case of a phi that is marked as relevant. Call vectorizable_reduction.
14602 (vect_mark_relevant): Phis may be marked as relevant.
14603 (vect_mark_stmts_to_be_vectorized): The use corresponding to the
14604 reduction variable in a reduction stmt does not mark its defining phi
14605 as relevant. Update documentation accordingly.
14606 (vect_can_advance_ivs_p): Skip reduction phis.
14607 * tree-vect-transform.c (vect_get_vec_def_for_operand): Takes
14608 additional argument. Handle reduction.
14609 (vect_create_destination_var): Update call to vect_get_new_vect_var.
14610 Handle non-vector argument.
14611 (get_initial_def_for_reduction): New function.
14612 (vect_create_epilog_for_reduction): New function.
14613 (vectorizable_reduction): New function.
14614 (vect_get_new_vect_var): Handle new vect_var_kind.
14615 (vectorizable_assignment, vectorizable_operation, vectorizable_store,
14616 vectorizable_condition): Update call to vect_get_new_vect_var.
14617 (vect_transform_stmt): Call vectorizable_reduction.
14618 (vect_update_ivs_after_vectorizer): Skip reduction phis.
14619 (vect_transform_loop): Skip if stmt is both not relevant and not live.
14620 * tree-vectorizer.c (reduction_code_for_scalar_code): New function.
14621 (vect_is_simple_reduction): Was empty - added implementation.
14622 * tree-vectorizer.h (vect_scalar_var): New enum vect_var_kind value.
14623 (reduc_vec_info_type): New enum vect_def_type value.
14624 * config/rs6000/altivec.md (reduc_smax_v4si, reduc_smax_v4sf,
14625 reduc_umax_v4si, reduc_smin_v4si, reduc_umin_v4sf, reduc_smin_v4sf,
14626 reduc_plus_v4si, reduc_plus_v4sf): New define_expands.
14628 * tree-vect-analyze.c (vect_determine_vectorization_factor): Remove
14629 ENABLE_CHECKING around gcc_assert.
14630 * tree-vect-transform.c (vect_do_peeling_for_loop_bound,
14631 (vect_do_peeling_for_alignment, vect_transform_loop,
14632 vect_get_vec_def_for_operand): Likewise.
14634 2005-06-18 Joseph S. Myers <joseph@codesourcery.com>
14636 * config/ia64/ia64.c (ia64_function_arg): Set up a PARALLEL for a
14637 big-endian unnamed __float80 value.
14639 2005-06-18 Richard Henderson <rth@redhat.com>
14642 * tree-sra.c (generate_copy_inout): Handle SSA_NAME complex
14645 2005-06-17 Richard Henderson <rth@redhat.com>
14647 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Use
14648 initialize_original_copy_tables and free_original_copy_tables.
14649 (vect_do_peeling_for_alignment): Likewise.
14651 2005-06-17 Pat Haugen <pthaugen@us.ibm.com>
14653 * bb-reorder.c (find_traces_1_round): Use succ block frequency
14654 instead of edge frequency for calls to better_edge_p.
14656 2005-06-17 Andrew Pinski <pinskia@physics.uc.edu>
14659 * tree-ssa-loop-im.c (for_each_index): Handle COMPLEX_CST.
14661 2005-06-17 Steve Ellcey <sje@cup.hp.com>
14664 * config/ia64/hpux.h (FUNCTION_PROFILER): New (dummy).
14665 (PROFILE_HOOK): New.
14666 (PROFILE_BEFORE_PROLOGUE): Undef.
14667 (NO_PROFILE_COUNTERS): New.
14668 * config/ia64/ia64-protos.h (ia64_profile_hook): New.
14669 * config/ia64/ia64.c (ia64_compute_frame_size): Add ifdef.
14670 (gen_mcount_func_rtx): New.
14671 (ia64_profile_hook): New.
14672 * config/ia64/ia64.md (ip_value): New.
14674 2005-06-17 Devang Patel <dpatel@apple.com>
14676 * config/rs6000/predicates.md (s5bit_cint_operand,
14677 u5bit_cint_operand): New.
14678 * config/rs6000/altivec.md (altivec_vspltb, altivec_vsplth,
14679 altivec_vspltisw_v4sf): Use new 5 bit constant operand predicates.
14680 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Fix signed
14681 5 bit constant check.
14683 2005-06-17 Richard Henderson <rth@redhat.com>
14685 * local-alloc.c (update_equiv_regs): Update reg_equiv_init
14686 properly when moving an initialization insn.
14688 2005-06-17 Paolo Bonzini <bonzini@gnu.org>
14690 * aclocal.m4 (gcc_AC_CHECK_TOOL): Do not overwrite the
14692 * configure.ac: Regenerate.
14694 2005-06-17 Jan Hubicka <jh@suse.cz>
14696 * tree-optimize.c (execute_ipa_pass_list): New.
14697 (ipa_passes): Use it.
14699 2005-06-16 Richard Henderson <rth@redhat.com>
14702 * tree-complex.c (update_phi_components): Avoid no-op moves.
14704 2005-06-16 Joseph S. Myers <joseph@codesourcery.com>
14706 * Makefile.in (cc1-checksum.c): Use
14707 build/genchecksum$(build_exeext), not build/genchecksum$(exeext).
14709 2005-06-16 Geoffrey Keating <geoffk@apple.com>
14711 * gengtype.c (adjust_field_rtx_def): Don't add a skip to
14714 * config/t-slibgcc-darwin (SHLIB_SOVERSION): Rename from
14716 (SHLIB_REVISION): Delete.
14717 (SHLIB_VERSTRING): Update to compensate.
14718 (SHLIB_SONAME): Just use one '.' in the name.
14720 2005-06-16 Eric Botcazou <ebotcazou@libertysurf.fr>
14722 PR tree-optimization/22018
14723 * tree-vrp.c (vrp_int_const_binop): Overhaul handling of overflow.
14725 2005-06-16 Richard Henderson <rth@redhat.com>
14728 * builtins.c (fold_builtin_complex_mul): Remove.
14729 (fold_builtin_complex_div): Remove.
14730 (fold_builtin_1): Don't call them.
14731 * fold-const.c (fold_complex_add, fold_complex_mult_parts,
14732 fold_complex_mult, fold_complex_div_parts, fold_complex_div): Remove.
14733 (fold_binary): Don't call them. Don't expand complex comparisons to
14734 elementary comparisons.
14735 * tree-complex.c (init_dont_simulate_again): Enhance search for
14736 stmts that require decomposition.
14737 (complex_visit_stmt): Handle RETURN_EXPR properly.
14738 (create_components): Handle no referenced variables properly.
14739 * tree.h (fold_complex_mult_parts): Remove.
14740 (fold_complex_div_parts): Remove.
14742 2005-06-16 Richard Guenther <rguenth@gcc.gnu.org>
14744 * doc/extend.texi: Document sseregparm target attribute.
14745 Clarify fastcall and regparm documentation.
14746 * config/i386/i386.h: Adjust float_in_sse documentation.
14747 * config/i386/i386.c: Add new target attribute sseregparm.
14748 (ix86_handle_cdecl_attribute, ix86_handle_regparm_attribute):
14750 (ix86_handle_cconv_attribute): ... here. Also handle
14751 sseregparm attribute.
14752 (ix86_comp_type_attributes): Compare sseregparm attributes.
14753 (ix86_function_sseregparm): New function, split out from ...
14754 (init_cumulative_args): ... here. Use to decide use
14755 of SSE registers and error in case of missing support.
14756 (ix86_value_regno): Likewise.
14757 (function_arg_advance): Do not bail out for DFmode if we need
14758 to pass doubles in registers.
14759 (function_arg): Likewise.
14761 2005-06-16 Paolo Bonzini <bonzini@gnu.org>
14762 Daniel Jacobowitz <dan@codesourcery.com>
14763 Alan Modra <amodra.bigpond.net.au>
14765 * configure.ac (gcc_version): Set near the beginning.
14766 (as, ld, nm): Do not link in-tree tools. Set gcc_cv_* if tools are
14767 found in the tree. Use gcc_AC_PROG to find the tools in the system.
14768 (objdump): Do not look for it.
14769 * Makefile.in (NM_FOR_TARGET): Point to ./nm
14770 (ORIGINAL_AS_FOR_TARGET, ORIGINAL_LD_FOR_TARGET,
14771 ORIGINAL_NM_FOR_TARGET): Substitute from autoconf.
14772 (as, ld, nm): New rules.
14773 (libgcc.mk): Depend on them.
14774 * aclocal.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL,
14775 gcc_AC_BUILD_EXEEXT): New.
14776 (gcc_AC_CHECK_PROG_VER): Use gcc_AC_BUILD_EXEEXT.
14777 * configure: Regenerate.
14779 2005-06-16 Jan Hubicka <jh@suse.cz>
14781 * basic-block.h (rtl_bb_info): Break out head_, end_,
14782 global_live_at_start, global_live_at_end from ...
14783 (basic_block_def): ... here; update all references
14784 (BB_RTL): New flag.
14785 (init_rtl_bb_info): Declare.
14786 * cfgexpand.c (expand_gimple_basic_block): Init bb info, set BB_RTL
14788 * cfgrtl.c: Include ggc.h
14789 (create_basic_block_structure): Init bb info.
14790 (rtl_verify_flow_info_1): Check BB_RTL flag and rtl_bb_info pointer.
14791 (init_rtl_bb_info): New function.
14792 (rtl_merge_block, cfglayout_merge_block): Copy global_live_at_end here.
14793 * cfghooks.c (merge_block): Do not copy global_live_at_end here.
14794 * cfg.c (clear_bb_flags): Skip BB_RTL flag.
14795 (dump_flow_info): Gueard global_live_* dumping.
14797 * Makefile.in (cfg.o): Add new dependencies.
14798 * basic-block.h (reorder_block_def): Kill
14799 original/copy/duplicated/copy_number fields.
14800 (BB_DUPLICATED): New flag.
14801 (initialize_original_copy_tables, free_original_copy_tables,
14802 set_bb_original, get_bb_original, set_bb_copy, get_bb_copy): New.
14803 * cfg.c: Include hashtab.h and alloc-pool.h
14804 (bb_original, bb_copy, original_copy_bb_pool): New static vars.
14805 (htab_bb_copy_original_entry): New struct.
14806 (bb_copy_original_hash, bb_copy_original_eq): New static functions.
14807 (initialize_original_copy_tables, free_original_copy_tables,
14808 set_bb_original, get_bb_original, set_bb_copy, get_bb_copy): New
14810 * cfghooks.c (duplicate_block): Update original/copy handling.
14811 * cfglayout.c (fixup_reorder_chain): Likewise.
14812 (cfg_layout_initialize): Initialize orignal_copy tables.
14813 (cfg_layout_finalize): FInalize original_copy tables.
14814 (can_copy_bbs_p): Use BB_DUPLICATED flag.
14815 (copy_bbs): Likewise.
14816 * cfgloopmanip.c (update-single_exits_after_duplication): Likewise.
14817 (duplicate_loop_to_header_edge): Likewise; update handling of
14819 (loop_version): Likewise.
14820 * dominance.c (get_dominated_by_region): Use BB_DUPLICATED_FLAG.
14821 * except.c (expand_resx_expr): Check that reg->resume is not set.
14822 * loop-unroll.c (unroll_loop_constant_iterations,
14823 unroll_loop_runtime_iterations, apply_opt_in_copies): Update
14824 copy/original handling.
14825 * loop-unwitch.c (unswitch_loop): Likewise.
14826 * tree-cfg.c (create_bb): Do not initialize RBI.
14827 (disband_implicit_edges): Do not kill RBI.
14828 (add_phi_args_after_copy_bb): Use new original/copy mapping.
14829 (add_phi_args_after_copy): Use BB_DUPLICATED flag.
14830 (tree_duplicate_sese_region): Update original/copy handling.
14831 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
14832 * tree-ssa-loop-manip.c (copy_phi_node_args): Likewise.
14833 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
14835 2005-06-15 Andrew Pinski <pinskia@physics.uc.edu>
14838 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Conversions between
14839 integer types whos ranges are different are not useless.
14841 2005-06-15 Andrew Pinski <pinskia@physics.uc.edu>
14844 * tree-ssa-reassoc.c (init_reassoc): Also give chain decl a distint
14847 2005-06-15 Diego Novillo <dnovillo@redhat.com>
14849 * tree-ssa-structalias.c (dump_solution_for_var): Reformat
14851 (dump_sa_points_to_info): Make extern.
14852 (debug_sa_points_to_info): New.
14853 * tree-ssa-structalias.h (TREE_SSA_STRUCTALIAS_H): Rename from
14855 (dump_sa_points_to_info): Declare.
14856 (debug_sa_points_to_info): Declare.
14858 2005-06-15 Joseph S. Myers <joseph@codesourcery.com>
14860 * c-tree.h (default_function_array_conversion): Declare.
14861 * c-typeck.c (default_function_array_conversion): Export. Correct
14863 (default_conversion): Do not call
14864 default_function_array_conversion. Do not allow FUNCTION_TYPE.
14865 (build_function_call): Call default_function_array_conversion on
14867 (convert_arguments): Do not call it on the function arguments.
14868 (build_unary_op): Do not allow ARRAY_TYPE or FUNCTION_TYPE for
14869 TRUTH_NOT_EXPR. Call default_function_array_conversion for taking
14870 address of ARRAY_REF.
14871 (build_compound_expr): Do not call
14872 default_function_array_conversion.
14873 (build_c_cast): Do not call default_function_array_conversion.
14874 (convert_for_assignment): Do not call default_conversion.
14875 (digest_init): Call default_function_array_conversion to convert
14876 string constants and compound literals to pointers, but not
14878 (output_init_element): Likewise.
14879 (build_asm_expr): Do not call default_function_array_conversion.
14880 (c_process_expr_stmt): Likewise.
14881 (c_objc_common_truthvalue_conversion): Likewise. Do not allow
14883 * c-parser.c (c_parser_expression_conv): New.
14884 (c_parser_asm_operands, c_parser_expr_list): Add convert_p
14885 argument. All callers changed. Call
14886 default_function_array_conversion if convert_p.
14887 (c_parser_initializer, c_parser_initval): Call
14888 default_function_array_conversion except for string constants and
14890 (c_parser_initelt): Call default_function_array_conversion for
14891 ObjC expression received.
14892 (c_parser_statement_after_labels): Call c_parser_expression_conv
14893 for return and expression statements.
14894 (c_parser_paren_condition, c_parser_for_statement,
14895 c_parser_conditional_expression): Call c_parser_expression_conv.
14896 (c_parser_expr_no_commas, c_parser_conditional_expression,
14897 c_parser_binary_expression, c_parser_cast_expression,
14898 c_parser_unary_expression): Call
14899 default_function_array_conversion.
14901 2005-06-15 Diego Novillo <dnovillo@redhat.com>
14903 * tree-vrp.c (vrp_int_const_binop): Do not handle MAX_EXPR
14904 when the result overflows.
14906 2005-06-15 David Ung <davidu@mips.com>
14908 * config/mips/mips.c (mips_rtx_cost_data): Add cost for 4kc, 4kp,
14911 2005-06-15 Richard Sandiford <richard@codesourcery.com>
14913 * doc/invoke.texi (-mips16): Fix typo.
14915 2005-06-15 David Ung <davidu@mips.com>
14917 * config/mips/mips.h (GENERATE_MIPS16E): New definition.
14918 * config/mips/mips.md (zero_extend<SHORT:mode><GPR:mode>2):
14919 Changed expand condition to exclude generating of "and" if
14920 GENERATE_MIPS16E is true.
14921 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): New pattern for
14922 matching mips16e zeb/zeh.
14923 (*extend<SHORT:mode><GPR:mode>2_mips16e): New pattern for matching
14925 (*extend<SHORT:mode><GPR:mode>2): Disable this pattern for
14927 * doc/invoke.texi (MIPS Options): Add comment to -mips16
14928 indicating MIPS16e ASE is used if targetting for MIPS32 or MIPS64.
14930 2005-06-15 Diego Novillo <dnovillo@redhat.com>
14933 * tree-vrp.c (vrp_int_const_binop): New.
14934 (extract_range_from_binary_expr): Call it.
14935 Unify handling division and multiplication.
14937 2005-06-15 Aldy Hernandez <aldyh@redhat.com>
14939 * c-common.h (same_scalar_type_ignoring_signedness): Protoize.
14941 * c-common.c (same_scalar_type_ignoring_signedness): New.
14943 * c-typeck.c (build_binary_op): Check compatability of vector
14944 types. Move error report after switch.
14945 Do not clobber code[01] on *_DIV_EXPR case.
14947 * testsuite/gcc.dg/simd-1.c: Update error messages.
14948 * testsuite/gcc.dg/simd-1b.c: Re-enable tests. Update error
14950 * testsuite/gcc.dg/simd-2.c: Update error messages.
14951 * testsuite/gcc.dg/simd-4.c: New.
14953 2005-06-15 Bernd Schmidt <bernd.schmidt@analog.com>
14955 * Makefile.in (local-alloc.o): Depend on $(GGC_H) and reload.h.
14956 * local-alloc.c: Include "ggc.h" and "reload.h".
14957 (struct equivalence): New member is_arg_equivalence.
14958 (local_alloc): Always call update_equiv_regs.
14959 (update_equiv_regs): Allocate reg_equiv_init; set reg_equiv_init_size.
14960 Detect equivalences made by stores to memory in a second pass.
14961 Return early if not optimizing.
14962 Initialize reg_equiv_init for all equivalences; treat equivalences for
14963 REG_EQUIV notes existing before this pass specially.
14964 (no_equiv): Don't clear reg_equiv_init or remove notes if the
14965 is_arg_equivalence field is set.
14966 * reload.h (reg_equiv_init, reg_equiv_init_size): Declare.
14967 * reload1.c (reg_equiv_init): No longer static.
14968 (reg_equiv_init_size): New variable.
14969 (reload): Don't allocate reg_equiv_init; don't free it when done but
14971 Restructure equivalence set up code not to set reg_equiv_init, but to
14972 clear it when we can't use an equivalence.
14973 Undo change disabling equivalences for MEM_READONLY_P memrefs.
14974 Dump equivalencing insns to dump_file.
14976 2005-06-14 Richard Sandiford <richard@codesourcery.com>
14978 * config/mips/mips.c (machine_function): Add varargs_size field.
14979 (mips_setup_incoming_varargs): Store the amount of extra stack space
14980 there rather than in *pretend_size. When saving registers, always
14981 expect virtual_incoming_args_rtx to point to the start of the
14983 (mips_va_start): Remove alignment hack. Handle all
14984 !EABI_FLOAT_VARARGS_P cases in the same way.
14985 (compute_frame_size): Handle varargs_size. Remove the redundant
14986 !TARGET_OLDABI condition in the handling of pretend_args_size.
14987 (mips_initial_elimination_offset): Remove the now-redundant check
14990 2005-06-14 Jeff Law <law@redhat.com>
14992 * tree-vrp.c (local_fold): Remove.
14993 (simplify_using_ranges): Use fold_convert, not local_fold. Tweak
14994 DIV/MOD case slightly for readability.
14996 2005-06-14 Frank Ch. Eigler <fche@redhat.com>
14999 * tree-mudflap.c (mudflap_finish_file): Exclude non-public
15000 rather than static objects (!) from libmudflap registration.
15002 2005-06-14 Richard Sandiford <richard@codesourcery.com>
15004 * opt-functions.awk (global_state_p, needs_state_p, static_var): New.
15005 (var_ref): Take the option's flags as a second parameter. Check
15007 * optc-gen.awk: Declare local state variables. Pass flags to var_ref.
15009 2005-06-14 Eric Botcazou <ebotcazou@libertysurf.fr>
15012 * config/sparc/sol2.h (ASM_GENERATE_INTERNAL_LABEL): Emit
15013 unsigned index numbers.
15015 2005-06-13 Geoffrey Keating <geoffk@apple.com>
15017 * Makefile.in (install-man): Doesn't really depend on installdirs.
15018 (various rules for installing manpages): Do depend on installdirs.
15020 2005-06-14 Nathan Sidwell <nathan@codesourcery.com>
15022 * unwind-dw2-fde-darwin.c (examine_objects): Fix aliasing in
15023 read_encoded_value_with_base call.
15024 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
15025 * unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
15026 * unwind-dw2.c (extract_cie_info): Fix aliasing in
15027 read_encoded_value call.
15028 (execute_cfa_program, uw_frame_state_for): Likewise.
15030 2005-06-13 Roger Sayle <roger@eyesopen.com>
15032 PR rtl-optimization/22053
15033 * reg-stack.c (compensate_edge): Correct mistake in the assertion
15034 checking of EDGE_ABNORMAL_CALL edges; complex return values can
15035 result in the top two stack slots, st(0) and st(1), being live.
15037 2005-06-13 Jeff Law <law@redhat.com>
15039 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): No longer
15040 simplify DIV, MOD or ABS expressions using VRP information.
15041 Remove WALK_DATA parameter. Prototype and all callers updated.
15042 (eliminate_redundant_computations): Remove WALK_DATA parameter.
15043 Prototype and all callers updated.
15044 (optimize_stmt): WALK_DATA parameter is now unused.
15046 * tree-vrp.c (local_fold): New function. Like fold, but
15047 strips useless type conversions in the result.
15048 (simplify_using_ranges): New function, largely cribbed from
15049 tree-ssa-dom.c::simplify_rhs_and_lookup_avail_expr.
15050 (vrp_finalize): Call simplify_using_ranges.
15052 2005-06-13 Mark Mitchell <mark@codesourcery.com>
15054 * config/i386/x86-64.h (ASM_SPEC): Explicitly pass --64 to the
15055 assembler in 64-bit mode.
15057 2005-06-13 David Edelsohn <edelsohn@gnu.org>
15059 Revert scc_operand patch.
15060 * config/rs6000/predicates.md (scc_operand): Delete.
15061 * config/rs6000/rs6000.md (scc_operand): Change to scc_eq_operand.
15063 2005-06-13 Zdenek Dvorak <dvorakz@suse.cz>
15065 PR middle-end/21985
15066 * fold-const.c (split_address_to_core_and_offset): Always return
15067 the address of the base object.
15069 2005-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
15071 * doc/invoke.texi (Blackfin Options): Document -mlong-calls.
15073 2005-06-12 Richard Henderson <rth@redhat.com>
15076 * tree-complex.c (update_complex_components_on_edge): New.
15077 (update_parameter_components): Use it.
15078 (update_phi_components): Likewise.
15079 (expand_complex_move): Likewise for is_ctrl_altering_stmt.
15081 2005-06-12 James A. Morrison <phython@gcc.gnu.org>
15083 PR tree-optimization/14796
15084 * fold-const (fold_binary): Transform (X << C) >> C into X & (-1>>C)
15085 for unsigned types.
15087 2005-06-12 Kazu Hirata <kazu@codesourcery.com>
15089 * cgraphunit.c, tree-ssa-loop-ivopts.c,
15090 tree-ssa-structalias.c, tree-vectorizer.c, tree-vectorizer.h,
15091 config/sparc/sparc.c: Fix comment typos.
15093 2005-06-12 Richard Earnshaw <richard.earnshaw@arm.com>
15095 * arm/ieee754-df.s (aeabi_dcmpeq, aeabi_dcmplt, aeabi_dcmple)
15096 (aeabi_dcmpge, aeabi_dcmpgt): Maintain 8-byte stack alignment.
15097 * arm/ieee754-sf.s (aeabi_l2f, aeabi_fcmpeq, aeabi_fcmplt)
15098 (aeabi_fcmple, aeabi_fcmpge, aeabi_fcmpgt): Likewise.
15100 2005-06-12 James A. Morrison <phython@gcc.gnu.org>
15102 PR tree-optimization/14796
15103 * fold-const.c (fold_binary): Transform (A >> C) << C into
15105 <shift>: Transform (A OP c1) OP c2 into A OP (c1 + c2).
15107 2005-06-11 Geoffrey Keating <geoffk@apple.com>
15109 * config/rs6000/predicates.md (reg_or_arith_cint_operand): Delete.
15110 (reg_or_add_cint_operand): Rename from reg_or_add_cint64_operand.
15112 (reg_or_sub_cint_operand): Likewise.
15113 (mask_operand): Handle DImode.
15114 (mask64_operand): Delete.
15115 (and64_operand): Delete.
15116 * config/rs6000/rs6000.c (num_insns_constant): Use mask_operand
15117 instead of mask64_operand.
15118 (print_operand): Likewise.
15119 (rs6000_rtx_costs): Use mask_operand and reg_or_add_cint_operand and
15120 reg_or_sub_cint_operand instead of *64_* variants.
15121 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Use mask_operand
15122 instead of mask64_operand.
15123 * config/rs6000/rs6000.md: Use mask_operand and and_operand instead
15127 (add<mode>3): Use reg_or_add_cint_operand.
15129 (sub<mode>3): Use reg_or_sub_cint_operand.
15130 (udiv<mode>3, div<mode>3, div<mode>3_no_mq, mod<mode>3,
15131 mov<mode>_internal2, mov<mode>, cmp<mode>, cmp<mode>,
15132 cmp<mode>_internal1, indirect_jump<mode>, ctr<mode>,
15133 ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
15134 ctr<mode>_internal6, save_fpregs_<mode>, return_internal_<mode>,
15135 return_and_restore_fpregs_<mode>, eh_set_lr_<mode>,
15136 various unnamed patterns): New.
15137 (udivsi3, divsi3, divsi3_no_mq, modsi3, movsi_internal2, movsi,
15138 cmpsi, cmpsi_internal1, indirect_jumpsi, ctrsi, ctrsi_internal1,
15139 ctrsi_internal2, ctrsi_internal5, ctrsi_internal6, save_fpregs_si,
15140 return_internal_si, return_and_restore_fpregs_si, eh_set_lr_si,
15141 udivdi3, divdi3, divdi3_no_mq, moddi3, movdi_internal2, movdi,
15142 cmpdi, cmpdi_internal1, indirect_jumpdi, ctrdi, ctrdi_internal1,
15143 ctrdi_internal2, ctrdi_internal5, ctrdi_internal6, save_fpregs_di,
15144 return_internal_di, return_and_restore_fpregs_di, eh_set_lr_di,
15145 movhi, movqi, cmpsf, cmpdf, cmptf, various unnamed patterns):
15148 2005-06-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
15150 * rtl.h (to_rtx_code): Remove.
15151 * machmode.h (to_machine_mode): Likewise.
15152 * read-rtl.c (apply_mode_macro): Replace to_machine_mode with
15154 (apply_mode_maps): Likewise.
15155 (read_rtx_1): Likewise.
15156 (apply_code_macro): Replace to to_rtx_code with explicit cast.
15157 (check_code_macro): Likewise.
15158 (read_rtx_1): Likewise.
15160 2005-06-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
15162 * c-typeck.c (convert_for_assignment): Avoid checking
15163 OPT_Wc___compat, as it is always true.
15165 2005-06-11 David Edelsohn <edelsohn@gnu.org>
15167 * config/rs6000/rs6000.md (eq<mode>_compare): Restrict to Pmode.
15169 2005-06-11 Daniel Berlin <dberlin@dberlin.org>
15171 Fix PR tree-optimization/22005
15172 Fix PR tree-optimization/22025
15174 * tree-ssa-structalias.c (struct variable_info): Add has_union
15176 (create_variable_info_for): Mark variables containing unions.
15177 Don't sort the field stack if notokay is true.
15178 (find_what_p_points_to): Convert variables containing unions back
15179 to their SFT's if necessary.
15181 2005-06-11 Daniel Berlin <dberlin@dberlin.org>
15183 * lambda-code.c (replace_uses_equiv_to_x_with_y): Verify the step
15184 is an INTEGER_CST before calling int_cst_value.
15186 2005-06-10 Uros Bizjak <uros@kss-loka.si>
15189 * config/i386/i386.c (ix86_function_value_regno_p): Return true
15190 for FIRST_MMX_REG if TARGET_MMX.
15191 (ix86_return_in_memory): Return 1 for MMX/3dNow vectors. Delete
15193 (ix86_struct_value_rtx): Emit warning for MMX ABI violations.
15194 (ix86_value_regno): Return FIRST_MMX_REG for MMX vector modes.
15196 2005-06-10 Daniel Berlin <dberlin@dberlin.org>
15198 * lambda-code.c (replace_uses_equiv_to_x_with_y): Check step
15199 and access function against chrec_dont_know.
15201 2005-06-10 Daniel Berlin <dberlin@dberlin.org>
15203 * lambda-code.c (replace_uses_of_x_with_y): Renamed and rewritten
15205 (exit_phi_for_loop_p): New function.
15206 (can_put_in_inner_loop): Ditto.
15207 (can_convert_to_perfect_nest): Ditto.
15208 (perfect_nestify): Create iv with right type.
15209 Rewrite statements in correct order.
15211 2005-06-10 Keith Besaw <kbesaw@us.ibm.com>
15213 * tree-ssa-alias.c (new_type_alias): Use existing type
15214 tag if VAR has just one in its may_aliases list.
15216 2005-06-10 Fariborz Jahanian <fjahanian@apple.com>
15218 * rs6000/predicates.md (scc_operand): New.
15219 * rs6000/rs6000.md : Use scc_operand for eq:SI compares.
15221 2005-06-10 Dorit Nuzman <dorit@il.ibm.com>
15223 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): DRs whose
15224 dependence-distance modulo VF is 0 are recorded in the
15225 SAME_ALIGN_REFs VEC in each DR.
15226 (vect_enhance_data_refs_alignment): Avoid 80 column overflow. The
15227 alignment information of DRs that are in the SAME_ALIGN_REFs VEC of the
15228 DR we want to peel for, is set to 0.
15229 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Fix printout.
15230 * tree-vectorizer.c (destroy_loop_vec_info): Free the SAME_ALIGN_REFs
15232 * tree-vectorizer.h (dr_p): New type. Defined to use the VEC API.
15233 (_stmt_vec_info): Added new field same_align_refs.
15234 (STMT_VINFO_SAME_ALIGN_REFS): New macro.
15236 2005-06-10 Nathan Sidwell <nathan@codesourcery.com>
15238 * vec.h (VEC_safe_grow): Append MEM_STAT_INFO.
15240 2005-06-10 Alan Modra <amodra@bigpond.net.au>
15242 * config/rs6000/linux.h (NO_PROFILE_COUNTERS): Define.
15243 * config/rs6000/linux64.h (NO_PROFILE_COUNTERS): Define as 1.
15244 * config/rs6000/rs6000.c (output_function_profiler): Obey
15245 NO_PROFILE_COUNTERS. Handle TARGET_SECURE_PLT. Use "bcl 20,31"
15246 for -fPIC. Delete save_lr and substitute its value into strings.
15248 2005-06-09 Dale Johannesen <dalej@apple.com>
15250 * config/i386/i386.c (optimization_options): Make -fno-math-errno
15251 the default on Darwin.
15252 * config/rs6000/rs6000.c (optimization_options): Ditto.
15253 * doc/invoke.texi (-fno-math-errno): Document.
15255 2005-06-09 Dale Johannesen <dalej@apple.com>
15257 * config/rs6000/rs6000.c (TARGET_INSN_VALID_WITHIN_DOLOOP):
15258 Change to TARGET_INVALID_WITHIN_DOLOOP.
15260 2005-06-09 David Edelsohn <edelsohn@gnu.org>
15262 * config/rs6000/rs6000.md (eq): Convert to define_insn_and_split.
15263 * config/rs6000/predicates.md (scc_eq_operand): New.
15265 2005-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
15267 * config/sh/sh.md (mextr_rl): Set buffer size properly.
15268 (*mextr_lr): Likewise.
15270 2005-06-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
15273 * c.opt (Wc++-compat): New.
15274 * doc/invoke.texi (-Wc++-compat): Document.
15275 * c-typeck.c (convert_for_assignment): Check for implicit
15276 conversion void* -> T*.
15278 2005-06-09 Gabriel Dos Reis <gdr@integrable-solutions.edu>
15280 * machmode.h (to_machine_mode): New.
15281 * rtl.h (to_rtx_code): Likewise.
15282 * read-rtl.c (apply_mode_macro): Convert mode to machine_mode.
15283 (print_c_condition): Convert return value of htab_find().
15284 (apply_code_macro): Add explicit cast when convertin to enums.
15285 (apply_mode_maps): Likewise.
15286 (check_code_macro): Likewise.
15287 (read_rtx_1): Likewise.
15289 2005-06-09 Richard Henderson <rth@redhat.com>
15291 * config/ia64/ia64.c (update_set_flags): Just return for IF_THEN_ELSE.
15292 Use SCALAR_FLOAT_MODE_P.
15293 * config/ia64/vect.md (vcondv2sf): Remove code check on comparison.
15294 (fselect): Rename from fpcmp; use %F.
15297 2005-06-09 Jan Hubicka <jh@suse.cz>
15299 * cgraphunit.c (cgraph_create_edges): Do not walk BLOCK; finalize
15300 local statics when doing unit-at-a-time.
15301 (cgraph_varpool_assemble_pending_decls): Output debug info.
15302 * dwarf2out.c (decls_for_scope): Skip local statics.
15303 (dwarf2out_decl): Handle local statics.
15304 * passes.c (rest_of_decl_compilation): Do not differentiate
15305 local and global statics in unit-at-a-time.
15306 * tree-inline.c (remap_decls): Put local static into
15307 unexpanded_vars_list rather than introducing duplicated VAR_DECL
15310 2005-06-09 Daniel Berlin <dberlin@dberlin.org>
15312 * config/rs6000/rs6000.c: (rs6000_insn_valid_within_doloop): Fix
15315 2005-06-08 Daniel Berlin <dberlin@dberlin.org>
15317 * Makefile.in (OBJS-common): Add tree-ssa-structalias.o.
15318 * tree-flow.h (find_what_p_points_to): Add prototype.
15319 (push_fields_onto_fieldstack): Ditto.
15320 (sort_fieldstack): Ditto.
15321 * tree-optimize.c (init_tree_optimization_passes): Add
15322 pass_build_pta and pass_del_pta.
15323 * tree-pass.h (pass_build_pta): New structure.
15324 (pass_del_pta): Ditto.
15325 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Disambiguate
15326 using new alias analyzer.
15327 (push_fields_onto_fieldstack): Removed from here.
15328 (bitpos_of_field): Ditto.
15329 (fieldoff_compare): Ditto.
15330 * tree-ssa-structalias.c: New file.
15331 * tree-ssa-structalias.h: Ditto.
15333 2005-06-09 Nathan Sidwell <nathan@codesourcery.com>
15335 * c-typeck.c (build_c_cast): Check type punning on COMPONENT_REF
15338 2005-06-09 Bernd Schmidt <bernd.schmidt@analog.com>
15340 * config/bfin/bfin.c (enum bfin_builtins): Moved here from...
15341 * config/bfin/bfin.h (enum bfin_builtins): ... here.
15343 2005-06-09 Adrian Straetling <straetling@de.ibm.com>
15345 * target.h (insn_valid_within_doloop): Rename into
15346 "invalid_within_doloop". Change return type to "const char *".
15348 * targhooks.h (default_insn_valid_within_doloop): Rename into
15349 "default_invalid_within_doloop".
15350 * targhooks.c (default_insn_valid_within_doloop): Likewise.
15352 * target-def.h (TARGET_INSN_VALID_WITHIN_DOLOOP): Rename target hook
15353 into "TARGET_INVALID_WITHIN_DOLOOP". Default it to
15354 "default_invalid_within_doloop".
15355 * hooks.c (hook_constcharptr_rtx_null): New function.
15356 (hook_bool_rtx_true): Remove.
15357 * hooks.h (hook_constcharptr_rtx_null): Declare.
15358 (hook_bool_rtx_true): Remove.
15359 * loop-doloop.c (doloop_valid_p): Temporarily store return value of
15360 "invalid_within_doloop" and print error message if non-null.
15362 * doc/tm.texi: Update documentation.
15363 * config/s390/s390.c: Adjust to new hook name and new default hook.
15364 * config/rs6000/rs6000.c: (rs6000_insn_valid_within_doloop): Rename
15365 into "rs6000_invalid_within_doloop".
15366 (rs6000_invalid_within_doloop): Change return type to "static const
15367 char *" and replace return values. Update Comment.
15369 2005-06-09 Bernd Schmidt <bernd.schmidt@analog.com>
15371 * config/bfin/bfin.opt (mlong-calls): New.
15372 * config/bfin/predicates.md (call_insn_operand): Disallow SYMBOL_REF
15373 if TARGET_LONG_CALLS.
15375 2005-06-09 Richard Henderson <rth@redhat.com>
15378 * tree.h (DECL_COMPLEX_GIMPLE_REG_P): New.
15379 (struct tree_decl): Add gimple_reg_flag.
15380 * integrate.c (copy_decl_for_inlining): Copy it.
15381 * gimplify.c (internal_get_tmp_var): Set it.
15382 (gimplify_bind_expr): Likewise.
15383 (gimplify_function_tree): Likewise.
15384 (gimplify_modify_expr_complex_part): New.
15385 (gimplify_modify_expr): Use it.
15386 * tree-gimple.c (is_gimple_reg_type): Allow complex.
15387 (is_gimple_reg): Allow complex with DECL_COMPLEX_GIMPLE_REG_P set.
15389 * tree-complex.c (complex_lattice_t): New.
15390 (complex_lattice_values, complex_variable_components): New.
15391 (some_nonzerop, find_lattice_value, is_complex_reg,
15392 init_parameter_lattice_values, init_dont_simulate_again,
15393 complex_visit_stmt, complex_visit_phi, create_components,
15394 update_complex_components, update_parameter_components,
15395 update_phi_components, update_all_vops, expand_complex_move): New.
15396 (extract_component): Handle INDIRECT_REF, COMPONENT_REF, ARRAY_REF,
15398 (update_complex_assignment): Use update_complex_components;
15399 handle updates of return_expr properly.
15400 (expand_complex_addition): Use complex lattice values.
15401 (expand_complex_multiplication): Likewise.
15402 (expand_complex_division): Likewise.
15403 (expand_complex_libcall): Use update_complex_components.
15404 (expand_complex_comparison): Use update_stmt.
15405 (expand_complex_operations_1): Use expand_complex_move, retrieve
15407 (tree_lower_complex): Compute lattice values.
15408 (tree_lower_complex_O0): Duplicate from tree_lower_complex.
15409 (pass_lower_complex_O0): Rename from pass_lower_complex.
15410 (pass_lower_complex, gate_no_optimization): New.
15411 * tree-optimize.c (init_tree_optimization_passes): Update for
15412 complex pass changes.
15413 * tree-pass.h (pass_lower_complex_O0): Declare.
15415 2005-06-08 Dale Johannesen <dalej@apple.com>
15417 * config/darwin.c (darwin_binds_local_p): New.
15418 * config/darwin-protos.h (darwin_binds_local_p): Declare it.
15419 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Use it for TARGET_MACHO.
15420 * config/rs6000/rs6000.c (rs6000_binds_local_p): Remove.
15421 (TARGET_BINDS_LOCAL_P): Change it to darwin_binds_local_p.
15423 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
15425 * config/rs6000/rs6000.h: Remove rs6000_long_double_size_string,
15426 rs6000_isel, rs6000_spe, rs6000_alignment_string,
15427 rs6000_sched_restricted_insns_priority_str,
15428 rs6000_sched_restricted_insns_priority, rs6000_abi_string.
15430 2005-06-08 Zdenek Dvorak <dvorakz@suse.cz>
15432 * tree-ssa-address.c (addr_for_mem_ref): Use LAST_VIRTUAL_REGISTER
15433 instead of FIRST_PSEUDO_REGISTER for creating pseudoregisters.
15434 * tree-ssa-loop-ivopts.c (add_cost, multiply_by_cost,
15435 multiplier_allowed_in_address_p, get_address_cost): Ditto.
15437 2005-06-08 Richard Henderson <rth@redhat.com>
15439 * config/ia64/ia64.h (NO_PROFILE_COUNTERS): New.
15440 * config/ia64/ia64.c (ia64_output_function_profiler): Honor it.
15441 Emit out3 load right after alloc.
15443 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
15445 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15446 rs6000_explicit_options.
15448 2005-06-08 Richard Henderson <rth@redhat.com>
15450 * config/ia64/ia64.h (FUNCTION_PROFILER): Move implementation ...
15451 * config/ia64/ia64.c (ia64_output_function_profiler): ... here; add
15453 * config/ia64/ia64-protos.h (ia64_output_function_profiler): Declare.
15455 2005-06-08 Joseph S. Myers <joseph@codesourcery.com>
15457 * config/sol2-c.c (cmn_err_char_table): Allow width for %b
15460 2005-06-08 James A. Morrison <phython@gcc.gnu.org>
15463 * config/sparc/sparc.c (sparc_fold_builtin): New function
15464 (sparc_vis_mul8x16): New function.
15465 (sparc_handle_vis_mul8x16): New function.
15466 (TARGET_FOLD_BUILTIN): Define to sparc_fold_builtin.
15468 2005-06-08 David Edelsohn <edelsohn@gnu.org>
15470 * config/rs6000/rs6000.md (call_indirect_nonlocal_aix32): Prefer
15472 (call_indirect_nonlocal_aix64): Same.
15473 (call_value_indirect_nonlocal_aix32): Same.
15474 (call_value_indirect_nonlocal_aix64): Same.
15477 (eq): Use CLZ splitter for compare with zero.
15479 2005-06-08 Bernd Schmidt <bernd.schmidt@analog.com>
15481 * config/bfin/bfin.c (bfin_return_in_memory): Simplify; return
15482 everything larger than 8 bytes in memory.
15484 * config/bfin/bfin.h (enum bfin_builtins): New.
15485 * config/bfin/bfin.md (UNSPEC_VOLATILE_CSYNC, UNSPEC_VOLATILE_SSYNC):
15487 (csync, ssync): New insn patterns.
15488 * config/bfin/bfin.c (bfin_init_builtins, bfin_expand_builtin):
15490 (def_builtin): New macro.
15491 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
15493 From Jie Zhang <jie.zhang@analog.com>
15494 * config/bfin/bfin.h (ASM_OUTPUT_ALIGN): Gas now emulates the
15495 behavior of the native assembler in VDSP. So change accordingly.
15497 2005-06-08 Sebastian Pop <pop@cri.ensmp.fr>
15499 * tree-data-ref.c (compute_estimated_nb_iterations,
15500 analyze_array_indexes, compute_overlap_steps_for_affine_1_2,
15501 analyze_subscript_affine_affine, find_data_references_in_loop):
15502 Fixed to use chrec_contains_undetermined to test the values of
15503 loop->estimated_nb_iterations.
15504 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
15505 Compute the estimation only when loop->estimated_nb_iterations
15506 has not yet been initialized.
15507 (convert_step_widening, scev_probably_wraps_p): Add a call to
15508 estimate_numbers_of_iterations_loop.
15509 * tree-vrp.c (execute_vrp): Don't call estimate_numbers_of_iterations.
15511 2005-06-08 Eric Botcazou <ebotcazou@libertysurf.fr>
15514 * dwarf2out.c (add_loc_descr_op_piece): Move to the
15515 DWARF2_DEBUGGING_INFO section.
15517 2005-06-08 Richard Henderson <rth@redhat.com>
15520 * config/ia64/ia64.c (emit_predicate_relation_info): Skip p0.
15522 2005-06-08 Eric Botcazou <ebotcazou@libertysurf.fr>
15525 * target.h (gcc_target) <asm_out>: New field output_dwarf_dtprel.
15526 * target-def.h (TARGET_ASM_OUTPUT_DWARF_DTPREL): New macro.
15527 (TARGET_ASM_OUT): Add it.
15528 * doc/tm.texi (Debugging Info): Document it.
15529 * dwarf2out.c (output_loc_operands) <INTERNAL_DW_OP_tls_addr>:
15530 Test it instead of ASM_OUTPUT_DWARF_DTPREL.
15531 (loc_descriptor_from_tree_1) <VAR_DECL>: Likewise.
15532 * system.h: Poison ASM_OUTPUT_DWARF_DTPREL.
15533 * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Delete.
15534 * config/frv/frv.c (frv_output_dwarf_dtprel): Make static and unused.
15535 (gen_inlined_tls_plt): Remove unused variable MEM.
15536 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to frv_output_dwarf_dtprel.
15537 * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15538 * config/i386/i386-protos.h (i386_output_dwarf_dtprel): Delete.
15539 * config/i386/i386.c (i386_output_dwarf_dtprel): Make static and
15541 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to i386_output_dwarf_dtprel.
15542 * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15543 * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): Delete.
15544 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Make static and
15546 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to ia64_output_dwarf_dtprel.
15547 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15548 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Delete.
15549 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Make static and
15551 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to rs6000_output_dwarf_dtprel
15552 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15553 * config/s390/s390-protos.h (s390_output_dwarf_dtprel): Delete.
15554 * config/s390/s390.c (s390_output_dwarf_dtprel): Make static and
15556 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to s390_output_dwarf_dtprel.
15557 * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15558 * config/sparc/sol2-gas.h (TARGET_SUN_TLS): Define to 0.
15559 (TARGET_GNU_TLS): Define to 1.
15560 * config/sparc/sparc-protos.h (sparc_output_dwarf_dtprel): Delete.
15561 * config/sparc/sparc.c (sparc_output_dwarf_dtprel): Make static and
15563 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to sparc_output_dwarf_dtprel
15564 if TARGET_GNU_TLS only.
15565 * config/sparc/sparc.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15567 * config.gcc (sparc64-*-solaris2*): Include tm-dwarf2.h last.
15568 (sparc-*-solaris2*): Likewise on Solaris 7 and up.
15570 2005-06-07 Dale Johannesen <dalej@apple.com>
15572 * config/i386/i386.md (movqi_1): Fix case where source
15573 is memory and destination EDI.
15575 2005-06-08 Kazu Hirata <kazu@codesourcery.com>
15577 * config/c4x/c4x.h (PREDICATE_CODES): Remove mem_operand.
15579 2005-06-07 Eric Christopher <echristo@redhat.com>
15581 * system.h: Poison EXTRA_CC_MODES.
15582 * config/frv/frv.h (SELECT_CC_MODE): Rewrite comment.
15583 * config/ia64/ia64.h (SELECT_CC_MODE): Ditto.
15584 * doc/md.texi (Jump Patterns): Replace reference to
15585 EXTRA_CC_MODES with machine-modes.def.
15586 * doc/rtl.texi (Machine Modes): Ditto.
15588 2005-06-07 Richard Henderson <rth@redhat.com>
15590 * varasm.c (initialize_cold_section_name): Fix alloca buffer overflow.
15591 (assemble_start_function): Fix strcmp confusion.
15593 2005-06-07 Uros Bizjak <uros@kss-loka.si>
15595 * config/i386/i386.h (enum ix86_entity): New.
15596 (enum ix86_stack_slot): New.
15597 (OPTIMIZE_MODE_SWITCHING): Redefine to use
15598 ix86_optimize_mode_switching[] array.
15599 (NUM_MODES_FOR_MODE_SWITCHING): Redefine for 4 entities.
15600 (MODE_NEEDED): Use ix86_mode_needed() function.
15601 (EMIT_MODE_SET): Redefine for changed emit_i387_cw_initialization ()
15603 (struct machine_function): Use optimize_mode_switching[] array.
15605 * config/i386/i386.c (MAX_386_STACK_LOCALS): Remove.
15606 (ix86_mode_needed): New function.
15607 (emit_i387_cw_initialization): Cleanup. Use mode to calculate
15608 correct stack positions for stored control words.
15609 (assign_386_stack_local): Use enum ix86_stack_slot. Change assert.
15610 (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR]: Change constant to
15612 [IX86_BUILTIN_STMXCSR]: Same.
15614 * config/i386/i386-protos.h (assign_stack_local): Change prototype.
15615 (emit_i387_cw_initialization): Change prototype.
15616 (ix86_mode_needed): New prototype.
15618 * config/i386/i386.md (i387_cw attribute): Change order of elements.
15619 (truncdfsf2, truncxfsf2, truncxfdf2, fix_trunc<mode>_fisttp_i387_1)
15620 (*fix_trunc<mode>_i387_1, lrint<mode>2, *fist<mode>2_floor_1)
15621 (*fist<mode>2_ceil_1): Change constant in call to
15622 assign_386_stack_local to SLOT_TEMP.
15623 (*fix_trunc<mode>_i387_1): Change constant in call to
15624 assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
15625 Use new ix86_optimize_mode_switching[] array.
15626 (frndintxf2_floor, *fist<mode>2_floor_1): Change constants in call to
15627 assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_FLOOR.
15628 Use new ix86_optimize_mode_switching[] array.
15629 (frndintxf2_ceil, *fist<mode>2_ceil_1): Change constants in call to
15630 assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_CEIL.
15631 Use new ix86_optimize_mode_switching[] array.
15632 (frndintxf2_trunc): Change constants in call to
15633 assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
15634 Use new ix86_optimize_mode_switching[] array.
15635 (frndintxf2_mask_pm): Change constants in call to
15636 assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_MASK_PM.
15637 Use new ix86_optimize_mode_switching[] array.
15639 (define_peephole2): Change constant from 17 to FLAGS_REG;
15641 2005-06-07 Richard Henderson <rth@redhat.com>
15644 * rtlanal.c (reg_overlap_mentioned_p) <MEM>: Handle 'E' formats.
15646 2005-06-07 Dale Johannesen <dalej@apple.com>
15648 * tree-nested.c (finalize_nesting_tree_1): Disable
15649 warn_padded around layout_type call.
15651 2005-06-08 Zdenek Dvorak <dvorakz@suse.cz>
15653 * tree-ssa-loop-ivopts.c (rewrite_use_outer): Unshare the expression
15656 2005-06-07 Eric Christopher <echristo@redhat.com>
15658 * config/mips/predicates.md: Revert previous patch.
15660 2005-06-07 Jakub Jelinek <jakub@redhat.com>
15662 PR middle-end/21850
15663 * tree.c (get_unwidened): Stop at NOP_EXPR/CONVERT_EXPR that convert
15666 2005-06-07 Diego Novillo <dnovillo@redhat.com>
15668 * tree-ssa-threadupdate.c (struct thread_stats_d): Declare.
15669 (thread_stats): New local variable.
15670 (redirect_edges): Increment count of threaded edges.
15671 (thread_through_all_blocks): Initialize thread_stats.
15672 Display number of threaded jumps if TDF_STATS is enabled.
15674 2005-06-07 Kazu Hirata <kazu@codesourcery.com>
15676 * sbitmap.h (sbitmap_iter_init): Consistently treat bit_num as
15677 the current bit index with no modulo.
15679 2005-06-07 Sebastian Pop <pop@cri.ensmp.fr>
15681 PR 18403 and meta PR 21861.
15682 * Makefile.in (tree-chrec.o): Depend on CFGLOOP_H and TREE_FLOW_H.
15683 * tree-chrec.c: Include cfgloop.h and tree-flow.h.
15684 (evolution_function_is_invariant_rec_p,
15685 evolution_function_is_invariant_p): New.
15686 (chrec_convert): Use an extra parameter AT_STMT for refining the
15687 information that is passed down to convert_step. Integrate the
15688 code that was in count_ev_in_wider_type.
15689 * tree-chrec.h (count_ev_in_wider_type): Removed.
15690 (chrec_convert): Modify its declaration.
15691 (evolution_function_is_invariant_p): Declared.
15692 (evolution_function_is_affine_p): Use evolution_function_is_invariant_p.
15693 * tree-flow.h (can_count_iv_in_wider_type): Renamed convert_step.
15694 (scev_probably_wraps_p): Declared.
15695 * tree-scalar-evolution.c (count_ev_in_wider_type): Removed.
15696 (follow_ssa_edge_in_rhs, interpret_rhs_modify_expr):
15697 Use an extra parameter AT_STMT for refining the information that is
15698 passed down to convert_step.
15699 (follow_ssa_edge_inner_loop_phi, follow_ssa_edge,
15700 analyze_scalar_evolution_1): Initialize AT_STMT with the current
15701 analyzed statement.
15702 (instantiate_parameters_1): Don't know yet how to initialize AT_STMT.
15703 * tree-ssa-loop-ivopts.c (idx_find_step): Update the use of
15704 can_count_iv_in_wider_type to use convert_step.
15705 * tree-ssa-loop-niter.c (can_count_iv_in_wider_type_bound): Move
15706 code that is independent of the loop over the known iteration
15707 bounds to convert_step_widening, the rest is moved to
15708 proved_non_wrapping_p.
15709 (scev_probably_wraps_p): New.
15710 (can_count_iv_in_wider_type): Renamed convert_step.
15711 * tree-vrp.c (adjust_range_with_scev): Take an extra AT_STMT parameter.
15712 Use scev_probably_wraps_p for computing init_is_max.
15713 (vrp_visit_assignment): Pass the current analyzed statement to
15714 adjust_range_with_scev.
15715 (execute_vrp): Call estimate_numbers_of_iterations for refining the
15716 information provided by scev analyzer.
15718 2005-06-07 Eric Christopher <echristo@redhat.com>
15720 * config/mips/predicates.md (sleu_operand): Use
15721 IN_RANGE to specify range of operand.
15723 2005-06-07 Steven Bosscher <stevenb@suse.de>
15725 PR tree-optimization/21847
15726 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): With
15727 -fnon-call-exceptions, also mark statements inherently
15728 necessary if they may throw.
15730 2005-06-07 Adrian Straetling <straetling@de.ibm.com>
15732 * config/s390/s390.md: ("UNSPECV_MB", "UNSPECV_CAS"): New constants.
15733 ("type"): Add "sem" to 'type' attribute.
15734 ("memory_barrier", "*memory_barrier", "sync_compare_and_swapdi",
15735 "sync_compare_and_swapsi", "sync_compare_and_swap_ccdi",
15736 "sync_compare_and_swap_ccsi", "*sync_compare_and_swap_ccdi",
15737 "*sync_compare_and_swap_ccsi"): New patterns.
15738 * config/s390/2064.md: ("z_sem"): New insn_reservation.
15739 * config/s390/2084.md: ("x_sem"): New insn_reservation.
15740 * config/s390/s390.c: (s390_compare_emitted): New global variable.
15741 (s390_emit_compare): Do not emit comparison again after cas.
15742 * config/s390/s390.h (s390_compare_emitted): Declare.
15744 2005-06-07 Kazu Hirata <kazu@codesourcery.com>
15746 * sbitmap.h (sbitmap_iterator, sbitmap_iter_init,
15747 sbitmap_iter_cond, sbitmap_iter_next): New.
15748 * bt-load.c, cfganal.c, combine.c, ddg.c, flow.c,
15749 modulo-sched.c, sbitmap.c, sched-rgn.c, tree-into-ssa.c,
15750 tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Update
15751 uses of EXECUTE_IF_SET_IN_SBITMAP to the new style.
15753 2005-06-07 Zdenek Dvorak <dvorakz@suse.cz>
15755 * tree-ssa-address.c: New file.
15756 * Makefile.in (tree-ssa-address.o): Add.
15757 * expr.c (expand_expr_real_1): Do not handle REF_ORIGINAL on
15758 INDIRECT_REFs. Handle TARGET_MEM_REFs.
15759 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REFs.
15760 * tree-flow.h (struct mem_address): New.
15761 (struct affine_tree_combination): Moved from tree-ssa-loop-ivopts.c.
15762 (create_mem_ref, addr_for_mem_ref, get_address_description,
15763 maybe_fold_tmr, multiplier_allowed_in_address_p,
15764 multiply_by_cost): Declare.
15765 * tree-mudflap.c (mf_xform_derefs_1): Handle TARGET_MEM_REFs.
15766 * tree-pretty-print.c (dump_generic_node): Ditto.
15767 * tree-ssa-loop-im.c (for_each_index): Ditto.
15768 * tree-ssa-loop-ivopts.c (may_be_unaligned_p,
15769 find_interesting_uses_address): Ditto.
15770 (rewrite_address_base, build_addr_strip_iref): Removed.
15771 (struct affine_tree_combination): Moved to tree-flow.h.
15772 (get_ref_tag, copy_ref_info): New functions.
15773 (rewrite_use_address): Produce TARGET_MEM_REFs.
15774 (tree_ssa_iv_optimize): Do not call update_ssa
15775 and rewrite_into_loop_closed_ssa.
15776 (tree_to_aff_combination): Use build_fold_addr_expr instead of
15777 build_addr_strip_iref.
15778 (unshare_aff_combination): New function.
15779 (fold_affine_sum): Removed.
15780 (get_computation_at): Use get_computation_aff. Unshare the result.
15781 (get_computation_aff, multiplier_allowed_in_address_p): New function.
15782 (multiply_by_cost): Exported.
15783 (get_address_cost): Use multiplier_allowed_in_address_p.
15784 * tree-ssa-operands.c (get_tmr_operands): New function.
15785 (get_expr_operands): Handle TARGET_MEM_REFs.
15786 * tree.c (copy_node_stat): Copy annotations for TARGET_MEM_REFs.
15787 (build): Handle 7 arguments.
15788 (build7_stat): New function.
15789 * tree.def (TARGET_MEM_DEF): New.
15790 * tree.h (REF_ORIGINAL): Removed.
15791 (TMR_SYMBOL, TMR_BASE, TMR_INDEX, TMR_STEP, TMR_OFFSET, TMR_ORIGINAL,
15792 TMR_TAG, build7): New macros.
15793 (build7_stat, tree_mem_ref_addr, copy_mem_ref_info): Declare.
15794 * tree-ssa-ccp.c (fold_stmt_r): Call maybe_fold_tmr.
15795 * doc/c-tree.texi: Document TARGET_MEM_REF.
15796 * doc/tree-ssa.texi: Add TARGET_MEM_REF to gimple grammar.
15798 2005-06-07 Jakub Jelinek <jakub@redhat.com>
15801 * dwarf2out.c (add_loc_descr_op_piece): New function.
15802 (multiple_reg_loc_descriptor, concat_loc_descriptor,
15803 loc_descriptor): Use it.
15804 * var-tracking.c: Include regs.h and expr.h.
15805 (emit_note_insn_var_location): Skip over pieces where offset
15806 is smaller than previous offset plus previous piece mode size.
15807 Optimize adjacent hard registers or memory locations.
15808 * Makefile.in (var-tracking.o): Depend on $(REGS_H) and $(EXPR_H).
15810 2005-06-07 Richard Guenther <rguenth@gcc.gnu.org>
15812 * c-typeck.c (c_finish_if_stmt): Use void_type_node as type
15814 * gimplify.c (gimplify_cond_expr): No need to fix up the
15815 type of COND_EXPRs.
15817 2005-06-07 Richard Guenther <rguenth@gcc.gnu.org>
15819 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Fix
15822 2005-06-07 Geoffrey Keating <geoffk@apple.com>
15824 * config/rs6000/host-darwin.c (segv_handler): Widen the possible
15825 'stwux' instructions that are considered to be stack decrements.
15827 * rtlanal.c (subreg_offset_representable_p): Handle objects
15830 2005-06-06 Uros Bizjak <uros@kss-loka.si>
15832 * mode-switching.c (optimize_mode_switching): Fix n_exprs parameter
15833 in call to pre_edge_lcm.
15835 2005-06-06 Kaz Kojima <kkojima@gcc.gnu.org>
15837 * config/sh/linux-unwind.h (SH_DWARF_FRAME_XD0): Remove for SH5.
15838 (SH_DWARF_FRAME_PR, SH_DWARF_FRAME_GBR, SH_DWARF_FRAME_MACL)
15839 (SH_DWARF_FRAME_MACH, SH_DWARF_FRAME_PC, SH_DWARF_FRAME_FPUL):
15841 (SH_DWARF_FRAME_FP0, SH_DWARF_FRAME_FPSCR): Define to the correct
15842 dwarf register number for SHmedia.
15843 (shmedia_fallback_frame_state): New.
15844 (MD_FALLBACK_FRAME_STATE_FOR): Define to it for SH5.
15846 * config/sh/linux.h (FUNCTION_PROFILER): Provide SHMEDIA version.
15848 2005-06-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
15850 * c-lex.c (lex_string): Use XOBFINISH.
15851 * collect2.c (extract_string, dump_file): Likewise.
15852 * dbxout.c (dbxout_finish_complex_stabs): Likewise.
15853 * gcc.c (init_spec, build_search_list, convert_filename,
15854 set_collect_gcc_options, do_spec_2, do_spec_1, main): Likewise.
15855 * genpreds.c (write_predicate_subfunction): Likewise.
15856 * genflags.c (main): Likewise.
15857 * read-rtl.c (mode_attr_index, apply_macro_to_string,
15858 join_c_conditions, read_quoted_string, read_braced_string,
15859 read_rtx_1): Likewise.
15860 * stringpool.c (ggc_alloc_string): Likewise.
15861 * tlink.c (obstack_fgets, recompile_files): Likewise.
15863 2005-06-06 Jakub Jelinek <jakub@redhat.com>
15865 * intl.h (G_): New macro.
15866 * rtl-error.c (error_for_asm, warning_for_asm): Use gmsgid
15867 instead of msgid for argument name.
15868 * tree-ssa.c (warn_uninit): Likewise.
15869 * c-parser.c (c_parser_error): Likewise.
15870 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
15871 * config/darwin-c.c (BAD): Likewise.
15872 * config/c4x/c4x-c.c (BAD): Likewise.
15873 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
15874 * c-errors.c (pedwarn_c99, pedwarn_c90): Likewise.
15875 * c-common.c (c_parse_error): Likewise.
15876 * diagnostic.c (diagnostic_set_info, verbatim, inform, warning,
15877 warning0, pedwarn, error, sorry, fatal_error, internal_error):
15879 (fnotice): Use cmsgid instead of msgid for argument name.
15880 * gcov.c (fnotice): Likewise.
15881 * protoize.c (notice): Likewise.
15882 * final.c (output_operand_lossage): Likewise.
15883 * gcc.c (fatal, notice): Likewise.
15884 (error): Use gmsgid instead of msgid for argument name.
15885 * collect2.c (notice, fatal_perror, fatal): Use cmsgid instead
15886 of msgid for argument name.
15887 (error): Use gmsgid instead of msgid for argument name.
15888 * c-decl.c (locate_old_decl, implicit_decl_warning): Use G_()
15890 * c-typeck.c (readonly_error, convert_for_assignment): Likewise.
15891 * tree-inline.c (inline_forbidden_p_1): Likewise.
15892 * ABOUT-GCC-NLS: Require gettext 0.14.5 or later. Mention the new
15893 conventions for marking translations.
15894 * doc/install.texi: Mention gettext 0.14.5 or later requirement.
15896 * tree-chrec.c (reset_evolution_in_loop): Use build3 instead of
15899 * fold-const.c (operand_equal_p): Don't return 1, if element
15900 chains for 2 VECTOR_CSTs are not the same length.
15902 PR regression/21897
15903 * fold-const.c (fold_ternary) <case BIT_FIELD_REF>: Don't crash if
15904 not all VECTOR_CST elements are given.
15906 * combine.c (try_combine): Use hard_regno_nregs array instead of
15907 HARD_REGNO_NREGS macro.
15908 * config/rs6000/rs6000.c (rs6000_split_multireg_move,
15909 rs6000_register_move_cost, rs6000_memory_move_cost): Likewise.
15910 * config/ia64/ia64.c (mark_reg_gr_used_mask): Likewise.
15912 2005-06-06 Daniel Berlin <dberlin@dberlin.org>
15914 * tree-ssa-reassoc.o: New.
15915 (OBJS-common): Add tree-ssa-reassoc.o
15916 * timevar.def: Add TV_TREE_REASSOC
15917 * tree-optimize.c (pass_reassoc): Add call.
15918 * tree-pass.h (pass_reassoc): Add.
15919 * tree-ssa-reassoc.c: New file.
15921 2005-06-06 Eric Christopher <echristo@redhat.com>
15924 * expr.c (do_store_flag): Remove check for non-negative BRANCH_COST.
15926 2005-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15928 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard with
15929 HAVE_GAS_MAX_SKIP_P2ALIGN.
15930 (HAVE_AS_DWARF2_DEBUG_LINE): Remove.
15932 2005-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15934 * Makefile.in (mips-tfile.o): Add $(srcdir)/../include prefix to
15935 getopt.h dependency.
15936 (mips-tdump.o): Likewise.
15938 2005-06-06 Jan Hubicka <jh@suse.cz>
15940 * predict.c (tree_predict_edge): Don't drop useless predictions;
15941 check that it is not called too late in the game.
15942 (gate_estimate_probability): New gate.
15943 (pass_profile): Gate.
15944 * tree-mudflap.c (mf_build_check_statement_for): Do not drop
15945 predictions; update CFG instead.
15946 * cfgrtl.c (rtl_verify_flow_info): Check that predcitions are consumed.
15948 2005-06-06 Jie Zhang <jie.zhang@analog.com>
15950 * config.gcc (bfin*-uclinux*): New.
15951 * config/bfin/uclinux.h: New file.
15953 2005-06-06 Ben Elliston <bje@au.ibm.com>
15955 * doc/md.texi (Insn Splitting): Fix some wording.
15957 2005-06-05 David Edelsohn <edelsohn@gnu.org>
15959 * config/rs6000/rs6000.c (rs6000_emit_swdivsf): New function.
15960 (rs6000_emit_swdivdf): New function.
15961 * config/rs6000/rs6000.md (fres): New pattern.
15962 (divsf3): Add approximation through rs6000_emit_swdivsf.
15963 (fred): New pattern.
15964 (divdf3): Add approximation through rs6000_emit_swdivdf.
15965 * config/rs6000/rs6000-protos.h (rs6000_emit_swdivsf): Declare.
15966 (rs6000_emit_swdivdf): Declare.
15967 * config/rs6000/rs6000.opt (mswdiv): New option.
15968 * doc/invoke.texi (RS/6000 and PowerPC Options): Document mswdiv.
15970 2005-06-05 Zdenek Dvorak <dvorakz@suse.cz>
15972 PR tree-optimization/21846
15973 * tree-cfg.c (replace_uses_by): Update information stored at loops.
15974 * tree-flow.h (substitute_in_loop_info): Declare.
15975 * tree-scalar-evolution.c (initialize_scalar_evolutions_analyzer):
15976 Ensure that chrec_dont_know and chrec_known have a type.
15977 * tree-ssa-loop-niter.c (substitute_in_loop_info): New function.
15979 2005-06-05 Steven Bosscher <stevenb@suse.de>
15981 * config/i386/i386.c (x86_use_loop): Remove.
15982 * config/i386/i386.h (x86_use_loop): Remove extern decl.
15983 (TARGET_USE_LOOP): Remove.
15984 * config/i386/i386.md (doloop_end, doloop_end_internal): Remove.
15985 Also remove related define_splits.
15987 2005-06-05 Dorit Nuzman <dorit@il.ibm.com>
15989 * tree-flow.h (stmt_ann_d): Move aux to ...
15990 (tree_ann_common_d): ... here.
15991 * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
15992 move_computations_stmt, schedule_sm): Update references to
15994 * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
15995 * tree-vect-transform.c (vect_create_index_for_vector_ref): Update
15996 call to set_stmt_info.
15997 (vect_transform_loop): Likewise.
15998 * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info):
16001 * tree-vect-analyze.c (vect_analyze_scalar_cycles): Made void instead of
16003 (vect_mark_relevant): Takes two additional arguments - live_p and
16004 relevant_p. Set RELEVANT_P and LIVE_P according to these arguments.
16005 (vect_stmt_relevant_p): Differentiate between a live stmt and a
16006 relevant stmt. Return two values = live_p and relevant_p.
16007 (vect_mark_stmts_to_be_vectorized): Call vect_mark_relevant and
16008 vect_stmt_relevant_p with additional arguments. Phis are no longer
16009 put into the worklist (analyzed seperately in analyze_scalar_cycles).
16010 (vect_determine_vectorization_factor): Also check for LIVE_P, because a
16011 stmt that is marked as irrelevant and live, cause it's only used out
16012 side the loop, may need to be vectorized (e.g. reduction).
16013 (vect_analyze_operations): Examine phis. Call
16014 vectorizable_live_operation for for LIVE_P stmts. Check if
16016 (vect_analyze_scalar_cycles): Update documentation. Don't fail
16017 vectorization - just classify the scalar cycles created by the loop
16018 phis. Call vect_is_simple_reduction.
16019 (vect_analyze_loop): Call to analyze_scalar_cycles moved earlier.
16020 * tree-vect-transform.c (vect_create_index_for_vector_ref): Update
16021 call to set_stmt_info.
16022 (vect_get_vec_def_for_operand): Code reorganized - the code that
16023 classifies the type of use was factored out to vect_is_simple_use.
16024 (vectorizable_store, vect_is_simple_cond): Call vect_is_simple_use with
16025 additional arguments.
16026 (vectorizable_assignment): Likewise. Also make sure the stmt is relevant
16027 and computes a loop_vec_def.
16028 (vectorizable_operation, vectorizable_load, vectorizable_condition):
16030 (vectorizable_live_operation): New.
16031 (vect_transform_stmt): Handle LIVE_P stmts.
16032 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new fields
16033 STMT_VINFO_LIVE_P and STMT_VINFO_DEF_TYPE.
16034 (new_loop_vec_info, destroy_loop_vec_info): Also handle phis.
16035 (vect_is_simple_use): Determine the type of the def and return it
16036 in a new function argument. Consider vect_reduction_def and
16037 vect_induction_def, but for now these are not supported.
16038 (vect_is_simple_reduction): New. Empty for now.
16039 * tree-vectorizer.h (vect_def_type): New enum type.
16040 (_stmt_vec_info): Added new fields - live and _stmt_vec_info.
16041 (STMT_VINFO_LIVE_P, STMT_VINFO_DEF_TYPE): New accessor macros.
16042 (vect_is_simple_use): New arguments added to function declaration.
16043 (vect_is_simple_reduction): New function declaration.
16044 (vectorizable_live_operation): New function declaration.
16046 * tree-vect-analyze.c (vect_can_advance_ivs_p): Add debug printout.
16047 (vect_can_advance_ivs_p): Likewise.
16048 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Likewise.
16050 2005-06-05 Eric Christopher <echristo@redhat.com>
16052 * config/mips/mips.c (mips_rtx_costs): Remove unused variable.
16054 2005-06-05 Hans-Peter Nilsson <hp@bitrange.com>
16057 * config/mmix/mmix.md ("*movdicc_real_foldable")
16058 ("*movdfcc_real_foldable", "*bCC_foldable")
16059 ("*bCC_inverted_foldable"): Specify DImode for register being
16062 2005-06-04 Roger Sayle <roger@eyesopen.com>
16064 * reg-stack.c (struct block_info_def): Correct grammar typo.
16065 (compensate_edge): Clean-up. Perform as little work as possible
16066 when src and dest stacks match. Avoid modifying block_info.
16067 Reorder and simplify assertion checks. Avoid unnecessary copying
16068 of regstack structure.
16069 (convert_regs_1): Set the done flag here...
16070 (convert_regs_2): ... instead of here.
16072 2005-06-04 Dale Johannesen <dalej@apple.com>
16074 * config/rs6000/rs6000.c (no_global_regs_above): New.
16075 (rs6000_emit_prologue): Use it; cosmetic formatting fixes.
16076 (rs6000_emit_epilogue): Use it; cosmetic formatting fixes.
16077 (rs6000_conditional_register_usage): Don't put Darwin PIC
16078 register in global_regs.
16079 (rs6000_stack_info): Don't set lr_save_p just because Darwin
16081 (rs6000_emit_prologue): Save LR in R0 around Darwin PIC setup,
16082 if not done by lr_save_p.
16083 * config/rs6000/rs6000.md (insnv1_internal1): Back out 05-18 patch.
16084 Use rotate instead of ashift.
16085 (call_indirect_nonlocal_sysv): Prefer CTR to LR.
16086 (call_value_indirect_nonlocal_sysv): Ditto.
16088 2005-06-04 Jan Hubicka <jh@suse.cz>
16090 * cgraphunit.c (cgraph_reset_node): Break out from ...
16091 (cgraph_finalize_function): ... here.
16092 (cgraph_finalize_compilation_unit): Reset nodes where backend
16095 2005-06-04 Richard Henderson <rth@redhat.com>
16098 * config/alpha/alpha.c (alpha_align_insns): Don't insert nops
16099 until we've passed initial ldgp.
16101 2005-06-04 Daniel Berlin <dberlin@dberlin.org>
16103 * cfgexpand.c (expand_one_var): Use DECL_HAS_VALUE_EXPR_P.
16104 * dwarf2out.c (loc_descriptor_from_tree_1): Ditto.
16105 * expr.c (expand_var): Ditto.
16106 * function.c (gimplify_parameters): Use SET_DECL_VALUE_EXPR too.
16107 * gimplify.c (gimplify_decl_expr): Ditto.
16108 (gimplify_expr): Ditto.
16109 * tree-mudflap.c (mf_decl_eligible_p): Use DECL_HAS_VALUE_EXPR_P.
16110 * tree.c (value_expr_for_decl): New.
16111 (print_value_expr_statistics): New.
16112 (init_ttree): Init value_expr_for_decl.
16113 (decl_value_expr_lookup): New.
16114 (decl_value_expr_insert): Ditto.
16115 (copy_node_stat): Copy DECL_VALUE_EXPR status.
16116 * tree.h (DECL_VALUE_EXPR): Use hashtable.
16117 (SET_DECL_VALUE_EXPR): New.
16118 (DECL_HAS_VALUE_EXPR_P): New.
16120 2005-06-04 Steven Bosscher <stevenb@suse.de>
16122 * lcm.c: Move all mode-switching related functions from here...
16123 * mode-switching.c: ...to this new file.
16124 * doc/passes.texi: Update accordingly.
16126 * basic-block.h (label_value_list): Remove extern decl.
16127 * cfgrtl.c (label_value_list): Remove.
16128 (can_delete_label_p): Don't look at it.
16129 * cfgcleanup.c (cleanup_cfg): Don't free it.
16131 * common.opt: Don't refer to non-existing flag_alias_check.
16133 2005-06-04 David Edelsohn <edelsohn@gnu.org>
16135 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power5.
16137 2005-06-04 Kazu Hirata <kazu@codesourcery.com>
16139 * function.c (prologue, epilogue, sibcall_epilogue): Change
16140 their types to VEC(int,heap)*.
16141 (free_after_compilation): Free the three vectors above.
16142 (init_function_for_compilation, record_insns, contains,
16143 prologue_epilogue_contains, sibcall_epilogue_contains,
16144 reposition_prologue_and_epilogue_notes): Use VEC instead of
16145 VARRAY. (init_function_once): Remove.
16146 * function.h: Remove the prototype for init_function_once.
16147 * toplev.c (backend_init): Don't call init_function_once.
16149 2005-06-04 Jan Hubicka <jh@suse.cz>
16151 * predict.c (tree_predict_edge): Do not predict entry edge and
16152 single succestor edge.
16154 2005-06-04 Joseph S. Myers <joseph@codesourcery.com>
16157 * c-typeck.c (push_init_level): Don't pop levels without braces if
16160 2005-06-03 Sebastian Pop <pop@cri.ensmp.fr>
16162 * tree-data-ref.c (compute_self_dependence): New function.
16163 (compute_all_dependences): Use it.
16165 2005-06-03 Geoffrey Keating <geoffk@apple.com>
16167 * c-parser.c (c_parser_parms_declarator): Don't use chainon().
16168 (c_parser_expr_list): Don't use chainon().
16170 * config/darwin.h (LINK_SPEC): Pass -syslibroot to linker
16171 when -isysroot passed.
16173 2005-06-03 Joseph S. Myers <joseph@codesourcery.com>
16176 * c-decl.c (start_function): Restore label_context_stack_se and
16177 label_context_stack_vm if returning with an error.
16179 2005-06-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
16181 * configure.ac: Check declaration for asprintf, needed by
16183 * configure: Regenerate.
16184 * config.in: Likewise.
16186 2005-06-03 Diego Novillo <dnovillo@redhat.com>
16188 * tree-ssa-dom.c (record_edge_info): Use last_basic_block to
16189 allocate info array.
16190 * tree-vrp.c (extract_range_from_unary_expr): Set resulting
16191 range to varying in cast expressions that change
16194 2005-06-03 Eric Christopher <echristo@redhat.com>
16196 * config/mips/mips.opt: Add RejectNegative to divide-breaks and
16199 2005-06-03 Jan Hubicka <jh@suse.cz>
16201 * basic-block.h (remove_predictions_associated_with_edge): Declare.
16202 * cfg.c (remove_edge): Use it.
16203 * predict.c (remove_predictions_associated_with_edge): New function.
16205 2005-06-03 Pat Haugen <pthaugen@us.ibm.com>
16207 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
16208 Clear call_realy_used_regs[r2] when ABI_AIX.
16210 2005-06-03 Richard Guenther <rguenth@gcc.gnu.org>
16212 PR middle-end/21858
16213 * fold-const.c (fold_binary): Fix type mismatches in folding
16216 2005-06-03 Kazu Hirata <kazu@codesourcery.com>
16218 * cgraph.c, cgraphunit.c, config/mips/mips.c: Fix comment
16221 2005-06-03 Joseph S. Myers <joseph@codesourcery.com>
16223 * collect2.c (maybe_unlink): Use unlink_if_ordinary.
16225 2005-06-02 Bernd Schmidt <bernd.schmidt@analog.com>
16227 * reload1.c (reload): Revert my previous patch.
16229 2005-06-03 Nick Clifton <nickc@redhat.com>
16231 * config/arm/semi.h (ASM_SPEC): Fix typo passing -mfloat-abi to
16234 2005-06-03 Kazu Hirata <kazu@codesourcery.com>
16236 PR tree-optimization/21849
16237 * tree-ssa-copy.c (dump_copy_of): Call sbitmap_zero.
16239 2005-06-02 Richard Henderson <rth@redhat.com>
16241 * Makefile.in (tree-vect-generic.o): New.
16242 (OBJS-common, GTFILES, s-gtype): Add it.
16243 * tree-complex.c (build_replicated_const, vector_inner_type,
16244 vector_last_type, vector_last_nunits, build_word_mode_vector_type,
16245 elem_op_func, tree_vec_extract, do_unop, do_binop, do_plus_minus,
16246 do_negate, expand_vector_piecewise, expand_vector_parallel,
16247 expand_vector_addition, expand_vector_operation,
16248 type_for_widest_vector_mode, expand_vector_operations_1,
16249 gate_expand_vector_operations, expand_vector_operations,
16250 pass_lower_vector_ssa): Move to tree-vect-generic.c.
16251 (tree_lower_complex): Rename from tree_lower_operations.
16252 (pass_lower_complex): Rename from pass_pre_expand.
16253 * tree-vect-generic.c: New file.
16254 * tree-pass.h (pass_lower_complex): Rename from pass_pre_expand.
16255 (pass_lower_vector): New.
16256 * tree-optimize.c (init_tree_optimization_passes): Update to match.
16258 2005-06-02 Richard Henderson <rth@redhat.com>
16260 * modulo-sched.c (doloop_register_get): Protect against
16261 doloop_end not defined.
16263 2005-06-02 Kazu Hirata <kazu@codesourcery.com>
16265 * config/sh/sh.c (general_movsrc_operand,
16266 general_movdst_operand, arith_reg_operand, arith_reg_dest,
16267 logical_reg_operand, int_gpr_dest, fp_arith_reg_operand,
16268 fp_arith_reg_dest, arith_operand, arith_reg_or_0_operand,
16269 xor_operand, cmp_operand, logical_operand, and_operand,
16270 fpscr_operand, fpul_operand, symbol_ref_operand,
16271 commutative_float_operator, noncommutative_float_operator,
16272 unary_float_operator, binary_float_operator,
16273 binary_logical_operator, equality_comparison_operator,
16274 greater_comparison_operator, less_comparison_operator,
16275 shift_operator, logical_operator, target_reg_operand,
16276 target_operand, mextr_bit_offset, extend_reg_operand,
16277 trunc_hi_operand, extend_reg_or_0_operand, minuend_operand,
16278 general_extend_operand, ua_address_operand,
16279 cache_address_operand, inqhi_operand, sh_rep_vec, sh_1el_vec,
16280 sh_const_vec, ua_offset, sh_register_operand, cmpsi_operand,
16281 shift_count_reg_operand, shift_count_operand,
16282 unaligned_load_operand): Move to ...
16283 * config/sh/predicates.md: ... here.
16284 * config/sh/sh.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
16287 2005-06-02 Andrew Pinski <pinskia@physics.uc.edu>
16289 * tree.c (build_common_builtin_nodes): Fix the return type on
16292 2005-06-02 Richard Guenther <rguenth@gcc.gnu.org>
16294 * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Remove.
16295 (find_interesting_uses_address): Use build_fold_addr_expr instead.
16296 (strip_offset_1): Likewise.
16297 (tree_to_aff_combination): Likewise.
16299 2005-06-02 DJ Delorie <dj@redhat.com>
16301 * convert.c (convert_to_pointer): Avoid recursion if no conversion
16304 2005-06-02 Richard Guenther <rguenth@gcc.gnu.org>
16306 * tree-chrec.c (chrec_fold_plus_1): Ensure we build
16307 binary operations with the correct types.
16308 * tree-ssa-loo-ivopts.c (idx_find_step): Use sizetype
16309 for all computation.
16311 2005-06-02 Kazu Hirata <kazu@codesourcery.com>
16313 * tree-vrp.c, config/arm/arm.md, config/arm/arm1020e.md,
16314 config/rs6000/rs6000.md: Fix comment typos. Follow splling
16316 * doc/install.texi: Fix a typo.
16318 2005-06-02 Jan Hubicka <jh@suse.cz>
16320 * cgraphunit.c (cgraph_function_and_variable_visibility): Extern
16321 inline functions are not local.
16323 2005-06-02 Kazu Hirata <kazu@codesourcery.com>
16325 * gimplify.c (gimplify_ctx): Change the type of case_labels to
16327 (gimplify_switch_expr, gimplify_case_label_expr): Adjust uses
16330 2005-06-02 Richard Guenther <rguenth@gcc.gnu.org>
16332 * c-typeck.c (build_indirect_ref): Build INDIRECT_REF
16335 2005-06-02 Ulrich Weigand <uweigand@de.ibm.com>
16337 * config/s390/s390.c (s390_add_execute): Do not handle out-of-pool
16339 (s390_dump_pool): Likewise.
16340 (s390_mainpool_start, s390_mainpool_finish): Likewise.
16341 (s390_chunkify_start): Likewise.
16342 (s390_dump_execute): Remove.
16343 (s390_reorg): Handle out-of-pool execute templates.
16345 2005-06-02 Adrian Straetling <straetling@de.ibm.com>
16347 * optabs.c: (expand_bool_compare_and_swap): Emit barrier after
16348 unconditional jump.
16350 2005-06-02 Jan Hubicka <jh@suse.cz>
16352 * cgraph.c (cgraph_node): Maintain master clones.
16353 (cgraph_remove_node): Likewise.
16354 (availability_names): New static variable.
16355 (dump_cgraph_node): Dump availability.
16356 (dump_cgraph_varpool_node): Likewise.
16357 (cgraph_is_master_clone, cgraph_master_clone,
16358 cgraph_function_body_availability,
16359 cgraph_variable_initializer_availability): New functions.
16360 * cgraph.h (availability): New enum.
16361 (struct cgraph_node): Add master_clone.
16362 (cgraph_is_master_clone, cgraph_master_clone,
16363 cgraph_function_body_availability,
16364 cgraph_variable_initializer_availability): Declare.
16365 * cgraphunit.c (cgraph_expand_function): Setcgraph_function_flags_ready.
16366 (cgraph_remove_unreachable_nodes): Remove unreachable nodes.
16367 * ipa-inline.c (cgraph_decide_inlining): Do not call
16368 cgraph_remove_unreachable_nodes.
16370 * cgraphunit.c (cgraph_function_and_variable_visibility): Fix typo in
16373 2005-06-02 Diego Novillo <dnovillo@redhat.com>
16376 * tree-vrp.c (nonnull_arg_p): New.
16377 (get_value_range): Call it.
16379 2005-06-02 Eric Christopher <echristo@redhat.com>
16381 * config/mips/mips.h (processor_type): Remove PROCESSOR_DEFAULT,
16383 (mips_rtx_cost_data): New datatype.
16384 (MEMORY_MOVE_COST): Use data from structure.
16385 (BRANCH_COST): Ditto.
16386 (LOGICAL_OP_NON_SHORT_CIRCUIT): Define to zero.
16387 * config/mips/mips.md (cpu): Rework for processor_type changes.
16388 * config/mips/mips.c (mips_cost): New variable.
16389 (DEFAULT_COSTS): Define.
16390 (mips_rtx_cost_data): New.
16391 (mips_rtx_costs): Use. Minor formatting changes. Use COSTS_N_INSNS
16392 for NEG cost. Add support for FLOAT, UNSIGNED_FLOAT, FIX,
16393 FLOAT_EXTEND, FLOAT_TRUNCATE, and SQRT.
16394 (override_options): Set cost data.
16395 (mips_register_move_cost): Formatting changes.
16396 (bdesc_arrays): Use PROCESSOR_MAX.
16397 (mips_init_builtins): Ditto.
16399 2005-06-02 Diego Novillo <dnovillo@redhat.com>
16402 * doc/invoke.texi: Document -ftree-vrp.
16404 2005-06-02 Dorit Nuzman <dorit@il.ibm.com>
16406 PR tree-optimization/21734
16407 * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop): Use the
16408 phi_result when current_def is not available.
16409 (slpeel_update_phi_nodes_for_guard1): Don't fail if current_def is not
16412 2005-06-02 David Edelsohn <edelsohn@gnu.org>
16414 * config/rs6000/rs6000.c (rs6000_insn_valid_within_doloop): New.
16415 (TARGET_INSN_VALID_WITHIN_DOLOOP): Define.
16417 2005-06-02 Diego Novillo <dnovillo@redhat.com>
16419 * tree-vrp.c (has_assert_expr, maybe_add_assert_expr): Remove.
16421 2005-06-02 Jan Hubicka <jh@suse.cz>
16423 * cgraph.c (dump_cgraph_node): Print new flags.
16424 (dump_cgraph_varpool_node): Likewise.
16425 (decide_variable_is_needed): Initialize externally_visible flag.
16426 * cgraph.h (cgraph_local_info): Add externally_visible flag.
16427 (cgraph_varpool_node): Likewise.
16428 (cgraph_function_flags_ready): Declare.
16429 * cgraph.c (cgraph_mark_local_functions): Rename to ...
16430 (cgraph_function_and_variable_visibility) ... this one; handle
16431 externally_visible flags.
16432 (decide_is_function_needed): Set externally_visible flag.
16433 (cgraph_finalize_function): Deal properly with early cleanups.
16434 (cgraph_optimize): Update call of
16435 cgraph_function_and_variable_visibility.
16437 2005-06-02 Steven Bosscher <stevenb@suse.de>
16438 Mostafa Hagog <mustafa@il.ibm.com>
16440 * cfgloop.h (doloop_condition_get): Make external.
16441 * loop-doloop.c (doloop_condition_get): Generalize to make it
16442 usable in modulo-sched.c.
16443 * modulo-sched.c (doloop_register_get): Use
16444 doloop_condition_get instead of duplicating it.
16446 2005-06-02 Bernd Schmidt <bernd.schmidt@analog.com>
16448 * reload1.c (reload): Undo 2005-04-20 change. Make sure we detect
16449 the correct set of init_insns that need deletion.
16450 * local-alloc.c (update_equiv_regs): When substituting sole definition
16451 into sole use of a reg, delete it from liveness information.
16453 2005-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
16455 * config/sh/sh.h (TARGET_FPU_DOUBLE): Use MASK_SH4.
16457 2005-06-01 Diego Novillo <dnovillo@redhat.com>
16459 PR 14341, PR 21332, PR 20701, PR 21029, PR 21086, PR 21090
16460 PR 21289, PR 21348, PR 21367, PR 21368, PR 21458.
16461 * fold-const.c (invert_tree_comparison): Make extern.
16462 * tree-flow.h (enum value_range_type): Move to tree-ssa-propagate.
16463 (struct value_range_def): Limewise.
16464 (get_value_range): Remove.
16465 (dump_value_range): Remove.
16466 (dump_all_value_ranges): Remove.
16467 (debug_all_value_ranges): Remove.
16468 (vrp_evaluate_conditional): Declare.
16469 * tree-ssa-propagate.c (struct prop_stats_d): Add field
16471 (substitute_and_fold): Add argument use_ranges_p.
16472 Update all callers.
16473 If use_ranges_p is true, call fold_predicate_in to fold
16474 predicates using range information.
16475 Ignore ASSERT_EXPRs.
16476 Change debugging output to only show statements that have been
16478 (replace_phi_args_in): Move debugging output code from
16479 substitute and fold.
16480 (fold_predicate_in): New local function.
16481 * tree-ssa-propagate.h (enum value_range_type): Move from
16483 (struct value_range_d): Likewise.
16485 (value_range_t): Rename from value_range.
16486 * tree-vrp.c (found_in_subgraph): Rename from found.
16487 (get_opposite_operand): Remove.
16488 (struct assert_locus_d): Declare.
16489 (assert_locus_t): Declare.
16490 (need_assert_for): Declare.
16491 (asserts_for): Declare.
16492 (blocks_visited): Declare.
16493 (vr_value): Declare.
16494 (set_value_range): Add argument 'equiv'.
16495 Don't drop to VARYING ranges that cover all values in the
16497 Make deep copy of equivalence set 'equiv'.
16498 (copy_value_range): New local function.
16499 (set_value_range_to_undefined): New local function.
16500 (compare_values): Return -2 if either value has overflowed.
16501 (range_includes_zero_p): New local function.
16502 (extract_range_from_assert): Flip the predicate code if the
16503 name being asserted is on the RHS of the predicate.
16504 Avoid creating unnecessary symbolic ranges if the comparison
16505 includes another name with a known numeric range.
16506 Update the equivalnce set of the new range when asserting
16507 EQ_EXPR predicates.
16508 (extract_range_from_ssa_name): Update the equivalence set of
16509 the new range with VAR.
16510 (extract_range_from_binary_expr): Also handle TRUTH_*_EXPR.
16511 If -fwrapv is used, set the resulting range to VARYING if the
16512 operation overflows. Otherwise, use TYPE_MIN_VALUE and
16513 TYPE_MAX_VALUE to represent -INF and +INF.
16514 Fix handling of *_DIV_EXPR.
16515 (extract_range_from_unary_expr): Handle MINUS_EXPR and
16516 ABS_EXPR properly by switching the range around if necessary.
16517 (extract_range_from_comparison): New local function.
16518 (extract_range_from_expr): Call it.
16519 (adjust_range_with_scev): Do not adjust the range if using
16520 wrapping arithmetic (-fwrapv).
16521 (dump_value_range): Also show equivalence set.
16522 Show -INF and +INF for TYPE_MIN_VALUE and TYPE_MAX_VALUE.
16523 (build_assert_expr_for): Also build ASSERT_EXPR for EQ_EXPR.
16524 (infer_value_range): Change return value to bool.
16525 Add arguments 'comp_code_p' and 'val_p'.
16526 Do not attempt to infer ranges from statements that may throw.
16527 Store the comparison code in comp_code_p.
16528 Store the other operand to be used in the predicate in val_p.
16529 (dump_asserts_for): New.
16530 (debug_asserts_for): New.
16531 (dump_all_asserts): New.
16532 (debug_all_asserts): New.
16533 (register_new_assert_for): New.
16534 (register_edge_assert_for): New.
16535 (find_conditional_asserts): New.
16536 (find_assert_locations): New.
16537 (process_assert_insertions_for): New.
16538 (process_assert_insertions): New.
16539 (insert_range_assertions): Initialize found_in_subgraph,
16540 blocks_visited, need_assert_for and asserts_for.
16541 Call find_assert_locations and process_assert_insertions.
16542 (remove_range_assertions): Add more documentation.
16543 (vrp_initialize): Change return type to void.
16544 Do not try to guess if running VRP is worth it.
16545 (compare_name_with_value): New.
16546 (compare_names): New.
16547 (vrp_evaluate_conditional): Add argument 'use_equiv_p'. If
16548 use_equiv_p is true, call compare_names and
16549 compare_name_with_value to compare all the ranges for every
16550 name in the equivalence set of the predicate operands.
16551 Update all callers.
16552 (vrp_meet): Try harder not to derive a VARYING range.
16553 If two values meet, the resulting equivalence set is the
16554 intersection of the two equivalence sets.
16555 (vrp_visit_phi_node): Call copy_value_range to get the current
16556 range information of the LHS.
16557 (vrp_finalize): Create a value vector representing all the
16558 names that ended up with exactly one value in their range.
16559 Call substitute_and_fold.
16560 (execute_vrp): Document equivalence sets in ranges.
16561 * tree.h (SSA_NAME_VALUE_RANGE): Remove.
16562 (struct tree_ssa_name): Remove field value_range.
16563 (invert_tree_comparison): Declare.
16565 2005-06-01 Daniel Berlin <dberlin@dberlin.org>
16567 Fix PR tree-optimization/21839
16569 * gimplify.c (zero_sized_field_decl): New function.
16570 (gimplify_init_ctor_eval): Use it.
16572 2005-06-01 Josh Conner <jconner@apple.com>
16575 * gimplify.c (gimplify_init_constructor): Don't spill initializer
16576 to read-only memory if it's sparse.
16578 2005-06-01 Ramana Radhakrishnan <ramana@codito.com>
16580 * doc/rtl.texi: Remove references to NOTE_INSN_SETJMP.
16581 Add documentation for REG_SETJMP
16583 2005-06-01 Richard Guenther <rguenth@gcc.gnu.org>
16585 * stmt.c (expand_case): Use build_int_cst.
16586 (node_has_low_bound): Likewise, and correct type mismatch.
16587 (node_has_high_bound): Likewise.
16588 * fold-const.c (fold_binary): Ensure we build trees
16589 with the correct types - undo what STRIP_NOPS possibly did.
16591 2005-06-01 Richard Guenther <rguenth@gcc.gnu.org>
16593 * tree.h (fold_indirect_ref_1): Export from fold-const.c.
16594 * fold-const.c (fold_indirect_ref_1): No longer static.
16595 * tree-inline.c (copy_body_r): Use fold_indirect_ref_1 for
16596 folding, if possible.
16598 2005-06-01 Joseph S. Myers <joseph@codesourcery.com>
16600 * common.opt (fjump-tables): New.
16601 * doc/invoke.texi (-fno-jump-tables): Document.
16602 * stmt.c (expand_end_case_type): Do not emit jump tables unless
16605 2005-06-01 Richard Earnshaw <richard.earnshaw@arm.com>
16607 * arm.md (bunordered, bordered, bungt, bunlt, bunge, bunle, buneq)
16608 (bltgt, arm_buneq, arm_bltgt, sunordered, sordered, sungt, sunge)
16609 (sunlt, sunle): Enable patterns on VFP.
16611 * arm.md (attribute 'type'): Add new types - f_loads floadd, f_stores,
16612 f_stored, f_flag, f_cvt.
16613 (generic_sched): No-longer used for the arm1020e and arm1022e cores.
16614 Include arm1020e.md.
16615 * vfp.md (fmstat): New cpu unit. Add an exclusion set between it and
16616 the ds and fmac pipelines. Re-work all load and store patterns and
16617 all conversion patterns to use new attributes. Adjust reservation
16618 descriptions accordingly.
16619 * arm1020e.md: New file.
16620 * t-arm: Add dependency.
16622 2005-06-01 Jan Hubicka <jh@suse.cz>
16624 * except.c (struct eh_region): Kill unused fields.
16625 * basic-block.h (struct basic_block_def): Likewise.
16627 2005-06-01 J"orn Rennecke <joern.rennecke@st.com>
16629 PR rtl-optimization/21767
16630 * rtl.h (function_invariant_p): Re-add declaration.
16631 * reload1.c (function_invariant_p): No longer static.
16632 * ifcvt.c (dead_or_predicable): Remove REG_EQUAL notes that
16633 might have become invalid.
16635 2005-06-01 Jakub Jelinek <jakub@redhat.com>
16639 * gimplify.c (gimplify_decl_expr): Call gimplify_type_sizes
16640 on variable sizes types if a decl is a pointer to a VLA.
16641 (gimplify_type_sizes): Handle POINTER_TYPE and REFERENCE_TYPE.
16642 Call gimplify_type_sizes on aggregate fields. Prevent infinite
16645 * fold-const.c (fold_ternary): Optimize BIT_FIELD_REF of VECTOR_CST.
16647 * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss, _mm_set1_ps,
16648 _mm_set_ps, _mm_setr_ps): Add __extension__.
16649 * config/i386/emmintrin.h (_mm_set_sd, _mm_set1_pd, _mm_set_pd,
16650 _mm_setr_pd, _mm_setzero_pd, _mm_set_epi64x, _mm_set_epi64x,
16651 _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128):
16653 (_mm_clflush): Don't use return in void function.
16655 * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128,
16656 _mm_castps_pd, _mm_castps_si128, _mm_castsi128_ps, _mm_castsi128_pd):
16657 Use __inline instead of inline.
16659 2005-06-01 Richard Guenther <rguenth@gcc.gnu.org>
16661 * fold-const.c (fold_binary): Fix types in strlen vs.
16662 zero comparison folding.
16664 2005-06-01 Richard Henderson <rth@redhat.com>
16666 * configure.ac (HAVE_AS_JSRDIRECT_RELOCS): New.
16667 * config.in, configure: Rebuild.
16668 * config/alpha/alpha.c (print_operand): Add 'j'.
16669 * alpha.md (divmodsi_internal_er_1): Use it.
16670 (divmoddi_internal_er_1): Likewise.
16672 2005-06-01 Richard Sandiford <rsandifo@redhat.com>
16674 * system.h (TARGET_OPTIONS, TARGET_SWITCHES): Poison.
16675 * opts.h (print_filtered_help): Delete.
16676 * opts.c (handle_option, decode_options): Remove calls to
16678 (print_target_help): New function.
16679 (common_option, print_help): Call print_target_help instead of
16680 display_target_options.
16681 (print_filtered_help): Make static.
16682 * toplev.h (display_target_options, set_target_switch): Delete.
16683 * toplev.c (target_switches, target_options, display_target_options)
16684 (set_target_switch): Delete.
16685 (print_switch_values): Remove handling of TARGET_SWITCHES and
16687 (default_get_pch_validity): Likewise. Only treat target_flags
16688 specially if targetm.check_pch_target_flags is nonnull.
16689 (pch_option_mismatch): New function.
16690 (default_pch_valid_p): Use it. Remove handling of TARGET_SWITCHES
16691 and TARGET_OPTIONS. Only treat target_flags specially if
16692 targetm.check_pch_target_flags is nonnull.
16693 * config/ia64/ia64.c (ia64_override_options): Don't mention
16694 TARGET_OPTIONS in comment.
16695 * config/m68k/m68k-none.h (CC1_SPEC): Likewise.
16696 * doc/invoke.texi: Remove a reference to TARGET_SWITCHES.
16697 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS): Don't mention the
16698 interaction with TARGET_SWITCHES.
16699 (TARGET_@var{featurename}, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
16701 2005-06-01 Richard Sandiford <rsandifo@redhat.com>
16703 * config/sh/sh.c (multcosts): Check sh_multcost rather than
16705 (sh_register_move_cost): Likewise sh_gettrcost and sh_gettrcost_str.
16706 (sh_multcost_str, sh_gettrcost_str, sh_div_str, sh_divsi3_libfunc)
16707 (cut2_workaround_str): Delete.
16708 * config/sh/sh.h (SUBTARGET_OPTIONS, TARGET_OPTIONS)
16709 (TARGET_SH5_CUT2_WORKAROUND, sh_multcost_str, sh_gettrcost_str)
16710 (sh_div_str, sh_divsi3_libfunc, cut2_workaround_str): Delete.
16711 * config/sh/sh.opt (mcut2-workaround, mdiv=, mdivsi3_libfunc=)
16712 (mgettrcost=, multcost=): New options.
16714 2005-06-01 Richard Sandiford <rsandifo@redhat.com>
16716 * opts.h (cl_option_state): New structure.
16717 (get_option_state): Declare.
16718 * opts.c (get_option_state): New function.
16719 * toplev.c (option_affects_pch_p): New function.
16720 (default_get_pch_validity): Store the state of all options for which
16721 option_affects_pch_p returns true.
16722 (default_pch_valid_p): Check the state of those options here.
16723 Only check target_flags separately if targetm.check_pch_target_Flags
16724 is nonnull or if TARGET_SWITCHES is defined.
16726 2005-06-01 Richard Sandiford <rsandifo@redhat.com>
16728 * config/mips/mips-protos.h (mips_use_ins_ext_p): Remove parameter
16731 2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
16733 * modulo-sched.c (undo_generate_reg_moves ): Fix PR 21138.
16735 2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
16737 * gcse.c (compute_transp, load_killed_in_block): Use
16740 2005-06-01 David.Billinghurst <David.Billinghurst@riotinto.com>
16743 * config/mips/mips-protos.h: Declare mips_use_ins_ext_p
16745 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16747 * errors.h (warning, error, fatal, internal_error): Add printf
16749 * genmodes.c (make_vector_mode): Fix format arguments.
16751 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16753 * basic-block.h, bb-reorder.c, c-gimplify.c, config/darwin.c,
16754 config/rs6000/rs6000-c.c, dominance.c, gimple-low.c, gimplify.c,
16755 lambda-code.c, lambda-trans.c, tree-browser.c, tree-cfg.c,
16756 tree-chrec.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
16757 tree-if-conv.c, tree-into-ssa.c, tree-loop-linear.c,
16758 tree-mudflap.c, tree-nomudflap.c, tree-outof-ssa.c,
16759 tree-pretty-print.c, tree-scalar-evolution.c, tree-sra.c,
16760 tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
16761 tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-live.c,
16762 tree-ssa-operands.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
16763 tree-ssa-propagate.c, tree-ssa-sink.c, tree-ssa-threadupdate.c,
16764 tree-ssa-uncprop.c, tree-ssa.c, tree-vect-analyze.c,
16765 tree-vect-transform.c, tree-vectorizer.c, vec.c: Don't include
16766 errors.h and include toplev.h if necessary.
16768 * rtl.c, varray.c: If we're compiling as a GENERATOR_FILE, include
16769 errors.h otherwise include toplev.h.
16771 * Makefile.in: Update dependencies.
16773 2005-06-01 Danny Smith <dannysmith@users.sourceforge.net>
16775 * config/i386/cygming.h (NO_PROFILE_COUNTERS): Define.
16777 2005-05-31 Geoffrey Keating <geoffk@geoffk.org>
16779 * config/rs6000/rs6000.md (sync_boolcshort_internal): New.
16780 * config/rs6000/rs6000.c (rs6000_emit_sync): Shift count must
16781 be complemented for big-endian. Mask for AND must be rotated,
16782 not shifted. Handle short operands with NOT on the memory
16785 2005-05-30 Daniel Berlin <dberlin@dberlin.org>
16787 * c-objc-common.c (c_tree_printer): Check flag before hashtable.
16788 Use DECL_DEBUG_EXPR and SET_DECL_DEBUG_EXPR.
16789 * dwarf2out.c (dwarf2out_var_location): Ditto.
16790 * toplev.c (default_tree_printer): Ditto.
16791 * tree-outof-ssa.c (create_temp): Ditto.
16792 * tree-sra.c (instantiate_element): Ditto.
16793 * var-tracking.c (track_expr_p): Ditto.
16794 * tree.c (struct tree_map): New structure.
16795 (debug_expr_for_decl): New.
16796 (tree_map_eq): New function.
16797 (tree_map_hash): Ditto.
16798 (tree_map_marked_p): Ditto.
16799 (print_debug_expr_statistics): Ditto.
16800 (decl_debug_expr_lookup): Ditto.
16801 (decl_debug_expr_insert): Ditto.
16802 (dump_tree_statistics): Dump debug_expr hashtable stats.
16803 * tree.h (DECL_DEBUG_EXPR): Change
16804 (SET_DECL_DEBUG_EXPR): Add.
16806 2005-06-01 Alan Modra <amodra@bigpond.net.au>
16808 * configure.ac: Add --enable-secureplt.
16809 (HAVE_AS_REL16): Test for R_PPC_REL16 relocs.
16810 * config.in: Regenerate.
16811 * configure: Regenerate.
16812 * config.gcc (powerpc64-*-linux*, powerpc-*-linux*): Add
16813 rs6000/secureplt.h to tm_file when enable_secureplt.
16814 * doc/invoke.texi (msecure-plt, mbss-plt): Document.
16815 * doc/install.texi: Document --enable-targets and --enable-secureplt.
16816 Correct xrefs to "Using the GNU Compiler Collection (GCC)".
16817 * config/rs6000/secureplt.h: New file.
16818 * config/rs6000/sysv4.h (TARGET_SECURE_PLT): Define.
16819 (SUBTARGET_OVERRIDE_OPTIONS): Error if -msecure-plt given without
16821 (CC1_SECURE_PLT_DEFAULT_SPEC): Define.
16822 (CC1_SPEC): Delete duplicate mno-sdata. Invoke cc1_secure_plt_default.
16823 (SUBTARGET_EXTRA_SPECS): Add cc1_secure_plt_default.
16824 * config/rs6000/sysv4.opt (msecure-plt, bss-plt): Add options.
16825 * config/rs6000/rs6000.h (TARGET_SECURE_PLT): Define.
16826 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Handle
16827 TARGET_SECURE_PLT got register load sequence.
16828 (rs6000_emit_prologue): Call rs6000_emit_load_toc_table when
16830 (rs6000_elf_declare_function_name): Don't emit toc address offset
16831 word when TARGET_SECURE_PLT.
16832 * config/rs6000/rs6000.md (elf_high, elf_low): Move past load_toc_*.
16833 (load_toc_v4_PIC_1) Enable for TARGET_SECURE_PLT.
16834 (load_toc_v4_PIC_3b, load_toc_v4_PIC_3c): New insns.
16835 (call, call_value): Mark pic_offset_table_rtx used for sysv pic and
16837 (call_nonlocal_sysv, call_value_nonlocal_sysv, sibcall_nonlocal_sysv,
16838 sibcall_value_nonlocal_sysv): Add 32768 offset when TARGET_SECURE_PLT
16840 * config/rs6000/tramp.asm (trampoline_initial): Use "bcl 20,31".
16841 (__trampoline_setup): Likewise. Init r30 before plt call.
16843 2005-05-31 DJ Delorie <dj@redhat.com>
16845 * expr.c (convert_move): When a partial_int requires multiple
16846 conversion steps, make sure successive steps convert the
16847 intermediate value, not the original value.
16849 * expmed.c (expand_mult): Convert partial_int multiplies to
16850 shift/add combinations too.
16852 * genmodes.c (mode_data): Add wider_2x.
16853 (calc_wider_mode): Calculate twice-wider mode too.
16854 (emit_mode_wider): Emit twice-wider mode too.
16855 * machmode.h (mode_2xwider, GET_MODE_2XWIDER_MODE): New.
16856 * expr.c (expand_expr_real_1): Use it for expanding
16859 2005-05-31 Zdenek Dvorak <dvorakz@suse.cz>
16861 PR tree-optimization/21817
16862 * tree-ssa-loop-im.c (for_each_index): Handle VECTOR_CST.
16864 2005-05-31 Pat Haugen <pthaugen@us.ibm.com>
16866 * loop.c (loop_invariant_p, valid_initial_value_p): Revert last
16869 2005-05-31 Andrew Pinski <pinskia@physics.uc.edu>
16871 PR middle-end/20931
16872 PR middle-end/20946
16873 * fold-const.c (fold_checksum_tree): Copy types also if
16874 TYPE_CONTAINS_PLACEHOLDER_INTERNAL is set.
16875 Don't call fold_checksum_tree for TREE_LIST's TREE_CHAIN
16877 Tail recurse TREE_LIST's TREE_CHAIN.
16879 2005-05-31 Andrew Pinski <pinskia@physics.uc.edu>
16882 * tree-ssa-copy.c (dump_copy_of): Create a bitmap and don't visit a
16883 SSA_NAME twice and cause the loop to become finite. Remove the test
16886 2005-05-31 Andrew Pinski <pinskia@physics.uc.edu>
16888 * tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional
16891 2005-05-31 Richard Sandiford <rsandifo@redhat.com>
16893 * doc/tm.texi (TARGET_GET_PCH_VALIDITY, TARGET_PCH_VALID_P): Tweak
16894 the documentation to make it more future-proof.
16895 (TARGET_CHECK_PCH_TARGET_FLAGS): Document this new hook.
16896 * target.h (gcc_target): Add check_pch_target_flags.
16897 * target-def.h (TARGET_CHECK_PCH_TARGET_FLAGS): New macro.
16898 (TARGET_INITIALIZER): Include it.
16899 * toplev.c (default_pch_valid_p): Use targetm.check_pch_target_flags.
16900 * config/sh/sh-protos.h (sh_pch_valid_p): Delete.
16901 * config/sh/sh.c (TARGET_PCH_VALID_P, sh_pch_valid_p): Delete.
16902 (sh_check_pch_target_flags): New function.
16903 (TARGET_CHECK_PCH_TARGET_FLAGS): Override default.
16905 2005-05-31 Richard Guenther <rguenth@gcc.gnu.org>
16907 * fold-const.c (extract_array_ref): Handle more cases,
16908 do some useful canonicalization of the base.
16909 (fold_binary): Explicitly deal with arrays of zero-sized
16910 structures during folding of &a[i] == &a[j].
16912 2005-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
16914 * doc/install.texi (sparc-sun-solaris2*): Update note
16915 about Sun bug 4910101.
16916 (sparc-sun-solaris2.7): Document bootstrap
16917 failure with Sun WorkShop 6 99/08/18 as.
16919 2005-05-30 Pat Haugen <pthaugen@us.ibm.com>
16921 * loop.c (loop_invariant_p, valid_initial_value_p): Use
16922 regs_invalidated_by_call instead of call_used_regs.
16924 2005-05-30 Paolo Carlini <pcarlini@suse.de>
16926 PR middle-end/21743
16927 * builtins.def (BUILT_IN_CLOG, BUILT_IN_CLOGF, BUILT_IN_CLOGL):
16929 * doc/extend.texi: Add clog, clogf, clogl.
16931 2005-05-30 H.J. Lu <hongjiu.lu@intel.com>
16933 PR middle-end/20303
16934 * c-pragma.c: Include "vec.h".
16935 (handle_pragma_visibility): Use VEC.
16937 * doc/invoke.texi: Remove the nested visibility push limit.
16939 2005-05-30 Roger Sayle <roger@eyesopen.com>
16941 PR rtl-optimization/15422
16942 * reg-stack.c (starting_stack_p): New static global.
16943 (straighten_stack): Delete prototype. Change to update the stack
16944 before the current insn.
16945 (subst_stack_regs): Update call to straighten stack.
16946 (emit_swap_insn): Delete prototype. For the first insn in a
16947 basic block, update stack_in instead of emitting a real swap.
16948 (change_stack): When changing the stack before the first insn
16949 in a basic block, update stack_in instead of emitting real code.
16950 (compensate_edges): Clear starting_stack_p during compensation.
16951 (convert_regs_1): Keep track of starting_stack_p whilst processing
16954 2005-05-30 Kazu Hirata <kazu@cs.umass.edu>
16956 * tree-ssa-ccp.c (const_val): Make it static.
16958 2005-05-29 Geoffrey Keating <geoffk@apple.com>
16961 * config/rs6000/rs6000.md: Remove stray TARGET_32BIT from
16962 pattern involving `:P'.
16964 * Makefile.in (install-cpp): Depend on installdirs.
16966 2005-05-30 Kazu Hirata <kazu@cs.umass.edu>
16968 * tree-outof-ssa.c (_elim_graph): Change the type of edge_list
16970 (new_elim_graph, clear_elim_graph, delete_elim_graph,
16971 elim_graph_add_edge, elim_graph_remove_succ_edge,
16972 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED): Use VEC
16975 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
16977 * cgraphunit.c, ipa-inline.c, loop-iv.c, modulo-sched.c,
16978 opts.c, postreload-gcse.c, tree-browser.def, tree-eh.c,
16979 tree-ssa-copyrename.c, tree-vect-analyze.c: Fix typos and
16980 follow spelling conventions in error/dump messages.
16982 2005-05-29 Roger Sayle <roger@eyesopen.com>
16983 Richard Henderson <rth@redhat.com>
16985 * ifcvt.c (noce_emit_move_insn): Construct a SET pattern directly
16986 if the RHS isn't suitable for calling emit_move_insn.
16988 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
16990 * tree-ssa-ccp.c (ccp_fold): Return immediately after calling
16991 fold_unary and fold_binary.
16993 2005-05-29 Roger Sayle <roger@eyesopen.com>
16995 * reg-stack.c (propagate_stack): Always copy the source stack to
16996 the destination. This routine is now only called when this is safe.
16997 (better_edge): New function split out from convert_regs_1 to
16998 determine which of two edges is better to propagate across.
16999 (convert_regs_1): We need only search for a best edge if the
17000 stack layout hasn't been defined yet. Use better_edge to help
17001 find beste. No longer traverse unnecessary edges.
17003 2005-05-29 Keith Besaw <kbesaw@us.ibm.com>
17005 * tree-ssa-alias.c (new_type_alias): New procedure to
17006 create a type memory tag for a pointer with a may-alias
17007 set determined from a variable declaration.
17008 * tree-flow.h: export declaration of new_type_alias
17009 * tree-optimize.c (init_tree_optimization_passes): document
17010 that pass_may_alias cannot be called after pass_vectorize.
17011 * tree-vect-transform (vect_create_data_ref_ptr): Call
17012 new_type_alias when an type memory tag isn't available
17014 (vectorizable_store): Use copy_virtual_operands to update
17015 virtual defs in place (so that loop_version can be called).
17016 Call mark_for_renaming for the virtual defs in case peeling
17017 is done and virtual uses outside the loop need to be updated.
17019 2005-05-29 Dorit Naishlos <dorit@il.ibm.com>
17021 PR tree-optimization/21639
17022 * tree-complex.c (pass_lower_vector_s): Remove TODO_ggc_collect.
17024 2005-05-29 Jan Hubicka <jh@suse.cz>
17026 PR tree-optimization/21562
17027 * cfgexpand.c (construct_init_block): Deal properly with the case
17028 of entry edge not pointing to very first basic block.
17030 2005-05-28 Kazu Hirata <kazu@cs.umass.edu>
17032 * tree-ssa-ccp.c (ccp_fold): Remove code that produces
17033 non-gimple min invariant.
17035 * Makefile.in (OBJS-common): Add tree-cfgcleanup.o.
17036 * tree-flow.h: Add prototypes for start_recording_case_labels
17037 and end_recording_case_labels.
17038 * tree-cfg.c (start_recording_case_labels,
17039 end_recording_case_labels): Export.
17040 (cleanup_tree_cfg_loop, modified_noreturn_calls,
17041 cleanup_control_flow, cleanup_control_expr_graph,
17042 remove_fallthru_edge, phi_alternatives_equal,
17043 tree_forwarder_block_p, has_abnormal_incoming_edge_p,
17044 remove_forwarder_block, cleanup_forwarder_blocks,
17045 remove_forwarder_block_with_phi, merge_phi_nodes,
17046 gate_merge_phi, pass_merge_phi): Move to ...
17047 * tree-cfgcleanup.c: ... here.
17049 * basic-block.h: Remove forward declaration of bb_ann_d.
17051 2005-05-28 Jan Hubicka <jh@suse.cz>
17053 * tree-ssa-threadupdate.c: (create_edge_and_update_destination_phis):
17055 * value-prof.c (tree_divmod_fixed_value_transform): Be more verbose in
17057 (tree_mod_subtract): Fix profile updating code.
17058 (tree_divmod_values_to_profile): Do not produce useless value profilers
17061 2005-05-28 Kazu Hirata <kazu@cs.umass.edu>
17063 * tree-ssa-dom.c (vrp_element_p): Define.
17064 (vrp_hash_elt): Change the type of records to
17065 VEC(vrp_element_p,heap).
17067 (tree_ssa_dominator_optimize): Pass vrp_free to htab_create.
17068 Update uses of VRP records.
17069 (simplify_cond_and_lookup_avail_expr, record_range): Update
17070 uses of VRP records.
17072 * tree-inline.c (cfun_stack): Change the type to
17073 VEC(function_p,heap).
17074 (push_cfun, pop_cfun): Use VEC instead of VARRAY.
17076 2005-05-27 Ian Lance Taylor <ian@airs.com>
17078 * c-decl.c (add_stmt): Add C frontend specific version.
17079 (stmts_are_full_exprs_p): Remove.
17080 * c-common.h (STMT_IS_FULL_EXPR_P): Remove.
17081 (stmts_are_full_exprs_p): Don't declare.
17082 * c-semantics.c (add_stmt): Remove.
17084 2005-05-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17086 * config/mips/mips-protos.h (mips_declare_object): Add printf
17088 * config/mips/mips.c (mips_declare_object_name): Fix format
17091 2005-05-27 Roger Sayle <roger@eyesopen.com>
17093 * reg-stack.c (compensate_edge): Remove original prototype.
17094 (propagate_stack): New function to copy the stack layout
17095 at the start of a basic block from the layout at the end of
17096 one of its predecessors.
17097 (compensate_edge): Assume that both source and destination
17098 blocks have already had their stack layouts defined.
17099 (compensate_edges): Traverse all non-entry edges in the CFG
17100 and call compensate_edge on each in turn.
17101 (convert_regs_1): Change return type to void. Call
17102 propagate_stack instead of compensate_edge.
17103 (convert_regs_2): Change return type to void. Update call
17104 to convert_regs_1 to ignore the (now void) return value.
17105 (convert_regs): Update calls to convert_regs_2 to ignore
17106 the (now void) return value. After all the basic blocks have
17107 been processed, call compensate_edges to actually emit new
17109 (reg_to_stack): Initialize the aux info for each basic block
17110 with FOR_EACH_BB instead of which FOR_EACH_BB_REVERSE.
17112 2005-05-28 Jan Hubicka <jh@suse.cz>
17114 * except.c (can_throw_internal_1, can_throw_external_1): Add
17115 "is_resx" argument.
17116 (can_throw_external, can_throw_internal): Bring into sync wrt
17118 * except.h (can_throw_internal_1, can_throw_external_1): Update
17120 * tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
17121 Deal properly with resx.
17123 2005-05-27 Kazu Hirata <kazu@cs.umass.edu>
17125 * basic-block.h (basic_block_def): Add phi_nodes and
17126 predictions. Remove tree_annotations.
17127 * predict.c (tree_predicted_by_p, tree_predict_edge,
17128 combine_predictions_for_bb): Adjust references to predictions.
17129 * tree-cfg.c (init_empty_tree_cfg, create_bb): Don't call
17130 create_block_annotation.
17131 (create_block_annotation, free_blocks_annotatios,
17132 clear_blocks_annotations): Remove.
17133 (dump_cfg_stats): Don't print out the memory spent on
17135 (delete_tree_cfg_annotations): Don't call free_blocks_annotations.
17136 * tree-flow-inline.h (bb_ann): Remove.
17137 (phi_nodes, set_phi_nodes): Update references to phi_nodes.
17138 * tree-flow.h (bb_ann_d): Remove.
17139 * tree-if-conv.c (process_phi_nodes): Update a reference to
17141 * tree-phinodes.c (reserve_phi_args_for_new_edge,
17142 create_phi_node, remove_phi_node): Likewise.
17143 * tree-pretty-print.c (dump_generic_bb_buff): Don't call bb_ann.
17144 * tree-ssa-dom.c (threaded_blocks): New.
17145 (tree_ssa_dominator_optimize): Initialize, clear, and free
17146 threaded_blocks. Update a call to thread_through_all_blocks.
17147 (thread_across_edge): Use threaded_blocks instead of setting
17148 incoming_edge_threaded.
17149 * tree-ssa-threadupdate.c (threaded_through_all_blocks): Take
17150 a bitmap of blocks that are threaded through.
17151 * tree.h: Move the prototype of threaded_through_blocks to
17154 * domwalk.c (walk_dominator_tree, init_walk_dominator_tree,
17155 fini_walk_dominator_tree): Use VEC instead of VARRAY.
17156 * domwalk.h (dom_walk_data): Change the type of
17157 block_data_stack and free_block_data to VEC(void_p,heap)*.
17158 * tree-ssa-dse.c (dse_initialize_block_local_data,
17159 dse_optimize_stmt, dse_record_phis, dse_finalize_block): Use
17160 VEC instead of VARRAY.
17162 2005-05-27 Jan Hubicka <jh@suse.cz>
17164 * cgraph.c: Include tree-gimple.h
17165 (cgraph_edge): Rename expr to stmt.
17166 (cgraph_create_edge): Likewise.
17167 (cgraph_clone_node): Likewise.
17168 * cgraph.h (cgraph_node): Use call_stmt instead of call_expr.
17169 * cgraphunit.c (record_call_1): Rename to ...
17170 (record_reference): ... this one; do not build edges.
17171 (cgraph_varpool_analyze_pending_decls): Call record_reference directly.
17172 (current_basic_block): Kill.
17173 (cgraph_create_edges): Rewrite to work on gimple statements nicely.
17174 (verify_cgraph_node): Likewise.
17175 * tree-inline.c (copy_body_r): Do not mess up with cgraph edges.
17176 (copy_bb): Mess up with cgraph edges here; simplify EH handling.
17177 (copy_edges_for_bb): Simplify EH handling.
17178 (expand_call_inline): Pass statement to cgraph_edge and
17179 cgraph_create_edge.
17181 2005-05-27 Richard Guenther <rguenth@gcc.gnu.org>
17183 * tree-inline.c (copy_body_r): Manually fold *& to deal
17184 with ADDR_EXPRs with mismatched types for now.
17186 * gimplify.c (fold_indirect_ref_rhs): New function.
17187 (gimplify_modify_expr_rhs): Use it instead of pessimistic
17190 * fold-const.c (fold_indirect_ref_1): Add type argument;
17191 make sure the resulting expression is of this type.
17192 (build_fold_indirect_ref, fold_indirect_ref): Adjust callers.
17194 2005-05-27 Kazu Hirata <kazu@cs.umass.edu>
17196 PR tree-optimization/21658
17197 * tree-ssa-ccp.c (ccp_fold): Call fold_binary instead of
17198 fold_binary_to_constant. Likewise, call fold_unary instead of
17199 fold_unary_to_constant.
17201 2005-05-27 Nathan Sidwell <nathan@codesourcery.com>
17203 * vec.h: Implement integral type vector specialization.
17204 (VEC_T): Define a non-GTY structure.
17205 (VEC_T_GTY): Define a GTY structure.
17206 (VEC_TA): Rename to ...
17207 (VEC_TA_GTY): ... here.
17208 (DEF_VEC_I, DEF_VEC_ALLOC_I): New.
17209 (DEF_VEC_P, DEF_VEC_ALLOC_P): Adjust.
17210 (DEF_VEC_FUNC_P, DEF_VEC_ALLOC_FUNC_P): New, broken out of
17211 DEF_VEC_P and DEF_VEC_ALLOC_P.
17212 (DEF_VEC_O, DEF_VEC_ALLOC_O): Adjust.
17213 (DEF_VEC_FUNC_O, DEF_VEC_ALLOC_FUNC_O): New, broken out of
17214 DEF_VEC_O and DEF_VEC_ALLOC_O.
17215 * global.c: Use DEF_VEC_I, DEF_VEC_ALLOC_I.
17216 * lambda-code.c: Likewise.
17217 * tree-into-ssa.c: Likewise.
17218 * tree-ssa-live.c: Likewise.
17220 2005-05-27 Kazu Hirata <kazu@cs.umass.edu>
17222 * tree-into-ssa.c (update_ssa): Ensure that the operand cache
17224 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
17225 update_stmt_if_modified before calling update_ssa.
17227 2005-05-27 Ralf Corsepius <ralf.corsepius@rtems.org>
17229 * config/rs6000/t-rtems: Remove roe multilib variant.
17231 2005-05-26 Roger Sayle <roger@eyesopen.com>
17233 PR tree-optimization/9814
17234 * ifcvt.c (noce_emit_move_insn): If we fail to recognize the move
17235 instruction, add the necessary clobbers by re-expanding the RTL
17236 for arithmetic operations via optab.c's expand_unop/expand_binop.
17237 (noce_try_bitop): New function to optimize bit manipulation idioms
17238 of the form "if (x & C) x = x op C" and "if (!(x & C) x = x op C".
17239 (noce_process_if_block): Call noce_try_bitop.
17241 2005-05-26 Roger Sayle <roger@eyesopen.com>
17243 * reg-stack.c (convert_regs_entry, convert_regs_exit,
17244 convert_regs_1, convert_regs_2, convert_regs): Delete prototypes.
17245 (reg_to_stack): Move to end of the file. Initialize the per
17246 basic block information here, instead of...
17247 (convert_regs_entry): Here.
17248 (convert_regs): Change unused return type to void.
17250 2005-05-27 Kazu Hirata <kazu@cs.umass.edu>
17252 * c-pch.c, timevar.c, timevar.h, unwind-compat.c,
17253 unwind-dw2-fde-compat.c, unwind-dw2-fde.c, config/mmix/mmix.h,
17254 config/rs6000/eabispe.h, config/rs6000/lynx.h,
17255 config/sh/elf.h, config/sh/symbian-pre.h,
17256 config/sparc/sparc-protos.h: Update copyright.
17258 2005-05-26 Mike Stump <mrs@apple.com>
17260 * darwin.h (ASM_OUTPUT_LABELREF): Handle quoted non-lazy pointers
17263 2005-05-26 Richard Guenther <rguenth@gcc.gnu.org>
17265 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
17266 See through ADDR_EXPR in finding place to propagate into.
17268 2005-05-26 Kazu Hirata <kazu@cs.umass.edu>
17270 * c-common.c, c-parser.c, cfgbuild.c, cfghooks.c, cfghooks.h,
17271 cfgrtl.c, cgraphunit.c, ddg.c, expr.h, gcse.c, ggc-page.c,
17272 ggc-zone.c, gimplify.c, ipa-inline.c, longlong.h, targhooks.c,
17273 tree-flow-inline.h, tree-pass.h, tree-ssa-dse.c,
17274 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
17275 tree-ssa-operands.c, tree-vect-analyze.c,
17276 tree-vect-transform.c, tree-vectorizer.c, tree.c,
17277 config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
17278 config/frv/frv.md, config/i386/i386.c, config/i386/sse.md,
17279 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
17280 config/mcore/mcore.c, config/mips/mips.c, config/mips/mips.md,
17281 config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
17282 config/rs6000/rs6000.h, config/sh/sh.c, config/sh/sh.md,
17283 config/sh/ushmedia.h, config/sparc/sparc.c,
17284 config/sparc/sparc.md, config/stormy16/stormy-abi: Fix comment
17285 typos. Follow spelling conventions.
17286 * doc/invoke.texi, doc/tm.texi, doc/tree-ssa.texi: Fix typos.
17287 Follow spelling conventions.
17289 2005-05-26 David Ung <davidu@mips.com>
17291 * config/mips/mips.c (mips_use_ins_ext_p): New helper function
17292 that determines whether the MIPS32/64 R2 ext/ins should be used.
17293 * config/mips/mips.h (ISA_HAS_EXT_INS): New macro.
17294 * config/mips/mips.md (extzv): Changed predicate for operand to
17295 nonimmediate_operand. Add code to generate insn patterns for
17296 extzvsi and extzvdi.
17297 (extzv<mode>): New pattern to match mips32/64 r2 ext insn.
17298 (insv): Similarly for insertion.
17299 (insv<mode>): Similarly.
17301 2005-05-26 Paolo Bonzini <bonzini@gnu.org>
17303 * simplify-rtx.c (avoid_constant_pool_reference): Support
17304 offsetted addresses in the constant pool.
17306 2005-05-26 Paolo Bonzini <bonzini@gnu.org>
17308 * df.h (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
17309 * df.c (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
17311 2005-05-26 Jakub Jelinek <jakub@redhat.com>
17314 * reg-stack.c (swap_rtx_condition): Don't crash if %ax user was not
17315 found in the basic block and last insn in the basic block is not
17316 INSN_P. Remove explicit unspec numbers that are no longer valid
17319 2005-05-26 Paolo Bonzini <bonzini@gnu.org>
17321 * tree-vect-transform.c (vectorizable_operation): Try word_mode
17322 vectorization if UNITS_PER_WORD == UNITS_PER_SIMD_WORD, even
17323 if a vector mode is available.
17325 2005-05-25 Roger Sayle <roger@eyesopen.com>
17327 PR middle-end/21709
17328 * fold-const.c (const_binop): Check for division by zero during
17331 2005-05-26 Ian Lance Taylor <ian@airs.com>
17333 * reload1.c (verify_initial_elim_offsets): Add braces to avoid
17334 having a declaration after a statement.
17336 2005-05-26 Richard Sandiford <rsandifo@redhat.com>
17338 * opt-functions.awk (var_type): New function.
17339 (var_set): Use CLVC_STRING if var_type returns "const char *".
17340 * opth-gen.awk: Use var_type to find out the types of variables.
17341 Don't print comments above each "extern" definition.
17342 * optc-gen.awk: Use var_type in the same way.
17343 * opts.h (cl_var_cond): Rename to...
17344 (cl_var_type): ...this. Add CLVC_STRING.
17345 (cl_option): Make "flag_var" a "void *" pointer. Replace "var_cond"
17347 * opts.c (handle_option, option_enabled): Update after above name
17348 change. Cast flag_var before using it. Handle CLVC_STRING.
17350 * config/alpha/alpha.h (alpha_tls_size): Delete.
17351 * config/alpha/alpha.c (alpha_tls_size, alpha_cpu_string)
17352 (alpha_tune_string, alpha_tp_string, alpha_fprm_string)
17353 (alpha_fptm_string, alpha_mlat_string): Delete.
17354 (alpha_handle_option): Don't set the above variables here. Use the
17355 integer argument to check the validity of -mtls-size=.
17356 * config/alpha/alpha.opt (mcpu=, mtune=, mfp-rounding-mode=)
17357 (mfp-trap-mode=, mtrap-precision=, mmemory-latency=): Add Var()s.
17358 (mtls-size=): Likewise. Convert to a UInteger and initialize the
17361 * config/arc/arc.c (arc_cpu_string, arc_text_string)
17362 (arc_data_string, arc_rodata_string): Delete.
17363 (arc_handle_option): Don't set the above variables here.
17364 * config/arc/arc.opt (mcpu=, mtext=, mdata=, mrodata=): Add Var()s
17365 and initialize them.
17367 * config/arm/arm.c (target_fpu_name, target_fpe_name)
17368 (target_float_abi_name, target_abi_name, structure_size_string)
17369 (arm_pic_register_string): Delete.
17370 (arm_handle_option): Don't set the above variables here, except
17371 in the handling of -mhard-float and -msoft-float.
17372 * config/arm/arm.opt (mabi=, mfloat-abi=, mfp=, mfpe=, mfpu=)
17373 (mpic-register=, mstructure-size-boundary=): Add Var()s.
17375 * config/avr/avr.c (avr_init_stack, avr_mcu_name, TARGET_HANDLE_OPTION)
17376 (avr_handle_option): Delete.
17377 * config/avr/avr.opt (mmcu=, minit-stack=): Add Var()s and initialize
17380 * config/bfin/bfin.c (bfin_library_id): Delete.
17381 (bfin_handle_option): Don't set it.
17382 * config/bfin/bfin.opt (mshared-library-id=): Add Var().
17384 * config/c4x/c4x.h (c4x_rpts_cycles): Delete.
17385 * config/c4x/c4x.c (c4x_rpts_cycles): Delete.
17386 (c4x_handle_option): Don't set c4x_rpts_cycles here.
17387 * config/c4x/c4x.opt (mrpts=): Add Var().
17389 * config/cris/aout.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't set
17390 cris_elinux_stacksize_str here.
17391 * config/cris/aout.opt (melinux-stacksize=): Add Var().
17392 * config/cris/cris.h (cris_max_stackframe_str, cris_cpu_str)
17393 (cris_tune_str, cris_elinux_stacksize_str): Delete.
17394 * config/cris/cris.c (cris_max_stackframe_str, cris_cpu_str)
17395 (cris_tune_str, cris_elinux_stacksize_str): Delete.
17396 (cris_handle_option): Don't set the above variables here.
17397 * config/cris/cris.opt (mcpu=, march=, mtune=, mmax-stackframe=)
17398 (max-stackframe=): Add Var()s.
17400 * config/i386/i386.h (ix86_tune_string, ix86_arch_string): Delete.
17401 * config/i386/i386.c (ix86_cmodel_string, ix86_asm_string)
17402 (ix86_tls_dialect_string, ix86_tune_string, ix86_arch_string)
17403 (ix86_fpmath_string, ix86_regparm_string, ix86_align_loops_string)
17404 (ix86_align_jumps_string, ix86_preferred_stack_boundary_string)
17405 (ix86_branch_cost_string, ix86_align_funcs_string): Delete.
17406 (ix86_handle_option): Don't set the above variables here.
17407 * config/i386/i386.opt (malign-functions=, malign-jumps=)
17408 (malign-loops=, march=, masm=, mbranch-cost=, mcmodel=, mfpmath=)
17409 (mpreferred-stack-boundary=, mregparm=, mtls-dialect=, mtune=): Add
17412 * config/ia64/ia64.h (ia64_tls_size): Delete.
17413 * config/ia64/ia64.c (ia64_tls_size): Delete.
17414 (ia64_handle_option): Treat -mtls-size= as a UInteger option,
17415 reading the integer argument from the "value" parameter. Don't
17416 set ia64_tls_size here.
17417 * config/ia64/ia64.opt (mtls-size=): Turn into a UInteger option.
17418 Add Var() and Init().
17420 * config/m32r/m32r.h (m32r_cache_flush_func): Delete.
17421 (m32r_cache_flush_trap): Delete.
17422 * config/m32r/m32r.c (m32r_cache_flush_func): Delete.
17423 (m32r_cache_flush_trap): Delete.
17424 (m32r_handle_option): Don't set the above variables when handling
17425 -mflush-func= and -mflush-trap=.
17426 * config/m32r/m32r.opt (-mflush-func=, -mflush-trap=): Add Var()s
17429 * config/mips/mips.h (mips_cache_flush_func): Delete.
17430 * config/mips/mips.c (mips_arch_string, mips_tune_string)
17431 (mips_cache_flush_func): Delete.
17432 (mips_handle_option): Don't set the above variables when handling
17433 -march=, -mtune= and -mflush-func=.
17434 * config/mips/mips.opt (march=, mflush-func=, mtune=): Add Var()s.
17436 * config/s390/s390.c (s390_arch_string): Delete.
17437 (s390_handle_option): Don't set it here.
17438 * config/s390/s390.opt (march=): Add Var().
17440 * config/sparc/sparc.h (sparc_cmodel_string): Delete.
17441 * config/sparc/sparc.c (sparc_cmodel_string): Delete.
17442 (sparc_handle_option): Don't set it here.
17443 * config/sparc/sparc.opt (mcmodel=): Add Var().
17445 2005-05-25 Roger Sayle <roger@eyesopen.com>
17447 * convert.c (convert_to_integer) <POINTER_TYPE>: Avoid recursive
17448 call to convert_to_integer by building the NOP_EXPR directly.
17450 2005-05-25 Richard Sandiford <rsandifo@redhat.com>
17452 * config/rs6000/rs6000.opt (mprioritize-restricted-insns=): Fix typo.
17454 2005-05-25 Daniel Berlin <dberlin@dberlin.org>
17455 Jeff Law <law@redhat.com>
17457 * tree-cfg.c (verify_expr, case ADDR_EXPR): Verify invariant,
17458 constant and side_effects of the ADDR_EXPR are consistent.
17460 * tree-nested.c (convert_local_reference): Set CURRENT_FUNCTION_DECL
17461 appropriately around calls to recompute_tree_invarant_for_addr_expr.
17463 2005-05-25 Ulrich Weigand <uweigand@de.ibm.com>
17465 * config/s390/s390.c (GP_ARG_NUM_REG, FP_ARG_NUM_REG): New defines.
17466 (s390_function_arg, s390_gimplify_va_arg): Use them.
17467 (s390_register_info): Save only required subset of argument
17468 registers into save area for va_list.
17469 (s390_va_start): Initialize only required elements of va_list struct.
17470 (s390_build_builtin_va_list): Set va_list_[gf]pr_counter_field.
17472 2005-05-25 Ulrich Weigand <uweigand@de.ibm.com>
17474 * reload1.c (verify_initial_elim_offsets): Return boolean status
17475 instead of aborting.
17476 (reload): Adapt verify_initial_elim_offsets call site. Restart
17477 main loop if some initial elimination offsets changed.
17479 2005-05-25 Adam Nemet <anemet@lnxw.com>
17481 * config/rs6000/lynx.h (CC1_SPEC): Use -maix-struct-return instead
17482 of -mno-svr4-struct-return.
17484 2005-05-25 Daniel Berlin <dberlin@dberlin.org>
17486 Fix PR tree-optimization/21705
17488 * tree-ssa-pre.c (in_fre): New static variable.
17489 (create_value_expr_from): Recursively value number reference ops
17491 (can_value_number_call): Temporary restrict only exists for
17494 2005-05-25 Kazu Hirata <kazu@cs.umass.edu>
17496 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Replace
17497 sizeof (bitmap *) with sizeof (bitmap).
17499 2005-05-25 Daniel Berlin <dberlin@dberlin.org>
17501 * lambda-code.c (perfect_nestify): Call update_stmt on the exit
17504 2005-05-25 Adrian Straetling <straetling@de.ibm.com>
17506 * config/s390/s390.c (TARGET_INSN_VALID_WITHIN_DOLOOP): Set to
17507 hook_bool_rtx_true.
17509 2005-05-25 Jan Hubicka <jh@suse.cz>
17511 * Makefile.in (ipa-inline.o): Add COEVERAGE_H dependency.
17512 * cgraph.c (cgraph_create_node): Reset estimated_growth.
17513 * cgraph.h (cgraph_global_info): Add estimated_growth.
17514 * ipa-inline.c: Include coverage.h
17515 (max_insns, max_count): New static variables.
17516 (cgraph_estimate_size_after_inlining): Cache the result.
17517 (cgraph_estimate_growth):
17518 * passes.c (rest_of_clean_state): Kill coverage_end_function.
17519 * timevar.def (TV_INLINE_HEURISTICS): New timevar.
17520 * tree-optimize.c (init_tree_optimization_passes): Move profiling before
17522 (ipa_passes): Initialize bitmaps.
17524 2005-05-25 Adrian Straetling <straetling@de.ibm.com>
17526 * loop-doloop.c: Include "target.h".
17527 (doloop_valid_p): Move tests to function in targhooks.c.
17528 * target.h (struct gcc_target): New target hook
17529 "insn_valid_within_doloop".
17530 * target-def.h: Define default value for "insn_valid_within_doloop".
17531 (TARGET_INITIALIZER): Insert new target hook into initializer.
17532 * targhooks.c (default_insn_valid_within_doloop): New function.
17533 * targhooks.h (default_insn_valid_within_doloop): Declare.
17534 * hooks.c (hook_bool_rtx_true): New function.
17535 * hooks.h (hook_bool_rtx_true): Declare.
17536 * doc/tm.texi: Add documentation for new target hook.
17538 2005-05-25 Eric Botcazou <ebotcazou@libertysurf.fr>
17541 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): New macro
17542 * config/sparc/sparc-protos.h (tls_symbolic_operand): Delete.
17543 (sparc_tls_referenced_p): New prototype.
17544 * config/sparc/sparc.c (tls_symbolic_operand): Delete.
17545 (sparc_expand_move): Look for TLS addresses with constant offsets.
17546 (legitimate_constant_p): Use SPARC_SYMBOL_REF_TLS_P instead of
17547 tls_symbolic_operand.
17548 (legitimate_pic_operand_p): Likewise.
17549 (legitimate_address_p): Likewise.
17550 (legitimize_address): Likewise.
17551 (sparc_tls_symbol_ref_1): New function.
17552 (sparc_tls_referenced_p): New function.
17553 * config/sparc/predicates.md (tgd_symbolic_operand): Use
17554 SYMBOL_REF_TLS_MODEL instead of tls_symbolic_operand.
17555 (tld_symbolic_operand): Likewise.
17556 (tie_symbolic_operand): Likewise.
17557 (tle_symbolic_operand): Likewise.
17559 2005-05-24 DJ Delorie <dj@redhat.com>
17561 * common.opt (-Wattributes): New. Default true.
17562 * doc/invoke.texi (-Wno-attributes): Document.
17564 * attribs.c (decl_attributes): Move warning control from if() to
17566 * c-common.c (handle_packed_attribute): Likewise.
17567 (handle_nocommon_attribute): Likewise.
17568 (handle_common_attribute): Likewise.
17569 (handle_noreturn_attribute): Likewise.
17570 (handle_noinline_attribute): Likewise.
17571 (handle_always_inline_attribute): Likewise.
17572 (handle_used_attribute): Likewise.
17573 (handle_unused_attribute): Likewise.
17574 (handle_const_attribute): Likewise.
17575 (handle_transparent_union_attribute): Likewise.
17576 (handle_constructor_attribute): Likewise.
17577 (handle_destructor_attribute): Likewise.
17578 (handle_mode_attribute): Likewise.
17579 (handle_alias_attribute): Likewise.
17580 (handle_visibility_attribute): Likewise.
17581 (handle_tls_model_attribute): Likewise.
17582 (handle_malloc_attribute): Likewise.
17583 (handle_returns_twice_attribute): Likewise.
17584 (handle_pure_attribute): Likewise.
17585 (handle_deprecated_attribute): Likewise.
17586 (handle_vector_size_attribute): Likewise.
17587 (handle_nothrow_attribute): Likewise.
17588 (handle_cleanup_attribute): Likewise.
17589 (handle_warn_unused_result_attribute): Likewise.
17590 (handle_sentinel_attribute): Likewise.
17591 * c-decl.c (diagnose_mismatched_decls): Likewise.
17592 (start_decl): Likewise.
17593 (grokdeclarator): Likewise.
17594 (start_function): Likewise.
17595 * c-format.c (check_function_format): Likewise.
17596 * stor-layout.c (place_field): Likewise.
17597 (finalize_record_size): Likewise.
17598 * tree.c (handle_dll_attribute)): Likewise.
17599 * varasm.c (default_assemble_visibility): Likewise.
17600 * config/darwin.c (darwin_handle_weak_import_attribute): Likewise.
17601 (darwin_assemble_visibility): Likewise.
17602 * config/arc/arc.c (arc_handle_interrupt_attribute): Likewise.
17603 * config/arm/arm.c (arm_handle_fndecl_attribute): Likewise.
17604 (arm_handle_isr_attribute): Likewise.
17605 * config/avr/avr.c (avr_handle_progmem_attribute): Likewise.
17606 (avr_handle_fndecl_attribute): Likewise.
17607 * config/bfin/bfin.c (handle_int_attribute): Likewise.
17608 * config/c4x/c4x.c (c4x_handle_fntype_attribute): Likewise.
17609 * config/h8300/h8300.c (h8300_handle_fndecl_attribute): Likewise.
17610 (h8300_handle_eightbit_data_attribute): Likewise.
17611 (h8300_handle_tiny_data_attribute): Likewise.
17612 * config/i386/i386.c (ix86_handle_cdecl_attribute): Likewise.
17613 (ix86_handle_regparm_attribute): Likewise.
17614 (ix86_handle_struct_attribute): Likewise.
17615 * config/i386/winnt.c (ix86_handle_shared_attribute): Likewise.
17616 (i386_pe_encode_section_info): Likewise.
17617 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
17618 * config/ip2k/ip2k.c (ip2k_handle_progmem_attribute): Likewise.
17619 (ip2k_handle_fndecl_attribute): Likewise.
17620 * config/m32r/m32r.c (m32r_handle_model_attribute): Likewise.
17621 * config/m68hc11/m68hc11 (m68hc11_handle_page0_attribute): Likewise.
17622 (m68hc11_handle_fntype_attribute): Likewise.
17623 (m68hc11_encode_section_info): Likewise.
17624 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
17625 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
17626 * config/ns32k/ns32k.c (ns32k_handle_fntype_attribute): Likewise.
17627 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute): Likewise.
17628 * config/sh/sh.c (sh_handle_interrupt_handler_attribute): Likewise.
17629 (sh_handle_sp_switch_attribute): Likewise.
17630 (sh_handle_trap_exit_attribute): Likewise.
17631 * config/sh/symbian.c (sh_symbian_dllimport_p): Likewise.
17632 (sh_symbian_handle_dll_attribute): Likewise.
17633 * config/stormy16/stormy16.c (xstormy16_handle_interrupt_attribute): Likewise.
17634 (xstormy16_handle_below100_attribute): Likewise.
17635 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
17637 * c-common.c (unsigned_conversion_warning): Move warning control
17638 from if() to warning(OPT_*).
17639 (c_common_truthvalue_conversion): Likewise.
17640 (c_do_switch_warnings): Likewise.
17641 * c-decl.c (diagnose_mismatched_decls): Likewise.
17642 (diagnose_mismatched_decls): Likewise.
17643 (define_label): Likewise.
17644 (grokdeclarator): Likewise.
17645 * c-format.c (check_format_info): Likewise.
17646 * c-lex.c (interpret_integer): Likwise.
17647 (lex_string): Likewise.
17648 * c-opts.c (c_common_post_options): Likewise.
17649 * c-parser.c (c_parser_unary_expression): Likewise.
17650 * c-pragma.c (handle_pragma_redefine_extname): Likewise.
17651 (handle_pragma_extern_prefix): Likewise.
17652 * c-typeck.c (build_binary_op): Likewise.
17653 * gcse.c (is_too_expensive): Likewise.
17654 * opts.c (decode_options): Likewise.
17655 * stor-layout.c (place_field): Likewise.
17656 * tree-cfg.c (remove_bb): Likewise.
17658 * c.opt (-Wreturn-type): Add Var(warn_return_type).
17659 * flags.h (warn_return_type): Remove.
17660 * toplev.c (warn_return_type): Likewise.
17662 2005-05-24 Kelley Cook <kcook@gcc.gnu.org>
17664 * configure.ac: Don't use gcc_AC_C_LONG_LONG. Check for
17665 existence of long long and __int64 before determining their size.
17666 * aclocal.m4: Delete gcc_AC_C_LONG_LONG.
17667 * configure, config.h.in: Regenerate.
17669 2005-05-24 Kelley Cook <kcook@gcc.gnu.org>
17671 * configure: Regenerate.
17673 2005-05-24 Ziemowit Laski <zlaski@apple.com>
17675 * c-common.h (objc_comptypes): Remove prototype.
17676 (objc_compare_types): New prototype.
17677 (objc_volatilized_decl): Likewise.
17678 (objc_type_quals_match): Likewise.
17679 * c-decl.c (objc_mark_locals_volatile): Streamline by calling
17680 objc_volatilize_decl().
17681 * c-typeck.c (comp_target_types): Remove third parameter; do
17682 not call objc_comptypes().
17683 (comptypes): Remove calls to objc_comptypes().
17684 (build_function_call): Extend compatible prototype check to ObjC.
17685 (build_conditional_expr): Adjust call to comp_target_types().
17686 (convert_for_assignment): Call objc_compare_types() instead of
17687 objc_comptypes(); adjust calls to comp_target_types(); call
17688 objc_type_quals_match() before issuing qualifier mismatch
17690 (build_binary_op): Call objc_compare_types() before issuing
17691 pointer mismatch warnings; adjust calls to
17692 comp_target_types().
17693 * stub-objc.c (objc_comptypes): Remove stub.
17694 (objc_compare_types): New stub.
17695 (objc_volatilized_decl): Likewise.
17696 (objc_type_quals_match): Likewise.
17698 2005-05-24 Paolo Carlini <pcarlini@suse.de>
17700 * config/ia64/ia64intrin.h: Define nothing for C++:
17701 overloaded builtins have been ported to C++.
17703 2005-05-24 Jeff Law <law@redhat.com>
17705 * tree-nested.c (build_addr): New "context" argument. Temporarily
17706 set current_function_decl around the call to build the ADDR_EXPR.
17707 (get_static_chain): Pass proper context to build_addr.
17708 (convert_nl_goto_reference): Likewise.
17709 (convert_tramp_reference): Likewise.
17710 (final_nesting_tree_1): Likewise.
17711 * tree-profile.c (tree_gen_interval_profiler): Likewise.
17712 (tree_gen_pow2_profiler): Likewise.
17713 (tree_gen_one_value_profiler): Likewise.
17714 * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Likewise.
17715 * tree.h (build_addr): Update prototype.
17717 2005-05-24 Kazu Hirata <kazu@cs.umass.edu>
17719 * tree-flow.h (bb_ann_d): Remove has_escape_site.
17720 * tree-ssa-alias.c (compute_points_to_addr_escape): Don't
17721 write to has_escape_site.
17723 2005-05-24 Jeff Law <law@redhat.com>
17725 * Makefile.in (tree-cfg.o): Depend on tree-ssa-propagate.h.
17726 * tree-cfg.c: Include tree-ssa-propagate.h.
17727 (replace_uses_by): Call recompute_tree_invarant_for_addr_expr as
17730 2005-05-24 Nick Clifton <nickc@redhat.com>
17732 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
17733 __NO_FPRS__ when 'f' class registers will not be available.
17735 2005-05-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
17737 * config/m32r/m32r.c (m32r_expand_block_move): Return 0 if
17739 * config/m32r/m32r.md (movmemsi): If m32r_expand_block_move did
17741 * config/m32r/m32r/m32r-protos.h (m32r_expand_block_move): Update
17744 2005-05-23 Jeff Law <law@redhat.com>
17746 * tree-ssa-dom.c (cprop_into_stmt): Do not call
17747 recompute_tree_invariant_for_addr_expr here.
17748 (optimize_stmt): Call it here instead and do so if anything
17749 at all has changed in the statement and the RHS is an ADDR_EXPR.
17750 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): If
17751 needed, call recompute_tree_invariant_for_addr_expr.
17752 * tree-ssa-propagate.c (substitute_and_fold): Call
17753 recompute_tree_invariant_for_addr_expr as needed.
17755 2005-05-23 Andreas Krebbel <krebbel1@de.ibm.com>
17757 * config/s390/s390.c (s390_optimize_prologue): Don't replace an insn
17758 saving less registers than the replacement.
17760 2005-05-23 Jan Hubicka <jh@suse.cz>
17762 * tree-flow.h (stmt_ann_d): Kill GTY ((skip)) mark on BB.
17764 2005-05-23 Eric Botcazou <ebotcazou@libertysurf.fr>
17766 * config/sparc/sparc-protos.h (sparc_expand_move): New prototype.
17767 * config/sparc/sparc.c (sparc_expand_move): New function.
17768 (sparc_emit_set_const64): Rewrite assert condition on entry.
17769 (legitimate_constant_p) <CONST_VECTOR>: New case.
17770 (legitimize_pic_address): Use TARGET_ARCH64 to select the mode.
17771 * config/sparc/sparc.md (movqi, movhi, movsi, movdi, movV32,
17772 movV64, movtf): Use nonimmediate_operand for the first operand.
17773 Rewrite. Only invoke sparc_expand_move.
17774 * config/sparc/predicates.md (input_operand): Reorder tests.
17776 2005-05-23 Jan Beulich <jbeulich@novell.com>
17778 * gthr-posix.h (__gthread_recursive_mutex_init_function): Add
17779 missing return statement.
17781 2005-05-22 Eric Botcazou <ebotcazou@libertysurf.fr>
17783 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Use
17784 emit_move_insn for moves to TFmode stack slots.
17786 2005-05-21 Richard Guenther <rguenth@gcc.gnu.org>
17788 * tree-stdarg.c (execute_optimize_stdarg): Handle references
17789 to va_list of the form &va[0].
17791 2005-05-20 Jan Hubicka <jh@suse.cz>
17793 * Makefile.in (insn-emit.o): Add basic-block.h dependency.
17794 * genemit.c (main): Make insn-emit to include basic-block.h too.
17796 2005-05-20 Jan Hubicka <jh@suse.cz>
17798 * cgraphunit.c (cgraph_expand_function): Force function being lowered.
17800 2005-05-19 Richard Henderson <rth@redhat.com>
17802 * config/alpha/alpha.c (emit_unlikely_jump, emit_load_locked,
17803 emit_store_conditional): Split out from ...
17804 (alpha_split_atomic_op): ... here.
17805 (alpha_split_compare_and_swap): New; extract from .md file.
17806 (alpha_split_lock_test_and_set): Likewise.
17807 * config/alpha/alpha-protos.h: Update.
17808 * config/alpha/sync.md (sync_compare_and_swap<I48MODE>): Move
17809 split code into alpha.c.
17810 (sync_lock_test_and_set<I48MODE>): Likewise.
17812 2005-05-19 Richard Henderson <rth@redhat.com>
17814 * unwind.h, unwind-pe.h: Revert gcc_unreachable change of 05-17.
17816 2005-05-19 Richard Henderson <rth@redhat.com>
17818 * config/i386/sse.md (mulv4si3): Use all register inputs.
17819 (mulv2di3): Likewise.
17821 2005-05-19 Richard Guenther <rguenth@gcc.gnu.org>
17823 * tree-ssa-loop-ivopts.c (determine_base_object): Use
17824 build_fold_addr_expr to generate trees of correct type.
17825 Use fold_buildN if possible.
17827 2005-05-19 Jan Hubicka <jh@suse.cz>
17829 * basic-block.h (REG_BR_PROB_BASE): Define.
17830 * cgraph.c (cgraph_create_edge): Initialize loop_nest and count.
17831 (dump_cgraph_node): Dump count.
17832 (cgraph_clone_edge): Rescale counts.
17833 (cgraph_clone_node): Likewise.
17834 * cgraph.h: Include basic-block.h
17835 (cgraph_node): Add count.
17836 (cgraph_edge): Add count and loop_nest.
17837 (cgraph_node, cgraph_edge, cgraph_clone_edge, cgraph_clone_node):
17839 * cgraphunit.c: Kill now redundant inlining comment.
17840 (cgraph_create_edges): Make static, maintain current basic block;
17842 (record_call_1): Fill in new fields.
17843 * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
17845 (cgraph_decide_recursive_inlining): Likewise.
17846 * rtl.h (REG_BR_PROB_BASE): Kill.
17847 * tree-inline.c (copy_body_r): Update call of cgraph_clone_edge.
17848 (expand_call_inline): Update call of cgraph_create_edge.
17849 * tree-optimize.c (tree_rest_of_compilation): Likewise.
17851 2005-05-19 Nick Clifton <nickc@redhat.com>
17853 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use the
17854 new rs6000_explicit_options structure.
17856 2005-05-19 Richard Henderson <rth@redhat.com>
17859 * config/alpha/alpha.c (alpha_emit_conditional_branch): Move
17860 TFmode code swapping ...
17861 (alpha_emit_xfloating_compare): ... here.
17862 (alpha_emit_setcc): Update to match.
17863 (alpha_lookup_xfloating_lib_func): Assert TARGET_HAS_XFLOATING_LIBS.
17865 2005-05-19 Richard Henderson <rth@redhat.com>
17868 * config/ia64/ia64.c (ia64_expand_tls_address): Remove extra
17869 memory indirection in local-dynamic case.
17871 2005-05-18 Jie Zhang <jie.zhang@analog.com>
17872 Bernd Schmidt <bernd.schmidt@analog.com>
17874 * config/bfin/bfin.c (branch_dest): Add comment why it's
17876 * config/bfin/bfin.md (attr "length" default): Change the offset of
17877 forward conditional branch of length 4 from 4096 to 4092.
17879 2005-05-19 Jan Beulich <jbeulich@novell.com>
17881 * unwind-compat.c: Include tconfig.h and tsystem.h.
17882 * unwind-dw2-fde-compat.c: Likewise.
17884 2005-05-18 Richard Henderson <rth@redhat.com>
17887 * ifcvt.c (noce_process_if_block): Avoid conversion when the
17888 memory destination is readonly.
17890 2005-05-18 Richard Henderson <rth@redhat.com>
17893 * tree-ssa-operands.c (opf_non_specific): New.
17894 (get_asm_expr_operands): Set it.
17895 (add_call_clobber_ops, add_call_read_ops): Likewise.
17896 (add_stmt_operand): Test it instead of opf_kill_def when
17897 considering unmodifiable variables.
17899 * tree-ssa-operands.c (get_expr_operands): Fix exact test.
17901 2005-05-19 Kazu Hirata <kazu@cs.umass.edu>
17903 * cfgexpand.c, tree-cfg.c, tree-inline.c, tree-optimize.c,
17904 tree-ssa-forwprop.c: Fix comment typos.
17905 * doc/invoke.texi: Fix a typo.
17907 2005-05-18 Richard Henderson <rth@redhat.com>
17909 * config.gcc (powerpc-*-linux*): Include linux64.opt when
17910 including linux64.h.
17912 2005-05-18 Richard Henderson <rth@redhat.com>
17914 * tree-cfg.c (pass_remove_useless): Revert last change.
17915 * tree-optimize.c (init_tree_optimization_passes): Initialize
17916 all_lowering_passes with PROP_gimple_any.
17918 2005-05-18 Devang Patel <dpatel@apple.com>
17920 * config/rs6000/rs6000.md (insvsi_internal1): Subtract shift from
17923 2005-05-18 Richard Henderson <rth@redhat.com>
17925 * tree-ssa-forwprop.c (cfg_changed): New.
17926 (tidy_after_forward_propagate_addr): New.
17927 (forward_propagate_addr_expr): Use it, and fold_stmt_inplace.
17928 (forward_propagate_addr_into_variable_array_index): Likewise.
17929 (tree_ssa_forward_propagate_single_use_vars): Cleanup cfg if
17930 edges were removed.
17932 2005-05-18 Geoffrey Keating <geoffk@apple.com>
17934 * dummy-checksum.c: New.
17935 * genchecksum.c: New.
17936 * c.opt (print_pch_checksum): New flag.
17937 * c-pch.c (struct c_pch_validity): Make much shorter.
17938 (no_checksum): New.
17939 (host_machine): Remove.
17940 (target_machine): Remove.
17941 (get_ident): Change PCH version number.
17942 (pch_init): When -fverbose-asm, print out the compiler fingerprint.
17943 Don't put triplets or version string in PCH validity data.
17944 Do put the compiler checksum in the validity data.
17945 (c_common_valid_pch): Don't check triplets or version string. Do
17947 (c_common_print_pch_checksum): New.
17948 * c-opts.c (c_common_handle_option): Add OPT_print_pch_checksum.
17949 Print fingerprint with -v.
17950 * c-common.h (c_common_print_pch_checksum): New.
17951 (executable_checksum): New.
17952 * Makefile.in (STAGEMOVESTUFF): Add cc1*-dummy, *-checksum.c.
17953 (cc1-dummy): New rule.
17954 (cc1-checksum.c): New rule.
17955 (cc1-checksum.o): New rule.
17956 (cc1): Add checksum support.
17957 (build/genchecksum): New.
17958 (build/genchecksum.o): New.
17959 (dummy-checksum.o): New.
17960 (genobjnames): Add genchecksum.o.
17961 (mostlyclean): Remove *-checksum.c.
17962 (gnucompare): Add libgcc to list of directories checked.
17963 Make comparison problems in libgcc/ and with checksum files only
17965 * doc/invoke.texi (Precompiled Headers): Remove caution.
17966 Document that it must be the exact same binary. Add a few
17967 known-safe flags to the list.
17969 * rs6000/predicates.md (fix_trunc_dest_operand): New.
17970 * rs6000/rs6000.md (fix_truncdfsi2): Use fix_trunc_dest_operand.
17971 Check that a memory operand is valid before trying to use it.
17973 * tree-cfg.c (pass_remove_useless): This pass works on trees.
17975 2005-05-18 Richard Guenther <rguenth@gcc.gnu.org>
17977 * tree.c (build1_stat): Don't try to handle two-operand
17980 2005-05-18 Richard Sandiford <rsandifo@redhat.com>
17982 * config.gcc (sh*-*-*): Define SUPPORT_* macros to 1.
17983 * config/sh/sh.h: Update mask names throughout.
17984 (target_flags, ISIZE_BIT, DALIGN_BIT, SH1_BIT, SH2_BIT, SH3_BIT)
17985 (SH_E_BIT, HARD_SH4_BIT, FPU_SINGLE_BIT, SH4_BIT, SH4A_BIT, FMOVD_BIT)
17986 (SH5_BIT, SPACE_BIT, BIGTABLE_BIT, RELAX_BIT, USERMODE_BIT)
17987 (HITACHI_BIT, NOMACSAVE_BIT, PREFERGOT_BIT, PADSTRUCT_BIT)
17988 (LITTLE_ENDIAN_BIT, IEEE_BIT, SAVE_ALL_TR_BIT, HARD_SH2A_BIT)
17989 (HARD_SH2A_DOUBLE_BIT, INDEXED_ADDRESS_BIT, PT_FIXED_BIT)
17990 (INVALID_SYMBOLS_BIT, ADJUST_UNROLL_BIT, TARGET_DUMPISIZE)
17991 (TARGET_ALIGN_DOUBLE, TARGET_SH1, TARGET_SH2, TARGET_SH3)
17992 (TARGET_HARD_SH4, TARGET_FPU_SINGLE, TARGET_SH5, TARGET_FMOVD)
17993 (TARGET_IEEE, TARGET_SMALLCODE, TARGET_BIGTABLE, TARGET_RELAX)
17994 (TARGET_HITACHI, TARGET_NOMACSAVE, TARGET_PADSTRUCT)
17995 (TARGET_LITTLE_ENDIAN, TARGET_USERMODE, TARGET_PREFERGOT)
17996 (TARGET_SAVE_ALL_TARGET_REGS, TARGET_ALLOW_INDEXED_ADDRESS)
17997 (TARGET_PT_FIXED, TARGET_INVALID_SYMBOLS, TARGET_ADJUST_UNROLL)
17998 (TARGET_SWITCH_SH1, TARGET_SWITCH_SH2, TARGET_SWITCH_SH2E)
17999 (TARGET_SWITCH_SH2A, TARGET_SWITCH_SH2A_SINGLE_ONLY)
18000 (TARGET_SWITCH_SH2A_SINGLE, TARGET_SWITCH_SH2A_NOFPU)
18001 (TARGET_SWITCH_SH3, TARGET_SWITCH_SH3E, TARGET_SWITCH_SH4_SINGLE_ONLY)
18002 (TARGET_SWITCH_SH4_SINGLE, TARGET_SWITCH_SH4_NOFPU, TARGET_SWITCH_SH4)
18003 (TARGET_SWITCH_SH4A, TARGET_SWITCH_SH4A_SINGLE_ONLY)
18004 (TARGET_SWITCH_SH4A_SINGLE, TARGET_SWITCH_SH4A_NOFPU)
18005 (TARGET_SWITCH_SH4AL, TARGET_SWITCH_SH5_64MEDIA)
18006 (TARGET_SWITCH_SH5_64MEDIA_NOFPU, TARGET_SWITCHES_SH5_32MEDIA)
18007 (TARGET_SWITCHES_SH5_32MEDIA_NOFPU, TARGET_SWITCH_SH5_32_ANY_EXTRA)
18008 (TARGET_SWITCH_SH5_MEDIA_ANY_EXTRA, TARGET_SWITCHES)
18009 (SUBTARGET_SWITCHES): Delete.
18010 (TARGET_SH2E, TARGET_SH2A, TARGET_SH2A_SINGLE, TARGET_SH2A_DOUBLE)
18011 (TARGET_SH3E, TARGET_CACHE32, TARGET_SUPERSCALAR, TARGET_HARVARD)
18012 (TARGET_FPU_DOUBLE, TARGET_SH4A_ARCH, TARGET_SHMEDIA32)
18013 (TARGET_SHMEDIA64): Redefine using other TARGET_* macros.
18014 (TARGET_SH4): Undefine options.h definition and check MASK_SH1 as well.
18015 (SUPPORT_SH1, SUPPORT_SH2E, SUPPORT_SH4, SUPPORT_SH4_SINGLE)
18016 (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Make numeric.
18017 (SUPPORT_SH2): Define to 1 if SUPPORT_SH1.
18018 (SUPPORT_SH3): Likewise SUPPORT_SH2.
18019 (SUPPORT_SH4_NOFPU): Likewise SUPPORT_SH3.
18020 (SUPPORT_SH4A_NOFPU, SUPPORT_SH4AL, SUPPORT_SH2A_NOFPU): Likewise
18022 (SUPPORT_SH3E): Likewise SUPPORT_SH2E.
18023 (SUPPORT_SH4_SINGLE_ONLY, SUPPORT_SH4A_SINGLE_ONLY)
18024 (SUPPORT_SH2A_SINGLE_ONLY): Likewise SUPPORT_SH3E.
18025 (SUPPORT_SH4A): Likewise SUPPORT_SH4.
18026 (SUPPORT_SH4A_SINGLE): Likewise SUPPORT_SH4_SINGLE.
18027 (SUPPORT_SH5_32MEDIA): Likewise SUPPORT_SH5_COMPACT.
18028 (SUPPORT_SH5_32MEDIA_NOFPU): Likewise SUPPORT_SH5_COMPACT_NOFPU.
18029 (SUPPORT_ANY_SH5_32MEDIA, SUPPORT_ANY_SH5_64MEDIA)
18030 (SUPPORT_ANY_SH5): New macros.
18031 (TARGET_NONE): Replace with...
18032 (MASK_ARCH): ...this new macro.
18033 * config/sh/elf.h: Update mask names
18034 * config/sh/linux.h: Likewise.
18035 * config/sh/little.h: Likewise.
18036 * config/sh/netbsd-elf.h: Likewise.
18037 * config/sh/symbian-pre.h: Likewise.
18038 * config/sh/sh.c (sh_handle_option): New function.
18039 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
18040 (calc_live_regs): Use MASK_FPU_SINGLE instead of FPU_SINGLE_BIT.
18041 (sh_target_switches, target_switches): Delete.
18042 (sh_pch_valid_p): Check for specific differences in the target_flags
18044 (sh_init_cumulative_args): Use MASK_HITACHI instead of HITACHI_BIT.
18045 * config/sh/sh.opt: New file.
18047 2005-05-18 Richard Henderson <rth@redhat.com>
18050 * config/ia64/ia64.c (ia64_extra_constraint) <'T'>: Use
18051 small_addr_symbolic_operand.
18053 2005-05-18 Jeff Law <law@redhat.com>
18055 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
18056 propagate an ADDR_EXPR if the definition and use sites are
18057 in different EH regions.
18059 2005-05-18 Ian Lance Taylor <ian@airs.com>
18061 * read-rtl.c (mode_attr_index): Use obstack_grow0, not
18064 2005-05-18 Daniel Berlin <dberlin@dberlin.org>
18066 * cfgrtl.c (purge_dead_edges): Don't remove fake edges.
18068 2005-05-18 Daniel Berlin <dberlin@dberlin.org>
18070 Fix PR tree-optimization/21407
18072 * tree-ssa-operands.c (note_addressable): Change
18073 COMPONENT_REF handling in response to aliasing
18076 2005-05-18 Eric Botcazou <ebotcazou@libertysurf.fr>
18078 * config/sparc/sol2.h (TARGET_DEFAULT): Add back MASK_APP_REGS.
18079 * config/sparc/sol2-64.h (TARGET_DEFAULT): Likewise.
18080 * config/sparc/sp-elf.h (TARGET_DEFAULT): Delete.
18081 * doc/invoke.texi (SPARC options): Document that -mapp-regs is
18082 the default on Solaris too.
18084 2005-05-17 Daniel Berlin <dberlin@dberlin.org>
18086 * tree-ssa-pre.c (find_or_generate_expression): CALL_EXPR
18089 2005-05-17 Zdenek Dvorak <dvorakz@suse.cz>
18091 * timevar.def (TV_SCEV_CONST): New timevar.
18092 * tree-optimize.c (init_tree_optimization_passes): Add
18094 * tree-pass.h (pass_scev_cprop): Declare.
18095 * tree-scalar-evolution.c (scev_const_prop): New function.
18096 * tree-scalar-evolution.h (scev_const_prop): Declare.
18097 * tree-ssa-loop.c (gate_scev_const_prop, pass_scev_cprop):
18099 * tree-cfg.c (replace_uses_by): Export.
18100 * tree-flow.h (replace_uses_by): Declare.
18102 2005-05-17 Ziemowit Laski <zlaski@apple.com>
18103 Mike Stump <mrs@apple.com>
18105 Yet more Objective-C++...
18107 * c-common.h (objc_finish_try_stmt): Add.
18108 (objc_build_synchronized): Add.
18109 (objc_generate_write_barrier): Add.
18110 * stub-objc.c (objc_build_synchronized): Add return value.
18111 (objc_finish_try_stmt): Likewise.
18112 (objc_generate_write_barrier): Add.
18114 * c-common.h (objc_rewrite_function_call): Add.
18115 * c-typeck.c (build_function_call): Allow objc to rewrite
18117 (build_modify_expr): Allow objc to generate write barriers.
18118 * c.opt (Wassign-intercept): Add.
18119 (Wstrict-selector-match): Add.
18120 (fobjc-call-cxx-cdtors): Add.
18121 (fobjc-direct-dispatch): Add.
18123 * dbxout.c (get_lang_number): Add Objective-C++ support.
18124 * doc/invoke.texi (-fobjc-call-cxx-cdtors): Likewise.
18125 (-Wstrict-selector-match): Likewise.
18126 (-fobjc-direct-dispatch): Likewise.
18127 (-Wassign-intercept): Likewise.
18128 (Overall Options): Likewise.
18129 * gengtype.c (get_output_file_with_visibility): Likewise.
18130 * stub-objc.c (objc_rewrite_function_call): Add.
18131 * config/darwin.h (ASM_OUTPUT_LABELREF): Improved quoting support.
18133 * c-common.c (flag_objc_exceptions): Remove.
18134 (flag_objc_sjlj_exceptions): Remove.
18135 * c-decl.c (objc_mark_locals_volatile): Don't change decls
18136 that are already ok.
18137 * c-opts.c (c_common_handle_option, case
18138 OPT_fobjc_exceptions): Remove.
18139 (case OPT_fobjc_sjlj_exceptions): Remove
18140 * c.opt (fobjc-call-cxx-cdtors): Have opt create the flag.
18141 (fobjc-exceptions): Likewise.
18142 (fobjc-sjlj-exceptions): Likewise.
18143 * config/rs6000/darwin.h (OFFS_MSGSEND_FAST): Add.
18144 (OFFS_ASSIGNIVAR_FAST): Add.
18146 2005-05-17 Eric Botcazou <ebotcazou@libertysurf.fr>
18148 * config/sparc/sparc.md (movhi): Do not test constness
18149 of operand #1 twice.
18151 (movdi): Unconditionally accept zero as second operand
18152 when the first is memory.
18153 (movdi_insn_sp32): Handle above case.
18154 (DImode splitter): Use predicates.
18155 (DImode splitter): Use const_zero_operand predicate.
18156 (movsf_insn): Swap 2 alternatives.
18158 2005-05-17 Zdenek Dvorak <dvorakz@suse.cz>
18160 * tree-ssa-loop-ivopts.c (find_bivs, find_givs_in_stmt_scev): Apply
18161 expand_simple_operations to bases of the ivs.
18162 (tree_int_cst_sign_bit): Export.
18163 * tree-flow.h (expand_simple_operations): Declare.
18164 * tree-ssa-loop-niter.c (number_of_iterations_cond): Use
18165 tree_int_cst_sign_bit.
18166 (expand_simple_operations): Export.
18167 * tree.h (tree_int_cst_sign_bit): Declare.
18169 2005-05-17 Zdenek Dvorak <dvorakz@suse.cz>
18171 * tree-cfg.c (tree_can_merge_blocks_p): Allow phi nodes in the
18173 (replace_uses_by): New function.
18174 (tree_merge_blocks): Eliminate the phi nodes in the merged block.
18175 * tree-flow.h (fold_stmt_inplace): Declare.
18176 * tree-ssa-ccp.c (fold_stmt_inplace): New function.
18177 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update dominance
18178 info after cfg cleanup.
18180 2005-05-17 Zdenek Dvorak <dvorakz@suse.cz>
18182 * cfgloop.h (just_once_each_iteration_p): Declaration changed.
18183 * cfgloopanal.c (just_once_each_iteration_p): Make the loop argument
18186 2005-05-17 Zdenek Dvorak <dvorakz@suse.cz>
18188 * ggc-page.c (ggc_alloc_stat): Record amount of memory allocated.
18189 * ggc-zone.c (ggc_alloc_zone_1): Ditto.
18190 * timevar.c (timevar_ggc_mem_total): New variable.
18191 (GGC_MEM_BOUND): New constant.
18192 (get_time): Record ggc memory status.
18193 (timevar_accumulate): Accumulate amount of ggc memory.
18194 (timevar_print): Print consumption of ggc memory.
18195 * timevar.def (TV_FIND_REFERENCED_VARS, TV_TREE_REDPHI,
18196 TV_TREE_LOOP_BOUNDS, TV_TREE_LOOP_IVCANON, TV_TREE_VECTORIZATION,
18197 TV_TREE_LINEAR_TRANSFORM): Shorten strings to fit in 22 characters.
18198 * timevar.h (struct timevar_time_def): Add ggc_mem field.
18199 (timevar_ggc_mem_total): Declare.
18201 2005-05-17 Kazu Hirata <kazu@cs.umass.edu>
18203 * tree-into-ssa.c (update_ssa): Clean up by shortening the
18206 2005-05-17 Hans-Peter Nilsson <hp@axis.com>
18208 * config/cris/cris.md (ncond, ocode, rcond): Remove separate
18210 ("b<ncond:code>", "b<ocond:code>", "b<rcond:code>")
18211 ("*b<ncond:code>_reversed", "*b<ocond:code>_reversed")
18212 ("*b<rcond:code>_reversed", "s<ncond:code>", "s<rcond:code>")
18213 ("s<ocond:code>"): Rename from respectively "b<ncond>",
18214 "b<ocond>", "b<rcond>", ("*b<ncond>_reversed",
18215 "*b<ocond>_reversed", "*b<rcond>_reversed", "s<ncond>",
18216 "s<rcond>" and "s<ocond>".
18217 ("b<ocond:code>", "*b<ocond:code>_reversed")
18218 ("*b<rcond:code>_reversed"): Remove extraneous backslashes in
18219 output statement section.
18221 2005-05-17 Roger Sayle <roger@eyesopen.com>
18223 * c-typeck.c (common_type): Also handle BOOLEAN_TYPEs.
18225 2005-05-17 Steven Bosscher <stevenb@suse.de>
18226 Stuart Hastings <stuart@apple.com>
18227 Jan Hubicka <jh@suse.cz>
18228 Dale Johannesen <dalej@apple.com>
18230 * cgraph.h (cgraph_node): Add 'lowered' state.
18231 (cgraph_lower_function): Declare.
18232 * cgraphunit.c (cgraph_finalize_function): Initialize lowered flag.
18233 (cgraph_lower_function): New function.
18234 (cgraph_create_edges): Deal with lowered function bodies.
18235 (verify_cgraph_node): Likewise.
18236 (cgraph_analyze_function): Do lowering job.
18237 (cgraph_build_static_cdtor): Likewise.
18238 * function.h (struct function): Add saved_eh and saved_cfg.
18239 * integrate.c (copy_decl_for_inlining): Kill LABEL_DECL_UID field.
18240 * tree-cfg.c (fold_cond_expr_cond): Export.
18241 * tree-flow.h (fold_cond_expr_cond): Declare.
18242 * tree-inline.c: Include basic-block, ggc, tree-flow, except.h and
18244 (struct_inline_data): Kill fnd, first_inlined_fn, ret_label,
18245 in_target_cleanup_p, tree_pruner, tsi; add callee, caller and
18246 callee_cfun, block, eh_region, eh_region_offset.
18247 (inlining_p): New predicate.
18248 (remap_decl): Update for new inline_data; declare newly created inline
18249 vars in low gimple way.
18250 (copy_body_r): Update for new datastructure, simplify some of handling
18251 when we are in gimple; remap LABEL_DECLs for EH; copy TREE_BLOCK;
18252 deal with RESX_EXPRs.
18254 (copy_edges_for_bb): Likewise.
18255 (remap_decl_1): New.
18256 (copy_cfg_body): New.
18257 (copy_generic_body): Rewrite to work on low gimple.
18258 (copy_body): Turn into simple wrapper around copy_cfg_body.
18259 (setup_one_parameter): Insert new statements into given basic block.
18260 (initialize_initialized_parameters): Likewise, reorganize way things are
18262 (declare_return_variable): Update for new inline data datastructure.
18263 (inline_forbidden_p): Work on low gimple.
18264 (estimate_num_insns): Likewise.
18265 (expand_call_inline): Work on CFG.
18266 (push_cfun, pop_cfun): New functions.
18267 (cfun_stack): New stack.
18268 (add_lexical_block): New function.
18269 (gimple_expand_calls_inline): Work on basic block.
18270 (optimize_inline_calls): Likewise.
18271 (clone_body, save_body, unsave_ewpr_now): Update for new
18273 (declare_inline_vars): Work on block instead of bind_expr.
18274 (inlining_p): New predicate.
18275 * tree-inline.h (push_cfun, pop_cfun): Declare.
18276 * tree-optimize.c: Include except.h
18277 (all_lowering_passes): New variable.
18278 (execute_fixup_cfg, pass_fixup_cfg): New pass.
18279 (init_tree_optimization_passes): Move some to all_lowering_passes.
18280 (tree_lowering_passes): New function.
18281 (tree_rest_of_compilation): Register cfg hooks; save/unsave eh.
18282 * tree-pass.h (tree_lowering_passes): Declare
18284 2005-05-17 Nathan Sidwell <nathan@codesourcery.com>
18286 * unwind-dw2-fde-darwin.c: Include tsystem.h.
18288 2005-05-17 Jeff Law <law@redhat.com>
18290 * Makefile.in (tree-ssa-forwprop.o): Depend on langhooks.h.
18291 * tree-ssa-forwprop.c: Include langhooks.h.
18292 (forward_propagate_addr_expr_into_variable_array_index): New.
18293 (forward_propagate_addr_expr): New.
18294 (tree_ssa_forward_propagate_single_use_vars): Loop over all
18295 the statements in the block instead of just the last statement.
18296 Call forward_propagate_addr_expr as needed.
18297 (pass_forwprop): Update the SSA graph after forward propagation is
18300 2005-05-17 Nathan Sidwell <nathan@codesourcery.com>
18302 * unwind-dw2-fde-glibc.c (base_from_cb_data,
18303 _Unwind_IteratePhdrCallback): Use gcc_assert and gcc_unreachable as
18305 * unwind-dw2-fde.c (__deregister_frame_info_bases,
18306 base_from_object, fde_split, end_fde_sort): Likewise.
18307 * unwind-dw2.c (_Unwind_GetGR, _Unwind_SetGR, execute_stack_op,
18308 execute_cfa_program, _Unwind_SetSpColumn, uw_update_context_1,
18309 uw_init_context_1): Likewise.
18310 * unwind.inc (_Unwind_RaiseException_Phase2, _Unwind_Resume,
18311 _Unwind_Resume_or_Rethrow): Likewise.
18312 * unwind-pe.h (__gxx_abort): Do not define.
18313 (size_of_encoded_value, base_of_encoded_value,
18314 read_encoded_value_with_base): Use gcc_unreachable.
18315 * unwind.h (_Unwind_GetTextRelBase): Likewise.
18317 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
18319 * config/arm/lib1funcs.asm (cfi_pop, cfi_push, cfi_start)
18320 (cfi_end): New macros.
18321 (RETLDM): Use cfi_pop. Expect an eight byte stack frame.
18322 (ARM_LDIV0, THUMB_LDIV0, DIV_FUNC_END): Use CFI macros. Create
18323 an eight byte stack frame.
18324 (__NR_tkill): Define.
18325 (__div0): Use gettid tkill on GNU/Linux.
18326 (_arm_return): Add CFI.
18327 (Lchange_\register, .Lchange_lr): Create an eight byte stack frame.
18329 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
18331 * configure.ac: Remove spaces around assignment to
18333 * configure: Regenerated.
18335 2005-05-17 David Edelsohn <edelsohn@gnu.org>
18337 * config/rs6000/aix.h (TARGET_ALTIVEC_VRSAVE): Delete.
18338 * config/rs6000/rs6000.c (rs6000_explicit_options): Add
18340 (rs6000_override_options): Do not protect TARGET_ALTIVEC_VRSAVE.
18341 Modify aix_struct_return variable, not target_flags.
18342 (rs6000_handle_option): Do not protect TARGET_ALTIVEC_VRSAVE.
18343 (rs6000_return_in_memory): Test aix_struct_return.
18344 * config/rs6000/rs6000.opt (maix-struct-return): Convert to
18345 independent variable. Report mxl-compat.
18347 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
18349 * config/bfin/bfin.md (eh_return): Add missing DONE.
18351 2005-05-17 Ian Lance Taylor <ian@airs.com>
18353 * read-rtl.c (struct macro_traverse_data): Add unknown_mode_attr
18355 (mode_attr_index): Remove check for defined attribute. Remove
18356 infile parameter. Change all callers.
18357 (apply_mode_maps): Add unknown parameter. Change caller. Always
18358 return after finding attribute.
18359 (apply_macro_to_rtx): Add unknown_mode_attr parameter. Change
18361 (apply_macro_traverse): Set mtd->unknown_mode_attr.
18362 (read_rtx): Use mtd.unknown_mode_attr to check for an undefined
18363 attribute used for a mode.
18365 2005-05-17 Paolo Bonzini <bonzini@gnu.org>
18367 * tree-ssa-math-opts.c: New file.
18369 2005-05-17 Paolo Bonzini <bonzini@gnu.org>
18371 * Makefile.in: Add tree-ssa-math-opts.c.
18372 * expr.c (expand_expr_real_1) <case RDIV_EXPR>: Never emit as a*(1/b).
18373 * fold-const.c (distribute_real_division): New.
18374 (fold_binary) <case PLUS_EXPR, case MINUS_EXPR>: Use it.
18375 * tree-pass.h (pass_cse_reciprocals): New.
18376 * tree-optimize.c (init_tree_optimization_passes): Run it.
18377 * doc/passes.texi: Document the new pass.
18379 2005-05-17 Richard Guenther <rguenth@gcc.gnu.org>
18381 PR middle-end/21595
18382 * builtins.c (fold_builtin_constant_p): Handle
18383 &"string cst"[0] as constant.
18385 2005-05-17 Richard Henderson <rth@redhat.com>
18387 * config/i386/sse.md (mulv16qi3, mulv2di3): New.
18389 2005-05-17 Jakub Jelinek <jakub@redhat.com>
18391 PR middle-end/21492
18392 * cfgcleanup.c (try_crossjump_to_edge): update_forwarder_flag for
18393 src2 if src2 has been split.
18395 PR tree-optimization/21610
18396 * c-typeck.c (decl_constant_value_for_broken_optimization): If not
18397 returning DECL, call unshare_expr.
18399 2005-05-17 Hans-Peter Nilsson <hp@axis.com>
18401 * config/cris/cris.md: Unquote preparation and output statements.
18402 (BWD, WD, BW): New, mode-macros.
18403 (S, s, m, mm, nbitsm1): New, mode-attrs.
18404 (szext, shift, shiftrt, ncond, ocond, rcond): New, code-macros.
18405 (u, su, shlr, slr, ncond, ocond, rcond, rCC, oCC, roCC): New,
18407 ("tst<mode>"): Replace "tstqi", "tsthi" and "tstsi".
18408 ("*cmp_ext<mode>"): Replace "*cmp_extsi" and "*cmp_exthi".
18409 ("*cmp_swapext<mode>"): Replace "*cmp_swapextqi" and
18411 ("cmp<mode>"): Replace "cmphi" and "cmpqi".
18412 ("movdi"): Move misplaced head comment regarding necessity of
18413 movdi from movsi to here.
18414 ("*mov_side<mode>_biap"): Replace "*mov_sideqi_biap" and
18415 "*mov_sidehi_biap".
18416 ("*mov_side<mode>"): Replace "*mov_sideqi" and "*mov_sidehi".
18417 ("*mov_side<mode>_biap_mem", "*mov_sidehi_biap_mem"): Replace
18418 "*mov_sideqi_biap_mem".
18419 ("*mov_side<mode>_mem"): Replace "*mov_sideqi_mem" and
18421 ("*clear_side<mode>_biap"): Replace "*clear_sidesi_biap",
18422 "*clear_sidehi_biap" and "*clear_sideqi_biap".
18423 ("*clear_side<mode>"): Replace "*clear_sidesi", "*clear_sidehi"
18424 and "*clear_sideqi".
18425 ("*ext_side<mode>si_biap"): Replace "*ext_sideqisi_biap" and
18426 "*ext_sidehisi_biap".
18427 ("*ext_side<mode>si"): Replace "*ext_sideqisi" and
18429 ("reload_in<mode>"): Replace "reload_inhi" and "reload_inqi".
18430 ("reload_out<mode>"): Replace "reload_outhi" and "reload_outqi".
18431 ("extend<mode>di2"): Replace "extendhidi2" and "extendqidi2".
18432 ("extend<mode>si2"): Replace "extendhisi2" and "extendqisi2".
18433 ("zero_extend<mode>si2"): Replace "zero_extendhisi2" and
18434 "zero_extendqisi2".
18435 ("*op_side<mode>_biap"): Replace "*op_sideqi_biap",
18436 "*op_sidehi_biap" and "*op_sidesi_biap".
18437 ("*op_side<mode>"): Replace "*op_sideqi", "*op_sidehi" and
18439 ("*op_swap_side<mode>_biap"): Replace "*op_swap_sideqi_biap",
18440 "*op_swap_sidehi_biap" and "*op_swap_sidesi_biap".
18441 ("*op_swap_side<mode>"): Replace "*op_swap_sideqi",
18442 "*op_swap_sidehi" and "*op_swap_sidesi".
18443 ("sub<mode>3"): Replace "subhi3" and "subqi3", correcting a typo
18444 in the N alternative of "subqi3".
18445 ("*extop<mode>si_side_biap"): Replace "*extopqisi_side_biap" and
18446 "*extophisi_side_biap".
18447 ("*extop<mode>si_side"): Replace "*extopqisi_side" and
18449 ("*extop<mode>si_swap_side_biap"): Replace
18450 "*extopqisi_swap_side_biap" and "*extophisi_swap_side_biap".
18451 ("*extop<mode>si_swap_side"): Replace "*extopqisi_swap_side" and
18452 "*extophisi_swap_side".
18453 ("*extop<mode>si"): Replace "*extopqisi" and "*extophisi".
18454 ("*extop<mode>si_swap"): Replace "*extopqisi_swap" and
18456 ("<u>mul<s><mode>3"): Replace "umulhisi3", "umulqihi3",
18457 "mulqihi3", "mulhisi3" and "mulhisi3".
18458 ("<u>mulsidi3"): Replace "mulsidi3" and "umulsidi3".
18459 ("<su>mulsi3_highpart"): Replace "smulsi3_highpart" and
18460 "umulsi3_highpart".
18461 ("xor<mode>3"): Replace "xorhi3" and "xorqi3".
18462 ("neg<mode>2"): Replace "negsi2", "neghi2" and "negqi2".
18463 ("one_cmpl<mode>2"): Replace "one_cmplhi2" and "one_cmplqi2".
18464 ("<shlr>si3"): Replace "ashrsi3", "lshrsi3" and "ashlsi3".
18465 ("ashr<mode>3"): Replace "ashrhi3" and "ashrqi3".
18466 ("*expanded_<shlr><mode>"): Replace "*expanded_ashrhi",
18467 "*expanded_ashrqi", "*expanded_lshrhi" and "*expanded_lshrqi".
18468 ("*<shlr><mode>_lowpart"): Replace "*ashrhi_lowpart",
18469 "*ashrqi_lowpart", "*lshrhi_lowpart" and "*lshrqi_lowpart".
18470 ("lshr<mode>3"): Replace "lshrhi3" and "lshrqi3".
18471 ("ashl<mode>3"): Replace "ashlhi3" and "ashlqi3".
18472 ("*ashl<mode>_lowpart"): Replace "*ashlqi_lowpart" and
18474 ("abs<mode>2"): Replace "abshi2" and "absqi2".
18475 ("b<ncond>"): Replace "beq", "bne", "bgtu", "bltu", "bgeu" and
18477 ("b<ocond>"): Replace "bgt" and "ble".
18478 ("b<rcond>"): Replace "blt" and "bge".
18479 ("*b<ncond>_reversed"): Replace "*beq_reversed", "*bne_reversed",
18480 "*bgtu_reversed", "*bltu_reversed", "*bgeu_reversed" and
18482 ("*b<ocond>_reversed"): Replace "*bgt_reversed" and
18484 ("*b<rcond>_reversed"): Replace "*blt_reversed" and
18486 ("s<ncond>"): Replace "sgeu", "sltu", "seq", "sgtu", "sleu" and
18488 ("s<rcond>"): Replace "sge" and "slt".
18489 ("s<ocond>"): Replace "sgt" and "sle".
18490 ("clear.[bwd] [rx=rx+rz.S2]"): Replace split clear.d
18491 [rx=rx+rz.S2], clear.w [rx=rx+rz.S2] and clear.b [rx=rx+rz.S2].
18492 ("clear.[bwd] [rx=rx+i]"): Replace splits clear.d [rx=rx+i],
18493 clear.w [rx=rx+i] and clear.b [rx=rx+i].
18495 2005-05-17 Jakub Jelinek <jakub@redhat.com>
18497 * varasm.c (struct constant_descriptor_tree): Add hash field.
18498 (const_desc_hash): Just return hash field.
18499 (const_desc_eq): If hash values are different, return 0 immediately.
18500 (output_constant_def): Compute hash field of temporary key, use
18501 htab_find_slot_with_hash instead of htab_find_slot. Set hash in
18502 newly built constant descriptor.
18503 (lookup_constant_def): Compute hash field of temporary key, use
18504 htab_find_with_hash instead of htab_find.
18506 2005-05-16 Richard Henderson <rth@redhat.com>
18508 * config/i386/sse.md (mulv4si3): New.
18510 2005-05-17 Hans-Peter Nilsson <hp@axis.com>
18512 * config/cris/cris.h (EXTRA_CONSTRAINT_T): Remove FIXME and
18513 tests for noncanonical versions of reg+constant and
18516 2005-05-16 Richard Henderson <rth@redhat.com>
18517 Steven Bosscher <stevenb@suse.de>
18520 * tree-eh.c (maybe_clean_or_replace_eh_stmt): Rename from
18521 maybe_clean_eh_stmt; take old stmt parameter. Update EH
18522 region data structure to match replacement.
18523 * tree-flow.h: Update to match.
18524 * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
18525 * tree-ssa-dom.c (optimize_stmt): Likewise.
18526 * tree-ssa-pre.c (eliminate): Likewise.
18527 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
18529 2005-05-16 Caroline Tice <ctice@apple.com>
18531 * bb-reorder.c (verify_hot_cold_block_grouping): Replace
18532 internal_error with gcc_assert.
18533 * dwarf2out.c (dwarf2out_switch_text_section): Likewise.
18534 * function.h (struct function): Remove space between "*" and
18535 struct field names.
18536 * varasm.c (initialize_cold_section_name): Add gcc_assert;
18537 modify to use alloca.
18538 (unlikely_text_section): Add check for flag_function_sections.
18539 (assemble_start_function): Move call to resolve_section, so it
18540 comes before first call to unlikely_text_section.
18541 (assemble_end_function): Add test and call to function_section
18544 2005-05-16 Roger Sayle <roger@eyesopen.com>
18546 * c-common.c (c_common_truthvalue_conversion): Use fold_build2
18547 instead of build_binary_op when performing code transformations
18548 to avoid error messages about constructs not it the user's code.
18550 2005-05-16 Kazu Hirata <kazu@cs.umass.edu>
18552 * tree-ssa-pre.c: Fix a comment typo.
18554 2005-05-16 Richard Henderson <rth@redhat.com>
18557 * config/ia64/ia64.md (load_dtpmod, load_ltoff_dtpmod, load_dtprel,
18558 load_dtprel64, load_dtprel22, load_dtprel_gd, load_ltoff_dtprel,
18559 add_dtprel, add_dtprel14, add_dtprel22, load_tprel, load_tprel64,
18560 load_tprel22, load_tprel_ie, load_ltoff_tprel, add_tprel, add_tprel14,
18561 add_tprel22): Remove mode from symbolic operand.
18563 2005-05-16 Richard Sandiford <rsandifo@redhat.com>
18565 * optc-gen.awk: Include intl.h after the externally-provided files.
18567 2005-05-16 Kazu Hirata <kazu@cs.umass.edu>
18569 * tree-ssa-copy.c (copy_prop_visit_assignment): Clean up by
18570 folding a COND_EXPR_COND in a nondestructive manner.
18572 2005-05-16 Fariborz Jahanian <fjahanian@apple.com>
18574 * config/rs6000/altivec.md (altivec_vmrghb, altivec_vmrghh,
18575 altivec_vmrghw, altivec_vmrglb, altivec_vmrglh, altivec_vmrglw):
18576 New values for vec_select definitions and bitmask for element
18579 2005-05-16 Kazu Hirata <kazu@cs.umass.edu>
18581 * dwarf2out.c (used_rtx_varray): Rename to used_rtx_array.
18582 Change the type to VEC(rtx,gc)*.
18583 (mem_loc_descriptor, add_const_value_attributes,
18584 dwarf2out_init): Adjust uses of used_rtx_varray.
18586 * tree-data-ref.c (compute_all_dependences): Change the type
18587 of dependence_relations to VEC(ddr_p,heap)**.
18588 (compute_data_dependences_for_loop): Change the type of
18589 allrelations to VEC(ddr_p,heap)*.
18591 2005-05-16 Richard Sandiford <rsandifo@redhat.com>
18593 * Makefile.in (options.c): Tell optc-gen.awk to include config.h,
18594 system.h, coretypes.h and tm.h.
18595 (options.o): Update dependencies accordingly.
18596 * optc-gen.awk: Allow header_name to be a list of filenames.
18597 Handle the "Condition" flag.
18598 * opts.h (CL_DISABLED): New flag.
18599 * opts.c (handle_option): Print an error for CL_DISABLED options.
18600 * doc/options.texi: Document the "Condition" option flag.
18602 2005-05-16 Paolo Bonzini <bonzini@gnu.org>
18604 * tree-inline.c (estimate_num_insns_1): Handle VEC_COND_EXPR.
18606 2005-05-15 Roger Sayle <roger@eyesopen.com>
18608 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Only
18609 check for TREE_OVERFLOW on INTEGER_CST trees.
18610 * tree-chrec.c (chrec_convert): Only clear TREE_OVERFLOW on
18611 CONSTANT_CLASS_P tree nodes.
18613 2005-05-15 H.J. Lu <hongjiu.lu@intel.com>
18616 * config/ia64/ia64.c (ia64_expand_move): Don't add addend twice.
18618 2005-05-15 Daniel Berlin <dberlin@dberlin.org>
18620 Fix PR tree-optimization/21576
18622 * tree-ssa-pre.c (expression_node_pool): New pool.
18623 (comparison_node_pool): Ditto.
18624 (list_node_pool): Ditto.
18625 (pool_copy_list): New function.
18626 (phi_translate): Handle CALL_EXPR.
18627 (valid_in_set): Ditto.
18628 (create_expression_by_pieces): Ditto.
18629 (insert_into_preds_of_block): Ditto.
18630 (insert_aux): Ditto.
18631 (compute_avail): Ditto.
18632 (create_value_expr_from): Handle TREE_LIST and CALL_EXPR.
18633 (can_value_number_call): New function.
18634 (find_leader): Update comment.
18635 (init_pre): Create new pools.
18636 (fini_pre): Free new pools.
18637 (pass_pre): Add TODO_update_ssa for the future when we are going
18639 * tree-vn.c (expressions_equal_p): Handle TREE_LIST.
18640 (set_value_handle): Ditto.
18641 (get_value_handle): Ditto.
18643 2005-05-15 Richard Earnshaw <richard.earnshaw@arm.com>
18645 * arm.c (thumb_unexpanded_epilogue): Delete unused variable 'mode'.
18647 2005-05-15 Andreas Jaeger <aj@suse.de>
18649 * gcc.c (pfatal_pexecute): Remove unused local function.
18651 2005-05-15 Richard Sandiford <rsandifo@redhat.com>
18653 * optc-gen.awk: Remove excess indentation.
18654 * opth-gen.awk: Likewise.
18656 2005-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
18658 * config/sh/sh.c (sh_output_mi_thunk): Check cfun->cfg instead
18659 of basic_block_info. Call init_flow and find_basic_blocks
18660 before dbr_schedule if needed.
18662 2005-05-14 Kazu Hirata <kazu@cs.umass.edu>
18664 * tree-optimize.c (init_tree_optimization_passes): Move
18665 pass_cd_dce in place of the last pass_dce.
18667 PR tree-optimization/21563
18668 * tree-vrp.c (compare_value): Return boolean_false_node when
18669 SSA_NAME in "if (SSA_NAME == CST)" is strictly smaller than or
18670 strictly larger than CST.
18672 2005-05-14 Nathan Sidwell <nathan@codesourcery.com>
18673 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18675 * config/vax/vax.c: (print_operand_address) Use gcc_unreachable() and
18677 (rev_cond_name) Likewise.
18678 (vax_float_literal) Likewise.
18679 * config/vax/vax.md: Likewise.
18681 2005-05-14 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18683 * config/vax/vax.md: define_constant VAXens AP, FP, SP and PC
18684 registers and use them (specifically the stack pointer).
18685 * config/vax/vax.h: Use above defines right here.
18687 * config/vax/vax.c: (override_options) Remove 'register' keyword.
18688 (split_quadword_operands) Likewise. (rev_cond_name) Likewise.
18689 (vax_float_literal) Likewise. (vax_rtx_costs) Remove trailing
18691 * config/vax/vax.h: Remove 'register' keyword. Misc. whitespace fixes,
18692 mostly removal of trailing spaces...
18693 * config/vax/vax-modes.def: Remove trailing whitespace.
18695 * config/vax/elf.h: Update whitespace.
18697 2005-05-14 Richard Guenther <rguenth@gcc.gnu.org>
18700 2005-05-11 Richard Guenther <rguenth@gcc.gnu.org>
18701 * fold-const.c (fold_indirect_ref_1): Avoid removing
18702 NOP_EXPRs with type qualifiers like const.
18704 2005-05-14 Jan Hubicka <jh@suse.cz>
18706 Patch by Richard Henderson:
18707 * tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
18708 Handle RESX expressions properly.
18710 * tree-eh.c (record_stmt_eh_region): Use add_stmt_to_eh_region.
18711 (add_stmt_to_eh_region_fn): Nest into CALL_EXPR.
18712 (remove_stmt_from_eh_region_fn): Likewise.
18714 * tree-cfg.c (execute_warn_function_return): Break out noreturn
18716 (execute_warn_function_noreturn): ... here.
18717 (pass_warn_function_noreturn): New pass.
18718 * tree-pass.h (pass_warn_function_noreturn): Declare
18719 * tree-optimize.c (init_tree_optimization_passes): Move return
18720 warnings early and add noreturn warnings at place of previous
18723 2005-05-14 Kazu Hirata <kazu@cs.umass.edu>
18725 * tree-ssa-live.c (tpa_init, tpa_delete, tpa_compact,
18726 root_var_init, type_var_init): Use VEC instead of VARRAY.
18727 * tree-ssa-live.h (tree_partition_associator_d): Change the
18728 type of trees to VEC(tree,heap)*.
18729 (tpa_tree): Use VEC instead of VARRAY.
18731 2005-05-14 Richard Guenther <rguenth@gcc.gnu.org>
18733 * fold-const.c (div_if_zero_remainder): New function.
18734 (try_move_mult_to_index): Use it.
18736 2005-05-14 Kazu Hirata <kazu@cs.umass.edu>
18738 * tree-eh.c (leh_tf_state): Change the type of dest_array to
18740 (maybe_record_in_goto_queue, lower_try_finally_onedest,
18741 lower_try_finally_copy, lower_try_finally_switch,
18742 lower_try_finally): Use VEC instead of VARRAY.
18744 2005-05-14 Hans-Peter Nilsson <hp@axis.com>
18746 * config/cris/cris.h (Node: Register Classes): Remove obsoleted
18747 comment regarding defined register classes.
18748 (LEGITIMIZE_RELOAD_ADDRESS): Do not define.
18750 2005-05-14 Kazu Hirata <kazu@cs.umass.edu>
18752 * tree-optimize.c (init_tree_optimization_passes): Move
18753 pass_merge_phi before the first pass_dominator.
18755 2005-05-13 Richard Earnshaw <richard.earnshaw@arm.com>
18757 * arm.h (INITIALIZE_TRAMPOLINE): Make the call to __clear_cache
18760 2005-05-13 Josh Conner <jconner@apple.com>
18762 * config/arm/arm.c (arm_size_return_regs): New.
18763 (thumb_unexpanded_epilogue): replace in-line calculation
18764 of return registers with call to arm_size_return_regs.
18765 (use_return_insn): Include test of which registers are
18766 being used to hold return values, to accommodate
18767 vector return values.
18769 2005-05-11 Aldy Hernandez <aldyh@redhat.com>
18771 * config/rs6000/sysv4.opt (mlittle): Handle.
18773 * config/rs6000/rs6000.c (rs6000_handle_option): Set
18774 target_flags_explicit when appropriate.
18776 2005-05-13 J"orn Rennecke <joern.rennecke@st.com>
18778 PR middle-end/20714:
18779 * optabs.c (no_conflict_data): New struct.
18780 (no_conflict_move_test): New function.
18781 (emit_no_conflict_block): Use it.
18783 2005-05-13 Adam Nemet <anemet@lnxw.com>
18785 * doc/invoke.texi (Debugging Options): Option
18786 -fdump-translation-unit only works with C++ now.
18788 2005-05-13 Hans-Peter Nilsson <hp@axis.com>
18790 Replace calls to abort in CRIS port.
18791 * config/cris/cris.h (CRIS_ASSERT): New macro.
18792 * config/cris/cris.md ("*movsi_internal"): Use CRIS_ASSERT and
18793 internal_error instead of abort.
18794 ("movsi"): Ditto. Unquote preparation statement section.
18795 ("call", "call_value"): Ditto, but use gcc_assert where
18796 appropriate. Tweak comments.
18797 * config/cris/cris.c (ASSERT_PLT_UNSPEC): Define in terms of
18799 (cris_op_str): Call internal_error, not abort.
18800 (cris_print_operand): Tweak "abort" reference to "die" in comment.
18801 (cris_initial_elimination_offset): Call gcc_unreachable, not abort.
18802 (cris_notice_update_cc): Call internal_error, not abort.
18803 (cris_expand_return, cris_expand_prologue, cris_gen_movem_load)
18804 (cris_emit_movem_store, cris_asm_output_symbol_ref)
18805 (cris_output_addr_const_extra): Use CRIS_ASSERT, don't call abort.
18806 (cris_symbol, cris_got_symbol): Use CRIS_ASSERT instead of
18807 ENABLE_CHECKING-guarded abort call.
18808 (cris_split_movdx): Use CRIS_ASSERT instead of abort with test.
18809 Use internal_error at end of test-chain.
18811 2005-05-13 J"orn Rennecke <joern.rennecke@st.com>
18813 PR rtl-optimization/20769:
18814 * bt-load.c (compute_defs_uses_and_gen): Check for the blockage
18815 pattern emitted by expand_nl_goto_receiver.
18817 PR middle-end/20793:
18818 * integrate.c (allocate_initial_values): Update register liveness
18821 2005-05-13 Josh Conner <jconner@apple.com>
18823 * arm.c (arm_return_in_memory): Add handling for vector return types.
18825 2005-05-13 David Ung <davidu@mips.com>
18827 * config/mips/mips.h (processor_type): Add new PROCESSOR_4KP
18829 * config/mips/mips.c: Add 4km alias.
18830 * config/mips/mips.md: Add 4kp to cpu attrib and include 4k.md.
18831 * config/mips/4k.md: New file, add 4Kc/4Kp DFA pipeline
18834 2005-05-13 Jan Hubicka <jh@suse.cz>
18836 * c-decl.c (finish_function): Suppress "control reaches end of
18837 non-void function" when "no return statement in function
18838 returning non-void" is issued.
18840 * tree-inline.c (copy_body_r): Simplify substituted ADDR_EXPRs.
18841 * tree-optimize.c (pass_gimple): Kill.
18842 (init_tree_optimization_passes): Kill pass_gimple.
18843 * tree-cfg.c (build_tree_cfg): Do verify_stmts to check that we are gimple.
18844 * tree-dump.c (dump_files): Rename .generic to .gimple.*
18846 2005-05-13 J"orn Rennecke <joern.rennecke@st.com>
18848 PR rtl-optimization/20756:
18849 * basic-block.h (PROP_DEAD_INSN): Define.
18850 * flow.c (propagate_one_insn): Set during mark_set_regs call
18852 (mark_set_1): Emit a clobber when we are about to delete a dead insn
18853 that kills a live register.
18855 2005-05-13 Adrian Straetling <straetling@de.ibm.com>
18857 * config/s390/s390.md: ("DBL"): New mode attribute.
18858 ("*movmem_long_64", "*movmem_long_31"): Merge to "*movmem_long".
18859 ("*clrmem_long_64", "*clrmem_long_31"): Merge to "*clrmem_long".
18860 ("*cmpmem_long_64", "*cmpmem_long_31"): Merge to "*cmpmem_long".
18862 2005-05-13 Richard Guenther <rguenth@gcc.gnu.org>
18864 * c-format.c (check_format_arg): Handle string literals of
18865 the form &"string"[offset].
18867 * g++.dg/warn/format4.C: New testcase.
18869 2005-05-13 Kazu Hirata <kazu@cs.umass.edu>
18871 * config/mips/3000.md, config/mips/4000.md,
18872 config/mips/4100.md, config/mips/4300.md, config/mips/4600.md,
18873 config/mips/5000.md, config/mips/7000.md, config/mips/9000.md,
18874 config/mips/generic.md, config/pdp11/pdp11.md,
18875 config/sh/crt1.asm, config/sh/lib1funcs.asm,
18876 config/sh/sh-modes.def, config/sh/sh-protos.h,
18877 config/sh/shmedia.md, config/sh/ushmedia.h: Update copyright.
18879 2005-05-13 Richard Henderson <rth@redhat.com>
18881 * function.c (instantiate_virtual_regs_in_insn): Do not simplify
18882 addition to move unless dest is a register. Do not skip
18883 instantiation in dest on addition simplification.
18885 2005-05-13 Hans-Peter Nilsson <hp@axis.com>
18887 * config/cris/cris.c (cris_print_operand) <case 'H'; case
18888 CONST_INT>: Use operand_subword and HOST_WIDE_INT_PRINT_DEC for
18889 output; don't have special case for HOST_BITS_PER_WIDE_INT == 32.
18891 2005-05-13 Jan Hubicka <jh@suse.cz>
18893 * basic-block.h (FOR_ALL_BB_FN): New macro.
18894 (init_flow): Initialize cfg structure.
18895 * function.c (allocate_struct_function): Do not initialize cfg structure.
18896 * tree-cfg.c (init_empty_tree_cfg): Break out from ...
18897 (build_tree_cfg): ... here.
18898 * tree-flow.h (init_empty_tree_cfg): Declare.
18900 2005-05-12 Steven Bosscher <stevenb@suse.de>
18902 Fix PR tree-optimization/21520
18903 * tree-ssa-pre.c (phi_translate): Use fully_constant_expression
18904 to attempt to fold constants.
18906 2005-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
18908 * config/sh/sh.c: Declare the prototype of sh_adjust_unroll_max
18909 only when TARGET_ADJUST_UNROLL_MAX is defined.
18910 (general_movsrc_operand): Use the C style comment.
18911 (ua_offset): Use prototype.
18913 2005-05-12 Zdenek Dvorak <dvorakz@suse.cz>
18915 * tree-ssa-loop-im.c (struct mem_ref): Add field "next".
18916 (struct hmr_data, hoist_memory_reference, memref_del,
18917 struct fmrv_data): Removed.
18918 (hoist_memory_references, free_mem_ref, free_mem_refs): New functions.
18919 (gather_mem_refs, gather_mem_refs_stmt): Add new references to the
18921 (find_more_ref_vops): Traverse the list of memory references.
18922 (determine_lsm_loop): Work with the list of memory references instead
18923 of traversing the hashtable.
18925 2005-05-12 Steven Bosscher <stevenb@suse.de>
18926 Stuart Hastings <stuart@apple.com>
18927 Jan Hubicka <jh@suse.cz>
18929 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
18930 duplicate_eh_regions): New functions, based on old
18931 implementation removed with RTL inliner.
18932 (reachable_next_level): Modify behaviour pre-inline.
18933 * except.h (duplicate_eh_regions_map, duplicate_eh_regions):
18935 * function.h (struct function): Add after_inlining flag.
18936 * tree-optimize.c (tree_rest_of_compilation): Set it.
18937 * tree-eh.c (add_stmt_to_eh_region_fn): Initialize hashtable
18939 * tree-cfg.c (label_to_block_fn): Deal with cases where
18940 label was never insterted into code.
18942 2005-05-12 Zack Weinberg <zack@codesourcery.com>
18944 * doc/cpp.texi: Document that #sccs is a synonym for #ident.
18946 2005-05-12 Daniel Berlin <dberlin@dberlin.org>
18948 Fix PR tree-optimization/21532
18949 * tree-ssa-pre.c (create_expression_by_pieces): stmt
18950 needs to go onto the inserted_exprs list.
18952 2005-05-12 Ian Lance Taylor <ian@airs.com>
18954 * c-common.h (statement_code_p): Don't declare.
18955 (STATEMENT_CODE_P): Don't define.
18956 (INIT_STATEMENT_CODES): Don't define.
18957 * c-common.c (statement_code_p): Don't define.
18959 2005-05-12 Eric Botcazou <ebotcazou@libertysurf.fr>
18961 * config/sparc/sparc.h: Remove dead code.
18962 * config/sparc/sparc.c (sparc_compute_frame_size): Use
18963 FIRST_PARM_OFFSET for the size of the register window area.
18964 (emit_save_regs): Rename into emit_save_or_restore_regs.
18965 Add 'action' parameter. Use 4095 as upper bound for the offset.
18966 Pass 'action' to save_or_restore_regs.
18967 (emit_restore_regs): Delete.
18968 (sparc_expand_prologue): Call emit_save_or_restore_regs.
18969 (sparc_expand_epilogue): Likewise.
18970 * config/sparc/sparc.md (mode macro P): Move.
18971 (movdi_insn_sp32_v9, movdi_insn_sp32): Swap.
18972 (mov<V32:mode> expander): Move to the top of the V32 section.
18973 (movdf_insn_sp32_v9_no_fpu, movdf_insn_sp32_v9): Swap.
18974 (movtf_insn_sp64_hq, movtf_insn_sp64): Swap.
18975 (sibcall_epilogue): Move.
18977 2005-05-12 Richard Earnshaw <richard.earnshaw@arm.com>
18980 * arm.c (arm_gen_constant): Sign-extend intermediate values when
18981 synthesizing a constant of the difference of two immediates.
18983 2005-05-12 Richard Earnshaw <richard.earnshaw@arm.com>
18985 * arm/vfp.md (negsf2_vfp): Add alternative using integer registers.
18986 (negdf2_vfp): Likewise. Convert to define_insn_and_split and split
18987 the alternatives using integer registers into the appropriate
18990 2005-05-11 Kenneth Zadeck <zadeck@naturalbridge.com>
18992 * bitmap.c (bitmap_elmt_to_freelist, bitmap_element_allocate,
18993 bitmap_elt_clear_from, bitmap_clear): Changed freelist structure.
18994 * bitmap.h: Fixed comments.
18996 2005-05-11 Richard Henderson <rth@redhat.com>
18999 * config/ia64/ia64.c (TARGET_CANNOT_FORCE_CONST_MEM): New.
19000 (ia64_cannot_force_const_mem): New.
19001 (tls_symbolic_operand_type): New.
19002 (ia64_legitimate_constant_p): New.
19003 (ia64_expand_load_address): Return true on success. Improve
19004 checks for when we should not split.
19005 (ia64_expand_tls_address): New addend operand. Distribute it
19006 as appropriate to the tls_kind. Delay referencing gp.
19007 (ia64_expand_move): Split symbolic addend as necessary. Handle
19008 tls symbols with addends.
19009 * config/ia64/ia64-protos.h: Update.
19010 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): False for r0,
19011 p0, f0, f1, and r13.
19012 (LEGITIMATE_CONSTANT_P): Move to ia64_legitimate_constant_p.
19013 * config/ia64/ia64.md (UNSPEC_DTPMOD): New.
19014 (symbolic_operand splitter): Pass everything through
19015 ia64_expand_load_address and FAIL or DONE as appropriate.
19016 (load_fptr): Only accept after reload.
19017 (load_fptr_internal1, gprel64_offset, load_gprel64, load_symptr_high,
19018 load_symptr_low, load_ltoff_dtpmod,
19019 (load_dtpmod): New.
19020 (load_dtprel): Only accept tls symbols.
19021 (load_dtprel64, load_dtprel22): Likewise.
19022 (load_tprel, load_tprel64, load_tprel22): Likewise.
19023 (load_dtprel_gd, load_ltoff_dtprel, load_tprel_ie): New.
19024 (add_dtprel): Only accept tls symbols. Canonicalize PLUS.
19025 (add_dtprel14, add_dtprel22): Likewise.
19026 (add_tprel, add_tprel14, add_tprel22): Likewise.
19027 * config/ia64/predicates.md (small_addr_symbolic_operand): New.
19028 (any_offset_symbol_operand, aligned_offset_symbol_operand): New.
19029 (got_symbolic_operand): Check CONST offsets.
19030 (tls_symbolic_operand, ld_tls_symbolic_operand): New.
19031 (ie_tls_symbolic_operand, le_tls_symbolic_operand): New.
19032 (move_operand): Don't handle tls here. Check CONST offsets.
19034 2005-05-11 Richard Sandiford <rsandifo@redhat.com>
19036 * config/mips/7000.md (rm7_impy_si_mult): Just match imul and imadd.
19037 Remove hilo_operand check.
19038 (rm7_impy_si_mul): Just match imul3. Remove hilo_operand check.
19039 * config/mips/predicates.md (hilo_operand): Delete.
19041 2005-05-11 Richard Sandiford <rsandifo@redhat.com>
19043 * config/mips/sr71k.md, config/mips/7000.md: Reformat.
19045 2005-05-11 Kazu Hirata <kazu@cs.umass.edu>
19047 PR tree-optimizer/18472
19048 * tree-if-conv.c (tree_if_convert_stmt,
19049 if_convertible_modify_expr_p): Don't handle GOTO_EXPR.
19051 2005-05-11 Jan Hubicka <jh@suse.cz>
19053 * Makefile.in (tree-eh.o: Kill gt-tree-eh.h dependency.
19054 (GTFILES): add except.h.
19055 * except.c (eh_status): Add throw_stmt_table.
19056 (set_eh_throw_stmt_table, get_eh_throw_stmt_table): New functions.
19057 * except.h (add_stmt_to_eh_region_fn, remove_stmt_from_eh_region_fn,
19058 lookup_stmt_eh_region_fn): Declare.
19059 (throw_stmt_node): New structure.
19060 (set_eh_throw_stmt_table, get_eh_throw_stmt_table): New.
19061 * gengtype.c (open_base_files): Add except.h to inlines.
19062 * tree-eh.c (throw_stmt_node): Kill.
19063 (record_stmt_eh_region): Update.
19064 (add_stmt_to_eh_region_fn): Break out from ...
19065 (add_stmt_to_eh_region): ... here.
19066 (remove_stmt_from_eh_region_fn): Break out from ...
19067 (remove_stmt_from_eh_region): ... here.
19068 (lookup_stmt_eh_region_fn): Break out from ...
19069 (lookup_stmt_eh_region): ... here.
19070 (honor_protect_cleanup_actions): Use build_resx.
19071 (lower_try_finally_onedest): Likewise.
19072 (lower_try_finally_copy): Likewise.
19073 (lower_try_finally_switch): Likewise.
19074 (lower_eh_constructs): Update eh table construction.
19075 * tree.c (build_resx): New.
19076 * tree.h (build_resx): Declare.
19078 2005-05-11 H.J. Lu <hongjiu.lu@intel.com>
19080 * libgcov.c (gcov_exit): Set prefix_length to 0 if no relocation
19083 2005-05-11 Kazu Hirata <kazu@cs.umass.edu>
19085 * fold-const.c, libgcov.c: Fix comment typos.
19087 * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove
19090 2005-05-11 Daniel Jacobowitz <dan@codesourcery.com>
19092 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
19093 * config/arm/arm.h (SUBTARGET_FRAME_POINTER_REQUIRED): Provide
19094 default definition.
19095 (FRAME_POINTER_REQUIRED): Use SUBTARGET_FRAME_POINTER_REQUIRED.
19097 2005-05-11 Nathan Sidwell <nathan@codesourcery.com>
19100 * crtstuff.c: Include auto-host.h again, for now.
19102 2005-05-11 Richard Sandiford <rsandifo@redhat.com>
19104 * config/mips/24k.md: Remove trailing whitespace.
19106 2005-05-11 David Ung <davidu@mips.com>
19108 * config/mips/mips.md (type): Add imul3.
19109 (length, hazard, may_clobber_hilo): Check for imul3.
19110 (mulsi3_mult3, muldi3_mult3, *muls, <su>mulsi3_highpart_mulhi_internal)
19111 (*<su>mulsi3_highpart_neg_mulhi_internal): Set attr to imul3.
19112 * config/mips/24k.md (r24k_int_mul3): Enable this reservation
19113 for a 3 operand mul and its bypasses.
19114 * config/mips/3000.md (r3k_imul): Add imul3 to reservations.
19115 * config/mips/4000.md (r4k_imul): Likewise.
19116 * config/mips/4100.md (r4100_imul_si, r4100_imul_di): Likewise.
19117 * config/mips/4130.md (vr4130_class, vr4130_mulsi)
19118 (vr4130_muldi): Likewise.
19119 * config/mips/4300.md (r4300_imul_si, r4300_imul_di): Likewise.
19120 * config/mips/4600.md (r4600_imul, r4650_imul): Likewise.
19121 * config/mips/5000.md (r5k_imul_si, r5k_imul_di): Likewise.
19122 * config/mips/5400.md (ir_vr54_imul_si, ir_vr54_imul_di)
19123 (ir_vr54_imadd_si): Likewise.
19124 * config/mips/5500.md (ir_vr55_imul_si, ir_vr55_imul_di): Likewise.
19125 * config/mips/7000.md (rm7_impy_si_mult, rm7_impy_si_mul)
19126 (rm7_impy_di): Likewise.
19127 * config/mips/9000.md (rm9k_mulsi, rm9k_muldi): Likewise.
19128 * config/mips/generic.md (generic_imul): Likewise.
19129 * config/mips/sb1.md (ir_sb1_mulsi, ir_sb1_muldi): Likewise.
19130 * config/mips/sr71k.md (ir_sr70_imul_si, ir_sr70_imul_di): Likewise.
19132 2005-05-11 J"orn Rennecke <joern.rennecke@st.com>
19134 PR middle-end/20371:
19135 * tree.h (record_layout_info_s): New member prev_packed.
19136 * stor-layout.c (update_alignment_for_field): Fix comment about
19137 KNOWN_ALIGN. For MS bitfields, if we start a new run, make sure
19138 we start it properly aligned.
19139 (place_field): At the beginning of a record, pass 0 as KNOWN_ALIGN
19140 to update_alignment_for_field, and recompute it afterwards using
19141 the alignment of the record.
19142 When a packed bitfield precedes an MS bitfield, don't add padding
19143 at the end of the packed bitfield on behalf of the base type of
19144 the packed bit field.
19145 Don't adjust rli->bitpos at the end
19146 of an MS bitfield run if we already adjusted bitpos/offset for an
19147 alignment as large or larger than the bitfield type size.
19148 Take possible record alignment > BIGGEST_ALIGNMENT into account
19149 when calculating actual_align.
19150 Only put packed buit fields into rli->prev_field if they end up
19152 Also set rli->remaining_in_alignment when we re-set rli->prev_field.
19153 Update rli->remaining_in_alignment when we have already started a
19154 run of bit fields and we process a packed bit field.
19156 2005-05-11 Sebastian Pop <pop@cri.ensmp.fr>
19158 * tree-data-ref.c (find_data_references_in_loop): Give up when
19159 the body of the loop contains a CALL_EXPR or an ASM_EXPR: they
19160 may embed arbitrary side effects.
19161 Remove the assumption that GIMPLE form contains a single array
19162 access per statement.
19163 When the statement contains virtual operands, fail if it is not
19164 a MODIFY_EXPR or a CALL_EXPR.
19165 Return after the dont know node is inserted.
19167 2005-05-11 Richard Earnshaw <richard.earnshaw@arm.com>
19169 * arm.md (negsf2, negdf2): Permit these expands when compiling for VFP.
19171 2005-05-11 Richard Guenther <rguenth@gcc.gnu.org>
19173 PR middle-end/19807
19174 PR tree-optimization/19639
19175 * fold-const.c (try_move_mult_to_index): Handle INTEGER_CST
19176 and generic summands for char* as s * delta, too, folding &a[i]
19177 CODE x to &a[i CODE x/s]. Use tree_int_cst_equal
19178 for comparison of steps. Convert types for index addition.
19179 (fold_binary): Adjust the callers to always dispatch to
19180 try_move_mult_to_index.
19181 * tree-ssa-propagate.c (set_rhs): Avoid setting rhs to
19182 expr with non-gimple ARRAY_REF offset.
19184 2005-05-11 Richard Guenther <rguenth@gcc.gnu.org>
19186 * fold-const.c (fold_indirect_ref_1): Avoid removing
19187 NOP_EXPRs with type qualifiers like const.
19189 2005-05-11 Richard Henderson <rth@redhat.com>
19192 * c-decl.c (finish_decl): Propagate the completed array type of
19193 a global variable into the binding.
19195 2005-05-10 Matt Kraai <kraai@ftbfs.org>
19197 * Makefile.in (gtype-desc.o, build/genautomata.o)
19198 (build/varray.o): Depend on $(VARRAY_H).
19200 2005-05-10 Diego Novillo <dnovillo@redhat.com>
19202 * tree-optimize.c (init_tree_optimization_passes): Re-organize
19203 optimization passes to do an initial batch of scalar cleanups.
19205 2005-05-10 Ian Lance Taylor <ian@airs.com>
19207 * read-rtl.c (struct macro_traverse_data): Define.
19208 (map_attr_string): New static function, broken out of
19209 apply_macro_to_string.
19210 (mode_attr_index, apply_mode_maps): New static functions.
19211 (apply_macro_to_string): Call map_attr_string.
19212 (apply_macro_to_rtx): Add mode_maps and infile parameters. Change
19214 (apply_macro_traverse): Expect data to point to a struct
19215 macro_traverse_data.
19216 (read_rtx): Add mode_maps local variable. Use mode_traverse_data
19217 to pass data through htab_traverse.
19218 (read_rtx_1): Add mode_maps parameter. Change all callers.
19219 Handle mode names which are attribute strings.
19220 * doc/md.texi (Substitutions): Rename from String Substitutions.
19221 Change references. Document using attributes as modes.
19223 2005-05-10 Zdenek Dvorak <dvorakz@suse.cz>
19225 * tree-cfg.c (tree_duplicate_sese_region): Update profile.
19226 * tree-optimize.c (init_tree_optimization_passes) Swap
19227 pass_ch and pass_profile.
19228 * tree-ssa-loop-ch.c (copy_loop_headers): Do not update profile
19229 here. Remove rewrite_into_loop_closed_ssa call.
19231 2005-05-10 Adrian Straetling <straetling@de.ibm.com>
19233 * config/s390/s390.c: (s390_const_double_ok_for_constraint_p): New
19235 (legitimate_reload_constant_p): Add check for const double zero.
19236 * config/s390/s390.md: Add comment for constraint letter 'G'.
19237 ("*movdf_64", "*movdf_31", "movsf"): Add constraint and proper
19238 attributes for new case.
19239 * config/s390/s390.h: (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Define it as
19240 s390_const_double_ok_for_constraint_p.
19241 * config/s390/s390-protos.h (s390_const_double_ok_for_constraint_p):
19244 2005-05-10 Kazu Hirata <kazu@cs.umass.edu>
19246 PR tree-optimization/21170
19247 * tree-ssa-dom.c, tree-ssa-threadupdate.c: Replace
19248 rewrite_ssa_into_ssa in comments with update_ssa.
19250 2005-05-10 Zdenek Dvorak <dvorakz@suse.cz>
19252 * tree-ssa-loop-im.c: Include hashtab.h.
19253 (struct mem_ref_loc): New.
19254 (struct mem_ref): Describe the set of references with the same
19256 (max_stmt_uid, get_stmt_uid, record_mem_ref, free_mem_refs,
19257 maybe_queue_var, fem_single_reachable_address,
19258 for_each_memref, single_reachable_address,
19259 is_call_clobbered_ref, determine_lsm_reg): Removed.
19260 (record_mem_ref_loc, free_mem_ref_locs, determine_lsm_ref,
19261 hoist_memory_reference, memref_hash, memref_eq, memref_del,
19262 gather_mem_refs_stmt, gather_mem_refs, find_more_ref_vops):
19264 (rewrite_mem_refs, schedule_sm): Use mem_ref_loc list.
19265 (determine_lsm_loop): Rewritten.
19266 (determine_lsm): Do not set stmt uids.
19268 2005-05-10 Adrian Straetling <straetling@de.ibm.com>
19270 * config/s390/s390.md: Add comment lines for 'f' and 't' constraint
19273 2005-05-10 Adrian Straetling <straetling@de.ibm.com>
19275 * config/s390/s390.md: ("anddi3","andsi3","andhi3","andqi3"): Merge.
19276 ("iordi3", "iorsi3", "iorhi3", "iorqi3"): Merge.
19277 ("xordi3", "xorsi3", "xorhi3", "xorqi3"): Merge.
19279 2005-05-10 Jeff Law <law@redhat.com>
19281 * tree-ssa-dom.c (dom_opt_finalize_block): Do not call
19282 thread_across_edge for any abnormal edges.
19284 2005-05-10 Richard Henderson <rth@redhat.com>
19286 * config/ia64/ia64.c (ia64_expand_atomic_op): New.
19287 * config/ia64/ia64-protos.h: Declare it.
19288 * config/ia64/sync.md (I124MODE, FETCHOP, fetchop_name): New.
19289 (sync_add<I48MODE>, sync_old_add<I48MODE>): Remove.
19290 (sync_<FETCHOP><IMODE>, sync_nand<IMODE>): New.
19291 (sync_old_<FETCHOP><IMODE>, sync_old_nand<IMODE>): New.
19292 (sync_new_<FETCHOP><IMODE>, sync_new_nand<IMODE>): New.
19293 (cmpxchg_rel_<I124MODE>): Split from cmpxchg_acq_<IMODE>. Zero
19294 extend result; use release semantics.
19295 (cmpxchg_rel_di): Rename from cmpxchg_acq_<IMODE>; use release.
19296 (sync_val_compare_and_swap_<IMODE>): Update to match.
19298 2005-05-10 Richard Henderson <rth@redhat.com>
19300 * optabs.c (expand_compare_and_swap_loop): Don't clobber old value
19301 before comparing it for success.
19303 2005-05-10 Richard Henderson <rth@redhat.com>
19305 * config/ia64/sync.md (sync_add<I48MODE>): Fix arguments for
19306 no return value pattern.
19308 2005-05-10 Grigory Zagorodnev <grigory.zagorodnev@intel.com>
19309 H.J. Lu <hongjiu.lu@intel.com>
19311 * libgcov.c (create_file_directory): New function. Create
19312 directory for the given file name.
19313 (gcov_max_filename): New static var. Keeps size of the longest
19315 (gcov_exit): Always try to create directory for output
19316 file. Relocate each filename basing on environment vars.
19317 (__gcov_init): Remember the longest file name.
19318 * tsystem.h: include filenames.h to get IS_DIR_SEPARATOR
19319 * doc/gcov.texi (Cross-profiling): New node documenting
19320 cross-profiling management.
19321 * doc/invoke.texi (-fprofile-arcs): Add xref to cross-profiling.
19323 2005-05-10 Eric Botcazou <ebotcazou@libertysurf.fr>
19325 * config/sparc/sparc.c (mem_min_alignment): Do not rely
19326 on MEM_ALIGN if TARGET_UNALIGNED_DOUBLES.
19328 2005-05-10 Bob Wilson <bob.wilson@acm.org>
19330 * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Rearrange special
19331 case code to avoid one move instruction.
19332 (__umodsi3, __modsi3): Merge duplicated code sequences.
19334 2005-05-10 Kazu Hirata <kazu@cs.umass.edu>
19336 * config/mips/24k.md, config/sh/divtab.c, config/sh/sh.c,
19337 config/sh/sh.md, config/sh/superh.h: Fix comment typos.
19338 * doc/invoke.texi: Fix typos.
19340 * tree-data-ref.c (analyze_array_indexes, analyze_array,
19341 init_data_ref, access_functions_are_affine_or_constant_p,
19342 free_data_refs): Use VEC instead of VARRAY.
19343 * tree-data-ref.h (data_reference): Change the type of
19344 access_fns to VEC(tree,gc)*.
19345 (DR_ACCESS_FN, DR_NUM_DIMENSIONS): Use VEC instead of VARRAY.
19347 2005-05-10 Gabor Loki <loki@gcc.gnu.org>
19350 * c-typeck.c (build_conditional_expr): Remove reducing cond_expr.
19351 * fold-const.c (fold): Expand the condition of reducing cond_expr.
19352 (contains_label_1, contains_label_p): New functions for checking
19353 labels in a sub-tree.
19355 2005-05-10 Joseph S. Myers <joseph@codesourcery.com>
19358 * c-decl.c (pushdecl): When there is a declaration in the current
19359 scope and the declarations are external linkage, check for
19360 compatibility with the type in the external scope and update the
19361 type in the external scope with the composite type information.
19362 Do not form a composite type of the new type and the visible type
19363 if they are incompatible.
19365 2005-05-10 Nathan Sidwell <nathan@codesourcery.com>
19367 * crtstuff.c: Revert part of 2005-05-08 Change.
19368 (IN_LIBGCC2): Define.
19370 2005-05-10 Eric Botcazou <ebotcazou@libertysurf.fr>
19372 * config/sparc/sparc.c (fp_sethi_p): Test !SPARC_SIMM13_P and
19373 remove redundant test.
19374 (fp_mov_p): Accept 0.
19375 (fp_high_losum_p): Remove redundant test.
19376 * config/sparc/predicates.md (const_high_operand): Explicitly test
19377 (not small_int_operand).
19378 (fp_const_high_losum_operand): New.
19379 * config/sparc/sparc.md (movsi_insn): Do not emit 'clr'. Reorder.
19380 (movdi_insn_sp32_v9): Use canonical predicates.
19381 (movdi_insn_sp32): Test !TARGET_V9 instead of !TARGET_ARCH64.
19382 (movdi_insn_sp64_novis): Delete.
19383 (movdi_insn_sp64_vis): Rename into movdi_insn_sp64.
19384 (movsf_insn_novis): Delete.
19385 (movsf_insn_vis): Rename into movsf_insn.
19386 (movsf_no_f_insn): Rename into movsf_insn_no_fpu.
19387 (movsf_lo_sum): Use fp_const_high_losum_operand.
19388 (movsf_high): Likewise.
19389 (movsf_high_losum splitter): Likewise.
19390 (mov<V32:mode> expander): Use register_or_zero_operand.
19391 (mov<V64:mode> expander): Likewise.
19392 (movdf_insn_sp32): Use register_or_zero_operand.
19393 (movdf_no_e_insn_sp32): Use register_or_zero_operand.
19394 Rename into movdf_insn_sp32_no_fpu.
19395 (movdf_no_e_insn_v9_sp32): Use register_or_zero_operand.
19396 Rename into movdf_insn_sp32_v9_no_fpu.
19397 (movdf_insn_v9only_novis): Delete.
19398 (movdf_insn_v9only_vis): Rename into movdf_insn_sp32_v9.
19399 (movdf_insn_sp64_novis): Delete.
19400 (movdf_insn_sp64_vis): Rename into movdf_insn_sp64.
19401 (movdf_no_e_insn_sp64): Use register_or_zero_operand.
19402 Rename into movdf_insn_sp64_no_fpu.
19403 (movtf expander): Use register_or_zero_operand.
19404 (movtf_insn_sp32): Delete.
19405 (movtf_insn_vis_sp32): Use register_or_zero_operand.
19406 Rename into movtf_insn_sp32.
19407 (movtf_no_e_insn_sp32): Use register_or_zero_operand.
19408 Rename into movtf_insn_sp32_no_fpu.
19409 (movtf_insn_hq_sp64): Delete.
19410 (movtf_insn_hq_vis_sp64): Use register_or_zero_operand.
19411 Rename into movtf_insn_sp64_hq.
19412 (movtf_insn_sp64): Delete.
19413 (movtf_insn_vis_sp64): Use register_or_zero_operand.
19414 Rename into movtf_insn_sp64.
19415 (movtf_no_e_insn_sp64): Use register_or_zero_operand.
19416 Rename into movtf_insn_sp64_no_fpu.
19418 2005-05-10 Nathan Sidwell <nathan@codesourcery.com>
19420 * config/stormy16/stormy16.c (xstormy16_emit_cbranch): Use
19421 gcc_assert and gcc_unreachable as appropriate.
19422 (xstormy16_split_cbranch, xstormy16_output_cbranch_hi,
19423 xstormy16_output_cbranch_si, xstormy16_split_move,
19424 xstormy16_initial_elimination_offset,
19425 xstormy16_encode_section_info, xstormy16_print_operand_address,
19426 xstormy16_expand_call, xstormy16_expand_arith,
19427 xstormy16_output_shift, xstormy16_init_builtins): Likewise.
19429 2005-05-10 Kazu Hirata <kazu@cs.umass.edu>
19431 * tree-outof-ssa.c (_elim_graph): Change the type of nodes and
19432 const_copies to VEC(tree,heap)*.
19433 (new_elim_graph, delete_elim_graph, elim_graph_size,
19434 elim_graph_add_node, eliminate_build, eliminate_phi): Use VEC
19437 2005-05-10 Joseph S. Myers <joseph@codesourcery.com>
19440 * doc/extend.texi (Type Attributes): Correct example syntax.
19442 2005-05-09 Joseph S. Myers <joseph@codesourcery.com>
19445 * doc/invoke.texi (-Wuninitialized): Update documentation.
19447 2005-05-09 Richard Earnshaw <richard.earnshaw@arm.com>
19449 * arm.c (const_ok_for_arm): Use a faster algorithm.
19451 2005-05-09 David Edelsohn <edelsohn@gnu.org>
19454 * config/rs6000/rs6000.md (add_op2): New.
19455 (add<mode>3): Use it.
19457 2005-05-09 Richard Earnshaw <richard.earnshaw@arm.com>
19459 * arm.c (arm_gen_constant): Add new heuristic for generating
19460 constant integers that can be expressed as the difference of two
19463 2005-05-09 Roger Sayle <roger@eyesopen.com>
19465 * c-tree.h (parser_build_unary_op): New prototype.
19466 * c-typeck.c (parser_build_unary_op): New function to construct
19467 a unary operation in the C parser.
19468 * c-parser.c (c_parser_unary_expression): Use the new function
19469 parser_build_unary_op when appropriate.
19471 2005-05-09 Mark Mitchell <mark@codesourcery.com>
19474 * dwarf2out.c (output_call_frame_info): Use DWARF2_FRAME_REG_OUT
19475 before outputting DWARF_FRAME_RETURN_COLUMN.
19477 2005-05-09 Adrian Straetling <straetling@de.ibm.com>
19479 * config/s390/s390.c: (s390_branch_condition_mask,
19480 s390_branch_condition_mnemonic, s390_extra_constraint_str,
19481 s390_const_ok_for_constraint_p, s390_expand_plus_operand,
19482 legitimize_pic_address, s390_emit_tls_call_insn,
19483 legitimize_tls_address, legitimize_tls_address,
19484 s390_expand_addcc, print_shift_count_operand, print_operand,
19485 addr_generation_dependency_p, annotate_constant_pool_refs,
19486 s390_split_branches, find_constant_pool_ref,
19487 replace_constant_pool_ref, s390_add_constant, s390_find_constant,
19488 s390_find_execute, s390_mainpool_start, s390_chunkify_start,
19489 s390_output_pool_entry, s390_function_value,
19490 s390_call_saved_register_used, s390_emit_call): Replace
19491 conditional aborts by gcc_assert and unconditional by gcc_unreachable.
19492 (s390_select_ccmode, s390_match_ccmode_set, s390_extract_part,
19493 s390_cannot_force_const_mem, s390_output_dwarf_dtprel,
19494 get_some_local_dynamic_name, s390_function_arg_size,
19495 s390_function_arg_advance, s390_function_arg,
19496 s390_expand_builtin, s390_gen_rtx_const_DI): Replace abort in
19497 default case by gcc_unreachable.
19498 * config/s390/s390.md: ("*cjump_31", "*icjump_31", "*jump31"): Replace
19499 conditional abort by gcc_assert.
19500 ("doloop_si31"): Replace abort in last else by gcc_unreachable.
19501 ("main_pool", "pool"): Replace unconditional abort by gcc_unreachable.
19503 2005-05-09 Adrian Straetling <straetling@de.ibm.com>
19505 * config/s390/s390.c: (s390_decompose_address,
19506 tls_symbolic_operand, legitimate_pic_operand_p,
19507 legitimate_constant_p, legitimate_reload_constant_p,
19508 s390_expand_plus_operand, legitimate_address_p,
19509 legitimate_la_operand_p, ): Remove 'register' from signature.
19510 (symbolic_reference_mentioned_p,
19511 tls_symbolic_reference_mentioned_p): Remove 'register' from local
19512 variable declarations.
19513 (legitimize_address): Remove 'register' from
19514 signature and local variable declarations.
19516 2005-05-09 Adrian Straetling <straetling@de.ibm.com>
19518 * config/s390/s390-protos.h: (s390_match_ccmode,
19519 s390_match_ccmode_set, reg_used_in_mem_p,
19520 symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
19521 legitimate_la_operand_p, preferred_la_operand_p,
19522 s390_short_displacement, addr_generation_dependency_p,
19523 legitimate_reload_constant_p, legitimate_address_p): Change return type
19525 (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'.
19526 * config/s390/s390.c: (s390_match_ccmode,
19527 symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
19528 legitimate_reload_constant_p): Change return type into 'bool'.
19529 (preferred_la_operand_p,legitimate_la_operand_p, legitimate_address_p):
19530 Likewise. Additionally adapted comment.
19531 (s390_extra_constraint_p): Change Comment to reflect 'int' return type.
19532 (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'.
19533 (s390_decompose_address): Change the type of the internal flags
19534 "pointer", "base_ptr", "indx_ptr", and the return value into 'bool'.
19535 (struct s390_address): Change type of "pointer" into bool.
19536 * config/s390/s390.md: ("*tmdi_reg", "*tmsi_reg", "tm<mode>_full"):
19537 Adapt calls for 's390_tm_ccmode' to the new signature.
19539 2005-05-09 Adrian Straetling <straetling@de.ibm.com>
19541 * config/s390/s390.c: (s390_match_ccmode_set,
19542 s390_branch_condition_mnemonic, s390_short_displacement,
19543 s390_decompose_address, get_thread_pointer, legitimize_tls_address,
19544 print_shift_count_operand, get_some_local_dynamic_name,
19545 get_some_local_dynamic_name_1, reg_used_in_mem_p,
19546 addr_generation_dependency_p, s390_split_branches,
19547 annotate_constant_pool_refs, find_constant_pool_ref,
19548 replace_constant_pool_ref, find_ltrel_base, replace_ltrel_base,
19549 s390_optimize_prologue, find_unused_clobbered_reg, s390_frame_area,
19550 s390_register_info, s390_frame_info, s390_init_frame_layout,
19551 s390_update_frame_layout, save_fpr, restore_fpr, save_gprs,
19552 restore_gprs, s390_function_arg_size, s390_function_arg_float,
19553 s390_init_machine_status, s390_assemble_integer, s390_handle_option,
19554 s390_encode_section_info, s390_cannot_force_const_mem,
19555 s390_delegitimize_address, s390_return_in_memory, s390_init_builtins,
19556 s390_expand_builtin, s390_output_mi_thunk, s390_safe_attr_type,
19557 s390_adjust_priority, s390_issue_rate,
19558 s390_first_cycle_multipass_dfa_lookahead, s390_cannot_copy_insn_p,
19559 s390_rtx_costs, s390_address_cost, s390_reorg, s390_valid_pointer_mode,
19560 s390_build_builtin_va_list, s390_gimplify_va_arg,
19561 s390_function_ok_for_sibcall, s390_call_saved_register_used,
19562 s390_pass_by_reference, s390_fixed_condition_code_regs,
19563 s390_cc_modes_compatible s390_mainpool_start,, s390_mainpool_finish,
19564 s390_mainpool_cancel, s390_chunkify_start, s390_chunkify_finish,
19565 s390_chunkify_cancel, s390_start_pool, s390_end_pool,
19566 s390_add_pool_insn, s390_find_pool, s390_add_constant,
19567 s390_find_constant, s390_add_execute, s390_find_execute,
19568 s390_execute_label, s390_execute_target, s390_dump_pool,
19569 s390_dump_execute, s390_alloc_pool, s390_free_pool): Remove prototypes.
19570 Move target macro definitions to the end of the file. Move several
19571 functions within the file to assure correct compiling.
19573 2005-05-09 Steven Bosscher <stevenb@suse.de>
19575 * calls.c (purge_reg_equiv_notes): Remove, fold into...
19576 (fixup_tail_calls): ...here. Only look at insns between the
19577 start of the function and the FUNCTION_BEG insn note.
19579 * gcse.c (one_cprop_pass): Fix typos in dumps.
19581 * tree-ssa-operands.h (FOR_EACH_PHI_ARG): Fix typos.
19583 2005-05-09 Adrian Straetling <straetling@de.ibm.com>
19585 * config/s390/s390.h: Move xxx_REGNUM definitions to s390.md.
19586 * config/s390/s390.md: ("SIBCALL_REGNUM", "BASE_REGNUM",
19587 "RETURN_REGNUM", "CC_REGNUM", "TP_REGNUM"): New constants.
19588 Replace every occurrence of '(reg:<MODE> 33)' by '(reg:<MODE>
19590 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Replace
19591 '(reg:<MODE> 36)' by '(reg:<MODE> TP_REGNUM)'.
19592 ("*sibcall_br", "*sibcall_value_br"): Replace '(reg:DI 1)' by '(reg:DI
19595 2005-05-09 Adrian Straetling <straetling@de.ibm.com>
19597 * config/s390/s390.md: ("gf") New mode attribute.
19598 ("fixuns_truncdfdi2", "fixuns_truncdfsi2", "fixuns_truncsfdi2",
19599 "fixuns_truncsfsi2"): Merge.
19600 ("fix_truncdfdi2", "fix_truncsfdi2"): Merge.
19601 ("fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee", "fix_truncsfdi2_ieee",
19602 "fix_truncsfsi2_ieee"): Merge.
19604 2005-05-09 Adrian Straetling <straetling@de.ibm.com>
19606 * config/s390/s390.md: ("FPR") New mode macro.
19607 ("de", "dee"): New mode attributes.
19608 ("cmpdf", "cmpsf"): Merge.
19609 ("*cmpdf_ccs_0", "*cmpsf_ccs_0"): Merge.
19610 ("*cmpdf_ccs_0_ibm", "*cmpdf_ccs_0_ibm"): Merge.
19611 ("*cmpdf_ccs", "*cmpsf_ccs"): Merge.
19612 ("*cmpdf_ccs_ibm", "*cmpsf_ccs_ibm"): Merge.
19613 ("floatdidf2", "floatdisf2"): Merge.
19614 ("adddf3", "addsf3"): Merge.
19615 ("*adddf3", "*addsf3"): Merge.
19616 ("*adddf3_cc", "*addsf3_cc"): Merge.
19617 ("*adddf3_cconly", "*addsf3_cconly"): Merge.
19618 ("*adddf3_ibm", "*addsf3_ibm"): Merge.
19619 ("subdf3", "subsf3"): Merge.
19620 ("*subdf3", "*subsf3"): Merge.
19621 ("*subdf3_cc", "*subsf3_cc"): Merge.
19622 ("*subdf3_cconly", "*subsf3_cconly"): Merge.
19623 ("*subdf3_ibm", "*subsf3_ibm"): Merge.
19624 ("muldf3", "mulsf3"): Merge.
19625 ("*muldf3", "*mulsf3" "): Merge.
19626 ("*muldf3_ibm", "*mulsf3_ibm"): Merge.
19627 ("*fmadddf", "*fmaddsf"): Merge.
19628 ("*fmsubdf", "*fmsubsf"): Merge.
19629 ("divdf3", "divsf3"): Merge.
19630 ("*divdf3", "*divsf3"): Merge.
19631 ("*divdf3_ibm", "*divsf3_ibm"): Merge.
19632 ("negdf2", "negsf2"): Merge.
19633 ("*negdf2_cc", "*negsf2_cc"): Merge.
19634 ("*negdf2_cconly", "*negsf2_cconly"): Merge.
19635 ("*negdf2", "*negsf2"): Merge.
19636 ("*negdf2_ibm", "*negsf2_ibm"): Merge.
19637 ("absdf2", "abssf2"): Merge.
19638 ("*absdf2_cc", "*abssf2_cc"): Merge.
19639 ("*absdf2_cconly", "*abssf2_cconly"): Merge.
19640 ("*absdf2", "*abssf2"): Merge.
19641 ("*absdf2_ibm", "*abssf2_ibm"): Merge.
19642 ("*negabsdf2_cc", "*negabssf2_cc"): Merge.
19643 ("*negabsdf2_cconly", "*negabssf2_cconly"): Merge.
19644 ("*negabsdf2", "*negabssf2"): Merge.
19645 ("sqrtdf2", "sqrtsf2"): Merge.
19647 2005-05-09 Adrian Straetling <straetling@de.ibm.com>
19649 * config/s390/s390.c: (s390_adjust_priority): Adapt to changed
19651 * config/s390/2084.md: ("x_fsimpd", "x_fsimps", "x_fdivd", "x_fdivs",
19652 "x_floadd", "x_floads", "x_fstored", "x_fstores"): Rename to
19653 ("x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
19654 "x_floadsf", "x_fstoredf", "x_fstoresf") and replace 'type'
19656 * config/s390/s390.md: ("type"): Rename "fsimpd, fsimps, floadd, floads,
19657 fstored, fstores, fmuld, fmuls, fdivd, fdivs, fsqrtd, fsqrts" to
19658 "fsimpdf, fsimpsf, floaddf, floadsf, fstoredf, fstoresf, fmuldf,
19659 fmulsf, fdivdf, fdivsf, fsqrtdf, fsqrtsf".
19660 ("*cmpdf_ccs_0", "*cmpdf_css_0_ibm", "*cmpdf_ccs",
19661 "*cmpdf_ccs_ibm", "*cmpsf_ccs_0", "*cmpsf_css_0_ibm",
19662 "*cmpsf_ccs", "*cmpsf_ccs_ibm", "*movdi_64", "*movdi_31",
19663 "*movsi_zarch", "*movsi_esa", "*movdf_64", "*movdf_31", "movsf",
19664 "*muldf3", "*muldf3_ibm", "*fmadddf", "*fmsubdf", "*mulsf3",
19665 "mulsf3_ibm", "*fmaddsf", "fmsubsf", "*divdf3", "*divdf3_ibm",
19666 "*negdf2_cc", "*negdf2_cconly", "*negdf2", "*negdf2_ibm",
19667 "*negsf2_cc", "*negsf2_cconly", "*negsf2", "*absdf2_cc",
19668 "*absdf2_cconly", "*absdf2", "*absdf2_ibm", "*abssf2_cc",
19669 "*abssf2_cconly", "*abssf2", "*abssf2_ibm", "*negabsdf2_cc",
19670 "*negabsdf2_cconly", "*negabsdf2", "*negabssf2_cc",
19671 "*negabssf2_cconly", "*negabssf2", "sqrtdf2", "sqrtsf2"): Rename
19673 ("*divsf3"): Additionally rename second pattern to
19675 ("truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
19676 "*adddf3", "*adddf3_cc", "*adddf3_cconly", "*adddf3_ibm",
19677 "*addsf3", "*addsf3_cc", "*addsf3_cconly", "*subdf3",
19678 "subdf3_cc", "*subdf3_cconly", "*subdf3_ibm", "*subsf3",
19679 "subsf3_cc", "*subsf3_cconly", "*subsf3_ibm"): Merge identical
19680 'type values' and rename 'type' value.
19681 ("*addsf3"): Additionally rename second pattern to
19684 2005-05-09 Adrian Straetling <straetling@de.ibm.com>
19686 * config/s390/s390.md: ("SHIFT"): New mode macro.
19687 ("lr", "shift"): New mode attributes.
19688 ("ashldi3", "lshrdi3"): Merge.
19689 ("*ashldi3_31", "*lshrdi3"_31): Merge.
19690 ("*ashldi3_64", "*lshrdi3"_64): Merge.
19691 ("ashlsi3", "lshrsi3"): Merge.
19693 2005-05-09 Adrian Straetling <straetling@de.ibm.com>
19695 * config/s390/s390.md: ("DSI", "SCOND"): New mode
19697 ("E", "g"): New mode attributes.
19698 ("*adddi3_alc_cc", "*addsi3_alc_cc"): Merge.
19699 ("*adddi3_alc", "*addsi3_alc"): Merge.
19700 ("*subdi3_slb_cc", "*subsi3_slb_cc"): Merge.
19701 ("*subdi3_slb", "*subsi3_slb"): Merge.
19702 ("adddicc", "addsicc"): Merge.
19703 ("*sconddi", "*scondsi"): Merge.
19704 ("*sconddi_neg", "*scondsi_neg"): Merge.
19705 ("sltu", "sgtu", "sleu", "sgeu"): Merge.
19706 ("negdi2", "negsi2"): Extract expander pattern from
19707 "negsi2" and merge with "negdi2".
19708 ("*negdi2"): Merge with instruction pattern of "negsi2".
19709 ("*negdi2_cc", "*negsi2_cc"): Merge.
19710 ("*negdi2_cconly", "*negsi2_cconly"): Merge.
19711 ("rotldi3", "rotlsi3"): Merge.
19713 2005-05-09 Adrian Straetling <straetling@de.ibm.com>
19715 * config/s390/s390.md: ("hc"): New mode attribute.
19716 ("extendhidi2", "extendqidi2"): Merge.
19717 ("*extendhidi2", "*extendqidi2"): Merge.
19718 ("extendhisi2", "extendqisi2"): Merge.
19719 ("zero_extendhidi2", "zero_extendqidi2"): Merge.
19720 ("*zero_extendhidi2", "*zero_extendqidi2"): Merge.
19721 Merged 2 define_split.
19722 ("*zero_extendhisi2", "*zero_extendqisi2"): Merge.
19723 ("*zero_extendhisi2_64", "*zero_extendqisi2_64"): Merge.
19725 2005-05-09 Adrian Straetling <straetling@de.ibm.com>
19727 * config/s390/s390.md: ("COMPARE"): New mode macro.
19728 ("beq", "bne", "bgt", "bgtu", "blt", "bltu", "bge", "bgeu",
19729 "ble", "bleu", "bunordered", "bordered", "buneq", "bunlt",
19730 "bungt", "bunle", "bunge", "bltgt"): Merge.
19732 2005-05-09 Adrian Straetling <straetling@de.ibm.com>
19734 * config/s390/s390.md: ("INT"): New mode macro.
19735 ("one_cmpldi2", "one_cmplsi2", "one_cmplhi2", "one_cmplqi2"):
19738 2005-05-09 Adrian Straetling <straetling@de.ibm.com>
19740 * config/s390/s390.md: ("GPR", "P"): New mode macros.
19741 ("cmpdi", "cmpsi"): Merge.
19742 ("strlendi", "strlensi"): Merge.
19743 ("*strlendi", "*strlensi"): Merge.
19744 ("movmemdi", "movmemsi"): Merge.
19745 ("clrmemdi", "clrmemsi"): Merge.
19747 2005-05-09 Adrian Straetling <straetling@de.ibm.com>
19749 * config/s390/s390.md: ("HQI"): New mode macro.
19750 ("icm_lo", "icm_hi", "max_uint"): New mode attributes.
19751 ("*tmhi_full", "*tmqi_full"): Merge.
19752 ("*tsthiCCT", "*tstqiCCT"): Merge.
19753 ("*tsthi", "*tstqi"): Merge.
19754 ("*tsthi_cconly", "tstqi_cconly"): Merge.
19755 ("*sethighhisi", "*sethighqisi"): Merge.
19757 2005-05-09 Kazu Hirata <kazu@cs.umass.edu>
19759 * crtstuff.c, integrate.h, tree-scalar-evolution.h,
19760 config/alpha/unicosmk.h, config/arc/arc.md,
19761 config/arm/bpabi.h, config/arm/coff.h, config/arm/elf.h,
19762 config/arm/ieee754-df.S, config/arm/ieee754-sf.S,
19763 config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
19764 config/arm/semi.h, config/arm/uclinux-elf.h,
19765 config/arm/wince-pe.h, config/fr30/fr30.c,
19766 config/rs6000/altivec.h: Update copyright.
19768 2005-05-09 Nathan Sidwell <nathan@codesourcery.com>
19770 * config/pdp11/pdp11.c (pdp11_output_function_prologue): Use
19771 gcc_assert and gcc_unreachable as appropriate.
19772 (pdp11_output_function_epilogue, output_move_double,
19773 output_move_quad, print_operand_address, output_jump,
19774 output_addr_const_pdp11): Likewise.
19775 * config/pdp11/pdp11.h (FUNCTION_PROFILER,
19776 ASM_OUTPUT_ALIGN): Likewise.
19777 * config/pdp11/pdp11.md: Likewise.
19778 (extendhisi2, subhi3, subqi3): Likewise.
19780 2005-05-09 David Edelsohn <edelsohn@gnu.org>
19782 PR middle-end/21237
19783 * dojump.c (do_jump, MINUS_EXPR): Build NE_EXPR and fall through
19786 2005-05-09 Kazu Hirata <kazu@cs.umass.edu>
19788 * config/ia64/ia64.c: Fix a comment typo.
19790 2005-05-09 Richard Earnshaw <rearnsha@arm.com>
19793 * arm.c (ARM_OPT_SET_CPU, ARM_OPT_SET_ARCH, ARM_OPT_SET_TUNE): Define.
19794 (arm_override_options): Use them instead of manifest constants. Don't
19795 allow -march to override the -mtune setting.
19797 2005-05-09 Nathan Sidwell <nathan@codesourcery.com>
19799 * config/iq2000/iq2000.c (abort_with_insn): Use fancy_abort.
19800 (gen_int_relational): Use gcc_unreachable and gcc_assert as necessary.
19801 (function_arg_advance, function_arg, save_restore_insns,
19802 iq2000_expand_prologue, iq2000_output_conditional_branch,
19803 expand_one_builtin, print_operand):
19804 * config/iq2000/iq2000.md (tablejump): Likewise.
19806 2005-05-09 David Ung <davidu@mips.com>
19808 * config/mips/mips.h (processor_type): Add names for the 24K.
19809 * config/mips/mips.c (mips_cpu_info_table): Add names for the 24K
19811 * config/mips/mips.md (cnv_mode): New attribute for recording the
19812 conversion types of float convert insns.
19813 (cpu): Add 24k and 24kx.
19814 (include): Include 24k.md file.
19815 (truncdfsf2, extendsfdf2, fix_truncdfsi2_insn, fix_truncdfsi2_macro)
19816 (fix_truncdfdi2, fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2)
19817 (floatdisf2): Setup cnv_mode.
19818 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): Changed mode to SF and
19820 * config/mips/24k.md: New file, contains 24k DFA pipeline
19823 2005-05-09 Nathan Sidwell <nathan@codesourcery.com>
19825 * config/sh/sh.c (print_operand_address): Use gcc_assert and
19826 gcc_unreachable as appropriate.
19827 (print_operand, prepare_move_operands, prepare_scc_operands,
19828 output_movedouble, output_branch, shift_insns_rtx, gen_shifty_op,
19829 gen_shl_and, shl_sext_kind, gen_datalabel_ref, dump_table,
19830 fixup_mova, gen_far_branch, sh_reorg, split_branches,
19831 final_prescan_insn, output_stack_adjust, sh_expand_epilogue,
19832 sh_set_return_address, sh_setup_incoming_varargs,
19833 initial_elimination_offset, sh_pch_valid_p, get_free_reg,
19834 sh_expand_builtin, sh_output_mi_thunk, extract_sfunc_addr,
19835 check_use_sfunc_addr): Likewise.
19836 * config/sh/netbsd-elf.h (FUNCTION_PROFILER): Likewise.
19837 * config/sh/sh.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
19838 * config/sh/symbian.c (sh_symbian_mark_dllexport,
19839 sh_symbian_mark_dllimport): Likewise.
19840 * config/sh/sh.md: Likewise.
19841 (movdicc, call_pop, call_value_pop, casesi_worker_1,
19842 casesi_worker_2, casesi_shift_media, casesi_load_media,
19843 return_media): Likewise.
19845 2005-05-08 Roger Sayle <roger@eyesopen.com>
19848 * stmt.c (expand_asm_operands): Avoid calling force_reg on BLKmode
19851 2005-05-08 Richard Henderson <rth@redhat.com>
19853 * config/alpha/alpha.c (adjust_address): Fix typo last change.
19855 2005-05-08 Stephane Carrez <stcarrez@nerim.fr>
19857 * config/m68hc11/m68hc11.h (REG_VALID_P): A regno must be >= 0
19858 and -1 can happen in reg_renumber when no hard register is assigned.
19860 2005-05-08 Steven Bosscher <stevenb@suse.de>
19861 Kazu Hirata <kazu@cs.umass.edu>
19863 PR tree-optimization/14841, tree-optimization/15838
19864 * tree-ssa-ccp.c (fold_const_aggregate_ref): New.
19865 (evaluate_stmt): Call it.
19867 2005-05-08 Jakub Jelinek <jakub@redhat.com>
19869 * config/ia64/ia64.c (ia64_override_options): Don't set
19870 ia64_flag_var_tracking and clear flag_var_tracking here...
19871 (ia64_file_start): ... but here.
19873 2005-05-08 Nathan Sidwell <nathan@codesourcery.com>
19875 * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use gcc_assert
19876 and gcc_unreachable as appropriate.
19877 (expand_prologue, expand_epilogue, m68hc11_gen_lowpart,
19878 m68hc11_gen_highpart, print_operand, print_operand_address,
19879 m68hc11_expand_compare, m68hc11_expand_compare_and_branch,
19880 m68hc11_gen_movhi): Likewise.
19881 * config/m68hc11/m68hc11.h (HARD_X_REGNUM): Reword comment.
19882 * config/m68hc11/m68hc11.md: Reword comment.
19884 2005-05-08 Stephane Carrez <stcarrez@nerim.fr>
19887 * config/m68hc11/predicates.md (splitable_operand): An immediate is
19890 2005-05-08 Stephane Carrez <stcarrez@nerim.fr>
19892 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Do not allow
19893 the 68HC12 address indirect addressing mode as it is not supported by
19895 * config/m68hc11/m68hc11-protos.h
19896 (m68hc11_valid_addressing_p): Declare.
19897 (m68hc11_add_mode): Declare.
19898 * config/m68hc11/m68hc11.c (m68hc11_valid_addressing_p): Rename from
19899 register_indirect_p and export it.
19900 (m68hc11_z_replacement): Use emit_insn_after when adding the save Z
19901 instruction so that it is part of the good BB.
19902 (m68hc11_gen_movhi): Fix invalid generation of indexed indirect
19903 addressing with movw.
19904 (m68hc11_gen_movqi): Use pula and pulb instead of lda and ldb for
19906 * config/m68hc11/m68hc11.h (ADDR_STRICT, ADDR_INCDEC, ADDR_INDEXED,
19907 ADDR_OFFSET, ADDR_INDIRECT, ADDR__CONST): Moved from m68hc11.c.
19908 * config/m68hc11/m68hc11.md ("movhi_const0"): Use this pattern only
19910 ("*movhi_68hc12"): Handle movhi_const0.
19911 ("*subhi3", "subqi3"): Use general_operand for operand 1.
19912 ("*subhi3_zext"): Likewise.
19914 2005-05-08 Stephane Carrez <stcarrez@nerim.fr>
19917 * config/m68hc11/m68hc11.md ("mulqi3"): Use general_operand for
19918 operand 1 and fix constraints.
19919 ("mulqihi3"): Use general_operand for operand 2.
19921 2005-05-08 Julian Brown <julian@codesourcery.com>
19922 H.J. Lu <hongjiu.lu@intel.com>
19923 Paul Brook <paul@codesourcery.com>
19925 * configure.ac: Set ld_vers_major, ld_vers_minor and ld_vers_patch for
19926 GNU linker. Support linker version x.x.x.x.x. Require GNU linker
19927 20050308/2.16.0 or newer for comdat group.
19928 * configure: Regenerated.
19929 * config.in: Regenerated.
19930 * varasm.c (default_function_rodata_section): Put .rodata section in
19931 COMDAT group when necessary.
19932 (default_elf_asm_named_section): Rename HAVE_GAS_COMDAT_GROUP to
19934 (default_unique_section_1): Don't use .gnu.linkonce when COMDAT is
19937 2005-05-08 Kazu Hirata <kazu@cs.umass.edu>
19939 * tree-dfa.c (referenced_vars, add_referenced_var): Use VEC
19941 * tree-flow.h (num_referenced_var, referenced_var): Likewise.
19942 * tree-into-ssa.c (mark_def_site_blocks): Likewise.
19943 * tree-ssa.c (init_tree_ssa, delete_tree_ssa): Likewise.
19944 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
19946 2005-05-08 Stephane Carrez <stcarrez@nerim.fr>
19949 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Handle split of
19950 64-bit constants on 64-bit hosts.
19951 (m68hc11_split_logical): Simplify.
19952 (m68hc11_split_move): Likewise.
19954 2005-05-08 Nathan Sidwell <nathan@codesourcery.com>
19955 Paolo Bonzini <bonzini@gnu.org>
19957 * Makefile.in (cs-tconfig.h): Pass USED_FOR_TARGET to mkconfig.sh
19958 * aclocal.m4 (GCC_TARGET_TEMPLATE, AH_TEMPLATE): New.
19959 * configure.ac (enable_checking): Fix typos in runtime_checking.
19960 (ENABLE_RUNTIME_CHECKING): Mark as target template.
19961 (xm_file): Prepend auto-host.h
19962 (HAVE_GAS_HIDDEN, HAVE_LD_EH_FRAME_HDR): Mark as target template.
19963 * mkconfig.sh: Do not automatically define USED_FOR_TARGET in
19965 * crtstuff.c: Do not include auto-host.h.
19966 (IN_LIBGCC2): Do not define.
19967 * gcov-io.h: Include tconfig.h, not auto-host.h.
19968 * libgcc2.c: Do not include auto-host.h.
19969 (abort): Do not undefine.
19970 * libgcov.c: Remove unneeded comment about config.h.
19971 * unwind-dw2-fde-glibc.c: Do not inlude auto-host.h.
19972 * config.in, configure: Regenerated.
19974 2005-05-08 Nathan Sidwell <nathan@codesourcery.com>
19975 Falk Hueffner <falk@debian.org>
19977 * config/alpha/alpha.c (tls_symbolic_operand_1): Use gcc_assert
19978 and gcc_unreachable as appropriate.
19979 (get_aligned_mem, get_unaligned_address,
19980 alpha_emit_set_long_const, alpha_emit_conditional_branch,
19981 alpha_emit_setcc, alpha_emit_conditional_move,
19982 alpha_lookup_xfloating_lib_func, alpha_compute_xfloating_mode_arg,
19983 alpha_emit_xfloating_libcall, alpha_split_tfmode_pair,
19984 alpha_expand_unaligned_load, alpha_expand_block_move,
19985 alpha_expand_zap_mask, get_trap_mode_suffix,
19986 get_round_mode_suffix, get_some_local_dynamic_name,
19987 print_operand_address, function_arg, alpha_return_in_memory,
19988 function_value, alpha_expand_builtin,
19989 alpha_initial_elimination_offset, alpha_expand_epilogue,
19990 summarize_insn, alpha_handle_trap_shadows, alphaev5_insn_pipe,
19991 alphaev5_next_group, alpha_align_insns,
19992 unicosmk_initial_elimination_offset, unicosmk_unique_section,
19993 unicosmk_ssib_name): Likewise.
19994 * config/alpha/alpha.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
19995 * config/alpha/unicosmk.h (TRAMPOLINE_TEMPLATE,
19996 ASM_OUTPUT_ADDR_DIFF_ELT, ASM_OUTPUT_ADDR_DIFF_VEC): Likewise.
19997 * config/alpha/vms.h (INITIAL_ELIMINATION_OFFSET,
19998 ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
19999 * config/alpha/alpha.md (*divmodsi_internal_er,
20000 *divmoddi_internal_er, ashldi3, *insxl, sibcall, call_osf,
20001 call_nt, call_umk, call_vms, call_value, sibcall_value,
20002 call_value_osf, call_value_nt, call_value_vms, call_value_umk,
20003 *call_vms_1, *movmemdi_1, *clrmemdi_1, *call_value_vms_1): Likewise.
20004 * config/alpha/predicates.md (input_operand): Likewise.
20006 2005-05-08 Nathan Sidwell <nathan@codesourcery.com>
20008 * config/frv/frv.c (frv_default_flags_for_cpu): Use gcc_assert and
20009 gcc_unreachable, as appropriate.
20010 (frv_function_prologue, frv_alloc_temp_reg,
20011 frv_initial_elimination_offset, frv_expand_block_move,
20012 frv_expand_block_clear, frv_print_operand_jump_hint,
20013 frv_legitimize_tls_address, unspec_got_name, frv_emit_move,
20014 frv_emit_movsi, frv_split_cond_move, frv_split_minmax,
20015 frv_ifcvt_modify_insn, frv_ifcvt_modify_final,
20016 frv_adjust_field_align, frv_insn_unit, frv_cond_flags,
20017 frv_sort_insn_group, frv_reorder_packet, frv_matching_accg_mode,
20018 frv_in_small_data_p, frv_asm_out_constructor,
20019 frv_asm_out_destructor, frv_output_dwarf_dtprel): Likewise.
20020 * config/frv/frv.md (reload_incc_fp, *cond_exec_si_binary1,
20021 *cond_exec_si_binary2, *cond_exec_si_divide, *cond_exec_si_unary1,
20022 *cond_exec_sf_conv, *cond_exec_sf_add, call, sibcall, call_value,
20023 sibcall_value, casesi): Likewise.
20025 * config/mn10300/mn10300.c (print_operand): Use gcc_assert and
20026 gcc_unreachable as appropriate.
20027 (print_operand_address, mn10300_print_reg_list, expand_prologue,
20028 expand_epilogue, notice_update_cc, initial_offset,
20029 mn10300_address_cost_1): Likewise.
20030 * config/mn10300/mn10300.md: Likewise.
20031 (absdf2, abssf2, negdf2, negsf2): Likewise.
20033 2005-05-08 Richard Sandiford <rsandifo@redhat.com>
20036 * config/mips/mips.c (mips_emit_compare): Don't reverse UNGE and UNGT
20038 * config/mips/mips.md (swapped_fcond): New code macro and attribute.
20039 (sgt_<mode>, sge_<mode>): Generalize to all members of swapped_fcond,
20040 including sunge_<mode> and sungt_<mode>.
20042 2005-05-08 Richard Sandiford <rsandifo@redhat.com>
20044 * integrate.h (get_hard_reg_initial_val): Change type of register
20045 parameter from int to unsigned int.
20046 (has_hard_reg_initial_val): Likewise.
20047 * integrate.c (get_hard_reg_initial_val): Likewise.
20048 (has_hard_reg_initial_val): Likewise. Remove cast to unsigned int.
20050 2005-05-08 Kazu Hirata <kazu@cs.umass.edu>
20052 * except.c (eh_status): Change the type of ttype_data to
20054 (add_ttypes_entry, assign_filter_values,
20055 output_function_exception_table): Use VEC instead of VARRAY.
20057 2005-05-07 David Edelsohn <edelsohn@gnu.org>
20059 * config/rs6000/rs6000.md (popcount<mode>2): Fix non-C90 constant.
20061 2005-05-07 Paul Brook <paul@codesourcery.com>
20063 * Makefile.in: Fix dependencies.
20064 (GCOV_IO_H, VARRAY_H): Set.
20066 2005-05-07 Anthony Green <green@redhat.com>
20069 * configure.ac (STMP_FIXPROTO): Fix [ ] consumption problem in
20070 x$STMP_FIXPROTO test.
20071 * configure: Rebuilt.
20073 2005-05-07 Joseph S. Myers <joseph@codesourcery.com>
20075 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define
20076 inappropriate feature test macros if flag_iso.
20078 2005-05-07 Joseph S. Myers <joseph@codesourcery.com>
20080 * config/ia64/hpux.h (NO_IMPLICIT_EXTERN_C): Define.
20082 2005-05-07 Hans-Peter Nilsson <hp@axis.com>
20085 * config/cris/cris.md ("*movdi_insn", "*mov_sidesisf_biap")
20086 ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
20087 Handle moved operand being in special register.
20088 ("smulsi3_highpart", "umulsi3_highpart"): Change .error into
20089 presumed working insn.
20090 (mover2side): Add FIXME.
20092 2005-05-07 Richard Sandiford <rsandifo@redhat.com>
20094 * integrate.c (get_func_hard_reg_initial_val): Delete.
20095 (has_func_hard_reg_initial_val): Delete.
20096 (get_hard_reg_initial_val): Inline the old implementation of
20097 get_func_hard_reg_initial_val. Use has_hard_reg_initial_val
20098 instead of has_func_hard_reg_initial_val to test for an existing
20099 pseudo. Only create an rtx if a new initial value entry is needed.
20100 (has_hard_reg_initial_val): Scan the initial value list directly.
20101 Don't create an rtx.
20103 2005-05-07 David Edelsohn <edelsohn@gnu.org>
20105 * config.gcc ({powerpc,rs6000}-ibm-aix*): Remove rs6000/aix.opt
20106 from extra_options.
20107 * config.in (HAVE_AS_POPCNTB): New.
20108 * configure.ac (HAVE_AS_MFCRF): Add .machine "pwr5" to AIX test.
20109 (HAVE_AS_POPCNTB): New.
20110 * configure: Regenerated.
20111 * config/rs6000/aix.h (TARGET_XL_COMPAT): Delete.
20112 * config/rs6000/rs6000.c (rs6000_override_options, power5): Add
20113 MASK_POPCNTB. Uncomment rs6000_sched_restricted_insns_priority
20114 and rs6000_sched_costly_dep.
20115 * config/rs6000/rs6000.h (TARGET_POPCNTB): New.
20116 (TARGET_XL_COMPAT): Delete.
20117 * config/rs6000/rs6000.md (UNSPEC_POPCNTB): New.
20118 (popcount<mode>2): New.
20119 (popcntb<mode>2): New.
20120 * config/rs6000/rs6000.opt (mpopcntb): New.
20122 * opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask
20123 if variable name exists.
20125 2005-05-07 Matt Kraai <kraai@ftbfs.org>
20127 * Makefile.in (c-gimplify.o): Depend on $(RTL_H) instead of rtl.h.
20129 2005-05-07 Richard Henderson <rth@redhat.com>
20132 * config/rs6000/rs6000.c (rs6000_emit_move): Look for tls addresses
20133 with constant offsets.
20135 2005-05-07 Nathan Sidwell <nathan@codesourcery.com>
20137 * config/v850/v850.c (print_operand): Use gcc_assert and
20138 gcc_unreachable, as appropriate.
20139 (print_operand_address, v850_handle_data_area_attribute,
20140 v850_encode_data_area, construct_restore_jr, construct_save_jarl,
20141 v850_insert_attributes, construct_prepare_instruction): Likewise.
20142 * config/v850/v850.h (INITIAL_ELIMINATION_OFFSET): Likewise.
20143 * config/v850/v850.md (movsicc, *sasf_1): Likewise.
20145 2005-05-07 Kazu Hirata <kazu@cs.umass.edu>
20147 * tree-ssa-loop-ivcanon.c, config/i386/i386.c,
20148 config/rs6000/rs6000.h: Fix comment typos.
20150 2005-05-07 Richard Sandiford <rsandifo@redhat.com>
20152 * doc/invoke.texi: Remove documentation for MIPS' -mint64 option.
20153 * config/mips/mips.c (TARGET_SCALAR_MODE_SUPPORTED_P): Delete.
20154 (mips_scalar_mode_supported_p): Delete.
20156 2005-05-06 Eric Christopher <echristo@redhat.com>
20158 * config/mips/mips.opt: Remove -mint64 option.
20159 * config/mips/mips.c (override_options): Remove -mint64
20161 * config/mips/mips.h (INT_TYPE_SIZE): Define to 32.
20162 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove
20163 64-bit integer handling.
20164 * doc/invoke.texi (Option Summary): Remove -mint64 for
20167 2005-05-06 Zdenek Dvorak <dvorakz@suse.cz>
20169 PR tree-optimization/19401
20170 * tree-flow.h (tree_unroll_loops_completely): Declaration changed.
20171 * tree-ssa-loop-ivcanon.c (enum unroll_level): New.
20172 (estimated_unrolled_size): New function.
20173 (try_unroll_loop_completely, canonicalize_loop_induction_variables,
20174 tree_unroll_loops_completely): Always unroll loops if the code size
20176 * tree-ssa-loop.c (tree_complete_unroll): Indicate whether all
20177 loops should be unrolled completely.
20178 (gate_tree_complete_unroll): Run complete unrolling unconditionally.
20180 2005-05-06 Zdenek Dvorak <dvorakz@suse.cz>
20182 PR rtl-optimization/21254
20183 * loop-iv.c (iv_number_of_iterations): Simplify infiniteness
20184 assumptions for loops that otherwise do not roll.
20185 (find_simple_exit): Prefer # of iterations that is guaranteed
20186 not to be infinite.
20187 * loop-unroll.c (decide_peel_once_rolling,
20188 decide_peel_completely): Check whether the loop is infinite.
20190 2005-05-06 Pat Haugen <pthaugen@us.ibm.com>
20192 * config/rs6000/sysv4.opt: Fix typo.
20194 2005-05-06 Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua>
20195 Jakub Jelinek <jakub@redhat.com>
20198 * config/i386/i386.c (ix86_expand_movmem): Don't use rep; movsb
20199 for -Os if (movsl;)*(movsw;)?(movsb;)? sequence is shorter.
20200 Don't use rep; movs{l,q} if the repetition count is really small,
20201 instead use a sequence of movs{l,q} instructions.
20203 2005-05-06 Jeff Law <law@redhat.com>
20205 PR tree-optimization/21380
20206 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
20207 thread through a block with no preds.
20209 2005-05-06 Kazu Hirata <kazu@cs.umass.edu>
20211 * tree-ssa-operands.c (clobbered_v_may_defs, clobbered_vuses,
20212 ro_call_vuse, fini_ssa_operands, add_call_clobber_ops,
20213 add_call_read_ops): Use VEC instead of VARRAY.
20215 2005-05-06 Nathan Sidwell <nathan@codesourcery.com>
20217 * config/mcore/mcore.c (mcore_print_operand_address): Use
20218 gcc_assert and gcc_unreachable as appropriate.
20219 (mcore_print_operand, mcore_gen_compare_reg, mcore_output_call,
20220 mcore_output_andn, output_inline_const, mcore_output_move,
20221 mcore_output_movedouble, mcore_expand_block_move,
20222 layout_mcore_frame, mcore_initial_elimination_offset,
20223 mcore_expand_prolog, mcore_mark_dllexport,
20224 mcore_mark_dllimport): Likewise.
20225 * config/mcore/mcore.h (switch_to_section): Likewise.
20226 * config/mcore/mcore.md: Likewise.
20228 2005-05-06 Aldy Hernandez <aldyh@redhat.com>
20230 * config/rs6000/linux64.h: Remove MASK_PROFILE_KERNEL, and
20231 TARGET_PROFILE_KERNEL.
20233 * config/rs6000/rs6000.c (output_profile_hook): Add comment to
20234 TARGET_PROFILE_KERNEL use.
20236 2005-05-06 Nathan Sidwell <nathan@codesourcery.com>
20238 * config/m32r/m32r.c (m32r_encode_section_info): Use gcc_assert
20239 and gcc_unreachable, as appropriate.
20240 (gen_compare, gen_split_move_double, m32r_setup_incoming_varargs,
20241 m32r_expand_prologue, m32r_output_function_epilogue,
20242 m32r_legitimize_pic_address, m32r_print_operand_address,
20243 emit_cond_move, m32r_function_symbol,
20244 m32r_output_block_move): Likewise.
20245 * config/m32r/m32r.h (INITIAL_ELIMINATION_OFFSET): Likewise.
20246 * config/m32r/m32r.md ( *movsi_insn, *zero_branch_insn,
20247 *rev_zero_branch_insn): Likewise.
20249 2005-05-06 Jakub Jelinek <jakub@redhat.com>
20252 * varasm.c (merge_weak): Remove NEWDECL from WEAK_DECLS chain
20253 if both NEWDECL and OLDDECL are already weak.
20255 2005-05-06 Richard Sandiford <rsandifo@redhat.com>
20257 * config/rs6000/sysv4.h (EXTRA_SUBTARGET_SWITCHES): Delete.
20259 2005-05-05 J"orn Rennecke <joern.rennecke@st.com>
20260 Kaz Kojima <kkojima@gcc.gnu.org>
20262 * config/sh/sh.c (sh_builtin_saveregs): Use copy_to_mode_reg
20265 2005-05-05 Aldy Hernandez <aldyh@redhat.com>
20266 David Edelsohn <edelsohn@gnu.org>
20268 * config.gcc: Add .opt magic for the rs6000 ports.
20270 * doc/invoke.texi: Document -mabi= option properly. Document
20271 -misel and -mno-sel. Document -mspe and -mno-spe. Document
20272 -mvrsave and -mno-vrsave. Document deprecation of -mspe= and
20275 * config/rs6000/aix.h: Remove XL_COMPAT stuff. Remove
20276 SUBTARGET_SWITCHES and SUBSUBTARGET_SWITCHES. Define
20279 * config/rs6000/aix.opt: New.
20280 * config/rs6000/aix41.opt: New.
20281 * config/rs6000/aix64.opt: New.
20282 * config/rs6000/darwin.opt: New.
20283 * config/rs6000/linux64.opt: New.
20284 * config/rs6000/rs6000.opt: New.
20285 * config/rs6000/sysv4.opt: New.
20287 * config/rs6000/sysv4.h: Delete definitions of MASK_* and
20288 associated TARGET_*. Remove SUBTARGET_OPTIONS,
20289 SUBTARGET_SWITCHES.
20290 Define TARGET_USES_SYSV4_OPT.
20291 * config/rs6000/aix41.h: Remove SUBSUBTARGET_SWITCHES.
20292 * config/rs6000/aix43.h: Remove SUBSUBTARGET_SWITCHES. Define
20293 TARGET_USES_AIX64_OPT.
20294 * config/rs6000/aix51.h: Same.
20295 * config/rs6000/aix52.h: Same.
20296 * config/rs6000/darwin.h: Remove SUBTARGET_SWITCHES,
20297 MASK_MACHO_DYNAMIC_NO_PIC, TARGET_MACHO_DYNAMIC_NO_PIC.
20298 Use TARGET_ALTIVEC_VRSAVE instead of rs6000_altivec_vrsave.
20299 Define TARGET_DYNAMIC_NO_PIC as TARGET_MACHO_DYNAMIC_NO_PIC.
20300 * config/rs6000/linux64.h: Use
20301 rs6000_explicit_options. Remove EXTRA_SUBTARGET_SWITCHES.
20303 * config/rs6000/rs6000.c: Remove definitions of
20304 rs6000_sched_restricted_insns_priority,
20305 rs6000_long_double_size_string, rs6000_altivec_vrsave,
20306 rs6000_altivec_vrsave_string, rs6000_isel, rs6000_spe,
20307 rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
20308 rs6000_abi_string, rs6000_warn_altivec_long, rs6000_longcall,
20309 rs6000_alignment_string. Define rs6000_explicit_options.
20310 (rs6000_parse_abi_options): Remove.
20311 (rs6000_parse_alignment_option): Remove.
20312 (rs6000_parse_float_gprs_option): Remove.
20313 (rs6000_handle_option): New. Define TARGET_HANDLE_OPTION. Define
20314 TARGET_DEFAULT_TARGET_FLAGS.
20315 (rs6000_override_options): Revamp to use new .opt machinery.
20317 * config/rs6000/rs6000.h: Remove old MASK_* and TARGET_* in favor
20318 of new .opt machinery. Remove target_flags. Redefine
20319 TARGET_MFCRF and TARGET_POWERPC64. Remove TARGET_SWITCHES,
20320 SUBTARGET_SWITCHES, TARGET_OPTIONS, SUBTARGET_OPTIONS,
20321 rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
20322 rs6000_altivec_vrsave_string, rs6000_altivec_vrsave,
20323 rs6000_longcall_switch, rs6000_default_long_calls,
20324 rs6000_sched_costly_dep_str, rs6000_sched_costly_dep,
20325 rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch, and
20326 TARGET_ALTIVEC_VRSAVE.
20328 2005-05-05 Ralf Corsepius <ralf.corsepius@rtems.org>
20330 * config.gcc (hppa1.1-*-rtems*): Remove.
20331 * config/pa/rtems.h: Remove.
20333 2005-05-05 Ralf Corsepius <ralf.corsepius@rtems.org>
20335 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
20336 Exclude roe/603e multilib variants.
20338 2005-05-04 Denis Chertykov <denisc@overta.ru>
20341 * config/avr/avr.c (avr_output_addr_vec_elt): Use special section
20344 2005-05-05 Richard Sandiford <rsandifo@redhat.com>
20346 * config.gcc (arm*-wince-pe*, arm-*-pe*, strongarm-*-pe): Add
20347 arm/pe.opt to $extra_options.
20348 * config/arm/arm.h (target_flags, target_fpu_name, target_fpe_name)
20349 (target_float_abi_name, target_float_switch, target_abi_name)
20350 (ARM_FLAG_APCS_FRAME, ARM_FLAG_POKE, ARM_FLAG_FPE, ARM_FLAG_APCS_STACK)
20351 (ARM_FLAG_APCS_FLOAT, ARM_FLAG_APCS_REENT, ARM_FLAG_BIG_END)
20352 (ARM_FLAG_INTERWORK, ARM_FLAG_LITTLE_WORDS, ARM_FLAG_NO_SCHED_PRO)
20353 (ARM_FLAG_ABORT_NORETURN, ARM_FLAG_SINGLE_PIC_BASE)
20354 (ARM_FLAG_LONG_CALLS, ARM_FLAG_THUMB, THUMB_FLAG_BACKTRACE)
20355 (THUMB_FLAG_LEAF_BACKTRACE, THUMB_FLAG_CALLEE_SUPER_INTERWORKING)
20356 (THUMB_FLAG_CALLER_SUPER_INTERWORKING, CIRRUS_FIX_INVALID_INSNS)
20357 (TARGET_APCS_FRAME, TARGET_POKE_FUNCTION_NAME, TARGET_FPE)
20358 (TARGET_APCS_STACK, TARGET_APCS_FLOAT, TARGET_APCS_REENT)
20359 (TARGET_BIG_END, TARGET_INTERWORK, TARGET_LITTLE_WORDS)
20360 (TARGET_NO_SCHED_PRO, TARGET_ABORT_NORETURN, TARGET_SINGLE_PIC_BASE)
20361 (TARGET_LONG_CALLS, TARGET_THUMB, TARGET_CALLER_INTERWORKING)
20362 (TARGET_CIRRUS_FIX_INVALID_INSNS, SUBTARGET_SWITCHES, TARGET_SWITCHES)
20363 (TARGET_OPTIONS, arm_cpu_select, arm_select, structure_size_string)
20364 (arm_pic_register_string): Delete.
20365 (TARGET_BACKTRACE): Redefine using TARGET_TPCS_LEAF_FRAME and
20367 (TARGET_DEFAULT, CONDITIONAL_REGISTER_USAGE): Update mask names.
20368 * config/arm/coff.h (TARGET_DEFAULT): Likewise.
20369 * config/arm/elf.h (TARGET_DEFAULT): Likewise.
20370 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Likewise.
20371 * config/arm/netbsd.h (TARGET_DEFAULT): Likewise.
20372 * config/arm/semi.h (TARGET_DEFAULT): Likewise.
20373 * config/arm/uclinux-elf.h (TARGET_DEFAULT): Likewise.
20374 * config/arm/wince-pe.h (TARGET_DEFAULT): Likewise.
20375 * config/arm/pe.h (TARGET_DEFAULT): Likewise.
20376 (TARGET_FLAG_NOP_FUN, TARGET_NOP_FUN_DLLIMPORT): Delete.
20377 (SUBTARGET_SWITCHES): Delete.
20378 * config/arm/arm.c (target_float_switch): Delete.
20379 (arm_cpu_select): Moved from config/arm/arm.h.
20380 (target_fpu_name, target_fpe_name, target_float_abi_name)
20381 (target_abi_name, structure_size_string, arm_pic_register_string)
20382 (arm_select): Make static.
20383 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
20384 (arm_handle_option): New function.
20385 (arm_override_options): Update target_flags checks for new mask names.
20386 Remove target_float_switch code.
20387 (arm_expand_prologue, thumb_expand_prologue): Check
20388 !TARGET_SCHED_PROLOG instead of TARGET_NO_SCHED_PRO.
20389 * config/arm/arm.opt, config/arm/pe.opt: New files.
20391 2005-05-05 Nathan Sidwell <nathan@codesourcery.com>
20393 * config/arc/arc.c (get_arc_condition_code): Use gcc_assert &
20394 gcc_unreachable as appropriate.
20395 (arc_double_limm_p, arc_setup_incoming_varargs,
20396 arc_compute_function_type, arc_output_function_prologue,
20397 arc_output_function_epilogue, arc_eligible_for_epilogue_delay,
20398 output_shift, arc_print_operand, arc_print_operand_address,
20399 arc_final_prescan_insn): Likewise.
20400 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
20402 2005-05-04 Geoffrey Keating <geoffk@apple.com>
20404 * config/rs6000/rs6000.md (P): Use TARGET_*BIT rather than
20409 (add<mode>3, add<mode>3_internal1, add<mode>3_internal2,
20410 add<mode>3_internal3, one_cmpl<mode>2, sub<mode>3, neg<mode>2,
20411 clz<mode>2, ctz<mode>2, ffs<mode>2): New.
20412 (addsi3, addsi3_internal1, addsi3_internal2, addsi3_internal3,
20413 (one_cmplsi2, subsi3, negsi2, clzsi2, ctzsi2, ffssi2): Remove.
20414 (adddi3, adddi3_internal1, adddi3_internal2, adddi3_internal3,
20415 (one_cmpldi2, subdi3, negdi2, clzdi2, ctzdi2, ffsdi2): Remove.
20416 (sync_compare_and_swap<mode>): Use <wd> rather than <cmp>.
20418 2005-05-05 Paul Brook <paul@codesourcery.com>
20420 * Makefile.in: Replace dependencies on basic-block.h, c-pragma.h,
20421 cfgloop.h, diagnostic.h, insn-attr.h, langhooks-def.h, params.h,
20422 regs.h, system.h, tree-dump.h, tree-gimple.h, tree-scalar-evolution.h
20423 and tree-data-ref.h with *_H variables.
20425 2005-05-05 Kelley Cook <kcook@gcc.gnu.org>
20427 * config/m32r/xm-m32r.h, config/m32r/xm-linux.h: Delete files.
20429 2005-05-05 Kelley Cook <kcook@gcc.gnu.org>
20431 * system.h: Poison BYTEORDER and HOST_WORDS_BIG_ENDIAN.
20433 2005-05-04 Gerald Pfeifer <gerald@pfeifer.com>
20435 * doc/contrib.texi (Contributors): Add Mostafa Hagog and Ayal Zaks.
20437 2005-05-04 Fariborz Jahanian <fjahanian@apple.com>
20439 * config/rs6000/rs6000.c (rs6000_emit_prologue): Emit
20440 setting of vrsave register for current function after
20441 call to save_world is emitted.
20443 2005-05-05 Hans-Peter Nilsson <hp@bitrange.com>
20445 * config/mmix/predicates.md: New file.
20446 * config/mmix/mmix.c (mmix_symbolic_or_address_operand)
20447 (mmix_reg_or_constant_operand, mmix_reg_cc_operand)
20448 (mmix_foldable_comparison_operator, mmix_comparison_operator)
20449 (mmix_reg_or_0_operand, mmix_reg_or_8bit_operand): Remove.
20450 * config/mmix/mmix.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
20452 * config/mmix/mmix.md: Include predicates.md.
20453 ("call", "call_value"): Force address to register if it isn't a
20454 mmix_symbolic_or_address_operand.
20456 2005-05-04 Andrew MacLeod <amacleod@redhat.com>
20458 * tree-flow-inline.h (op_iter_init_use, op_iter_init_def): Assert that
20459 the flags are of appropriate types.
20460 (num_ssa_operands): Generalize using the generic interface.
20461 * tree-ssa-dce.c (remove_dead_stmt): Don't ask for kills on a DEF
20464 2005-05-04 Richard Sandiford <rsandifo@redhat.com>
20466 * protoize.c (version_flag, quiet_flag, nochange_flag, nosave_flag)
20467 (keep_flag, local_flag, global_flag, cplusplus_flag): Make extern.
20469 2005-05-04 Kazu Hirata <kazu@cs.umass.edu>
20471 * tree-outof-ssa.c (edge_leader, stmt_list,
20472 analyze_edges_for_bb): Use VEC instead of VARRAY.
20473 (init_analayze_edges_for_bb, fini_analayze_edges_for_bb): New.
20474 (perform_edge_inserts): Call init_analayze_edges_for_bb and
20475 fini_analayze_edges_for_bb.
20477 2005-05-04 James E Wilson <wilson@specifixinc.com>
20480 * gcc.c (process_command): In the second argv scan loop, ignore
20481 Xassembler and Xpreprocessor, along with their argument.
20483 2005-05-04 Kazu Hirata <kazu@cs.umass.edu>
20485 * tree-flow-inline.h, tree-ssa-operands.c,
20486 tree-ssa-operands.h, tree-ssa-opfinalize.h:
20487 Likewise. tree-vn.c: Fix comment typos.
20488 * doc/passes.texi, doc/tree-ssa.texi: Fix typos.
20490 2005-05-04 Paolo Bonzini <bonzini@gnu.org>
20492 * doc/tm.texi (Target Hooks): Document
20493 TARGET_RESOLVE_OVERLOADED_BUILTIN.
20495 2005-05-04 Paul Brook <paul@codesourcery.com>
20497 * Makefile.in: Change dependencies on target.h to $(TARGET_H).
20499 2005-05-04 Kazu Hirata <kazu@cs.umass.edu>
20501 * dwarf2out.c (incomplete_types, retry_incomplete_types,
20502 gen_struct_or_union_type_die, dwarf2out_init): Use VEC instead
20505 * loop-unroll.c (var_to_expand, analyze_insn_to_expand_var,
20506 get_expansion, expand_var_during_unrolling,
20507 insert_var_expansion_initialization,
20508 combine_var_copies_in_loop_exit, release_var_copies): Use VEC
20511 * tree-ssa-loop-ivopts.c (rewrite_address_base): Don't call
20514 2004-05-03 Andrew Pinski <pinskia@physics.uc.edu>
20516 PR middle-end/15618
20517 * fold-const.c (fold_widened_comparison): Treat BOOLEAN_TYPE
20518 the same as INTEGER_TYPE.
20519 (fold_binary): Fold "bool_var != 0" to bool_var.
20520 Fold "bool_var == 1" to bool_var.
20522 2004-05-03 Richard Henderson <rth@redhat.com>
20524 PR middle-end/21318
20525 * function.c (instantiate_virtual_regs_in_insn): Use the mode
20526 from recog_data instead of insn_data.
20528 2005-05-03 DJ Delorie <dj@redhat.com>
20530 * common.opt (fdiagnostics-show-option): No variable is needed.
20531 * diagnostic.h (diagnostic_context): Add show_option_requested flag.
20532 * diagnostic.c (diagnostic_initialize): Initialize show_option_requested.
20533 (diagnostic_report_diagnostic): Test for enabled diagnostics here.
20534 Save and restore original message format. Use flag in context
20536 (warning): Don't test for enabled warnings here.
20537 * opts.c (common_handle_option): Handle -fdiagnostics-show-option
20540 2005-05-04 Kelley Cook <kcook@gcc.gnu.org>
20542 * config/m32r/xm-m32r.h: Don't define HOST_WORDS_BIG_ENDIAN.
20543 * config/m32r/xm-linux.h: Don't undefine HOST_WORDS_BIG_ENDIAN.
20544 * mips-tfile.c: Use WORDS_BIG_ENDIAN instead of HOST_WORDS_BIG_ENDIAN.
20545 * aclocal.m4: Don't include accross.m4.
20546 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
20547 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
20548 * configure, config.in: Regenerate.
20550 2005-05-04 Jakub Jelinek <jakub@redhat.com>
20552 PR middle-end/21265
20553 * expr.h (enum block_op_methods): Add BLOCK_OP_TAILCALL.
20554 (clear_storage): Add argument.
20555 * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall):
20556 Add tailcall argument, set CALL_EXPR_TAILCALL of the CALL_EXPR to
20558 (emit_block_move): Handle BLOCK_OP_TAILCALL method.
20559 (clear_storage): Add method argument, handle BLOCK_OP_TAILCALL.
20560 (store_expr, store_constructor): Adjust callers.
20561 * builtins.c (expand_builtin_memcpy): Pass BLOCK_OP_TAILCALL
20562 to emit_block_move if CALL_EXPR_TAILCALL (exp).
20563 (expand_builtin_memmove): Add ORIG_EXP argument, copy
20564 CALL_EXPR_TAILCALL from ORIG_EXP to the new CALL_EXPR.
20565 (expand_builtin_bcopy): Replace ARGLIST and TYPE arguments
20566 with EXP. Pass EXP to expand_builtin_memmove.
20567 (expand_builtin_memset): Add ORIG_EXP argument, pass
20568 BLOCK_OP_TAILCALL to clear_storage if CALL_EXPR_TAILCALL (orig_exp).
20569 (expand_builtin_bzero): Replace ARGLIST argument with EXP.
20570 Pass EXP to expand_builtin_memset.
20571 (expand_builtin_strcmp): Copy CALL_EXPR_TAILCALL from EXP to
20573 (expand_builtin_strncmp): Likewise.
20574 (expand_builtin_printf): Replace ARGLIST argument with EXP.
20575 Copy CALL_EXPR_TAILCALL from EXP to the new CALL_EXPR.
20576 (expand_builtin_fprintf): Likewise.
20577 (expand_builtin): Adjust calls to
20578 expand_builtin_{memmove,bcopy,memset,bzero,{,f}printf}.
20580 * config/i386/i386.c (ix86_expand_vector_set): Fix setting 3rd and 4th
20583 PR rtl-optimization/21239
20584 * combine.c (combine_simplify_rtx) <case VEC_SELECT>: Fix a typo.
20586 2005-05-03 Kazu Hirata <kazu@cs.umass.edu>
20588 * tree-flow.h (tree_ann_common_d): Move aux to ...
20589 (stmt_ann_d): ... here.
20590 * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
20591 move_computations_stmt, schedule_sm): Update references to
20593 * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
20595 * tree-cfg.c (remove_bb): Remove a redundant call to
20597 * tree-if-conv.c (replace_phi_with_cond_modify_expr):
20600 2005-05-03 Richard Henderson <rth@redhat.com>
20602 * config/rs6000/rs6000.c: Remove conflict markers.
20604 * cfg.c (dump_flow_info): Use max_reg_num, not max_regno.
20606 2005-05-03 James E Wilson <wilson@specifixinc.com>
20608 * dwarf2out.c (lookup_filename): Call maybe_emit_file.
20610 2005-05-03 DJ Delorie <dj@redhat.com>
20612 * c-decl.c (store_parm_decls_oldstyle): Let diagnostic machinery
20613 decide if the warning will be printed.
20614 * calls.c (expand_call): Likewise.
20615 * function.c (init-function_start): Likewise.
20617 * common.opt (-fdiagnostics-show-option): New.
20618 * opts.c (option_enabled): Accept the option index instead of a
20619 pointer to the option descriptor.
20620 * opts.h (option_enabled): Likewise.
20621 * toplev.c (print_switch_values): Pass option index, not option
20623 * diagnostic.h (diagnostic_info): Add option_index.
20624 * diagnostic.c: Include opts.h.
20625 (diagnostic_set_info): Initialize option_index.
20626 (diagnostic_report_diagnostic): Amend option name if appropriate.
20627 (warning): Check to see if the specified warning is enabled.
20628 Store option index.
20629 * doc/invoke.texi (-fdiagnostics-show-options): Document.
20631 2005-05-03 Richard Henderson <rth@redhat.com>
20633 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix ALL_REGS and
20634 SPEC_OR_GEN_REGS definitions.
20636 2005-05-03 Alexandre Oliva <aoliva@redhat.com>
20639 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Clear reg names
20640 for unavailable registers.
20642 2005-05-03 Kazu Hirata <kazu@cs.umass.edu>
20644 * tree-cfg.c (tree_forwarder_block_p): Fix a typo.
20646 * cfglayout.c (block_locators_blocks,
20647 insn_locators_initialize, insn_scope): Use VEC instead of
20650 * tree-mudflap.c (deferred_static_decls, mudflap_enqueue_decl,
20651 mudflap_finish_file, mudflap_finish_file): Use VEC instead of
20654 2005-05-03 Eric Botcazou <ebotcazou@libertysurf.fr>
20656 * config/sparc/predicates.md (const_compl_high_operand): New.
20657 * config/sparc/sparc.c (sparc_emit_set_safe_HIGH64): Rename into
20659 (sparc_emit_set_const64_quick1): Adjust for above change.
20660 (sparc_emit_set_const64_quick2): Likewise.
20661 (sparc_emit_set_const64_longway): Likewise.
20662 (sparc_emit_set_const64): Likewise.
20663 * config/sparc/sparc.md (movhi_const64_special, movsi_const64_special,
20664 movdi_const64_special): Delete.
20665 (logical constant splitters): Use const_compl_high_operand.
20667 2005-05-03 Richard Guenther <rguenth@gcc.gnu.org>
20669 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Use STRIP_TYPE_NOPS
20670 rather than STRIP_NOPS.
20672 2005-05-03 Jakub Jelinek <jakub@redhat.com>
20674 PR rtl-optimization/21330
20675 * loop-unswitch.c (may_unswitch_on): Set *cinsn only when
20676 returning non-NULL.
20677 (unswitch_single_loop): Clear cinsn when retrying.
20680 * config/i386/i386.c (legitimize_address): When canonicalizing
20681 ASHIFT into MULT, multiply by 1 << shift_count instead of
20682 1 << log2 (shift_count).
20684 2005-05-03 Andrew MacLeod <amacleod@redhat.com>
20686 * lambda-code.c (gcc_loop_to_lambda_loop,
20687 lambda_loopnest_to_gcc_loopnest, phi_loop_edge_uses_def,
20688 stmt_is_bumper_for_loop, perfect_nest_p, replace_uses_of_x_with_y): Use
20689 generic operand interface.
20690 * tree-data-ref.c (find_data_references_in_loop): Use generic interface.
20691 * tree-dfa.c (collect_dfa_stats_r, mark_new_vars_to_rename): Use
20692 generic operand interface.
20693 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
20694 link_imm_use, link_imm_use_stmt, relink_imm_use, relink_imm_use_stmt,
20695 next_safe_imm_use, has_zero_uses, has_single_use, single_imm_use,
20696 num_imm_uses): Use ssa_use_operand_t.
20697 (get_def_ops, get_use_ops, get_v_may_def_ops, get_vuse_ops,
20698 get_v_must_def_ops): Delete.
20699 (get_def_from_ptr, get_phi_result_ptr): Get def directly now.
20700 (get_use_op_ptr, get_def_op_ptr, get_v_may_def_result_ptr,
20701 get_v_may_def_op_ptr, get_vuse_op_ptr, get_v_must_def_result_ptr,
20702 get_v_must_def_kill_ptr): Delete.
20703 (delink_stmt_imm_use): Move and use new operand interface.
20704 (op_iter_next_use, op_iter_next_def, op_iter_next_tree, op_iter_init,
20705 op_iter_next_tree): Use new operand implementation.
20706 (clear_and_done_ssa_iter): New. Initialize a blank operand iterator.
20707 (op_iter_init_use, op_iter_init_def, op_iter_init_tree): Add iterator
20709 (op_iter_next_mustdef, op_iter_next_maydef,
20710 op_iter_next_must_and_may_def): Delete. Replace with...
20711 (op_iter_next_maymustdef): New. Combine must and may next operations.
20712 (op_iter_init_maydef, op_iter_init_mustdef,
20713 op_iter_init_must_and_may_def): Use new interface.
20714 (single_ssa_tree_operand ): New. Process single operands only as trees.
20715 (single_ssa_use_operand): New. Process single operands only as uses.
20716 (single_ssa_def_operand): New. Process single operands only as defs.
20717 (zero_ssa_operands): New. Return TRUE if there are zero operands of the
20719 (num_ssa_operands): New. Count the number of specified operands.
20720 (compare_ssa_operands_equal): New. Compare two statements' operands.
20721 (single_phi_def): New. Return true if PHI has one def of the specified
20723 (op_iter_init_phiuse): New. Initialize the iterator for PHI arguments.
20724 (op_iter_init_phidef): New. Initialize the iterator for the PHI def.
20725 * tree-flow.h (struct immediate_use_iterator_d): Use ssa_use_operand_t.
20726 (struct stmt_ann_d): Operands field no longer require GTY().
20727 (vn_compute, vn_lookup_or_add, vn_add, vn_lookup): Change prototype.
20728 * tree-into-ssa.c (mark_def_sites): Use SSA_OP_VMUSTKILL.
20729 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
20730 dump_replaceable_exprs, rewrite_trees): Use generic interface.
20731 * tree-phinodes.c (make_phi_node, release_phi_node, resize_phi_node):
20732 Use use_operand_p instead of ssa_imm_use_t *.
20733 * tree-pretty-print.c (dump_vops): check if operands are active before
20734 dumping virtual operands.
20735 * tree-sra.c (sra_walk_function): Use ZERO_SSA_OPERANDS.
20736 * tree-ssa-ccp.c (likely_value): Use ZERO_SSA_OPERANDS.
20737 (ccp_fold): Use new interface.
20738 (ccp_visit_stmt): Remove unused variables and code.
20739 (convert_to_gimple_builtin): Insert statements before calling
20740 mark_new_vars_to_rename.
20741 * tree-ssa-copy.c (stmt_may_generate_copy): Use ZERO_SSA_OPERANDS.
20742 (copy_prop_visit_cond_stmt): Use generic interface.
20743 * tree-ssa-dom.c (struct expr_hash_elt): Use stmt pointer, not the
20744 annotation in table.
20745 (thread_across_edge): Use generic interface.
20746 (initialize_hash_element): Initialzie with stmt, not annotation.
20747 (eliminate_redundant_computations): Use generic interface.
20748 (record_equivalences_from_stmt): Pass stmt, not annotation.
20749 (avail_expr_hash, real_avail_expr_hash, avail_expr_eq): Use generic
20751 * tree-ssa-dse.c (dse_optimize_stmt): Use ZERO_SSA_OPERANDS.
20752 * tree-ssa-loop-ivopts.c (find_invariants_stmt,
20753 find_interesting_uses_stmt, protect_loop_closed_ssa_form_use): Use
20754 generic operand interface.
20755 * tree-ssa-loop-niter.c (chain_of_csts_start, get_val_for): Use generic
20757 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Use Generic operand
20759 * tree-ssa-operands.c (struct opbuild_list_d): New. Operand build type.
20760 (build_defs, build_uses, build_v_may_defs, build_vuses,
20761 build_v_must_defs): Change type to struct opbuild_list_d.
20762 (ops_active): New. Operands active boolean.
20763 (operand_memory, operand_memory_index): New. Operand memory managers.
20764 (allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
20765 allocate_vuse_optype, allocate_v_must_def_optype): Delete.
20766 (free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs):
20767 Change from functions to static variable list heads.
20768 (opbuild_initialize_virtual): New. Initialize a virtual build list.
20769 (opbuild_initialize_real): New. Initialize a virtual build list.
20770 (opbuild_free): New. Free a build list.
20771 (opbuild_num_elems): New. Number of items in a list.
20772 (opbuild_append_real): New. Add a real (tree *) operand.
20773 (opbuild_append_virtual): New. Add and sort a virtual (tree) operand.
20774 (opbuild_first): New. Return first element index in a list.
20775 (opbuild_next): New. Return next element in a list.
20776 (opbuild_elem_real): New. Return real element.
20777 (opbuild_elem_virtual): New. Return virtual element.
20778 (opbuild_elem_uid): New. Return UID of virtual element.
20779 (opbuild_clear): New. Reset an operand list.
20780 (opbuild_remove_elem): New. Remove an element form a list.
20781 (ssa_operands_active): New. Return true if operand cache is active.
20782 (init_ssa_operands, fini_ssa_operands): Initialize new implementation.
20783 (ssa_operand_alloc): New. Allocate memory from an operand chunk.
20784 (correct_use_link): Use use_operand_p.
20785 (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_defs,
20786 finalize_ssa_vuses, finalize_ssa_v_must_defs): New implmentation.
20787 (cleanup_v_may_defs): Use new implmentation.
20788 (finalize_ssa_stmt_operands, start_ssa_stmt_operands): New
20790 (append_def, append_use, append_v_may_def, append_vuse,
20791 append_v_must_def): Call opbuild_append routine instead of using varray.
20792 (build_ssa_operands): Simplify to simply use stmt, don't maintain a
20793 global parse_old_ops variable.
20794 (free_ssa_operands): New implementation.
20795 (update_stmt_operands): Move. Change argument to build_ssa_operands.
20796 (copy_virtual_operands): Move. New generic implementation.
20797 (create_ssa_artficial_load_stmt): Move. New implementation.
20798 (swap_tree_operands): Update for new implementation.
20799 (get_expr_operands): Add stmt parameter to calls to swap_tree_operands.
20800 (add_call_clobber_ops, add_call_read_ops): Initialize opbuild list
20801 rather than a varray.
20802 (verify_imm_links): Use use_operand_p.
20803 (dump_immediate_uses_for): If the immediate use variable is a virtual
20804 variable, show the virtual ops in the stmt.
20805 * tree-ssa-operands.h (def_operand_p): No longer a structure.
20806 (NULL_DEF_OPERAND_P): Now a #define.
20807 (def_optype_d, use_optype_d, v_def_use_operand_type, v_may_def_optype_d,
20808 vuse_operand_type, vuse_optype_d, v_must_def_optype_d): Delete.
20809 (def_optype_d, use_optype_d, maydef_optype_d, vuse_optype_d,
20810 mustdef_optype_d): New. Use Linked list representation.
20811 (SSA_OPERAND_MEMORY_SIZE): New. Size of operand memory chunk.
20812 (struct ssa_operand_memory_d): New. Allocated Chunk node.
20813 (struct stmt_operands_d): Change to new pointers that are not GTY.
20814 (STMT_USE_OPS, NUM_USES, SET_USE_OP, STMT_DEF_OPS, NUM_DEFS, SET_DEF_OP,
20815 STMT_V_MAY_DEF_OPS, NUM_V_MAY_DEFS, SET_V_MAY_DEF_RESULT,
20816 SET_V_MAY_DEF_OP, STMT_VUSE_OPS, NUM_VUSES, SET_VUSE_OP,
20817 STMT_V_MUST_DEF_OPS, NUM_V_MUST_DEFS, SET_V_MUST_DEF_RESULT,
20818 SET_V_MUST_DEF_KILL): Delete.
20819 (V_MAY_DEF_OPS, V_MAY_DEF_RESULT_PTR, V_MAY_DEF_RESULT,
20820 V_MAY_DEF_OP_PTR, V_MAY_DEF_OP): Rename to MAYDEF_*.
20821 (V_MUST_DEF_OPS, V_MUST_DEF_RESULT_PTR, V_MUST_DEF_RESULT,
20822 V_MUST_DEF_KILL_PTR, V_MUST_DEF_KILL): Rename to MUSTDEF_*.
20823 (enum ssa_op_iter_type): Operand iterator typechecking values.
20824 (struct ssa_operand_iterator_d): Use linked lists of operands.
20825 (SSA_OP_VMUSTDEFKILL): Rename to SSA_OP_VMUSTKILL.
20826 (FOR_EACH_SSA_MAYDEF_OPERAND, FOR_EACH_SSA_MUSTDEF_OPERAND,
20827 FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): Use op_iter_next_maymustdef.
20828 (FOR_EACH_PHI_ARG): New. Iterate over PHI arguments.
20829 (FOR_EACH_PHI_OR_STMT_USE): New. Iterate over PHI or stmt uses.
20830 (FOR_EACH_PHI_OR_STMT_DEF): New. Iterate over PHI or stmt defs.
20831 (SINGLE_SSA_TREE_OPERAND, SINGLE_SSA_USE_OPERAND,
20832 SINGLE_SSA_DEF_OPERAND, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): New.
20833 * tree-ssa-opfinalize.h: New. Function templates for expansion.
20834 (FINALIZE_ALLOC): Expands into alloc_def, alloc_use, alloc_maydef,
20835 alloc_vuse, and alloc_mustdef.
20836 (FINALIZE_FUNC): Expands into finalize_ssa_def_ops,
20837 finalize_ssa_use_ops, finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
20838 and finalize_ssa_v_must_def_ops.
20839 * tree-ssa-pre.c (add_to_sets): Pass tree to vn_add.
20840 (create_value_expr_from): Use stmt not vuse_optype as a parameter. Pass
20842 (compute_avail): Use generic iterator interface.
20843 * tree-ssa-propagate.c (first_vdef): Use generic operand interface.
20844 (stmt_makes_single_load, stmt_makes_single_store): Use
20846 * tree-ssa-sink.c (is_hidden_global_store): Use ZERO_SSA_OPERANDS.
20847 (statement_sink_location): Use generic interface.
20848 * tree-ssa.c (verify_ssa): Use %p in fprintf. Use generic interface.
20849 (delete_tree_ssa): Don't call release_defs. Call release_ssa_name and
20850 reset the immediate use link nodes.
20851 (stmt_references_memory_p): Use ZERO_SSA_OPERANDS.
20852 * tree-ssanames.c (make_ssa_name): Use use_operand_p.
20853 * tree-tailcall.c (find_tail_calls): Use ZERO_SSA_OPERANDS.
20854 (eliminate_tail_call): Use generic operand interface.
20855 * tree-vect-analyze.c (vect_analyze_data_refs): Use ZERO_SSA_OPERANDS.
20856 (vect_mark_relevant, vect_mark_stmts_to_be_vectorized): Use generic
20858 * tree-vect-transform.c (update_vuses_to_preheader): Use generic
20860 * tree-vectorizer.c (rename_variables_in_bb): Use generic interface.
20861 * tree-vn.c (struct val_expr_pair_d): Cache statment pointer instead of
20863 (vn_compute, val_expr_pair_hash, vn_add, vn_lookup, vn_lookup_or_add):
20864 Use statement pointer instead of vuse_optype. Use generic interface.
20865 * tree-vrp.c (maybe_add_assert_expr): Use generic interface.
20866 (stmt_interesting_for_vrp, vrp_visit_stmt): Use ZERO_SSA_OPERANDS.
20867 * tree.h (struct ssa_imm_use_d): Renamed to ssa_use_operand_d.
20868 (tree_ssa_name, phi_arg_d): Use ssa_use_operand_d.
20869 * doc/tree-ssa.texi: Update documentation for operand interface.
20871 2005-05-03 Nathan Sidwell <nathan@codesourcery.com>
20873 * config/darwin.c (machopic_define_symbol): Use gcc_assert or
20874 gcc_unreachable as appropriate.
20875 (machopic_function_base_name, machopic_indirect_data_reference,
20876 machopic_legitimize_pic_address, darwin_non_lazy_pcrel): Likewise.
20877 * config/host-darwin.c (darwin_gt_pch_use_address): Likewise
20878 * config/rs6000/altivec.md (*mov<mode>_internal,
20879 build_vector_mask_for_load): Likewise.
20880 * config/rs6000/darwin.md (movdf_low_si, movdf_low_di,
20881 *call_nonlocal_darwin64, *call_value_nonlocal_darwin64,
20882 *sibcall_symbolic_64, *sibcall_value_symbolic_64): Likewise.
20883 * config/rs6000/predicates.md (easy_fp_constant,
20884 logical_operand): Likewise.
20885 * config/rs6000/rs6000.c (spe_expand_predicate_builtin,
20886 compute_save_world_info, rs6000_emit_prologue,
20887 rs6000_output_mi_thunk): Reword comments to avoid 'abort'.
20888 * config/rs6000/host-darwin.c (segv_handler): Use fancy_abort
20891 2005-05-03 Uros Bizjak <uros@kss-loka.si>
20893 PR middle-end/21282
20894 * convert.c (convert_to_integer): Convert ceil and floor in
20897 2005-04-29 Geoffrey Keating <geoffk@apple.com>
20900 * config/rs6000/rs6000.md (floatsidf2_internal): Merge to create
20901 define_insn_and_split. Split only when memory operand is
20902 offsettable. Use adjust_address rather than plus_constant.
20903 (floatunssidf2_internal): Likewise.
20904 (fix_truncdfsi2_internal): Split only when memory operand is
20905 offsettable. Use adjust_address rather than plus_constant.
20906 (fix_trunctfsi2_internal): Likewise.
20907 (floatsidf2_internal): Likewise.
20909 2005-05-02 Diego Novillo <dnovillo@redhat.com>
20911 * tree-vrp.c (set_value_range_to_nonnull): Declare inline.
20912 (set_value_range_to_null): Likewise.
20913 (set_value_range_to_varying): New function. Use it in all
20914 call sites that used to call set_value_range (vr, VR_VARYING, ...).
20915 (extract_range_from_assert): If the integral type has a
20916 super-type, and LIMIT is not within MIN and MAX values of that
20917 type, set the resulting range to VR_VARYING.
20919 2005-05-02 Hans-Peter Nilsson <hp@bitrange.com>
20921 * config/mmix/mmix.opt: New file.
20922 * config/mmix/mmix.h: Move options-related comments to mmix.opt.
20923 (mmix_cc1_ignored_option): Don't declare.
20924 (TARGET_OPTIONS, TARGET_MASK_LIBFUNCS, TARGET_MASK_ABI_GNU)
20925 (TARGET_MASK_FCMP_EPSILON, TARGET_MASK_ZERO_EXTEND)
20926 (TARGET_MASK_KNUTH_DIVISION, TARGET_MASK_TOPLEVEL_SYMBOLS)
20927 (TARGET_MASK_BRANCH_PREDICT, TARGET_MASK_USE_RETURN_INSN)
20928 (TARGET_MASK_BASE_ADDRESSES, TARGET_LIBFUNC, TARGET_ABI_GNU,
20929 (TARGET_FCMP_EPSILON, TARGET_ZERO_EXTEND, TARGET_KNUTH_DIVISION)
20930 (TARGET_TOPLEVEL_SYMBOLS, TARGET_BRANCH_PREDICT)
20931 (TARGET_BASE_ADDRESSES, TARGET_USE_RETURN_INSN, TARGET_SWITCHES):
20933 (TARGET_DEFAULT): Change TARGET_MASK_... to MASK_...
20934 * config/mmix/mmix.c (mmix_cc1_ignored_option): Remove.
20935 (TARGET_DEFAULT_TARGET_FLAGS): Override default.
20937 2005-05-02 Joseph S. Myers <joseph@codesourcery.com>
20940 * c-tree.h (C_DECL_BUILTIN_PROTOTYPE): New.
20941 * c-decl.c (current_function_prototype_built_in,
20942 current_function_prototype_arg_types): New.
20943 (merge_decls): Keep source location of prototype followed by
20944 nonprototype declaration. Update C_DECL_BUILTIN_PROTOTYPE.
20945 (builtin_function): Set C_DECL_BUILTIN_PROTOTYPE.
20946 (start_function): Always set current_function_prototype_locus,
20947 current_function_prototype_built_in and
20948 current_function_prototype_arg_types. Check for external
20949 prototype whether or not visible for external function and set
20950 current_function_prototype_arg_types accordingly.
20951 (store_parm_decls_oldstyle): Use
20952 current_function_prototype_arg_types for checking old-style
20953 definition against prototype. Give warnings only if
20954 current_function_prototype_built_in).
20956 2005-05-02 Daniel Jacobowitz <dan@codesourcery.com>
20958 * ggc.h (ggc_alloc_zone_pass_stat): New macro.
20959 (ggc_alloc_zone_stat): Don't define.
20960 * ggc-zone.c (ggc_alloc_typed_stat, ggc_alloc_stat): Use
20961 ggc_alloc_zone_pass_stat.
20962 * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Likewise.
20963 * tree.c (make_node_stat, copy_node_stat, make_tree_binfo_stat)
20964 (make_tree_vec_stat, tree_cons_stat, build1_stat): Likewise.
20966 2005-05-02 Daniel Jacobowitz <dan@codesourcery.com>
20968 * calls.c (expand_call): Handle current_function_pretend_args_size
20969 when checking for sibcalls.
20971 2005-05-02 Kazu Hirata <kazu@cs.umass.edu>
20973 PR tree-optimization/21294
20974 * tree-vrp.c (vrp_expr_computes_nonzero): New.
20975 (extract_range_from_expr): Call vrp_expr_computes_nonzero.
20977 2005-05-02 Janis Johnson <janis187@us.ibm.com>
20980 * gcov-io.h: Declare gcov external functions hidden.
20982 2005-05-02 Kazu Hirata <kazu@cs.umass.edu>
20984 * tree-ssa-uncprop.c (equiv_hash_elt, remove_equivalence,
20985 record_equiv, tree_ssa_uncprop, uncprop_into_successor_phis):
20986 Use VEC instead of VARRAY.
20989 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Factor
20992 2005-05-02 Paolo Bonzini <bonzini@gnu.org>
20994 * c-common.c (resolve_overloaded_builtin): Forward to target
20995 hook for BUILT_IN_MD built-ins.
20996 * c-typeck.c (finish_call_expr): Call resolve_overloaded_builtin
20997 for all types of built-in.
20998 * target-def.h (TARGET_RESOLVE_OVERLOADED_BUILTIN): New. Use it
20999 in the definition of the target hooks struct.
21000 * target.h (struct gcc_target): Add resolve_overloaded_builtin.
21001 * config/rs6000/altivec.h: Rewritten.
21002 * config/rs6000/rs6000-c.c (struct altivec_builtin_types,
21003 altivec_resolve_overloaded_builtin, altivec_build_resolved_builtin,
21004 rs6000_builtin_type, rs6000_builtin_type_compatible,
21005 altivec_overloaded_builtins, rs6000_builtin_type,
21006 rs6000_builtin_type_compatible): New.
21007 * config/rs6000/rs6000.c (rs6000_builtin_types, rs6000_builtin_decls):
21009 (def_builtin): Turn into a function. Check for duplicates and store
21010 the builtin into rs6000_builtin_decls.
21011 (bdesc_3arg, bdesc_dst, bdesc_altivec_preds, bdesc_2arg,
21012 bdesc_1arg): Add overloaded builtins.
21013 (altivec_expand_builtin): Check for unresolved overloaded builtins,
21014 do not support ALTIVEC_COMPILETIME_ERROR.
21015 (rs6000_init_builtins): Add opaque 128-bit vector, and internal
21016 nodes to represent front-end types.
21017 (altivec_init_builtins, rs6000_common_init_builtins): Create builtins
21018 with opaque arguments and/or return values.
21019 * config/rs6000/rs6000.h (enum rs6000_builtins): Remove
21020 ALTIVEC_COMPILETIME_ERROR and add Altivec overloaded builtins.
21021 (rs6000_builtin_type_index): New.
21022 (is_ev64_opaque_type): Rename to...
21023 (rs6000_is_opaque_type): ... this.
21024 (rs6000_cpu_cpp_builtins): Install the resolve_overloaded_builtin
21027 2005-05-02 Kazu Hirata <kazu@cs.umass.edu>
21029 * function.c (reorder_blocks, reorder_blocks_1): Use VEC
21032 2005-05-02 Nathan Sidwell <nathan@codesourcery.com>
21033 Bernd Schmidt <bernd.schmidt@analog.com>
21035 * config/bfin/bfin.c (emit_link_insn, effective_address_32bit_p,
21036 print_address_operand, print_operand, legitimize_pic_address,
21037 asm_conditional_branch, bfin_gen_compare, output_push_multiple,
21038 output_pop_multiple): Use gcc_assert or gcc_unreachable as
21040 * config/bfin/bfin.md (movsf splitter, beq, bne): Likewise.
21042 2005-05-02 Dorit Naishlos <dorit@il.ibm.com>
21044 * doc/passes.texi: Document vectorization pass.
21046 2005-05-02 Kazu Hirata <kazu@cs.umass.edu>
21048 * tree-scalar-evolution.c (get_exit_conditions_rec,
21049 select_loops_exit_conditions,
21050 number_of_iterations_for_all_loops,
21051 analyze_scalar_evolution_for_all_loop_phi_nodes,
21052 scev_analysis): Use VEC instead of VARRAY.
21054 2005-05-02 Michael Matz <matz@suse.de>
21057 * c-common.c (c_common_nodes_and_builtins): Create global null_node.
21058 (warn_strict_null_sentinel): Define.
21059 (check_function_sentinel): Check for null_node as valid sentinel too.
21060 * c-common.h (c_tree_index): Added CTI_NULL.
21061 (null_node) Define global_tree[CTI_NULL].
21062 (warn_strict_null_sentinel): Declare.
21063 * c-opts.c: (c_common_handle_option): Handle -Wstrict-null-sentinel.
21064 * c.opt: (Wstrict-null-sentinel): New C++ option.
21065 * doc/invoke.texi (C++ Options): Document -Wstrict-null-sentinel.
21067 2005-05-01 Kazu Hirata <kazu@cs.umass.edu>
21069 * gimplify.c (gimplify_compound_lval): Use VEC instead of
21072 * global.c (calculate_reg_pav): Use VEC instead of VARRAY.
21074 * dwarf2out.c (decl_scope_table, push_decl_scope,
21075 pop_decl_scope, scope_die_for, dwarf2out_init): Use VEC
21078 2005-05-01 Mark Mitchell <mark@codesourcery.com>
21081 * c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1
21083 * doc/cpp.texi (__DEPRECATED): Document.
21084 (__EXCEPTIONS): Likewise.
21085 (__GXX_WEAK__): Likewise.
21087 * function.c (INVOKE__main): Do not define.
21088 (expand_main_function): Check HAS_INIT_SECTION when determining
21089 whether or not to call __main.
21091 2005-05-01 Kazu Hirata <kazu@cs.umass.edu>
21093 * tree-ssa-loop-ivopts.c: Fix a comment typo.
21095 2005-01-05 Paul Brook <paul@codesourcery.com>
21097 * config/arm/arm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define.
21098 (INITIALIZE_TRAMPOLINE): Use it.
21099 * config/arm/linux-gas.h (INITIALIZE_TRAMPOLINE): Remove.
21100 * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Remove.
21101 * config/arm/netbsd-elf.h (INITIALIZE_TRAMPOLINE): Remove.
21103 2005-05-01 Gerald Pfeifer <gerald@pfeifer.com>
21105 * doc/install.texi (Specific): Omit dots in the @anchors names
21106 for i?86-*-sco3.2v5*, i?86-*-solaris2.10, and sparc-sun-solaris2.7.
21107 Omit underscores for x86_64-*-* and the "all ELF targets" entry.
21109 2005-05-01 Zdenek Dvorak <dvorakz@suse.cz>
21111 PR tree-optimization/18316
21112 PR tree-optimization/19126
21113 * tree.c (build_int_cst_type): Avoid shift by size of type.
21114 * tree-scalar-evolution.c (simple_iv): Add allow_nonconstant_step
21116 * tree-scalar-evolution.h (simple_iv): Declaration changed.
21117 * tree-ssa-loop-ivopts.c (struct iv_cand): Add depends_on
21119 (dump_cand): Dump depends_on information.
21120 (determine_biv_step): Add argument to simple_iv call.
21121 (contains_abnormal_ssa_name_p): Handle case expr == NULL.
21122 (find_bivs, find_givs_in_stmt_scev): Do not require step to be a
21124 (add_candidate_1): Record depends_on for candidates.
21125 (tree_int_cst_sign_bit, constant_multiple_of): New functions.
21126 (get_computation_at, get_computation_cost_at, may_eliminate_iv):
21127 Handle ivs with nonconstant step.
21128 (iv_ca_set_remove_invariants, iv_ca_set_add_invariants): New functions.
21129 (iv_ca_set_no_cp, iv_ca_set_cp): Handle cand->depends_on.
21130 (create_new_iv): Unshare the step before passing it to create_iv.
21131 (free_loop_data): Free cand->depends_on.
21132 (build_addr_strip_iref): New function.
21133 (find_interesting_uses_address): Use build_addr_strip_iref.
21134 (strip_offset_1): Split the recursive part from strip_offset.
21135 Strip constant offset component_refs and array_refs.
21136 (strip_offset): Split the recursive part to strip_offset_1.
21137 (add_address_candidates): Removed.
21138 (add_derived_ivs_candidates): Do not use add_address_candidates.
21139 (add_iv_value_candidates): Add candidates with stripped constant
21140 offset. Consider all candidates with initial value 0 important.
21141 (struct affine_tree_combination): New.
21142 (aff_combination_const, aff_combination_elt, aff_combination_scale,
21143 aff_combination_add_elt, aff_combination_add,
21144 tree_to_aff_combination, add_elt_to_tree, aff_combination_to_tree,
21145 fold_affine_sum): New functions.
21146 (get_computation_at): Use fold_affine_sum.
21147 * tree-ssa-loop-manip.c (create_iv): Handle ivs with nonconstant step.
21148 * tree-ssa-loop-niter.c (number_of_iterations_exit): Add argument
21151 2005-04-30 Michael Matz <matz@suse.de>
21153 * config/i386/i386.md (movmemsi): Also active when
21154 TARGET_INLINE_ALL_STRINGOPS.
21156 2005-04-30 Eric Botcazou <ebotcazou@libertysurf.fr>
21159 * config/freebsd-spec.h (FBSD_CPP_SPEC): Add %(cpp_arch).
21161 2005-04-30 Paul Brook <paul@codesourcery.com>
21163 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Always use .thumb_set in
21165 * config/arm/ieee754-df.S: Use __INTERWORKING_STUBS__.
21166 * config/arm/ieee754-sf.S: Ditto.
21167 * config/arm/lib1funcs.asm: Define and use __INTERWORKING_STUBS__.
21168 (FUNC_ALIAS): Use .thumb_set for thumb routines.
21170 2005-04-30 Kazu Hirata <kazu@cs.umass.edu>
21172 * tree-ssanames.c: Fix a comment typo.
21173 * doc/options.texi: Fix a typo.
21175 2005-04-30 Nathan Sidwell <nathan@codesourcery.com>
21177 * config/h8300/h8300.c (byte_reg): Use gcc_assert and
21178 gcc_unreachable as appropriate.
21179 (split_adds_subs, cond_string, print_operand,
21180 h8300_initial_elimination_offset, h8300_classify_operand,
21181 h8300_unary_length, h8300_short_immediate_length,
21182 h8300_bitfield_length, h8300_binary_length,
21183 h8300_insn_length_from_table, compute_mov_length, output_plussi,
21184 compute_plussi_length, compute_plussi_cc, output_logical_op,
21185 compute_logical_op_length, compute_logical_op_cc,
21186 output_h8sx_shift, get_shift_alg, h8300_shift_needs_scratch_p,
21187 output_a_shift, compute_a_shift_length, compute_a_shift_cc,
21188 output_a_rotate, compute_a_rotate_length, fix_bit_operand,
21189 h8300_regs_ok_for_stm): Likewise.
21190 * config/h8300/h8300.md (*movsi_h8300, *movsf_h8300,
21191 monitor_prologue): Likewise.
21193 2005-04-30 Kazu Hirata <kazu@cs.umass.edu>
21195 * loop-invariant.c (invariants, create_new_invariant,
21196 get_inv_cost, best_gain_for_invariant,
21197 find_invariants_to_move, move_invariants,
21198 init_inv_motion_data, free_inv_motion_data): Use VEC instead
21201 2005-04-29 Richard Henderson <rth@redhat.com>
21203 * function.c (instantiate_decls): Remove valid_only argument.
21204 (instantiate_decls_1, instantiate_decl): Likewise.
21205 (instantiate_virtual_regs_1): Delete.
21206 (instantiate_virtual_regs_lossage): Delete.
21207 (instantiate_virtual_regs_in_rtx): New.
21208 (safe_insn_predicate): New.
21209 (instantiate_virtual_regs_in_insn): New.
21210 (instantiate_virtual_regs): Update to match all that. Only run
21211 instantiate_decls once.
21213 2005-04-29 Richard Henderson <rth@redhat.com>
21214 Daniel Jacobowitz <dan@codesourcery.com>
21216 * gengtype.c (write_func_for_structure): Split out ...
21217 (output_type_enum): ... new function. Fix thinko accessing
21218 TYPE_PARAM_STRUCT data.
21220 2005-04-29 Tom Tromey <tromey@redhat.com>
21222 * tree.c (build_block): Removed unused 'tags' argument.
21223 * tree.h (build_block): Removed argument.
21225 2005-04-29 Michael Matz <matz@suse.de>
21227 PR rtl-optimization/21144
21228 * postreload.c (reload_cse_move2add): Check for VOIDmode.
21230 2005-04-29 Bob Wilson <bob.wilson@acm.org>
21232 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable
21233 flag_reorder_blocks.
21235 2005-04-28 Kazu Hirata <kazu@cs.umass.edu>
21237 PR tree-optimization/21030
21238 * tree-vrp.c (adjust_range_with_scev): Do not create invalid
21239 ranges where VR->MAX is smaller than VR->MIN.
21241 2005-04-29 Devang Patel <dpatel@apple.com>
21243 PR tree-optimization/21272
21244 PR tree-optimization/21266
21245 * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.
21247 2005-04-29 Kazu Hirata <kazu@cs.umass.edu>
21249 * tree-flow-inline.h: Fix a comment typo.
21250 * doc/tree-ssa.texi: Fix a typo.
21252 * tree-flow-inline.h, tree-ssa-operands.c: Fix comment typos.
21254 2005-04-29 Nathan Sidwell <nathan@codesourcery.com>
21256 * config/fr30/fr30.c (fr30_expand_prologue): Use gcc_assert and
21257 gcc_unreachable as appropriate.
21258 (fr30_expand_epilogue, fr30_setup_incoming_varargs,
21259 fr30_print_operand, fr30_move_double): Likewise.
21260 * config/fr30/fr30.md (*movsi_internal, *movsf_internal): Likewise.
21262 2005-04-29 Mark Mitchell <mark@codesourcery.com>
21264 * config/arm/arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a
21265 definition has already been provided.
21266 (ARM_EABI_DTORS_SECTION_OP): Likewise.
21267 * config/arm/symbian.h (ARM_EABI_CTORS_SECTION_OP): Define.
21268 (ARM_EABI_DTORS_SECTION_OP): Likewise.
21270 2005-04-29 Jim Tison <jtison@us.ibm.com>
21272 * config/s390/s390.md ("prologue_tpf", "epilogue_tpf"): Alter
21273 trace hooks calls to improve performance.
21275 2005-04-29 Julian Brown <julian@codesourcery.com>
21276 Mark Mitchell <mark@codesourcery.com>
21277 Paul Brook <paul@codesourcery.com>
21279 * crtstuff.c: Handle targets that use .init_array.
21280 * function.c (HAS_INIT_SECTION): Do not define. Instead, make sure
21281 that INVOKE__main is set correctly.
21282 (expand_main_function): Test INVOKE__main.
21283 * libgcc2.c: Do not define __main when using .init_array.
21284 * config/arm/arm.c (arm_elf_asm_constructor): New function.
21285 * config/arm/arm.h (CTORS_SECTION_ASM_OP): Define, with specialized
21287 (DTORS_SECTION_ASM_OP): Likewise.
21288 (CTOR_LIST_BEGIN): Define specially when in libgcc.
21289 (CTOR_LIST_END): Likewise.
21290 (DTOR_LIST_BEGIN): Likewise.
21291 (DTOR_LIST_END): Likewise.
21292 * config/arm/bpapi.h (INIT_SECTION_ASM_OP): Do not define it.
21293 (FINI_SECTION_ASM_OP): Likewise.
21294 (INIT_ARRAY_SECTION_ASM_OP): Define.
21295 (FINI_ARRAY_SECTION_ASM_OP): Likewise.
21296 * config/arm/elf.h (TARGET_ASM_CONSTRUCTOR): Define.
21297 (SUPPORTS_INIT_PRIORITY): Evaluate to false for EABI based targets.
21298 * doc/tm.texi (INIT_ARRAY_SECTION_ASM_OP): Document.
21299 (FINI_ARRAY_SECTION_ASM_OP): Likewise.
21301 2005-04-29 Nathan Sidwell <nathan@codesourcery.com>
21303 * config/m68k/m68k.c (m68k_initial_elimination_offset): Use
21304 gcc_assert and gcc_unreachable as appropriate.
21305 (output_dbcc_and_branch, output_scc_di, legitimize_pic_address,
21306 const_int_cost, output_move_const_into_data_reg,
21307 output_move_qimode, output_move_double, find_addr_reg,
21308 print_operand, print_operand_address): Likewise.
21309 * config/m68k/m68k.md (adddi3, subdi3, negsf2, negdf2, abssf2,
21310 absdf2, sordered, sunordered, suneq, sunge, sungt, sunle, sunlt,
21311 sltgt, bordered, bunordered, buneq, bunge, bungt, bunle, bunlt,
21312 bltgt, *bordered_rev, *bunordered_rev, *buneq_rev, *bunge_rev,
21313 *bunle_rev, *bunlt_rev, *bltgt_rev, negxf2, absxf2,
21314 conditional_trap): Likewise.
21315 * config/m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Remove unreachable code.
21317 2005-04-29 Nathan Sidwell <nathan@codesourcery.com>
21319 * config/xtensa/xtensa.c (gen_int_relational): Use gcc_assert and
21320 gcc_unreachable as appropriate.
21321 (gen_conditional_move, xtensa_split_operand_pair,
21322 xtensa_split_operand_pair, xtensa_copy_incoming_a7,
21323 xtensa_copy_incoming_a7, xtensa_copy_incoming_a7,
21324 xtensa_copy_incoming_a7, xtensa_output_literal,
21325 xtensa_output_literal, xtensa_output_literal): Likewise.
21326 * config/xtensa/xtensa.h (INITIAL_ELIMINATION_OFFSET): Likewise.
21327 * config/xtensa/xtensa.md (*btrue, *bfalse, *ubtrue, *ubfalse,
21328 *bittrue, *bitfalse, *masktrue, *maskfalse, movsicc_internal0,
21329 movsicc_internal1, movsfcc_internal0,
21330 movsfcc_internal1): Likewise.
21332 2005-04-28 James E Wilson <wilson@specifixinc.com>
21334 * config/i386/i386.h (HI_REGISTER_NAMES): Fix typos in comment.
21335 (ADDITIONAL_REGISTER_NAMES): Delete obsolete mmx register entries.
21337 2005-04-28 DJ Delorie <dj@redhat.com>
21339 * opt-functions.awk (var_set): Emit proper initializer for
21340 non-target bitfields.
21342 2005-04-28 Devang Patel <dpatel@apple.com>
21344 * dbxout.c (have_used_extensions): Remove.
21345 (dbxout_type_fileds, dbxout_type, dbxout_symbol): Remove use of
21346 have_used_extensions.
21348 2005-04-28 James E Wilson <wilson@specifixinc.com>
21350 * doc/install.texi: Update -enable-languages info. Correct path to
21353 2005-04-28 DJ Delorie <dj@redhat.com>
21355 * optc-gen.awk (END): Make sure no variable is defined more
21357 * opth-gen.awk (END): Allocate bits on a per-variable basis.
21358 Allow for bitfield variables other than target_flags.
21359 * doc/options.text (Mask): Document that you may specify a
21360 variable other than target_flags.
21362 2005-04-28 Martin Koegler <mkoegler@auto.tuwien.ac.at>
21364 PR rtl-optimization/18877
21365 * reload.c (decompose) <case REG, case SUBREG>: Handle pseudo reg
21366 number in val.start.
21368 2005-04-28 David Edelsohn <edelsohn@gnu.org>
21371 * config/rs6000/aix43.h (SUBSUBTARGET_SWITCHES, aix64): Add
21373 * config/rs6000/aix51.h (SUBSUBTARGET_SWITCHES, aix64): Same.
21374 * config/rs6000/aix52.h (SUBSUBTARGET_SWITCHES, aix64): Same.
21375 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES, 64): Same.
21377 2005-04-28 Richard Earnshaw <richard.earnshaw@arm.com>
21379 * arm.c (legitimize_pic_address): Fix sense of assertion test for
21380 creating pseudos when the base offset is too large.
21382 2005-04-28 Kazu Hirata <kazu@cs.umass.edu>
21384 * global.c (earlyclobber_regclass): Change the type to
21386 (check_earlyclobber): Update uses of earlyclobber_regclass.
21387 (mark_reg_use_for_earlyclobber): Likewise.
21388 (calculate_local_reg_bb_info): Allocate and free
21389 earlyclobber_regclass using the VEC API.
21391 2005-04-28 Nathan Sidwell <nathan@codesourcery.com>
21393 * tree-ssa-alias.c (push_fields_onto_fieldstack): Remove bogus
21396 2005-04-28 Kazu Hirata <kazu@cs.umass.edu>
21398 * modulo-sched.c, tree-stdarg.c: Use targetm.foo instead of
21401 * config.gcc: Obsolete c4x-* and tic4x-*.
21403 * tree.h (edge_def): Remove.
21405 * bt-load.c, cfgexpand.c, dwarf2out.c, emit-rtl.c, expr.c,
21406 function.c, global.c, lcm.c, loop-invariant.c, optabs.c,
21407 reorg.c, resource.c, tree-ssa-loop-ivopts.c, value-prof.c: Use
21408 JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P
21411 * attribs.c, c-pragma.c, caller-save.c, cfghooks.h,
21412 coverage.c, cselib.h, domwalk.c, domwalk.h, errors.c,
21413 errors.h, gcov-dump.c, gcov-io.c, gcov-io.h, gen-protos.c,
21414 genattrtab.h, genextract.c, gthr-win32.h, insn-notes.def,
21415 integrate.c, lambda-mat.c, lambda.h, libgcov.c, local-alloc.c,
21416 machmode.def, mips-tfile.c, params.c, pretty-print.c,
21417 print-rtl.c, protoize.c, regmove.c, sched-vis.c, tree-chrec.h,
21418 tree-data-ref.h, vec.h, config/darwin-c.c, config/sol2-c.c,
21419 config/sol2.c, config/arm/arm-cores.def, config/arm/cirrus.md,
21420 config/arm/symbian.h, config/c4x/c4x.c, config/c4x/c4x.h,
21421 config/i386/cygming.h, config/i386/djgpp.h,
21422 config/i386/lynx.h, config/i386/netware.c,
21423 config/i386/winnt.c, config/ia64/ia64-c.c,
21424 config/iq2000/iq2000.c, config/m32r/little.h,
21425 config/m68k/m68k-protos.h, config/m68k/m68k.h,
21426 config/m68k/m68k.md, config/mcore/mcore.c,
21427 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.md,
21428 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
21429 config/mn10300/mn10300.h, config/ns32k/netbsd.h,
21430 config/ns32k/ns32k.c, config/ns32k/ns32k.h,
21431 config/pa/pa-hpux11.h, config/pdp11/pdp11.c,
21432 config/pdp11/pdp11.h, config/rs6000/darwin.h,
21433 config/rs6000/default64.h, config/rs6000/rs6000-c.c,
21434 config/s390/2064.md, config/s390/2084.md,
21435 config/s390/s390-modes.def, config/s390/s390-protos.h,
21436 config/s390/tpf.h, config/sh/sh.h, config/sh/symbian.c,
21437 config/stormy16/stormy16.c, config/vax/vax-protos.h,
21438 config/vax/vax.c, config/vax/vax.h,
21439 config/xtensa/lib1funcs.asm, config/xtensa/xtensa.md: Update
21442 2005-04-28 Joseph S. Myers <joseph@codesourcery.com>
21444 * c-typeck.c (build_compound_expr): Correct logic in last change.
21446 2005-04-27 James E. Wilson <wilson@specifixinc.com>
21448 * config/ia64/ia64.c (update_set_flags): Delete ppred and pcond
21449 parameters. Replace conditional move code with assert checking for
21450 ar.lc. Delete obsolete comments.
21451 (set_src_needs_barrier): Delete cond parameter, and code using it.
21452 (rtx_needs_barrier): Delete initialization of cond. Fix typo in
21453 assert checking for PR_REGS. Fix calls to update_set_flags and
21454 set_src_needs_barrier.
21455 (group_barrier_needed): Renamed from group_barrier_needed_p. Fix all
21456 callers. Rewrite explanatory comment before the function.
21457 (safe_group_barrier_needed): Renamed from safe_group_barrier_needed_p.
21460 2005-04-27 Mike Stump <mrs@apple.com>
21462 * doc/cpp.texi: gcc now implements universal character names.
21464 2005-04-27 Joseph S. Myers <joseph@codesourcery.com>
21467 * c-typeck.c (build_compound_expr): Don't warn for left-hand side
21468 being a compound expression whose right-hand side is cast to void.
21470 2005-04-27 Caroline Tice <ctice@apple.com>
21472 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
21473 Remove targetm.have_named_sections test.
21474 (fix_edges_for_rarely_executed_code): Likewise.
21475 (insert_section_boundary_note): Likewise.
21476 (reorder_basic_blocks): Check partitioning flag before calling
21477 verify_hot_cold_block_grouping.
21478 * dbxout.c (dbxout_function_end): Get hot/cold section labels from
21479 the function struct rather than global variables.
21480 * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
21481 (COLD_END_LABEL): Likewise
21482 (cold_text_section_label): New static global variable.
21483 (cold_end_label): Likewise.
21484 (dwarf2out_switch_text_section): Get hot/cold section labels from
21485 the function struct rather than global variables; test to make sure
21487 (output_aranges): Use cold_text_section_label and cold_end_label;
21488 check partitioning flag before putting out delta.
21489 (output_ranges): Remove incorrect code attempting to use
21491 (output_line_info): Get cold section label from function struct; test
21492 to make sure cfun is defined.
21493 (add_location_or_const_value_attribute): Likewise.
21494 (dwarf2out_var_location): Likewise.
21495 (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
21496 write out cold_text_section_label if partition flag is set.
21497 (dwarf2out_finish): Write out cold_end_label if partition flag is set;
21498 * function.h (struct function): Add new fields to point to hot/cold
21499 section labels: hot_section_label, cold_section_label,
21500 hot_section_end_label and cold_section_end_label; also add new field
21501 for cold text section name, unlikely_text_section_name.
21502 * opts.c (decode_options): Turn off partitioning flag if
21503 !targetm.have_named_sections.
21504 * output.h (hot_section_label): Remove.
21505 (hot_section_end_label): Remove.
21506 (cold_section_end_label): Remove.
21507 (unlikely_section_label): Remove.
21508 (unlikely_text_section_name): Remove.
21509 * passes.c (rest_of_handle_final): Remove extra blank line.
21510 * varasm.c (unlikely_section_label): Remove.
21511 (hot_section_label): Remove.
21512 (hot_section_end_label): Remove.
21513 (cold_section_end_label): Remove.
21514 (unlikely_text_section_name): Remove.
21515 (initialize_cold_section_name): Modify to call
21516 targetm.strip_name_encoding; to store cold section name in current
21517 function struct, if it exists; and to only use the decl_section_name
21518 if flag_named_sections is true.
21519 (unlikely_text_section): Modify to get section name out of current
21520 function struct, if there is one; otherwise build it from
21521 UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
21522 (in_unlikely_text_section): Likewise.
21523 (named_section): Modify to get/put cold section name in current function
21524 struct, if there is one.
21525 (function_section): Change 'bool unlikely' to 'int reloc'; check
21526 targetm.have_named_sections before calling named_section.
21527 (current_function_section): Likewise.
21528 (assemble_start_function): Modify to get/put unlikely_text_section_name
21529 in current function struct; modify to get hot/cold section labels
21530 from function struct; initialize labels using
21531 ASM_GENERATE_INTERNAL_LABEL;
21532 test partitioning flag before writing out hot section label.
21533 (assemble_end_function): Test partitioning flag before writing out
21534 hot/cold section labels.
21535 (default_section_type_flags_1): Get cold text section name from
21536 function struct if there is one; Set flags correctly for
21537 cold text section if there is not a current function struct.
21539 2005-04-27 Richard Guenther <rguenth@gcc.gnu.org>
21541 * tree-ssa-propagate.c (set_rhs): Revert last change.
21543 2005-04-27 Steve Ellcey <sje@cup.hp.com>
21545 * explow.c (convert_memory_address): Add gcc_assert.
21547 2005-04-27 Mark Mitchell <mark@codesourcery.com>
21549 * configure.ac: Check for ld --sysroot support.
21550 * gcc.c: Document %R specifier for specs.
21551 (SYSROOT_SPEC): New macro.
21552 (sysroot_spec): New variable.
21553 (static_specs): Add sysroot_spec.
21554 (main): Pass the sysroot spec to the linker if appropriate.
21555 * configure: Regenerated.
21556 * config.in: Likewise.
21558 2005-04-27 Richard Guenther <rguenth@gcc.gnu.org>
21560 * fold-const.c (fold_binary): Use build_fold_addr_expr
21561 for address calculation and INDIRECT_REF handling.
21563 2005-04-27 Andrew Haley <aph@redhat.com>
21565 * postreload-gcse.c (hash_scan_set): Remove bogus assertion.
21567 2005-04-27 Nathan Sidwell <nathan@codesourcery.com>
21569 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Reserve arm frame
21570 pointer when thumb backtracing is on.
21572 * config/fp-bit.c (abort): Revert change.
21574 2005-04-27 Ian Lance Taylor <ian@airs.com>
21576 * c-semantics.c (add_stmt): Don't test STATEMENT_CODE_P.
21578 2005-04-27 Kazu Hirata <kazu@cs.umass.edu>
21580 * tree-ssa-dce.c: Fix a comment typo.
21582 2005-04-27 David S. Miller <davem@davemloft.net>
21584 * explow.c (allocate_dynamic_stack_space SETJMP_VIA_SAVE_AREA):
21585 Kill setjmpless_size. current_function_calls_setjmp is completely
21586 computed when we are called, so just use the optimized size value
21587 instead of using REG_SAVE_AREA notes.
21588 (optimize_save_area_alloca): Delete....
21589 * rtl.h (optimize_save_area_alloca): Likewise...
21590 * passes.c (rest_of_compilation): and don't call it any more.
21591 * reg-notes.def (SAVE_AREA): Delete.
21593 2005-04-27 Nathan Sidwell <nathan@codesourcery.com>
21595 * config/fp-bit.c (abort): Add noreturn attribute.
21597 * config/avr/avr.c (avr_naked_function_p): Use gcc_assert and
21598 gcc_unreachable as appropriate.
21599 (ptrreg_to_str, cond_string, avr_normalize_condition): Likewise.
21600 * config/avr/avr.h (ASM_OUTPUT_REG_PUSH,
21601 ASM_OUTPUT_REG_POP): Likewise.
21603 2005-04-27 Paolo Bonzini <bonzini@gnu.org>
21605 * tree-complex.c (expand_vector_operations_1): Do not build
21606 VIEW_CONVERT_EXPR's for the lhs.
21608 2005-04-27 Nathan Sidwell <nathan@codesourcery.com>
21610 * config/pa/pa.h (PRINT_OPERAND_ADDRESS): Use gcc_assert, remove
21611 unnecessary noncanonical RTL handling.
21612 * config/pa/pa64-linux.h (INITIAL_ELIMINATION_OFFSET): Use
21613 gcc_assert and gcc_unreachable.
21615 * config/arm/arm.h (ARM_PRINT_OPERAND_ADDRESS): Use gcc_assert and
21616 gcc_unreachable as appropriate.
21617 (THUMB_PRINT_OPERAND_ADDRESS): Likewise.
21618 * config/arm/arm.c (arm_override_options, arm_compute_func_type,
21619 use_return_insn, const_ok_for_op, arm_gen_constant,
21620 arm_canonicalize_comparison, legitimize_pic_address,
21621 thumb_find_work_register, arm_load_pic_register, arm_rtx_costs_1,
21622 arm_cirrus_insn_p, cirrus_reorg, minmax_code,
21623 load_multiple_sequence, emit_ldm_seq, store_multiple_sequence,
21624 emit_stm_seq, arm_gen_movmemqi, arm_select_dominance_cc_mode,
21625 arm_select_cc_mode, arm_reload_in_hi, arm_reload_out_hi,
21626 move_minipool_fix_forward_ref, move_minipool_fix_backward_ref,
21627 dump_minipool, create_fix_barrier, push_minipool_fix, arm_reorg,
21628 fp_immediate_constant, fp_const_from_val, vfp_output_fstmx,
21629 output_call, output_mov_long_double_fpa_from_arm,
21630 output_mov_long_double_arm_from_fpa,
21631 output_mov_double_fpa_from_arm, output_mov_double_arm_from_fpa,
21632 output_move_double, arithmetic_instr, shift_op, int_log2,
21633 output_return_instruction, arm_output_function_prologue,
21634 arm_output_epilogue, arm_output_function_epilogue,
21635 emit_multi_reg_push, arm_get_frame_offsets,
21636 arm_compute_initial_elimination_offset, arm_expand_prologue,
21637 arm_print_operand, arm_assemble_integer, get_arm_condition_code,
21638 arm_final_prescan_insn, arm_init_iwmmxt_builtins,
21639 arm_expand_binop_builtin, thumb_pushpop, thumb_far_jump_used_p,
21640 thumb_compute_initial_elimination_offset,
21641 thumb_output_function_prologue, thumb_load_double_from_address,
21642 thumb_output_move_mem_multiple, thumb_reload_out_hi,
21643 arm_emit_vector_const, arm_dbx_register_number): Likewise.
21644 * config/arm/pe.c (arm_mark_dllexport, arm_mark_dllimport): Likewise.
21645 * config/arm/arm.md (thumb_extendhisi2,
21646 *thumb_extendhisi2_insn_v6, *thumb_extendqisi2,
21647 *thumb_extendqisi2_v6, movhi, *thumb_movhi_insn,
21648 thumb_movhi_clobber, movqi, *arm_buneq, *arm_bltgt,
21649 *arm_buneq_reversed, *arm_bltgt_reversed, suneq, sltgt): Likewise.
21650 * config/arm/cirrus.md (*cirrus_arm_movdi,
21651 *cirrus_movdf_hard_insn): Likewise.
21652 * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
21654 2005-04-27 Kazu Hirata <kazu@cs.umass.edu>
21656 * tree-flow.h (ssa_names): Change the type to VEC(tree,gc).
21657 (num_ssa_names): Use VEC_length.
21658 (ssa_names): Use VEC_index.
21659 * tree-ssanames.c (ssa_names): Change the type to
21661 (init_ssanames, fini_ssa_names, make_ssanames,
21662 release_ssa_name): Update uses of ssa_names.
21664 * dojump.c, emit-rtl.c, expmed.c, expr.c, stmt.c, stor-layout.c:
21665 Use fold_buildN instead of fold (buildN (...)).
21667 2005-04-27 Devang Patel <dpatel@apple.com>
21669 * dbxout.c (dbxout_type): Check use_gnu_debug_info_extensions.
21671 2005-04-27 Matt Thomas <matt@3am-software.com>
21672 Jan-Benedict Glaw <jbglaw@microdata-pos.de>
21674 * config/vax/vax.c (vax_rtx_costs): Whitespace cleanup.
21675 (vax_output_mi_thunk): Ditto.
21676 (vax_notice_cc_update): Ditto.
21677 (INDEX_REGISTER_P): Add trailing \.
21678 (BASE_REGISTER_P): Add trailing \.
21679 (legitimate_address_p): Whitespace cleanup. Remove trailing \.
21681 2005-04-27 Richard Guenther <rguenth@gcc.gnu.org>
21683 * tree-ssa-propagate.c (set_rhs): Check operand of
21684 ADDR_EXPR for gimpliness, too.
21686 2005-04-27 Kazu Hirata <kazu@cs.umass.edu>
21688 * tree-ssa-pre.c: Fix a comment typo.
21690 2005-04-27 Zdenek Dvorak <dvorakz@suse.cz>
21692 PR tree-optimization/21171
21693 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not
21694 record address uses if the reference is volatile.
21696 2004-04-27 Paolo Bonzini <bonzini@gnu.org>
21698 * tree-complex.c (expand_vector_operation): New, extracted from
21699 expand_vector_operations_1.
21700 (tree_vec_extract): Build a NOP_EXPR.
21701 (expand_vec_parallel): Do not care about returning the correct type.
21702 (expand_vector_operations_1): Call expand_vector_operation.
21703 Build the VIEW_CONVERT_EXPR on the left side of MODIFY_EXPRs.
21705 * tree-complex.c (gate_expand_vector_operations): New.
21706 (pass_lower_vector_ssa): Use it.
21707 * tree-optimize.c (init_tree_optimization_passes): Include
21708 pass_lower_vector_ssa.
21709 * tree-vect-transform.c (vect_min_worthwhile_factor): New.
21710 (vectorizable_operation): Use it.
21711 * tree-vectorizer.c (get_vectype_for_scalar_type): Accept
21712 integer modes for the vector type.
21714 * defaults.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
21715 * tree-vect-analyze.c (vect_enhance_data_refs_alignment):
21716 Do not cope with UNITS_PER_SIMD_WORD == 0.
21717 * tree-vectorizer.c (get_vectype_for_scalar_type): Check
21718 if the scalar type is not bigger than UNITS_PER_SIMD_WORD.
21719 (vectorize_loops): Do not check that UNITS_PER_SIMD_WORD > 0.
21720 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
21721 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
21722 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
21723 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
21725 * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): Remove.
21726 * config/bfin/bfin.h (UNITS_PER_SIMD_WORD): Remove.
21727 * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): Remove.
21729 * doc/tm.texi (UNITS_PER_WORD): Rephrase more accurately.
21730 (UNITS_PER_SIMD_WORD): New.
21732 2005-04-27 Nathan Sidwell <nathan@codesourcery.com>
21734 * config/ia64/ia64.c (ia64_encode_addr_area): Use gcc_assert and
21735 gcc_unreachable as appropriate.
21736 (ia64_expand_load_address, ia64_expand_tls_address,
21737 ia64_split_tmode, ia64_split_tmode_move, ia64_expand_compare,
21738 ia64_expand_vecint_compare, ia64_expand_vecint_minmax,
21739 next_scratch_gr_reg, ia64_initial_elimination_offset,
21740 ia64_expand_prologue, ia64_expand_epilogue,
21741 ia64_output_dwarf_dtprel, ia64_print_operand,
21742 ia64_register_move_cost, first_instruction, rws_access_regno,
21743 update_set_flags, rtx_needs_barrier, group_barrier_needed_p,
21744 ia64_sched_init, ia64_variable_issue,
21745 ia64_first_cycle_multipass_dfs_lookahead_guard,
21746 ia64_dfa_new_cycle, issue_nops_and_insn, get_template, bundling,
21747 ia64_st_address_bypass_p, ia64_ld_address_bypass_p, process_set,
21748 process_for_unwind_directive, ia64_hpux_file_end): Likewise.
21749 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
21750 * config/ia64/ia64.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
21751 * config/ia64/predicates.md (got_symbolic_operand,
21752 sdata_symbolic_operand): Likewise.
21753 * config/ia64/vect.md (vcondv2sf): Likewise.
21755 2005-04-27 Matt Thomas <matt@3am-software.com>
21757 * config/vax/vax.c (legitimate_constant_address_p): New. Formerly
21758 CONSTANT_ADDRESS_P in config/vax/vax.h
21759 (legitimate_constant_p): Added. Formerly CONSTANT_P in vax.h.
21760 (INDEX_REGISTER_P): New.
21761 (BASE_REGISTER_P): New.
21762 (indirectable_constant_address_p): New. Adapted from
21763 INDIRECTABLE_CONSTANT_ADDRESS_P in vax.h. Use SYMBOL_REF_LOCAL_P.
21764 (indirectable_address_p): New. Adapted from
21765 INDIRECTABLE_ADDRESS_P in vax.h.
21766 (nonindexed_address_p): New. Adapted from
21767 GO_IF_NONINDEXED_ADDRESS in vax.h.
21768 (index_temp_p): New. Adapted from INDEX_TERM_P in vax.h.
21769 (reg_plus_index_p): New. Adapted from GO_IF_REG_PLUS_INDEX in vax.h.
21770 (legitimate_address_p): New. Adapted from
21771 GO_IF_LEGITIMATE_ADDRESS in vax.h.
21772 (vax_mode_dependent_address_p): New. Adapted from
21773 GO_IF_MODE_DEPENDENT_ADDRESS in vax.h.
21774 * config/vax/vax.h (CONSTANT_ADDRESS_P): Use
21775 legitimate_constant_address_p.
21776 (CONSTANT_P): Use legitimate_constant_p.
21777 (INDIRECTABLE_CONSTANT_ADDRESS_P): Removed.
21778 (INDIRECTABLE_ADDRESS_P): Removed.
21779 (GO_IF_NONINDEXED_ADDRESS): Removed.
21780 (INDEX_TEMP_P): Removed.
21781 (GO_IF_REG_PLUS_INDEX): Removed.
21782 (GO_IF_LEGITIMATE_ADDRESS): Use legitimate_address_p. Two
21783 definitions, depending on whether REG_OK_STRICT is defined.
21784 (GO_IF_MODE_DEPENDENT_ADDRESS): Use vax_mode_dependent_address_p.
21785 Two definitions, depending on whether REG_OK_STRICT is defined.
21786 * config/vax/vax-protos.h (legitimate_constant_address_p): Prototype
21788 (legitimate_constant_p): Prototype added.
21789 (legitimate_address_p): Prototype added.
21790 (vax_mode_dependent_address_p): Prototype added.
21792 2005-04-27 Kazu Hirata <kazu@cs.umass.edu>
21794 * tree.h (phi_arg_d): Expand a comment in phi_arg_d.
21796 2005-04-27 Joseph S. Myers <joseph@codesourcery.com>
21799 * c-decl.c (finish_struct): Don't dereference NULL TYPE_FIELDS of
21802 2005-04-27 Joseph S. Myers <joseph@codesourcery.com>
21805 * c-format.c (init_dynamic_asm_fprintf_info): Give errors, not
21806 assertion failures, if __gcc_host_wide_int__ is not properly
21808 (init_dynamic_diag_info): Give errors, not assertion failures, if
21809 location_t, tree or __gcc_host_wide_int__ are not properly
21812 2005-04-26 Kazu Hirata <kazu@cs.umass.edu>
21814 * tree-ssa-loop-ivopts.c (ivopts_data, decl_rtl_to_reset,
21815 n_iv_uses, iv_use, n_iv_cands, iv_cand,
21816 tree_ssa_iv_optimize_init, record_use, add_candidate_1,
21817 prepare_decl_rtl, free_loop_data,
21818 tree_ssa_iv_optimize_finalize): Use the VEC API instead of
21821 * tree.h (tree_phi_node): Add a comment about the order of PHI
21824 2005-04-26 Paul Brook <paul@codesourcery.com>
21826 * config/arm/arm.md (thumb_mulsi3): Use two-operand assembly form.
21828 2005-04-26 Nathan Sidwell <nathan@codesourcery.com>
21830 * config/mips.mips.c (mips_legitimize_tls_address): Use
21833 * config/mmix/mmix.c (mmix_assemble_integer): Use gcc_assert.
21834 * config/mmix/crti.asm (_init): Reword comment to avoid 'abort'.
21835 * config/mmix/mmix.md (nonlocal_goto_receiver): Likewise.
21837 * config/sparc/sparc.h (enum reg_class): Reword comment to avoid
21840 2005-04-26 Jeff Law <law@redhat.com>
21842 * tree-flow-inline.h (op_iter_next_must_and_may_def): New.
21843 (op_iter_init_must_and_may_def): Likewise.
21844 (unmodifiable_var_p): Move to a later point in the file.
21845 * tree-ssa-operands.h (FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): New.
21846 * tree-ssa-dse.c (need_imm_uses_for): Remove, no longer needed.
21847 (dse_record_phis): Directly check for virtual operands rather than
21848 using need_imm_uses_for.
21849 (dse_optimize_stmt): Handle V_MUST_DEF operands. Handle case where
21850 store has multiple V_{MAY,MUST}_DEF operands.
21852 2005-04-26 Andrew MacLeod <amacleod@redhat.com>
21854 * tree-cfg.c (bsi_replace): Delink immediate uses for the original
21857 2005-04-26 Kazu Hirata <kazu@cs.umass.edu>
21859 * tree-cfg.c (lv_adjust_loop_header_phi): Speed up moving a
21860 call to find_edge outside a loop to go through a PHI chain.
21862 2004-04-26 Richard Guenther <rguenth@gcc.gnu.org>
21864 PR tree-optimization/17598
21865 * fold-const.c (fold_binary): Fold comparisons of addresses
21866 of COMPONENT_REFs which reference the same field to
21867 comparisons of the addresses of the base objects.
21869 2005-04-26 Julian Brown <julian@codesourcery.com>
21871 * config/arm/arm.c (arm_return_in_msb): New function.
21872 (arm_must_pass_in_stack): New function.
21873 (TARGET_RETURN_IN_MSB): Define target hook.
21874 (TARGET_MUST_PASS_IN_STACK): Define target hook.
21875 (arm_function_value): Pad small aggregate return.
21876 (arm_pad_arg_upward): New function.
21877 (arm_pad_reg_upward): New function.
21878 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Include complex values.
21879 (FUNCTION_ARG_PADDING): Define macro.
21880 (BLOCK_REG_PADDING): Define macro.
21881 (PAD_VARARGS_DOWN): Correct padding for AAPCS.
21882 * config/arm/arm-protos.h (arm_pad_arg_upward): Declare function.
21883 (arm_pad_reg_upward): Declare function.
21885 2005-04-26 Kazu Hirata <kazu@cs.umass.edu>
21887 * basic-block.h (ei_cond): New.
21888 (FOR_EACH_EDGE): Call ei_cond.
21890 PR tree-optimization/21047
21891 * fold-const.c (fold_binary): Abort on ASSERT_EXPR.
21892 (fold): Don't handle ASSERT_EXPR.
21894 2005-04-25 Roger Sayle <roger@eyesopen.com>
21896 * sched-deps.c (sched_analyze_1): On STACK_REGS targets, x87, treat
21897 all writes to any stack register as a read/write dependency on
21899 (sched_analyze_2): Likewise, for reads from any stack register.
21901 2005-04-25 Richard Henderson <rth@redhat.com>
21903 * final.c (output_addr_const): Revert 2005-04-09 change.
21905 2005-04-25 Mike Stump <mrs@apple.com>
21907 * config/darwin.c (darwin_encode_section_info): Always set
21908 MACHO_SYMBOL_STATIC for all ! TREE_PUBLIC symbols.
21910 2005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21912 * collect2.c, gcc.c, gcov-dump.c, gcov.c, gen-protos.c,
21913 gensupport.c, protoize.c, toplev.c: Replace calls to
21914 `unlock_stream' with `unlock_std_streams'.
21916 2005-04-25 Devang Patel <dpatel@apple.com>
21918 * dbxout.c (dbxout_type): Emit attribute vector.
21920 2005-04-05 Paul Brook <paul@codesourcery.com>
21922 * target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
21923 * target.h (struct gcc_target): Add cxx.use_aeabi_atexit.
21924 * config/arm/arm.c (arm_cxx_atexit_name): New function.
21925 (TARGET_CXX_USE_AEABI_ATEXIT): New macro.
21926 * cp/decl.c (get_atexit_node): Reorder arguments for __aeabi_atexit.
21927 (register_dtor_fn): Likewise.
21928 * doc/tm.texi: Document TARGET_CXX_USE_AEABI_ATEXIT.
21930 2005-04-25 Ian Lance Taylor <ian@airs.com>
21932 * c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
21933 * c-common.h (EXPR_STMT_EXPR): Don't define.
21934 (c_common_stmt_codes): Don't define.
21935 * c-dump.c (c_dump_tree): Remove EXPR_STMT case.
21936 * c-gimplify.c (gimplify_expr_stmt): Remove.
21937 (c_gimplify_expr): Remove EXPR_STMT case.
21938 * c-objc-common.c (c_objc_common_init): Remove stmt_codes and call
21939 to INIT_STATEMENT_CODES.
21940 * c-pretty-print.c (pp_c_statement): Just call dump_generic_node.
21942 2005-04-25 Jan Hubicka <jh@suse.cz>
21944 * tree-cfg.c (tree_duplicate_bb): Duplicate EH region too.
21946 * except.c: Include diagnostic.h
21947 (dump_eh_tree, verify_eh_tree): New functions.
21948 * except.h (verify_eh_tree, dump_eh_tree, verify_eh_edges): Declare.
21949 * tree-cfg.c (tree_verify_flow_info): verify eh edges.
21950 (dump_function_to_file): dump eh tree.
21951 * tree-eh.c (mark_eh_edge): New function.
21952 (mark_eh_edge_found_error): New static variable.
21953 (verify_eh_edges): New function.
21955 2005-04-25 Nathan Sidwell <nathan@codesourcery.com>
21957 * tree-ssa-alias.c (fieldoff_t): Remove.
21958 (fieldoff_s): typedef the structure itself. Create a vector of
21960 (push_fields_onto_fieldstack): Return count of fields pushed.
21961 Remove peeling of first field. Adjust.
21962 (fieldoff_compare): Adjust.
21963 (create_overlap_variables_for): Adjust.
21965 2005-04-25 Joseph S. Myers <joseph@codesourcery.com>
21967 * doc/invoke.texi (Blackfin Options): Avoid empty @opindex line.
21969 2005-04-25 Joseph S. Myers <joseph@codesourcery.com>
21972 * doc/install.texi: Document correct assembler and linker to use
21973 on i?86-*-solaris2.10.
21975 2005-04-25 Steven Bosscher <stevenb@suse.de>
21977 Fix PR tree-optimization/21173
21979 * tree-ssa-pre.c (create_expression_by_pieces): Simplify code.
21980 Unshare expression we pass to force_gimple_operand.
21982 2005-04-25 J"orn Rennecke <joern.rennecke@st.com>
21983 Stephen Clarke <stevec@superh.com>
21984 Roger Sayle <roger@eyesopen.com>
21986 PR rtl-optimization/20413
21987 * cfgrtl.c (redirect_edge_and_branch): Use Pmode instead of
21988 VOIDmode for LABEL_REF.
21989 * final.c (shorten_branches): Likewise.
21990 * jump.c (mark_all_labels, redirect_exp_1): Likewise.
21991 * loop.c (reg_dead_after_loop): Likewise.
21992 * varasm.c (decode_addr_const): Likewise.
21993 * doc/rtl.texi: Document mode requirement for LABEL_REF.
21995 2005-04-25 Ralf Corsepius <ralf.corsepius@rtems.org>
21997 * config.gcc (avr-*-*): Remove redundant "case".
21999 2005-04-25 Kazu Hirata <kazu@cs.umass.edu>
22001 * tree-vect-analyze.c (vect_mark_relevant): Take
22002 VEC(tree,heap) instead of varray_type as an argument.
22003 (vect_mark_stmts_to_be_vectorized): Change the type of
22004 worklist to VEC(tree,heap). Adjust uses of worklist.
22006 2005-04-24 Devang Patel <dpatel@apple.com>
22008 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
22010 2005-04-24 Ian Lance Taylor <ian@airs.com>
22012 * c-semantics.c (build_stmt): Remove test of specific tree codes
22013 for TREE_SIDE_EFFECTS handling.
22015 2005-04-24 Per Bothner <per@bothner.com>
22017 * c-opts.c (finish_options): Make the line-number of the <built-in>
22018 location 0, as assumed elsewhere, rather than 1.
22020 2005-04-24 Kazu Hirata <kazu@cs.umass.edu>
22022 * tree-ssa-uncprop.c (equiv_stack): Change the type o
22024 (tree_ssa_uncprop, uncprop_finalize_block,
22025 uncprop_initialize_block): Update uses of equiv_stack.
22027 2005-04-24 Richard Henderson <rth@redhat.com>
22030 * simplify-rtx.c (simplify_binary_operation) <IOR>: Check
22031 for SCALAR_INT_MODE_P instead of not MODE_CC before returning
22033 <AND, LSHIFTRT, UMIN>: Use CONST0_RTX.
22034 <UDIV, UMOD>: Use CONST0_RTX and CONST1_RTX.
22035 <DIV, MOD>: Likewise.
22037 2005-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22039 * collect2.c (main): Unlock the stdio streams.
22040 * gcc.c (main): Likewise.
22041 * gcov-dump.c (main): Likewise.
22042 * gcov.c (main): Likewise.
22043 * gen-protos.c (main): Likewise.
22044 * gensupport.c (init_md_reader_args_cb): Likewise.
22045 * protoize.c (main): Likewise.
22046 * toplev.c (general_init): Likewise.
22048 2005-04-24 Jakub Jelinek <jakub@redhat.com>
22050 PR middle-end/20991
22051 * cgraph.h (cgraph_local_info): Add vtable_method field.
22052 * varasm.c (mark_decl_referenced): If cgraph_global_info_ready
22053 and node is vtable_method, finalized and not reachable, don't do
22056 2005-04-24 Kazu Hirata <kazu@cs.umass.edu>
22058 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use
22059 COMPARISON_CLASS_P.
22060 * tree-ssa-pre.c (create_value_expr_from): Use
22061 CONSTANT_CLASS_P and REFERENCE_CLASS_P.
22062 * tree-ssa-propagate.c (stmt_makes_single_load,
22063 stmt_makes_single_store): Use REFERENCE_CLASS_P.
22064 * tree-vect-transform.c (vect_is_simple_cond): Use
22065 COMPARISON_CLASS_P.
22066 * tree-vrp.c (extract_range_from_assert,
22067 build_assert_expr_for, fp_predicate, has_assert_expr): Use
22068 COMPARISON_CLASS_P.
22070 * tree-ssa-live.c (build_tree_conflict_graph): Change the type
22071 of tpa_to_clear to VEC(int,heap). Update uses of
22072 tpa_to_clear. Free tpa_to_clear at the end.
22074 2005-04-24 Andrew Pinski <pinskia@physics.uc.edu>
22076 * tree.h (TREE_THIS_VOLATILE): Document the effect on a
22079 2005-04-24 Nathan Sidwell <nathan@codesourcery.com>
22081 * config/rs6000/rs6000.c (rs6000_override_options): Use gcc_assert
22082 and gcc_unreachable as appropriate.
22083 (num_insns_constant, output_vec_const_move,
22084 build_mask64_2_operands, rs6000_output_dwarf_dtprel,
22085 rs6000_emit_set_const, rs6000_emit_move,
22086 spe_build_register_parallel, function_arg,
22087 rs6000_move_block_from_reg, altivec_expand_predicate_builtin,
22088 spe_expand_predicate_builtin, spe_expand_evsel_builtin,
22089 rs6000_expand_builtin, spe_init_builtins, altivec_init_builtins,
22090 rs6000_common_init_builtins, expand_block_clear,
22091 expand_block_move, validate_condition_mode, ccr_bit, extract_MB,
22092 extract_ME, rs6000_get_some_local_dynamic_name,
22093 rs6000_output_function_entry, print_operand,
22094 print_operand_address, rs6000_generate_compare, rs6000_emit_sCOND,
22095 output_cbranch, output_e500_flip_gt_bit,
22096 rs6000_emit_vector_compare, rs6000_emit_vector_compare,
22097 rs6000_emit_cmove, rs6000_emit_minmax, rs6000_split_multireg_move,
22098 compute_save_world_info, rs6000_stack_info,
22099 rs6000_emit_load_toc_table, rs6000_frame_related,
22100 spe_synthesize_frame_save, rs6000_emit_epilogue,
22101 rs6000_output_function_epilogue, rs6000_hash_constant, output_toc,
22102 output_function_profiler, rs6000_trampoline_size,
22103 rs6000_initialize_trampoline, find_addr_reg,
22104 rs6000_machopic_legitimize_pic_address,
22105 rs6000_initial_elimination_offset,
22106 rs6000_dbx_register_number): Likewise.
22107 * config/rs6000/rs6000.md (*fix_truncdfsi2_internal,
22108 *movdf_hardfloat32, *movdf_softfloat32, *fix_trunctfsi2_internal,
22109 *movti_power, *movti_string, call, call_value, sibcall,
22110 sibcall_value): Likewise.
22111 * config/rs6000/spe.md (*movdf_e500_double,
22112 *movv2si_internal): Likewise.
22113 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Remove 'abort'
22116 2005-04-24 Richard Henderson <rth@redhat.com>
22119 * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Move guts to ...
22120 * config/i386/i386.c (ix86_cannot_change_mode_class): ... here.
22121 Deny modes smaller than 4 bytes.
22122 * config/i386/i386-protos.h: Update.
22124 2005-04-24 Ralf Corsepius <ralf.corsepius@rtems.org>
22126 * config.gcc (h8300-*-rtems*): Add h8300-*-rtemscoff*.
22127 Switch h8300-*-rtems* to ELF.
22129 2005-04-24 Kazu Hirata <kazu@cs.umass.edu>
22131 * vec.h (VEC_safe_grow): Replace grow with safe_grow.
22133 2005-04-23 Kazu Hirata <kazu@cs.umass.edu>
22135 * ipa-inline.c, tree-ssa-operands.h: Fix comment typos.
22137 2005-04-23 Richard Guenther <rguenth@gcc.gnu.org>
22139 PR middle-end/21082
22140 * fold-const.c: Fold &a[i]-&a[j] to i-j.
22142 2005-04-23 Zdenek Dvorak <dvorakz@suse.cz>
22144 * tree-ssa-loop-niter.c (tree_simplify_using_condition): Expand simple
22145 definitions of ssa names in condition. Split recusive part to ...
22146 (tree_simplify_using_condition_1): New function.
22147 (expand_simple_operations): New function.
22149 2005-04-23 Zdenek Dvorak <dvorakz@suse.cz>
22151 * tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
22152 (find_interesting_uses_cond): Do not use integer_zerop and
22153 integer_nonzerop to check for integer constants.
22154 (set_use_iv_cost): Record the value field.
22155 (determine_use_iv_cost_generic, determine_use_iv_cost_address,
22156 determine_use_iv_cost_outer): Set the value field of the cost pair.
22157 (may_eliminate_iv): Do not return the comparison code.
22158 (iv_elimination_compare): New function.
22159 (determine_use_iv_cost_condition): Set the value field. Record
22160 noneliminable invariants correctly.
22161 (rewrite_use_compare, rewrite_use_outer): Use the value field.
22163 2005-04-23 DJ Delorie <dj@redhat.com>
22165 * diagnostic.c (warning): Accept parameter to classify warning option.
22166 (warning0): New, for when a pointer to an error() like function is needed.
22167 * errors.c (warning): Likewise.
22168 * errors.h (warning, warning0): Adjust prototypes.
22169 * toplev.h (warning, warning0): Likewise.
22171 * attribs.c, builtins.c, c-common.c, c-decl.c, c-format.c,
22172 c-gimplify.c, c-lex.c, c-objc-common.c, c-opts.c, c-parser.c,
22173 c-pragma.c, c-typeck.c, calls.c, cgraph.c, coverage.c, emit-rtl.c,
22174 fold-const.c, fortran/trans-decl.c, function.c, gcse.c,
22175 genautomata.c, haifa-sched.c, opts.c, passes.c, regclass.c,
22176 reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
22177 tree-dump.c, tree-inline.c, tree-mudflap.c, tree-optimize.c,
22178 tree-ssa.c, tree.c, varasm.c: Adjust warning() callers.
22180 * config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
22181 config/avr/avr.c, config/bfin/bfin.c, config/c4x/c4x-c.c,
22182 config/c4x/c4x.c, config/cris/cris.c, config/darwin-c.c,
22183 config/darwin.c, config/darwin.h, config/h8300/h8300.c,
22184 config/i386/cygming.h, config/i386/djgpp.h, config/i386/i386.c,
22185 config/i386/winnt.c, config/ia64/ia64-c.c, config/ia64/ia64.c,
22186 config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
22187 config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.c,
22188 config/mmix/mmix.c, config/ns32k/ns32k.c, config/pa/pa-hpux11.h,
22189 config/pa/pa.c, config/rs6000/aix43.h, config/rs6000/aix51.h,
22190 config/rs6000/aix52.h, config/rs6000/darwin.h,
22191 config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
22192 config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
22193 config/sh/symbian.c, config/sol2-c.c, config/sol2.c,
22194 config/stormy16/stormy16.c, config/v850/v850-c.c,
22195 config/v850/v850.c, config/xtensa/xtensa.c: Adjust warning()
22198 2005-04-23 Richard Henderson <rth@redhat.com>
22201 * simplify-rtx.c (simplify_binary_operation): Fix mode check before
22202 performing some integral scalar simplifications.
22204 2005-04-23 Richard Henderson <rth@redhat.com>
22207 * config/i386/i386.c (ix86_split_to_parts): Use proper mode when
22208 simplifying CONST_VECTOR.
22210 2005-04-23 Kazu Hirata <kazu@cs.umass.edu>
22212 * tree-ssa-live.c (live_worklist): Take a stack allocated on
22213 heap as an argument. Update uses of stack.
22214 (calculate_live_on_entry): Allocate stack on heap.
22216 * tree-ssa-live.c (build_tree_conflict_graph): Allocate
22217 partition_link and tpa_nodes on heap.
22219 * tree-ssa-dce.c (worklist): Change to VEC(tree,heap).
22220 (mark_stmt_necessary, propagate_necessity,
22221 mark_really_necessary_kill_operand_phis): Update uses of
22223 (tree_dce_init): Allocate worklist using VEC_alloc.
22224 (tree_dce_done): Free worklist using VEC_free.
22226 2005-04-23 Mike Stump <mrs@apple.com>
22228 * config/darwin.c (machopic_indirection_name): Don't use
22230 (darwin_emit_unwind_label): Use user_label_prefix instead of
22233 2005-04-23 Kazu Hirata <kazu@cs.umass.edu>
22235 * final.c, ipa-inline.c, varasm.c: Fix comment typos.
22237 2005-04-23 Hans-Peter Nilsson <hp@axis.com>
22239 * config.gcc <cris-*>: Specify .opt files.
22240 * config/cris/cris.opt, config/cris/elf.opt, config/cris/aout.opt,
22241 config/cris/linux.opt: New files.
22242 * config/cris/aout.h (CRIS_SUBTARGET_SWITCHES)
22243 (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
22244 (TARGET_ELF): Override to 0.
22245 (CRIS_SUBTARGET_HANDLE_OPTION): Override to handle -melinux and
22246 -melinux-stacksize=N.
22247 * config/cris/cris.c: (cris_handle_option): New function.
22248 (TARGET_DEFAULT_TARGET_FLAGS): Override.
22249 (TARGET_HANDLE_OPTION): Override to cris_handle_option.
22250 (cris_override_options): Use MASK_*, not TARGET_MASK_*.
22251 * config/cris/cris.h (TARGET_MASK_SVINTO, TARGET_SVINTO,
22252 (TARGET_MASK_CCINIT, TARGET_CCINIT, TARGET_MASK_PDEBUG)
22253 (TARGET_PDEBUG, TARGET_MASK_SIDE_EFFECT_PREFIXES)
22254 (TARGET_SIDE_EFFECT_PREFIXES, TARGET_MASK_EXPAND_MUL)
22255 (TARGET_EXPAND_MUL, TARGET_MASK_STACK_ALIGN, TARGET_STACK_ALIGN)
22256 (TARGET_MASK_CONST_ALIGN, TARGET_CONST_ALIGN)
22257 (TARGET_MASK_DATA_ALIGN, TARGET_DATA_ALIGN)
22258 (TARGET_MASK_PROLOGUE_EPILOGUE, TARGET_PROLOGUE_EPILOGUE)
22259 (TARGET_MASK_ETRAX4_ADD, TARGET_ETRAX4_ADD)
22260 (TARGET_MASK_ALIGN_BY_32, TARGET_ALIGN_BY_32, TARGET_MASK_ELF)
22261 (TARGET_ELF, TARGET_MASK_LINUX, TARGET_LINUX)
22262 (TARGET_MASK_AVOID_GOTPLT, TARGET_AVOID_GOTPLT)
22263 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG, TARGET_SWITCHES)
22264 (CRIS_SUBTARGET_SWITCHES, TARGET_OPTIONS)
22265 (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
22266 (TARGET_LINUX): Define 0.
22267 (TARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
22268 (CRIS_SUBTARGET_DEFAULT): Define to 0, not TARGET_MASK_ELF.
22269 (CRIS_SUBTARGET_DEFAULT): New empty default macro.
22270 * config/cris/linux.h (CRIS_SUBTARGET_SWITCHES): Don't define.
22271 (TARGET_LINUX): Override to 1.
22272 (CRIS_SUBTARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
22274 2005-04-23 Nathan Sidwell <nathan@codesourcery.com>
22276 * haifa-sched.c (schedule_block): Fix thinko in previous
22277 assertification patch.
22279 2005-04-23 Richard Sandiford <rsandifo@redhat.com>
22281 * config.gcc (hppa[12]*-*-hpux10*): Add pa/pa-hpux.opt to
22282 $extra_options. Also add pa/pa-hpux1010.opt for hpux10.[1-9]*.
22283 (hppa*64*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file. Add
22284 pa/pa-hpux.opt, pa/pa-hpux1010.opt and pa/pa64-hpux.opt to
22285 $extra_options. Also add pa/pa-hpux1111.opt for hpux11.[1-9]*.
22286 (hppa[12]*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file. Add
22287 pa/pa-hpux.opt to $extra_options. Also add pa/pa-hpux1111.opt
22289 * config/pa/pa.h (architecture_type, rtx_def, pa_arch_string, pa_arch)
22290 (pa_fixed_range_string, pa_cpu_string, pa_unix_string, target_flags)
22291 (MASK_PA_11, MASK_DISABLE_FPREGS, TARGET_DISABLE_FPREGS)
22292 (MASK_NO_SPACE_REGS, TARGET_NO_SPACE_REGS, MASK_JUMP_IN_DELAY)
22293 (TARGET_JUMP_IN_DELAY, MASK_DISABLE_INDEXING, TARGET_DISABLE_INDEXING)
22294 (MASK_PORTABLE_RUNTIME, TARGET_PORTABLE_RUNTIME, MASK_GAS, TARGET_GAS)
22295 (MASK_SOFT_FLOAT, TARGET_SOFT_FLOAT, MASK_LONG_LOAD_STORE)
22296 (TARGET_LONG_LOAD_STORE, MASK_FAST_INDIRECT_CALLS)
22297 (TARGET_FAST_INDIRECT_CALLS, MASK_BIG_SWITCH, TARGET_BIG_SWITCH)
22298 (MASK_PA_20, MASK_SIO, TARGET_SIO, MASK_GNU_LD, TARGET_GNU_LD)
22299 (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_PA_11, TARGET_PA_20)
22300 (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS)
22301 (SUBTARGET_OPTIONS): Delete.
22302 (TARGET_PA_10): Redefine in terms of TARGET_PA_11 and TARGET_PA_20.
22303 (TARGET_SCHED_DEFAULT): Define to a PROCESSOR_* enum (PROCESSOR_8000)
22304 instead of a string.
22305 * config/pa/pa.c (pa_arch, pa_arch_string, pa_fixed_range_string)
22306 (pa_cpu_string, pa_unix_string): Delete.
22307 (pa_cpu): Initialize to TARGET_SCHED_DEFAULT.
22308 (flag_pa_unix): Initialize based on TARGET_HPUX_11_11 and
22310 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
22311 (pa_handle_option): New function.
22312 (override_options): Remove handling of -march=, -mfixed-range=,
22313 -mschedule= and -munix=.
22314 * config/pa/pa-hpux.h (SUBTARGET_SWITCHES): Delete.
22315 * config/pa/pa-hpux1010.h (SUBTARGET_OPTIONS): Delete.
22316 * config/pa/pa-hpux10.h (SUBTARGET_OPTIONS): Delete.
22317 * config/pa/pa-hpux1111.h (SUBTARGET_OPTIONS): Delete.
22318 * config/pa/pa-hpux11.h (SUBTARGET_OPTIONS): Delete.
22319 * config/pa/pa64-hpux.h (SUBTARGET_SWITCHES): Delete.
22320 * config/pa/pa64-start.h (TARGET_PA_11, TARGET_PA_20): #undef before
22322 * config/pa/pa.opt: New file.
22323 * config/pa/pa-hpux.opt: New file.
22324 * config/pa/pa-hpux1010.opt: New file.
22325 * config/pa/pa-hpux1111.opt: New file.
22326 * config/pa/pa64-hpux.opt: New file.
22328 2005-04-22 David S. Miller <davem@davemloft.net>
22330 * rtl.h (CONST_DOUBLE): Fix comment, a CONST_DOUBLE holds an
22331 integer when it's mode is VOIDmode not DImode.
22333 2005-04-22 Geoffrey Keating <geoffk@apple.com>
22335 * config/rs6000/rs6000.md (sync_add<mode>_internal,
22336 sync_addshort_internal, sync_sub<mode>_internal, sync_andsi_internal,
22337 sync_anddi_internal, sync_boolsi_internal, sync_booldi_internal,
22338 sync_boolc<mode>_internal, sync_boolc<mode>_internal2,
22339 sync_boolcc<mode>_internal, sync_lock_test_and_set<mode>): Use
22340 "bne- $-xxx" rather than local labels.
22341 (sync_lock_release<mode>): Add second operand.
22342 (lwsync): Use .long rather than a more meaningful opcode.
22343 * doc/md.texi (Standard Names): Add description of second
22344 parameter to sync_lock_test_and_set.
22346 2005-04-23 Kazu Hirata <kazu@cs.umass.edu>
22348 PR tree-optimization/21088
22349 * fold-const.c (fold_unary, fold_binary, fold_ternary):
22351 * tree-vrp.c (compare_values): Use fold_binary to compare
22352 pointers. Use boolean_type_node as the type of a comparison
22353 expression being folded.
22354 * tree.h: Add prototypes for fold_unary, fold_binary,
22357 * tree-ssa-dom.c: Fix formatting.
22359 2005-04-22 Diego Novillo <dnovillo@redhat.com>
22361 * Makefile.in (tree-into-ssa.o): Add dependency on PARAMS_H.
22362 * lambda-code.c (perfect_nestify): Mark virtual operands in
22363 the moved statement for renaming.
22364 * params.def (PARAM_MIN_VIRTUAL_MAPPINGS): Define.
22365 (PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
22366 * params.h (MIN_VIRTUAL_MAPPINGS): Define.
22367 (VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
22368 * tree-flow.h (struct var_ann_d): Update comments.
22369 (rewrite_to_new_ssa_names_bb, rewrite_to_new_ssa_names,
22370 allocate_ssa_names, find_phi_node_for, dump_tree_ssa,
22371 debug_tree_ssa, debug_def_blocks, dump_tree_ssa_stats,
22372 debug_tree_ssa_stats, rewrite_ssa_into_ssa,
22373 dump_repl_tbl, debug_repl_tbl, dump_names_replaced_by,
22374 debug_names_replaced_by): Remove declarations.
22375 (delete_update_ssa, get_current_def, set_current_def): Declare.
22376 (rewrite_into_loop_closed_ssa): Add new argument. Update
22378 * tree-into-ssa.c: Include params.h.
22379 (old_virtual_ssa_names): Remove. Update all users.
22380 (need_to_replace_names_p): Remove. Update all users.
22381 (struct update_ssa_stats_d): Declare.
22382 (update_ssa_stats): New local.
22383 (dump_tree_ssa, debug_tree_ssa, debug_def_blocks,
22384 dump_tree_ssa_stats, debug_tree_ssa_stats,
22385 dump_update_ssa, debug_update_ssa,
22386 dump_names_replaced_by, debug_names_replaced_by): Declare.
22387 (get_current_def, set current_def): Make extern.
22388 (is_old_name, is_new_name): Protect against references
22389 past the end of the sets.
22390 (add_new_name_mapping): Assert that OLD and NEW are
22391 different SSA names for the same symbol.
22392 When adding a virtual mapping, update stats for virtual
22394 (insert_phi_nodes_for): If UPDATE_P is true, create the
22395 LHS of the new PHI by duplicating SSA name VAR.
22396 (insert_phi_nodes_1): Remove. Update all users.
22397 (insert_phi_nodes): Remove second argument. Update all
22399 (maybe_replace_use, maybe_replace_def): New.
22400 (rewrite_update_stmt): Call them.
22401 (mark_def_interesting): Remove calls to is_gimple_reg.
22402 (prepare_phi_args_for_update): Remove. Update all users.
22403 (prepare_block_for_update): Only process virtual operands
22404 and GIMPLE registers in normal form.
22405 (prepare_use_sites_for): New.
22406 (prepare_names_to_update): Rename from prepare_def_sites.
22407 Call prepare_use_sites_for.
22408 (dump_update_ssa): Rename from dump_repl_tbl.
22410 Show statistics for virtual mapping heuristic.
22411 (debug_update_ssa): Rename from debug_debug_repl_tbl.
22412 (init_update_ssa): Initialize UPDATE_SSA_STATS.
22413 (delete_update_ssa): Make extern.
22414 (mark_set_for_renaming): If the set is empty, do nothing.
22415 (release_ssa_name_after_update_ssa): Update comment.
22416 (insert_updated_phi_nodes_for): Do not remove existing
22417 PHI nodes for symbols.
22418 (switch_virtuals_to_full_rewrite_p): New.
22419 (switch_virtuals_to_full_rewrite): New.
22420 (update_ssa): Call them.
22421 Clear REWRITE_THIS_STMT and REGISTER_DEFS_IN_THIS_STMT
22422 for every statement before updating.
22423 If all the names in NEW_SSA_NAMES have been marked for
22424 removal, do nothing.
22425 Only start at the top of the CFG if there are symbols in
22427 (ssa_rewrite_finalize_block): Remove.
22428 (ssa_register_new_def): Remove.
22429 (ssa_rewrite_stmt): Remove.
22430 (ssa_rewrite_phi_arguments): Remove.
22431 (ssa_rewrite_initialize_block): Remove.
22432 (ssa_mark_def_sites): Remove.
22433 (ssa_mark_def_sites_initialize_block): Remove.
22434 (ssa_mark_phi_uses): Remove.
22435 (rewrite_ssa_into_ssa): Remove.
22436 * tree-phinodes.c (find_phi_node_for): Remove.
22437 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
22439 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops):
22440 Remove calls to verify_dominators and
22441 verify_loop_structure.
22442 (tree_unswitch_single_loop): Call update_ssa.
22443 * tree-ssa.c (verify_ssa): Assert that need_ssa_update_p
22446 (delete_tree_ssa): Assert that need_ssa_update_p returns
22448 * tree-vect-transform.c (vect_transform_loop): Call update_ssa.
22449 * tree-vectorizer.c (allocate_new_names, rename_def_op,
22450 free_new_names): Remove. Update all users.
22451 (rename_use_op): Call get_current_def.
22452 (rename_variables_in_bb): Do not handle any real or
22453 virtual definition.
22454 (slpeel_update_phis_for_duplicate_loop): Call
22455 get_current_def and set_current_def instead of using
22457 (slpeel_update_phi_nodes_for_guard2): Reformat comments.
22458 (slpeel_can_duplicate_loop_p): Call need_ssa_update_p,
22459 ssa_names_to_replace and delete_update_ssa.
22460 * doc/invoke.texi: Document --param min-virtual-mappings
22461 and --param virtual-mappings-ratio.
22463 2005-04-22 Diego Novillo <dnovillo@redhat.com>
22465 * tree-cfg.c (tree_duplicate_bb): Call create_new_def_for
22466 for newly created PHI nodes.
22467 Call create_new_def_for for every new V_MAY_DEF and
22468 V_MUST_DEF on the copied statement.
22469 (struct ssa_name_map_entry): Remove.
22470 (ssa_name_map_entry_hash): Remove.
22471 (ssa_name_map_entry_eq): Remove.
22472 (allocate_ssa_names): Remove.
22473 (rewrite_to_new_ssa_names_def): Remove.
22474 (rewrite_to_new_ssa_names_use): Remove.
22475 (rewrite_to_new_ssa_names_bb): Remove.
22476 (rewrite_to_new_ssa_names): Remove.
22477 (tree_duplicate_sese_region): Remove variables ver,
22478 definitions, phi, ssa_name_map and bi.
22479 Call need_ssa_update_p instead of any_marked_for_rewrite_p.
22481 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
22482 update_ssa instead of rewrite_ssa_into_ssa.
22483 * tree-ssa-loop-manip.c (add_exit_phis_edge): Call
22484 create_new_def_for.
22485 (find_uses_to_rename_use): Add argument 'need_phis'.
22486 (find_uses_to_rename_stmt): Do not scan virtual operands.
22487 (find_uses_to_rename): Only scan PHI nodes for
22489 (rewrite_into_loop_closed_ssa): Call update_ssa.
22490 (check_loop_closed_ssa_use): Ignore virtual operands.
22491 (check_loop_closed_ssa_stmt): Likewise.
22492 (verify_loop_closed_ssa): Do nothing if CURRENT_LOOPS is
22494 (rename_variables, set_phi_def_stmts): Remove.
22495 (tree_duplicate_loop_to_header_edge): Reformat comment.
22496 Remove variables BB, I and DEFINITIONS.
22497 Call need_ssa_update_p.
22499 (lv_adjust_loop_header_phi): Reformat comment.
22500 * tree-ssanames.c (ssa_names_to_rewrite): Remove.
22501 (marked_for_rewrite_p, any_marked_for_rewrite_p,
22502 mark_for_rewrite, unmark_all_for_rewrite,
22503 marked_ssa_names): Remove. Update all users.
22504 (release_ssa_name): If VAR has been registered for SSA
22505 updating, do nothing.
22506 * tree-vrp.c (new_ssa_names, old_ssa_names): Remove.
22507 (build_assert_expr_for): Call register_new_name_mapping.
22508 (insert_range_assertions): Update call to update_ssa.
22509 * tree.h (mark_for_rewrite, unmark_all_for_rewrite,
22510 marked_for_rewrite_p, any_marked_for_rewrite_p,
22511 marked_ssa_names): Remove.
22513 2005-04-22 Jeff Law <law@redhat.com>
22515 * tree-ssa-dom.c (block_defs_stack): Remove, no longer needed.
22516 (restore_currdefs_to_original_value): Likewise.
22517 (register_definitions_for_stmt): Likewise.
22518 (tree_ssa_dominator_optimize): No longer initialize CURRENT_DEF
22519 for each variable. Do not allocate/free block_defs_stack either.
22520 Do not iterate if we just thread jumps. Only iterate if the
22521 tree_cleanup_cfg does useful work (temporary).
22522 (dom_opt_initialize_block): No longer push a marker on
22524 (dom_opt_finalize_block): Removal call to restore currdefs.
22525 Relax restrictions for recording edge equivalences.
22526 (record_equivalences_from_phis): No longer need to track
22528 (optimize_stmt): Similarly.
22529 (thread_across_edge): Simplify by removing the requirement that
22530 statements in the block we are threading through must be nops.
22531 (initialize_hash_element): Handle GOTO_EXPR.
22533 2005-04-22 David S. Miller <davem@davemloft.net>
22535 * sched-vis.c (print_value): Use CONST_DOUBLE_LOW and
22537 * config/sparc/sparc.c (sparc_rtx_costs): Likewise, and
22538 fix check on CONST_DOUBLE mode. It should be VOIDmode
22539 when it is representing an integer.
22541 2005-04-22 Nathan Sidwell <nathan@codesourcery.com>
22543 * builtins.c (gimplify_va_arg_expr): Reword comments to avoid
22544 'abort'. Use gcc_assert and gcc_unreachable as appropriate.
22545 * c-format.c (get_constant, decode_format_attr, get_flag_spec,
22546 find_char_info_specifier_index,
22547 find_length_info_modifier_index): Likewise.
22548 * c-typeck.c (composite_type, pop_init_level): Likewise.
22549 * combine.c (cant_combine_insn_p, try_combine): Likewise.
22550 * cse.c (cse_insn): Likewise
22551 * dominance.c (calc_dfs_tree): Likewise
22552 dwarf2out.c (loc_descriptor_from_tree_1,
22553 add_abstract_origin_attribute, force_decl_die,
22554 force_type_die): Likewise
22555 emit-rtl.c (operand_subword_force): Likewise
22556 explow.c (hard_function_value): Likewise
22557 expmed.c (store_bit_field, expand_divmod,
22558 emit_store_flag_force): Likewise
22559 expr.c (emit_move_multi_word, store_expr,
22560 expand_expr_real_1): Likewise
22561 final.c (this_is_asm_operands, shorten_branches, final_scan_insn,
22562 output_operand): Likewise
22563 flow.c (recompute_reg_usage): Likewise
22564 * function.c (assign_stack_temp_for_type, assign_temp,
22565 handle_epilogue_set): Likewise
22566 * genextract.c (main): Likewise
22567 * gimplify.c (mostly_copy_tree_r, gimplify_return_expr,
22568 gimplify_modify_expr_rhs, gimplify_expr): Likewise
22569 * haifa-sched.c (ready_lastpos, ready_remove_first, ready_element,
22570 ready_remove, rm_line_notes, rm_other_notes,
22571 schedule_block): Likewise
22572 mips-tfile.c (copy_object, out_of_bounds): Likewise
22574 2005-04-22 David Edelsohn <edelsohn@gnu.org>
22577 * config/rs6000/default64.h (TARGET_DEFAULT): Add MASK_PPC_GFXOPT.
22578 * config/rs6000/rs6000.c (processor_target_table): Rename rs64a to
22579 rs64. Add MASK_PPC_GFXOPT to powerpc64 and rs64.
22580 (rs6000_init_libfuncs): Set TFmode optabs to xlq names if
22582 * doc/invoke.texi (PowerPC options): Change rs64a to rs64.
22584 2005-04-22 Nathan Sidwell <nathan@codesourcery.com>
22586 * lambda-code.c: Define VEC(int,heap), VEC(lambda_loop,heap).
22587 (gcc_tree_to_linear_expression): Convert to heap allocated
22589 (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
22590 lbv_to_gcc_expression, lle_to_gcc_expression,
22591 lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
22592 perfect_nestify): Likewise.
22593 lambda.h (gcc_loopnest_to_lambda_loopnest,
22594 lambda_loopnest_to_gcc_loopnest): Likewise.
22595 tree-loop-linear.c (linear_transform_loops): Likewise.
22597 2005-04-22 Eric Botcazou <ebotcazou@libertysurf.fr>
22599 * config/sparc/predicates.md (arith_double_operand): Use
22600 trunc_int_for_mode if HOST_BITS_PER_WIDE_INT >=64.
22601 * config/sparc/sparc.md (movqi, movhi, movsi, movqi): Use gen_int_mode.
22602 (DImode, DFmode constant splitters): Likewise. Remove code for
22603 TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT < 64.
22604 (logical constant splitters): Use const_int_operand predicate.
22605 (lshrsi3_extend): Remove code for TARGET_ARCH64 &&
22606 HOST_BITS_PER_WIDE_INT < 64.
22608 2005-04-22 Nathan Sidwell <nathan@codesourcery.com>
22610 * config/pa/pa.c (legitimize_pic_address): Use gcc_assert and
22611 gcc_unreachable as appropriate.
22612 (force_mode, emit_move_sequence, singlemove_string,
22613 output_move_double, output_fp_move_double, find_addr_reg,
22614 output_block_move, output_block_clear, output_and,
22615 output_64bit_and, output_ior, output_64bit_ior, store_reg_modify,
22616 pa_adjust_cost, pa_issue_rate, print_operand,
22617 output_global_address, output_arg_descriptor, output_cbranch,
22618 output_lbranch, output_bb, output_bvb, output_dbra, output_movb,
22619 output_call): Likewise.
22620 * config/pa/pa.md (call, call_value, sibcall, sibcall_value,
22621 prefetch, prefetch_cc, prefetch_nocc): Likewise.
22623 2005-04-22 Zdenek Dvorak <dvorakz@suse.cz>
22625 * Makefile.in (LIBGCOV): Add _gcov_interval_profiler,
22626 _gcov_pow2_profiler and _gcov_one_value_profiler.
22627 (tree-profile.o): Add GGC_H and gt-tree-profile.h dependency.
22628 (GTFILES): Add $(srcdir)/tree-profile.c.
22629 * gcov-io.h (__gcov_interval_profiler, __gcov_pow2_profiler,
22630 __gcov_one_value_profiler): Declare.
22631 * gimplify.c (force_gimple_operand): Check whether the statements
22632 should be produced in ssa form.
22633 (force_gimple_operand_bsi): New function.
22634 * libgcov.c (__gcov_interval_profiler, __gcov_pow2_profiler,
22635 __gcov_one_value_profiler): New functions.
22636 * rtl-profile.c (rtl_gen_pow2_profiler): Only measure whether
22637 the profiled value is a power of two or not.
22638 * tree-cfg.c (tree_block_ends_with_condjump_p): Handle empty blocks.
22639 * tree-flow.h (in_ssa_p): Declare.
22640 (force_gimple_operand_bsi): Declare.
22641 * tree-into-ssa.c (in_ssa_p): New variable.
22642 (rewrite_into_ssa): Set in_ssa_p.
22643 * tree-outof-ssa.c (rewrite_out_of_ssa): Set in_ssa_p.
22644 * tree-profile.c: Include ggc.h and gt-tree-profile.h.
22645 (gcov_type_node, tree_interval_profiler_fn, tree_pow2_profiler_fn,
22646 tree_one_value_profiler_fn): New variables.
22647 (tree_init_edge_profiler): Initialize the profiler function decls.
22648 (tree_gen_edge_profiler): Use global gcov_type_node.
22649 (prepare_instrumented_value): New function.
22650 (tree_gen_interval_profiler, tree_gen_interval_profiler,
22651 tree_gen_one_value_profiler): Call the library functions instead of
22652 creating instrumentation code.
22653 * tree.c (build_fn_decl): New function.
22654 * tree.h (build_fn_decl): Declare.
22655 * value-prof.c (rtl_divmod_values_to_profile,
22656 rtl_find_values_to_profile, rtl_mod_pow2_value_transform,
22657 tree_mod_pow2_value_transform, tree_find_values_to_profile):
22658 Do not handle may_be_other and precise values of exponents at pow2
22660 (tree_mod_subtract_transform): Reflect that value field of
22661 histogram has changed meaning.
22662 (tree_divmod_values_to_profile): Record the values correctly.
22663 (tree_values_to_profile): Update comment.
22664 * value-prof.h (struct histogram_value_t): Remove pow2 data.
22666 2005-04-22 Joseph S. Myers <joseph@codesourcery.com>
22668 * varasm.c (do_assemble_alias): Return early if TREE_ASM_WRITTEN
22671 2005-04-22 Nathan Sidwell <nathan@codesourcery.com>
22673 * config/i386/i386.md (length_immediate): Use gcc_assert or
22674 gcc_unreachable, as appropriate.
22675 (*movsi_1, *movqi_1, reload_outqi, *movdi_1_rex64, *pushsf,
22676 *pushsf_rex64, *truncxfsf2_mixed, *truncxfsf2_i387,
22677 *truncxfdf2_mixed, *truncxfdf2_i387, *adddi_1_rex64,
22678 *adddi_2_rex64, *adddi_3_rex64, *adddi_4_rex64, *adddi_5_rex64,
22679 *addsi_1, addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
22680 *addsi_3_zext, *addsi_4, *addsi_5, *addhi_1_lea, *addhi_1,
22681 *addhi_2, *addhi_3, *addhi_4, *addhi_5, *addqi_1_lea, *addqi_1,
22682 *addqi_1_slp, *addqi_2, *addqi_3, *addqi_4, *addqi_5, addqi_ext_1,
22683 *addqi_ext_1_rex64, *anddi_1_rex64, *andsi_1, *andhi_1,
22684 *ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashlsi3_1, *ashlsi3_1_zext,
22685 *ashlsi3_cmp, *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1,
22686 *ashlhi3_cmp, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
22687 pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64,
22688 pro_epilogue_adjust_stack_rex64_2, prefetch, *prefetch_sse,
22689 *prefetch_sse_rex): Likewise.
22690 * config/i386/predicates.md (x86_64_immediate_operand,
22691 x86_64_zext_immediate_operand, symbolic_operand,
22692 no_seg_address_operand, aligned_operand,
22693 memory_displacement_operand): Likewise.
22694 * config/i386/sse.md (*mov<mode>_internal,
22695 *movv2df_internal): Likewise.
22697 2005-04-22 Jan Hubicka <jh@suse.cz>
22699 * Makefile.in (ipa.o, ipa-inline.o): New files.
22700 * cgraph.h (cgraph_remove_unreachable_nodes, cgraph_postorder,
22701 cgraph_decide_inlining_incrementally, cgraph_clone_inlined_nodes,
22702 cgraph_mark_inline_edge, cgraph_default_inline_p): Declare.
22703 * cgraphunit.c (cgraph_default_inline_p,
22704 cgraph_decide_inlining_incrementally, ncalls_inlined,
22705 nfunctions_inlined, initial_insns, overall_insns,
22706 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
22707 cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
22708 cgraph_mark_inline, cgraph_check_inline_limits,
22709 cgraph_default_inline_p, cgraph_recursive_inlining_p,
22710 update_callee_keys, lookup_recursive_calls,
22711 cgraph_decide_recursive_inlining, cgraph_set_inline_failed,
22712 cgraph_decide_inlining_of_small_functions, cgraph_decide_inlining,
22713 cgraph_decide_inlining_incrementally, cgraph_gate_inlining,
22714 pass_ipa_inline): Move to ipa-inline.c
22715 (cgraph_postorder, cgraph_remove_unreachable_nodes): Move to ipa.c
22717 * ipa-inline.c: New file.
22719 2005-04-22 Eric Botcazou <ebotcazou@libertysurf.fr>
22721 * doc/invoke.texi (SPARC options): Document that -mapp-regs
22722 is turned off by default on Solaris.
22724 2005-04-21 Roger Sayle <roger@eyesopen.com>
22726 * c-common.h (objc_build_method_signature): Update prototype.
22727 * stub-objc.c (objc_build_method_signature): Update the stub
22728 implementation to accept and ignore additional parameter.
22729 * c-parser.c (c_parser_objc_method_decl): Reorgnize to pass
22730 the value of ellipsis to objc_build_method_signature instead
22731 of setting TREE_OVERFLOW on the parms TREE_LIST node.
22733 2005-04-21 Geoffrey Keating <geoffk@apple.com>
22735 * config/rs6000/rs6000-protos.h (rs6000_emit_sync): New.
22736 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Use
22737 gen_rtx_* not gen_rtx_fmt_*.
22738 (rs6000_emit_vector_select): Likewise.
22739 (rs6000_emit_sync): New.
22740 * config/rs6000/rs6000.md (GPR, INT, INT1): New mode macros.
22741 (larx, stcx, cmp): New mode substitutions.
22742 (UNSPEC_SYNC, UNSPEC_SYNC_OP, UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC,
22743 UNSPEC_ISYNC): New constants.
22744 (rlwinm): Give name.
22745 (memory_barrier, isync, lwsync): New insns.
22746 (sync_compare_and_swap<mode>, sync_lock_test_and_set<mode>): New insn.
22747 (sync_lock_release<mode>): New expander.
22748 (sync_add<mode>, sync_sub<mode>, sync_ior<mode>, sync_and<mode>,
22749 sync_xor<mode>, sync_nand<mode>, sync_old_add<mode>,
22750 sync_old_sub<mode>, sync_old_ior<mode>, sync_old_and<mode>,
22751 sync_old_xor<mode>, sync_old_nand<mode>, sync_new_add<mode>,
22752 sync_new_sub<mode>, sync_new_ior<mode>, sync_new_and<mode>,
22753 sync_new_xor<mode>, sync_new_nand<mode>): New expanders.
22754 (sync_add<mode>_internal, sync_addshort_internal,
22755 sync_sub<mode>_internal, sync_andsi_internal, sync_anddi_internal,
22756 sync_boolsi_internal, sync_booldi_internal, sync_boolc<mode>_internal,
22757 sync_boolc<mode>_internal2, sync_boolcc<mode>_internal): New insns.
22759 * doc/md.texi (Standard Names): sync_compare_and_swap's operand 0
22760 is the memory before, not after, the operation. Clarify
22761 barrier requirements.
22763 2005-04-21 Nathan Sidwell <nathan@codesourcery.com>
22765 * cfghooks.h (struct cfg_hooks): Reword comments to avoid 'abort'.
22766 * lambda.h (lambda_vector_min_nz): Likewise.
22767 * langhooks.h (struct lang_hooks_for_types,
22768 struct lang_hooks): Likewise.
22769 * output.h (assemble_integer, this_is_asm_operands): Likewise.
22770 * tree.h: Likewise.
22772 * tree-flow-inline.h (relink_imm_use): Use gcc_assert.
22774 * optabs.c (prepare_cmp_insn, emit_cmp_and_jump_insns): Reword
22775 comments to avoid 'abort'. Use gcc_assert as necessary.
22776 * opts.c (common_handle_option): Likewise.
22777 * pretty-print.c (pp_base_format_text): Likewise.
22778 * print-rtl.c (print_rtx): Likewise.
22779 * read-rtl.c (read_rtx_filename, read_rtx_1): Likewise.
22780 * regmove.c (try_auto_increment): Likewise.
22781 * reload.c (find_valid_class, find_reloads_toplev,
22782 find_equiv_reg): Likewise.
22783 * reload1.c (reload, forget_old_reloads_1, function_invariant_p,
22784 merge_assigned_reloads): Likewise.
22785 * tree-inline.c (inline_forbidden_p_1,
22786 estimate_num_insns_1): Likewise.
22787 * tree-optimize.c (execute_todo): Likewise.
22788 * tree-outof-ssa.c (eliminate_phi): Likewise.
22789 * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
22790 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Likewise.
22791 * tree-ssa-operands.c (parse_ssa_operands,
22792 get_indirect_ref_operands, create_ssa_artficial_load_stmt): Likewise.
22793 * tree-ssa-pre.c (find_or_generate_expression): Likewise.
22794 * tree-ssanames.c (release_ssa_name): Likewise.
22795 * tree.c (int_bit_position, int_byte_position, tree_low_cst,
22796 walk_tree): Likewise.
22798 * tree-ssa-operands.c (verify_abort): Fold into ..
22799 (verify_imm_links): ... here.
22801 2005-04-21 Richard Henderson <rth@redhat.com>
22803 * config/alpha/sync.md (sync_new_nand<I48MODE>): Fix constraints
22804 on non-memory operand for previous inversion.
22806 2005-04-21 Devang Patel <dpatel@apple.com>
22808 PR optimization/20994
22809 * tree-if-conv.c (find_phi_replacement_condition): Avoid generating
22810 x = !(a == b) : p , q;.
22811 (pass_if_conversion): Verify stmts and flow.
22813 2005-04-21 Nathan Sidwell <nathan@codesourcery.com>
22815 * optabs.c (gen_conditional_trap): Restore #define.
22817 * alias.c (true_dependence): Remove 'abort' from comments. Use
22818 gcc_assert and gcc_unreachable as appropriate.
22819 (canon_true_dependence): Likewise.
22820 * bb-reorder.c (connect_traces): Likewise.
22821 * c-common.c (c_add_case_label): Likewise.
22822 * c-decl.c (finish_function): Likewise.
22823 * caller-save.c (insert_restore, insert_save): Likewise.
22824 * cfg.c (update_bb_profile_for_threading): Likewise.
22825 * cfganal.c (flow_active_insn_p): Likewise.
22826 * cfgexpand.c (add_reg_br_prob_note): Likewise.
22827 * cfgrtl.c (rtl_redirect_edge_and_branch_force, rtl_split_edge,
22828 cfg_layout_merge_blocks): Likewise.
22829 * ifcvt.c (cond_exec_process_insns, merge_if_block,
22830 find_if_block): Likewise.
22831 * integrate.c (allocate_initial_values): Likewise.
22832 * jump.c (reverse_condition, reverse_condition_maybe_unordered,
22833 swap_condition, unsigned_condition, signed_condition,
22834 mark_jump_label, invert_jump_1, rtx_renumbered_equal_p,
22835 reg_or_subregno): Likewise.
22836 * lambda-code.c (lambda_compute_auxillary_space,
22837 lambda_transform_legal_p): Likewise.
22838 * lambda-mat.c (lambda_matrix_inverse_hard): Likewise.
22839 * langhooks.c (lhd_set_decl_assembler_name, lhd_type_promotes_to,
22840 lhd_incomplete_type_error, lhd_expand_expr,
22841 lhd_types_compatible_p, lhd_tree_size): Likewise.
22842 * lcm.c (create_pre_exit, optimize_mode_switching): Likewise.
22843 * local-alloc.c (update_equiv_regs): Likewise.
22844 * loop-unroll.c (peel_loop_completely
22845 unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
22846 peel_loop_simple, unroll_loop_stupid,
22847 analyze_iv_to_split_insn): Likewise.
22848 * loop.c (gen_prefetch, find_and_verify_loops,
22849 basic_induction_var): Likewise.
22850 * modulo-sched.c (normalize_sched_times, check_nodes_order): Likewise.
22851 * value-prof.c (tree_find_values_to_profile): Likewise.
22852 * varasm.c (named_section, default_assemble_integer,
22853 decode_addr_const): Likewise.
22855 2005-04-21 Alan Modra <amodra@bigpond.net.au>
22856 Fariborz Jahanian <fjahanian@apple.com>
22858 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Fix size of
22859 portion of argument passed in fpr.
22860 * expr.c (emit_push_insn): Fix computation of 'offset' used to
22861 decide on partial argument save on stack.
22863 2005-04-21 Kazu Hirata <kazu@cs.umass.edu>
22865 * config/sparc/predicates.md, config/sparc/sparc.md: Fix
22868 2005-04-21 Jan Hubicka <jh@suse.cz>
22870 * cgraphunit.c: Include tree-pass.h
22871 (cgraph_decide_recursive_inlining,
22872 cgraph_decide_inlining_of_small_function, cgraph_set_inline_failed,
22873 cgraph_decide_inlining): Dump goes to dump_file.
22874 (cgraph_optimize): Call ipa passes instead of inliner.
22875 (cgraph_gate_inlining, pass_ipa_inline): New.
22876 * tree-optimize.c (all_ipa_passes): New static variable.
22877 (register_one_dump_file): Dead with IPA passes.
22878 (register_dump_files): Likewise.
22879 (init_tree_optimization_passes): Initialize IPA passes.
22880 (execute_todo): Do cgraph dump when asked to, do not dump function body
22882 * tree-pass.h (TODO_dump_cgraph): New macro.
22883 (ipa_passes): Declare.
22884 * Makefile.in (cgraphunit.o): Add dependency on cgraphunit.h
22886 2005-04-21 Nathan Sidwell <nathan@codesourcery.com>
22888 * config/i386/i386.c (type_natural_mode): Use gcc_unreachable and
22889 gcc_assert instead of abort.
22890 (classify_argument, examine_argument, construct_container,
22891 contains_128bit_aligned_vector_p, ix86_check_movabs,
22892 standard_80387_constant_opcode, standard_80387_constant_rtx,
22893 ix86_initial_elimination_offset, ix86_compute_frame_layout,
22894 pro_epilogue_adjust_stack, ix86_expand_epilogue,
22895 ix86_address_cost, legitimate_address_p, legitimize_pic_address,
22896 legitimize_tls_address, output_pic_addr_const,
22897 i386_output_dwarf_dtprel, put_condition_code, print_reg,
22898 get_some_local_dynamic_name, print_operand, print_operand_address,
22899 output_387_binary_op, emit_i387_cw_initialization,
22900 output_fix_trunc, output_fp_compare, ix86_output_addr_vec_elt,
22901 ix86_expand_clear, ix86_expand_binary_operator,
22902 ix86_expand_unary_operator, ix86_match_ccmode, ix86_cc_mode,
22903 ix86_cc_modes_compatible, ix86_fp_comparison_codes,
22904 ix86_fp_comparison_arithmetics_cost, ix86_expand_fp_compare,
22905 ix86_expand_branch, ix86_expand_setcc,
22906 ix86_expand_carry_flag_compare, ix86_expand_fp_movcc,
22907 ix86_expand_int_addcc, ix86_split_to_parts, ix86_split_long_move,
22908 ix86_expand_movmem, ix86_expand_call, assign_386_stack_local,
22909 memory_address_length, ix86_attr_length_immediate_default,
22910 ix86_attr_length_address_default, ix86_agi_dependant,
22911 x86_initialize_trampoline, ix86_init_mmx_sse_builtins,
22912 ix86_expand_binop_builtin, ix86_force_to_memory,
22913 ix86_secondary_memory_needed, ix86_avoid_jump_misspredicts,
22914 x86_emit_floatuns): Likewise.
22915 * config/i386/netware.c (gen_regparm_prefix,
22916 i386_nlm_strip_name_encoding): Likewise.
22917 * config/i386/winnt.c (i386_pe_mark_dllexport): Likewise.
22919 2005-04-21 Nathan Sidwell <nathan@codesourcery.com>
22921 * optabs.c (gen_condiational_trap): Remove #define.
22922 (add_equal_note): Assertify. Remove explicit indirection from
22923 call via function pointer.
22924 (expand_ternary_op, expand_simple_binop, expand_binop,
22925 expand_twoval_unop, expand_twoval_binop,
22926 expand_twoval_binop_libfunc, expand_simple_unop expand_unop,
22927 emit_unop_insn, emit_no_conflict_block, prepare_cmp_insn,
22928 prepare_operand emit_cmp_and_jump_insn_1, emit_cmp_and_jump_insns,
22929 prepare_float_lib_cmp, emit_conditional_move,
22930 emit_conditional_add, gen_add2_insn, gen_add3_insn,
22931 have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn,
22932 expand_float, expand_fix, debug_optab_libfuncs, gen_cond_trap,
22933 vector_compare_rtx, expand_vec_cond_expr): Likewise.
22935 2005-04-21 Nathan Sidwell <nathan@codesourcery.com>
22937 * vec.h: Update API to separate allocation mechanism from type.
22938 (VEC_safe_grow): New.
22939 * vec.c (calculate_allocation): New.
22940 (vec_gc_o_reserve, vec_heap_o_reserve): Adjust.
22941 (vec_gc_free, vec_heap_free): Remove.
22942 * gengtype-lex.l (DEF_VEC_): Process mult-argument macros. Adjust.
22944 (mangle_macro_name): New.
22945 (struct macro_def): New.
22946 (struct macro): Add multiple argument values.
22947 (macro_expans_end): New.
22948 (push_macro_expansion): Chain on new macro. Process multiple
22949 args, create follow on expansion. Return follow on argument.
22950 (macro_input): Deal with multiple arguments.
22952 * tree.h: Define VEC(tree,heap) and VEC(tree,gc).
22953 (struct tree_binfo): Adjust.
22954 * basic-block.h: Define VEC(edge,gc).
22955 (struct edge_def): Adjust.
22956 (struct basic_block_def, struct edge_iterator): Likewise.
22957 (ei_container, ei_start_1, ei_last_1): Likewise.
22958 * cfg.c (connect_src, connect_dest): Likewise.
22959 * cfgrtl.c (force_nonfallthru_and_redirect)
22960 * dbxout.c (dbxout_type)
22961 * dwarf2out.c (gen_member_die)
22962 * lambda-code.c: Define VEC(int,gc), VEC(lambda_loop,gc).
22963 (gcc_tree_to_linear_expression): Adjust.
22964 (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
22965 lbv_to_gcc_expression, lle_to_gcc_expression,
22966 lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
22967 perfect_nestify): Likewise.
22968 * lambda.h (gcc_loopnest_to_lambda_loopnest,
22969 lambda_loopnest_to_gcc_loopnest): Adjust prototypes.
22970 * profile.c (instrument_values): Adjust.
22971 * tree-cfg.c (modified_noreturn_calls): Adjust.
22972 (remove_fallthru_edge): Likewise.
22973 * tree-dump.c (dequeue_and_dump): Adjust.
22974 * tree-flow-inline.h (mark_stmt_modified): Adjust.
22975 * tree-flow.h (modified_noreturn_calls): Adjust.
22976 (tree_on_heap): Remove. (yay!)
22977 (register_new_def): Adjust.
22978 * tree-into-ssa.c: Define VEC(int,heap).
22979 (block_defs_stack): Adjust.
22980 (find_idf, insert_phi_nodes, register_new_def,
22981 rewrite_initialize_block, rewrite_finalize_block,
22982 register_new_update_single, rewrite_update_init_block,
22983 rewrite_update_fini_block, rewrite_blocks,
22984 ssa_rewrite_finalize_block, ssa_register_new_def,
22985 ssa_rewrite_initialize_block, rewrite_ssa_into_ssa): Likewise.
22986 * tree-loop-linear.c (linear_transform_loops): Adjust.
22987 * tree-ssa-alias.c: Define VEC(fieldoff_t,heap).
22988 (push_fields_onto_fieldstack, create_overlap_variables_for): Adjust.
22989 * tree-ssa-dom.c (avail_exprs_stack, block_defs_stack,
22990 stmts_to_rescan, const_and_copies_stack, nonzero_vars_stack,
22991 vrp_variables_stack): Adjust declarations.
22992 (tree_ssa_dominator_optimize): Adjust.
22993 (dom_opt_initialize_block, remove_local_expressions_from_table,
22994 restore_nonzero_vars_to_original_value,
22995 restore_vars_to_original_value,
22996 restore_currdefs_to_original_value, dom_opt_finalize_block,
22997 record_var_is_nonzero, record_cond, record_const_or_copy_1,
22998 optimize_stmt, update_rhs_and_lookup_avail_expr,
22999 lookup_avail_expr, record_range): Likewise.
23000 * tree-ssa-pre.c: Define VEC(basic_block,heap).
23001 (compute_antic_aux): Adjust.
23002 (inserted_exprs, create_expression_by_pieces,
23003 insert_into_preds_of_block, eliminate, mark_operand_necessary,
23004 remove_dead_inserted_code, fini_pre): Likewise.
23005 * tree-ssa-propagate.c (interesting_ssa_edges): Adjust.
23006 (varying_ssa_edges, add_ssa_edge, process_ssa_edge_worklist.
23007 ssa_prop_init): Likewise.
23008 * tree-ssa.c: Define VEC(bitmap,heap).
23009 (verify_name_tags): Adjust.
23010 * value-prof.c (rtl_divmod_values_to_profile): Adjust.
23011 (insn_prefetch_values_to_profile, rtl_find_values_to_profile,
23012 tree_divmod_values_to_profile, tree_find_values_to_profile,
23013 value_profile_transformations): Likewise.
23014 * value-prof.h: Define VEC(histogram_value,heap).
23015 * varasm.c: Remove alias_pair pointer typedef, define
23016 VEC(alias_pair,gc).
23017 (finish_aliases_1, finish_aliases_2, assemble_alias): Adjust.
23019 * config/pa/pa.c (typedef extern_symbol): Typedef the structure,
23020 not a pointer to it. Create an object vector.
23021 (extern_symbols): Turn into an object vector.
23022 (pa_hpux_asm_output_external, pa_hpux_file_end): Adjust.
23024 2005-04-21 Sebastian Pop <pop@cri.ensmp.fr>
23027 * Makefile.in (tree-chrec.o): Depend on params.h.
23028 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): New parameter with
23030 * tree-chrec.c: Depend on params.h. Replace build with buildN,
23031 and fold build with fold_buildN.
23032 (chrec_fold_plus_1): Fail with a chrec_don_know when the size of
23033 the expression exceeds PARAM_SCEV_MAX_EXPR_SIZE.
23034 (tree_contains_chrecs): Compute an estimation of the size of the
23036 * tree-chrec.h (tree_contains_chrecs): Modify its declaration.
23037 (tree_does_not_contain_chrecs): Update the use of tree_contains_chrecs.
23038 * tree-scalar-evolution.c (simple_iv): Ditto.
23039 * doc/invoke.texi (scev-max-expr-size): Documented.
23041 2005-04-21 Richard Sandiford <rsandifo@redhat.com>
23043 * config.gcc (*-*-darwin*): Add darwin.opt to $extra_options.
23044 (i[34567]86-pc-msdosdjgpp*): Likewise i386/djgpp.opt.
23045 (i[34567]86-*-lynxos*, powerpc-*-lynxos*): Likewise lynx.opt.
23046 (i[34567]86-*-sco3.2v5*): Likewise i386/sco5.opt.
23047 (i[34567]86-*-pe, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
23048 (i[34567]86-*-uwin*): Likewise i386/cygming.opt.
23049 * config/darwin.h (darwin_one_byte_bool, darwin_fix_and_continue)
23050 (darwin_fix_and_continue_switch, SUBTARGET_OPTIONS): Delete.
23051 * config/darwin.c (darwin_one_byte_bool, darwin_fix_and_continue)
23052 (darwin_fix_and_continue_switch): Delete.
23053 * config/lynx.h (SUBTARGET_OS_LYNX_SWITCHES): Delete.
23054 (SUBTARGET_SWITCHES): Delete.
23055 * config/i386/i386.h (target_flags, MASK_80387, MASK_RTD)
23056 (MASK_ALIGN_DOUBLE, MASK_SVR3_SHLIB, MASK_IEEE_FP, MASK_FLOAT_RETURNS)
23057 (MASK_NO_FANCY_MATH_387, MASK_OMIT_LEAF_FRAME_POINTER)
23058 (MASK_STACK_PROBE, MASK_NO_ALIGN_STROPS, MASK_INLINE_ALL_STROPS)
23059 (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS, MASK_MMX)
23060 (MASK_SSE, MASK_SSE2, MASK_SSE3, MASK_3DNOW, MASK_3DNOW_A)
23061 (MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT)
23062 (MASK_TLS_DIRECT_SEG_REFS, MASK_NO_RED_ZONE, TARGET_80387)
23063 (TARGET_RTD, TARGET_ALIGN_DOUBLE, TARGET_PUSH_ARGS)
23064 (TARGET_ACCUMULATE_OUTGOING_ARGS, TARGET_SVR3_SHLIB, TARGET_IEEE_FP)
23065 (TARGET_128BIT_LONG_DOUBLE, TARGET_NO_FANCY_MATH_387)
23066 (TARGET_USE_FANCY_MATH_387, TARGET_OMIT_LEAF_FRAME_POINTER)
23067 (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Delete.
23068 (TARGET_FLOAT_RETURNS_IN_80387): Make an alias of TARGET_FLOAT_RETURNS.
23069 (TARGET_64BIT): Undef before redefining.
23070 (TARGET_TLS_DIRECT_SEG_REFS, TARGET_STACK_PROBE)
23071 (TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS, TARGET_SSE)
23072 (TARGET_SSE2, TARGET_SSE3, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A)
23073 (TARGET_RED_ZONE, TARGET_USE_MS_BITFIELD_LAYOUT, TARGET_SWITCHES)
23074 (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS)
23075 (ix86_fpmath_string, ix86_tls_dialect_string, ix86_cmodel_string)
23076 (ix86_asm_string, ix86_regparm, ix86_regparm_string)
23077 (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
23078 (ix86_debug_arg_string, ix86_debug_addr_string)
23079 (ix86_align_loops_string, ix86_align_jumps_string)
23080 (ix86_align_funcs_string): Delete.
23081 * config/i386/cygming.h (MASK_NOP_FUN_DLLIMPORT)
23082 (TARGET_NOP_FUN_DLLIMPORT, SUBTARGET_SWITCHES): Delete.
23083 * config/i386/djgpp.h (MASK_BNU210, SUBTARGET_SWITCHES): Delete.
23084 (SUBTARGET_OVERRIDE_OPTIONS): Check TARGET_BNU210.
23085 * config/i386/lynx.h (SUBTARGET_SWITCHES): Delete.
23086 * config/i386/sco5.h (MASK_COFF, TARGET_ELF)
23087 (SUBTARGET_SWITCHES): Delete.
23088 * config/i386/i386.c (ix86_debug_arg_string): Delete.
23089 (ix86_debug_addr_string): Delete.
23090 (ix86_cmodel_string, ix86_asm_string, ix86_tls_dialect_string)
23091 (ix86_fpmath_string, ix86_regparm_string, ix86_regparm)
23092 (ix86_align_loops_string, ix86_align_jumps_string)
23093 (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
23094 (ix86_align_funcs_string): Make static.
23095 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
23096 (ix86_handle_option): New function.
23097 (TARGET_USE_MS_BITFIELD_LAYOUT): Delete.
23098 (ix86_ms_bitfield_layout_p): Check TARGET_MS_BITFIELD_LAYOUT.
23099 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove handling
23100 of darwin_fix_and_continue_switch.
23101 (darwin_one_byte_bool): Delete.
23102 * config/rs6000/lynx.h (EXTRA_SUBTARGET_SWITCHES): Delete.
23103 * config/rs6000/rs6000.c (rs6000_override_options): Update assignment
23104 to darwin_one_byte_bool.
23105 * config/darwin.opt, config/lynx.opt, config/i386/cygming.opt,
23106 * config/i386/djgpp.opt, config/i386/i386.opt,
23107 * config/i386/sco5.opt: New files.
23109 2005-04-21 Eric Botcazou <ebotcazou@libertysurf.fr>
23111 * config/sparc/sparc.c (reg_or_0_operand, const1_operand,
23112 fp_zero_operand, fp_register_operand, intreg_operand,
23113 fcc_reg_operand, fcc0_reg_operand, icc_or_fcc_reg_operand,
23114 call_operand, call_operand_address, tgd_symbolic_operand,
23115 tld_symbolic_operand, tie_symbolic_operand, tle_symbolic_operand,
23116 symbolic_operand, symbolic_memory_operand, label_ref_operand,
23117 sp64_medium_pic_operand, data_segment_operand,
23118 text_segment_operand, splittable_symbolic_memory_operand,
23119 reg_or_nonsymb_mem_operand, splittable_immediate_memory_operand,
23120 eq_or_neq, normal_comp_operator, noov_compare_op,
23121 noov_compare64_op, v9_regcmp_op, extend_op, cc_arithop,
23122 cc_arithopn, arith_operand, arith_4096_operand, arith_add_operand,
23123 const64_operand, const64_high_operand, arith11_operand,
23124 arith10_operand, arith_double_operand, arith_double_4096_operand,
23125 arith_double_add_operand, arith11_double_operand,
23126 arith10_double_operand, small_int, small_int_or_double,
23127 uns_small_int, uns_arith_operand, clobbered_register,
23128 input_operand, compare_operand): Delete.
23129 (sparc_emit_set_const32): Use predicates in assertion. Remove special
23130 code for TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT != 64.
23131 (sparc_emit_set_const64): Call gcc_unreachable if H_B_P_W_I == 32.
23132 (GEN_HIGHINT64, GEN_INT64): Delete.
23133 (sparc_emit_set_safe_HIGH64, gen_safe_SET64, gen_safe_OR64,
23134 gen_safe_XOR64): Adjust for above deletion.
23135 (sparc_emit_set_const64): Support only H_B_P_W_I == 64 and CONST_INTs.
23136 Use 'unsigned HOST_WIDE_INT' instead of 'long' for bitmask.
23137 (legitimate_constant_p): Use const_zero_operand instead.
23138 (sparc_extra_constraint_check): Likewise.
23139 * config/sparc/sparc.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'O'.
23140 (PREFERRED_RELOAD_CLASS): Use const_zero_operand.
23141 (PREDICATE_CODES): Delete.
23142 * config/sparc/sparc.md: Include predicates.md.
23143 (All patterns): Adjust for new predicate names.
23144 (cmpdi, cmpdi_sp64): Use arith_operand predicate.
23145 (movhi_const64_special, movsi_const64_special): Add 'K' constraint.
23146 (movdi): Use general_operand predicate.
23147 (movdi_sp64_dbl): Delete.
23148 (movdi_const64_special): Add 'N' constraint.
23149 (movdicc): Use arith10_operand predicate.
23150 (movdi_cc_sp64, movdi_cc_sp64_trunc): Use arith11_operand predicate.
23151 (movdi_cc_reg_sp64): Use arith10_operand predicate.
23152 (movdi_cc_reg_sp64_trunc): Delete.
23153 (cmp_zero_extract, cmp_zero_extract_sp64): Use small_int_operand.
23154 (adddi3_sp64, cmp_ccx_plus, cmp_ccx_plus_set): Use arith_operand.
23155 (subdi3_sp32): Delete.
23156 (subdi3_insn_sp32): Change to define_insn_and_split.
23157 (subdi3_sp64, cmp_minus_ccx, cmp_minus_ccx_set): Use arith_operand.
23158 (muldi3, muldi3_sp64, muldi3_v8plus): Likewise.
23159 (smulsi3_highpart_v8plus, const_smulsi3_highpart_v8plus,
23160 umulsi3_highpart_v8plus, const_umulsi3_highpart_v8plus): Use
23161 small_int_operand predicate.
23162 (divdi3, udivdi3): Use arith_operand predicate.
23163 (udivsi3, udivsi3_sp32, udivsi3_sp64): Use nonimmediate_operand.
23164 (and<V64I>3_sp64, ior<V64I>3_sp64, xor<V64I:mode>3_sp64,
23165 xor_not_<V64I:mode>_sp64) : Use arith_operand predicate.
23166 (xordi3_sp64_dbl): Delete.
23167 (cmp_ccx_arith_op, cmp_ccx_arith_op_set, cmp_ccx_xor_not,
23168 cmp_ccx_xor_not_set, cmp_ccx_arith_op_not, cmp_ccx_arith_op_not_set,
23169 cmp_ccx_neg, cmp_ccx_set_neg, one_cmpl<V64I>2_sp64, cmp_ccx_not,
23170 cmp_ccx_set_not): Use arith_operand predicate.
23171 (ashrsi3_extend2, lshrsi3_extend2 et al.): Use small_int_operand.
23172 * config/sparc/predicates.md: New file.
23174 2005-04-21 Kazu Hirata <kazu@cs.umass.edu>
23176 PR tree-optimization/14846
23177 * fold-const.c (fold_single_bit_test_into_sign_test): New,
23179 (fold_single_bit_test): ... here.
23180 (fold_binary): Call fold_single_bit_test_into_sign_test
23181 instead of fold_single_bit_test.
23183 2005-04-20 James E Wilson <wilson@specifixinc.com>
23186 * dwarf2out.c (gen_variable_die): Don't emit a specification if this
23187 is another declaration.
23189 2005-04-21 Hans-Peter Nilsson <hp@axis.com>
23191 * config/cris/predicates.md: New file.
23192 * config/cris/cris-protos.h (cris_store_multiple_op_p)
23193 (cris_movem_load_rest_p): Declare.
23194 * config/cris/cris.c (cris_store_multiple_op): Return bool, not int.
23195 (cris_movem_load_rest_p): Ditto. Globalize.
23196 (cris_bdap_operand, cris_bdap_biap_operand,
23197 cris_orthogonal_operator, cris_commutative_orth_op,
23198 cris_operand_extend_operator,
23199 cris_additive_operand_extend_operator, cris_extend_operator,
23200 cris_plus_or_bound_operator, cris_mem_op,
23201 cris_general_operand_or_symbol,
23202 cris_general_operand_or_gotless_symbol,
23203 cris_general_operand_or_plt_symbol, cris_mem_call_operand,
23204 cris_load_multiple_op): Remove predicate functions.
23205 (cris_symbol, cris_gotless_symbol) <case UNSPEC>: Return 0, don't
23206 abort, for UNSPECs other than CRIS_UNSPEC_PLT.
23207 * config/cris/cris.h (PREDICATE_CODES): Don't define.
23208 * config/cris/cris.md: Include predicates.md.
23209 ("call", "call_value"): Generate CONSTs of Pmode, not VOIDmode.
23211 2005-04-20 Ian Lance Taylor <ian@airs.com>
23213 * c-common.def: Remove STMT_EXPR (moved to cp/cp-tree.def).
23214 * c-common.h (STMT_EXPR_STMT): Don't define.
23215 (STMT_EXPR_NO_SCOPE): Don't define.
23216 * c-dump.c (c_dump_tree): Don't handle STMT_EXPR.
23217 * c-pretty-print.c (pp_c_primary_expression): Likewise.
23218 (pp_c_expression): Likewise.
23220 2005-04-20 Richard Henderson <rth@redhat.com>
23223 * config/i386/mmx.md (push<MMXMODE>1): Fix predicate thinko.
23225 2005-04-20 Jeff Law <law@redhat.com>
23227 * reload1.c (reload): Ignore equivalences between pseudos and
23230 2005-04-20 Joseph S. Myers <joseph@codesourcery.com>
23233 * c-tree.h (struct c_label_list): Update comment.
23234 (struct c_label_context): Rename to struct c_label_context_se.
23235 (label_context_stack): Rename to label_context_stack_se.
23236 (C_DECL_UNJUMPABLE_VM, C_DECL_UNDEFINABLE_VM, struct
23237 c_label_context_vm, label_context_stack_vm, c_begin_vm_scope,
23238 c_end_vm_scope): New.
23239 (C_DECL_DECLARED_BUILTIN, C_DECL_USED): Use FUNCTION_DECL_CHECK.
23240 * c-decl.c (pop_scope): Call c_end_vm_scope.
23241 (pushdecl): Call c_begin_vm_scope for variably modified
23243 (define_label): Check for jumping into scope of identifier with
23244 variably modified type. Push label on stack for those defined at
23245 current context of identifiers with variably modified type.
23246 (start_function): Create stack level for context of identifiers
23247 with variably modified type.
23248 (finish_function): Pop stack level for context of identifiers with
23249 variably modified type.
23250 * c-typeck.c (label_context_stack): Rename to
23251 label_context_stack_se.
23252 (label_context_stack_vm, c_begin_vm_scope, c_end_vm_scope): New.
23253 (c_finish_goto_label): Check for jumping into scope of identifier
23254 with variably modified type. Push label on stack for those jumped
23255 to from current context of identifiers with variably modified
23257 (struct c_switch): Add blocked_vm.
23258 (c_start_case): Initialize blocked_vm.
23259 (do_case): Check blocked_vm.
23260 (c_finish_case): Add comment.
23261 (c_begin_stmt_expr, c_finish_stmt_expr): Update for renamed
23262 variable label_context_stack.
23264 2005-04-20 Kazu Hirata <kazu@cs.umass.edu>
23266 * tree-ssa-phiopt.c (tree_ssa_phi_opt): Update calls to
23267 conditional_replacement, value_replacement, abs_replacement,
23268 minmax_replacement.
23269 (replace_phi_edge_with_variable): Remove argument BB.
23270 (conditional_replacement, value_replacement,
23271 minmax_replacement, abs_replacement): Remove argument PHI_BB.
23272 Update a call to replace_phi_edge_with_variable.
23274 * tree-ssa-phiopt.c: Fix comments.
23276 2005-04-20 Michael Matz <matz@suse.de>
23279 * reload.c (push_reload, find_dummy_reload): Check for uninitialized
23282 2005-04-20 Kazu Hirata <kazu@cs.umass.edu>
23284 * tree-ssa-phiopt.c: Fix comment typos.
23286 PR tree-optimization/21116
23287 * tree-ssa-phiopt.c: Fix a typo.
23289 2005-04-19 Richard Henderson <rth@redhat.com>
23291 * builtins.c (expand_builtin_sync_operation): Revert last change.
23292 * optabs.c (expand_bool_compare_and_swap): Compare vs old value,
23294 (expand_compare_and_swap_loop): Likewise.
23295 (expand_sync_operation): Remove fallback from NAND to AND; invert
23296 memory operand when expanding from cmpxchg.
23297 (expand_sync_fetch_operation): Likewise.
23298 * doc/extend.texi (Atomic Builtins): Fix docs for nand and
23301 * config/alpha/alpha.c (alpha_split_atomic_op): Invert memory operand
23302 when implementing NAND. Fix double-add for AFTER.
23303 * config/alpha/sync.md (sync_nand<I48MODE>): Invert memory operand.
23304 (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
23305 (sync_compare_and_swap<I48MODE>): Fix compare vs zero. Return old
23307 (sync_lock_test_and_set<I48MODE>): Remove extra label and last
23310 * config/i386/sync.md (sync_compare_and_swap<IMODE>): Fix pattern
23311 to return old memory value.
23312 (sync_compare_and_swap_cc<IMODE>): Likewise.
23314 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Early
23315 return pre-reload. Don't consider output or anti dependencies.
23316 * config/ia64/sync.md (IMODE): New.
23317 (modesuffix): Add QI and HI.
23318 (memory_barrier): Simplify expansion.
23319 (sync_compare_and_swap<IMODE>): Use IMODE, not I48MODE.
23320 (cmpxchg_acq_<IMODE>): Likewise.
23321 (sync_lock_test_and_set<IMODE>): Likewise.
23322 (sync_lock_release<IMODE>): Likewise.
23324 2005-04-19 James A. Morrison <phython@gcc.gnu.org>
23326 * fold-const.c (fold_binary): Fold ~(X ^ Y) to ~X ^ Y or X ^ ~Y if
23329 2005-04-19 James A. Morrison <phython@gcc.gnu.org>
23331 * fold-const (fold_binary): Fold ~X ^ ~ Y to X ^ Y.
23333 2005-04-20 Michael Pogue <michael.pogue@sun.com>
23334 Joseph S. Myers <joseph@codesourcery.com>
23336 * c.opt (Wint-to-pointer-cast, Wpointer-to-int-cast): New options.
23337 * c-typeck.c (build_c_cast): Check these options.
23338 * doc/invoke.texi: Document these options.
23340 2005-04-20 Kazu Hirata <kazu@cs.umass.edu>
23342 * tree-ssa-phiopt.c: Update a comment about the pass.
23344 2005-04-19 Kazu Hirata <kazu@cs.umass.edu>
23346 * tree-ssa-phiopt.c, config/arm/arm.c, config/fr30/fr30.md,
23347 config/mcore/mcore.c: Fix comment typos.
23349 2005-04-19 Daniel Jacobowitz <dan@codesourcery.com>
23351 * Makefile.in (libgcc.mk): Pass GCC_FOR_TARGET.
23352 * mklibgcc.in: Use $GCC_FOR_TARGET instead of ./xgcc.
23354 2005-04-19 Paul Brook <paul@codesourcery.com>
23356 * config/arm/arm.c (arm_init_libfuncs): Clear mod optabs.
23358 2005-04-19 Andrew Haley <aph@redhat.com>
23361 * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before
23362 looking at a field's bitpos.
23364 2005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23366 * system.h (fopen, fdopen, freopen): Define these to the unlocked
23367 libiberty functions.
23369 2005-04-19 Kazu Hirata <kazu@cs.umass.edu>
23371 PR tree-optimization/21096
23372 * tree-ssa-copy.c (fini_copy_prop): Free cached_last_copy_of.
23374 2005-04-19 Alan Modra <amodra@bigpond.net.au>
23377 * config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
23378 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.
23380 2005-04-19 Alexandre Oliva <aoliva@redhat.com>
23382 * tree-cfg.c (dump_function_to_file): Use cfun info only if it
23383 refers to the function being dumped.
23385 2005-04-18 Daniel Jacobowitz <dan@codesourcery.com>
23387 * varasm.c (assemble_start_function): Remove reset of in_section.
23389 2005-04-18 James A. Morrison <phython@gcc.gnu.org>
23391 PR tree-optimization/21085
23392 * fold-const (fold_binary): Don't change X % -C to X % C if C has
23395 2005-04-19 Ben Elliston <bje@au.ibm.com>
23397 * doc/invoke.texi (Optimize Options): Refer to the correct
23398 optimisation flag -ftree-dominator-opts, not -ftree-dom.
23400 2005-04-18 Christopher Jaillet <christophe.jaillet@wanadoo.fr>
23402 * config/rs6000/rs6000.c (machopic_output_stub): Increase
23403 alloca argument to be big enough.
23405 2005-04-18 Alexandre Oliva <aoliva@redhat.com>
23407 PR middle-end/21049
23408 * tree-cfg.c (dump_function_to_file): Do not crash if cfun or
23409 cfun->cfg are NULL.
23411 2005-04-18 Tom Tromey <tromey@redhat.com>
23413 * cgraphunit.c (cgraph_finalize_compilation_unit): Fix a comment
23416 2005-04-18 Richard Henderson <rth@redhat.com>
23418 * config/alpha/alpha.c (alpha_split_atomic_op): New.
23419 (alphaev5_insn_pipe): Add LD_L, ST_C, MB types.
23420 (alphaev4_insn_pipe): Likewise. Correct IST and LDSYM pipes.
23421 * config/alpha/alpha-protos.h: Update.
23422 * config/alpha/alpha.md (UNSPECV_MB, UNSPECV_LL, UNSPECV_SC): New.
23423 (UNSPECV_ATOMIC, UNSPECV_CMPXCHG, UNSPECV_XCHG): New.
23424 (attr type): Add ld_l, st_c, mb.
23425 (andsi_internal, andnotsi3, iorsi_internal, one_cmplsi_internal,
23426 iornotsi3, xorsi_internal, xornotsi3): New.
23427 * config/alpha/ev4.md (ev4_ld): Add ld_l.
23428 (ev4_ist_c, ev4_mb): New.
23429 * config/alpha/ev5.md (ev5_st): Add st_c, mb.
23431 * config/alpha/ev6.md (ev6_ild): Add ld_l.
23432 (ev6_ist): Add st_c.
23434 * config/alpha/sync.md: New file.
23436 2005-04-18 Richard Henderson <rth@redhat.com>
23438 * builtins.c (expand_builtin_sync_operation): Fold nand to and
23441 * optabs.c (expand_sync_operation): Fix typo expanding nand to and.
23443 2005-04-18 Devang Patel <dpatel@apple.com>
23445 * config/rs6000/atlivec.md (mulv4si3): New pattern.
23447 2005-04-18 James A. Morrison <phython@gcc.gnu.org>
23449 PR tree-optimization/20922
23450 * fold-const.c (fold_binary): Fold X - c > X and X + c < X to false.
23451 Fold X + c >= X and fold X - c <= X to true.
23453 2005-04-18 James A. Morrison <phython@gcc.gnu.org>
23455 * config/ia64/unwind-ia64.c (emergency_reg_state_free): Make an
23457 (emergency_labeled_state_free): Likewise.
23459 2005-04-18 Nick Clifton <nickc@redhat.com>
23461 * config/h8300/h8300.md (jump): Remove prescan parameter from
23462 calls to final_scan_insn.
23464 * config/arc/arc.c (arc_output_function_epilogue): Remove prescan
23465 parameter from calls to final_scan_insn.
23467 * config.gcc (m68hc12): Use the m68hc11.opt file for target
23469 (v850e, v850e1): Use the v850.opt file for target specific
23472 2005-04-18 Kazu Hirata <kazu@cs.umass.edu>
23474 PR tree-optimization/21001
23475 * tree-optimize.c (init_tree_optimization_passes): Move the
23476 first pass_forwprop immediately before pass_vrp.
23478 2005-04-17 Ian Lance Taylor <ian@airs.com>
23480 * c-common.def (SIZEOF_EXPR, ARROW_EXPR, ALIGNOF_EXPR): Remove.
23481 * c-common.c (c_sizeof_or_alignof_type): Change second parameter
23482 from enum tree_code op to bool is_sizeof.
23483 * c-common.h (c_sizeof_or_alignof_type): Update declaration.
23484 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
23485 * c-pretty-print.c (pp_c_postfix_expression): Remove ARROW_EXPR
23487 (pp_c_unary_expression): Remove SIZEOF_EXPR and ALIGNOF_EXPR
23489 (pp_c_expression): Remove ARROW_EXPR, SIZEOF_EXPR, and
23490 ALIGNOF_EXPR cases.
23492 2005-04-17 Ian Lance Taylor <ian@airs.com>
23494 * system.h: Poison DONT_ACCESS_GBLS_AFTER_EPILOGUE.
23496 2005-04-17 Richard Henderson <rth@redhat.com>
23498 * config/alpha/alpha.c (va_list_skip_additions): Only define if
23500 (TARGET_STDARG_OPTIMIZE_HOOK): Likewise.
23501 (alpha_stdarg_optimize_hook): Likewise. Allow for one more round
23502 of indirection through ssa names while looking for the gpr counter
23504 (alpha_setup_incoming_varargs) <TARGET_ABI_OSF>: Make use of the
23505 saved va_list_gpr_size and va_list_fpr_size.
23507 2005-04-17 Kazu Hirata <kazu@cs.umass.edu>
23509 * tree-vrp.c (compare_values): Check that VAL1 and VAL2 are
23510 both pointers or both integers.
23512 * tree-vrp.c (maybe_add_assert_expr): Don't assert
23513 ASSERT_EXPRs for single-use variable.
23515 * tree-into-ssa.c: Fix a comment typo.
23517 2005-04-17 Richard Sandiford <rsandifo@redhat.com>
23519 * config/mips/iris6.h (DRIVER_SELF_SPECS): Check -march as well as
23520 -mipsN before forcing a default of -mips2.
23522 2005-04-17 Kazu Hirata <kazu@cs.umass.edu>
23524 * predict.h (IS_TAKEN): Remove.
23525 * rtl.h (NOTE_PREDICTION): Likewise.
23527 * modulo-sched.c (CFG_HOOKS): Remove.
23529 * c-parser.c (N_C_TTYPES): Remove.
23531 * tree-flow-inline.h (get_stmt_operands): Remove.
23532 * lambda-code.c, tree-ssa-loop-unswitch.c,
23533 tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa-propagate.c,
23534 tree-ssa-sink.c, tree-ssa.c, tree-tailcall.c,
23535 tree-vect-transform.c, tree-vectorizer.c, tree-vrp.c): Remove
23536 calls to get_stmt_operands.
23537 * doc/tree-ssa.texi: Don't mention get_stmt_operands.
23539 2005-04-17 Richard Henderson <rth@redhat.com>
23542 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Advance a copy
23543 of CUMULATIVE_ARGS past the last named argument.
23544 (alpha_va_start): Expect pretend_args_size only if strictly less than
23547 2005-04-17 Kazu Hirata <kazu@cs.umass.edu>
23549 PR middle-end/21024
23550 * builtins.c (expand_builtin_strcat): Convert the result of
23551 strlen to the right type.
23552 * fold-const.c (fold_binary) <PLUS_EXPR>: Use fold_convert to
23553 avoid creating type mismatches.
23554 <GE_EXPR>: Pass op0 and op1 to fold_build2 to avoid creating
23557 * c-lex.c (WCHAR_TYPE_SIZE, WCHAR_BYTES): Remove.
23559 2005-04-16 Richard Henderson <rth@redhat.com>
23562 * builtins.c (expand_builtin) <BUILT_IN_BOOL_COMPARE_AND_SWAP_*>:
23563 Use the mode of boolean_type_node when the user doesn't provide one.
23564 * config/ia64/sync.md (sync_lock_release<I48MODE>): Use operand 1.
23566 2005-04-16 Alexandre Oliva <aoliva@redhat.com>
23569 * loop.c (loop_givs_rescan): Handle non-replaceable (plus (reg)
23572 * tree-scalar-evolution.c (interpret_rhs_modify_expr): Fix typo in
23575 2005-04-16 Roger Sayle <roger@eyesopen.com>
23576 Steven Bosscher <stevenb@suse.de>
23578 * fold-const.c (fold_binary_to_constant): Delete obsolete comment.
23579 (fold_unary_to_constant): Likewise.
23581 2005-04-16 Kazu Hirata <kazu@cs.umass.edu>
23583 * basic-block.h: Adjust the value of PROP_SCAN_DEAD_STORES,
23586 2005-04-16 Gerald Pfeifer <gerald@pfeifer.com>
23588 * doc/install.texi (Specific): Avoid using asterisks in @anchor
23589 names related to target triplets.
23590 Remove i?86-*-esix from platform directory.
23591 Remove powerpc-*-eabiaix from platform directory.
23593 2005-04-16 Joseph S. Myers <joseph@codesourcery.com>
23595 PR middle-end/20491
23596 * config/ia64/ia64.c (rtx_needs_barrier): Recurse instead of
23597 falling through from SUBREG case to REG.
23599 2005-04-15 Roger Sayle <roger@eyesopen.com>
23601 * fold-const.c (fold_relational_hi_lo): Delete function and prototype.
23602 (fold_binary): Update comment mentioning fold_relational_hi_lo.
23603 (fold_binary_to_constant): Simplify using fold_binary.
23604 (fold_unary_to_constant): Likewise, simplify using fold_unary.
23606 2005-04-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
23608 * gthr-posix.c (pthread_cancel): Define.
23609 (pthread_mutexattr_init): Likewise.
23610 (pthread_mutexattr_settype): Likewise.
23611 (pthread_mutexattr_destroy): Likewise.
23613 2005-04-15 David S. Miller <davem@davemloft.net>
23616 * config/sparc/sparc.h (sparc_hard_reg_printed): Mark as GTY(()).
23618 2005-04-15 Kazu Hirata <kazu@cs.umass.edu>
23620 PR tree-optimization/21031
23621 * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): New.
23622 (forward_propagate_into_cond_1): Call it. Forward propagate
23623 integer-integer casts into COND_EXPRs.
23625 2005-04-15 Dave Korn <dave.korn@artimi.com>
23627 * gcc.c (default_compilers): Clarify obscure error message when
23628 reading from standard input.
23630 2005-04-15 Kazu Hirata <kazu@cs.umass.edu>
23632 * basic-block.h (PROP_EQUAL_NOTES): Remove.
23633 * flow.c (propagate_one_insn): Don't use PROP_EQUAL_NOTES.
23635 * tree-ssa-alias.c (init_alias_info): Remove a call to
23638 2005-04-15 Andrew MacLeod <amacleod@redhat.com>
23640 * tree-vect-analyze.c (vect_stmt_relevant_p): Process immediate uses
23641 of non-virtual PHI nodes like we use to.
23643 2005-05-15 Paolo Bonzini <bonzini@gnu.org>
23645 * genattrtab.c (ATTR_EQ_ATTR_P): Remove.
23646 (attr_copy_rtx): Do not use it.
23648 2005-04-15 Andrew Macleod <amacleod@redhat.com>
23650 * doc/tree-ssa.texi: Grammer/abbreviation updates.
23652 2005-04-15 Diego Novillo <dnovillo@redhat.com>
23654 * tree-vect-transform.c (vectorizable_store): Mark necessary
23655 objects in the vectorized store needing renaming. Update the
23656 SSA graph for V_MAY_DEF operands in the original store.
23658 2005-04-14 Daniel Berlin <dberlin@dberlin.org>
23660 * tree-ssa-pre.c (compute_avail): It's okay to have
23661 TREE_INVARIANT's here, and value number the resulting expressions.
23662 (create_expression_by_pieces): Make sure operands that were
23663 min_invariant when we started, stay that way.
23665 2005-04-15 David Edelsohn <edelsohn@gnu.org>
23667 * doc/install.texi (*-ibm-aix*): Add comment about system limits.
23669 2005-04-15 Kazu Hirata <kazu@cs.umass.edu>
23671 PR tree-optimization/20936.
23672 * tree-ssa-ccp.c (visit_assignment): Fix a typo.
23674 2005-04-15 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
23676 * doc/invoke.texi: Fix typos.
23677 * doc/md.texi: Likewise.
23678 * doc/rtl.texi: Likewise.
23679 * doc/sourcebuild.texi: Likewise.
23680 * doc/tm.texi: Likewise.
23682 2005-04-15 Uros Bizjak <uros@kss-loka.si>
23684 PR tree-optimization/21004
23685 * convert.c (convert_to_integer): Convert ceilf, ceill, floorf
23686 and floorl in c99 mode only.
23687 * builtins.c (expand_builtin_int_roundingfn): Assert that
23688 fallback_fndecl is not NULL_TREE.
23690 2005-04-15 Kazu Hirata <kazu@cs.umass.edu>
23692 * cfgrtl.c (purge_all_dead_edge): Remove an unused argument.
23693 * basic-block.h: Update the prototype for
23694 purge_all_dead_edges.
23695 * cfgexpand.c (tree_expand_cfg): Update a call to
23696 purge_all_dead_edges.
23697 * combine.c (combine_instructions): Likewise.
23698 * passes.c (rest_of_handle_old_regalloc, rest_of_handle_cse,
23699 rest_of_handle_cse2, rest_of_handle_gcse,
23700 rest_of_handle_postreload): likewise.
23702 2005-04-15 Alexandre Oliva <aoliva@redhat.com>
23704 PR middle-end/20739
23705 * gimplify.c (gimplify_addr_expr): Compensate for removal of
23706 e.g. cv-qualification conversions.
23708 2005-04-14 Mike Stump <mrs@apple.com>
23710 * config/darwin-c.c (framework_construct_pathname): We must
23711 find all headers of a framework in the first instance of it
23712 found in the seach path.
23714 2005-04-14 Kazu Hirata <kazu@cs.umass.edu>
23716 PR tree-optimization/21021
23717 * tree-vrp.c (compare_values): Work around a bug in the front
23718 end that produces a comparison of mismatched types.
23720 2004-04-14 Richard Henderson <rth@redhat.com>
23722 * config/ia64/ia64.h (enum fetchop_code): Remove.
23723 (enum ia64_builtins): Move ...
23724 * config/ia64/ia64.c (enum ia64_builtins): ... here. Remove all
23725 members except BSP and FLUSHRS.
23726 (ia64_init_builtins): Remove __sync builtins.
23727 (ia64_expand_builtin): Likewise.
23728 (ia64_expand_fetch_and_op, ia64_expand_op_and_fetch): Remove.
23729 (ia64_expand_compare_and_swap, ia64_expand_lock_test_and_set): Remove.
23730 (ia64_expand_lock_release): Remove.
23731 * config/ia64/ia64.md (mf): Move to sync.md.
23732 (mf_internal, fetchadd_acq_si, fetchadd_acq_di, cmpxchg_acq_si,
23733 cmpxchg_acq_di, xchgsi, xchgdi): Likewise.
23734 * config/ia64/sync.md: New file.
23735 (memory_barrier): Rename from mf.
23736 (fetchadd_acq_<I48MODE>): Macroize from _si/_di patterns.
23737 (cmpxchg_acq_<I48MODE>): Likewise.
23738 (sync_lock_test_and_set<I48MODE>): Likewise.
23740 * config/ia64/ia64intrin.h: Define nothing for C; limit #defines
23741 to c++. Remove __sync* declarations. s/_si/_4/. s/_di/_8/.
23743 2004-04-14 Richard Henderson <rth@redhat.com>
23745 * config/i386/i386.c (x86_cmpxchg, x86_xadd): New.
23746 (ix86_compare_emitted): New.
23747 (ix86_expand_compare): Use ix86_compare_emitted if set.
23748 (ix86_expand_setcc): Only emit REG_EQUAL if both ix86_compare_op0
23749 and ix86_compare_op0 are set.
23750 * config/i386/i386.h (x86_cmpxchg, x86_xadd): Declare.
23751 (TARGET_CMPXCHG, TARGET_XADD): New.
23752 (ix86_compare_emitted): Declare.
23753 * config/i386/i386.md: Include sync.md
23754 (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2): New.
23755 (UNSPECV_XCHG, UNSPECV_LOCK): New.
23756 * config/i386/sync.md: New file.
23758 2004-04-14 Richard Henderson <rth@redhat.com>
23760 PR middle-end/14311
23761 * builtin-types.def (BT_BOOL, BT_VOLATILE_PTR, BT_I1, BT_I2,
23762 BT_I4, BT_I8, BT_FN_VOID_VPTR, BT_FN_I1_VPTR_I1, BT_FN_I2_VPTR_I2,
23763 BT_FN_I4_VPTR_I4, BT_FN_I8_VPTR_I8, BT_FN_BOOL_VPTR_I1_I1,
23764 BT_FN_BOOL_VPTR_I2_I2, BT_FN_BOOL_VPTR_I4_I4, BT_FN_BOOL_VPTR_I8_I8,
23765 BT_FN_I1_VPTR_I1_I1, BT_FN_I2_VPTR_I2_I2, BT_FN_I4_VPTR_I4_I4,
23766 BT_FN_I8_VPTR_I8_I8): New.
23767 * builtins.def (DEF_SYNC_BUILTIN): New.
23768 (BUILT_IN_FETCH_AND_ADD_N, BUILT_IN_FETCH_AND_ADD_1,
23769 BUILT_IN_FETCH_AND_ADD_2, BUILT_IN_FETCH_AND_ADD_4,
23770 BUILT_IN_FETCH_AND_ADD_8, BUILT_IN_FETCH_AND_SUB_N,
23771 BUILT_IN_FETCH_AND_SUB_1, BUILT_IN_FETCH_AND_SUB_2,
23772 BUILT_IN_FETCH_AND_SUB_4, BUILT_IN_FETCH_AND_SUB_8,
23773 BUILT_IN_FETCH_AND_OR_N, BUILT_IN_FETCH_AND_OR_1,
23774 BUILT_IN_FETCH_AND_OR_2, BUILT_IN_FETCH_AND_OR_4,
23775 BUILT_IN_FETCH_AND_OR_8, BUILT_IN_FETCH_AND_AND_N,
23776 BUILT_IN_FETCH_AND_AND_1, BUILT_IN_FETCH_AND_AND_2,
23777 BUILT_IN_FETCH_AND_AND_4, BUILT_IN_FETCH_AND_AND_8,
23778 BUILT_IN_FETCH_AND_XOR_N, BUILT_IN_FETCH_AND_XOR_1,
23779 BUILT_IN_FETCH_AND_XOR_2, BUILT_IN_FETCH_AND_XOR_4,
23780 BUILT_IN_FETCH_AND_XOR_8, BUILT_IN_FETCH_AND_NAND_N,
23781 BUILT_IN_FETCH_AND_NAND_1, BUILT_IN_FETCH_AND_NAND_2,
23782 BUILT_IN_FETCH_AND_NAND_4, BUILT_IN_FETCH_AND_NAND_8,
23783 BUILT_IN_ADD_AND_FETCH_N, BUILT_IN_ADD_AND_FETCH_1,
23784 BUILT_IN_ADD_AND_FETCH_2, BUILT_IN_ADD_AND_FETCH_4,
23785 BUILT_IN_ADD_AND_FETCH_8, BUILT_IN_SUB_AND_FETCH_N,
23786 BUILT_IN_SUB_AND_FETCH_1, BUILT_IN_SUB_AND_FETCH_2,
23787 BUILT_IN_SUB_AND_FETCH_4, BUILT_IN_SUB_AND_FETCH_8,
23788 BUILT_IN_OR_AND_FETCH_N, BUILT_IN_OR_AND_FETCH_1,
23789 BUILT_IN_OR_AND_FETCH_2, BUILT_IN_OR_AND_FETCH_4,
23790 BUILT_IN_OR_AND_FETCH_8, BUILT_IN_AND_AND_FETCH_N,
23791 BUILT_IN_AND_AND_FETCH_1, BUILT_IN_AND_AND_FETCH_2,
23792 BUILT_IN_AND_AND_FETCH_4, BUILT_IN_AND_AND_FETCH_8,
23793 BUILT_IN_XOR_AND_FETCH_N, BUILT_IN_XOR_AND_FETCH_1,
23794 BUILT_IN_XOR_AND_FETCH_2, BUILT_IN_XOR_AND_FETCH_4,
23795 BUILT_IN_XOR_AND_FETCH_8, BUILT_IN_NAND_AND_FETCH_N,
23796 BUILT_IN_NAND_AND_FETCH_1, BUILT_IN_NAND_AND_FETCH_2,
23797 BUILT_IN_NAND_AND_FETCH_4, BUILT_IN_NAND_AND_FETCH_8,
23798 BUILT_IN_BOOL_COMPARE_AND_SWAP_N, BUILT_IN_BOOL_COMPARE_AND_SWAP_1,
23799 BUILT_IN_BOOL_COMPARE_AND_SWAP_2, BUILT_IN_BOOL_COMPARE_AND_SWAP_4,
23800 BUILT_IN_BOOL_COMPARE_AND_SWAP_8, BUILT_IN_VAL_COMPARE_AND_SWAP_N,
23801 BUILT_IN_VAL_COMPARE_AND_SWAP_1, BUILT_IN_VAL_COMPARE_AND_SWAP_2,
23802 BUILT_IN_VAL_COMPARE_AND_SWAP_4, BUILT_IN_VAL_COMPARE_AND_SWAP_8,
23803 BUILT_IN_LOCK_TEST_AND_SET_N, BUILT_IN_LOCK_TEST_AND_SET_1,
23804 BUILT_IN_LOCK_TEST_AND_SET_2, BUILT_IN_LOCK_TEST_AND_SET_4,
23805 BUILT_IN_LOCK_TEST_AND_SET_8, BUILT_IN_LOCK_RELEASE_N,
23806 BUILT_IN_LOCK_RELEASE_1, BUILT_IN_LOCK_RELEASE_2,
23807 BUILT_IN_LOCK_RELEASE_4, BUILT_IN_LOCK_RELEASE_8,
23808 BUILT_IN_SYNCHRONIZE: New.
23809 * builtins.c (called_as_built_in): Rewrite from CALLED_AS_BUILT_IN
23810 as a function. Accept __sync_ as a prefix as well.
23811 (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
23812 expand_builtin_lock_test_and_set, expand_builtin_synchronize,
23813 expand_builtin_lock_release): New.
23814 (expand_builtin): Call them.
23815 * c-common.c (DEF_BUILTIN): Don't require __builtin_ prefix if
23816 neither BOTH_P nor FALLBACK_P are defined.
23817 (builtin_type_for_size): New.
23818 (sync_resolve_size, sync_resolve_params, sync_resolve_return): New.
23819 (resolve_overloaded_builtin): New.
23820 * c-common.h (resolve_overloaded_builtin): Declare.
23821 (builtin_type_for_size): Declare.
23822 * c-typeck.c (build_function_call): Invoke resolve_overloaded_builtin.
23823 * expr.c (sync_add_optab, sync_sub_optab, sync_ior_optab,
23824 sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab,
23825 sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab,
23826 sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab,
23827 sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab,
23828 sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap,
23829 sync_compare_and_swap_cc, sync_lock_test_and_set,
23830 sync_lock_release): New.
23831 * optabs.h: Declare them.
23832 * expr.h (expand_val_compare_and_swap, expand_bool_compare_and_swap,
23833 expand_sync_operation, expand_sync_fetch_operation,
23834 expand_sync_lock_test_and_set): Declare.
23835 * genopinit.c (optabs): Add sync optabs.
23836 * optabs.c (init_optabs): Initialize sync optabs.
23837 (expand_val_compare_and_swap_1, expand_val_compare_and_swap,
23838 expand_bool_compare_and_swap, expand_compare_and_swap_loop,
23839 expand_sync_operation, expand_sync_fetch_operation,
23840 expand_sync_lock_test_and_set): New.
23841 * doc/extend.texi (Atomic Builtins): New section
23842 * doc/md.texi (Standard Names): Add sync patterns.
23844 2005-04-14 Alexandre Oliva <aoliva@redhat.com>
23846 * tree-eh.c (lower_try_finally_copy): Generate new code in
23847 response to goto_queue entries as if the queue was sorted by
23848 index, not pointers.
23849 (lower_try_finally_switch): Likewise.
23851 2005-04-14 Richard Henderson <rth@redhat.com>
23853 * config/i386/i386.c (ix86_expand_sse_cmp): Split out from ...
23854 (ix86_expand_sse_movcc): ... here. Take cmp as a pre-computed
23856 (ix86_expand_fp_movcc): Update to match.
23857 (ix86_expand_fp_vcond, ix86_expand_int_vcond): New.
23858 * config/i386/i386-protos.h: Update.
23859 * config/i386/sse.md (vcondv4sf, vcondv2df): New.
23860 (vcond<SSEMODE124>, vcondu<SSEMODE12>): New.
23862 2005-04-14 Joseph S. Myers <joseph@codesourcery.com>
23864 * doc/cpp.texi, doc/install.texi: Change references to GCC 3.5 to
23867 2005-04-14 Julian Brown <julian@codesourcery.com>
23869 * Revert elfos.h part of my patch from 2005-04-13 for causing libstdc++
23870 link failures on ppc64 Linux.
23872 2005-04-14 Andreas Krebbel <krebbel1@de.ibm.com>
23874 * config.gcc: Set cpu_type for s390.
23876 2005-04-14 Daniel Berlin <dberlin@dberlin.org>
23878 Fix PR tree-optimization/20963
23879 * tree-ssa-pre.c (compute_avail): Remove special case for
23881 (create_expression_by_pieces): Add value numbers for forced out
23884 2005-04-14 Hans-Peter Nilsson <hp@axis.com>
23886 * config/cris/cris.md: Replace references to (reg:SI 16) with
23887 (reg:SI CRIS_SRP_REGNUM).
23889 2005-04-14 Kazu Hirata <kazu@cs.umass.edu>
23891 PR tree-optimization/20657
23892 * tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
23893 create an appropriate range from it.
23895 2005-04-14 Uros Bizjak <uros@kss-loka.si>
23897 * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST_FLOOR> and
23898 <UNSPEC_FIST_CEIL> case.
23900 * config/i386/i386.md (UNSPEC_FIST_FLOOR, UNSPEC_FIST_CEIL): New.
23901 (*fist<mode>2_floor_1, fistdi2_floor, fistdi2_floor_with_temp)
23902 (fist<mode>2_floor, fist<mode>2_floor_with_temp): New isns patterns
23903 to implement lfloor and llfloor built-ins as x87 intrinsic function.
23904 (fistdi2_floor, fist<mode>2_floor splitters): New splitters.
23905 (lfloor<mode>2): New expanders.
23906 (*fist<mode>2_ceil_1, fistdi2_ceil, fistdi2_ceil_with_temp)
23907 (fist<mode>2_ceil, fist<mode>2_ceil_with_temp): New isns patterns
23908 to implement lceil and llceil built-ins as x87 intrinsic function.
23909 (fistdi2_ceil, fist<mode>2_ceil splitters): New splitters.
23910 (lceil<mode>2): New expanders.
23912 2005-04-14 Uros Bizjak <uros@kss-loka.si>
23914 * convert.c (convert_to_integer): Convert (long int)trunc{,f,l},
23915 and (long long int)ceil{,f,l} into FIX_TRUNC_EXPR.
23917 2005-04-14 Ulrich Weigand <uweigand@de.ibm.com>
23920 * config/s390/s390-modes.def: Define TFmode.
23922 2005-04-13 Richard Sandiford <rsandifo@redhat.com>
23924 * config/mips/mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
23925 (JUMP_TABLES_IN_TEXT_SECTION): Define.
23926 * config/mips/mips.c (mips16_insn_length): Remove reference to
23927 JUMP_TABLES_IN_TEXT_SECTION.
23929 2005-04-13 Fariborz Jahanian <fjahanian@apple.com>
23931 * simplify-rtx.c (simplify_binary_operation_1): Return
23932 scalar or vector of constant 0, depending on the xor's
23935 2005-04-13 Dale Johannesen <dalej@apple.com>
23937 * objc/Make-lang.in (objc-lang.o): Depend on tree-gimple.h.
23938 (objc-act.o): Ditto.
23939 * objc/objc-act.c (objc_gimplify_expr): New.
23940 (objc_get_callee_fndecl): New.
23941 * objc/objc-act.h: Include tree-gimple.h. Declare new functions.
23942 * objc/objc-lang.c (LANG_HOOKS_GIMPLIFY_EXPR): Define.
23943 (LANG_HOOKS_GET_CALLEE_FNDECL): Define.
23945 2005-04-13 Devang Patel <dpatel@apple.com>
23947 * tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
23950 2005-04-13 Hans-Peter Nilsson <hp@axis.com>
23952 CRIS prologue as RTL.
23953 * config/cris/cris-protos.h (cris_emit_movem_store)
23954 (cris_expand_prologue): Prototype.
23955 * config/cris/cris.c (struct machine_function): New member
23957 (cfa_label_num, cris_target_asm_function_prologue): Remove.
23958 (TARGET_ASM_FUNCTION_PROLOGUE): Don't override.
23959 (cris_general_operand_or_gotless_symbol): Accept CRIS_UNSPEC_GOT.
23960 (cris_load_multiple_op, cris_return_address_on_stack)
23961 (cris_return_address_on_stack_for_return): ISO-Cify.
23962 (cris_store_multiple_op): New predicate function.
23963 (cris_expand_prologue, cris_emit_movem_store): New functions.
23964 (cris_print_operand) <case 'O'>: Handle modifications other than
23966 (cris_symbol, cris_got_symbol): Return 0 for CRIS_UNSPEC_GOT.
23967 (cris_gotless_symbol): Return 1 for CRIS_UNSPEC_GOT.
23968 (cris_gen_movem_load): Rearrange slightly to make local variable
23969 src a parameter, removing osrc.
23970 (cris_setup_incoming_varargs): Set machine_function member
23971 stdarg_regs to correspond to the number of registers that need to
23973 * config/cris/cris.h (EXTRA_CONSTRAINT_S): Accept
23975 (PREDICATE_CODES): Add cris_store_multiple_op. Make
23976 cris_general_operand_or_gotless_symbol accept UNSPEC.
23977 * config/cris/cris.md (CRIS_UNSPEC_GOT): New constant.
23978 ("*movsi_internal") <alternative 8>: Handle CRIS_UNSPEC_GOT.
23979 ("*cris_store_multiple"): New pattern. Tweak common comment above
23980 this and "*cris_load_multiple".
23981 ("prologue"): New define_expand.
23983 * config/cris/cris.md ("epilogue"): Conditionalize on
23984 TARGET_PROLOGUE_EPILOGUE.
23986 2005-04-13 Steve Ellcey <sje@cup.hp.com>
23989 * config/ia64/ia64.md (divsf3_internal_lat): Generate frcpa with
23990 fpsr 0 instead of fpsr 1.
23991 (divsf3_internal_thr): Ditto.
23992 (divdf3_internal_lat): Ditto.
23993 (divdf3_internal_thr): Ditto.
23994 (divxf3_internal_lat): Ditto.
23995 (divxf3_internal_thr): Ditto.
23997 2005-04-13 Kazu Hirata <kazu@cs.umass.edu>
23999 PR tree-optimization/20913
24000 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.
24002 PR tree-optimization/20702
24003 * tree-vrp.c (maybe_add_assert_expr): Recurse into
24004 dominator children that haven't been walked into.
24006 2005-04-13 Julian Brown <julian@codesourcery.com>
24008 * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from
24009 being used for symbols with vague linkage when HAVE_GAS_COMDAT_GROUP
24012 2005-04-13 Kazu Hirata <kazu@cs.umass.edu>
24014 * basic-block.h, tree-ssa-uncprop.c, varasm.c,
24015 config/i386/sse.md: Fix comment typos.
24017 * genattrtab.c (NULL_ATTR): Remove.
24018 * ifcvt.c (NULL_EDGE): Likewise.
24020 * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
24022 * rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
24023 NOTE_PREDICT): Remove.
24025 2005-04-13 Eric Botcazou <ebotcazou@libertysurf.fr>
24027 * configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
24028 * configure: Regenerate.
24029 * config.in: Likewise.
24030 * system.h: Declare vsnprintf if not already declared.
24032 2005-04-13 Eric Botcazou <ebotcazou@libertysurf.fr>
24034 * optc-gen.awk: Handle stand-alone Mask records.
24035 * opth-gen.awk: Likewise.
24036 * doc/options.texi (Option file format): Document them.
24037 * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
24038 sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
24039 (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
24040 * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
24041 MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
24042 MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
24043 MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
24044 MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
24045 MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
24046 (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
24047 TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
24048 TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
24049 TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
24050 TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
24051 TARGET_LONG_DOUBLE_128): Likewise.
24052 (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
24053 (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
24054 * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
24055 * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
24056 * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
24057 * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
24058 * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
24059 * config/sparc/sparc.c (fpu_option_set): New global.
24060 (sparc_handle_option): New function.
24061 (sparc_override_options): Test fpu_option_set.
24062 (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
24063 (TARGET_HANDLE_OPTION): Set to sparc_handle_option.
24064 * config/sparc/sparc.opt: New file.
24065 * config/sparc/little-endian.opt: Likewise.
24066 * config/sparc/long-double-switch.opt: Likewise.
24068 2005-04-13 Bernd Schmidt <bernd.schmidt@analog.com>
24070 * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
24071 (bfin_handle_options): Set it if -mshared-library-id= is seen.
24072 * config/bfin/bfin.opt (mshared-library-id=): Lose
24073 Var(bfin_lib_id_given).
24075 2005-04-13 Matt Thomas <matt@3am-software.com>
24077 * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
24080 2005-04-13 Kazu Hirata <kazu@cs.umass.edu>
24082 * rtl.h (CLEAR_RTX_FLAGS): Remove.
24084 * cgraphunit.c (INSNS_PER_CALL): Remove.
24086 * tree-ssa-forwprop.c (vars,
24087 record_single_argument_cond_exprs,
24088 substitute_single_use_vars): Remove.
24089 (forward_propagate_into_cond_1, forward_propagate_into_cond):
24091 (tree_ssa_forward_propagate_single_use_vars): Call
24092 forward_propagate_into_cond for each COND_EXPR.
24094 * tree-inline.c (INSNS_PER_STMT): Remove.
24096 2005-04-12 Richard Henderson <rth@redhat.com>
24098 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
24099 (ix86_expand_sse_fp_minmax): ... from ...
24100 (ix86_expand_fp_movcc): ... here.
24101 (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
24102 * config/i386/i386-protos.h: Update.
24103 * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
24104 (sse_setccsf, sse_setccdf): Allow before reload.
24105 (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
24106 (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
24107 (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
24108 * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
24109 (anddf3, nanddf3, iordf3, xordf3): New.
24111 2005-04-12 Jeff Law <law@redhat.com>
24113 * Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
24114 (tree-ssa-uncprop.o): Add dependencies.
24115 * tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
24116 * tree-flow.h (remove_useless_stmts): Remove prototype.
24117 * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
24118 remove_useless_stmts.
24119 * timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
24120 * tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
24121 * tree-pass.h (pass_uncprop): Declare.
24122 * tree-ssa-uncprop.c: New file.
24124 2005-04-12 James E. Wilson <wilson@specifixinc.com>
24127 * unwind-ia64.c (uw_intall_context): Add missing load of r27.
24129 2005-04-12 Caroline Tice <ctice@apple.com>
24131 Temporary fix for partitioning problems.
24132 * passes.c (rest_of_handle_final): Remove code that
24133 frees unlikely_text_section_name,
24134 * varasm.c (assemble_start_function): Test for partitioning
24135 flag before writing out section labels.
24136 (assemble_end_function): Test for partitioning flag before
24137 writing out section labels.
24139 2005-04-12 Steven Bosscher <stevenb@suse.de>
24140 Stuart Hastings <stuart@apple.com>
24141 Jan Hubicka <jh@suse.cz>
24143 * Makefile.in: Add function.h to BASIC_BLOCK_H. Remove all
24144 references to gt-tree-cfg.h.
24145 * basic-block.h (struct basic_block_def): Don't skip rbi
24146 for garbage collection.
24147 (struct reorder_block_def): Make GTY-able.
24148 (struct control_flow_graph): New structure.
24149 (n_edges, n_basic_blocks, last_basic_block, basic_block_info,
24150 BASIC_BLOCK, EXIT_BLOCK_PTR, ENTRY_BLOCK_PTR): No longer vars,
24151 but instead defines to the control_flow_graph for cfun.
24152 (label_to_block_map): New define, points to the label map of
24153 the control_flow_graph for cfun.
24154 (n_edges_for_function, n_basic_blocks_for_function,
24155 last_basic_block_for_function, basic_block_info_for_function,
24156 EXIT_BLOCK_PTR_FOR_FUNCTION, ENTRY_BLOCK_PTR_FOR_FUNCTION,
24157 basic_block_info_for_function, label_to_block_map_for_function):
24158 Counterparts for the above, taking a struct function as an extra
24160 (alloc_rbi_pool, free_rbi_pool): Remove prototypes.
24161 * cfg.c: (n_edges, n_basic_blocks, last_basic_block,
24162 basic_block_info, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Remove.
24163 (alloc_rbi_pool, free_rbi_pool): Remove.
24164 (initialize_bb_rbi): Use ggc_alloc_cleared instead of pool_alloc.
24165 * cfglayout.c: (cfg_layout_initialize): Don't allocate the rbi pool
24167 (cfg_layout_finalize) ... and don't free it here.
24168 * cfgrtl.c (cfg_layout_delete_block): Zero out rbi so it gets
24170 * flow.c (free_basic_block_vars): Set label_to_block_map and
24171 n_edges to zero too.
24172 * function.h (struct function): Add cfg field.
24173 * function.c (allocate_struct_function): Allocate the cfg.
24174 * tree-cfg.c (label_to_block_map): Remove.
24175 (build_tree_cfg): Don't allocate the rbi pool here...
24176 (delete_tree_cfg_annotations): ...and don't free it here.
24177 Also don't nullify label_to_block_map for cfun.
24179 2005-04-12 Caroline Tice <ctice@apple.com>
24181 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
24182 Revert my patch from April 9.
24183 (fix_edges_for_rarely_executed_code): Revert my patch from April 9.
24184 (reorder_basic_blocks): Revert my patch from April 9.
24185 (insert_section_boundary_note): Revert my patch from April 9.
24186 * dbxout.c (dbxout_function_end): Revert my patch from April 9.
24187 * dwarf2out.c (COLD_TEXT_SECTION_LABEL): Revert my patch from April 9.
24188 (COLD_END_LABEL): Revert my patch from April 9.
24189 (cold_text_section_label): Revert my patch from April 9.
24190 (cold_end_label): Revert my patch from April 9.
24191 (dwarf2out_switch_text_section): Revert my patch from April 9.
24192 (output_aranges): Revert my patch from April 9.
24193 (output_ranges): Revert my patch from April 9.
24194 (output_line_info): Revert my patch from April 9.
24195 (add_location_or_const_value_attribute): Revert my patch from April 9.
24196 (dwarf2out_var_location): Revert my patch from April 9.
24197 (dwarf2out_init): Revert my patch from April 9.
24198 (dwarf2out_finish): Revert my patch from April 9.
24199 * function.h (struct function): Revert my patch from April 9.
24200 * opts.c (decode_options): Revert my patch from April 9.
24201 * output.h (unlikely_section_label, hot_section_label,
24202 hot_section_end_label, cold_section_end_label,
24203 unlikely_text_section_name): Revert my patch from April 9.
24204 * passes.c (rest_of_handle_final): Revert my patch from April 9.
24205 * varasm.c (unlikely_section_label, hot_section_label,
24206 hot_section_end_label, cold_section_end_label,
24207 unlikely_text_section_name): Revert my patch from April 9.
24208 (initialize_cold_section_name): Revert my patch from April 9.
24209 (unlikely_text_section): Revert my patch from April 9.
24210 (in_unlikely_text_section): Revert my patch from April 9.
24211 (named_section): Revert my patch from April 9.
24212 (function_section): Revert my patch from April 9.
24213 (current_function_section): Revert my patch from April 9.
24214 (assemble_start_function): Revert my patch from April 9.
24215 (assemble_end_function): Revert my patch from April 9.
24216 (default_section_type_flags_1): Revert my patch from April 9.
24218 2005-04-12 Eric Botcazou <ebotcazou@libertysurf.fr>
24220 * config/sparc/sparc.h (APPLY_RESULT_SIZE): Set to 24 in 64-bit mode.
24221 * config/sparc/sparc.md (untyped_call): Save the registers manually.
24223 * config/sparc/sparc.c (legitimate_address_p): Use TARGET_ARCH32.
24225 2005-04-12 Ulrich Weigand <uweigand@de.ibm.com>
24227 PR middle-end/20917
24228 * config/s390/s390.md ("*set_tp"): Use SET in pattern.
24229 ("set_tp_64", "set_tp_31"): Adapt expanded pattern.
24231 2004-04-12 Richard Henderson <rth@redhat.com>
24233 * config/i386/i386.md (UNSPEC_FIX, UNSPEC_MOVA, UNSPEC_SHUFFLE,
24234 UNSPEC_PSHUFLW, UNSPEC_PSHUFHW, UNSPEC_ADDSUB, UNSPEC_HADD,
24235 UNSPEC_HSUB, UNSPEC_MOVSHDUP, UNSPEC_MOVSLDUP, UNSPEC_MOVDDUP): Remove.
24236 (UNSPEC_*, UNSPECV_*): Renumber.
24238 2005-04-12 Frank Ch. Eigler <fche@redhat.com>
24241 From Richard Henderson <rth@redhat.com>:
24242 * tree-mudflap.c (mf_build_check_statement_for): Correct block
24245 2005-04-12 Dorit Naishlos <dorit@il.ibm.com>
24247 * tree-cfg.c (tree_verify_flow_info): Use LABEL_EXPR_LABEL.
24249 2005-04-12 Bernd Schmidt <bernd.schmidt@analog.com>
24251 * config/bfin/bfin.c (bfin_library_id_string): Remove.
24252 (bfin_library_id): New variable.
24253 (bfin_expand_prologue): Use bfin_library_id and bfin_lib_id_given
24254 instead of bfin_library_id_string.
24255 (bfin_handle_option): New function.
24256 (override_options): Remove most code to deal with shared library IDs,
24257 just check they aren't used without -mid-shared-library.
24258 (TARGET_HANDLE_OPTION): Define.
24259 * config/bfin/bfin.h (TARGET_OPTIONS): Delete macro.
24260 * config/bfin/bfin.opt (mshared-library-id=): New.
24262 2005-04-12 Kazu Hirata <kazu@cs.umass.edu>
24264 * tree-vect-transform.c: Fix comment typos.
24266 2005-04-12 Mostafa Hagog <mustafa@il.ibm.com>
24268 * postreload-gcse.c (eliminate_partially_redundant_load): Don't
24269 split critical edges when not possible/profitable.
24271 2005-04-12 Richard Sandiford <rsandifo@redhat.com>
24273 * config/ns32k/ns32k.h (target_flags, MASK_32081, MASK_RTD)
24274 (MASK_REGPARM, MASK_32532, MASK_32332, MASK_NO_SB, MASK_NO_BITFIELD)
24275 (MASK_HIMEM, MASK_32381, MASK_MULT_ADD, MASK_SRC, MASK_IEEE_COMPARE)
24276 (TARGET_32081, TARGET_32381, TARGET_MULT_ADD, TARGET_RTD)
24277 (TARGET_REGPARM, TARGET_32532, TARGET_32332, TARGET_SB, TARGET_HIMEM)
24278 (TARGET_BITFIELD, TARGET_IEEE_COMPARE, TARGET_SWITCHES): Delete.
24279 (OVERRIDE_OPTIONS): Clear MASK_SB instead of setting MASK_NO_SB.
24280 * config/ns32k/netbsd.h (TARGET_DEFAULT): Remove MASK_NO_SB and
24282 * config/ns32k/ns32k.c (ns32k_handle_option): New function.
24283 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
24284 * config/ns32k/ns32k.opt: New file.
24286 2005-04-12 Richard Sandiford <rsandifo@redhat.com>
24288 * config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.
24289 * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020)
24290 (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY)
24291 (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200)
24292 (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x)
24293 (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881)
24294 (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT)
24295 (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL)
24296 (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD)
24297 (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY)
24298 (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES)
24299 (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete.
24300 (MASK_COLDFIRE): Formatting fixes.
24301 (TARGET_COLDFIRE): Turn into a boolean value for consistency.
24302 * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete.
24303 * config/m68k/m68k.c (m68k_library_id_string): Initialize to
24304 "_current_shared_library_a5_offset_".
24305 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
24306 (MASK_ALL_CPU_BITS): New macro.
24307 (m68k_handle_option): New function.
24308 (override_options): Remove handling of m68k_library_id_string.
24309 * config/m68k/m68k.opt: New file.
24310 * config/m68k/ieee.opt: New file.
24312 2005-04-11 Mark Mitchell <mark@codesourcery.com>
24314 * target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
24315 (TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
24316 (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
24317 (TARGET_CXX): Adjust accordingly.
24318 * target.h (struct gcc_target): Remove epxort_class_data. Add
24319 determine_class_data_visibility and class_data_always_comdat.
24320 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
24321 (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
24322 (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
24323 * config/arm/arm.c (arm_cxx_export_class_data): Remove.
24324 (arm_cxx_determine_class_data_visibility): New.
24325 (arm_cxx_class_data_always_comdat): Likewise.
24326 (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
24327 (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
24328 (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
24329 * config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
24330 * config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
24333 2005-04-11 Devang Patel <dpatel@apple.com>
24335 * tree-data-ref.c (build_classic_dist_vector,
24336 compute_subscript_distance): Make externally visible.
24337 * tree-data-ref.h (build_classic_dist_vector,
24338 compute_subscript_distance): Same.
24339 * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
24340 Check distance vector against vectorization factor.
24341 (vect_analyze_loop): Determine vectorizaion factor before
24342 analyzing data dependences.
24343 * tree-vectorizer.c (loops_num): Make it externally visible and
24345 * tree-vectorizer.c (vect_loops_num): ... new name.
24346 * tree-vectorizer.h (vect_loops_num): New.
24348 2005-04-11 Devang Patel <dpatel@apple.com>
24350 * tree-vect-analyze.c (vect_analyze_operations): Check
24351 vectorizable codition.
24352 * tree-vect-transform.c (vect_is_simple_cond): New function.
24353 (vectorizable_condition): New function.
24354 (vect_transform_stmt): Handle condition_vec_info_type.
24355 * tree-vectorizer.h (enum stmt_vec_info_type): Add
24356 condition_vec_info_type.
24357 (vectorizable_condition): New.
24359 2005-04-11 Geoffrey Keating <geoffk@apple.com>
24361 * config/i386/i386.h (TARGET_FPMATH_DEFAULT): New.
24362 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT): New.
24363 * config/i386/i386.c (override_options): Use TARGET_FPMATH_DEFAULT.
24365 * config/i386/darwin.h (ASM_SPEC): Use -arch i386 not -arch i686.
24366 (SUBTARGET_EXTRA_SPECS): Always 'i386'.
24368 * dwarf2out.c (output_line_info): Don't try to dereference
24369 a NULL current_function_decl.
24371 * config/t-slibgcc-darwin: Don't put shared libraries in
24372 directories other than $(slibdir).
24373 * config/rs6000/darwin.h: Find -m64 libgcc under the name the
24376 2005-04-11 Diego Novillo <dnovillo@redhat.com>
24378 PR tree-optimization/20933
24379 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Move
24380 logic to reject aliases between read-only and writable
24382 (may_alias_p): ... here.
24383 (get_tmt_for): Do not associate read-only tags to pointers
24384 whose pointed-to type is not read-only.
24385 * tree-ssa.c (verify_ssa): Check that memory stores have at
24386 least one V_MAY_DEF or V_MUST_DEF.
24388 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24391 * configure.ac (gcc_UNLOCKED_FUNCS): New.
24392 (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
24393 * system.h (putchar, getc, getchar, clearerr, feof, fileno,
24394 fflush, fgetc, fgets, ferror, fread): Redefine to the associated
24395 _unlocked function.
24396 (fwrite_unlocked): Fix prototype.
24398 * configure, config.in: Regenerate.
24400 2005-04-11 David Edelsohn <edelsohn@gnu.org>
24402 * tree-ssa-loop-im.c: Include real.h.
24403 (determine_invariantness_stmt): If real division divisor is
24404 invariant and flag_unsafe_math_optimizations enabled, generate
24405 invariant reciprocal for hoisting.
24406 * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
24408 2005-04-11 Daniel Berlin <dberlin@dberlin.org>
24410 Fix PR tree-optimization/20926
24412 * tree-ssa-alias.c (add_type_alias): Handle subvars.
24414 2005-04-11 Devang Patel <dpatel@apple.com>
24416 * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
24419 2005-04-11 Andrew Pinski <pinskia@physics.uc.edu>
24421 * fold-const.c (fold_binary_op_with_conditional_arg):
24422 use fold_buildN instead of "fold (buildN" in some
24423 non obvious places.
24424 (fold_unary): Likewise.
24425 (fold_binary): Likewise.
24427 2005-04-11 Daniel Berlin <dberlin@dberlin.org>
24429 Fix PR tree-optimization/20612
24430 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
24432 (perfect_nestify): preheaderbb is *not* part of loop of the
24435 2005-04-11 Andrew Pinski <pinskia@physics.uc.edu>
24437 * tree-ssa-alias.c (may_alias_p): If the variable
24438 is a global variable and the pointer is parameter
24439 and -fargument-noalias-global is used, then
24440 the pointer cannot alias the variable.
24442 2005-04-11 James A. Morrison <phython@gcc.gnu.org>
24444 * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
24445 * config/sparc/sparc.h: Likewise.
24446 * config/sparc/sparc.md: Likewise.
24448 2005-04-11 Kazu Hirata <kazu@cs.umass.edu>
24450 * tree-vrp.c (maybe_add_assert_expr): Move a comment.
24452 * tree-vrp.c: Fix a comment typo.
24454 2005-04-11 Diego Novillo <dnovillo@redhat.com>
24456 PR tree-optimization/20920
24457 * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
24458 SSA_NAME flows through an abnormal edge.
24459 * tree-vrp.c (infer_value_range): Ignore SSA names that flow
24460 through abnormal edges.
24461 (maybe_add_assert_expr): Likewise.
24463 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
24465 * config/s390/s390.h (s390_tune_string, s390_arch_string)
24466 (s390_warn_framesize_string, s390_warn_dynamicstack_string)
24467 (s390_stack_size_string, s390_stack_guard_string, target_flags)
24468 (MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
24469 (MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
24470 (MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
24471 (TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
24472 (TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
24473 (TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
24474 (TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
24475 * config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
24476 (TARGET_HANDLE_OPTION): Likewise.
24477 (s390_tune): Initialize to PROCESSOR_max.
24478 (s390_arch_string): Make static.
24479 (s390_tune_string, s390_warn_framesize_string): Delete.
24480 (s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
24481 (s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
24482 (s390_handle_arch_option, s390_handle_option): New functions.
24483 (override_options): Remove parsing of option strings.
24484 * config/s390/s390.opt: New file.
24486 2005-04-11 Paolo Bonzini <bonzini@gnu.org>
24488 * tree-complex.c (expand_vector_operations): Call
24489 update_stmt_if_modified.
24491 2005-04-11 Paolo Bonzini <bonzini@gnu.org>
24493 * tree-vect-analyze (vect_determine_vectorization_factor):
24494 Do not use GET_MODE_NUNITS.
24495 * tree-vect-transform.c (vect_get_vec_def_for_operand,
24496 (vectorizable_load, vect_transform_loop): Likewise.
24498 2005-04-11 Uros Bizjak <uros@kss-loka.si>
24500 * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL)
24501 (BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
24502 * optabs.h (enum optab_index): Add new OTI_lceil.
24503 (lceil_optab): Define corresponding macro.
24504 * optabs.c (init_optabs): Initialize lceil_optab.
24505 * genopinit.c (optabs): Implement lceil_optab using lceilsi2
24506 and lceildi2 patterns.
24507 * builtins.c (expand_builtin_int_roundingfn): Handle
24508 BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
24509 (fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
24510 BUILT_IN_LLCEIL{,F,L}.
24511 (fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
24512 BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
24513 (mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
24514 (expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
24515 BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
24516 * convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
24517 into lceil built-in function and (long long int)ceil{,f,l} into
24518 llceil built-in function.
24519 * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
24522 2005-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24524 * pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
24527 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
24529 * config/arm/arm.c: Fix a comment typo.
24530 * doc/tree-ssa.texi: Fix a typo.
24532 2005-04-10 Steven Bosscher <stevenb@suse.de>
24534 * cselib.c (clear_table): Rename to cselib_clear_table.
24535 * cselib.h (cselib_clear_table): Add prototype.
24536 * gcse.c (gcse_main): Make 'f' argument unused.
24537 (alloc_gcse_mem): Do not walk the insn chain, walk the contents
24538 of each basic block instead.
24539 (compute_sets, compute_hash_table_work): Likewise.
24540 (constprop_register): Change int 'alter_jumps' argument to bool.
24541 (do_local_cprop): Likewise.
24542 (local_cprop_pass): Likewise. Also walk basic blocks instead of
24543 the insn chain. Explicitly clear the cselib tables after finishing
24544 one basic block. Make sure there are no unterminated libcall blocks.
24545 Update compute_sets call.
24546 (cprop): Walk basic blocks instead of the insn chain.
24547 (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
24549 (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
24550 one_cprop_pass calls.
24552 2005-04-10 Richard Sandiford <rsandifo@redhat.com>
24554 * combine.c (combine_simplify_rtx): Remove a transformation that
24555 relies on an invalid assumption about rtl sign-extension semantics.
24557 2005-04-10 Richard Sandiford <rsandifo@redhat.com>
24559 * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
24560 to build_int_cst_wide.
24562 2005-04-09 Alexandre Oliva <aoliva@redhat.com>
24565 * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
24566 set the original address pseudo to the correct value before the
24567 original insn, if possible, and leave the insn alone, otherwise
24568 create a new pseudo, set it and replace it in the insn.
24569 * recog.c (validate_change_maybe_volatile): New.
24570 * recog.h (validate_change_maybe_volatile): Declare.
24572 2005-04-09 Caroline Tice <ctice@apple.com>
24574 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
24575 Remove targetm.have_named_sections test.
24576 (fix_edges_for_rarely_executed_code): Likewise.
24577 (insert_section_boundary_note): Likewise.
24578 (reorder_basic_blocks): Check partitioning flag before calling
24579 verify_hot_cold_block_grouping.
24580 * dbxout.c (dbxout_function_end): Get hot/cold section labels from
24581 the function struct rather than global variables.
24582 * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
24583 (COLD_END_LABEL): Likewise
24584 (cold_text_section_label): New static global variable.
24585 (cold_end_label): Likewise.
24586 (dwarf2out_switch_text_section): Get hot/cold section labels from
24587 the function struct rather than global variables.
24588 (output_aranges): Use cold_text_section_label and cold_end_label;
24589 check partitioning flag before putting out delta.
24590 (output_ranges): Remove incorrect code attempting to use
24592 (output_line_info): Get cold section label from function struct.
24593 (add_location_or_const_value_attribute): Likewise.
24594 (get_subprogram_die): Get hot/cold section labels from function struct.
24595 (dwarf2out_var_location): Likewise.
24596 (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
24597 write out cold_text_section_label if partition flag is set.
24598 (dwarf2out_finish): Write out cold_end_label if partition flag is set;
24599 * function.h (struct function): Add new fields to point to hot/cold
24600 section labels: hot_section_label, cold_section_label,
24601 hot_section_end_label and cold_section_end_label; also add new field
24602 for cold text section name, unlikely_text_section_name.
24603 * opts.c (decode_options): Turn off partitioning flag if
24604 !targetm.have_named_sections.
24605 * output.h (hot_section_label): Remove.
24606 (hot_section_end_label): Remove.
24607 (cold_section_end_label): Remove.
24608 (unlikely_section_label): Remove.
24609 (unlikely_text_section_name): Remove.
24610 * passes.c (rest_of_handle_final): Remove code that frees
24611 unlikely_text_section_name.
24612 * varasm.c (unlikely_section_label): Remove.
24613 (hot_section_label): Remove.
24614 (hot_section_end_label): Remove.
24615 (cold_section_end_label): Remove.
24616 (unlikely_text_section_name): Remove.
24617 (initialize_cold_section_name): Modify to call
24618 targetm.strip_name_encoding; to store cold section name in current
24619 function struct, if it exists; and to only use the decl_section_name
24620 if flag_named_sections is true.
24621 (unlikely_text_section): Modify to get section name out of current
24622 function struct, if there is one; otherwise build it from
24623 UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
24624 (in_unlikely_text_section): Likewise.
24625 (named_section): Modify to get/put cold section name in current function
24626 struct, if there is one.
24627 (function_section): Change 'bool unlikely' to 'int reloc'; check
24628 targetm.have_named_sections before calling named_section.
24629 (current_function_section): Likewise.
24630 (assemble_start_function): Modify to get/put unlikely_text_section_name
24631 in current function struct; modify to get hot/cold section labels
24632 from function struct; initialize labels using
24633 ASM_GENERATE_INTERNAL_LABEL;
24634 test partitioning flag before writing out hot section label.
24635 (assemble_end_function): Test partitioning flag before writing out
24636 hot/cold section labels.
24637 (default_section_type_flags_1): Modify to use array instead of
24638 char* for unlikely_text_section_name; set flags correctly for
24639 cold text section if there is not a current function decl.
24641 2005-04-09 Jakub Jelinek <jakub@redhat.com>
24643 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
24644 and TI_VA_LIST_FPR_COUNTER_FIELD.
24645 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
24646 * tree-pass.h (pass_stdarg): Add.
24647 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
24648 * tree-stdarg.c: New file.
24649 * tree-stdarg.h: New file.
24650 * Makefile.in (OBJS-common): Add tree-stdarg.o.
24651 (tree-stdarg.o): Add dependencies.
24652 * function.h (struct function): Add va_list_gpr_size and
24653 va_list_fpr_size fields.
24654 * function.c (allocate_struct_function): Initialize them.
24655 * target.h (struct gcc_target): Add stdarg_optimize_hook.
24656 * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
24657 (TARGET_INITIALIZER): Add it.
24659 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
24660 va_list_{g,f}pr_counter_field.
24661 (ix86_setup_incoming_varargs): Don't do anything if reg_save
24662 area will not be used. Only save registers that tree-stdarg.c
24663 detected they need saving.
24664 (ix86_va_start): Don't set up fields that won't be used.
24666 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
24667 va_list_{g,f}pr_counter_field.
24668 (setup_incoming_varargs): Don't do anything if reg_save
24669 area will not be used. Only save registers that tree-stdarg.c
24670 detected they need saving.
24671 (rs6000_va_start): Don't set up fields that won't be used.
24673 * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
24674 (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
24675 (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
24676 (TARGET_STDARG_OPTIMIZE_HOOK): Define.
24678 2005-04-09 Jakub Jelinek <jakub@redhat.com>
24681 * config/i386/i386.c (construct_container): Pass empty aligned
24682 struct, union or class in memory.
24684 2005-04-09 Kazu Hirata <kazu@cs.umass.edu>
24686 * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
24687 tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
24688 config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
24689 config/rs6000/predicates.md: Fix comment typos.
24691 * sched-int.h (haifa_insn_data): Remove blockage and units.
24692 (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
24693 ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
24694 MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
24696 2005-04-09 Jan Hubicka <jh@suse.cz>
24697 Steven Bosscher <stevenb@suse.de>
24699 * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
24700 * cfgloop.c (get_loop_exit_edges): Likewise.
24701 * cfgloopmanip.c (fix_irreducible_loops): Likewise.
24702 (unloop): Likewise.
24703 * loop-unroll.c (analyze_insns_in_loop): Likewise.
24704 * tree-cfg.c (dump_cfg_status): Likewise.
24706 2005-04-09 David Edelsohn <edelsohn@gnu.org>
24708 * config/rs6000/predicates.md (altivec_register_operand): Remove
24709 redundant match_code test.
24710 (gpc_reg_operand): Same.
24711 (cc_reg_operand): Same.
24712 (cc_reg_not_cr0_operand): Same.
24714 2005-04-09 Jan Hubicka <jh@suse.cz>
24716 Forgotten hunk from my last merge patch:
24717 * final.c (output_addr_const): Do not call mark_referenced.
24719 2005-04-09 Andrew MacLeod <amacleod@redhat.com>
24721 * doc/tree-ssa.texi: Add immediate use documentation.
24723 2005-04-09 Richard Earnshaw <richard.earnshaw@arm.com>
24725 * arm.c (FL_WBUF): Define.
24726 (arm_tune_strongarm): Renamed from arm_is_strong. All uses changed.
24727 (arm_is_6_or_7): Delete.
24728 (arm_tune_wbuf): New.
24729 (arm_override_options): Set arm_tune_wbuf.
24730 * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
24731 (arm_is_6_or_7): Delete declaration.
24732 (arm_tune_wbuf): New declartion.
24733 * arm.md (is_strongarm): Derive from arm_tune_strongarm.
24734 (model_wbuf): Derive from arm_tune_wbuf.
24735 * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
24736 (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
24737 (arm740t): Mark CPUs as having a write buffer.
24739 2005-04-09 Uros Bizjak <uros@kss-loka.si>
24741 * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
24742 of 'const_double_operand' in operand 2 constraints. Update enable
24745 2005-04-09 Uros Bizjak <uros@kss-loka.si>
24747 * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
24748 (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
24749 * optabs.h (enum optab_index): Add new OTI_lfloor.
24750 (lfloor_optab): Define corresponding macro.
24751 * optabs.c (init_optabs): Initialize lfloor_optab.
24752 * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
24753 and lfloordi2 patterns.
24754 * builtins.c (expand_builtin_int_roundingfn): New prototype.
24755 (expand_builtin_int_roundingfn): New function.
24756 (fold_builtin_int_roundingfn): New prototype.
24757 (fold_builtin_int_roundingfn): New function, renamed from
24758 fold_builtin_lround.
24759 Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
24760 BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
24761 (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
24762 BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
24763 (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
24764 (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
24765 BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
24766 * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
24767 into lfloor built-in function and (long long int)floor{,f,l} into
24768 llfloor built-in function.
24769 * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
24772 2005-04-08 Ian Lance Taylor <ian@airs.com>
24774 * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
24775 CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
24776 * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
24777 (DO_COND, DO_BODY): Likewise.
24778 (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
24779 (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
24780 (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
24781 BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
24782 (build_continue_stmt, build_break_stmt): Don't declare.
24783 (c_do_switch_warnings): Update declaration.
24784 * c-gimplify.c (enum bc_t): Remove.
24785 (struct c_gimplify_ctx, ctxp): Remove.
24786 (push_context, pop_context): Remove static functions.
24787 (c_genericize): Don't call push_context or pop_context.
24788 (begin_bc_block, finish_bc_block): Remove static functions.
24789 (build_bc_goto): Likewise.
24790 (gimplify_c_loop): Likewise.
24791 (gimplify_for_stmt, gimplify_while_stmt): Likewise.
24792 (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
24793 (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
24794 DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
24795 * c-common.c (c_do_switch_warnings): Rename from
24796 c_do_switch_warnings_1.
24797 (c_do_switch_warnings) [old version]: Remove.
24798 (c_do_switch_expr_warnings): Remove.
24799 * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
24800 function instead of c_do_switch_expr_warnings.
24801 * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
24802 CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
24803 * c-pretty-print.c (pp_c_statement): Likewise.
24804 * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
24806 2005-04-08 Devang Patel <dpatel@apple.com>
24808 * tree-if-conv.c (find_phi_replacement_condition): New parameter, loop.
24809 While selecting replacement condition pay attention to loop header.
24811 2005-04-08 Diego Novillo <dnovillo@redhat.com>
24813 Merge from tree-cleanup-branch: VRP, store CCP, store
24814 copy-prop, incremental SSA updating of FUD chains and
24815 newly exposed symbols.
24817 * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
24818 (OBJS-common): Add tree-vrp.o.
24819 (tree-vrp.o): New rule.
24820 * basic-block.h (nearest_common_dominator_for_set): Declare.
24821 * common.opt (ftree-store-ccp): New flag.
24822 (ftree-copy-prop): New flag.
24823 (ftree-vrp): New flag.
24824 (ftree-store-copy-prop): New flag.
24825 * dominance.c (nearest_common_dominator_for_set): New.
24826 * domwalk.c (walk_dominator_tree): Only traverse
24827 statements in blocks marked in walk_data->interesting_blocks.
24828 * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
24829 * fold-const.c (fold): Handle ASSERT_EXPR.
24830 * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
24831 Set flag_tree_store_ccp, flag_tree_store_copy_prop and
24832 flag_tree_vrp at -O2.
24833 * timevar.def (TV_TREE_VRP): Define.
24834 (TV_TREE_COPY_PROP): Define.
24835 (TV_TREE_STORE_COPY_PROP): Define.
24836 (TV_TREE_SSA_INCREMENTAL): Define.
24837 (TV_TREE_STORE_CCP): Define.
24838 * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
24839 to kill_redundant_phi_nodes from comment.
24840 (verify_expr): Handle ASSERT_EXPR.
24841 * tree-dfa.c (mark_new_vars_to_rename): Remove second
24842 argument. Update all users.
24843 (mark_call_clobbered_vars_to_rename): Remove. Update all
24845 * tree-flow-inline.h (unmodifiable_var_p): New.
24846 * tree-flow.h (enum value_range_type): Declare.
24847 (struct value_range_def): Declare.
24848 (value_range): Declare.
24849 (remove_all_phi_nodes_for): Remove. Update all users.
24850 (find_phi_node_for): Declare.
24851 (add_type_alias): Declare.
24852 (count_uses_and_derefs): Declare.
24853 (kill_redundant_phi_nodes): Remove.
24854 (rewrite_into_ssa): Remove.
24855 (rewrite_def_def_chains): Remove.
24856 (update_ssa, register_new_name_mapping, create_new_def_for,
24857 need_ssa_update_p, name_registered_for_update_p,
24858 release_ssa_name_after_update_ssa, dump_repl_tbl,
24859 debug_repl_tbl, dump_names_replaced_by,
24860 debug_names_replaced_by, mark_sym_for_renaming,
24861 mark_set_for_renaming, get_current_def, set_current_def,
24862 get_value_range, dump_value_range, debug_value_range,
24863 dump_all_value_ranges, debug_all_value_ranges,
24864 expr_computes_nonzero, loop_depth_of_name,
24865 unmodifiable_var_p): Declare.
24866 * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
24868 * tree-into-ssa.c (block_defs_stack): Update comment.
24869 (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
24870 syms_to_rename, names_to_release, repl_tbl,
24871 need_to_initialize_update_ssa_p, need_to_update_vops_p,
24872 need_to_replace_names_p): New locals.
24873 (NAME_SETS_GROWTH_FACTOR): Define.
24874 (struct repl_map_d): Declare.
24875 (struct mark_def_sites_global_data): Add field
24876 interesting_blocks.
24877 (enum rewrite_mode): Declare.
24878 (REGISTER_DEFS_IN_THIS_STMT): Define.
24879 (compute_global_livein): Use last_basic_block instead of
24881 (set_def_block): Remove last argument. Update all callers.
24882 (prepare_use_operand_for_rename): Remove. Update all callers.
24883 (prepare_def_operand_for_rename): Remove. Update all callers.
24884 (symbol_marked_for_renaming): New.
24885 (is_old_name): New.
24886 (is_new_name): New.
24887 (repl_map_hash): New.
24888 (repl_map_eq): New.
24889 (repl_map_free): New.
24890 (names_replaced_by): New.
24891 (add_to_repl_tbl): New.
24892 (add_new_name_mapping): New.
24893 (mark_def_sites): Assume that all the operands in the
24894 statement are in normal form.
24895 (find_idf): Assert that the block in the stack is valid.
24896 (get_default_def_for): New.
24897 (insert_phi_nodes_for): Add new argument 'update_p'.
24899 If update_p is true, add a new mapping between the LHS of
24900 each new PHI and the name that it replaces.
24901 (insert_phi_nodes_1): Only call find_idf if needed.
24902 (get_reaching_def): Call get_default_def_for.
24903 (rewrite_operand): Remove.
24904 (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
24905 and REWRITE_THIS_STMT are false.
24906 Assume that all the operands in the statement are in
24908 (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
24909 (rewrite_virtual_phi_arguments): Remove.
24910 (invalidate_name_tags): Remove.
24911 (register_new_update_single, register_new_update_set,
24912 rewrite_update_init_block, replace_use,
24913 rewrite_update_fini_block, rewrite_update_stmt,
24914 rewrite_update_phi_arguments): New.
24915 rewrite_blocks): Remove argument 'fix_virtual_phis'.
24916 Add arguments 'entry', 'what' and 'blocks'.
24917 Initialize the dominator walker according to 'what' and
24919 Start the dominator walk at 'entry'.
24920 (mark_def_site_blocks): Add argument 'interesting_blocks'.
24921 Use it to configure the dominator walker.
24922 (rewrite_into_ssa): Remove argument 'all'.
24924 (rewrite_all_into_ssa): Remove.
24925 (rewrite_def_def_chains): Remove.
24926 (mark_def_interesting, mark_use_interesting,
24927 prepare_phi_args_for_update, prepare_block_for_update,
24928 prepare_def_site_for, prepare_def_sites,
24929 dump_names_replaced_by, debug_names_replaced_by,
24930 dump_repl_tbl, debug_repl_tbl, init_update_ssa,
24931 delete_update_ssa, create_new_def_for,
24932 register_new_name_mapping, mark_sym_for_renaming,
24933 mark_set_for_renaming, need_ssa_update_p,
24934 name_registered_for_update_p, ssa_names_to_replace,
24935 release_ssa_name_after_update_ssa,
24936 insert_updated_phi_nodes_for, update_ssa): New.
24937 * tree-loop-linear.c (linear_transform_loops): Call
24938 update_ssa instead of rewrite_into_ssa.
24939 * tree-optimize.c (vars_to_rename): Remove.
24941 (init_tree_optimization_passes): Replace
24942 pass_redundant_phi with pass_copy_prop.
24944 Replace pass_ccp with pass_store_ccp.
24945 Add pass_store_copy_prop after pass_store_ccp.
24946 (execute_todo): If the TODO_ flags don't include updating
24947 the SSA form, assert that it does not need to be updated.
24948 Call update_ssa instead of rewrite_into_ssa and
24949 rewrite_def_def_chains.
24950 If TODO_verify_loops is set, call verify_loop_closed_ssa.
24951 (tree_rest_of_compilation):
24952 * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
24953 TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
24954 TODO_cleanup_cfg): Renumber.
24955 (TODO_verify_loops, TODO_update_ssa,
24956 TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
24957 TODO_update_ssa_only_virtuals): Define.
24958 (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
24960 * tree-phinodes.c (make_phi_node): Update documentation.
24961 (remove_all_phi_nodes_for): Remove.
24962 (find_phi_node_for): New.
24963 * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
24964 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
24965 (interpret_rhs_modify_expr): Likewise.
24966 * tree-sra.c (decide_instantiations): Mark all symbols in
24967 SRA_CANDIDATES for renaming.
24968 (mark_all_v_defs_1): Rename from mark_all_v_defs.
24969 (mark_all_v_defs): New function. Update all users to call it
24970 with the whole list of scalarized statements, not just the
24972 * tree-ssa-alias.c (count_ptr_derefs): Make extern.
24973 (compute_flow_insensitive_aliasing): If the tag is
24974 unmodifiable and the variable isn't or vice-versa, don't
24975 make them alias of each other.
24976 (setup_pointers_and_addressables): If the type tag for
24977 VAR is about to change, mark the old one for renaming.
24978 (add_type_alias): New.
24979 * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
24980 (ccp_lattice_t): Rename from latticevalue.
24981 (value): Remove. Update all users.
24982 (const_val): New local variable.
24983 (do_store_ccp): New local variable.
24984 (dump_lattice_value): Handle UNINITIALIZED.
24985 (debug_lattice_value): New.
24986 (get_default_value): Re-write.
24987 (set_lattice_value): Re-write.
24988 (def_to_varying): Remove. Update all users.
24989 (likely_value): Return VARYING for statements that make
24990 stores when STORE_CCP is false.
24991 Return VARYING for any statement other than MODIFY_EXPR,
24992 COND_EXPR and SWITCH_EXPR.
24993 (ccp_initialize): Re-write.
24994 (replace_uses_in, replace_vuse_in, substitute_and_fold):
24995 Move to tree-ssa-propagate.c.
24996 (ccp_lattice_meet): Handle memory stores when
24997 DO_STORE_CCP is true.
24998 (ccp_visit_phi_node): Likewise.
24999 (ccp_fold): Likewise.
25000 (evaluate_stmt): Likewise.
25001 (visit_assignment): Likewise.
25002 (ccp_visit_stmt): Likewise.
25003 (execute_ssa_ccp): Add argument 'store_ccp'. Copy it
25006 (pass_ccp): Use it.
25007 (do_ssa_store_ccp): New.
25008 (gate_store_ccp): New.
25009 (pass_store_ccp): Declare.
25010 * tree-ssa-copy.c: Include tree-ssa-propagate.h.
25011 (may_propagate_copy): Reformat.
25012 Don't abort if ORIG is a virtual and DEST isn't.
25013 If NEW does not have alias information but DEST does,
25015 (copy_of, cached_last_copy_of, do_store_copy_prop, enum
25016 copy_prop_kind, which_copy_prop): Declare.
25017 (stmt_may_generate_copy, get_copy_of_val,
25018 get_last_copy_of, set_copy_of_val, dump_copy_of,
25019 copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
25020 copy_prop_visit_stmt, copy_prop_visit_phi_node,
25021 init_copy_prop, fini_copy_prop, execute_copy_prop,
25022 gate_copy_prop, do_copy_prop, gate_store_copy_prop,
25023 store_copy_prop): New.
25024 (pass_copy_prop, pass_store_copy_prop): Declare.
25025 * tree-ssa-dom.c (struct opt_stats_d): Add fields
25026 'num_const_prop' and 'num_copy_prop'.
25027 (cprop_operand): Update them.
25028 (dump_dominator_optimization_stats): Dump them.
25029 (tree_ssa_dominator_optimize): Call update_ssa instead of
25031 (loop_depth_of_name): Declare extern.
25032 (simplify_cond_and_lookup_avail_expr): Guard against NULL
25033 values for LOW or HIGH.
25034 (cprop_into_successor_phis): Only propagate if NEW != ORIG.
25035 (record_equivalences_from_stmt): Call expr_computes_nonzero.
25036 (cprop_operand): Only propagate if VAL != OP.
25037 * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
25038 statement for renaming.
25039 * tree-ssa-loop-im.c (move_computations): Call update_ssa.
25040 * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
25041 add_type_alias if necessary.
25042 Call mark_new_vars_to_rename.
25043 (tree_ssa_iv_optimize): If new symbols need to be renamed,
25044 mark every statement updated, call update_ssa and
25045 rewrite_into_loop_closed_ssa.
25046 * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
25047 from LIVEIN if VAR is a virtual.
25048 * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
25049 * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
25050 (get_call_expr_operands): Reformat statement.
25051 (add_stmt_operand): Don't create V_MAY_DEFs for read-only
25053 * tree-ssa-propagate.c (ssa_prop_init): Initialize
25054 SSA_NAME_VALUE for every name.
25055 (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
25056 get_value_loaded_by): New.
25057 (replace_uses_in, replace_vuses_in, replace_phi_args_in,
25058 substitute_and_fold): Move from tree-ssa-ccp.c.
25059 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
25060 first_vdef, stmt_makes_single_load, stmt_makes_single_store,
25061 get_value_loaded_by, replace_uses_in, substitute_and_fold):
25063 * tree-ssa.c (verify_use): Fix error message.
25064 (propagate_into_addr, replace_immediate_uses, get_eq_name,
25065 check_phi_redundancy, kill_redundant_phi_nodes,
25066 pass_redundant_phi): Remove. Update all users.
25067 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
25068 add_type_alias, if necessary.
25069 * tree-vectorizer.h (struct _stmt_vect_info): Update
25070 documentation for field 'memtag'.
25071 * tree-vrp.c: New file.
25072 * tree.def (ASSERT_EXPR): Define.
25073 * tree.h (ASSERT_EXPR_VAR): Define.
25074 (ASSERT_EXPR_COND): Define.
25075 (SSA_NAME_VALUE_RANGE): Define.
25076 (struct tree_ssa_name): Add field 'value_range'.
25077 (PHI_REWRITTEN): Remove.
25078 (struct tree_phi_node): Remove field 'rewritten'.
25079 * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
25080 -ftree-store-copy-prop): Document.
25081 * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
25082 Document usage of update_ssa.
25084 2005-04-08 David Edelsohn <edelsohn@gnu.org>
25087 * config/rs6000/predicates.md (altivec_register_operand): Accept
25089 (and64_operand): Do not limit CONST_INT to mask64_operand.
25090 (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
25091 (and_operand): Do not limit CONST_INT to mask_operand.
25093 2005-04-09 Hans-Peter Nilsson <hp@axis.com>
25095 PR rtl-optimization/20466
25096 * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
25097 for overlap of the address of each list member.
25098 (mark_set_1): Call invalidate_mems_from_set for MEMs too.
25100 2005-04-08 Mike Stump <mrs@apple.com>
25102 * config/darwin.c (indirect_data): Fix typo in strncmp logic.
25104 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
25107 2005-04-08 Kazu Hirata <kazu@cs.umass.edu>
25109 * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
25111 * function.c (push_function_context_to): Don't set
25112 contains_functions.
25113 * function.h (function): Remove contains_functions.
25114 (current_function_contains_functions): Remove.
25116 * function.h (function): Remove instrument_entry_exit.
25117 (current_function_instrument_entry_exit): Remove.
25119 * function.h (nonlocal_labels): Remove.
25121 * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
25123 * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
25124 (check_attr_value, write_attr_get, write_expr_attr_cache,
25125 find_attr, make_internal_attr): Don't reference negative_ok or
25127 * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
25128 ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
25129 (ATTR_STATIC): Adjust the value.
25131 * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
25133 2005-04-08 Ulrich Weigand <uweigand@de.ibm.com>
25135 * config/s390/tpf.h (ASM_SPEC): Define.
25137 2005-04-08 Kazu Hirata <kazu@cs.umass.edu>
25139 * tree-flow.h: Remove the prototype for
25140 redirect_immediate_uses.
25141 (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
25143 2005-04-08 Richard Earnshaw <richard.earnshaw@arm.com>
25145 * arm.c (arm_const_double_by_parts): New function.
25146 * arm-protos.h (arm_const_double_by_parts): Add prototype.
25147 * arm.md (define_split for 64-bit constants): Add another one.
25149 2005-04-08 Andrew MacLeod <amacleod@redhat.com>
25151 * tree-ssa-operands.c (correct_use_link): Remove linear scan.
25153 2005-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25155 * system.h: Revert last change.
25157 2005-04-08 Richard Sandiford <rsandifo@redhat.com>
25159 * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
25160 (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
25161 (TARGET_SWITCHES): Delete.
25162 * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
25163 * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
25164 TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
25165 * config/xtensa/xtensa.opt: New file.
25167 2005-04-08 Ben Elliston <bje@au.ibm.com>
25169 * config/fp-bit.c: Include L_mul_tf in #endif comment.
25170 * config/fp-bit.h: Tidy comments.
25172 2005-04-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25174 * system.h: Poison PARAMS.
25176 2005-04-07 Richard Sandiford <rsandifo@redhat.com>
25178 * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
25179 (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
25180 (TARGET_SWITCHES): Delete.
25181 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
25182 * config/vax/vax.opt: New file.
25184 2005-04-07 Daniel Berlin <dberlin@dberlin.org>
25186 * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
25188 2005-04-07 Ian Lance Taylor <ian@airs.com>
25190 * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
25192 * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
25193 * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
25196 2005-04-07 Kazu Hirata <kazu@cs.umass.edu>
25198 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
25199 all immediate uses in PHI nodes.
25201 2005-04-07 Richard Earnshaw <richard.earnshaw@arm.com>
25203 * arm.c (arm_const_double_inline_cost): Handle any constant by
25204 using gen_lowpart and gen_highpart_mode.
25205 (note_invalid_constants): All constants in an RTX with a constraint
25206 that permits memory are now pushed to the constant pool.
25207 (output_move_double): Delete code to handle reg to reg and
25208 constant to reg moves.
25209 (const_double_needs_minipool, output_mov_immediate): Delete.
25210 * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
25211 CONST_INT and CONST_VECTOR.
25212 * arm.md (ANY64): New mode macro.
25213 (arm_movdi): Split reg-reg and const-reg moves. Simplify constraints.
25214 (movdf_soft_insn): Split reg-reg and const-reg moves.
25215 (split patterns for 64-bit constant and register moves): New.
25216 * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
25217 (cirrus_movdf_hard_insn): Likewise.
25218 * fpa.md (movdf_fpa): Likewise.
25219 * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
25220 (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
25222 (movv2si_internal_2): Likewise.
25223 * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
25224 (movdf_vfp): Likewise.
25225 * arm-protos.h (output_mov_immediate): Delete prototype.
25227 2005-04-07 Joseph S. Myers <joseph@codesourcery.com>
25230 * simplify-rtx.c (simplify_unary_operation_1): Check
25231 SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
25233 2005-04-06 James E Wilson <wilson@specifixinc.com>
25236 * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
25239 2004-04-06 Richard Sandiford <rsandifo@redhat.com>
25241 * coverage.h (GCOV_TYPE_NODE): Delete.
25242 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
25243 (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
25244 * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
25245 (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
25246 * value-prof.c (tree_divmod_fixed_value_transform): Delete.
25248 2004-04-06 Richard Sandiford <rsandifo@redhat.com>
25251 * Makefile.in (gcc.pot): Remove options.c dependency.
25252 * optc-gen.awk: Don't quote help strings with N_().
25254 2005-04-06 James A. Morrison <phython@gcc.gnu.org>
25256 * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
25257 the function returns a pointer type.
25259 2005-04-06 Daniel Berlin <dberlin@dberlin.org>
25261 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
25262 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
25263 * doc/invoke.texi: Documnet salias-max-implicit-fields.
25264 * tree-ssa-alias.c (struct used_part): Add implicit_uses and
25265 explicit_uses members.
25266 (get_or_create_used_part_for): Initialize new fields.
25267 (fieldoff_compare): New function.
25268 (create_overlap_variables_for): Count number of fields, use
25269 heuristic to determine whether to create subvars for vars with
25270 only implicit uses.
25271 Sort the field list by offset and avoid creating duplicate SFT's.
25273 2005-04-06 Richard Sandiford <rsandifo@redhat.com>
25275 * c.opt (-F): Remove trailing whitespace from help string.
25276 (-finput-charset): Use a tab to separate the switch name and help
25278 * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
25279 (-ftree-vectorizer-verbose): Likewise.
25281 2005-04-06 Kazu Hirata <kazu@cs.umass.edu>
25283 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
25284 a PHI argument where a use occurs instead of all PHI arguments.
25286 2005-04-06 Joseph S. Myers <joseph@codesourcery.com>
25288 * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
25291 2005-04-06 Kazu Hirata <kazu@cs.umass.edu>
25293 * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
25294 tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
25295 config/bfin/bfin.h: Fix comment typos.
25297 2005-04-06 Ranjit Mathew <rmathew@hotmail.com>
25299 * doc/install.texi: Update the URL for Jacks.
25300 * doc/sourcebuild.texi: Likewise.
25302 2005-04-06 Eric Botcazou <ebotcazou@libertysurf.fr>
25305 * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
25306 Revert 2004-10-08 patch. Reject TFmode LO_SUM in 32-bit mode.
25308 2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
25310 * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
25312 2005-04-06 Richard Sandiford <rsandifo@redhat.com>
25314 * config/v850/v850-protos.h (override_options): Delete.
25315 * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
25316 (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
25317 (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
25318 (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
25319 (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
25320 (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
25321 (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
25322 (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
25323 (OVERRIDE_OPTIONS): Delete.
25324 (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
25325 (small_memory_info): Remove the value field.
25326 (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
25327 TARGET_NO_APP_REGS.
25328 * config/v850/v850.c (small_memory): Remove the value field.
25329 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
25330 (override_options): Delete.
25331 (v850_handle_memory_option, v850_handle_option): New functions.
25332 * config/v850/v850.opt: New file.
25334 2005-04-06 Geoffrey Keating <geoffk@apple.com>
25336 * config.host: Add a section for generic hosts, and a subsection
25337 for Darwin. Add a case for x86-darwin. Update ppc-darwin case.
25338 * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
25339 * config/host-darwin.h: New.
25340 * config/x-darwin: New.
25341 * config/i386/host-i386-darwin.c: New.
25342 * config/i386/x-darwin: New.
25343 * config/rs6000/host-darwin.c: Include host-darwin.h.
25344 (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
25345 (darwin_rs6000_gt_pch_use_address): Likewise.
25346 * config/rs6000/x-darwin: Change name of .o built, update
25347 dependencies for changes to rs6000/host-darwin.c.
25349 2005-04-06 Ralf Corsepius <ralf.corsepius@rtems.org>
25352 * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
25354 2005-04-06 Dorit Naishlos <dorit@il.ibm.com>
25356 * tree-vect-analyze.c (vect_analyze_loop_form): Call
25357 split_loop_exit_edge instead of loop_split_edge_with.
25359 2005-04-06 Paolo Bonzini <bonzini@gnu.org>
25361 * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
25362 UNSPEC_SET_VSCR): New constants, used throughout.
25363 (*andc3_v4sf): New.
25364 (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
25366 (altivec_vspltis<VI_char>): ... this pattern, using
25367 a QImode const_int_operand for the immediate.
25368 (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
25371 2005-04-06 Ralf Corsepius <ralf.corsepius@rtems.org>
25374 * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
25376 2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
25378 * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
25380 2005-04-06 Ben Elliston <bje@au.ibm.com>
25382 * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
25383 DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
25384 macros as living in "this file" and not gcc.h.
25386 2005-04-06 Ben Elliston <bje@au.ibm.com>
25388 * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
25389 -ftree-live_range_split. Perhaps renamed at some point?
25391 2005-04-06 Zdenek Dvorak <dvorakz@suse.cz>
25394 * tree-ssa-loop-ivopts.c (generic_type_for): New function.
25395 (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
25397 2005-04-06 Zdenek Dvorak <dvorakz@suse.cz>
25399 * tree-flow.h (number_of_iterations_cond): Declaration removed.
25400 * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
25401 (number_of_iterations_special): New function.
25402 (number_of_iterations_exit): Use number_of_iterations_special.
25403 Use simplify_using_outer_evolutions only at -O3.
25404 (number_of_iterations_cond, tree_simplify_using_condition,
25405 simplify_using_initial_conditions, loop_niter_by_eval,
25406 compare_trees, can_count_iv_in_wider_type_bound,
25407 simplify_using_outer_evolutions): Use fold_build.
25409 2005-04-05 Thomas Fitzsimmons <fitzsim@redhat.com>
25411 * doc/install.texi (Configuration): Document --with-java-home.
25413 2005-04-05 Richard Henderson <rth@redhat.com>
25417 * config/i386/i386.c (print_operand): Handle vector zeros.
25418 (ix86_split_to_parts): Handle CONST_VECTOR.
25419 (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
25420 (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
25421 what modes to tie for MMX and SSE registers.
25422 * config/i386/i386.h (MMX_REG_MODE_P): Remove.
25423 * config/i386/i386.md: Extend move 0 -> xor peephole to apply
25424 to vector modes as well.
25425 * config/i386/predicates.md (const0_operand): Handle VOIDmode
25426 properly as an input mode.
25428 2005-04-05 Andrew MacLeod <amacleod@redhat.com>
25430 * tree-ssa-operands.c (verify_abort): Use %p for pointers.
25432 2005-04-05 Andrew MacLeod <amacleod@redhat.com>
25434 * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
25436 2005-04-05 Jakub Jelinek <jakub@redhat.com>
25438 * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
25439 and local functions, set sse_nregs to 8 and float_in_sse.
25440 (function_arg_advance, function_arg): If float_in_sse, pass
25441 SFmode and DFmode arguments in SSE registers.
25442 * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
25444 * config/i386/i386.c (ix86_value_regno): Only optimize local functions
25445 of -funit-at-a-time.
25447 2005-04-05 Paolo Bonzini <bonzini@gnu.org>
25449 * config/i386/i386-protos.h (ix86_function_value): Accept two
25450 arguments, like the target macro.
25451 * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
25452 * config/i386/i386.c (ix86_function_value): Accept the second
25453 argument of the target macro.
25454 (ix86_function_ok_for_sibcall): Pass a function pointer to
25455 ix86_function_value.
25456 (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
25457 call to ix86_value_regno).
25458 (ix86_value_regno): Add support for returning floating point values
25461 2005-04-05 Jakub Jelinek <jakub@redhat.com>
25463 PR tree-optimization/20076
25464 * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
25465 that call __builtin_return or __builtin_apply_args.
25467 2005-04-05 Andrew MacLeod <amacleod@redhat.com>
25469 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
25470 Use immediate use iterator.
25471 (stmt_is_bumper_for_loop): Use immediate use iterator.
25472 * predict.c (strip_builtin_expect): Use update_stmt.
25473 * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
25474 on all elements of a STATEMENT_LIST.
25475 (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
25476 (bsi_remove): Remove imm_use links and mark the stmt as modified.
25477 (bsi_replace): Mark stmt as modified and the update it.
25478 * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
25479 (expand_complex_libcal): Call update_stmt.
25480 (expand_complex_comparison): Call mark_stmt_modified.
25481 (expand_complex_operations_1): Call update_stmt_if_modified.
25482 (expand_vector_operations_1): Call mark_stmt_modified.
25483 * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
25484 compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
25485 add_immediate_use, redirect_immediate_use,
25486 redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
25487 dump_immediate_uses_for, debug_immediate_uses_for): Delete.
25488 (mark_new_vars_to_rename): Call update_stmt.
25489 * tree-dump.c (dump_option_value_in): Add "stmtaddr".
25490 * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.
25492 (unmodify_stmt): Delete.
25493 (update_stmt): New. Force an update of a stmt.
25494 (update_stmt_if_modified): update a stmt if it is out of date.
25495 (get_stmt_operands): Verify stmt is NOT modified.
25496 (stmt_modified_p): Update comment.
25497 (delink_imm_use): Remove a use node from its immuse list.
25498 (link_imm_use_to_list): Link a use node to a specific list.
25499 (link_imm_use): Link a node to the correct list.
25500 (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
25501 it in the correct list, if appropriate.
25502 (link_imm_use_stmt): Link a use node, and set the stmt pointer.
25503 (relink_imm_use): Link a use node in place of another node in a list.
25504 (relink_imm_use_stmt): LInk a node in place of another node, and set
25506 (end_safe_imm_use_traverse): New. Terminate a safe immuse iterator.
25507 (end_safe_imm_use_p): New. Check for the end of a safe immuse iterator.
25508 (first_safe_imm_use): New. Initialize a safe immuse iterator.
25509 (next_safe_imm_use): New. Proceed to next safe immuse iterator value.
25510 (end_readonly_imm_use_p): New. Check for end of a fast immuse iterator.
25511 (first_readonly_imm_use): New. Initialize a fast immuse iterator.
25512 (next_readonly_imm_use): New. Get the next fast immuse iterator value.
25513 (has_zero_uses): New. Return true if there are no uses of a var.
25514 (has_single_use): New. Return true if there is only a single use of a
25516 (single_imm_use): New. Return the simgle immediate use.
25517 (num_imm_uses): New. Return the number of immediate uses.
25518 (get_v_must_def_ops): Use is now a pointer.
25519 (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
25520 get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of
25522 (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
25523 (delink_stmt_imm_use): Delink all immuses from a stmt.
25524 (phi_arg_index_from_use): New. Return a phi arg index for a use.
25525 * tree-flow.h (struct dataflow_d): Delete.
25526 (immediate_use_iterator_d): New. Immediate use iterator struct.
25527 (FOR_EACH_IMM_USE_FAST): New. Macro for read only immuse iteration.
25528 (FOR_EACH_IMM_USE_SAFE): New. Macro for write-safe immuse iteration.
25529 (BREAK_FROM_SAFE_IMM_USE): New. Macro for earlyu exit from write-safe
25531 (struct stmt_ann_d): Remove dataflow_t from struct.
25532 * tree-if-conv.c (tree_if_conversion). Don't call free_df.
25533 (if_convertible_phi_p): Use FAST immuse iterator.
25534 (if_convertible_loop_p): Don't call compute_immediate_uses.
25535 (replace_phi_with_cond_modify_expr): Call update_stmt.
25536 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call
25537 update_stmt_if_modified.
25538 (rewrite_all_into_ssa): Initialize ssa operands.
25539 * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
25540 compute_immediate_uses.
25541 * tree-optimize.c (execute_todo): Call verify_ssa whenever the
25542 ssa_property is available.
25543 (execute_one_pass): Change parameters passed to execute_todo.
25544 * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
25545 (remove_ssa_form): Call fini_ssa_operands.
25546 (insert_backedge_copies): Delete call to modify_stmt.
25547 * tree-phinodes.c (make_phi_node): Initialize use nodes.
25548 (release_phi_node): Delink any use nodes before releasing.
25549 (resize_phi_node): Relink any use nodes.
25550 (remove_phi_arg_num): Delink the use node.
25551 (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
25552 (remove_all_phi_nodes_for): Release phi node first.
25553 * tree-pretty-print.c (dump_generic_node): Print stmt address.
25554 * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
25555 (scalarize_use, scalarize_copy): Call update_stmt.
25556 * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
25557 (compute_points_to_and_addr_escape): Call mark_stmt_modified.
25558 * tree-ssa-cpp.c (need_imm_uses_for): Delete.
25559 (ccp_initialize): Remove call to compute_immediate_uses.
25560 (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
25561 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified
25563 (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
25564 (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
25565 (eliminate_redundant_computations): Call mark_stmt_modified.
25566 (cprop_operand): Call mark_stmt_modified.
25567 (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
25568 * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
25569 (dse_optimize_stmt): Use new immuse interface.
25570 (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
25571 * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
25572 (substitute_single_use_vars): Use new immuse interface.
25573 (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
25574 and compute_immediate_uses.
25575 * tree-ssa-loop-im.c (single_reachable_address): Use new immuse
25577 (rewrite_mem_refs): Call update_stmt.
25578 (determine_lsm): Remove call to compute_imm_uses and free_df.
25579 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
25580 (try_unroll_loop_completely): Call update_stmt.
25581 * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
25582 (rewrite_use_compare): Call update_stmt.
25583 (compute_phi_arg_on_exit): Insert each stmt before trying to process.
25584 (rewrite_use) : Call update_stmt.
25585 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
25586 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call
25588 * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
25589 (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
25590 (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
25592 (initialize_vuse_operand): New. Initialize a vuse operand.
25593 (initialize_v_may_def_operand): New. Initialize a maydef operand.
25594 (initialize_v_must_def_operand): New. Initialize a mustdef operand.
25595 (finalize_ssa_defs): Use stmt parameter.
25596 (correct_use_link): Ensure a use node is in the correct list, and has
25597 the correct stmt pointer.
25598 (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
25599 finalize_ssa_v_must_defs): Also initialize use nodes.
25600 (finalize_ssa_stmt_operands): Pass extra stmt operands.
25601 (build_ssa_operands): Seperate parsing from final operand construction.
25602 (parse_ssa_operands): New. Parse entry point for operand building.
25603 (swap_tree_operands): New. Swap 2 tree operands.
25604 (update_stmt_operands): Ranamed from get_stmt_operands. Always builds
25606 (get_expr_operands): Call swap_tree_operands when needed.
25607 (copy_virtual_operands): Use initialize routines for virtual use ops.
25608 (create_ssa_artficial_load_stmt): Add extra stmt parameter.
25609 (verify_abort): New. Issue imm_use error.
25610 (verify_imm_links): New Verify imm_use links for a var.
25611 (dump_immediate_uses_for): New. Dump imm_uses for a var to file.
25612 (dump_immediate_uses): New. Dump imm_uses for all vars to file.
25613 (debug_immediate_uses): New. Dump imm_uses for all vars to stderr.
25614 (debug_immediate_uses_for): New. Dump imm_uses for a var to stderr.
25615 * tree-ssa-operands.h (struct use_operand_ptr): Delete.
25616 (NULL_USE_OPERAND_P) Define.
25617 (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
25619 (struct vuse_operand_type): New struct.
25620 (SET_USE): Call set_ssa_use_from_ptr.
25621 (USE_STMT): Define.
25622 (PHI_ARG_INDEX_FROM_USE): Define.
25623 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi
25624 argument via SET_USE, not PHI_ARG_DEF_TREE.
25625 * tree-ssa-pre.c (eliminate): Call update_stmt.
25626 * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators. Don't
25628 * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
25629 (nearest_common_dominator_of_uses): Use imm_use iterator.
25630 (statement_sink_location): Use imm_use iterator and interface.
25631 (execute_sink_code): Don't call compute_immediate_uses or free-df.
25632 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
25633 PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
25634 * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
25635 (verify_ssa): Ensure no stmt is marked modify after optimization pass
25636 if new parameter is true.
25637 (init_tree_ssa): Don't initialize operand cache here.
25638 (delete_tree_ssa): Don't destroy operand cache here.
25639 (propagate_into_addr): Pass in a use pointer, return true if anything
25641 (replace_immediate_uses): Use imm_use iterator, call update_stmt.
25642 (check_phi_redundancy): Use imm_use iterator.
25643 (kill_redundant_phi_nodes): Don't call compute_immediate_uses or
25645 * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
25646 (release_ssa_name): Delink node and all elements in its imm_use list.
25647 * tree-tailcall.c (adjust_return_value): Call update_stmt.
25648 * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
25649 * tree-vectorizer.c (need_imm_uses_for): Delete.
25650 (vectorize_loops): Dont call compute_immediate_uses or free_df.
25651 * tree.h (struct ssa_imm_use_d): Define.
25652 (SSA_NAME_IMM_USE_NODE): Define.
25653 (struct tree_ssa_name): Add imm_use node.
25655 (PHI_ARG_IMM_USE_NODE): Define.
25656 (struct phi_arg_d): Add imm_use node.
25657 (struct tree_phi_node): Remove struct dataflow_d element.
25658 (TDF_STMTADDR): Define.
25660 2005-04-05 Dale Johannesen <dalej@apple.com>
25662 * doc/invoke.texi (Optimization Options): Remove
25663 duplicate -fcse-follow-jumps. Add -fweb.
25664 (-ftree-lim): Fix spelling (-ftree-loop-im, invariants).
25665 (-fivcanon): Fix spelling (-ftree-loop-ivcanon).
25667 2005-04-05 Per Bothner <per@bothner.com>
25669 * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
25670 to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
25671 (warn_uninit): Get EXPR_LOCUS from context now instead.
25672 This fixes a USE_MAPPED_LOCATION testsuite failure.
25674 * tree-ssa.c (warn_uninitialized_var): Remove useless local.
25676 2005-04-05 Per Bothner <per@bothner.com>
25678 * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
25679 of the artification 'return 0' in main() to BUILTINS_LOCATION.
25680 * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
25683 2004-04-05 Devang Patel <dpatel@apple.com>
25685 * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
25686 (lhsr<mode>3): ... new name.
25687 (altivec_vsra<VI_char>): Rename to ..
25688 (ashr<mode>3): ... new name.
25689 * config/rs6000/rs6000.c (builtin_description): Rename shift
25692 2004-04-05 Paolo Bonzini <bonzini@gnu.org>
25694 * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
25695 gen_lowpart_for_combine.
25696 * cse.c (gen_lowpart_if_possible): Move...
25697 * rtlhooks.c (gen_lowpart_if_possible): ... here. Also try
25698 gen_lowpart_SUBREG.
25699 (gen_lowpart_no_emit_general): Use it.
25701 2005-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
25703 * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
25706 2005-04-05 Paolo Bonzini <bonzini@gnu.org>
25708 * system.h: Fix typo.
25710 2005-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
25712 * config/bfin/bfin-modes.def: New file.
25713 * config/bfin/bfin-protos.h: New file.
25714 * config/bfin/bfin.c: New file.
25715 * config/bfin/bfin.h: New file.
25716 * config/bfin/bfin.md: New file.
25717 * config/bfin/bfin.opt: New file.
25718 * config/bfin/crti.s: New file.
25719 * config/bfin/crtn.s: New file.
25720 * config/bfin/elf.h: New file.
25721 * config/bfin/lib1funcs.asm: New file.
25722 * config/bfin/predicates.md: New file.
25723 * config/bfin/t-bfin: New file.
25724 * config/bfin/t-bfin-elf: New file.
25725 * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
25726 Document new attributes.
25727 (interrupt, interrupt_handler, saveall): Update documentation for
25729 * doc/install.texi (Specific): Add entry for the Blackfin.
25730 * doc/invoke.texi (Blackfin Options): New section.
25731 * doc/md.texi (Blackfin family): New section to document constraints.
25732 * config.gcc: Add bfin*-* and bfin*-elf configurations.
25734 2005-04-05 Olivier Hainque <hainque@adacore.com>
25736 * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
25737 match what the system unwinder expects.
25738 * config/mips/mips.c (mips_frame_set): If we're saving the return
25739 address register and the dwarf return address column number differs
25740 from the hard register number, adjust the note reg to refer to the
25743 2004-04-05 Richard Sandiford <rsandifo@redhat.com>
25745 * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
25746 * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
25747 (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
25748 (processor_type): New enum.
25749 (mn10300_processor): New variable.
25750 (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
25751 (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
25752 * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
25753 (PROCESSOR_DEFAULT): New macro.
25754 * config/mn10300/mn10300.c (mn10300_processor): New variable.
25755 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
25756 (mn10300_handle_option, mn10300_override_options): New functions.
25757 * config/mn10300/mn10300.opt: New file.
25759 2005-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
25760 Sebastian Pop <sebastian.pop@cri.ensmp.fr>
25762 PR tree-optimization/19903
25763 * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
25764 that don't fit in their type after conversion.
25766 2005-04-05 Uros Bizjak <uros@kss-loka.si>
25769 * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
25770 (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
25771 Allocate local stack slots here. Set ix86_optimize_mode_switching.
25772 flag here. Implement using define_insn_and_split.
25773 (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
25774 (frndintxf2_mask_pm_i387): New insn patterns.
25775 (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
25776 Do not set ix86_optimize_mode_switching flag.
25777 (ceilsf2, ceildf2, ceilxf2): Same.
25778 (btruncsf2, btruncdf2, btruncxf2): Same.
25779 (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
25781 2005-04-05 Ian Lance Taylor <ian@airs.com>
25784 * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
25785 i386_pe_record_external_function.
25786 (i386_pe_record_external_function): Update declaration.
25787 * config/i386/winnt.c (struct extern_list): Add decl field.
25788 (i386_pe_record_external_function): Add decl parameter.
25789 (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
25791 * config/i386/i386-protos.h (i386_pe_record_external_function):
25792 Update declaration.
25794 2005-04-05 Kazu Hirata <kazu@cs.umass.edu>
25796 * config/m68k/m68k-protos.h: Add a prototype for
25797 valid_dbcc_comparison_p_2.
25798 * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
25799 extend_operator, const_uint32_operand, const_sint32_operand,
25800 general_src_operand, nonimmediate_src_operand,
25801 memory_src_operand, post_inc_operand, pre_dec_operand,
25802 pcrel_address): Move to predicates to predicates.md.
25803 * config/m68k/m68k.h (PREDICATE_CODES): Remove.
25804 * config/m68k/m68k.md: Include predicates.md.
25805 * config/m68k/predicates.md: New.
25807 2005-04-04 Roger Sayle <roger@eyesopen.com>
25809 * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
25811 * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
25813 2005-04-04 Ian Lance Taylor <ian@airs.com>
25815 * c-typeck.c (struct c_switch): Rename switch_stmt field to
25817 (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
25818 (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
25819 (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
25820 Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
25821 * c-common.c (c_do_switch_warnings_1): New static function broken
25822 out of c_do_switch_warnings.
25823 (c_do_switch_warnings): Call c_do_switch_warnings_1.
25824 (c_do_switch_expr_warnings): New function.
25825 * c-common.h (c_do_switch_expr_warnings): Declare.
25827 2005-04-04 David Edelsohn <edelsohn@gnu.org>
25828 Daniel Jacobowitz <dan@codesourcery.com>
25830 * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
25832 * rtlanal.c (may_trap_p): Same.
25834 2005-04-04 Dale Johannesen <dalej@apple.com>
25836 * ChangeLog: remove reference to ChangeLog.12.
25838 2005-04-05 Hans-Peter Nilsson <hp@axis.com>
25840 CRIS epilogue as RTL.
25841 * config/cris/cris.md: Change all 0 in unspec 0 to
25843 (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
25844 ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
25846 ("return"): Change to define_expand. Call cris_expand_return for
25848 ("*return_expanded"): New pattern.
25849 ("epilogue"): New define_expand.
25850 * config/cris/cris.h (PREDICATE_CODES): Add
25851 cris_load_multiple_op.
25852 * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
25854 (enum cris_retinsn_type): New.
25855 (struct machine_function): New member return_type.
25856 (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
25857 (cris_target_asm_function_epilogue): Remove, moving RTLified
25859 (cris_expand_epilogue): New function.
25860 (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
25861 (cris_gen_movem_load, cris_load_multiple_op)
25862 (cris_return_address_on_stack_for_return, cris_expand_return): New
25864 (cris_target_asm_function_prologue)
25865 (cris_initial_frame_pointer_offset): Call
25866 cris_reg_saved_in_regsave_area instead of complicated expression.
25867 Call cris_return_address_on_stack instead of an expression.
25868 (cris_print_operand) <case 'o', case 'O'>: New cases.
25869 (cris_return_address_on_stack): Change return-type to bool.
25870 (cris_simple_epilogue): Ditto. Return false if registers are
25872 * config/cris/cris-protos.h (cris_simple_epilogue)
25873 (cris_return_address_on_stack): Adjust prototype return type.
25874 (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
25875 (cris_return_address_on_stack_for_return): New prototypes.
25877 2005-04-04 Kazu Hirata <kazu@cs.umass.edu>
25879 * config/frv/frv.h (PREDICATE_CODES): Add CONST to
25880 gpr_or_int12_operand.
25882 * config/frv/frv-protos.h: Add a prototype to
25883 frv_legitimate_memory_operand and frv_const_unspec_p.
25884 (frv_unspec): Move from frv.c.
25885 * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
25886 (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
25887 (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
25888 gpr_or_fpr_operand, gpr_or_int12_operand,
25889 gpr_fpr_or_int12_operand, fpr_or_int6_operand,
25890 gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
25891 int6_operand, int5_operand, uint5_operand, uint4_operand,
25892 uint1_operand, int_2word_operand, uint16_operand,
25893 upper_int16_operand, integer_register_operand,
25894 gpr_no_subreg_operand, fpr_operand, even_reg_operand,
25895 odd_reg_operand, even_gpr_operand, odd_gpr_operand,
25896 quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
25897 dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
25898 move_destination_operand, movcc_fp_destination_operand,
25899 frv_function_symbol_referenced_p, move_source_operand,
25900 condexec_dest_operand, condexec_source_operand,
25901 reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
25902 const_unspec_operand, gpr_or_memory_operand,
25903 gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
25904 icc_operand, fcc_operand, cc_operand, icr_operand,
25905 fcr_operand, cr_operand, call_operand, sibcall_operand,
25906 symbolic_operand, relational_operator,
25907 integer_relational_operator, float_relational_operator,
25908 ccr_eqne_operator, minmax_operator,
25909 condexec_si_binary_operator, condexec_si_media_operator,
25910 condexec_si_divide_operator, condexec_si_unary_operator,
25911 condexec_sf_conv_operator, condexec_sf_add_operator,
25912 condexec_memory_operand, intop_compare_operator, acc_operand,
25913 even_acc_operand, quad_acc_operand, accg_operand: Move to
25915 * config/frv/frv.h (PREDICATE_CODES): Remove.
25916 * config/frv/frv.md: Include predicates.md.
25917 * config/frv/predicates.md: New.
25919 2004-04-04 Richard Sandiford <rsandifo@redhat.com>
25922 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
25923 * tree-ssa-loop-ivopts.c: Include langhooks.h.
25924 (add_standard_iv_candidates_for_size): New function, extracting code
25925 from add_standard_iv_candidates and parameterizing it by type size.
25926 (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
25928 2004-04-04 Richard Sandiford <rsandifo@redhat.com>
25930 * system.h (GCOV_SIZE_TYPE): Unposion.
25931 * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
25932 (GCOV_TYPE_SIZE): ...this new macro.
25933 * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
25934 * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
25935 (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
25936 (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
25937 (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
25938 instead of unsigned_intSI_type_node.
25939 * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
25940 (rtl_gen_one_value_profiler_no_edge_manipulation)
25941 (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
25942 * value-prof.c: Include coverage.h.
25944 2005-04-02 Daniel Berlin <dberlin@dberlin.org>
25945 Diego Novillo <dnovillo@redhat.com>
25947 Fix PR tree-optimization/20703
25948 Fix PR tree-optimization/20725
25950 * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
25951 (create_expression_by_pieces): Ditto.
25952 (valid_in_set): Ditto. Also handle tcc_declaration.
25953 (find_or_generate_expression): Handle comparison class.
25954 (insert_into_preds_of_block): Ditto.
25955 (insert_aux): Ditto.
25956 (create_value_expr_from): Handle comparison class, recursively
25957 handle reference nodes.
25958 (compute_avail): Handle comparison classes, rewrite a little cleaner.
25959 (execute_pre): Fix spacing.
25960 (do_fre): Renamed to execute_fre.
25962 2005-04-04 Eric Botcazou <ebotcazou@libertysurf.fr>
25964 * doc/invoke.texi (SPARC options): Document that
25965 -mlittle-endian is not supported on Linux either.
25967 2005-04-04 Eric Botcazou <ebotcazou@libertysurf.fr>
25971 * config.gcc (Obsolete configurations): Remove
25972 sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
25973 (sparclite-*-coff*): Delete.
25974 (sparclite-*-elf*): Likewise.
25975 (sparc86x-*-elf*): Likewise.
25976 (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
25977 * config/sparc/lite.h: Delete.
25978 * config/sparc/litecoff.h: Likewise.
25979 * config/sparc/liteelf.h: Likewise.
25980 * config/sparc/sp86x-elf.h: Likewise.
25981 * config/sparc/t-sparclite: Likewise.
25982 * config/sparc/t-sp86x: Likewise.
25984 2005-04-04 Adrian Straetling <straetling@de.ibm.com>
25986 * config/s390/s390-protos.h: (s390_comparison,
25987 s390_alc_comparison, s390_slb_comparison, const0_operand,
25988 consttable_operand, larl_operand, s_operand,
25989 shift_count_operand, bras_sym_operand, load_multiple_operation,
25990 store_multiple_operation, s390_plus_operand): Remove prototypes.
25991 (s390_legitimate_address_without_index_p): New prototype.
25992 * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
25994 (s390_comparison, s390_alc_comparison, s390_slb_comparison,
25995 const0_operand, consttable_operand, larl_operand, s_operand,
25996 shift_count_operand, bras_sym_operand, load_multiple_operation,
25997 store_multiple_operation, s390_plus_operand): Move to
25999 (check_mode): Remove.
26000 (s390_branch_condition_mask): Remove 'static'. Move prototype to
26002 (s390_legitimate_address_without_index_p): New.
26003 * config/s390/s390.h (PREDICATE_CODES): Remove.
26004 * config/s390/s390.md: Include predicates.md.
26005 * config/s390/predicates.md: New.
26007 2005-04-04 Eric Botcazou <ebotcazou@libertysurf.fr>
26010 * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
26011 * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
26012 (NEED_INDICATE_EXEC_STACK): Define to 1.
26013 * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
26014 (NEED_INDICATE_EXEC_STACK): Define to 1.
26015 * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
26016 (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
26017 (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
26018 (pic_helper_emitted_p): New global.
26019 (emit_pic_helper): New function extracted from...
26020 (load_pic_register): ...here. Add 'delay_pic_helper' parameter.
26021 Do not call emit_pic_helper if delay_pic_helper is true.
26022 (sparc_expand_prologue): Pass 'false' to load_pic_register.
26023 (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
26024 (sparc_file_end): New function.
26026 2005-04-04 Kazu Hirata <kazu@cs.umass.edu>
26028 * config/mcore/mcore-protos.h: Remove the prototypes for
26029 mcore_arith_reg_operand, mcore_general_movsrc_operand,
26030 mcore_general_movdst_operand, mcore_reload_operand,
26031 mcore_arith_J_operand, mcore_arith_K_operand,
26032 mcore_arith_K_operand_not_0, mcore_arith_M_operand,
26033 mcore_arith_K_S_operand, mcore_arith_imm_operand,
26034 mcore_arith_any_imm_operand, mcore_arith_O_operand,
26035 mcore_literal_K_operand, mcore_addsub_operand,
26036 mcore_compare_operand, mcore_load_multiple_operation,
26037 mcore_store_multiple_operation, mcore_call_address_operand.
26038 Add a prototype for const_ok_for_mcore.
26039 * config/mcore/mcore.c (mcore_call_address_operand,
26040 mcore_general_movsrc_operand, mcore_general_movdst_operand,
26041 mcore_arith_reg_operand, mcore_reload_operand,
26042 mcore_arith_J_operand, mcore_arith_K_operand,
26043 mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
26044 mcore_arith_M_operand, mcore_arith_imm_operand,
26045 mcore_arith_any_imm_operand, mcore_arith_O_operand,
26046 mcore_literal_K_operand, mcore_addsub_operand,
26047 mcore_compare_operand, mcore_load_multiple_operation,
26048 mcore_store_multiple_operation): Move to predicates.md.
26049 (const_ok_for_mcore): Export.
26050 * config/mcore/mcore.h (PREDICATE_CODES): Remove.
26051 * config/mcore/mcore.md: Include predicates.md.
26052 * config/mcore/predicates.md: New.
26054 * config/mcore/predicates.md: Fix a comment typo.
26056 2005-04-04 Andreas Krebbel <krebbel1@de.ibm.com>
26057 Adrian Straetling <straetling@de.ibm.com>
26059 * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
26060 * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
26061 * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
26063 ("imul"): Removed from "type" attribute.
26064 ("*muldi3_sign", "muldi3"): Changed type to imuldi.
26065 ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
26066 Changed type to imulsi.
26067 ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
26069 2005-04-04 Richard Sandiford <rsandifo@redhat.com>
26071 * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
26072 (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
26073 (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
26074 (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
26075 (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
26076 (TARGET_SWITCHES, mcore_stack_increment_string)
26077 (TARGET_OPTIONS): Delete.
26078 (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
26079 than *_BIT constants.
26080 (TARGET_8ALIGN): #undef old definition before redefining to 1.
26081 * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
26082 (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
26083 (mcore_override_options): Delete mcore_stack_increment code.
26084 Change use of M340_BIT to MASK_M340.
26085 * config/mcore/mcore.opt: New file.
26087 2005-04-04 Ian Lance Taylor <ian@airs.com>
26089 * config/arm/arm.c (replace_symbols_in_block): Remove static
26092 2005-04-04 Kazu Hirata <kazu@cs.umass.edu>
26094 * config/fr30/fr30-protos.h: Remove the prototypes for
26095 stack_add_operand, add_immediate_operand,
26096 high_register_operand, low_register_operand, call_operand,
26097 di_operand, and nonimmediate_di_operand.
26098 * config/fr30/fr30.c (stack_add_operand,
26099 add_immediate_operand, high_register_operand,
26100 low_register_operand, call_operand, di_operand,
26101 nonimmediate_di_operand): Move to predicates.md.
26102 * config/fr30/fr30.h (PREDICATE_CODES): Remove.
26103 * config/fr30/fr30.md: Include predicates.md.
26104 * config/fr30/predicates.md: New.
26106 * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
26107 LABEL_REF to mcore_general_movsrc_operand. Add SYMBOL_REF to
26108 mcore_call_address_operand.
26110 * config/sh/sh.h (PREDICATE_CODES): Add CONST to
26111 general_movsrc_operand.
26113 2005-04-04 Alan Modra <amodra@bigpond.net.au>
26115 * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
26118 2005-04-04 Richard Earnshaw <richard.earnshaw@arm.com>
26121 * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
26124 2005-04-04 Richard Henderson <rth@redhat.com>
26125 Jakub Jelinek <jakub@redhat.com>
26127 PR rtl-optimization/16104
26128 * fold-const.c (fold_unary): Fix folding of vector conversions.
26130 2005-04-04 Richard Sandiford <rsandifo@redhat.com>
26132 * config.gcc (xstormy16-*-elf): Set extra_options.
26133 * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
26134 * config/stormy16/stormy16.opt: New file.
26136 2005-04-04 Richard Sandiford <rsandifo@redhat.com>
26138 * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
26139 (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
26140 (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
26141 (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
26142 (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
26143 (TARGET_UNIX_ASM): Delete.
26144 (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
26145 * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
26146 * config/pdp11/pdp11.c (pdp11_handle_option): New function.
26147 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
26148 * config/pdp11/pdp11.opt: New file.
26150 2005-04-03 Roger Sayle <roger@eyesopen.com>
26151 Alexandre Oliva <aoliva@redhat.com>
26154 * fold-const.c (non_lvalue): Split tests into...
26155 (maybe_lvalue_p): New function.
26156 (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
26157 C++ front-end prior to lowering into gimple form.
26159 2005-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26161 * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
26162 BUILT_IN_STRNCASECMP): New.
26163 * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
26166 2005-04-03 Richard Earnshaw <richard.earnshaw@arm.com>
26169 * arm.md (addsi3_compare0_for_combiner): Delete.
26170 (addsi3_compare0_scratch_for_combiner): Delete.
26171 (cmpsi_neg_shiftsi): Delete.
26172 (compare_negsi_si): New pattern.
26173 (cmpsi_negshiftsi_si): New pattern.
26174 (negated_cbranchsi4): Restrict to equality_operator.
26176 * arm.md (movhi_insn_arch4): delete trailing white space from assembler
26179 2005-04-03 Kazu Hirata <kazu@cs.umass.edu>
26181 * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
26184 * doc/install.texi: Fix a typo.
26186 2005-04-03 Steven Bosscher <stevenb@suse.de>
26188 PR middle-end/20648
26189 * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
26190 a computed goto if the edge to the computed goto block has
26191 incoming abnormal edges. Clarify how the function works.
26193 2005-04-03 Nathan Sidwell <nathan@codesourcery.com>
26195 * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
26196 * passes.c (open_dump_file, rest_of_handle_final): Likewise.
26197 * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
26198 hash_scan_set, reg_set_between_after_reload_p,
26199 reg_used_between_after_reload_p, get_avail_load_store_reg,
26200 eliminate_partially_redundant_load): Likewise.
26201 * postreload.c (reload_cse_simplify_set,
26202 reload_combine_note_use): Likewise.
26203 * predict.c (predict_insn, expected_value_to_br_prob,
26204 propagate_freq, expensive_function_p): Likewise.
26205 * print-rtl.c (print_rtx): Likewise.
26206 * profile.c (instrument_edges, instrument_values,
26207 compute_branch_probabilities, branch_prob, union_groups,
26208 tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
26209 * protoize.c (in_system_include_dir, file_could_be_converted,
26210 file_normally_convertible, gen_aux_info_file, seek_to_line,
26211 do_cleaning): Likewise.
26212 * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
26213 * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
26214 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
26216 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
26218 * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
26219 * modulo-sched.c (undo_replace_buff_elem): New structure.
26220 (kernel_number_of_cycles, ps_unschedule_node,
26221 undo_generate_reg_moves,free_undo_replace_buff,
26222 undo_permute_partial_schedule, loop_single_full_bb_p,
26223 SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
26224 build_loops_structure, get_sched_window): New.
26225 (generate_reg_moves): Return undo_replace_buff_elem and other
26227 (generate_prolog_epilog): Remove old loop versioning.
26228 (sms_schedule): Use loop information and loop_version.
26229 (sms_schedule_by_order): Split part of it to get_sched_window.
26230 * passes.c (rest_of_handle_sms): call cfg_layout_initialize
26231 cfg_layout_finalize and free_dominance_info before/after SMS.
26233 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
26235 * cfghooks.c (lv_flush_pending_stmts,
26236 cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
26237 lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
26238 * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
26239 lv_add_condition_to_bb,
26240 lv_adjust_loop_header_phi, extract_cond_bb_edges,
26241 flush_pending_stmts): New in cfg_hooks structure.
26242 (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
26243 extract_cond_bb_edges, lv_adjust_loop_header_phi,
26244 lv_add_condition_to_bb): New declarations.
26245 * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
26247 (loop_version): Declare.
26248 * cfgloopmanip.c (cfghooks.h): Include.
26249 (duplicate_loop_to_header_edge): Change return type to bool.
26250 (loop_version, lv_adjust_loop_entry_edge): Move here.
26251 * cfgrtl.c (cfgloop.h): Include.
26252 (rtl_verify_flow_info_1): Fix.
26253 (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
26254 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
26256 * tree-cfg.c (tree_lv_adjust_loop_header_phi,
26257 tree_lv_add_condition_to_bb): New.
26258 (tree_cfg_hooks): Add new hooks to initialization.
26259 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
26260 lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
26262 2005-04-03 Kazu Hirata <kazu@cs.umass.edu>
26264 * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
26265 xstormy16_below100_or_register,
26266 xstormy16_splittable_below100_or_register, and
26267 nonimmediate_nonstack_operand.
26269 * config/stormy16/stormy16-protos.h: Remove the prototypes for
26270 xstormy16_ineqsi_operator, equality_operator,
26271 inequality_operator, shift_operator,
26272 xstormy16_below100_operand, xstormy16_below100_or_register,
26273 xstormy16_splittable_below100_or_register,
26274 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
26275 * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
26276 equality_operator, inequality_operator,
26277 xstormy16_below100_operand, xstormy16_below100_or_register,
26278 xstormy16_splittable_below100_or_register,
26279 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
26280 nonimmediate_nonstack_operand, shift_operator): Move to
26282 * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
26283 * config/stormy16/stormy16.md: Include predicates.md.
26284 * config/stormy16/predicates.md: New.
26286 2005-04-02 Kazu Hirata <kazu@cs.umass.edu>
26288 * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
26289 small_int, large_int, reg_or_0_operand, simple_memory_operand,
26290 equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
26291 move_operand, power_of_2_operand): Move to predicates.md.
26292 * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
26293 PREDICATE_CODE): Remove.
26294 * config/iq2000/iq2000.md: Include predicates.md.
26295 * config/iq2000/predicates.md: New.
26297 2005-04-02 Richard Sandiford <rsandifo@redhat.com>
26299 * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
26300 (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
26301 (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
26302 (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
26303 (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
26304 (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
26305 (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
26306 (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
26307 (TARGET_M68HC11): Delete.
26308 (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
26309 * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
26310 * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
26311 (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
26312 (nb_soft_regs): Delete.
26313 (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
26314 (m68hc11_override_options): Remove the code that caters for MASK_M6811
26315 and MASK_M6812 being set simultaneously. Change the code that sets
26316 the default m68hc11_soft_reg_count to use integers instead of strings.
26317 (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
26318 m68hc11_soft_reg_count (which now has an int type) as the number
26320 * config/m68hc11/m68hc11.opt: New file.
26322 2005-04-02 Kazu Hirata <kazu@cs.umass.edu>
26324 * config/fr30/fr30.h (PREDICATE_CODES): Remove
26325 fp_displacement_operand, sp_displacement_operand.
26327 * config/m68hc11/m68hc11-protos.h: Add a prototype for
26329 Remove the prototypes for tst_operand, cmp_operand,
26330 stack_register_operand, d_register_operand,
26331 hard_addr_reg_operand, splitable_operand,
26332 m68hc11_logical_operator, m68hc11_arith_operator,
26333 m68hc11_non_shift_operator, m68hc11_shift_operator,
26334 m68hc11_unary_operator, m68hc11_eq_compare_operator,
26335 non_push_operand, hard_reg_operand, and
26336 reg_or_some_mem_operand.
26337 * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
26339 (tst_operand, cmp_operand, non_push_operand,
26340 splitable_operand, reg_or_some_mem_operand,
26341 stack_register_operand, d_register_operand,
26342 hard_addr_reg_operand, hard_reg_operand,
26343 m68hc11_eq_compare_operator, m68hc11_logical_operator,
26344 m68hc11_arith_operator, m68hc11_non_shift_operator,
26345 m68hc11_shift_operator, m68hc11_unary_operator): Move to
26347 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
26348 * config/m68hc11/m68hc11.md: Include predicates.md.
26349 * config/m68hc11/predicates.md: New.
26351 2005-04-02 Alexandre Oliva <aoliva@redhat.com>
26354 * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
26355 change checked in along with 2005-03-03's patch for debug/20253.
26356 * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
26357 (remap_decl): Insert type decl in map earlier.
26359 2005-04-02 Alexandre Oliva <aoliva@redhat.com>
26361 PR tree-optimization/20640
26362 * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
26363 post-dominator if it has phi nodes.
26364 (eliminate_unnecessary_stmts): Remove dead phis in all blocks
26365 before dead statements.
26367 2005-04-02 Alexandre Oliva <aoliva@redhat.com>
26369 PR middle-end/20491
26370 * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
26372 2005-04-02 Alexandre Oliva <aoliva@redhat.com>
26374 PR rtl-optimization/20290
26375 * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
26376 in every iteration if the entry point is the exit test.
26378 2005-04-02 Hans-Peter Nilsson <hp@axis.com>
26380 * config/cris/cris.md (attribute "length"): Define.
26382 2005-04-02 Geoffrey Keating <geoffk@apple.com>
26384 * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
26385 (word_offset_memref_operand): New.
26386 * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
26387 (indexed_or_indirect_operand): Delete.
26388 * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
26389 (indexed_or_indirect_operand): Delete.
26391 * config/rs6000/t-darwin8: Comment out ppc64 multilib.
26394 * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
26397 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
26398 * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
26400 2005-04-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26402 * config/vax/vax.md: Spellcheck, fix whitespace.
26404 2005-04-01 Ian Lance Taylor <ian@airs.com>
26406 * gcc.c: Don't include <sys/resource.h> or declare getrusage.
26407 (rus, prus): Remove static variables.
26408 (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
26409 (process_command): Permit report_times and use_pipes together.
26411 2005-04-01 Joseph S. Myers <joseph@codesourcery.com>
26413 * c-decl.c (validate_proto_after_old_defn): Look at
26414 TYPE_MAIN_VARIANT of argument types.
26416 2005-04-01 Paul Brook <paul@codesourcery.com>
26418 * config/arm/arm.c (thumb_call_via_label): Include space for SP.
26419 (arm_output_function_epilogue): Allow call_via_SP.
26420 (thumb_call_via_reg, arm_file_end): Ditto.
26421 * config/arm/arm.h (struct machine_function): Include space for SP.
26422 (thumb_call_via_label): Update declaration.
26424 2005-04-01 Ian Lance Taylor <ian@airs.com>
26426 * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
26427 doing a peephole optimization, once again put any notes in the
26430 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
26432 * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
26434 2005-04-01 Nathan Sidwell <nathan@codesourcery.com>
26436 * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
26437 (block_alloc, find_free_reg): Likewise.
26438 * loop-doloop.c (doloop_modify): Likewise.
26439 * loop-invariant.c (record_use): Likewise.
26440 * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
26441 get_iv_value, canon_condition, eliminate_implied_condition,
26442 eliminate_implied_condition, simplify_using_initial_values,
26443 shorten_into_mode, canonicalize_iv_subregs,
26444 iv_number_of_iterations): Likewise.
26445 * loop-unroll.c (expand_var_during_unrolling): Likewise.
26446 * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
26447 unswitch_loop): Likewise.
26448 * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
26449 move_movables, replace_call_address, find_and_verify_loops,
26450 rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
26451 record_giv, final_giv_value, general_induction_var,
26452 simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
26453 loop_giv_dump): Likewise.
26455 * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
26456 GCOV_CHECK_WRITING): Remove.
26457 (gcov_position, gcov_rewrite): Use gcc_assert.
26458 * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
26459 gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
26460 * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
26463 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
26465 * tree-inline.c: Fix a typo.
26467 2005-04-01 Nathan Sidwell <nathan@codesourcery.com>
26469 * configure.ac (enable-checking): Explicitly set all variables for
26470 collective switch values. Alphabetize variables. Rename
26471 ac_checking_valgrind to ac_valgrind_checking. Allow 'none' as
26473 * doc/install.texi (enable-checking): Update documentation.
26474 * configure: Rebuilt.
26476 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
26478 * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
26481 2005-04-01 Richard Earnshaw <richard.earnshaw@arm.com>
26483 * arm.c (adjacent_mem_locations): Reject volatile memory refs.
26484 Also reject cases where this pattern will cause load delay stalls
26485 unless optimizing for size and it will produce a shorter sequence.
26486 * arm.md (arith_adjacent_mem): Make better use of ldm addressing
26487 variants to avoid pre-adjusting the base when possible.
26489 2005-04-01 Richard Earnshaw <richard.earnshaw@arm.com>
26491 * arm.md (minmax_arithsi): Reject all eliminable registers, not just
26492 the frame and argument pointers.
26493 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
26494 (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
26495 (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
26496 (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
26497 (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
26498 (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
26500 2005-04-01 Danny Smith <dannysmith@users.sourceforge.net>
26502 * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
26503 with entry for selectany attribute.
26504 * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
26506 * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
26507 (i386_pe_asm_named_section): Handle sections generated by
26508 selectany attribute.
26509 * doc/extend.texi (selectany): Document attribute.
26511 2005-04-01 Paolo Bonzini <bonzini@gnu.org>
26512 Jan Hubicka <jh@suse.cz>
26514 * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
26515 to fix addresses involving EBP and ESP.
26516 (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
26517 for SUBREGed registers.
26518 (legitimate_address_p): Accept SUBREGed registers.
26520 2005-04-01 Jakub Jelinek <jakub@redhat.com>
26523 * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
26524 (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
26527 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
26529 * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
26531 2005-04-01 James E Wilson <wilson@specifixinc.com>
26534 * dwarf2out.c (rtl_for_decl_init): New function.
26535 (rtl_for_decl_location): Extracted from here.
26536 (tree_add_const_value_attribute): Call rtl_for_decl_init and
26537 add_const_value_attribute. Delete initializer_constant_valid_p call.
26539 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
26541 * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
26542 lambda-code.c, loop.c, machmode.def, mips-tfile.c,
26543 modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
26544 tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
26545 config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
26546 config/i386/i386.md, config/rs6000/predicates.md,
26547 config/rs6000/rs6000.c, config/s390/fixdfdi.h,
26548 config/s390/s390.c, config/stormy16/stormy16.c,
26549 config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
26552 2005-04-01 Joseph S. Myers <joseph@codesourcery.com>
26555 * gimplify.c (gimplify_expr): Create a temporary for lvalue
26556 COND_EXPR and CALL_EXPR.
26558 2005-03-31 Vladimir Makarov <vmakarov@redhat.com>
26561 * genautomata.c (first_cycle_unit_presence): Check all alternative
26562 states for unit presence.
26564 * doc/md.texi: Remove remark about impossibility to query unit
26565 presence in non nondeterministic automaton state.
26567 * config/ia64/ia64.c (get_template): Change order of unit querying.
26569 2005-03-31 Kazu Hirata <kazu@cs.umass.edu>
26571 * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
26574 2005-03-31 Zdenek Dvorak <dvorakz@suse.cz>
26576 * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
26577 flag for edges outside any loops.
26579 2005-03-31 Janis Johnson <janis187@us.ibm.com>
26581 * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
26583 2005-03-31 Kazu Hirata <kazu@cs.umass.edu>
26585 * tree-ssa-alias.c: Follow spelling conventions.
26586 * doc/tree-ssa.texi: Fix a typo.
26588 2005-03-31 J"orn Rennecke <joern.rennecke@st.com>
26590 * postreload-gcse.c: Include target.h.
26591 (gcse_after_reload_main): Return early if we cannot modify jumps.
26592 * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
26594 2005-03-31 David Edelsohn <edelsohn@gnu.org>
26596 * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
26597 expensive operations.
26599 2005-03-31 Ian Lance Taylor <ian@airs.com>
26601 * collect2.c (lderrout): New variable.
26602 (collect_exit): Dump ldout to stdout. Dump and unlink lderrout,
26603 if it is set, to stderr.
26604 (handler): Unlink lderrout if it is set.
26605 (dump_file): Add "to" parameter. Change all callers.
26606 (main): Initialize lderrout.
26607 (collect_execute): Add errname parameter. Change all callers.
26608 Rename redir parameter to outname. Never pass
26609 PEX_STDERR_TO_STDOUT to pex_run.
26610 * collect2.h (collect_execute, dump_file): Update declarations.
26611 * tlink.c (tlink_execute): Add errname parameter. Change all
26613 (do_tlink): Check lderrout as well as ldout.
26615 2005-03-31 Caroline Tice <ctice@apple.com>
26617 * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
26618 (bb-reorder.o): Add errors.h to list of requirements.
26619 (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
26620 profiledbootstrap flags.
26621 * bb-reorder.c (errors.h): Add new include.
26622 (struct bbro_basic_block_data_def): Add new field, in_trace.
26623 (add_unlikely_executed_notes): Remove function.
26624 (mark_bb_for_unlikely_executed_section): Remove function.
26625 (insert_section_boundary_note): New function.
26626 (verify_hot_cold_block_grouping): New function.
26627 (push_to_next_round_p): Remove variables and tests that push all
26628 cold blocks to last round.
26629 (find_traces): Remove code that added extra round of trace finding
26630 when doing partitioning.
26631 (find_traces_1_round) : Remove variable last_round; add code to
26632 update new struct field, in_trace; correct trace_length where it was
26633 incorrect before (after call to copy_bb); change code that pushed all
26634 cold blocks to last round. Instead verify that all blocks going into
26635 a trace belong in the same partition.
26636 (connect_traces): Modify to connect the traces in two passes, if the
26637 function contains both hot and cold blocks. The first pass connects
26638 all the traces for blocks in the partition that the first block in
26639 the function belongs to; the second pass connnects all the traces
26640 containing blocks that belong in the other partition.
26641 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
26642 code that automatically put the first block in a function into the
26643 hot partition if the function had any hot blocks.
26644 (fix_crossing_unconditional_branches): Check number of succ edges
26645 before attempting to get one.
26646 (fix_edges_for_rarely_executed_code): Update comment describing
26648 (reorder_basic_blocks): Add code to initialize new field (in_trace);
26649 remove call to add_unlikely_executed_notes; add call to
26650 verify_hot_cold_block_grouping.
26651 (duplicate_computed_gotos): Don't change computed goto if it's a
26653 (partition_hot_cold_basic_blocks): Update function comment.
26654 * cfgcleanup.c (try_simplify_condjump): Remove redundacy from
26656 (try_forward_edges): Likewise.
26657 (merge_blocks_move_predecessor_nojumps): Likewise.
26658 (merge_blocks_move_successor_nojumps): Likewise.
26659 (merge_blocks_move): Likewise.
26660 (try_crossjump_bb): Likewise.
26661 * cfglayout.c (update_unlikely_executed_notes): Remove function.
26662 (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
26663 notes to cold bb's; remove call to update_unlikely_executed_notes.
26664 (duplicate_insn_chain): change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
26665 NOTE_INSN_SWITCH_TEXT_SECTIONS.
26666 * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
26667 function declaration.
26668 * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
26669 from consideration.
26670 (rtl_can_merge_blocks): Remove redundancy from condition.
26671 (try_redirect_by_replacing_jump): Likewise.
26672 (force_nonfallthru_and_redirect): Remove code for adding
26673 UNLIKELY_EXECUTED_CODE notes to cold bb's.
26674 (commit_one_edge_insertion): Likewise.
26675 (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
26676 * dbxout.c (FORCE_TEXT): Replace function_section with
26677 current_function_section.
26678 (struct dbx_debug_h): Add do_nothing function for new debug_hooks
26679 function, switch_text_section.
26680 (struct xcoff_debug): Likewise.
26681 (dbxout_function_end): Add code to put out label diffs for both
26682 hot and cold sections.
26683 * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
26684 for new debug_hooks funciton, switch_text_section..
26685 * debug.h (struct gcc_debug_hooks): Add new function to debug_hooks,
26686 switch_text_section.
26687 * dwarf2out.c (struct dw_fde_struct): Add five new fields:
26688 dw_fde_hot_section_label, dw_fde_hot_section_end_label,
26689 dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and
26690 dw_fde_switched_sections.
26691 (output_call_frame_info): Add test to see if function switches text
26692 sections in the middle; if so, use appropriate extra hot and cold
26693 section labels to compute size deltas for the hot and cold sections.
26694 (dwarf2out_begin_prologue): Add code to initialize new fields in
26696 (dwarf2out_switch_text_section): New function (invoked through
26697 debug_hook); updates new fields in dw_fde_struct appropriately and
26698 increments separate_line_info_table_in_use.
26699 (dwarf2_debug_hooks): Initialize switch_text_section function to be
26700 dwarf2out_switch_text_section.
26701 (struct var_loc_node): Add new field, section_label.
26702 (output_aranges): Add code to check whether in hot or cold section and
26703 use the appropriate label in calculating deltas.
26704 (output_ranges): Likewise.
26705 (output_line_info): Add code to check which section we're in and
26706 use appropriate hot/cold label.
26707 (add_location_or_constant_value_attribute): Likewise.
26708 (gen_subprogam_die): Modify arange attributes to use correct labels.
26709 (dwarf2out_begin_block): Change call to function_section into call to
26710 current_function_section.
26711 (dwarf2out_end_block): Likewise.
26712 (dwarf2out_source_line): Likewise.
26713 (dwarf2out_var_location): Add code to check whether in hot or cold
26714 section and use the appropriate label.
26715 * except.c (output_function_exception_table): Change call to
26716 function_section into call to current_function_section.
26717 * final.c (profile_function): Likewise.
26718 (scan_ahead_for_unlikely_executed_note): Remove function.
26719 (final_scan_insn): Remove calls to
26720 scan_ahead_for_unlikely_executed_note, and related code for switching
26721 to cold section, except for the single time
26722 NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered; add calls to
26723 debug_hooks->switch_text_sections; replace appropriate calls to
26724 function_section with calls to current_function_section.
26725 * ifcvt.c (find_if_case_1): Remove redundancy from condition, add
26726 test_bb to condition.
26727 (find_if_case_2): Likewise.
26728 * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
26729 NOTE_INSN_SWITCH_TEXT_SECTIONS. Update comment appropriately.
26730 * opts.c (decode_options): Change warning about hot/cold partitioning
26731 with exceptionss to inform (so as not to cause bootstrap failures);
26732 remove warning about partitioning with DWARF debug info.
26733 * output.h (current_function_section): Add new function decl.
26734 (insert_section_boundary_note): Likewise.
26735 (enum in_section): Move this declaration here from varasm.c.
26736 (unlikely_section_label): Likewise.
26737 (unlikely_text_section_name): Likewise.
26738 (last_text_section_name): New global variable.
26739 (last_text_section): Likewise.
26740 (hot_section_label): Likewise.
26741 (hot_section_end_label): Likewise.
26742 (cold_section_end_label): Likewise.
26743 * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
26744 * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
26745 to NOTE_INSN_SWITCH_TEXT_SECTIONS.
26746 * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note
26747 insn from consideration.
26748 * sdbout.c (sdb_debug_hooks): Add do_nothing for new function,
26749 switch_text_section.
26750 * varasm.c (basic-block.h): Add new include.
26751 (unlikely_section_label_printed): Remove global variable.
26752 (unlikely_section_label): Make global variable not be static any more.
26753 (unlikely_text_section_name): Likewise.
26754 (hot_section_end_label): New global variable (not static)
26755 (first_function_block_is_cold): Likewise.
26756 (hot_section_label): Likewise.
26757 (cold_section_end_label): Likewise..
26758 (last_text_section): New global variable, not static.
26759 (last_text_section_name): New global variable, not static.
26760 (initialize_cold_section_name): New function.
26761 (enum in_section): Move declaration to output.h.
26762 (text_section): Update last_text_section.
26763 (unlikely_text_section): Replace code to determine cold section name
26764 with call to initialize_cold_section_name; Add code to update
26765 last_text_section; remove code for printing out label.
26766 (named_section_real): Add code to update last_text_section and
26767 last_text_section_name as appropriate.
26768 (function_section): Change test for 'unlikely' to depend on
26769 first_function_block_is_cold (moved old test to
26770 current_function_section).
26771 (current_function_section): New function.
26772 (assemble_start_function): Move code that frees
26773 unlikely_text_section_name; initialize hot_section_end_label;
26774 print hot and cold section labels at the start of the function;
26775 set first_function_block_is_cold, if appropriate; initialize l
26776 ast_text_section; add call to insert_section_boundary_note.
26777 (assemble_end_function): Add code to write out hot and cold section
26779 *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
26780 switch_text_section.
26781 * config/darwin.c (machopic_select_section): Replace incorrect
26782 function in base_funs; update reloc for cold sections if necessary.
26783 * config/darwin.h (SECTION_FUNCTION): Add code to update
26784 last_text_section if appropriate.
26785 (text_unlikely_section): Remove.
26786 * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
26787 * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
26788 * config/xtensa/xtensa.c (override_options): Turn off hot/cold
26789 partitioning for this architecture.
26791 2005-03-31 Olivier Hainque <hainque@adacore.com>
26793 * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
26794 defined and non-zero.
26796 2005-03-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
26799 * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
26802 2005-03-31 Alan Modra <amodra@bigpond.net.au>
26805 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
26806 label operand. Remove (use (unspec..)). Don't emit a label on
26808 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
26809 generate inline label for load_toc_v4_PIC_1b.
26810 (rs6000_emit_load_toc_table): Likewise.
26812 2005-03-31 Kazu Hirata <kazu@cs.umass.edu>
26814 * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
26815 ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
26817 2005-03-29 Devang Patel <dpatel@apple.com>
26819 * tree-sra.c (decide_block_copy): Disable scalarization of
26822 2005-03-30 Stuart Hastings <stuart@apple.com>
26823 Dale Johannesen <dalej@apple.com>
26825 * Makefile.in (print-tree.o): Depend on tree-iterator.h.
26826 * print-tree.c (print_node): Add case STATEMENT_LIST.
26828 2005-03-31 Alan Modra <amodra@bigpond.net.au>
26830 * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
26831 (powerpc64-*-linux*): Use it. Rearrange tm_file assignment.
26832 (powerpc-*-linux*): Build a biarch compiler when --enable-targets
26833 is given with "powerpc64*" or "all", or when --with-cpu chooses
26836 2005-03-30 James E. Wilson <wilson@specifixinc.com>
26839 * dwarf2out.c (add_high_low_attributes): New function, extracted from
26840 gen_lexical_block_die.
26841 (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
26843 2005-03-31 Jan Hubicka <jh@suse.cz>
26845 2004-11-02 Jan Hubicka <jh@suse.cz>
26847 * cgraph.c (cgraph_varpool_node_name): New function.
26848 (dump_cgraph_varpool_node): New function.
26849 (dump_varpool): New function.
26850 * cgraphunit.c (cgraph_optimize): Dump varpool.
26852 2004-10-16 Jan Hubicka <jh@suse.cz>
26854 * cgraph.c (decide_is_variable_needed): New function.
26855 (cgraph_varpool_finalize_decl): Use it.
26856 * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
26858 * final.c (output_addr_const): Do not call mark_referenced.
26859 * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
26860 always go via cgraph.
26861 * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
26862 (check_global_declarations): Ifdef out code clearing DECL_RTL.
26863 * tree-optimize.c (execute_inline): Mark functions called.
26864 * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
26866 2004-10-11 Jan Hubicka <jh@suse.cz>
26868 * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
26869 (cgraph_varpool_last_needed_node): New static variable.
26870 (enqueue_needed_varpool_node): Break out from ...; add items to the
26871 end of queue; update first pointers.
26872 (cgraph_varpool_mark_needed_node): ... here.
26873 (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
26874 (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
26875 * cgraph.h (cgraph_varpool_node): Add analyzed field.
26876 (cgraph_varpool_first_unanalyzed_node): Declare.
26877 * cgraphunit.c: Include output.h.
26878 (cgraph_varpool_analyze_pending_decls): New function.
26879 (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
26880 for errors, analyze pending decls.
26881 (cgraph_finalize_compilation_unit): Only analyze decls.
26882 (cgraph_optimize): Assemble the decls after expanding.
26884 2005-03-30 Daniel Berlin <dberlin@dberlin.org>
26886 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
26887 subvars get marked properly in tags for grouping.
26888 (add_pointed_to_var): Mark only actual pointed to
26889 variables/subvars in addresses needed.
26890 (create_overlap_variables_for): Clear call clobbered on original
26892 * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
26893 addresable vars with subvars into list.
26894 * tree-ssa.c (verify_ssa_name): Verify original is not used where
26897 2005-03-30 Richard Henderson <rth@redhat.com>
26899 * cgraph.h (struct cgraph_node): Add alias.
26900 * varasm.c (assemble_alias): Set it.
26901 * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
26902 avoid calling cgraph_expand_function.
26904 2005-03-30 Tom Tromey <tromey@redhat.com>
26906 * tree.def (FILE_TYPE): Removed.
26907 * typeclass.h (enum type_class): Removed file_type_class.
26908 * dwarf2out.c (is_base_type): Updated.
26909 (gen_type_die): Likewise.
26910 * dbxout.c (dbxout_type): Updated.
26911 * builtins.c (type_to_class): Updated.
26912 * tree.c (type_contains_placeholder_1): Updated.
26913 * config/sparc/sparc.c (sparc_type_code): Updated.
26914 * config/ia64/ia64.c (hfa_element_mode): Updated.
26915 * expr.c (count_type_elements): Updated.
26916 * stor-layout.c (layout_type): Updated.
26917 * tree-inline.c (remap_type): Updated.
26918 * tree-pretty-print.c (dump_generic_node): Updated.
26920 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
26922 * builtins.c (expand_builtin_powi): Fix mode of
26923 2nd argument to match int.
26924 * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
26925 2nd argument type to int.
26926 * libgcc2.c: Change prototype of __powi* functions to use
26929 2005-03-30 Dale Johannesen <dalej@apple.com>
26931 PR middle-end/19225
26932 * calls.c (expand_call): Flush pending deferrals before
26935 2005-03-30 Joseph S. Myers <joseph@codesourcery.com>
26939 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
26940 C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
26941 c_label_context, label_context_stack): New.
26942 * c-decl.c (define_label): Check for jumps into statement
26943 expressions. Add label to list of defined labels.
26944 (start_function): Push context on label_context_stack.
26945 (finish_function): Pop context from label_context_stack.
26946 * c-typeck.c (label_context_stack): New.
26947 (c_finish_goto_label): Check for jumps into statement
26948 expressions. Add label to list of jumped to labels.
26949 (struct c_switch): Add blocked_stmt_expr.
26950 (c_start_case): Initialize it.
26951 (do_case): Check it.
26952 (c_finish_case): Verify !blocked_stmt_expr.
26953 (c_begin_stmt_expr): Push context on label_context_stack.
26954 Increment blocked_stmt_expr. Mark labels jumped to from outside
26956 (c_finish_stmt_expr): December blocked_stmt_expr. Mark labels
26957 defined in the statement expression and no longer jumpable to.
26958 Mark labels jumped to from just outside the statement expression
26959 as again definable. Pop context from label_context_stack.
26960 * doc/extend.texi (Statement Exprs): Update.
26962 2005-03-30 Joseph S. Myers <joseph@codesourcery.com>
26965 * c-decl.c (start_function): Check for old_decl being
26968 2005-03-30 Ian Lance Taylor <ian@airs.com>
26970 * final.c (final): Remove prescan parameter. Change all callers.
26971 (final_scan_insn): Remove prescan parameter. Change all callers.
26973 2005-03-30 Kazu Hirata <kazu@cs.umass.edu>
26975 * tree-vectorizer.c: Fix comment typos.
26977 2005-03-30 Sebastian Pop <pop@cri.ensmp.fr>
26979 * tree-scalar-evolution.c (instantiate_parameters_1): Return
26980 as soon as a chrec_dont_know is detected.
26982 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
26984 Merge from csl-arm-branch.
26985 2004-02-12 Mark Mitchell <mark@codesourcery.com>
26987 * tlink.c (recompile_files): Do not assume that "rename" can
26988 overwrite an existing file.
26990 2005-03-31 Paolo Bonzini <bonzini@gnu.org>
26992 * configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
26993 * configure: Regenerate.
26995 2005-03-30 Alan Modra <amodra@bigpond.net.au>
26997 * doc/install.texi: Update binutils requirement for powerpc*-linux.
26999 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
27001 * calls.c (struct arg_data): Update "partial" comment.
27002 (load_register_parameters): Update "nregs" comment.
27004 2005-03-30 Richard Sandiford <rsandifo@redhat.com>
27006 * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
27007 (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
27008 (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
27009 (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
27010 (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
27011 (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
27012 than target_flags & 0.
27013 * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
27014 (iq2000_arch, iq2000_parse_cpu): Delete.
27015 (TARGET_HANDLE_OPTION): Override default.
27016 (iq2000_handle_option): New function.
27017 (override_options): Remove -march= and -mcpu= handling.
27018 * config/iq2000/iq2000.opt: New file.
27020 2005-03-30 Richard Sandiford <rsandifo@redhat.com>
27022 * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
27023 * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
27024 (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
27025 (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
27026 (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
27027 (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
27028 (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
27029 (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
27030 (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
27031 (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
27032 (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
27033 (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
27034 (c4x_rpts_cycles_string, c4x_cpu_version_string)
27035 (TARGET_OPTIONS): Delete.
27036 (c4x_rpts_cycles, c4x_cpu_version): Declare.
27037 (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
27038 (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
27039 * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
27040 (c4x_cpu_version_string): Delete.
27041 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
27042 (c4x_handle_option): New function. Map -m3x and -m4x options to the
27043 equivalent -mcpu= option.
27044 (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
27045 Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
27046 TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
27047 or clearing the appropriate MASK_* bit.
27048 (c4x_file_start): Use c4x_cpu_version.
27049 * config/c4x/c4x.opt: New file.
27051 2005-03-30 Richard Sandiford <rsandifo@redhat.com>
27053 * doc/options.texi: Document the new MaskExists flag.
27054 * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
27055 if the option has the MaskExists flag.
27057 2005-03-30 Richard Sandiford <rsandifo@redhat.com>
27059 * opt-functions.awk (flag_set_p, test_flag): New functions.
27060 (switch_flags): Use them.
27061 * opth-gen.awk: Use flag_set_p to check for flags.
27062 * optc-gen.awk: Likewise. Use opt_args to check for Init(...) flags.
27064 2005-03-30 Ian Lance Taylor <ian@airs.com>
27066 * config.host (i[34567]86-*-mingw32*): Don't set
27067 host_can_use_collect2 to no.
27069 2005-03-30 Alan Modra <amodra@bigpond.net.au>
27072 * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
27073 Remove convert_memory_address call duplicating that in memory_address.
27075 2005-03-29 Richard Henderson <rth@redhat.com>
27078 * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
27079 (build_compound_literal): Likewise. Propagate decl type into the
27081 (finish_decl): Likewise. Use new return value from complete_array_type
27082 for zero sized arrays.
27083 (complete_array_type): Move ...
27084 * c-common.c (complete_array_type): ... here. Change first argument
27085 to pointer-to-type-node. Consistently use sizetype for the index
27086 except for zero sized arrays. Detect zero sized arrays for pedantic
27087 mode diagnostics. Create a new type node instead of modifying the
27089 * c-tree.h (complete_array_type): Move decl ...
27090 * c-common.h (complete_array_type): ... here.
27092 2005-03-29 Richard Henderson <rth@redhat.com>
27095 * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
27097 2005-03-29 Kazu Hirata <kazu@cs.umass.edu>
27099 * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
27100 debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
27101 rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
27102 tree-profile.c, tsystem.h, value-prof.h: Update copyright.
27104 2005-03-29 Eric Christopher <echristo@redhat.com>
27106 * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
27107 truthvalue conversion removal.
27109 2005-03-29 Ian Lance Taylor <ian@airs.com>
27112 * collect2.c: Never include <vfork.h>.
27113 (VFORK_STRING, vfork): Don't define.
27114 (pid): Remove global variable.
27115 (handler): Call raise instead of kill (getpid(), ...).
27116 (collect_wait): Add pex parameter. Change all callers. Use
27117 pex_get_status rather than pwait.
27118 (do_wait): Add pex parameter. Change all callers.
27119 (collect_execute): Return struct pex_obj * rather than void. Use
27120 pex routines rather than pexecute.
27121 (fork_execute): Get pex_obj from collect_execute, and pass it to
27123 (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
27124 Only declare quit_handler if SIGQUIT is defined.
27125 (scan_libraries): Likewise.
27126 * collect2.h (collect_execute): Update declaration.
27127 (collect_wait): Update declaration.
27128 * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
27129 pass it to collect_wait.
27131 2005-03-29 Joseph S. Myers <joseph@codesourcery.com>
27134 * c-parser.c (c_parser_compound_statement_nostart): Give error
27135 message for EOF instead of just setting parser->error.
27137 2005-03-29 Dorit Naishlos <dorit@il.ibm.com>
27139 * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
27140 (slpeel_update_phi_nodes_for_guard1): New function.
27141 (slpeel_update_phi_nodes_for_guard2): New function.
27142 (slpeel_tree_peel_loop_to_edge): Call above new functions instead
27143 of slpeel_update_phi_nodes_for_guard.
27144 (vectorize_loops): Remove call to loop_closed_rewrite.
27145 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
27148 2005-03-29 Richard Sandiford <rsandifo@redhat.com>
27150 * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
27151 (TARGET_LITTLE_ENDIAN): New macro.
27152 * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
27153 (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
27154 (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
27155 (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
27156 (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
27157 (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
27158 (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
27159 (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
27160 (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
27161 (TARGET_OPTIONS): Delete.
27162 (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
27163 (CACHE_FLUSH_TRAP): Turn into an integer.
27164 (TARGET_LITTLE_ENDIAN): Define to 0 by default.
27165 (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
27166 -mflush-trap is in use.
27167 * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
27168 (m32r_cache_flush_trap_string): Delete.
27169 (m32r_model) Initialize to M32R_MODEL_DEFAULT.
27170 (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
27171 (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
27172 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
27173 (m32r_handle_option): New function. Move -mflush-trap=, -mflush-func=,
27174 -mmodel= and -msdata= handling from...
27175 (m32r_init): ...here.
27176 * config/m32r/m32r.opt: New file.
27178 2005-03-29 Keith Besaw <kbesaw@us.ibm.com>
27180 * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
27181 (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
27182 * tree-vect-analyze.c (vect_object_analysis): additional parm
27183 pass back a "struct ptr_info_def *" with the points-to info.
27184 (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
27185 statement using info returned from vect_object_analysis.
27186 * tree-vect-transform.c (update_vuses_to_preheader): New function.
27187 (vect_create_data_ref_ptr): Remove updates to vars_to_rename
27188 for virtual uses and defs when creating a replacement vector
27189 reference. Call duplicate_ssa_name_ptr_info to define points-to
27190 info for vector pointer replacement using STMT_VINFO_PTR_INFO.
27191 (vectorizable_store): copy_virtual_operands and update
27192 definition statements.
27193 (vectorizable_load): copy_virtual_operands. Remove call to
27194 mark_call_clobbered_vars_to_rename for call to "const" builtin.
27195 * tree-vectorizer.c (vectorize_loops): Remove calls to
27196 rewrite_into_ssa and bitmap_clear (vars_to_rename).
27197 (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
27198 * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
27199 define macro STMT_VINFO_PTR_INFO for use in accessing.
27200 * tree.h add export of duplicate_ssa_name_ptr_info.
27201 * rs6000.c (altivec_init_builtins): Declare builtin function
27202 __builtin_altivec_mask_for_load to be "const".
27204 2005-03-29 Jakub Jelinek <jakub@redhat.com>
27206 PR middle-end/20622
27207 * cgraph.h (struct cgraph_varpool_node): Add alias field.
27208 * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
27209 assemble_variable on aliases.
27210 * varasm.c (assemble_alias): Set node->alias.
27211 * toplev.c (wrapup_global_declarations): Don't call
27212 rest_of_decl_compilation on aliases again.
27214 2005-03-29 Paul Brook <paul@codesourcery.com>
27216 * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
27217 * config/arm/arm.c (arm_dbx_register_number): New function.
27218 * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
27220 2005-03-29 Eric Botcazou <ebotcazou@libertysurf.fr>
27222 PR middle-end/20263
27223 * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
27224 the DECL_NAME, not the DECL_ASSEMBLER_NAME.
27226 2005-03-29 Dale Johannesen <dalej@apple.com>
27228 * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
27229 $(TREE_H) and $(COVERAGE_H).
27230 * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
27231 * opts.c (common_handle_option): Enable tree-based value transforms.
27232 * toplev.c (process_options): Ditto.
27233 * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
27234 refers to references to this type.
27235 * tree-flow.h: (struct stmt_ann_d): Add histograms field.
27236 * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
27237 for may_be_more, may_be_less.
27238 (rtl_gen_pow2_profiler): Adjust.
27239 (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
27240 (rtl_gen_one_value_profiler): Adjust.
27241 (rtl_gen_const_delta_profiler): Adjust.
27242 * tree-profile.c (tree_gen_interval_profiler): Implement.
27243 (tree_gen_pow2_profiler): Ditto.
27244 (tree_gen_one_value_profiler): Ditto.
27245 (tree_profiling): New.
27246 (pass_tree_profile): Reference it.
27247 * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
27249 (insn_divmod_values_to_profile): Rename to
27250 rtl_divmod_values_to_profile. Adjust.
27251 (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
27252 (insn_prefetch_values_to_profile): Adjust.
27253 (rtl_value_profile_transformations): Adjust.
27254 (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
27255 (gen_mod_pow2): Rename to rtl_mod_pow2.
27256 (gen_mod_subtract): Rename to rtl_mod_subtract.
27257 (divmod_fixed_value_transform): Rename to
27258 rtl_divmod_fixed_value_transform.
27259 (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
27260 (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
27261 (rtl_find_values_to_profile): Adjust.
27262 (tree_value_profile_transformations): Implement.
27263 (tree_divmod_values_to_profile): New.
27264 (tree_values_to_profile): New.
27265 (tree_divmod_fixed_value): New.
27266 (tree_mod_pow2): New.
27267 (tree_mod_subtract): New.
27268 (tree_divmod_fixed_value_transform): New.
27269 (tree_mod_pow2_value_transform): New.
27270 (tree_mod_subtract_transform): New.
27271 (tree_find_values_to_profile): Implement.
27272 * profile.c (instrument_values): Free histograms.
27273 (compute_value_histograms): Adjust. Implement tree version.
27275 2005-03-29 Uros Bizjak <uros@kss-loka.si>
27277 * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
27278 * config/i386/i386.c (output_fix_trunc): Add new round_mode
27279 variable. Output "fldcw" depending on round_mode.
27280 * config/i386/i386.md (UNSPEC_FIST): New.
27281 (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
27282 New isns patterns to implement lrint and llrint built-ins as x87
27283 intrinsic function.
27284 (fistdi2, fist<mode>2 splitters): New splitters.
27285 (lrint<mode>2): New expanders.
27287 2005-03-28 Ian Lance Taylor <ian@airs.com>
27289 * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
27290 0 when calling final_scan_insn.
27292 2005-03-28 Jan Hubicka <jh@suse.cz>
27294 PR middle-end/20635
27295 * varasm.c (mark_decl_referenced): Do not mark extern inline functions
27298 * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
27299 types where possible.
27301 2005-03-26 Per Bothner <per@bothner.com>
27303 Make -f[no-]show-column also control non-cpp diagnostics.
27304 * c.opt (fshow-column): Move option from here ...
27305 * common.opt (fshow-column): ... to here.
27306 * diagnostic.c (diagnostic_build_prefix): Only print column number
27307 if flag_show_column.
27309 2005-03-27 Steven Bosscher <stevenb@suse.de>
27311 * vax-protos.h (vax_output_int_move, vax_output_int_add,
27312 vax_output_conditional_branch): New prototypes.
27313 * vax.c (vax_output_int_move, vax_output_int_add): New functions,
27314 extracted from vax.md mov and add patterns.
27315 (vax_output_conditional_branch): New function to output conditional
27316 branch instructions.
27317 * vax.md: Use mode macros for arithmetic and mov patterns.
27318 Use code macros for the jump patterns.
27320 2005-03-26 Andrew Pinski <pinskia@physics.uc.edu>
27322 * Makefile.in (libbackend.o): Depend on version files;
27323 add custom generation command.
27325 2005-03-26 Andrew Pinski <pinskia@physics.uc.edu>
27328 * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
27329 sure that we have a REG before getting its REGNO.
27331 2005-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27333 * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
27334 * builtins.def (BUILT_IN_STRNDUP): New.
27336 2005-03-25 Pat Haugen <pthaugen@us.ibm.com>
27338 PR tree-optimization/20470
27339 * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
27342 2005-03-25 Mike Stump <mrs@apple.com>
27344 * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
27347 2005-03-25 Geoffrey Keating <geoffk@apple.com>
27349 * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
27350 Use our own structure definitions.
27352 * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
27353 (fix_truncdfsi2): Allow registers or memory as destination.
27354 When TARGET_PPC_GFXOPT, generate simplified pattern.
27355 (fix_truncdfsi2_internal): Use define_insn_and_split.
27356 (fix_truncdfsi2_internal_gfxopt): New.
27357 (fctiwz): Don't confuse register allocation by giving it no choices.
27359 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
27360 (EXTRA_MEMORY_CONSTRAINT): Likewise.
27361 * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
27362 * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
27364 2005-03-25 Kazu Hirata <kazu@cs.umass.edu>
27366 * dominance.c (free_dominance_info): Speed up by freeing et
27367 data structures without maintaining other nodes.
27368 * et-forest.c (et_free_tree_force): New.
27369 * et-forest.h: Add a prototype for et_free_tree_force.
27371 * tree.c (get_set_constructor_bits,
27372 get_set_constructor_bytes): Remove.
27373 * tree.h: Remove the corresponding prototypes.
27375 2005-03-25 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
27378 * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
27379 (vax_rtx_costs): Return false when passed unsupported rtx's. Handle
27380 FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE. Fix costs for POST_INC,
27381 PRE_DEC, NEG and NOT.
27383 2005-03-25 Kazu Hirata <kazu@cs.umass.edu>
27385 * fold-const.c: Convert uses of fold (build (...)) to
27388 2005-03-25 Zdenek Dvorak <dvorakz@suse.cz>
27390 PR rtl-optimization/20249
27391 * cse.c (insert_regs): Do not record equivalence of registers in
27394 2005-03-24 Kazu Hirata <kazu@cs.umass.edu>
27396 * emit-rtl.c (reverse_comparison): Remove.
27397 * rtl.h: Remove the corresponding prototype.
27399 2005-03-24 James E Wilson <wilson@specifixinc.com>
27401 * doc/install.texi (--enable-altivec): Delete docs.
27403 2005-03-24 David Edelsohn <edelsohn@gnu.org>
27405 * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
27406 SFmode and DFmode before reload when
27407 flag_unsafe_math_optimizations not enabled.
27409 2005-03-24 Geoffrey Keating <geoffk@apple.com>
27411 * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
27413 * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
27414 MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
27416 2005-03-24 Nathan Sidwell <nathan@codesourcery.com>
27418 * configure.ac (enable-checking): Add 'runtime' option.
27419 * doc/install.texi (enable-checking): Document 'runtime' checking.
27420 * tsystem.h (gcc_assert, gcc_unreachable): Define.
27421 * config.in: Regenerated.
27422 * configure: Regenerated.
27424 2005-03-23 Uros Bizjak <uros@kss-loka.si>
27426 * optabs.h (enum optab_index): Remove OTI_llrint.
27427 (llrint_optab): Remove macro.
27428 * optabs.c (init_optabs): Remove llrint_optab initialization.
27429 * genopinit.c (optabs): Remove llrint_optab implementation.
27430 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
27433 2005-03-24 Alexandre Oliva <aoliva@redhat.com>
27435 PR rtl-optimization/20532
27436 * simplify-rtx.c (simplify_binary_operation_1): Protect from
27437 overflow when adding coefficients for PLUS or MINUS.
27438 (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
27441 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
27443 * langhooks.h (truthvalue_conversion): Remove.
27444 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
27445 LANG_HOOKS_TRUTHVALUE_CONVERSION.
27446 * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
27447 * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
27448 * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
27450 2005-03-23 Kazu Hirata <kazu@cs.umass.edu>
27452 * params.def: Fix a typo.
27453 * config/mips/mips.c: Follow the spelling convensions.
27454 * doc/invoke.texi: Fix typos.
27456 2005-03-23 Daniel Berlin <dberlin@dberlin.org>
27458 Fix PR tree-optimization/20601
27460 * tree-ssa-pre.c (insert_aux): Add missing condition to
27463 2005-03-23 Ian Lance Taylor <ian@airs.com>
27465 * final.c (final_scan_insn): Don't remove no-op instructions.
27466 * reload1.c (reload): Remove simple no-op instructions even when
27469 2005-03-23 Dorit Naishlos <dorit@il.ib.com>
27471 PR tree-optimization/20501
27472 * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
27473 reporting that peeling for alignment is applied moved to...
27474 * (vect_analyze_data_refs_alignment): Here.
27476 2005-03-23 Ian Lance Taylor <ian@airs.com>
27478 * reorg.c (dbr_schedule): Remove #if 0 code to call final.
27480 2005-03-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27482 * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
27483 Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
27485 2005-03-23 Hans-Peter Nilsson <hp@axis.com>
27487 * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
27488 imply that this is called once, independent of asms in code.
27489 Adjust to now being pased output and input lists. Mention helper
27490 function decl_overlaps_hard_reg_set_p.
27491 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
27492 hook_tree_tree_identity and to take three trees, returning third.
27493 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
27495 * stmt.c: include hard-reg-set.h before tree.h.
27496 (decl_overlaps_hard_reg_set_p): New function, broken out from...
27497 (decl_conflicts_with_clobbers_p): Call
27498 decl_overlaps_hard_reg_set_p.
27499 (expand_asm_operands): Pass output and input lists in call to
27500 targetm.md_asm_clobbers.
27501 * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
27502 hook_tree_tree_tree_tree_3rd_identity.
27503 * target.h (struct gcc_target.md_asm_clobbers): Take three tree
27505 * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
27506 * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
27507 parameters, first two unused.
27508 * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
27509 parameters. Only add MOF to clobbers if there's no 'h' mentioned
27510 in constraint letters and MOF is not mentioned as a asm-declared
27511 register in neither of the input and output lists.
27513 2005-03-23 DJ Delorie <dj@redhat.com>
27515 * optabs.c (expand_binop): Make sure the first subword's result
27518 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
27520 * c-common.c (c_common_truthvalue_conversion): Adjust comment.
27521 Call c_common_truthvalue_conversion rather than
27522 lang_hooks.truthvalue_conversion.
27523 * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
27524 * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
27526 * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
27527 c_common_truthvalue_conversion.
27528 * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
27529 c_parser_conditional_expression, c_parser_binary_expression): Call
27530 c_objc_common_truthvalue_conversion.
27531 * c-typeck.c (build_unary_op): Call
27532 c_objc_common_truthvalue_conversion.
27533 (build_conditional_expr): Do not call
27534 lang_hooks.truthvalue_conversion.
27535 (build_binary_op): Call c_common_truthvalue_conversion.
27536 (c_objc_common_truthvalue_conversion): Moved from
27537 c-objc-common.c. Call default_function_array_conversion instead
27538 of default_conversion.
27540 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
27542 * c-common.h (default_conversion): Remove.
27543 (perform_integral_promotions): Add.
27544 * c-tree.h (default_conversion): Add.
27545 * c-typeck.c (perform_integral_promotions): New, split out from
27546 default_conversion.
27547 * c-common.c (check_case_value): Use perform_integral_promotions,
27548 not default_conversion.
27549 (c_add_case_label): Don't continue processing case label after
27550 found to be pointer.
27552 2005-03-23 Mark Mitchell <mark@codesourcery.com>
27554 * gcc.c (do_spec_1): Do not add a -L path for a directory in
27555 the prefix list if we have already added a multilib directory
27556 based on that path.
27557 (main): Do not add MD_EXEC_PREFIX to the list of directories to
27560 2005-03-22 Kazu Hirata <kazu@cs.umass.edu>
27562 * reload1.c (indirect_symref_ok, reload_obstack): Make them
27564 * reload.h: Remove the prototype for indirect_symref_ok.
27566 * reload1.c (indirect_symref_ok): Make it global.
27567 * reload.h: Add a prototype for indirect_symref_ok.
27569 2005-03-22 Kaz Kojima <kkojima@gcc.gnu.org>
27571 * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
27574 2005-03-22 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
27576 * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
27578 2005-03-22 Daniel Berlin <dberlin@dberlin.org>
27580 * c-opts.c (c_common_parse_file): Only start/end main source file
27581 if debug hooks says the writer wants it.
27582 * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
27584 (xcoff_debug_hooks): Ditto.
27585 * debug.c (do_nothing_hooks): Ditto.
27586 * debug.h (gcc_debug_hooks): Ditto.
27587 * dwarf2out.c (dwarf2_debug_hooks): Ditto.
27588 * sdbout.c (sdb_debug_hooks): Ditto.
27589 * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
27591 2005-03-22 Mark Mitchell <mark@codesourcery.com>
27593 * doc/extend.texi: Deprecate C++ min/max operators.
27595 2005-03-22 Zdenek Dvorak <dvorakz@suse.cz>
27597 * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
27598 artificial original candidates.
27600 2005-03-22 Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
27601 Jan Hubicka <jh@suse.cz>
27602 Steven Bosscher <stevenb@suse.de>
27604 * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
27605 call cost based on argument sizes.
27606 (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
27608 * params.def: (max-inline-inssn-single): Set to 450.
27609 (max-inline-insns-auto): Set to 90.
27610 (max-inline-insns-recursive): Set to 450
27611 (max-inline-insns-recursive-auto): Set to 450.
27612 (large-function-insns): Set to 2700.
27613 (inline-call-cost): New parameter.
27614 * tree-inline.c (estimate_move_cost): New function.
27615 (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
27616 for non-gimple-regs, set cost to 0 for gimple-regs. Compute call size
27617 based on arguments.
27618 * tree-inline.h (estimate_move_cost): Declare.
27619 * invoke.texi: (max-inline-inssn-single): Change default to 450.
27620 (max-inline-insns-auto): Change default to 90.
27621 (max-inline-insns-recursive): Change default to 450
27622 (max-inline-insns-recursive-auto): Change default to 450.
27623 (large-function-insns): Change default to 2700.
27624 (inline-call-cost): Document new parameter.
27626 2005-03-22 Richard Sandiford <rsandifo@redhat.com>
27628 * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
27629 (TARGET_DEFAULT): Delete.
27630 * config/i860/i860.opt: New file.
27632 2005-03-22 Richard Sandiford <rsandifo@redhat.com>
27634 * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
27635 (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
27636 (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
27637 (frv_sched_lookahead): Delete.
27638 * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
27639 (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
27640 (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
27641 (MASK_LIBPIC, MASK_ACC_4, MASK_PACK, MASK_LONG_CALLS)
27642 (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
27643 (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
27644 (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
27645 (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
27646 (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
27647 (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
27648 (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
27649 (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
27650 (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
27651 (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
27652 (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
27653 (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
27654 (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
27655 (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
27656 (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
27657 (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
27658 (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
27659 (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
27660 * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
27661 (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
27662 (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
27663 (frv_sched_lookahead): Delete.
27664 (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
27665 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
27666 (frv_handle_option): New function. Move -mcpu= handling from...
27667 (frv_override_options): ...here. Remove handling of other
27669 (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
27670 TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
27671 (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
27672 and TARGET_NO_MULTI_CE.
27673 (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
27674 !TARGET_VLIW_BRANCH.
27675 * config/frv/frv.opt: New file.
27677 2005-03-22 Kazu Hirata <kazu@cs.umass.edu>
27679 * fold-const.c (fold_ternary): Take decomposed arguments of
27681 (fold): Update a call to fold_ternary.
27683 * fold-const.c (fold_build1, fold_build2, fold_build3): New.
27684 * tree.h: Add corresponding prototypes.
27686 2005-03-22 Jakub Jelinek <jakub@redhat.com>
27689 * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
27690 between jump table and its label.
27691 * final.c (shorten_branches): Handle notes in between ADDR_VEC
27692 resp. ADDR_DIFF_VEC and the label preceeding it.
27693 (final_scan_insn): Likewise. Ensure ADDR_VEC resp. ADDR_DIFF_VEC
27694 is emitted in the right section.
27696 2005-03-22 Kazu Hirata <kazu@cs.umass.edu>
27698 * fold-const.c (fold_unary, fold_binary): Update comments
27701 2005-03-22 Hans-Peter Nilsson <hp@axis.com>
27703 PR rtl-optimization/20527
27704 * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
27705 REG_INC note, test that the register also isn't mentioned in PRED
27708 2005-03-22 Ben Elliston <bje@au.ibm.com>
27710 * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
27713 2005-03-21 Mike Stump <mrs@apple.com>
27715 * varasm.c (default_assemble_visibility): Remove extra ().
27717 2005-03-21 Roger Sayle <roger@eyesopen.com>
27719 PR middle-end/20557
27720 * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
27721 to determine whether a block can be duplicated, rather than test
27722 whether the block contains noncopyable insns ourselves.
27724 2005-03-21 Kazu Hirata <kazu@cs.umass.edu>
27726 * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
27729 2005-03-21 Richard Sandiford <rsandifo@redhat.com>
27731 * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
27733 2005-03-21 Richard Sandiford <rsandifo@redhat.com>
27735 * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
27736 (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
27737 * config/fr30/fr30.opt: New file.
27739 2005-03-18 Daniel Berlin <dberlin@dberlin.org>
27741 Fix PR tree-optimization/20542
27743 * tree-flow-inline.h (overlap_subvar): Move to here.
27744 * tree-ssa-operands.c: From here.
27745 * tree-flow.h (overlap_subvar): Declare.
27746 * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
27747 * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
27748 for variables with subvars.
27750 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
27752 PR middle-end/20177
27753 * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
27754 * modulo-sched.c (const_iteration_count): Return on NULL
27756 (print_node_sched_params): Return on NULL dump_file.
27757 (generate_reg_moves): Handle reg-anti dependencies and disregard
27758 closing branch when generating register moves.
27759 (sms_schedule): Mark the SMSed block dirty.
27760 * passes.c (rest_of_handle_sms): Call update_life_info for all
27762 * testsuite/gcc.dg/20050321-1.c: New test.
27764 2005-03-21 Bob Wilson <bob.wilson@acm.org>
27766 * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
27767 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
27768 movqi_internal): Likewise.
27770 2005-03-21 Bob Wilson <bob.wilson@acm.org>
27772 * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
27773 xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
27774 xtensa_b4const): Delete prototypes.
27775 (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
27776 xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
27777 (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
27778 xtensa_extra_constraint): New prototypes.
27779 (add_operand, arith_operand, nonimmed_operand, mem_operand,
27780 mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
27781 lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
27782 move_operand, const_float_1_operand, fpmem_offset_operand,
27783 branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
27784 * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
27785 (xtensa_b4const_or_zero): ...this. Change return type to bool and
27786 argument type to HOST_WIDE_INT.
27787 (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
27788 xtensa_mask_immediate): Likewise.
27789 (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
27790 Likewise. Also make these functions static.
27791 (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
27792 (xtensa_const_ok_for_letter_p): New.
27793 (add_operand, arith_operand, nonimmed_operand, mem_operand,
27794 mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
27795 lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
27796 move_operand, const_float_1_operand, fpmem_offset_operand,
27797 branch_operator, ubranch_operator, boolean_operator): Move to
27799 (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
27800 (xtensa_mem_offset): Change return type to bool.
27801 (xtensa_extra_constraint): New.
27802 (gen_int_relational): Update type of const_range_p function pointer.
27803 Use xtensa_b4const_or_zero.
27804 * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
27805 xtensa_const_ok_for_letter_p. Update comments.
27806 (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
27807 (PREDICATE_CODES): Delete.
27808 * config/xtensa/xtensa.md: Include predicates.md.
27809 * config/xtensa/predicates.md: New file.
27811 2005-03-21 Kazu Hirata <kazu@cs.umass.edu>
27813 * config/v850/v850-protos.h: Remove the prototypes for
27814 reg_or_int9_operand, reg_or_const_operand,
27815 pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
27816 reg_or_0_operand, reg_or_int5_operand, call_address_operand,
27817 movsi_source_operand, power_of_two_operand,
27818 not_power_of_two_operand, special_symbolref_operand,
27819 pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
27820 register_is_ok_for_epilogue.
27821 * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
27822 reg_or_int9_operand, reg_or_const_operand,
27823 call_address_operand, special_symbolref_operand,
27824 movsi_source_operand, power_of_two_operand,
27825 not_power_of_two_operand, register_is_ok_for_epilogue,
27826 pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
27827 pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
27829 * config/v850/v850.h (PREDICATE_CODES): Remove.
27830 * config/v850/v850.md: Include predicates.md.
27831 * config/v850/predicates.md: New.
27833 2005-03-21 Zack Weinberg <zack@codesourcery.com>
27835 * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
27836 (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
27837 (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
27838 (itoolsdir, itoolsdatadir): Move definition above new first use.
27839 (install-itoolsdirs): New rule.
27840 (install-mkheaders): Depend on install-itoolsdirs, not
27841 install-include-dir.
27843 2005-03-21 Kazu Hirata <kazu@cs.umass.edu>
27845 * tree-into-ssa.c: Remove obsolete comments.
27847 2005-03-21 Richard Guenther <rguenth@gcc.gnu.org>
27849 * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
27850 unrolling if -fpeel-loops is specified, too.
27851 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
27852 Remove superfluous check for flag_unroll_loops.
27854 2005-03-21 Uros Bizjak <uros@kss-loka.si>
27856 * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
27857 (lrint_optab, llrint_optab): Define corresponding macros.
27858 * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
27859 * genopinit.c (optabs): Implement lrint_optab using lrintsi2
27860 pattern and llrint_optab using llrintdi2 patterns.
27861 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
27862 using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
27863 (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
27864 BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
27865 flag_unsafe_math_optimizations is set.
27867 2005-03-21 Paolo Bonzini <bonzini@gnu.org>
27869 * combine.c (combine_simplify_rtx, simplify_if_then_else,
27870 simplify_logical, if_then_else_cond, known_cond,
27871 simplify_comparison): Adjust calls to reverse_comparison.
27872 Don't use combine_reversed_comparison_code).
27873 (combine_reversed_comparison_code): Remove.
27874 (reversed_comparison): Using reversed_comparison_code, move it...
27875 * jump.c (reversed_comparison): ... here.
27876 * rtl.h (reversed_comparison): Add prototype.
27878 2005-03-21 Kazu Hirata <kazu@cs.umass.edu>
27880 * builtins.c (fold_builtin): Take decomposed arguments of
27882 * fold-const.c (fold_ternary): Update a call to fold_builtin.
27883 * gimplify.c (gimplify_call_expr): Likewise.
27884 * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
27885 * tree.h: Update the prototype of fold_builtin.
27887 2005-03-21 Paolo Bonzini <bonzini@gnu.org>
27889 * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
27890 * rtlhooks.c (gen_lowpart_no_emit_general): New.
27891 * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
27892 (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
27893 * simplify-rtx.c (simplify_binary_operation_1): Use it.
27895 2005-03-21 Kazu Hirata <kazu@cs.umass.edu>
27897 * builtins.c (fold_builtin_1): Take decomposed arguments of
27899 (fold_builtin): Update a call to fold_builtin_1.
27901 2005-03-21 Nathan Sidwell <nathan@codesourcery.com>
27904 * gcov.c (output_lines): Only output function block summary when
27905 outputting branch information.
27906 * doc/gcov.texi: Document format of preamble and additional block
27909 2005-03-21 Richard Sandiford <rsandifo@redhat.com>
27911 * libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
27912 (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make
27913 the defaults false if BITS_PER_UNIT != 8.
27914 (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI)
27915 (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather
27916 than BITS_PER_UNIT != 8.
27917 (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi)
27918 (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi)
27919 (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove
27921 * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI)
27922 (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE.
27924 2005-03-20 Roger Sayle <roger@eyesopen.com>
27926 PR middle-end/20539
27927 * fold-const.c (fold_binary): Fix type mismatch between
27928 TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types.
27929 (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue
27930 for non-truth-valued expressions.
27932 * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK
27933 and FUNCTION_DECL in the main switch.
27934 <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
27935 TRUTH_XOR_EXPR>: When changing the result type of these tree nodes,
27936 we also need to convert their operands to match.
27937 <TRUTH_NOT_EXPR>: Likewise.
27939 2005-03-21 Joseph S. Myers <joseph@codesourcery.com>
27941 * c-common.c (lvalue_or_else): Replace by lvalue_error; only give
27942 diagnostic without checking whether an lvalue.
27943 * c-common.h (lvalue_p): Remove.
27944 (enum lvalue_use): Update comment.
27945 (lvalue_or_else): Replace by lvalue_error.
27946 * c-typeck.c (lvalue_p): Make static.
27947 (lvalue_or_else): New. Call lvalue_error.
27949 2005-03-21 Alan Modra <amodra@bigpond.net.au>
27951 * config/rs6000/rs6000.c (rs6000_parm_start): New function.
27952 (function_arg_advance): Use rs6000_parm_start.
27953 (function_arg, rs6000_arg_partial_bytes): Likewise.
27955 2005-03-20 Joseph S. Myers <joseph@codesourcery.com>
27957 * c-common.c (check_case_value): Adjust comment about stripping
27959 (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
27960 * c-typeck.c (default_conversion, convert_arguments,
27961 build_modify_expr, convert_for_assignment, store_init_value,
27962 digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
27963 manually. Remove inaccurate comments.
27965 2005-03-20 Roger Sayle <roger@eyesopen.com>
27966 Joseph S. Myers <joseph@codesourcery.com>
27968 * varasm.c (do_assemble_alias): Restore comment describing function.
27969 Annotate the target parameter as potentially unused.
27971 2005-03-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
27974 * config/avr/avr.c (avr_output_function_prologue): Do not use
27975 current_function_name() in a label, use a local label instead.
27977 2005-03-20 David Edelsohn <edelsohn@gnu.org>
27979 * config/rs6000/rs6000.c (rs6000_generate_compare): Test
27980 flag_finite_math_only, not flag_unsafe_math_optimizations.
27982 2005-03-20 Kazu Hirata <kazu@cs.umass.edu>
27984 * builtins.c (fold_builtin_1): Update a call to
27985 targetm.fold_builtin.
27986 * hooks.c (hook_tree_tree_bool_null): Rename to
27987 hook_tree_tree_tree_bool_null. Take one more argument of type
27989 * hooks.h: Update the prototype of hook_tree_tree_bool_null.
27990 * target-def.h (TARGET_FOLD_BUILTIN): Define it as
27991 hook_tree_tree_tree_bool_null.
27992 * target.h (gcc_target): Update the prototype of fold_builtin.
27993 * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
27994 arguments of CALL_EXPR.
27995 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update. Mention the
27998 2005-03-20 Jan Hubicka <jh@suse.cz>
28000 * cgraph.h (cgraph_node): Add prev_clone pointer.
28001 * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
28002 (cgraph_clone_node): Produce doubly linked chain.
28004 2005-03-20 Joseph S. Myers <joseph@codesourcery.com>
28006 * c-common.c (handle_aligned_attribute, check_function_sentinel,
28007 get_nonnull_operand, handle_sentinel_attribute,
28008 check_function_arguments_recurse): Do not strip NOPS from
28010 * c-decl.c (check_bitfield_type_and_width, build_enumerator):
28012 * c-format.c (get_constant): Likewise.
28013 * c-parser.c (c_parser_postfix_expression): Likewise.
28014 * c-typeck.c (set_init_index): Likewise.
28015 (convert_arguments): Don't check for NOP_EXPR containing integer
28018 2005-03-20 Kazu Hirata <kazu@cs.umass.edu>
28020 * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
28021 fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
28022 Take decomposed arguments of CALL_EXPR.
28023 (fold_builtin_1): Update calls to the functions mentioned
28026 2005-03-20 Joseph S. Myers <joseph@codesourcery.com>
28028 * c-decl.c (check_bitfield_type_and_width): Require bit-field
28029 width to have integer type.
28030 (build_enumerator): Require enumerator value to have integer type.
28032 2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
28034 * doc/extend.texi (__builtin_inf): Move statement about INFINITY
28037 2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
28039 * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
28040 std=iso9899:199x): Correct descriptions.
28042 2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
28044 * config.gcc: Consistently use solaris2.1[0-9]* instead of
28047 2005-03-19 Kazu Hirata <kazu@cs.umass.edu>
28049 * builtins.c (fold_builtin_memcpy): Take decomposed arguments
28051 (expand_builtin_memcpy, fold_builtin_1): Update calls to
28052 fold_builtin_memcpy.
28054 * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
28055 arguments of CALL_EXPR.
28056 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
28057 fold_builtin_found, fold_builtin_1): Update calls to
28058 fold_trunc_transparent_mathfn.
28060 2005-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28062 PR middle-end/20493
28063 * fold-const.c (fold_widened_comparison): Don't optimize casts of
28064 function pointers on targets that require function pointer
28066 (fold_sign_changed_comparison): Likewise.
28068 2005-03-19 Bernd Schmidt <bernd.schmidt@analog.com>
28070 * combine.c (try_combine): When changing the mode of a hard reg, make
28071 sure that doing so is valid.
28073 2005-03-19 Richard Sandiford <rsandifo@redhat.com>
28075 * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
28076 (TARGET_HANDLE_OPTION): Override default.
28077 (avr_handle_option): New function.
28078 * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
28079 (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
28080 (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
28081 (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
28082 (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
28083 (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
28084 (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
28085 (TARGET_OPTIONS): Delete.
28086 * config/avr/avr.opt: New file.
28088 2005-03-18 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
28090 * config/m32r/m32r-protos.h: Remove the prototypes for
28091 call_address_operand, symbolic_operand, seth_add3_operand,
28092 cmp_int16_operand, uint16_operand, reg_or_int16_operand,
28093 reg_or_uint16_operand, reg_or_cmp_int16_operand,
28094 two_insn_const_operand, move_src_operand,
28095 move_double_src_operand, move_dest_operand,
28096 eqne_comparison_operator, signed_comparison_operator,
28097 large_insn_p, conditional_move_operand, carry_compare_operand,
28098 m32r_block_immediate_operand, extend_operand,
28099 reg_or_eq_int16_operand, int8_operand, and
28100 reg_or_zero_operand.
28101 * config/m32r/m32r.c (call_address_operand, symbolic_operand,
28102 seth_add3_operand, int8_operand, cmp_int16_operand,
28103 uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
28104 reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
28105 reg_or_zero_operand, two_insn_const_operand, move_src_operand,
28106 move_double_src_operand, move_dest_operand,
28107 eqne_comparison_operator, signed_comparison_operator,
28108 extend_operand, small_insn_p, large_insn_p,
28109 conditional_move_operand, carry_compare_operand,
28110 m32r_block_immediate_operand): Move to predicates.md.
28111 (MAX_MOVE_BYTES): Move to m32r.h.
28112 * config/m32r/m32r.h (PREDICATE_CODES): Remove.
28113 * config/m32r/m32r.md: Include predicates.md.
28114 * config/m32r/predicates.md: New.
28116 2005-03-18 James E Wilson <wilson@specifixinc.com>
28119 * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
28122 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
28124 * config/mn10300/mn10300-protos.h: Remove the prototypes for
28125 call_address_operand, const_8bit_operand.
28126 * config/mn10300/mn10300.c (call_address_operand,
28127 const_8bit_operand, const_1f_operand): Move to predicates.md.
28128 * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
28129 * config/mn10300/mn10300.md: Include predicates.md.
28130 * config/mn10300/predicates.md: New.
28132 2005-03-18 Joseph S. Myers <joseph@codesourcery.com>
28134 * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
28135 declarations in diagnostics and %E for identifiers, not %s.
28137 2005-03-18 Jan Hubicka <jh@suse.cz>
28138 Dale Johannesen <dalej@apple.com>
28140 * basic-block.h (scale_bbs_frequencies_int,
28141 scale_bbs_frequencies_gcov_type): Declare.
28142 * cfg.c (RDIV): New macro.
28143 (update_bb_frequency_for_threading): Fix.
28144 * basic-block.h (scale_bbs_frequencies_int,
28145 scale_bbs_frequencies_gcov_type): New.
28146 * cfgloopmanip.c (scale_bbs_frequencies): Kill.
28147 (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
28148 scale_bbs_frequencies_int.
28149 * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
28151 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
28153 * config/m32r/m32r-protos.h: Remove the prototypes for
28154 call_address_operand, symbolic_operand, seth_add3_operand,
28155 cmp_int16_operand, uint16_operand, reg_or_int16_operand,
28156 reg_or_uint16_operand, reg_or_cmp_int16_operand,
28157 two_insn_const_operand, move_src_operand,
28158 move_double_src_operand, move_dest_operand,
28159 eqne_comparison_operator, signed_comparison_operator,
28160 large_insn_p, conditional_move_operand, carry_compare_operand,
28161 m32r_block_immediate_operand, extend_operand,
28162 reg_or_eq_int16_operand, int8_operand, and
28163 reg_or_zero_operand.
28164 * config/m32r/m32r.c (call_address_operand, symbolic_operand,
28165 seth_add3_operand, int8_operand, cmp_int16_operand,
28166 uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
28167 reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
28168 reg_or_zero_operand, two_insn_const_operand, move_src_operand,
28169 move_double_src_operand, move_dest_operand,
28170 eqne_comparison_operator, signed_comparison_operator,
28171 extend_operand, small_insn_p, large_insn_p,
28172 conditional_move_operand, carry_compare_operand,
28173 m32r_block_immediate_operand): Move to predicates.md.
28174 (MAX_MOVE_BYTES): Move to m32r.h.
28175 * config/m32r/m32r.h (PREDICATE_CODES): Remove.
28176 * config/m32r/m32r.md: Include predicates.md.
28177 * config/m32r/predicates.md: New.
28179 * config/pa/pa-protos.h: Add prototypes for magic_milli and
28181 * config/pa/pa.c (reg_or_0_operand, call_operand_address,
28182 symbolic_operand, symbolic_memory_operand,
28183 reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
28184 indexed_memory_operand, move_dest_operand, move_src_operand,
28185 prefetch_cc_operand, prefetch_nocc_operand,
28186 reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
28187 arith_operand, arith11_operand, pre_cint_operand,
28188 post_cint_operan, arith_double_operand, ireg_or_int5_operand,
28189 ireg_operand, int5_operand, uint5_operand, int11_operand,
28190 uint32_operand, arith5_operand, and_operand, ior_operand,
28191 lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
28192 pc_or_label_operand, div_operand, plus_xor_ior_operator,
28193 shadd_operand, movb_comparison_operator,
28194 cmpib_comparison_operator): Move to predicates.md.
28195 (magic_milli, shadd_constant_p): Make it extern.
28196 * config/pa/pa.h (PREDICATE_CODES): Remove.
28197 * config/pa/pa.md: Include predicates.md.
28198 * config/pa/predicates.md: New.
28200 * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
28203 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
28205 * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
28206 config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
28207 config/alpha/freebsd.h, config/alpha/linux.h,
28208 config/alpha/netbsd.h, config/alpha/osf5.h,
28209 config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
28210 config/h8300/h8300-protos.h, config/h8300/h8300.c,
28211 config/h8300/h8300.h, config/ia64/unwind-ia64.c,
28212 doc/cppopts.texi: Update copyright.
28214 2005-03-18 Jan Hubicka <jh@suse.cz>
28216 PR middle-end/20225
28217 * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
28219 * varasm.c (find_decl_and_mark_needed): Mark needed only when not
28222 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
28224 * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
28227 2005-03-18 Paolo Bonzini <bonzini@gnu.org>
28229 * combine.c (gen_binary): Remove.
28230 (known_cond, simplify_shift_const, find_split_point,
28231 combine_simplify_rtx, simplify_if_then_else, simplify_set,
28232 simplify_logical, expand_field_assignment, extract_left_shift,
28233 force_to_mode, if_then_else_cond, apply_distributive_law,
28234 simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
28235 simplify_comparison, reversed_comparison): Replace with
28236 simplify_gen_binary, simplify_gen_relational or
28237 distribute_and_simplify_rtx.
28238 (distribute_and_simplify_rtx): New function.
28240 2005-03-18 Alexey Neyman <alex.neyman@auriga.ru>
28241 Paolo Bonzini <gcc.gnu.org>
28243 * calls.c (setjmp_call_p, special_function_p): Update comments
28244 at the head of the functions.
28246 2005-03-18 Jan Hubicka <jh@suse.cz>
28248 * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
28250 * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
28251 function body should be released; do not proactively release function
28252 bodies in non-unit-at-a-time mode.
28254 2005-03-18 Ralf Corsepius <ralf.corsepius@rtems.org>
28256 * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
28257 mno-fp-ret-in-387 multilib variants.
28259 2005-03-18 Richard Sandiford <rsandifo@redhat.com>
28261 * common.opt (m): Remove.
28262 * opts.c (handle_option): Pass 'm' options to set_target_switch if
28263 table lookup fails.
28264 (common_handle_option): Remove OPT_m case.
28266 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
28268 * builtins.c (fold_builtin_bitop): Take decomposed arguments
28270 (fold_builtin_1): Update a call to fold_builtin_bitop.
28272 * builtins.c (fold_builtin_signbit): Take decomposed arguments
28274 (fold_builtin_1): Update a call to fold_builtin_signbit.
28276 2005-03-17 Dorit Naishlos <dorit@il.ibm.com>
28278 PR tree-optimization/20474
28279 * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
28280 size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
28282 2005-03-17 Kazu Hirata <kazu@cs.umass.edu>
28284 * config/h8300/h8300-protos.h: Remove prototypes for
28285 general_operand_src, general_operand_dst, single_one_operand,
28286 single_zero_operand, call_insn_operand,
28287 two_insn_adds_subs_operand, small_call_insn_operand,
28288 jump_address_operand, bit_operand, bit_memory_operand,
28289 stack_pointer_operand, const_int_gt_2_operand,
28290 const_int_ge_8_operand, const_int_qi_operand,
28291 const_int_hi_operand, incdec_operand, bit_operator,
28292 nshift_operator, eqne_operator, gtle_operator,
28293 gtuleu_operator, iorxor_operator.
28294 Add prototypes for h8sx_shift_type h8sx_classify_shift and
28295 h8300_ldm_stm_parallel.
28296 * config/h8300/h8300.c (h8sx_shift_type,): Move to
28298 (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
28299 SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
28300 (h8300_ldm_stm_parallel): Make it extern.
28301 (h8300_ldm_parallel, h8300_stm_parallel,
28302 h8300_return_parallel, general_operand_src,
28303 general_operand_dst, h8300_dst_operand, h8300_src_operand,
28304 nibble_operand, reg_or_nibble_operand, single_one_operand,
28305 single_zero_operand, call_insn_operand,
28306 two_insn_adds_subs_operand, small_call_insn_operand,
28307 jump_address_operand, bit_operand, bit_memory_operand,
28308 stack_pointer_operand, const_int_gt_2_operand,
28309 const_int_ge_8_operand, const_int_qi_operand,
28310 const_int_hi_operand, incdec_operand, eqne_operator,
28311 gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
28312 h8sx_binary_memory_operator, h8sx_unary_memory_operator,
28313 h8sx_unary_shift_operator, h8sx_binary_shift_operator,
28314 nshift_operator): Move to predicates.md.
28315 * config/h8300/h8300.h (PREDICATE_CODES): Remove.
28316 * config/h8300/h8300.md: Include predicates.md.
28317 * config/h8300/predicates.md: New.
28319 2005-03-17 Richard Henderson <rth@redhat.com>
28321 * config.gcc (ia64*-*-hpux*): Add extra_options.
28322 * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
28323 (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
28324 * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
28325 (ia64_tls_size_string, ia64_tune_string): Remove.
28326 (ia64_tune): Init to PROCESSOR_ITANIUM2.
28327 (TARGET_DEFAULT_TARGET_FLAGS): New.
28328 (TARGET_HANDLE_OPTION): New.
28329 (ia64_override_options): Move options parsing ...
28330 (ia64_handle_option): ... here. New.
28331 * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
28332 MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
28333 MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
28334 MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
28335 MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
28336 MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
28337 MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
28338 TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
28339 TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
28340 TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
28341 TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
28342 TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
28343 TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
28344 TARGET_EARLY_STOP_BITS): Remove.
28345 (TARGET_ILP32): Default false.
28346 (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
28347 (enum ia64_inline_type): New.
28348 (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
28349 * config/ia64/ia64.md: Update for new definitions of
28350 TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
28351 * config/ia64/ia64.opt: New file.
28352 * config/ia64/ilp32.opt: New file.
28354 2005-03-17 H.J. Lu <hongjiu.lu@intel.com>
28357 * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
28359 2005-03-17 Kazu Hirata <kazu@cs.umass.edu>
28361 * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
28362 instead of MASK_H8300S.
28363 * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
28364 MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
28365 MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
28366 MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
28367 TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
28368 TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
28369 TARGET_SWITCHES): Remove.
28370 (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
28372 * config/h8300/h8300.opt: New.
28374 * config/alpha/alpha.opt, config/arc/arc.opt,
28375 config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
28378 2005-03-17 Ian Lance Taylor <ian@airs.com>
28382 2005-03-17 Richard Sandiford <rsandifo@redhat.com>
28384 * config/arc/arc.c (arc_cpu_string): Make static. Default to "base"
28385 (arc_text_string, arc_data_string, arc_rodata_string): Make static.
28386 (TARGET_HANDLE_OPTION): Override default.
28387 (arc_handle_option): New function.
28388 (arc_init): Remove code to set arch_cpu_string.
28389 * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
28390 (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
28391 (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
28392 (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
28393 (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
28394 (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
28395 (arc_rodata_string, TARGET_OPTIONS): Delete.
28396 * config/arc/arc.opt: New file.
28398 2005-03-17 Richard Henderson <rth@redhat.com>
28400 * doc/extend.texi (Weak Pragmas): New section.
28401 (attribute alias): Clarify that target must be in the same
28404 2005-03-17 Richard Henderson <rth@redhat.com>
28406 * config/alpha/alpha.opt: New file.
28407 * config/alpha/alpha.c (alpha_tune): New. Rename all existing uses
28409 (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
28410 alpha_fprm_string, alpha_fptm_string): Make static.
28411 (alpha_tls_size_string): Remove.
28412 (alpha_handle_option): New.
28413 (override_options): Update for alpha_cpu/alpha_tune split.
28414 (alpha_file_start): Likewise.
28415 (TARGET_DEFAULT_TARGET_FLAGS): New.
28416 (TARGET_HANDLE_OPTION): New.
28417 * config/alpha/alpha.h (alpha_tune): Declare.
28418 (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
28419 MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
28420 MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
28421 TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
28422 TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
28423 TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
28424 MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
28425 MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
28426 TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
28427 TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
28428 (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
28429 (TARGET_DEFAULT): Remove MASK_FP.
28430 (TARGET_FP): Redefined based on TARGET_SOFT_FP.
28431 (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
28432 (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
28433 alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
28434 alpha_tls_size_string): Remove.
28435 * config/alpha/alpha.md (prefetch): Use alpha_cpu.
28436 (attribute tune): Rename from attribute cpu.
28437 * config/alpha/ev4.md: Update to match.
28438 * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
28439 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
28440 * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
28441 * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
28442 * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
28443 * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
28445 2005-03-16 James E. Wilson <wilson@specifixinc.com>
28447 * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
28448 and return without creating new state if before_nops_num is nonzero.
28449 * config/ia64/ia64.md (first_insn): New attribute.
28450 (alloc): Set it to yes.
28452 2005-03-16 Daniel Berlin <dberlin@dberlin.org>
28454 * tree-vectorizer.c (new_vec_stmt_info): Initialize
28455 STMT_VINFO_SUBVARS to NULL.
28456 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
28458 2005-03-16 Dale Johannesen <dalej@apple.com>
28460 * rtlanal.c (find_first_parameter_load): Rewrite to
28461 return actual first param load or the call if none,
28462 instead of first in block, when not all loads exist.
28464 2005-03-16 Roger Sayle <roger@eyesopen.com>
28466 * optabs.c (expand_copysign_absneg): Make static.
28467 * optabs.h (expand_copysign_absneg): Delete prototype.
28468 * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
28470 2005-03-16 Richard Henderson <rth@redhat.com>
28472 PR middle-end/15700
28473 * varasm.c (struct alias_pair): Rename from struct output_def_pair.
28474 (alias_pairs): Rename from output_defs.
28475 (find_decl_and_mark_needed): Split out from assemble_alias.
28476 (do_assemble_alias): New.
28477 (assemble_output_def): Remove.
28478 (finish_aliases_1, finish_aliases_2): New.
28479 (process_pending_assemble_output_defs): Remove.
28480 (assemble_alias): Defer aliases for which we don't yet have a
28481 non-external decl for the target symbol.
28482 * passes.c (rest_of_decl_compilation): Register variables with cgraph.
28483 * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
28484 * toplev.c (compile_file): Use finish_aliases_2 instead of
28485 process_pending_assemble_output_defs.
28486 * tree.h (finish_aliases_1, finish_aliases_2): Declare.
28487 (process_pending_assemble_output_defs): Remove.
28489 2005-03-16 Daniel Berlin <dberlin@dberlin.org>
28491 Fix PR tree-optimization/20489
28493 * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
28494 for empty structures.
28496 2005-03-16 Daniel Berlin <dberlin@dberlin.org>
28498 Fix PR tree-optimization/20490
28500 * tree-ssa-pre.c (create_expression_by_pieces): Use
28501 force_gimple_operand on result of fold.
28503 2005-03-16 Andrew Pinski <pinskia@physics.uc.edu>
28505 * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
28506 of closing parenthesis.
28508 2005-03-16 Kazu Hirata <kazu@cs.umass.edu>
28510 * builtins.c (expand_movstr): Update a call to
28511 fold_builtin_strcpy.
28512 (expand_builtin_strncpy): Update a call to
28513 fold_builtin_strncpy.
28514 (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
28515 arguments of CALL_EXPR.
28516 (fold_builtin_1): Update calls to fold_builtin_strcpy and
28517 fold_builtin_strncpy.
28518 * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
28519 * tree.h: Update the prototypes of fold_builtin_strcpy and
28520 fold_builtin_strncpy.
28522 2005-03-16 Steven Bosscher <stevenb@suse.de>
28523 Dorit Naishlos <dorit@il.ibm.com>
28525 * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
28526 UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
28529 2005-03-16 Steven Bosscher <stevenb@suse.de>
28531 * tree-inline.c (walk_type_fields, walk_tree,
28532 walk_tree_without_duplicates): Move from here...
28533 * tree.c: ...to here.
28535 2005-03-15 Zack Weinberg <zack@codesourcery.com>
28537 * BASE-VER, DATESTAMP, DEV-PHASE: New files.
28538 * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
28539 (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
28540 (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
28541 (version): Define using $(BASEVER_c).
28542 (Makefile, config.status, build/gcov-iov.o): No longer depends on
28544 (version.o): Depend on version files; add custom generation command.
28545 (prefix.o): Define BASEVER on command line.
28546 (s-iov): Depend on version files; adjust command.
28547 (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
28549 (gcc-vers.texi): New rule.
28550 (doc/%.info, doc/%.dvi): Add -I . to command line.
28551 (doc/gccinstall.dvi): Likewise.
28552 (PACKAGE): Delete. All uses replaced with "gcc".
28553 * aclocal.m4: Do not include gcc-version.m4.
28554 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
28555 Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
28556 Set is_release based on contents of DEV-PHASE.
28557 Set gcc_version based on contents of BASE-VER.
28558 Define WIN32_REGISTRY_KEY only if the user overrode the default.
28559 * config.in, configure: Regenerate.
28560 * gccbug.in: Determine version of GCC in use at runtime.
28561 * gcov-iov.c: Get version number and development phase from
28562 command line, not by including version.c.
28563 * intl.c: Replace all uses of PACKAGE with "gcc".
28564 * libada-mk.in: Delete unused "gcc_version" variable.
28565 * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
28566 * version.c: (VERSUFFIX): New hook for redistributors; adjust
28567 commentary to match.
28568 (version_string): Put together from pieces.
28569 * config/alpha/x-vms: Do not use $(gcc_version).
28570 * config/i386/t-nwld: Likewise.
28571 * doc/include/gcc-common.texi: Include gcc-vers.texi for
28572 version-GCC and DEVELOPMENT.
28574 2005-03-15 Roger Sayle <roger@eyesopen.com>
28576 PR tree-optimization/17454
28577 * tree.c (tree_size): Add case for TREE_BINFO.
28578 * fold-const.c (fold_checksum_tree): Only clear the overloaded
28579 field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
28581 2005-03-15 Roger Sayle <roger@eyesopen.com>
28583 * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
28584 op1 whilst expanding the signed widenening multiply variant.
28586 2005-03-15 Richard Sandiford <rsandifo@redhat.com>
28588 * toplev.c (display_target_options): Avoid unused variable warning if
28589 TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
28590 * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
28591 (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
28592 (mips_isa): Initialize to MIPS_ABI_DEFAULT.
28593 (mips_isa_info): New variable.
28594 (mips_parse_cpu): Remove the first argument and leave the caller
28596 (TARGET_HANDLE_OPTION): Override default.
28597 (mips_handle_option): New function. Move option validation code from...
28598 (override_options): ...here. Update calls to mips_parse_cpu.
28599 * config/mips/mips.h (mips_arch_string, mips_tune_string)
28600 (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
28601 (SUBTARGET_TARGET_OPTIONS): Delete.
28602 * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
28603 (mno-flush-func, mtune=): New options.
28605 2005-03-15 Roger Sayle <roger@eyesopen.com>
28606 Richard Henderson <rth@redhat.com>
28608 * real.c (c4x_single_format, c4x_extended_format): Provide values
28609 for signbit_ro for c4x's single and extended floating point formats.
28610 * optabs.c (expand_copysign): Use the floating point format's
28611 signbit_ro for expanding via expand_copysign_absneg, and it's
28612 signbit_rw field for expanding via expand_copysign_bit.
28614 2005-03-15 Dorit Naishlos <dorit@il.ibm.com>
28616 * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
28617 known_alignment_for_access_p.
28618 (known_alignment_for_access_p): New.
28619 (do_peeling_for_alignment): Field made int instead of bool and renamed
28620 to peeling_for_alignment.
28621 (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
28622 * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
28623 functionality used to be in vect_analyze_operations.
28624 (vect_analyze_operations): Code to determine vectorization factor was
28625 moved to vect_determine_vectorization_factor.
28626 (vect_enhance_data_refs_alignment): Update to correct alignment when it
28627 is known instead of -1. Set LOOP_PEELING_FOR_ALIGNMENT to peeling
28629 (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
28630 be part of vect_analyze_operations).
28631 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
28632 creating the guard condition, as the number of iterations may be
28634 (slpeel_tree_peel_loop_to_edge): Use new name of
28635 LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
28636 * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
28637 alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
28638 (vect_do_peeling_for_alignment): Use fold.
28639 (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
28641 (vect_update_inits_of_dr): Renamed to
28642 vect_update_init_of_dr.
28643 (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
28644 (vectorizable_store): Fix assertion to use == instead of =.
28646 2005-03-15 Daniel Jacobowitz <dan@codesourcery.com>
28648 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
28649 call_used_regs for wCG registers.
28651 2005-03-15 Ulrich Weigand <uweigand@de.ibm.com>
28653 * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
28654 for non-offsettable memory references to cope with outstanding reload
28655 replacements, take 2.
28657 2005-03-15 Uros Bizjak <uros@kss-loka.si>
28660 * config/i386/i386.h (x86_fisttp): New.
28661 (TARGET_FISTTP): New macro.
28662 * config/i386/i386.c (x86_fisttp): Set for NOCONA.
28663 (output_fix_trunc): Add fisttp parameter. Generate fisttp x87
28664 instruction when fisttp flag is set.
28665 * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
28667 * config/i386/i386.md (type attribute): Add fisttp.
28668 (unit attribute): Set to i387 for fisttp type.
28669 (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
28670 (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
28672 (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
28673 Generate fisttp patterns for TARGET_FISTTP. Implement using mode
28675 (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
28676 patterns for TARGET_FISTTP. Enable patterns for
28677 (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
28678 (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
28679 fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
28680 implement fisttp x87 insn.
28681 (fix_trunc*_i387_fisttp splitters): New patterns.
28682 (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
28683 Rename to *fix_trunc<mode>_i387_1. Implement using mode macros.
28684 Disable patterns for TARGET_FISTTP. Add comment about FLAGS_REG
28686 (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
28687 Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
28688 Implement using mode macros. Disable patterns for TARGET_FISTTP.
28689 (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
28690 fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
28691 fix_trunc<mode>_i387_with_temp. Implement using mode macros.
28692 Disable patterns for TARGET_FISTTP.
28693 (fix_trunc*_i387 splitters): Implement usign mode macros.
28694 (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
28695 fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
28696 (fix_trunx*_sse peephole2s): Implement using mode macros.
28698 2005-03-15 J"orn Rennecke <joern.rennecke@st.com>
28700 PR rtl-optimization/20291
28701 * combine.c (try_combine): If splitting fails, re-try with
28702 original combined pattern, i.e. before clobber stripping.
28704 2005-03-14 Eric Christopher <echristo@redhat.com>
28706 * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
28707 STACK_GROWS_DOWNWARD.
28709 2005-03-14 Roger Sayle <roger@eyesopen.com>
28711 * real.h (struct real_format): Split the signbit field into two
28712 two fields, signbit_ro and signbit_rw.
28713 * real.c (ieee_single_format, mips_single_format, ieee_double_format,
28714 mips_double_format, ieee_extended_motorola_format,
28715 ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
28716 ieee_extended_intel_128_format, ibm_extended_format,
28717 mips_extended_format, ieee_quad_format, mips_quad_format,
28718 vax_f_format, vax_d_format, vax_g_format, i370_single_format,
28719 i370_double_format, c4x_single_format, c4x_extended_format,
28720 real_internal_format): Update initializers for new field.
28721 * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
28722 real_format structure.
28723 * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
28724 field of the real_format structure.
28726 2005-03-14 Daniel Berlin <dberlin@dberlin.org>
28728 Fix PR tree-optimization/20458
28730 * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
28731 DECL_EXTERNAL on STRUCT_FIELD tags.
28732 (clear_call_clobbered): Ditto.
28733 * tree-ssa-operands.c (note_addressable): Make sure the original
28734 variable doesn't slip into the addressable list if we have
28736 * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
28739 2005-03-14 Geoffrey Keating <geoffk@apple.com>
28741 * doc/cppopts.texi (-fexec-charset): Add concept index entry.
28742 (-fwide-exec-charset): Likewise.
28743 (-finput-charset): Likewise.
28744 * doc/invoke.texi (Warning Options): Document -Wnormalized=.
28745 * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
28746 * c.opt (Wnormalized): New.
28748 2005-03-14 Devang Patel <dpatel@apple.com>
28750 * doc/invoke.texi: Add reference to Visibility document.
28752 2005-03-14 Richard Sandiford <rsandifo@redhat.com>
28754 * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
28755 MASK_SPLIT_ADDRESSES.
28756 * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
28757 (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
28758 (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
28759 (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
28760 (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
28761 (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
28762 (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
28763 (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
28764 (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
28765 (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
28766 (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
28767 (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
28768 (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
28769 (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
28770 (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
28771 (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
28772 (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
28773 (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
28774 (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
28775 (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
28776 (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
28777 (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
28778 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
28779 (TARGET_EXPLICIT_RELOCS): Delete.
28780 (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
28781 (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
28782 * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
28783 (override_options): Set MASK_LONG64 if -mint64 is given and no
28784 -mlongXX option is. Complain about -mint64 -mlong32.
28785 (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
28786 MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
28787 * config/mips/mips.opt: New file.
28789 2005-03-14 Richard Sandiford <rsandifo@redhat.com>
28791 * config.gcc (extra_options): New variable for listing option files.
28792 Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
28793 * configure.ac (extra_opt_files): New AC_SUBST variable.
28794 (tm_file_list, tm_include_list): Include options.h first.
28795 * configure: Regenerate.
28796 * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
28797 (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
28798 (s-options-h): New rule.
28799 (options.h): Depend on it.
28800 (TEXI_GCCINT_FILES): Add options.texi.
28801 * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
28802 * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
28803 * target.h (gcc_target): Add default_target_flags and handle_option.
28804 * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
28805 (TARGET_HANDLE_OPTION): New macros.
28806 (TARGET_INITIALIZER): Include them.
28807 * opt-functions.awk (opt_args, nth_arg): New functions.
28808 (switch_flags): Handle the "Target" flag.
28809 (var_args): Delete.
28810 (var_name): Use opt_args and nth_arg.
28811 (var_set, var_ref): Likewise. Handle "Mask" and "InverseMask".
28812 * opth-gen.awk: Declare target_flags. Declare MASK_* and TARGET_*
28813 macros for the "Mask" and "InverseMask" options.
28814 * opts.h (cl_var_cond): New enum.
28815 (cl_option): Replace the "has_set_value" and "set_value" fields with
28816 "var_cond" and "var_value".
28817 (CL_TARGET): New macro.
28818 (option_enabled, print_filtered_help): Declare.
28819 (decode_options): Move definition.
28820 * opts.c (handle_option): Search for the original option before
28821 removing any "no-" prefix. Handle CL_TARGET. Adjust for the new
28822 var_cond and var_value fields. Use targetm.handle_option to handle
28824 (decode_options): Set target_flags to targetm.default_target_flags.
28825 (print_filtered_help): Make global. Handle CL_TARGET.
28826 (option_enabled): New function.
28827 * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
28828 (display_target_options, set_target_switch, print_switch_values)
28829 (default_pch_valid_p): Guard uses of target_switches with
28830 #ifdef TARGET_SWITCHES. Also...
28831 (display_target_options): Display the CL_TARGET entries in cl_options.
28832 (set_target_option): Don't complain about the "" option when
28833 TARGET_SWITCHES is undefined.
28834 (print_switch_values): Use option_enabled.
28835 (default_pch_valid_p): Check cl_options[] when looking for something
28836 that has changed the value of target_flags.
28837 * c.opt: Remove documentation from top of file.
28838 * doc/gccint.texi: Add an "Options" chapter. Include options.texi.
28839 * doc/sourecebuild.texi: Refer to the new options documentation
28840 instead of c.opt. Document machine-specific .opt files.
28841 * doc/tm.texi (target_flags): Say that this variable is declared
28843 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
28844 (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
28846 * doc/options.texi: New file.
28848 2005-03-14 Alexandre Oliva <aoliva@redhat.com>
28850 PR middle-end/18628
28851 * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
28854 2005-03-14 Alexandre Oliva <aoliva@redhat.com>
28857 * gimplify.c (gimplify_cond_expr): Add fallback argument. Use a
28858 temporary variable of pointer type if an lvalues is required.
28859 (gimplify_modify_expr_rhs): Request an rvalue from it.
28860 (gimplify_expr): Pass fallback on.
28862 2005-03-14 Kazu Hirata <kazu@cs.umass.edu>
28864 * cfgbuild.c: Update comments.
28866 2005-03-14 Roger Sayle <roger@eyesopen.com>
28868 PR rtl-optimization/17236
28869 * optabs.c (expand_doubleword_mult): New helper function split out
28870 from expand_binop. Permute the order in which instructions are
28871 emitted to minimize the number of simultaneously live registers.
28872 (expand_binop): Call expand_doubleword_mult to synthesize a double
28873 word multiplication.
28875 2005-03-14 Kazu Hirata <kazu@cs.umass.edu>
28877 * basic-block.h: Update the prototypes of cached_make_edge and
28879 * cfg.c (cached_make_edge): Take edge_cache representing one
28880 row of the adjacency matrix of edges.
28881 * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
28882 (make_edges): Initialize edge_cache to represent one row of
28883 the adjacency matrix of edges.
28885 2005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
28887 * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
28889 (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
28890 Remove unused removed_phis variable.
28891 (conditional_replacement): Use build1/build2.
28892 (abs_replacement): Use last_and_only_stmt and build1/build2.
28894 2005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
28896 * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
28897 ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
28898 * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
28899 (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
28900 * c-common.c (handle_novops_attribute): New function.
28901 (c_common_attribute_table): Add "no vops" entry.
28902 * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
28903 * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
28904 * tree-ssa-operands.c (get_call_expr_operands): Do not
28905 create virtual operands for calls with ECF_NOVOPS flag.
28906 * tree.h (DECL_IS_NOVOPS): New macro.
28907 (struct tree_decl): Add novops_flag.
28908 (ECF_NOVOPS): New constant.
28910 2005-03-14 Uros Bizjak <uros@kss-loka.si>
28913 * config/i386/i386.c (x86_use_himode_fiop): New.
28914 (x86_use_simode_fiop): Rename from x86_use_fiop.
28915 * config/i386/i386.h (x86_use_himode_fiop): Declare.
28916 (TARGET_USE_HIMODE_FIOP): New.
28917 (x86_use_simode_fiop): Rename from x86_use_fiop.
28918 (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
28920 * config/i386/i386.md (X87MODEI12): New mode macro define.
28921 (*cmpfp_<mode>): Rename from *cmpfp_si. Use X87MODEI12 mode macro
28922 to implement x87 FP compare with HImode input operands.
28923 (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
28924 Use X87MODEI12 mode macro to handle HImode input operands.
28925 (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
28926 *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
28927 Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
28928 *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
28929 macro to implement x87 operators with HImode input operands.
28930 (fop splitters): Use X87MODEI12 mode macro to handle HImode
28933 2005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
28935 * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
28937 * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
28938 constants invariant.
28940 2005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
28942 * basic-block.h (BB_VISITED): Removed.
28943 * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
28945 2005-03-14 Falk Hueffner <falk@debian.org>
28948 * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
28950 2005-03-14 Kazu Hirata <kazu@cs.umass.edu>
28952 * ggc-zone.c: Fix comment typos.
28954 * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
28955 stringpool.c, config/mips/mips-protos.h: Update copyright.
28957 2005-03-14 Alan Modra <amodra@bigpond.net.au>
28959 * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
28960 throughout with its typedef, "rtx".
28961 * config/rs6000/rs6000.c: Likewise. Formatting fixes.
28962 (rs6000_tls_symbol_ref_1): Remove inline keyword.
28963 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting. Reorder
28964 regs in comment to match code.
28966 2005-03-14 Kazu Hirata <kazu@cs.umass.edu>
28968 * except.c (check_handled): Make it static.
28969 * except.h: Remove the corresponding prototype.
28971 * function.c (get_func_frame_size): Make it static.
28972 * function.h: Remove the corresponding type.
28974 * regclass.c (reg_class_superclasses, reg_class_subclasses):
28976 * hard-reg-set.h: Remove the corresponding declarations.
28978 * tree-cfg.c (verify_stmts): Check that
28979 bb_for_stmt (stmt) == bb for every PHI node and statement.
28981 2005-03-14 Alan Modra <amodra@bigpond.net.au>
28983 * config.gcc: Remove excess indentation.
28984 (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
28986 2005-03-13 Roger Sayle <roger@eyesopen.com>
28988 PR middle-end/19331
28989 * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
28990 * fold-const.c (fold_sign_changed_comparison): Likewise.
28991 (fold_binary): Optimize comparisons against widened operands if
28992 the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
28994 2005-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
28996 * config/sparc/sparc.c (struct_value_alias_set): New global variable.
28997 (sparc_override_options): Initialize it.
28998 (sparc_struct_value_rtx): Set it on the MEM to be returned.
29000 2005-03-13 David Edelsohn <edelsohn@gnu.org>
29002 * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
29003 (reg_or_none500mem_operand): New predicate.
29004 (zero_reg_mem_operand): New predicate.
29005 * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
29006 to reg_or_none500mem_operand.
29007 (extendsfdf2_fpr): Add MEM alternative.
29008 (extenddftf2_internal): Change operand2 predicate to
29009 zero_reg_mem_operand.
29011 2005-03-13 Daniel Jacobowitz <dan@codesourcery.com>
29013 * ggc-zone.c: Rewritten.
29015 * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
29017 * configure.ac: Define GGC_ZONE for --with-gc=zone.
29018 * config.in: Regenerated.
29019 * configure: Regenerated.
29020 * gengtype.c (write_types_process_field, write_func_for_structure):
29021 Pass new argument to gt_pch_note_object.
29022 * ggc-common.c (struct ptr_data): Add TYPE.
29023 (gt_pch_note_object): Take TYPE argument and save it.
29024 (call_count): Update call to ggc_pch_count_object.
29025 (call_alloc): Update call to ggc_pch_alloc_object.
29026 (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
29028 * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
29029 * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
29030 (ggc_alloc_zone_stat): Delete.
29031 (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
29032 * ggc.h (gt_pch_note_object, ggc_pch_count_object)
29033 (ggc_pch_alloc_object): Update prototypes.
29034 (garbage_zone): Delete.
29035 (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
29036 GGC_ZONE conditional. Update. Change tree_zone and rtl_zone into
29038 (tree_id_zone): New variable.
29039 (ggc_alloc_cleared_zone): Remove unused.
29040 (ggc_alloc_zone): Define.
29041 (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
29042 * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
29043 ggc_alloc_zone_stat.
29044 * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
29045 * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
29046 (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
29047 (make_node_stat): Likewise. Use tree_id_zone.
29049 2005-03-13 Daniel Jacobowitz <dan@codesourcery.com>
29050 Joseph S. Myers <joseph@codesourcery.com>
29052 * configure.ac: Check for MIPS TLS.
29053 * configure: Regenerated.
29054 * config/mips/mips-protos.h (enum mips_symbol_type): Add
29055 SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
29056 SYMBOL_GOTTPREL, and SYMBOL_TPREL.
29057 * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
29058 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
29059 (mips_classify_symbol, mips_symbolic_constant_p)
29060 (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
29061 (mips_tls_operand_p, mips_call_tls_get_addr)
29062 (mips_legitimize_tls_address, mips_cannot_force_const_mem)
29063 (mips_tls_symbol_ref_1): New functions.
29064 (mips_legitimize_address, mips_legitimize_const_move): Call
29065 mips_legitimize_tls_address.
29066 (override_options): Handle V1_REG and TLS symbols. Disable TLS
29068 * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
29069 (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
29070 (mips_char_to_class): Document V1_REG.
29071 (HAVE_AS_TLS): Provide default.
29072 * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
29074 (load_got<mode>): Renamed from *load_got<mode>. Allow when
29076 (tls_get_tp_<mode>): New instruction.
29078 2005-03-13 Daniel Jacobowitz <dan@codesourcery.com>
29080 * configure.ac: Update checks for target tools.
29081 * configure: Regenerated.
29083 2005-03-13 Daniel Jacobowitz <dan@codesourcery.com>
29085 * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
29087 2005-03-13 Roger Sayle <roger@eyesopen.com>
29089 * expmed.c (expand_mult): Use synthetic multiplication sequences for
29090 more classes of DImode multiplication by constant. Allow both
29091 multiplication by small negative constants (by performing a
29092 multiplication by a positive constant and negating the result) and
29093 multiplications by large powers of two, by using a left shift.
29095 2005-03-13 Kazu Hirata <kazu@cs.umass.edu>
29097 * tree-into-ssa.c (find_idf): Speed up by putting the indexes
29098 of basic blocks into work_stack.
29100 * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
29101 config/mips/vr.h: Update copyright.
29103 * c-decl.c (c_init_decl_processing): Remove useless calls to
29104 build_function_type.
29106 * builtins.c (fold_trunc_transparent_mathfn,
29107 fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
29108 fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
29109 fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
29110 fold_builtin_strcpy, fold_builtin_strncpy,
29111 fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
29114 * builtins.c (expand_builtin_mathfn_3): Remove local variable
29117 * lambda-code.c (lambda_compute_auxillary_space): Remove local
29118 variable determinant.
29120 * tree-cfg.c (group_case_labels): Remove local variable type.
29122 * tree-ssa-live.c (build_tree_conflict_graph): Remove local
29125 * tree-ssa-phiopt.c (value_replacement): Remove local variable
29128 2005-03-13 Andy Hutchinson <HutchinsonAndy@netscape.net>
29131 * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
29132 (*movmemqi_insn): Delete.
29133 (*movmemhi): Delete.
29135 2005-03-13 Kazu Hirata <kazu@cs.umass.edu>
29137 * builtins.c (fold_builtin_classify): Take decomposed
29138 arguments of CALL_EXPR.
29139 (fold_builtin_1): Update a call to fold_builtin_classify.
29141 2005-03-13 Joseph S. Myers <joseph@codesourcery.com>
29144 * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
29145 through into call to parser_xref_tag after parse error.
29146 (c_parser_struct_declaration): Consistently return NULL_TREE on
29149 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
29151 * tree-flow-inline.h (ref_contains_array_ref): New function.
29152 (lookup_subvars_for_var): Ditto.
29153 (get_subvars_for_var): Ditto.
29154 (var_can_have_subvars): Ditto.
29156 * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
29157 (struct subvar): New type.
29159 * tree-dfa.c (okay_component_ref_for_subvars): New function.
29161 * tree-optimize.c (init_tree_optimization_passes): Call
29162 pass_create_structure_vars.
29164 * tree-ssa-alias.c: Include vec.h.
29165 (init_alias_info): Don't auto-clear call clobbered on struct-field
29167 (compute_flow_insensitive_aliasing): Handle subvars.
29168 (group_aliases): Handle STRUCT_FIELD aliases.
29169 (setup_pointers_and_addressables): Ditto.
29170 Don't mark variables non-addressable if they still have
29171 addressable subvars.
29172 Also mark subvars addressable when the real variable is marked
29174 (add_pointed_to_var): Try to prune the pointed-to set by only
29175 pointing to subvars when possible.
29176 Otherwise, make sure we set addresses_needed and pt_vars to
29177 properly include subvars.
29178 (bitpos_of_field): New function.
29179 (push_fields_onto_fieldstack): Ditto.
29180 (get_or_create_used_part_for): Ditto.
29181 (create_overlap_variables_for): Ditto.
29182 (find_used_portions): Ditto.
29183 (create_structure_vars): Ditto.
29184 (pass_create_structure_vars): New structure.
29186 * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
29187 (get_expr_operands): Handle subvars. Also try to turn
29188 COMPONENT_REF accesses into must-defs now that we can accurately
29190 (note_addressable): Try to only mark as addressable those subvars
29191 we know a COMPONENT_REF touches.
29192 (overlap_subvar): New function.
29194 * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
29195 Handle subvar storing.
29196 (vect_address_analysis): Update caller of vect_object_analysis.
29198 * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
29200 * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
29201 (STMT_VINFO_SUBVARS): New macro.
29203 * common.opts: add flag_tree_salias.
29205 * opts.c (decode_options): flag_tree_salias defaults to on.
29207 * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
29209 * doc/tree-ssa.texi: Document structural alias analysis.
29211 2005-03-12 Steven Bosscher <stevenb@suse.de>
29213 * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
29214 * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
29215 * tree-ssa-operands.c (get_expr_operands): Likewise.
29216 (get_expr_operands): Likewise for ERROR_MARK.
29218 2005-03-12 Kazu Hirata <kazu@cs.umass.edu>
29220 * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
29223 * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
29226 * tree-ssa-pre.c (compute_avail): Remove local variable val.
29227 (mark_operand_necessary): Remove local variable ver.
29229 * tree-vect-transform.c (vect_get_new_vect_var): Remove local
29230 variable prefix_len.
29232 * value-prof.c (mod_subtract_transform): Remove local variable
29235 * builtins.c (fold_builtin_exponent): Take decomposed
29236 arguments of CALL_EXPR.
29237 (fold_builtin_1): Update a call to fold_builtin_exponent.
29239 * builtins.c (fold_builtin_logarithm): Take decomposed
29240 arguments of CALL_EXPR.
29241 (fold_builtin_1): Update a call to fold_builtin_logarithm.
29243 * c-decl.c (c_init_decl_processing): Remove local variables
29244 ptr_ftype_void and ptr_ftype_ptr.
29246 * gimplify.c (gimplify_expr): Remove local variables r0 and
29249 * reg-stack.c (move_for_stack_reg): Remove local variable
29251 (compare_for_stack_reg): Remove local variable flags_user.
29252 (convert_regs_1): Remove local variable deleted.
29254 * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
29256 (combine_blocks): Remove local variables exits and new_e.
29258 * tree-inline.c (expand_call_inline): Remove local variable
29261 * tree-ssa-live.c (create_ssa_var_map,
29262 calculate_live_on_entry): Remove local variable snn.
29264 2005-03-12 Geoffrey Keating <geoffk@apple.com>
29266 * c-lex.c (c_lex_with_flags): Add parameter to call to
29269 2005-03-11 Per Bothner <per@bothner.com>
29271 * c-tree.h (struct c_declarator): New id_loc field.
29272 * c-pragma.h (c_lex_with_flags): Take position reference.
29273 * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
29274 iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
29275 (c_lex): Pass dummy location to c_lex_with_flags.
29276 * c-parser.c (c_lex_one_token): Set c_token's location using
29277 c_lex_with_flags, instead of input_location, which might be "ahead".
29278 (c_parser_direct_declarator): Set declarator's id_loc from
29280 * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
29281 declarator's id_loc, rather than probably-imprecise input_location.
29282 (build_id_declarator): Initialize c_declarator's id_loc field.
29284 2005-03-11 Roger Sayle <roger@eyesopen.com>
29286 PR middle-end/20419
29287 * builtins.c (expand_builtin_signbit): Force the signbit's word
29288 into an integer register to avoid SUBREGs of floating point modes.
29290 2005-03-12 Kazu Hirata <kazu@cs.umass.edu>
29292 * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
29293 target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
29294 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
29295 config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
29297 2005-03-11 David Edelsohn <edelsohn@gnu.org>
29299 PR rtl-optimization/20306
29300 * expr.c (emit_move_complex): Set try_int false if mode is
29301 MODE_COMPLEX_FLOAT and mov_optab exists for inner mode. Only try
29302 emit_block_move if try_int is true.
29304 2005-03-11 Richard Henderson <rth@redhat.com>
29307 * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
29308 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
29311 2005-03-11 Richard Sandiford <rsandifo@redhat.com>
29313 * config/mips/mips.h (mips_fix_vr4130_string): Declare.
29314 (TARGET_FIX_VR4130): New macro.
29315 (TARGET_OPTIONS): Add -mfix-vr4130.
29316 (ISA_HAS_MACCHI): New macro.
29317 (ASM_SPEC): Add -mfix-vr4130.
29318 * config/mips/mips.c (mips_fix_vr4130_string): New variable.
29319 (override_options): Handle mips_fix_vr4130_string.
29320 (mips_avoid_hazards): Clear all_noreorder_p
29321 if we're working around VR4130 errata and the macc alternatives
29323 * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
29324 (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
29325 * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
29326 (MULTILIB_DEFAULTS): Remove leading "march=".
29327 (DRIVER_SELF_SPECS): Likewise. Make -mfix-vr4130 imply -march=vr4130
29328 if no architecture option is given.
29329 * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
29331 (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
29332 * doc/invoke.texi: Document -mfix-vr4130.
29334 2005-03-11 Richard Sandiford <rsandifo@redhat.com>
29336 * config/mips/mips.c (override_options): Only warn about -mint64
29337 deprecation if TARGET_INT64.
29339 2005-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29341 * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
29342 ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
29343 ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
29344 are non-specific regarding the nonnull parameter positions.
29345 (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
29346 ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
29347 ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
29348 ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
29350 * builtins.def: Use the non-specific "nonnull" attibute lists.
29352 2005-03-11 Zdenek Dvorak <dvorakz@suse.cz>
29354 * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
29355 single_pred_edge, single_succ, single_pred): Improve comments.
29357 2005-03-11 Zdenek Dvorak <dvorakz@suse.cz>
29359 * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
29360 single_pred_edge, single_succ, single_pred): New inline functions.
29361 * bb-reorder.c (rotate_loop, find_traces_1_round,
29362 add_labels_and_missing_jumps, fix_up_fall_thru_edges,
29363 duplicate_computed_gotos): Use the single_succ/pred functions.
29364 * cfganal.c (forwarder_block_p): Ditto.
29365 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
29366 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
29367 outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
29368 merge_seq_blocks): Ditto.
29369 * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
29370 * cfglayout.c (fixup_reorder_chain): Ditto.
29371 * cfgloop.c (mark_single_exit_loops, update_latch_info,
29372 canonicalize_loop_headers, verify_loop_structure): Ditto.
29373 * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
29374 mfb_update_loops, create_preheader, force_single_succ_latches,
29375 create_loop_notes): Ditto.
29376 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
29377 force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
29378 commit_one_edge_insertion, purge_dead_edges,
29379 cfg_layout_can_merge_blocks_p): Ditto.
29380 * except.c (sjlj_emit_function_enter): Ditto.
29381 * flow.c (init_propagate_block_info): Ditto.
29382 * function.c (thread_prologue_and_epilogue_insns): Ditto.
29383 * gcse.c (find_implicit_sets, bypass_conditional_jumps,
29384 insert_insn_end_bb): Ditto.
29385 * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
29386 find_if_case_2): Ditto.
29387 * lambda-code.c (perfect_nestify): Ditto.
29388 * lcm.c (optimize_mode_switching): Ditto.
29389 * loop-doloop.c (doloop_modify): Ditto.
29390 * loop-init.c (loop_optimizer_init): Ditto.
29391 * loop-iv.c (simplify_using_initial_values): Ditto.
29392 * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
29393 * loop-unswitch.c (unswitch_loop): Ditto.
29394 * modulo-sched.c (generate_prolog_epilog): Ditto.
29395 * predict.c (combine_predictions_for_insn, estimate_probability,
29396 tree_estimate_probability, last_basic_block_p,
29397 estimate_bb_frequencies): Ditto.
29398 * profile.c (branch_prob): Ditto.
29399 * regrename.c (copyprop_hardreg_forward): Ditto.
29400 * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
29401 * tracer.c (layout_superblocks): Ditto.
29402 * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
29403 cfg_remove_useless_stmts_bb, cleanup_control_flow,
29404 cleanup_control_expr_graph, disband_implicit_edges,
29405 tree_find_edge_insert_loc, bsi_commit_edge_inserts,
29406 tree_verify_flow_info, tree_make_forwarder_block,
29407 tree_forwarder_block_p, remove_forwarder_block,
29408 remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
29409 * tree-if-conv.c (tree_if_conversion): Ditto.
29410 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
29411 * tree-ssa-dce.c (remove_dead_stmt): Ditto.
29412 * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
29413 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
29414 copy_loop_headers): Ditto.
29415 * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
29416 * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
29417 * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
29418 lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
29419 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
29420 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
29421 * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
29422 * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
29423 * tree-ssa-threadupdate.c (redirect_edges): Ditto.
29424 * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
29425 eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
29426 * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
29427 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
29428 * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
29429 slpeel_add_loop_guard): Ditto.
29431 2005-03-11 James A. Morrison <phython@gcc.gnu.org>
29433 PR tree-optimization/15784
29434 * fold-const.c (fold): Fold ~A + 1 to -A. Fold -A - 1
29437 * stmt.c (expand_case): Don't change index_type. Convert minval
29438 to the proper type.
29440 PR tree-optimization/20130
29441 * fold-const.c (fold): Fold x * -1 into -x.
29443 2005-03-11 Kaz Kojima <kkojima@gcc.gnu.org>
29445 PR rtl-optimization/20331
29446 * rtlanal.c (modified_between_p): Check its address first for MEM.
29447 (modified_in_p): Likewise.
29449 2005-03-11 Joseph S. Myers <joseph@codesourcery.com>
29451 * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
29453 2005-03-10 Steven Bosscher <stevenb@suse.de>
29455 * expr.c (expand_expr_real_1): If possible, use a conditional
29456 move for expanding MIN_EXPR and MAX_EXPR.
29457 Use temp for moving around rtx-en.
29459 2005-03-10 Andrew Pinski <pinskia@physics.uc.edu>
29462 * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
29465 2005-03-10 Roger Sayle <roger@eyesopen.com>
29467 * builtins.c (expand_builtin_signbit): Extend to handle floating
29468 point modes wider than the largest integer type, using the
29469 operand_subword_force function to obtain the signbit's word.
29471 2005-03-10 Jakub Jelinek <jakub@redhat.com>
29474 * combine.c (try_combine): If recog_for_combine added CLOBBERs
29475 to NEWI2PAT, fail to combine if they are used by NEWPAT.
29477 2005-03-10 Aldy Hernandez <aldyh@redhat.com>
29479 * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
29481 2005-03-10 Kazu Hirata <kazu@cs.umass.edu>
29483 * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
29485 (perform_edge_inserts): Unconditionally call
29486 free_dominator_info.
29488 * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
29490 2005-03-10 Bob Wilson <bob.wilson@acm.org>
29492 * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
29494 2005-03-10 Nathan Sidwell <nathan@codesourcery.com>
29496 * bitmap.c (bitmap_copy): Remove manual loop unrolling.
29498 * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
29500 (rtl_register_value_prof_hooks,
29501 tree_value_profile_transformations,
29502 tree_register_value_prof_hooks): Likewise.
29503 * var-tracking.c (stack_adjust_offset_pre_post,
29504 variable_htab_free, variable_union, dataflow_set_different_2,
29505 count_uses, variable_was_changed, set_frame_base_location,
29506 set_variable_part, emit_note_insn_var_location, vt_emit_notes,
29507 vt_add_function_parameters): Likewise.
29508 * varasm.c (named_section_real, named_section, make_decl_rtl,
29509 asm_emit_uninitialised, assemble_integer, decode_addr_const,
29510 const_hash_1, compare_constant, copy_constant, force_const_mem,
29511 output_constant_pool_2, output_constant_pool_1, output_constant,
29512 output_constructor, make_decl_one_only, decl_tls_model,
29513 default_no_named_section, default_elf_select_section_1,
29514 default_unique_section_1): Likewise.
29515 * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
29516 * vmsdbgout.c (addr_const_to_string): Likewise.
29519 * function.c (struct assign_parm_data_one): Remove last_named
29521 (assign_parm_find_data_types): Don't determine last_named.
29522 Reorder named_parm determination.
29523 (assign_parms): Only setup varargs on the last non-varadic
29526 2005-03-10 Kazuhiro Inaoka <inaoka.lazuhiro@renesas.com>
29528 * config/m32r/m32r.md (load_sda_base_32): New pattern. Loads
29529 sda base address on medium model.
29531 2005-03-10 Zdenek Dvorak <dvorakz@suse.cz>
29533 * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
29534 * cfgloop.c (flow_loop_nodes_find): Export.
29535 * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
29537 * cfgloopmanip.c (fix_loop_structure): New function.
29538 * predict.c (predict_loops): Clean up the loops information.
29539 * tree-cfg.c (cleanup_tree_cfg_loop): New function.
29540 (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
29542 * tree-flow.h (cleanup_tree_cfg_loop): Declare.
29543 (rewrite_into_loop_closed_ssa): Declaration changed.
29544 * tree-loop-linear.c (linear_transform_loops): Add argument to
29545 rewrite_into_loop_closed_ssa call.
29546 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
29547 * tree-ssa-loop-im.c (move_computations): Ditto.
29548 * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
29549 * tree-vectorizer.c (vectorize_loops): Ditto.
29550 * tree-optimize.c: Include cfgloop.h.
29551 (execute_todo): Choose whether to call cleanup_tree_cfg or
29552 cleanup_tree_cfg_loop.
29553 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
29554 (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
29555 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
29556 cleanup_tree_cfg_loop call.
29557 * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
29558 (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
29559 work on part of cfg.
29561 2005-03-10 Jakub Jelinek <jakub@redhat.com>
29563 PR inline-asm/20314
29564 * gimplify.c (gimplify_asm_expr): Handle input/output constraints
29565 with multiple alternatives.
29567 * stmt.c (parse_output_constraint): Fix a typo.
29569 2005-03-09 Bob Wilson <bob.wilson@acm.org>
29571 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
29572 assembly directive instead of deprecated "no-generics".
29574 2005-03-09 Ulrich Weigand <uweigand@de.ibm.com>
29576 * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
29577 for non-offsettable memory references to cope with outstanding reload
29579 * config/s390/s390.md ("reload_outti"): Call find_replacement to
29580 avoid losing outstanding address reloads.
29581 ("reload_outdi", "reload_outdf"): Likewise.
29583 2005-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29585 * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
29586 code. Add more cbrt transformations.
29588 2005-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29590 * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
29592 2005-03-09 Kazu Hirata <kazu@cs.umass.edu>
29594 * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
29595 NULL_TREE when a given tree is not simplified.
29596 (fold): Return the original tree when any of the functions
29597 mentioned above NULL_TREE.
29599 * fold-const.c (fold_unary, fold_binary): Take decomposed
29600 arguments, code, type, op0, and op1 in case of fold_binary.
29601 (fold): Update calls to fold_unary and fold_binary.
29603 2005-03-09 Roger Sayle <roger@eyesopen.com>
29605 * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
29606 a fndecl and an arglist instead of a CALL_EXPR, exp.
29608 2005-03-09 Kazu Hirata <kazu@cs.umass.edu>
29610 * cfglayout.c (fixup_reorder_chain): Remove old_bb.
29612 * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
29614 * expr.c (expand_assignment): Remove orig_to_rtx.
29616 * fold-const.c (int_const_binop): Remove no_overflow.
29618 * ifcvt.c (noce_emit_move_insn): Remove inmode.
29620 * loop-iv.c (get_biv_step_1): Remove lhs.
29622 * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
29624 * real.c (real_nan): Remove neg.
29626 * function.c (thread_prologue_and_epilogue_insns): Remove i
29629 * tree-data-ref.c (array_base_name_differ_p): Remove ta and
29632 * tree-eh.c (tree_could_trap_p): Remove idx.
29634 * tree-into-ssa.c (ann): Remove ann.
29636 * tree-outof-ssa.c (num_nodes): Remove num_nodes.
29638 * tree-sra.c (decide_block_copy): Remove inst_count.
29640 * tree-ssa-alias.c (may_alias_p): Remove v_ann.
29642 * tree-ssa-loop-im.c (lhs): Remove.
29644 * cfgbuild.c (state, STATE, SET_STATE,
29645 BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
29647 (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
29648 (find_basic_blocks): Set the state of each basic block to
29651 2005-03-08 Jeff Law <law@redhat.com>
29653 * tree-cfg.c (cleanup_control_flow): If removal of a computed
29654 goto results in the removal of edges in the CFG, then we need
29655 to recompute dominators.
29657 2005-03-09 Ben Elliston <bje@au.ibm.com>
29659 * c-common.c (c_do_switch_warnings): Comment fix.
29661 2005-03-08 Julian Brown <julian@codesourcery.com>
29663 * Patch from 2005-03-08 reverted for causing regressions and
29664 ppc-darwin bootstrap failure.
29666 2005-03-08 Fariborz Jahanian <fjahanian@apple.com>
29668 * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
29669 Define the real function for ppc-darwin.
29670 * c-typeck.c (convert_arguments): Check for target-specific
29671 invalid argument call to unprototyped function.
29672 * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
29674 * target.h (invalid_arg_for_unprototyped_fn): New field
29676 * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
29677 default target hook.
29678 * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
29681 2005-03-08 Kazu Hirata <kazu@cs.umass.edu>
29683 * c-typeck.c (constructor_stack, constructor_range_stack,
29684 initializer_stack): Make them static.
29686 * cfg.c (rbi_pool): Make it static.
29688 * gimple-low.c (lower_stmt_body): Make it static.
29689 * tree-flow.h: Remove the corresponding prototype. Don't
29690 declare lower_data.
29692 * sched-deps.c (cache_size): Make it static.
29694 * stor-layout.c (lang_adjust_rli): Make it static.
29696 2005-03-08 Julian Brown <julian@codesourcery.com>
29698 * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
29699 from being used for symbols with vague linkage when
29700 HAVE_GAS_COMDAT_GROUP is true.
29702 2005-03-08 J"orn Rennecke <joern.rennecke@st.com>
29704 * jump.c (invert_jump_1): Don't call redirect_jump_1 with
29705 nlabel == JUMP_LABEL (jump).
29707 2005-03-08 Kazu Hirata <kazu@cs.umass.edu>
29709 * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
29710 gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
29711 tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
29712 tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
29714 2005-03-08 Alexey Neyman <alex.neyman@auriga.ru>
29717 * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
29718 * c-common.c (handle_returns_twice): New function.
29719 (c_common_attribute_table): Declare eturns_twice' attribute.
29720 * doc/extend.texi: Document eturns_twice' attribute.
29721 * tree.h (DECL_IS_RETURNS_TWICE): New macro.
29722 (struct tree_decl): Add returns_twice_flag.
29724 2005-03-08 Kazu Hirata <kazu@cs.umass.edu>
29726 * tree-ssa-phiopt.c: Fix a comment typo.
29728 * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
29729 loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
29730 config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
29733 2005-03-08 Richard Henderson <rth@redhat.com>
29735 * config/alpha/alpha.c (code_for_builtin): Replace special-case
29736 builtin codes with ctzdi2, clzdi2, popcountdi2.
29737 (struct alpha_builtin_def): Add is_const.
29738 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
29739 (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
29740 (alpha_init_builtins): Init them. Set nothrow and const attributes
29742 (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
29743 alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
29744 alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
29745 alpha_fold_vector_minmax, alpha_fold_builtin_perr,
29746 alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
29747 alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
29748 alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
29749 alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
29750 (TARGET_FOLD_BUILTIN): New.
29751 * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
29752 (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
29754 (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
29756 2005-03-08 Ira Rosen <irar@il.ibm.com>
29758 PR tree-optimization/20122
29759 * tree-vect-analyze.c (vect_object_analysis): Analyze initial
29760 condition of access function instead of base.
29762 2005-03-07 Jeff Law <law@redhat.com>
29763 Steven Bosscher <stevenb@suse.de>
29765 * tree-cfg.c (find_taken_edge_computed_goto): New function.
29766 (find_taken_edge): Call find_taken_edge_computed_goto as
29767 appropriate. Allow any gimple invariant rather than just
29768 INTEGER_CST for VAL.
29769 (cleanup_control_flow): Cleanup a computed goto which has turned
29770 into a simple goto.
29771 (tree_merge_blocks): If block B has any forced labels, move
29772 them to the start of block A.
29773 * tree-ssa-dom.c (thread_across_edge): Allow threading across
29774 computed gotos as well.
29775 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
29776 removal of unnecessary computed gotos too.
29777 (lookup_redirection_data): Fix type of INSERT argument. Callers
29780 2005-03-08 Kazu Hirata <kazu@cs.umass.edu>
29782 * tree-ssa-phiopt.c: Update copyright. Fix indentations.
29783 Remove trailing spaces.
29785 * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
29786 unshare_all_trees): Make them static.
29787 * tree-gimple.h: Remove the corresponding prototypes.
29789 * diagnostic.h: Remove unused prototype
29790 debug_output_buffer.
29791 * modulo-sched.c: Remove unused prototype
29792 set_row_column_for_ps.
29794 * tree-ssa-phiopt.c (tree_ssa_phiopt,
29795 replace_phi_edge_with_variable): Remove unused variable i.
29797 2005-03-07 Per Bothner <per@bothner.com>
29799 * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
29801 2005-03-06 Andrew Pinski <pinskia@physics.uc.edu>
29804 * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
29805 bbs on the COND_EXPR instead of the PHI_NODEs.
29806 (candidate_bb_for_phi_optimization): Remove.
29807 (replace_phi_with_stmt): Rename to ...
29808 (replace_phi_edge_with_variable): this and change so that we
29809 replace the phi argument instead of removing the PHI.
29810 (conditional_replacement): Change so we deal with PHI with more
29811 than two arguments.
29812 (value_replacement): Likewise.
29813 (abs_replacement): Likewise.
29815 2005-03-07 Aldy Hernandez <aldyh@redhat.com>
29817 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
29818 output_e500_flip_gt_bit.
29820 * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
29822 (rs6000_generate_compare): Fix logic to look at the correct bits.
29823 (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
29825 (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
29826 gen_e500_flip_gt_bit. Rename gen_move_from_CR_eq_bit to
29827 gen_move_from_CR_gt_bit.
29829 * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
29830 ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
29831 (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
29833 * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
29834 (E500_CR_IOR_COMPARE): New constant.
29836 2005-03-08 Earl Chew <earl_chew@agilent.com>
29837 David Billinghurst <David.Billinghurst@riotinto.com>
29839 * config/i386/host-cygwin.c: New file to support precompiled
29841 * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
29842 * config.host: Use above files for cygwin host.
29844 2005-03-07 David Edelsohn <edelsohn@gnu.org>
29846 * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
29847 ordering ops from earlier change.
29849 2005-03-07 Per Bothner <per@bothner.com>
29851 Various fixes to allow us to again build if --enable-mapped-location:
29852 * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
29853 unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
29854 * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
29855 local variable loc. Change logic appropriately.
29856 * tree-vect-transform.c (vect_finish_stmt_generation): Use
29857 EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
29858 * c-parser.c (c_parser_for_statement): Initialize loc variable.
29859 * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
29860 DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
29862 2005-03-07 Richard Sandiford <rsandifo@redhat.com>
29864 PR rtl-optimization/19683
29865 * reload1.c (choose_reload_regs): Pass the number of bits, not the
29866 number of bytes, to smallest_int_for_mode. Fix arguments to
29867 REG_CANNOT_CHANGE_MODE_P.
29869 2005-03-07 Eric Botcazou <ebotcazou@libertysurf.fr>
29871 * reorg.c (relax_delay_slots): Check that the jump is
29872 conditional before trying to invert it.
29874 2005-03-07 Kazu Hirata <kazu@cs.umass.edu>
29876 * bb-reorder.c (max_entry_frequency, max_entry_frequency):
29879 * calls (stack_arg_under_construction): Make it static.
29881 * flow.c (regs_live_at_setjmp): Make it static.
29882 * flow.h: Remove the corresponding prototype.
29884 * reload1.c (reload_startobj, reload_firstobj,
29885 something_needs_operands_changed, reload_inherited,
29886 reload_inheritance_insn, reload_override_in,
29887 reload_spill_index): Make them static.
29889 * recog.c (verify_changes): Make it static.
29890 * recog.h: Remove the corresponding prototype.
29892 * cfgbuild.c (find_sub_basic_blocks): Remove.
29893 * basic-block.h: Remove the corresponding prototype.
29894 * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
29896 * doc/cfg.texi: Don't mention find_sub_basic_blocks.
29898 * tree-ssa-operands.c (check_build_stmt): Remove.
29900 * stor-layout.c (set_alignment): Remove.
29901 * tree.h: Remove the corresponding prototype.
29903 * tree-ssa-pre.c (has_abnormal_preds): Make it static.
29905 * tree-ssa-dce.c (control_dependence_map,
29906 visited_control_parents): Make them static.
29908 * cfghooks.c (verify_flow_info): Remove local variable
29911 * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
29914 * loop-unswitch.c (unswitch_loop): Remove local variable src.
29916 2005-03-07 David Billinghurst <David.Billinghurst@riotinto.com>
29918 * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
29920 2005-03-07 Joseph S. Myers <joseph@codesourcery.com>
29922 * config/ia64/hpux.h (LINK_SPEC): Add -z.
29923 * config/ia64/ia64.c (ia64_function_value): Return a REG not a
29924 PARALLEL for an empty structure.
29926 2005-03-07 Kazu Hirata <kazu@cs.umass.edu>
29928 * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
29930 * fold-const.c (fold_binary): Unroll the very first "for"
29933 2005-03-06 David Edelsohn <edelsohn@gnu.org>
29935 * config/rs6000/predicates.md (branch_comparison_operator): Remove
29936 redundant match_code test.
29937 (scc_comparison_operator): Swap match_operand and match_code
29939 (branch_positive_comparison_operator): Same.
29940 (trap_comparison_operator): Use comparison_operator and swap with
29943 2005-03-06 Marek Michalkiewicz <marekm@amelek.gda.pl>
29946 * config/avr/avr.c (print_operand): Add 'p' and 'r'.
29947 (out_movhi_r_mr): Read low byte of volatile MEM first.
29948 (out_movhi_mr_r): Write high byte of volatile MEM first.
29950 2005-03-05 Kazu Hirata <kazu@cs.umass.edu>
29952 * cselib.c (reg_values, reg_values_size): Make them static.
29954 * cse.c (cse_reg_info_table): Make it static.
29956 * fold-const.c (fold_unary): Use build1 instead of copy_node.
29958 2005-03-06 Zdenek Dvorak <dvorakz@suse.cz>
29960 * cse.c (find_best_addr): Use canon_for_address.
29962 2005-03-06 Kazu Hirata <kazu@cs.umass.edu>
29964 * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
29965 (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
29966 SUBREG and MEM, respectively.
29968 * fold-const.c (fold_binary): Use code instead of t.
29970 * fold-const.c (optimize_minmax_comparison): Take decomposed
29971 arguments code, type, op0, and op1 instead of t.
29972 (fold_binary): Update a call to optimize_minmax_comparison.
29974 * fold-const.c (fold_range_test): Take decomposed arguments
29975 code, type, op0, and op1 instead of t.
29976 (fold_binary): Update a call to fold_range_test.
29978 * fold-const.c (fold_binary_op_with_conditional_arg): Take
29979 decomposed arguments code, type, op0, and op1 instead of t.
29980 (fold_binary): Update a call to fold_range_test.
29982 2005-03-06 Kazu Hirata <kazu@cs.umass.edu>
29984 * fold-const.c (fold_binary): Avoid directly using the original
29985 expression t as much as possible.
29987 2005-03-05 Kazu Hirata <kazu@cs.umass.edu>
29989 * c-semantics.c (build_stmt): Use TYPE_P instead of
29990 IS_NON_TYPE_CODE_CLASS.
29991 * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
29992 (NON_TYPE_CHECK): Use TYPE_P instead of
29993 IS_NON_TYPE_CODE_CLASS.
29995 * fold-const.c (fold): Remove handling of binary expressions.
29997 2005-03-05 James A. Morrison <phython@gcc.gnu.org>
29999 * doc/c-tree.texi: Wrap comments in @r{}.
30000 * doc/cpp.texi: Likewise.
30001 * doc/cppinternals.texi: Likewise.
30002 * doc/extend.texi: Likewise.
30003 * doc/md.texi: Likewise.
30004 * doc/objc.texi: Likewise.
30005 * doc/sourcebuild.texi: Likewise.
30006 * doc/tm.texi: Likewise.
30007 * doc/tree-ssa.texi
30009 2005-03-05 Kazu Hirata <kazu@cs.umass.edu>
30011 * predict.c (apply_return_prediction): Standardize PHI chain
30013 * tree-ssa.c (ssa_redirect_edge): Likewise.
30015 * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
30016 gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
30019 * tree-phinodes.c (remove_phi_node): Drop the last argument.
30020 * tree-flow.h: Adjust the prototype for remove_phi_node.
30021 * lambda-code.c (perfect_nestify): Adjust a call to
30024 (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
30025 * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
30027 * tree-ssa-dce.c (remove_dead_phis): Likewise.
30028 * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
30029 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
30030 * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
30032 * combine.c (simplify_and_const_int): Use gen_int_mode instead
30033 of GEN_INT (trunc_int_for_mode (...)).
30034 * loop-iv.c (iv_number_of_iterations): Likewise.
30035 * postreload.c (reload_cse_move2add): Likewise.
30036 * simplify-rtx.c (simplify_const_unary_operation,
30037 simplify_const_binary_operation): Likewise.
30038 * stor-layout.c (get_mode_bounds): Likewise.
30040 * fold-const.c (fold_binary): New.
30041 (fold): Call fold_binary on binary expressions.
30043 2005-03-05 Richard Sandiford <rsandifo@redhat.com>
30045 * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
30046 * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
30047 (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
30048 (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
30049 (ASM_SPEC): Pass down -msym32 and -mno-sym32.
30051 2005-03-04 Devang Patel <dpatel@apple.com>
30053 PR tree-optimization/18815
30054 * tree-if-conv.c (combine_blocks): Adjust loop header edges for
30055 loops with zero exit edges.
30057 2005-03-04 Devang Patel <dpatel@apple.com>
30059 * doc/invoke.texi: Remove reference to webpage that does not exist.
30061 2005-03-04 John David Anglin <dave.danglin@nrc-cnrc.gc.ca>
30062 Joseph S. Myers <joseph@codesourcery.com>
30065 * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
30066 (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
30067 * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
30068 * pa.c (get_plabel): Change argument to symbol_ref. Call
30069 maybe_get_identifier instead of get_identifier.
30070 (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
30071 (struct deferred_plabel): Replace name field with symbol field.
30072 (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
30073 ASM_OUTPUT_EXTERNAL_REAL is defined.
30074 (output_global_address): Use output_addr_const for output of all
30076 (output_deferred_plabels): Use symbol_ref instead of name for address
30078 * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
30079 ASM_OUTPUT_SYMBOL_REF): New macros.
30080 * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw. Update
30082 (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
30085 2005-03-05 Joseph S. Myers <joseph@codesourcery.com>
30087 * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
30088 *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
30090 2005-03-04 Jeff Law <law@redhat.com>
30092 * basic-block.h (rediscover_loops_after_threading): Declare.
30093 * tree-ssa-dom.c: Include cfgloop.h.
30094 (tree_ssa_dominator_optimize): Discover loops and some basic
30095 properties. Remove forwarder blocks recreated by loop header
30096 canonicalization. Also mark backedges in the CFG.
30097 * tree-ssa-threadupdate.c: Include cfgloop.h
30098 (rediscover_loops_after_threading): Define.
30099 (struct local_info): New field, JUMP_THREADED.
30100 (prune_undesirable_thread_requests): New function.
30101 (redirect_edges): Clear EDGE_ABNORMAL. If edges were threaded
30102 then record that fact for the callers of redirct_edges.
30103 (thread_block): If BB has incoming backedges, then call
30104 prune_undesirable_thraed_requests. Note when we are
30105 going to have to rediscover loop information. Return a
30106 boolean indicating if any jumps were threaded.
30107 (thread_through_all_blocks): Bubble up boolean indicating
30108 if any jumps were threaded.
30109 * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
30110 (tree-ssa-threadupdate.o): Similarly.
30112 2005-03-04 Kazu Hirata <kazu@cs.umass.edu>
30114 * fold-const.c (fold_ternary): Unroll the "for" loop to
30117 2005-03-04 Andrew Haley <aph@redhat.com>
30119 * unwind-dw2-fde-glibc.c (struct
30120 unw_eh_callback_data.check_cache): New field.
30121 (frame_hdr_cache): New.
30122 (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
30123 Cache frame header info.
30125 2005-03-04 Richard Sandiford <rsandifo@redhat.com>
30127 * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
30128 (print_c_condition): Declare.
30129 * read-rtl.c (ptr_loc): New structure.
30130 (ptr_locs, ptr_loc_obstack, joined_conditions)
30131 (joined_conditions_obstack): New variables.
30132 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
30133 (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
30134 (join_c_conditions, print_c_condition): New functions.
30135 (apply_macro_to_string): Associate the new string with the same
30136 source location as the old one.
30137 (add_condition_to_string): Use join_c_conditions.
30138 (read_string): Use set_rtx_ptr_loc to record a filename and line
30139 number for the string.
30140 (read_rtx): Initialize the new variables above.
30141 * genattrtab.c (write_test_expr, write_attr_value): Use
30143 * genconditions.c (write_header): Don't define MAYBE_EVAL. Move its
30144 comment above the GCC_VERSION check.
30145 (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
30146 Inline the definition of MAYBE_EVAL.
30147 * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
30148 * genoutput.c (process_template): Likewise.
30149 * genpreds.c (write_predicate_subfunction): Likewise.
30150 (write_predicate_expr): Use print_c_condition.
30151 * genrecog.c (write_cond): Likewise.
30152 * gensupport.c (process_rtx): Use join_c_conditions to join the
30153 conditions of a define_insn_and_split. Record a source location
30154 for the string after the "&&".
30155 (alter_test_for_insn): Use join_c_conditions.
30157 2005-03-04 Andrew Pinski <pinskia@physics.uc.edu>
30160 2005-03-03 James A. Morrison <phython@gcc.gnu.org>
30161 PR tree-optimization/15784
30162 * fold-const.c (fold): Fold ~A + 1 to -A. Fold -A - 1
30165 2005-03-04 Ben Elliston <bje@au.ibm.com>
30167 * gcc.c (option_map): Add --coverage.
30168 (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
30169 (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
30170 * config/darwin.h: Pass -lgcov for `coverage'.
30171 * doc/invoke.texi (Debugging Options): Document --coverage.
30173 2005-03-04 Kazu Hirata <kazu@cs.umass.edu>
30175 * gcse.c (bypass_block): Use find_edge wherever possible.
30177 2005-03-03 Daniel Berlin <dberlin@dbrelin.org>
30181 * c-opts.c (c_common_parse_file): Call start_source_file
30182 and end_source_file at the approriate times.
30184 * dwarf2out.c (dwarf2out_finish): Don't auto-end
30185 the main file, it will be done for us now.
30187 2005-03-04 Kazu Hirata <kazu@cs.umass.edu>
30189 * fold-const.c (fold_ternary): New.
30190 (fold): Call fold_ternary on ternary expressions. Remove
30191 handling of ternary expressions.
30193 2005-03-03 James A. Morrison <phython@gcc.gnu.org>
30195 PR tree-optimization/15784
30196 * fold-const.c (fold): Fold ~A + 1 to -A. Fold -A - 1
30199 2005-03-03 David Edelsohn <edelsohn@gnu.org>
30201 * config/rs6000/predicates.md (branch_comparison_operator):
30202 Convert from C block to conditional format.
30204 2005-03-03 Jan Hubicka <jh@suse.cz>
30206 * tree-dfa.c (add_referenced_var): Don't walk initializer of external
30207 and non-constant public variables.
30209 2005-03-03 Kazu Hirata <kazu@cs.umass.edu>
30211 * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
30214 * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
30217 * tree-phinodes.c (remove_phi_node): Clean up by factoring out
30218 calls to release_ssa_name and release_phi_node.
30220 * fold-const.c (fold): Remove handling of unary expressions.
30222 * fold-const.c (fold_unary): Avoid directly using the original
30223 expression t as much as possible.
30225 2005-03-03 Roger Sayle <roger@eyesopen.com>
30226 Andrew Pinski <pinskia@physics.uc.edu>
30228 * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
30229 RETURN rtx, and not a LABEL_REF containing a NULL pointer.
30231 2005-03-03 Hans-Peter Nilsson <hp@axis.com>
30233 Describe special registers SRP and MOF as allocatable registers.
30234 * config/cris/cris.c (cris_md_asm_clobbers): New function.
30235 (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
30236 (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
30237 TARGET_HAS_MUL_INSNS.
30238 (cris_print_operand) <case 'd'>: New case.
30239 <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
30240 * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
30242 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
30243 (REG_ALLOC_ORDER): Update for MOF.
30244 (enum reg_class): New members MOF_REGS, GENERAL_REGS and
30246 (GENERAL_REGS): No longer a define of ALL_REGS.
30247 (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
30248 (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
30249 Adjust accordingly.
30250 (CRIS_SPECIAL_REGS_CONTENTS): New macro.
30251 (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
30252 (SECONDARY_RELOAD_CLASS): Define.
30253 (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
30254 (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
30255 (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
30256 (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
30257 (REGISTER_MOVE_COST): Define.
30258 (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
30259 * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
30260 (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
30261 (CRIS_MOF_REGNUM): New define_constants.
30262 ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
30264 ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
30266 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
30267 ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
30268 Adjust for MOF being properly described as a register.
30269 (indir_to_reg_split): Name this split. Conditionalize on the
30270 destination register being a general register.
30271 (movei): Conditionalize on on operands 0 and 1 having the same
30274 2005-03-03 Alan Modra <amodra@bigpond.net.au>
30277 * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
30278 -mcpu to override any other explicitly given flags.
30280 2005-03-02 J"orn Rennecke <joern.rennecke@st.com>
30282 * recog.c (verify_changes, confirm_change_group): New functions,
30283 broken out of apply_change_group.
30284 (apply_change_group): Use them.
30285 * recog.h (verify_change, confirm_change_group): Declare.
30286 * rtl.h (redirect_jump_2): Declare.
30287 * jump.c (redirect_exp, invert_exp): Delete.
30288 (invert_exp_1): Take second parameter. Return value. Changed caller.
30289 (redirect_jump_2): New function, broken out of redirect_jump.
30290 (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
30291 (invert_jump): Use invert_jump_1 and redirect_jump_2.
30292 * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
30294 2005-03-02 Geoffrey Keating <geoffk@apple.com>
30296 * varasm.c (named_section): Use xstrdup rather than doing it by
30299 * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
30301 2005-03-02 Devang Patel <dpatel@apple.com>
30303 Undo PR tree-optimization/18815 fix.
30305 2005-03-02 Devang Patel <dpatel@apple.com>
30307 PR tree-optimization/18815
30308 * tree-if-conv.c (combine_blocks): Adjust loop header edges for
30309 loops with zero exit edges.
30311 2005-03-02 Kazu Hirata <kazu@cs.umass.edu>
30313 * cfg.c (connect_src, connect_dest, disconnect_src,
30314 disconnct_dest): New.
30315 (unchecked_make_edge, remove_edge, redirect_edge_succ,
30316 redirect_edge_pred): Use the new functions.
30318 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
30319 free_dominance_info only when needed.
30321 2005-03-02 David Edelsohn <edelsohn@gnu.org>
30324 * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
30325 (reg_or_sub_cint64_operand): Same.
30327 2005-03-02 Jeff Law <law@redhat.com>
30329 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
30330 CFG_ALTERED in the main DOM iteration loop.
30332 2005-03-02 Mark Mitchell <mark@codesourcery.com>
30335 * varasm.c (initializer_constant_valid_p): Allow conversions
30336 between OFFSET_TYPEs. Tidy.
30338 2005-03-02 Hans-Peter Nilsson <hp@axis.com>
30340 * config/cris/cris.md ("return"): Remove epilogue delay list
30343 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
30345 * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
30347 * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
30349 2005-03-02 Kazu Hirata <kazu@cs.umass.edu>
30351 * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
30352 loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
30353 config/m68k/m68k.c, config/mips/mips.h,
30354 config/rs6000/rs6000-protos.h, doc/contrib.texi,
30355 doc/include/gcc-common.texi: Update copyright.
30357 PR middle-end/18029 and PR middle-end/18030
30358 * expr.c (optimize_bitfield_assignment_op): Add a special case
30359 to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
30361 * fold-const.c (fold_unary): New.
30362 (fold): Call fold_unary on unary expressions.
30364 2005-03-02 Richard Guenther <rguenth@gcc.gnu.org>
30366 * cgraph.h (struct cgraph_edge): Add prev_caller and
30367 prev_callee fields.
30368 (cgraph_node_remove_callees): Export.
30369 * cgraph.c (cgraph_create_edge): Initialize prev_caller
30371 (cgraph_edge_remove_callee): New function.
30372 (cgraph_edge_remove_caller): Likewise.
30373 (cgraph_remove_edge): Use.
30374 (cgraph_redirect_edge_callee): Likewise.
30375 (cgraph_node_remove_callees): New function.
30376 (cgraph_node_remove_callers): Likewise.
30377 (cgraph_remove_node): Use.
30378 * tree-optimize.c (tree_rest_of_compilation): Use
30379 cgraph_node_remove_callees instead of manual loop.
30380 * cgraphunit.c (cgraph_finalize_function): Likewise.
30381 (cgraph_expand_function): Likewise.
30382 (cgraph_remove_unreachable_nodes): Likewise.
30384 2005-03-02 Joseph S. Myers <joseph@codesourcery.com>
30387 * c-tree.h (undeclared_variable, build_external_ref): Add extra
30389 * c-decl.c (undeclared_variable): Take location as argument.
30390 * c-typeck.c (build_external_ref): Likewise.
30391 * c-parser.c (c_parser_postfix_expression): Pass location of
30392 identifier to build_external_ref.
30394 2005-03-01 David Edelsohn <edelsohn@gnu.org>
30396 * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
30397 CCEQ mode for branch_positive_comparison_operator test.
30398 * config/rs6000/predicates (branch_comparison_operator): Revert to
30400 (scc_comparison_operator): Same.
30401 (branch_positive_comparison_operator): Same.
30403 2005-03-01 Hans-Peter Nilsson <hp@axis.com>
30405 * config/cris/cris.c (cris_eligible_for_epilogue_delay)
30406 (cris_delay_slots_for_epilogue): Remove.
30407 (save_last): Move into cris_target_asm_function_epilogue.
30408 (cris_target_asm_function_epilogue): Remove tests for file being
30410 * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
30411 (cris_delay_slots_for_epilogue): Remove prototypes.
30412 * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
30413 (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
30415 2005-03-01 David Edelsohn <edelsohn@gnu.org>
30417 * config/rs6000/predicates.md (branch_comparison_operator): Change
30418 to define_special_predicate.
30419 (scc_comparison_operator): Same.
30420 (branch_positive_comparison_operator): Same.
30422 2005-03-01 Daniel Berlin <dberlin@dberlin.org>
30424 * Makefile.in (tree-ssa-sink.o): New.
30425 (OBJS-common): Add tree-ssa-sink.o.
30426 * common.opt: Add -ftree-sink
30427 * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
30428 * timevar.def (TV_TREE_SINK): new timevar.
30429 * tree-flow.h (is_hidden_global_store): Prototype.
30430 * tree-optimize.c (init_tree_optimization_passes): Add
30432 * tree-pass.h (pass_sink_code): New.
30433 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
30434 for non-obvious global store store to is_hidden_global_store, and
30435 call that new function.
30436 * tree-ssa-sink.c: New file.
30437 * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
30438 * doc/passes.texi: Document forward store motion.
30439 * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
30440 * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
30441 * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
30442 * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
30444 2005-03-01 Per Bothner <per@bothner.com>
30446 * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
30447 and we have a non-zero column-number, add it to the message.
30448 Also factor out the diagnostic_kind_text.
30450 2005-03-01 Zdenek Dvorak <dvorakz@suse.cz>
30452 * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
30453 flow_loop_pre_header_scan, flow_loop_pre_header_find,
30454 flow_loop_scan): Removed.
30455 (flow_loop_dump): Do not dump removed fields.
30456 (flow_loop_free): Do not free removed fields.
30457 (flow_loops_find): Flags argument removed. Do not call flow_loop_scan.
30458 (loop_exit_edge_p): New function.
30459 * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
30460 num_pre_header_edges, entry_edges, num_entries, exit_edges,
30461 num_exits, exits_doms.
30462 (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
30463 LOOP_EDGES, LOOP_ALL): Removed.
30464 (flow_loop_scan): Declaration removed.
30465 (loop_exit_edge_p, mark_loop_exit_edges): Declare.
30466 * cfgloopmanip.c (create_loop_notes): Do not pass flags to
30468 * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
30469 (if_convert): Call flow_loops_find and flow_loops_free
30470 when calling mark_loop_exit_edges.
30471 * cfgloopanal.c (mark_loop_exit_edges): Moved from
30472 ifcvt.c. Removed the flow_loops_find, flow_loops_free and
30473 free_dominance_info calls.
30474 * loop-init.c (flow_loops_find): Ditto.
30475 * passes.c (rest_of_handle_branch_prob): Ditto.
30476 * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
30477 * loop-unroll.c (analyze_insns_in_loop): Do not use
30479 * predict.c (predict_loops): Do not call flow_loop_scan.
30480 Use get_loop_exit_edges.
30481 (tree_estimate_probability): Do not pass flags to flow_loops_find.
30482 * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
30483 Do not use EDGE_LOOP_EXIT.
30484 (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
30485 to bb_with_exit_edge_p.
30486 (if_convertible_loop_p): Do not call flow_loop_scan. Use
30487 loop->single_exit. Do not use EDGE_LOOP_EXIT. Pass loop
30488 to bb_with_exit_edge_p.
30489 (combine_blocks): Pass loop to bb_with_exit_edge_p. Do not use
30491 * tree-loop-linear.c (linear_transform_loops): Do not call
30492 flow_loop_scan. Use loop->single_exit.
30493 * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
30494 (vect_analyze_loop_form): Do not call flow_loop_scan.
30495 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
30497 (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
30499 * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
30500 slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
30501 slpeel_tree_duplicate_loop_to_edge_cfg,
30502 slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
30503 Use loop_preheader_edge and loop->single_exit. Do not call
30506 2005-03-01 Nick Clifton <nickc@redhat.com>
30508 * config/arm/arm.c (thumb_find_work_register): Check all of the
30509 argument registers to see if they are free, and a couple of
30510 special cases where the last argument register but can be proved
30511 to be available during the function's prologue.
30512 (print_multi_reg, arm_compute_save_reg0_reg12_mask,
30513 output_return_instruction, emit_multi_reg_push, thumb_pushpop,
30514 thumb_unexpanded_epilogue): Use unsigned long as the type for the
30516 (thumb_compute_save_reg_mask): Likewise. Also use
30517 thumb_find_work_register() to ensure that there is agreement about
30518 which work register is going to be used in the prologue.
30519 (thumb_output_function_prologue): Use unsigned long as the type
30520 for the register bit-mask. Also delay pushing the link register if
30521 other high registers are going to be pushed.
30522 (thumb_compute_save_reg_mask, emit_multi_reg_push,
30523 print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
30524 redundant prototypes.
30526 2005-02-28 John David Anglin <dave.anglin#nrc-cnrc.gc.ca>
30529 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
30530 and after reload in REG+REG indexed addresses without REG_POINTER
30531 set in the base and not set in the index.
30533 2005-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
30535 * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
30536 Don't undefine here.
30537 (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
30538 (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
30539 (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
30540 (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
30541 LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
30543 * config.gcc (sh*-*-linux*): Use config/linux.h.
30545 2005-02-28 Dale Johannesen <dalej@apple.com>
30546 Stan Shebs <shebs@apple.com>
30548 Rewrite of 64-bit Darwin structure-by-value pass/return.
30549 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
30550 intoffset, use_stack, named.
30551 * config/rs6000/rs6000.c (rs6000_darwin64_function_arg): Remove.
30552 (rs6000_darwin64_record_arg_advance_flush): New.
30553 (rs6000_darwin64_record_arg_advance_recurse): New.
30554 (rs6000_darwin64_record_arg_flush): New.
30555 (rs6000_darwin64_record_arg_recurse): New.
30556 (rs6000_darwin64_record_arg): New.
30557 (rs6000_return_in_memory): Remove AGGREGATE_TYPE_P check.
30558 (function_arg_boundary): Handle 128-bit aligned structs.
30559 (function_arg_advance): Rewrite darwin64 struct handling.
30560 (function_arg): Call rs6000_darwin64_record_arg.
30561 (function_arg_partial_nregs): Handle darwin64 structs.
30562 (rs6000_darwin64_function_value): Remove.
30563 (rs6000_function_value): Call rs6000_darwin64_record_arg.
30565 2005-02-28 Roger Sayle <roger@eyesopen.com>
30567 PR tree-optimization/20216
30568 * tree-chrec.c (tree_fold_factorial): Delete.
30569 (tree_fold_binomial): Change argument list to take a return type
30570 and change the type of K to unsigned int. Rewrite to avoid explicit
30571 evaluation of factorials, and (recursively) calling fold to perform
30572 compile-time arithmetic. Return NULL on (internal) overflow.
30573 (chrec_evaluate): Change type of K to an unsigned int. Avoid
30574 calling tree_fold_binomial unnecessarily. Return chrec_dont_know
30575 if any intermediate calculation overflows.
30576 (chrec_apply): Update call to chrec_evaluate.
30578 2005-02-28 James E Wilson <wilson@specifixinc.com>
30580 * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
30582 2005-02-28 Joseph S. Myers <joseph@codesourcery.com>
30585 * c-parser.c (c_parser_compound_statement): Return error_mark_node
30586 instead of NULL_TREE on error.
30588 2005-02-28 David Edelsohn <edelsohn@gnu.org>
30590 * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
30591 (EASY_VECTOR_15_ADD_SELF): Remove.
30592 (num_insns_constant_wide): Not static.
30593 (validate_condition_mode): Not static.
30594 (toc_relative_expr_p): Not static.
30595 (legitimate_indirect_address_p): Not static.
30596 (macho_lo_sum_memory_operand): Not static.
30597 (invalid_e500_subreg): Not static.
30598 (easy_vector_same): Not static.
30599 (easy_vector_splat_const): Not static.
30600 (RS6000_SYMBOL_REF_TLS_P): Remove.
30601 (any_operand): Delete.
30602 (any_parallel_operand): Delete.
30603 (count_register_operand): Delete.
30604 (altivec_register_operand): Delete.
30605 (xer_operand): Delete.
30606 (s8bit_cint_operand): Delete.
30607 (short_cint_operand): Delete.
30608 (u_short_cint_operand): Delete.
30609 (non_short_cint_operand): Delete.
30610 (exact_log2_cint_operand): Delete.
30611 (gpc_reg_operand): Delete.
30612 (cc_reg_operand): Delete.
30613 (cc_reg_not_cr0_operand): Delete.
30614 (reg_or_short_operand): Delete.
30615 (reg_or_neg_short_operand): Delete.
30616 (reg_or_aligned_short_operand): Delete.
30617 (reg_or_u_short_operand): Delete.
30618 (reg_or_cint_operand): Delete.
30619 (reg_or_arith_cint_operand): Delete.
30620 (reg_or_add_cint64_operand): Delete.
30621 (reg_or_sub_cint64_operand): Delete.
30622 (reg_or_logical_cint_operand): Delete.
30623 (got_operand): Delete.
30624 (got_no_const_operand): Delete.
30625 (easy_fp_constant): Delete.
30626 (easy_vector_constant): Delete.
30627 (easy_vector_constant_add_self): Delete.
30628 (zero_constant): Delete.
30629 (zero_fp_constant): Delete.
30630 (volatile_mem_operand): Delete.
30631 (offsettable_mem_operand): Delete.
30632 (mem_or_easy_const_operand): Delete.
30633 (add_operand): Delete.
30634 (non_add_cint_operand): Delete.
30635 (logical_operand): Delete.
30636 (non_logical_cint_operand): Delete.
30637 (mask_operand): Delete.
30638 (mask_operand_wrap): Delete.
30639 (mask64_operand): Delete.
30640 (mask64_2_operand): Delete.
30641 (and64_operand): Delete.
30642 (and64_2_operand): Delete.
30643 (and_operand): Delete.
30644 (reg_or_mem_operand): Delete.
30645 (lwa_operand): Delete.
30646 (symbol_ref_operand): Delete.
30647 (call_operand): Delete.
30648 (current_file_function_operand): Delete.
30649 (input_operand): Delete.
30650 (rs6000_nonimmediate_operand): Delete.
30651 (rs6000_tls_symbol_ref): Delete.
30652 (save_world_operation): Delete.
30653 (restore_world_operation): Delete.
30654 (load_multiple_operation): Delete.
30655 (store_multiple_operation): Delete.
30656 (vrsave_operation): Delete.
30657 (mfcr_operation): Delete.
30658 (mtcrf_operation): Delete.
30659 (lmw_operation): Delete.
30660 (stmw_operation): Delete.
30661 (branch_comparison_operator): Delete.
30662 (branch_positive_comparison_operator): Delete.
30663 (scc_comparison_operator): Delete.
30664 (trap_comparison_operator): Delete.
30665 (boolean_operator): Delete.
30666 (boolean_or_operator): Delete.
30667 (min_max_operator): Delete.
30668 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
30669 (EASY_VECTOR_15): Moved to here.
30670 (EASY_VECTOR_15_ADD_SELF): Move to here.
30671 (PREDICATE_CODES): Delete.
30672 * config/rs6000/rs6000-protos.h: Delete predicate functions.
30673 Declare functions no longer static.
30674 * config/rs6000/predicates.md: New.
30675 * config/rs6000/rs6000.md: Include predicates.md
30677 2005-02-28 Kazu Hirata <kazu@cs.umass.edu>
30679 * calls.c (emit_call_1): Don't use REG_ALWAYS_RETURN.
30680 (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
30682 * cfgrtl.c (need_fake_edge_p): Likewise.
30683 * combine.c (distribute_notes): Likewise.
30684 * emit-rtl.c (try_split): Likewise.
30685 * recog.c (peephole2_opimize): Likewise.
30686 * reg-notes.def (ALWAYS_RETURN): Remove.
30687 * rtl.h (LCT_ALWAYS_RETURN): Remove.
30688 * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
30689 * tree.h (ECF_ALWAYS_RETURN): Remove.
30691 2005-02-28 Roger Sayle <roger@eyesopen.com>
30693 PR middle-end/19874
30694 * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
30695 between different machine modes is never a "useless" conversion.
30697 2005-02-28 Geert Bosch <bosch@gnat.com>
30700 * doc/contrib.texi: List contributors for Ada front end
30702 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
30704 * simplify-rtx.c (simplify_unary_operation_1,
30705 simplify_const_unary_operation): New, extracted from...
30706 (simplify_unary_operation): ... this one.
30707 (simplify_binary_operation_1,
30708 simplify_const_binary_operation): New, extracted from...
30709 (simplify_binary_operation): ... this one.
30710 * rtl.h (simplify_const_unary_operation,
30711 simplify_const_binary_operation): Add prototypes.
30713 2005-02-28 Julian Brown <julian@codesourcery.com>
30715 * config/elfos.h: Revert my patch from 2005-02-25 since it broke
30716 building libjava and caused PR regression/20228.
30718 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
30721 * Makefile.in (host_subdir): New.
30722 (build_objdir): New. Replace ../$(build_subdir) with it throughout.
30723 * configure: Regenerate.
30725 2005-02-27 Zack Weinberg <zack@codesourcery.com>
30727 * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
30728 * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
30729 installation directory first.
30731 2005-02-28 Hans-Peter Nilsson <hp@axis.com>
30734 * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
30735 not including (reg). Do not check for reg being CRIS_PC_REGNUM.
30736 (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
30737 * config/cris/cris.md: Tweak comments referring to Q.
30738 ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
30739 ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
30740 ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
30741 ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
30742 ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
30743 Insert spaces in constraints to align alternatives vertically for
30745 ("cmphi"): Ditto. Add separate alternative for operand 0 "r",
30748 2005-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30750 PR rtl-optimization/17728
30751 * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
30752 operand 0 from general_operand to move_dest_operand.
30754 2005-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30756 * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
30757 instead of trying to save and restore TREE_SYMBOL_REFERENCED.
30758 * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
30759 (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
30761 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
30763 * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
30764 * configure: Regenerate.
30765 * libada-mk.in: Remove CC; rename
30766 cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
30768 2005-02-26 Andrew Pinski <pinskia@physics.uc.edu>
30771 * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
30772 for the lhs, also walk over the tree. Likewise for rhs.
30774 2005-02-26 Zdenek Dvorak <dvorakz@suse.cz>
30776 * tree-ssa-dom.c (simple_iv_increment_p): New function.
30777 (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
30778 Do not propagate value of iv before increment over the increment.
30780 2005-02-25 Joseph S. Myers <joseph@codesourcery.com>
30782 * c-parser.c: New file.
30783 * c-parse.in: Remove.
30784 * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
30786 (c-parser.o): Add dependencies.
30787 (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
30788 maintainer-clean, TAGS): Update.
30789 * c-config-lang.in (gtfiles): Update.
30790 * gengtype-lex.l: Don't handle "@@".
30791 * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
30792 objc_build_synchronized, objc_begin_try_stmt,
30793 objc_begin_catch_clause, objc_finish_catch_clause,
30794 objc_build_finally_clause, objc_finish_try_stmt): New.
30795 * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
30797 (c_parse_init): Update comment.
30798 * c-decl.c (c_init_decl_processing): Update comment.
30799 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
30800 declspecs_add_scspec, declspecs_add_attrs): Initialize and update
30801 new c_declspecs members.
30803 2005-02-25 Julian Brown <julian@codesourcery.com>
30805 * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
30806 from being used for symbols with vague linkage when
30807 HAVE_GAS_COMDAT_GROUP is true.
30809 2005-02-25 Mark Mitchell <mark@codesourcery.com>
30811 * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
30813 2005-02-25 Steve Ellcey <sje@cup.hp.com>
30816 * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
30817 (LIBGCC2_HAS_DF_MODE): New.
30818 (LIBGCC2_HAS_XF_MODE): New.
30819 (LIBGCC2_HAS_TF_MODE): New.
30820 * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
30821 (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
30822 * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
30823 (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
30824 (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
30825 * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
30826 and add _fixtfdi, _fixunstfdi, _floatditf
30827 * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
30828 L_fixunstfdi, L_floatditf.
30829 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
30830 (LIBGCC2_HAS_TF_MODE): Define.
30832 2005-02-25 Diego Novillo <dnovillo@redhat.com>
30834 PR tree-optimization/20204
30835 * tree-into-ssa.c (insert_phi_nodes_for): Do not use
30836 REWRITE_THIS_STMT markers on PHI nodes.
30837 (rewrite_initialize_block): Likewise.
30839 2005-02-25 Mark Mitchell <mark@codesourcery.com>
30841 * version.c (version_string): Update to 4.1.
30843 2005-02-25 Paolo Carlini <pcarlini@suse.de>
30845 * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
30846 Clarify that the alternative way doesn't work in GNU C++.
30848 2005-02-25 Zdenek Dvorak <dvorakz@suse.cz>
30850 PR tree-optimization/19937
30851 * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
30852 to the type of the induction variable.
30854 2005-02-25 Kaz Kojima <kkojima@gcc.gnu.org>
30856 PR rtl-optimization/20117
30857 * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
30858 the block including noncopyable insn.
30860 2005-02-24 Kazu Hirata <kazu@cs.umass.edu>
30862 * cse.c (delete_trivially_dead_insns): Speed up by minimizing
30863 calls to find_reg_note.
30865 2005-02-24 Richard Henderson <rth@redhat.com>
30868 * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
30871 2005-02-24 Fariborz Jahanian <fjahanian@apple.com>
30873 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
30874 vector types if to use base reg for misaligned non-word ld/std.
30876 2005-02-24 Hans-Peter Nilsson <hp@axis.com>
30879 * config/cris/cris.c (cris_target_asm_function_prologue): Create
30880 dwarf2 label manually and put it after, not before the prologue.
30882 2005-02-24 David Edelsohn <edelsohn@gnu.org>
30885 * reload.c (operands_match_p): Only increment register number for
30886 SCALAR_INT_MODE_P modes in multiple hard registers.
30888 * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
30891 2005-02-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
30893 * ChangeLog.5: Fix log message typo(s).
30894 * ChangeLog.7: Likewise.
30895 * ChangeLog.tree-ssa: Likewise.
30896 * cfgexpand.c: Fix comment typo(s).
30897 * conflict.c: Likewise.
30898 * defaults.h: Likewise.
30899 * dwarf2out.c: Likewise.
30900 * gcse.c: Likewise.
30901 * ggc-page.c: Likewise.
30902 * tree-eh.c: Likewise.
30903 * tree-ssa-dom.c: Likewise.
30905 2005-02-24 Jakub Jelinek <jakub@redhat.com>
30908 * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
30909 * config/rs6000/darwin-ldouble.c: Only use the .symver directives
30910 if SHARED is defined.
30913 * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
30914 allow splitting only if operands 0 and 3 don't overlap.
30916 2005-02-24 Richard Henderson <rth@redhat.com>
30918 PR middle-end/19953
30919 * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
30920 (fold_builtin_1): Call them.
30921 * fold-const.c (fold_complex_mult_parts): Split out from ...
30922 (fold_complex_mult): ... here. Fix typo in both imaginary case.
30923 (fold_complex_div_parts, fold_complex_div): New.
30925 * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
30927 2005-02-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30929 * tree-ssa-ccp.c (visit_assignment): Verify that result of
30930 VIEW_CONVERT_EXPR is_gimple_min_invariant.
30932 * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
30933 (print_node): Likewise.
30934 Print TYPE_SIZES_GIMPLIFIED.
30936 2005-02-24 Hans-Peter Nilsson <hp@axis.com>
30938 * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
30939 ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
30940 operands as commutative in constraints.
30942 2005-02-24 Diego Novillo <dnovillo@redhat.com>
30944 * tree-into-ssa.c: Re-organize internal functions.
30946 2005-02-24 Richard Henderson <rth@redhat.com>
30948 PR middle-end/18902
30949 * c-opts.c (c_common_post_options): Set flag_complex_method to 2
30951 * common.opt (fcx-limited-range): New.
30952 * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
30953 * toplev.c (flag_complex_method): Initialize to 1.
30954 (process_options): Set flag_complex_method to 0 if
30955 flag_cx_limited_range.
30956 * doc/invoke.texi (-fcx-limited-range): New.
30958 2005-02-24 Kazu Hirata <kazu@cs.umass.edu>
30960 * cse.c (delete_trivially_dead_insns): Speed up by using
30961 NEXT_INSN and PREV_INSN directly instead of next_real_insn and
30964 2005-02-24 Andrea Tarani <andrea.tarani@gilbarco.com>
30966 * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
30967 functions when -mid-shared-library is being used.
30969 2005-02-23 Daniel Jacobowitz <dan@codesourcery.com>
30971 * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
30972 (LINK_LIBGCC_SPECIAL_1): Don't mention it.
30973 * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
30974 * system.h: Poison LINK_LIBGCC_SPECIAL.
30976 2005-02-23 James E Wilson <wilson@specifixinc.com>
30978 * gengtype.c (note_insn_name): Make 1 element larger.
30980 2005-02-23 Roger Sayle <roger@eyesopen.com>
30983 PR rtl-optimization/20097
30984 * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
30985 BImode SUBREGs of SImode registers which confuse the ia64 backend.
30987 2005-02-23 David Edelsohn <edelsohn@gnu.org>
30989 * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
30990 * t-aix52 (SHLIB_INSTALL): Same.
30992 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
30994 * genpreds.c: Update copyright.
30996 2005-02-23 Michael Beach <michaelb@ieee.org>
30999 * config/sparc/t-elf (startup files): Assemble with CPP.
31001 2005-02-23 Paolo Bonzini <bonzini@gnu.org>
31003 * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
31004 (write_predicate_expr): Likewise.
31006 2005-02-22 Diego Novillo <dnovillo@redhat.com>
31008 PR tree-optimization/20100
31009 PR tree-optimization/20115
31010 * tree-optimize.c (init_tree_optimization_passes): Remove
31011 pass_maybe_create_global_var.
31012 * tree-pass.h (pass_maybe_create_global_var): Remove.
31013 * tree-ssa-alias.c (aliases_computed_p): Declare.
31014 (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
31015 (count_calls_and_maybe_create_global_var): Remove.
31016 (pass_maybe_create_global_var): Remove.
31017 (init_alias_info): Do not declare aliases_computed_p.
31018 (maybe_create_global_var): If the function contains no
31019 call-clobbered variables and a mix of pure/const and regular
31020 function calls, create .GLOBAL_VAR.
31021 Mark all call-clobbered variables for renaming.
31022 (merge_pointed_to_info): Update comment.
31023 (add_pointed_to_var): Likewise.
31024 (is_escape_site): Likewise.
31025 Accept struct alias_info * instead of size_t *.
31027 Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
31029 * tree-ssa-operands.c (get_call_expr_operands): If
31030 ALIASES_COMPUTED_P is false, do not add call-clobbering
31032 * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
31033 (delete_tree_ssa): Likewise.
31035 2005-02-22 James E Wilson <wilson@specifixinc.com>
31037 * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
31038 (do_compile): Do call it here.
31040 2005-02-22 Kazu Hirata <kazu@cs.umass.edu>
31042 PR rtl-optimization/20017.
31043 * passes.c (rest_of_handle_combine, rest_of_handle_cse,
31044 rest_of_handle_cse2, rest_of_handle_gcse): Call
31045 delete_dead_jumptables immediately before calling cleanup_cfg.
31047 2005-02-22 Devang Patel <dpatel@apple.com>
31050 * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
31053 2005-02-22 David Edelsohn <edelsohn@gnu.org>
31055 * config/rs6000/aix.h (WINT_TYPE): Define.
31057 2005-02-22 Stan Shebs <shebs@apple.com>
31059 * config/rs6000/rs6000.c (rs6000_override_options): Default to
31060 natural alignment for 64-bit Darwin.
31061 (rs6000_parse_alignment_option): Warn about uses of -malign-power
31063 * doc/invoke.texi: Document this.
31065 2005-02-22 DJ Delorie <dj@redhat.com>
31067 * c-common.c (c_common_type_for_mode): Pass the mode's precision
31068 to make_[un]signed_type, not the mode itself.
31070 2005-02-22 Kazu Hirata <kazu@cs.umass.edu>
31072 * cfg.c (cached_make_edge): Call make_edge if edge cache is
31073 not available. Use tail calls wherever possible.
31074 (make_edge): Call unchecked_make_edge to create an edge.
31076 * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
31077 (coalesce_ssa_name): Don't check for
31078 SSANORM_USE_COALESCE_LIST.
31079 (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
31081 2005-02-22 Diego Novillo <dnovillo@redhat.com>
31083 * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
31084 (rewrite_into_ssa): ... here.
31086 2005-02-21 Alexandre Oliva <aoliva@redhat.com>
31088 PR tree-optimization/19786
31089 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
31090 tag to another's may-alias bitmap when adding to the other's list.
31092 2005-02-21 DJ Delorie <dj@redhat.com>
31094 * tree-ssa-loop-ivopts.c (computation_cost): Start register
31095 numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
31096 registers in unsupported ways.
31097 * expmed.c (init_expmed): Likewise.
31099 2005-02-21 Stan Cox <scox@redhat.com>
31101 * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
31103 2005-02-21 Kazu Hirata <kazu@cs.umass.edu>
31105 * tree-cfg.c (fold_cond_expr_cond): New.
31106 (make_edges): Call fold_cond_expr_cond.
31107 (find_taken_edge): Accept nothing but INTEGER_CST.
31108 (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
31110 (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
31112 * flow.c (delete_dead_jumptables): Speed up by scanning insns
31113 that do not belong to any basic block.
31115 2005-02-21 Jeff Law <law@redhat.com>
31117 * cfganal.c (find_unreachable_blocks): Manually CSE load of
31120 2005-02-21 Kazu Hirata <kazu@cs.umass.edu>
31122 * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
31123 (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
31124 Adjust their definitions.
31125 (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
31126 (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
31128 * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
31129 genautomata.c, langhooks.c, langhooks.h, system.h,
31130 config/arm/lib1funcs.asm: Update copyright.
31132 2005-02-21 Ulrich Weigand <uweigand@de.ibm.com>
31134 * dbxout.c (dbxout_function_end): Emit Lscope label always.
31136 2005-02-21 Richard Guenther <rguenth@gcc.gnu.org>
31139 * doc/install.texi: Document --with-gc.
31141 2005-02-21 Paolo Bonzini <bonzini@gnu.org>
31143 * simplify-rtx.c (simplify_unary_operation): Add a missing
31146 2005-02-21 Eric Botcazou <ebotcazou@libertysurf.fr>
31148 PR tree-optimization/18663
31149 * tree-ssa-dom.c (extract_range_from_cond): Return 0
31150 if the type has variable bounds.
31152 2005-02-20 Kazu Hirata <kazu@cs.umass.edu>
31154 * gcse.c: Remove an obsolete comment.
31156 * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
31158 2005-02-20 Hans-Peter Nilsson <hp@axis.com>
31160 * doc/extend.texi (Function Attributes) <Attribute const>: The
31161 attribute "pure" is below this text, not above.
31163 2005-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31165 * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
31166 (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
31167 * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
31169 2005-02-20 Zack Weinberg <zack@codesourcery.com>
31172 * langhooks.h (struct lang_hooks): Add to_target_charset.
31173 * langhooks.c (lhd_to_target_charset): New function.
31174 * langhooks-def.h: Declare lhd_to_target_charset.
31175 (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
31176 (LANG_HOOKS_INITIALIZER): Update.
31177 * c-common.c (c_common_to_target_charset): New function.
31178 * c-common.h: Declare it.
31179 * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
31180 c_common_to_target_charset.
31182 * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
31183 (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
31184 Delete definitions.
31185 * system.h: Poison them.
31186 * doc/tm.texi: Don't discuss them.
31187 * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
31188 * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
31189 (pp_c_char): Do not attempt to generate letter escapes for
31191 * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
31192 * config/mips/mips.c (mips_output_ascii): Likewise.
31194 2005-02-20 Dorit Naishlos <dorit@il.ibm.com>
31196 PR tree-optimization/19951
31197 * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
31200 2005-02-19 Steven Bosscher <stevenb@suse.de>
31202 PR middle-end/19698
31203 * function.h (struct function): New field `max_loop_depth'.
31204 * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
31205 (flow_loops_find): Reset the max loop depth count before finding loops.
31206 * flow.c (MAX_LIVENESS_ROUNDS): New constant.
31207 (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
31208 (calculate_global_regs_live): Make sure the loop will terminate
31209 when the initial sets are not empty.
31211 2005-02-19 Zack Weinberg <zack@codesourcery.com>
31213 * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
31215 * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
31217 2005-02-19 Richard Sandiford <rsandifo@redhat.com>
31220 * doc/invoke.texi: Remove documentation of %M spec.
31222 (init_spec): Remove %M suffix from -lgcc_s.
31223 (do_spec_1): Remove 'M' case.
31224 * mklibgcc.in: Remove SHLIB_MULTILIB handling. Expect SHLIB_LINK
31225 to put shared libraries in the multilib directory. Remove the
31226 shlib_so_soname substitution variable. Don't add a multilib encoding
31227 to shlib_base_name. Set shlib_slibdir_qual to the full pathname
31228 reported by -print-multi-os-directory. Pass @multilib_dir@ to
31229 SHLIB_INSTALL as well as SHLIB_LINK.
31230 * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
31231 (SHLIB_NAME): Delete.
31232 (SHLIB_DIR): New macro.
31233 (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
31234 (SHLIB_INSTALL): Adjust accordingly.
31235 * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
31236 * config/t-slibgcc-sld: Likewise.
31237 * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
31238 (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
31239 (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
31241 (SHLIBUNWIND_INSTALL): Adjust accordingly.
31242 * config/i386/t-nwld (SHLIB_SONAME): Delete.
31243 (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
31244 Use @shlib_base_name@ instead of @shlib_so_name@.
31245 * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
31246 and @shlib_base_name@.so in @multilib_dir@.
31247 (SHLIB_INSTALL): Adjust accordingly. Add @shlib_slibdir_qual@
31248 to the install path.
31249 * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
31250 (SHLIB_LINK): Remove previous workaround.
31251 * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
31252 (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
31253 (SHLIB_INSTALL): Adjust accordingly. Add $(SHLIB_SLIBDIR_QUAL) to
31255 * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
31256 @multilib_dir@. Use @multilib_dir@ to check for threading libraries.
31257 (SHLIB_INSTALL): Adjust accordingly.
31258 (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
31259 * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
31260 * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
31261 config/t-slibgcc-elf-ver.
31263 2005-02-19 Zdenek Dvorak <dvorakz@suse.cz>
31264 Jakub Jelinek <jakub@redhat.com>
31266 PR tree-optimization/19828
31267 * tree-ssa-loop-im.c: Add a TODO comment.
31268 (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
31269 without side-effects.
31271 2005-02-18 James A. Morrison <phython@gcc.gnu.org>
31273 * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
31276 2005-02-18 James E. Wilson <wilson@specifixinc.com>
31278 * doc/invoke.texi (IA-64 Options): Delete -mb-step.
31279 * config/ia64/ia64.c (last_group, group_idx): Delete variables.
31280 (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
31282 (ia64_reorg): Delete fixup_errata call.
31283 * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
31284 (TARGET_SWITCHES): Delete -mb-step entry.
31286 2005-02-19 Jakub Jelinek <jakub@redhat.com>
31289 * c-typeck.c (composite_type): Handle quals in transparent unions.
31290 (type_lists_compatible_p): Likewise.
31292 2005-02-18 Stan Shebs <shebs@apple.com>
31294 * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
31295 expressions in the .literal8 section.
31297 2005-02-18 Geoffrey Keating <geoffk@apple.com>
31299 * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
31301 2005-02-18 Roger Sayle <roger@eyesopen.com>
31303 * fold-const.c (constant_boolean_node): Always create values of the
31304 specified type, don't bother calling truthvalue_conversion.
31306 2005-02-18 Joseph S. Myers <joseph@codesourcery.com>
31308 * except.c (output_function_exception_table): Call
31309 assemble_external_libcall (eh_personality_libfunc).
31311 2005-02-18 Joseph S. Myers <joseph@codesourcery.com>
31314 * config/ia64/ia64.h (struct machine_function): Add state_num.
31315 * config/ia64/ia64.c (process_epilogue,
31316 process_for_unwind_directive): Use new unwind state numbers each
31317 time rather than state 1.
31319 2005-02-18 Ulrich Weigand <uweigand@de.ibm.com>
31322 * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
31323 before the "*llgt_didi" pattern.
31325 2005-02-18 Jason Merrill <jason@redhat.com>
31327 * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
31329 2005-02-18 Richard Earnshaw <rearnsha@arm.com>
31331 * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
31332 (div0): Use it in place of ARM_FUNC_ALIAS.
31333 (lshrdi3, ashrdi3, ashlrdi3): Likewise.
31335 2005-02-18 Andrew Pinski <pinskia@physics.uc.edu>
31337 PR middle-end/20030
31338 * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
31339 access, the lower bound of the array type if it exists.
31341 2005-02-18 Alexandre Oliva <aoliva@redhat.com>
31344 * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
31345 cases that are out-of-range for the index type.
31347 2005-02-18 James A. Morrison <phython@gcc.gnu.org>
31349 * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
31350 (estimate_case_costs): Don't call convert.
31351 * expmed.c (expand_shift): Likewise.
31352 (make_tree): Call fold_convert instead of convert.
31354 2005-02-18 Jakub Jelinek <jakub@redhat.com>
31357 * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
31358 that ref to be marked MEM_READONLY_P doesn't have base that needs
31361 2005-02-18 Joseph S. Myers <joseph@codesourcery.com>
31363 * genautomata.c (output_get_cpu_unit_code_func,
31364 output_cpu_unit_reservation_p): Don't generate old-style function
31367 2005-02-18 Jakub Jelinek <jakub@redhat.com>
31370 PR tree-optimization/20009
31371 * convert.c (convert_to_integer): Revert 2005-02-16 change.
31373 PR tree-optimization/18947
31374 * cgraphunit.c (cgraph_finalize_function): When redefining an extern
31375 inline, remove all nodes that are inlined into the extern inline
31378 2005-02-17 Kazu Hirata <kazu@cs.umass.edu>
31380 * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
31381 loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
31382 tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
31383 config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
31386 2005-02-17 Roger Sayle <roger@eyesopen.com>
31388 PR tree-optimization/19917
31389 * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
31390 to be potentially trapping.
31392 2005-02-17 Kazu Hirata <kazu@cs.umass.edu>
31394 * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
31396 2005-02-17 Andreas Krebbel <krebbel1@de.ibm.com>
31398 * builtins.c (expand_builtin_return_addr): Remove tem parameter.
31399 tem becomes a local variable which is set to the value of the
31400 back end defined INITIAL_FRAME_ADDRESS macro.
31401 (expand_builtin_frame_address): Omit the base parameter to
31402 expand_builtin_return_addr.
31403 (expand_builtin_profile_func): Likewise.
31404 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
31405 (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
31406 * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
31408 2005-02-17 Jakub Jelinek <jakub@redhat.com>
31410 * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
31411 s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
31412 * config/frv/frv.c (frv_function_epilogue): Likewise.
31414 2005-02-17 Daniel Berlin <dberlin@dberlin.org>
31416 * lambda-code (perfect_nestify): Remove mark/unmark
31417 for rewriting hack.
31418 * tree-loop-linear.c (linear_transform_loops): Add
31419 rewrite_into_ssa call so that ssa is correct for
31420 rewriting into loop closed.
31422 2005-02-17 Nathan Sidwell <nathan@codesourcery.com>
31424 * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
31425 * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
31427 * bt-load.c (btr_def_live_range, combine_btr_defs,
31428 migrate_btr_def, migrate_btr_defs): Likewise.
31429 * cfgcleanup.c (thread_jump): Likewise.
31430 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
31431 * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
31432 df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
31433 df_rd_local_compute, df_reg_info_compute): Likewise.
31434 * dominance.c (init_dom_info, free_dom_info): Likewise.
31435 * flow.c (init_propagate_block_info,
31436 free_propagate_block_info): Likewise.
31437 * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
31438 * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
31439 modify_reg_pav): Likewise.
31440 * loop-invariant.c (find_defs, find_invariant_insn,
31441 find_invariants, free_inv_motion_data): Likewise.
31442 * predict.c (tree_predict_by_opcode,
31443 estimate_bb_frequencies): Likewise.
31444 * stmt.c (expand_case): Likewise.
31445 * tree-cfg.c (tree_duplicate_sese_region): Likewise.
31446 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
31447 * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
31448 * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
31449 get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
31450 rewrite_ssa_into_ssa): Likewise.
31451 * tree-optimize.c (tree_rest_of_compilation): Likewise.
31452 * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
31453 analyze_edges_for_bb, perform_edge_inserts): Likewise.
31454 * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
31455 * tree-sra.c (tree_sra): Likewise.
31456 * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
31457 * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
31458 * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
31459 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
31460 * tree-ssa-dse.c (tree_ssa_dse): Likewise.
31461 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
31463 * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
31464 calculate_live_on_entry, calculate_live_on_exit,
31465 build_tree_conflict_graph): Likewise.
31466 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
31467 record_important_candidates, set_use_iv_cost, find_depends,
31468 determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
31469 tree_ssa_iv_optimize_finalize): Likewise.
31470 * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
31471 find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
31472 tree_duplicate_loop_to_header_edge): Likewise.
31473 * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
31474 * tree-ssa.c (verify_flow_insensitive_alias_info,
31475 verify_name_tags, verify_ssa, init_tree_ssa,
31476 delete_tree_ssa): Likewise.
31477 * tree-ssanames.c (marked_ssa_names, init_ssanames,
31478 fini_ssanames): Likewise.
31479 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
31481 2005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
31483 * config/rs6000/t-rtems: Completely reworked.
31485 2005-02-17 Ira Rosen <irar@il.ibm.com>
31487 * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
31489 2005-02-17 Ira Rosen <irar@il.ibm.com>
31491 * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
31492 POINTER_TYPE_P when checking that type is a pointer.
31493 (vect_get_memtag): Remove.
31494 (vect_address_analysis): Use POINTER_TYPE_P. Call
31495 vect_object_analysis with dummy parameter for memtag.
31496 (vect_object_analysis): Extract memtag (functionality that
31497 used to be in vect_get_memtag and moved here). Fix printings.
31498 (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
31499 with correct parameters. Remove call to vect_get_memtag.
31501 2005-02-17 Dorit Naishlos <dorit@il.ibm.com>
31503 * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
31504 (tree-vectorizer.o): Added missing dependencies.
31506 * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
31508 (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
31509 declaration in tree-vectorizer.c, now has an extern declaration in
31510 tree-vectorizer.h).
31511 (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
31512 slpeel_verify_cfg_after_peeling, vect_strip_conversion,
31513 get_vectype_for_scalar_type, vect_is_simple_use,
31514 vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
31515 vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
31516 new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
31517 vectorizable_store, vectorizable_operation, vectorizable_assignment,
31518 vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
31519 find_loop_location): Likewise.
31521 * tree-vectorizer.c (langhooks.h): #include removed.
31522 (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
31523 moved to tree-vectorized.h.
31524 (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
31525 slpeel_verify_cfg_after_peeling, vect_strip_conversion,
31526 get_vectype_for_scalar_type, vect_is_simple_use,
31527 vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
31528 vect_supportable_dr_alignment, new_loop_vec_info,
31529 destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
31530 vect_set_verbosity_level, find_loop_location): Likewise.
31532 (vect_analyze_loop): Function externalized. Declaration moved to
31533 tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
31534 (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
31535 (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
31536 vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
31537 vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
31538 vect_enhance_data_refs_alignment, vect_analyze_operations,
31539 exist_non_indexing_operands_for_use_p, vect_mark_relevant,
31540 vect_stmt_relevant_p, vect_get_loop_niters,
31541 vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
31542 vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
31543 vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
31544 vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
31545 vect_get_memtag): Likewise.
31547 (vectorizable_load): Function externalized. Declaration moved to
31548 tree-vectorized.h. Function definition moved to tree-vect-transform.c.
31549 (vectorizable_store, vectorizable_operation, vectorizable_assignment,
31550 vect_transform_loop): Likewise.
31551 (vect_transform_stmt): Moved to tree-vect-transform.c.
31552 (vect_align_data_ref, vect_create_destination_var,
31553 vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
31554 vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
31555 vect_get_vec_def_for_operand, vect_init_vector,
31556 vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
31557 vect_build_loop_niters, vect_update_ivs_after_vectorizer,
31558 vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
31559 vect_update_inits_of_drs, vect_do_peeling_for_alignment,
31560 vect_do_peeling_for_loop_bound): Likewise.
31562 * tree-vect-analyze.c: New file.
31563 * tree-vect-transform.c: New file.
31565 2005-02-17 Jason Merrill <jason@redhat.com>
31567 PR mudflap/19319, c++/19317
31568 * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
31571 2005-02-17 Gerald Pfeifer <gerald@pfeifer.com>
31573 * doc/install.texi (Specific): Update link for Darwin-specific
31576 2005-02-16 James A. Morrison <phython@gcc.gnu.org>
31578 * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
31579 constant_boolean_node.
31581 2005-02-16 David Edelsohn <edelsohn@gnu.org>
31584 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
31585 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
31587 2005-02-16 Richard Henderson <rth@redhat.com>
31590 * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
31592 (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
31593 replace uses with Wtype_MAXp1_F.
31594 (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
31595 L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
31596 L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
31597 L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
31598 and HAVE_TFMODE as appropriate.
31599 (__fixunssfDI): Provide an implementation that doesn't need DFmode.
31600 (__floatdisf): Likewise.
31601 * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
31602 (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
31603 (Wtype_MAXp1_F): New.
31604 (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
31605 __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
31607 2005-02-16 Richard Earnshaw <rearnsha@arm.com>
31610 * arm.c (arm_apply_result_size): New function.
31611 * arm.h (APPLY_RESULT_SIZE): Define.
31612 * arm-protos.h (arm_apply_result_size): Add prototype.
31613 * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
31614 (movxf): New expand.
31615 (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
31616 (call_value_symbol): Remove predicate for operand 0.
31617 (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
31618 (untyped_call): Rework to correclty return values for any type.
31619 (untyped_return): New expand.
31620 * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
31622 2005-02-16 Stan Shebs <shebs@apple.com>
31624 * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
31625 * config/rs6000/t-darwin8: New, for 64-bit multilib.
31627 2005-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
31629 * doc/install.texi (sparc-sun-solaris2*): Document required GMP
31630 configure settings on Solaris 7 and later.
31632 2005-02-16 Diego Novillo <dnovillo@redhat.com>
31634 PR tree-optimization/19865
31635 * tree-optimize.c (init_tree_optimization_passes): Run
31636 pass_may_alias after pass_sra.
31638 2005-02-16 Richard Henderson <rth@redhat.com>
31639 Stuart Hastings <stuart@apple.com>
31642 * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
31643 Do nothing if debug info suppressed for this function.
31644 (dbxout_begin_function): Early exit if debug info suppressed for
31647 2005-02-16 Kazu Hirata <kazu@cs.umass.edu>
31650 * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
31652 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
31654 PR tree-optimization/19967
31655 * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
31656 expand_builtin_strchr, expand_builtin_strrchr): Take a new
31657 argument TYPE. Adjust calls to fold_builtin_XXX.
31658 (expand_builtin, fold_builtin_1): Adjust calls to
31659 expand_builtin_XXX.
31660 (fold_builtin_strchr, fold_builtin_strpbrk,
31661 fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
31662 result to a requested type TYPE.
31664 2005-02-16 Jakub Jelinek <jakub@redhat.com>
31666 PR middle-end/19857
31667 * fold-const.c (fold): Don't optimize (T)(x & cst) to
31668 (T)x & (T)cst if (T)cst overflows.
31669 * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
31670 TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
31672 2005-02-15 Jeff Law <law@redhat.com>
31674 * gcse.c (blocks_with_calls): New bitmap.
31675 (alloc_gcse_mem): Allocate it.
31676 (free_gcse_mem): Free it.
31677 (clear_modifY_mem_tables): Clear it.
31678 (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
31679 when we encounter CALL_INSNs.
31680 (compute_transp, case MEM): Handle blocks with calls separate
31681 from blocks without calls. Use bitmap iterators rather than
31684 2005-02-15 Peter O'Gorman <peter@pogma.com>
31687 * mklibgcc.in (vis_hide): Use a temporary object file, not
31690 2005-02-15 Andy Hutchinson <HutchinsonAndy@netscape.net>
31693 * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
31694 access optimization.
31696 2005-02-15 David Edelsohn <edelsohn@gnu.org>
31697 Alan Modra <amodra@bigpond.net.au>
31700 * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
31701 (_xlqsub): Rename to __gcc_qsub.
31702 (_xlqmul): Rename to __gcc_qmul.
31703 (_xlqdiv): Rename to __gcc_qdiv.
31704 Provide versioned symbol aliases with old names.
31705 * config/rs6000/libgcc-ppc64.ver: Rename symbols.
31706 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
31707 * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
31708 * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
31709 * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
31711 2005-02-15 James A. Morrison <phython@gcc.gnu.org>
31713 * fold-const.c (fold): Fold -(~A) to A + 1. Fold ~(-A) to A - 1.
31714 Fold ~(A - 1) and ~(A + -1) to -A.
31716 2005-02-15 James A. Morrison <phython@gcc.gnu.org>
31720 * config/host-linux.c (linux_gt_pch_use_address): Copy from
31721 config/pa/pa-host.c:pa_gt_pch_use_address.
31723 2005-02-15 Daniel Berlin <dberlin@dberlin.org>
31725 * tree-vn.c (get_value_handle): Make sure that given an
31726 is_gimple_min_invariant expression, we always return it.
31728 2005-02-15 Kazu Hirata <kazu@cs.umass.edu>
31730 * passes.c (rest_of_handle_gcse): Fix a comment.
31732 2005-02-15 Jeff Law <law@redhat.com>
31734 * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
31736 (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
31737 (canon_list_insert, record_last_mem_set_info): Similarly.
31738 (clear_modify_mem_tables): Similarly.
31740 2005-02-15 Kazu Hirata <kazu@cs.umass.edu>
31742 * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
31743 tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
31744 config/mips/mips.md, config/rs6000/aix.h,
31745 config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
31747 2005-02-15 Richard Henderson <rth@redhat.com>
31749 * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
31750 call to be best_edge.
31752 2005-02-14 Kazu Hirata <kazu@cs.umass.edu>
31754 * basic-block.h: Adjust the prototype for find_basic_blocks.
31755 * cfgbuild.c (find_basic_blocks): Remove unused arguments.
31756 * passes.c (rest_of_handle_loop_optimize): Adjust the call to
31759 * flow.c (recompute_reg_usage): Remove all arguments.
31760 * passes.c (rest_of_compilation): Adjust the call to
31761 recompute_reg_usage.
31762 * rtl.h: Adjust the prototype for recompute_reg_usage.
31764 2005-02-14 Daniel Berlin <dberlin@dberlin.org>
31766 * tree-dump.c (dump_files): Update to reflect new member
31768 (dump_register): Add new argument.
31770 (dump_switch_p_1): Check against glob name if doglob was passed.
31771 (dump_switch_p): Check against regular first, then glob if
31772 we didn't have any hits on the dump name.
31773 * tree-optimize.c (register_one_dump_file):
31774 Pass in glob name as well.
31775 * tree-pass.h (struct dump_file_info): Add glob
31778 2005-02-14 Joseph S. Myers <joseph@codesourcery.com>
31780 PR preprocessor/16323
31781 * doc/invoke.texi: Document that -Wendif-labels is on by default.
31783 2005-02-14 David Edelsohn <edelsohn@gnu.org>
31786 * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
31787 (trunctfdf2_internal1): New.
31788 (trunctfdf2_internal2): Renamed from trunctfdf2.
31790 2005-02-14 Diego Novillo <dnovillo@redhat.com>
31792 PR tree-optimization/19853
31793 * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
31795 2005-02-14 Kazu Hirata <kazu@cs.umass.edu>
31797 * passes.c (rest_of_handle_loop_optimize): Remove calls to
31798 delete_dead_jumptables and cleanup_cfg.
31800 2005-02-14 Ulrich Weigand <uweigand@de.ibm.com>
31802 * reload.c (find_reloads): Swap address_reloaded flags when
31803 swapping commutative operands.
31805 2005-02-14 Sebastian Pop <pop@cri.ensmp.fr>
31807 * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
31808 Use standard_iv_increment_position for computing the bsi position
31810 * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
31813 2005-02-13 Zdenek Dvorak <dvorakz@suse.cz>
31816 * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
31817 life range of hard registers.
31818 * value-prof.c (insn_prefetch_values_to_profile): Only
31821 * value-prof.c (rtl_find_values_to_profile): Do not look for values to
31822 profile in libcalls.
31824 2005-02-13 Nathan Sidwell <nathan@codesourcery.com>
31826 * bitmap.h (bitmap_and_compl_into): Return bool.
31827 * bitmap.c (bitmap_and_compl_into): Return changed flag.
31829 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
31831 PR tree-optimization/19944
31832 * fold-const.c (fold): Re-add ABS_EXPR folding.
31834 2005-02-13 David Edelsohn <edelsohn@gnu.org>
31837 * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
31838 {TARGET,MASK}_XL_COMPAT.
31839 (SUBTARGET_SWITCHES): Rename xl-call to xl-compat. Use
31841 * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
31842 * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
31844 (rs6000_arg_partial_bytes): Same.
31845 (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
31846 and XL compatibility enabled.
31847 * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
31848 * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
31849 test to final condition.
31850 (cmptf_internal2): New.
31851 * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
31852 xl-compat. Add TFmode information to description.
31854 2005-02-13 Kazu Hirata <kazu@cs.umass.edu>
31856 * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
31858 2005-02-13 Jason Merrill <jason@redhat.com>
31861 * fold-const.c (fold_indirect_ref_1): Split out from...
31862 (build_fold_indirect_ref): Here.
31863 (fold_indirect_ref): New fn.
31864 * tree.h: Declare it.
31865 * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
31866 (gimplify_modify_expr_rhs): Likewise.
31867 (gimplify_expr): Likewise.
31869 2005-02-13 James A. Morrison <phython@gcc.gnu.org>
31871 PR tree-optimization/14303
31872 PR tree-optimization/15784
31873 * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
31874 Fold ABS_EXPR<x> < 0 to false. Fold ABS_EXPR<x> == 0 to x == 0 and
31875 ABS_EXPR<x> != 0 to x != 0.
31877 2005-02-12 Kazu Hirata <kazu@cs.umass.edu>
31879 * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
31880 simplify-rtx.c, tree-ssa-live.h: Fix comment typos. Follow
31881 spelling conventions.
31883 * passes.c (rest_of_handle_gcse): Don't run cse_main and
31884 delete_trivially_dead_insns too many times.
31886 * passes.c (rest_of_handle_gcse): Remove dead assignments to
31889 2005-02-12 Ira Rosen <irar@il.ibm.com>
31891 * tree-vectorizer.c (vect_get_base_and_offset): Remove.
31892 (vect_is_simple_iv_evolution): Remove redundant parameter
31894 (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
31895 without last parameter.
31896 (vect_analyze_pointer_ref_access): Get access_fn as parameter.
31897 Return pointer step. Call vect_is_simple_iv_evolution without
31898 last parameter. Check only that the step is multiple of size
31899 type. Remove stmt_vinfo updates.
31900 (vect_get_memtag_and_dr): Remove.
31901 (vect_get_memtag): New function.
31902 (vect_address_analysis): New function.
31903 (vect_object_analysis): New function.
31904 (vect_analyze_data_refs): Call vect_object_analysis and
31905 vect_get_memtag. Update stmt_vinfo fields.
31907 2005-02-12 Ira Rosen <irar@il.ibm.com>
31909 * tree-data-ref.c (array_base_name_differ_p): Check that the bases
31910 exist and are objects. Remove checks for pointer.
31911 * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
31912 STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
31913 (vect_create_data_ref_ptr): Likewise.
31914 (vect_base_addr_differ_p): New function.
31915 (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
31916 (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
31917 Don't set the DR_BASE_NAME field of data-ref.
31918 (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
31920 2005-02-12 Uros Bizjak <uros@kss-loka.si>
31922 * optabs.h (enum optab_index): Add new OTI_ldexp.
31923 (ldexp_optab): Define corresponding macro.
31924 * optabs.c (init_optabs): Initialize ldexp_optab.
31925 * genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
31927 * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
31929 (expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
31930 expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
31932 * config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
31933 to implement ldexpf, ldexp and ldexpl built-ins as inline x87
31936 2005-02-12 Ira Rosen <irar@il.ibm.com>
31938 * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
31940 * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
31942 (vect_get_base_and_offset): Always return an address.
31943 (vect_create_addr_base_for_vector_ref): Remove treatment for
31944 different data reference types.
31945 (vect_compute_data_ref_alignment): Rename base to base_address in
31946 stmt_vec_info. Get the object in order to force its alignment.
31947 (vect_get_memtag_and_dr): Rename base to base_address in
31948 stmt_vec_info. Extract the object for memtag analysis.
31950 2005-02-12 Hans-Peter Nilsson <hp@axis.com>
31952 PR regression/19898.
31953 * config/cris/cris.c (cris_notice_update_cc): When testing if insn
31954 changes cc_status, use apply modified_in_p to part of cc_status
31955 and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
31958 2005-02-11 Richard Henderson <rth@redhat.com>
31960 * tree-complex.c (expand_complex_libcall): New.
31961 (expand_complex_multiplication): Use it for c99 compliance.
31962 (expand_complex_division): Likewise.
31963 * fold-const.c (fold_complex_add, fold_complex_mult): New.
31965 * builtins.c (built_in_names): Remove const.
31966 * tree.c (build_common_builtin_nodes): Build complex arithmetic
31968 * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
31969 (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
31970 (built_in_names): Remove const.
31971 * c-common.c (c_common_type_for_mode): Handle complex modes.
31972 * flags.h, toplev.c (flag_complex_method): Rename from
31973 flag_complex_divide_method.
31974 * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
31975 __mulsc3, __muldc3, __mulxc3, __multc3): New.
31976 * libgcc2.h: Declare them.
31977 * libgcc-std.ver: Export them.
31978 * mklibgcc.in (lib2funcs): Build them.
31980 2005-02-11 Steven Bosscher <stevenb@suse.de>
31982 PR tree-optimization/19876
31983 Partially revert my change from 2005-01-14
31984 * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
31985 (compute_antic): ...and remove the loop here.
31987 2005-02-11 Jakub Jelinek <jakub@redhat.com>
31989 PR middle-end/19858
31990 * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
31991 is number of inner's bits, avoid creating a BIT_FIELD_REF.
31993 * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
31994 crtend.o if -pie. Use %{x:a;:b} spec syntax.
31996 2005-02-11 Daniel Jacobowitz <dan@codesourcery.com>
31998 * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
31999 offsets for the big-endian 32-bit case.
32001 2005-02-11 Joseph S. Myers <joseph@codesourcery.com>
32003 * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
32005 2005-02-11 Dale Johannesen <dalej@apple.com>
32007 * cselib.c (cselib_process_insn): Clear out regs where
32008 HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
32009 * reload.c (find_equiv_reg): Ditto.
32011 2005-02-11 Ian Lance Taylor <ian@airs.com>
32013 * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
32016 * tree.c (build_function_type_list): Work correctly if there are
32019 2005-02-11 Ulrich Weigand <uweigand@de.ibm.com>
32021 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
32022 "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
32023 ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
32024 TARGET_ZARCH instead of TARGET_64BIT.
32026 2005-02-11 Ralf Corsepius <ralf.corsepius@rtems.org>
32028 * config/rs6000/t-rtems:
32029 (MULTILIB_OPTIONS): Remove mcpu=602.
32030 (MUTLILIB_DIRNAMES): Remove m602.
32031 (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
32032 Let mcpu=602 match mcpu=603.
32033 (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
32035 2005-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32037 * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
32038 signal trampolines.
32040 2005-02-10 David Daney <ddaney@avtrex.com>
32042 * config/alpha/linux-unwind.h: Add exception clause to copyright.
32043 * config/i386/linux-unwind.h: Likewise.
32044 * config/ia64/linux-unwind.h: Likewise.
32045 * config/mips/linux-unwind.h: Likewise.
32046 * config/pa/linux-unwind.h: Likewise.
32047 * config/rs6000/linux-unwind.h: Likewise.
32048 * config/s390/linux-unwind.h: Likewise.
32049 * config/sh/linux-unwind.h: Likewise.
32050 * config/sparc/linux-unwind.h: Likewise.
32052 2005-02-10 Steven Bosscher <stevenb@suse.de>
32054 PR tree-optimization/17549
32055 * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
32056 TER to replace a DEF with its expression if the DEF and the
32057 rhs of the expression we replace into have the same root
32060 2005-02-10 Richard Sandiford <rsandifo@redhat.com>
32062 * config/mips/mips.md: Fix the placement of the match_scratch in the
32065 2005-02-10 Kazu Hirata <kazu@cs.umass.edu>
32067 * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
32070 2005-02-10 Zdenek Dvorak <dvorakz@suse.cz>
32072 * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
32073 (strip_offset): Handle addresses.
32074 (add_address_candidates): Use strip_offset.
32075 (difference_cost): Reflect strip_offset change.
32076 (force_var_cost, difference_cost): Strip nops.
32078 2005-02-10 Kazu Hirata <kazu@cs.umass.edu>
32080 * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
32082 * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
32083 tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
32084 config/cris/cris-protos.h, config/cris/cris.c: Update
32087 2005-02-10 Jeff Law <law@redhat.com>
32089 * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
32090 (lookup_avail_expr): Similarly.
32092 2005-02-10 Richard Guenther <rguenth@gcc.gnu.org>
32094 * builtins.c (fold_builtin_powi): New function.
32095 (fold_builtin_1): Call it.
32097 2005-02-10 Steven Bosscher <stevenb@suse.de>
32099 PR documentation/19309
32100 * doc/cpp.texi: The __GNUC__ and related predefined macros
32101 are also defined for the "standalone" cpp.
32102 Some non-GCC compilers may also define __GNUC__.
32104 2005-02-10 Jakub Jelinek <jakub@redhat.com>
32107 * c-typeck.c (common_type): New routine. Old common_type renamed
32109 (c_common_type): ...this.
32110 (build_conditional_expr, build_binary_op): Use c_common_type instead
32113 2005-02-10 Steven Bosscher <stevenb@suse.de>
32115 * doc/md.texi: Replace @samp{length} with @code{length}.
32117 2005-02-09 Zdenek Dvorak <dvorakz@suse.cz>
32119 PR tree-optimization/18687
32120 * tree-flow.h (find_loop_niter): Declare.
32121 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
32122 Try using scev even for loops with more than one exit.
32123 * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
32124 (struct ivopts_data): Added niters field.
32125 (struct nfe_cache_elt): New.
32126 (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
32128 (tree_ssa_iv_optimize_init): Initialize niters cache.
32129 (determine_number_of_iterations): Removed.
32130 (find_induction_variables): Do not call determine_number_of_iterations.
32131 Access niters for single exit through niter_for_single_dom_exit.
32132 (add_iv_outer_candidates): Access niters for single exit through
32133 niter_for_single_dom_exit.
32134 (may_eliminate_iv): Take data argument. Use niter_for_exit. Do not use
32135 number_of_iterations_cond.
32136 (iv_period): New function.
32137 (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
32138 (may_replace_final_value): Take data argument. Use
32139 niter_for_single_dom_exit.
32140 (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
32141 (rewrite_use_compare): Pass data to may_eliminate_iv.
32142 (rewrite_use_outer): Pass data to may_replace_final_value.
32143 (free_loop_data): Clean up the niters cache.
32144 (tree_ssa_iv_optimize_finalize): Free the niters cache.
32145 (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
32146 * tree-ssa-loop-niter.c (find_loop_niter): New function.
32147 (find_loop_niter_by_eval): Use tree_int_cst_lt.
32148 (num_ending_zeros): Moved to tree.c.
32149 * tree.h (num_ending_zeros): Declare.
32150 * tree.c (num_ending_zeros): Moved from tree.c.
32152 2005-02-09 Richard Henderson <rth@redhat.com>
32154 * builtins.c (DEF_BUILTIN): Add COND argument.
32155 * tree.h (DEF_BUILTIN): Likewise.
32156 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
32157 DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
32159 (DEF_BUILTIN_STUB): New.
32160 (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
32161 BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
32162 BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
32163 * c-common.c (DEF_BUILTIN): Add COND argument.
32164 * tree.c (local_define_builtin): New.
32165 (build_common_builtin_nodes): New.
32167 2005-02-09 Roger Sayle <roger@eyesopen.com>
32169 * fold-const.c (fold_strip_sign_ops): New function to simplify a
32170 floating point expression ignoring the sign of the result.
32171 (fold) <ABS_EXPR>: Use it to simplify fabs(x).
32172 (fold) <MULT_EXPR>: Use it to simplify x*x.
32173 * tree.h (fold_strip_sign_ops): Prototype here.
32174 * builtins.c (fold_builtin_copysign): Take an additional FNDECL
32175 argument. Use fold_strip_sign_ops to simplify the first argument.
32176 (fold_builtin_pow): Use fold_strip_sign_ops to simplify the
32177 first argument when the second argument is an even integer
32178 constant, but only with -funsafe_math_optimizations.
32179 (fold_builtin_1): Update call to fold_builtin_copysign.
32181 2005-02-09 Ian Lance Taylor <ian@airs.com>
32183 PR middle-end/19583
32184 * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
32185 just check whether EH_FILTER_FAILURE falls through.
32187 2005-02-09 Andreas Krebbel <krebbel1@de.ibm.com>
32189 * haifa-sched.c (schedule_block): Make queued sched group
32190 insns return to ready list in the next turn.
32192 2005-02-09 Richard Guenther <rguenth@gcc.gnu.org>
32194 PR middle-end/19402
32195 * builtins.def: New __builtin_powi[lf].
32196 * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
32197 (expand_builtin_powi): New function.
32198 (expand_builtin): Dispatch to expand_builtin_powi.
32199 * libgcc2.h: Add prototypes for __builtin_powi[lf].
32200 * libgcc2.c: Add __builtin_powi[lf] implementation.
32201 * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
32202 * optabs.h: Add powi_optab.
32203 * optabs.c (init_optabs): Initialize powi_optab.
32204 * doc/extend.texi: Document __builtin_powi[lf].
32206 2005-02-09 Dorit Naishlos <dorit@il.ibm.com>
32208 * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file
32211 2005-02-09 Richard Guenther <rguenth@gcc.gnu.org>
32213 PR middle-end/19854
32214 * fold-const.c (try_move_mult_to_index): Remove redundant
32215 type argument. Create ADDR_EXPR with correct type.
32216 (fold): Update callers of try_move_mult_to_index. Convert
32217 result to the appropriate type.
32219 2005-02-09 Roger Sayle <roger@eyesopen.com>
32222 * config/avr/avr.c (default_rtx_costs): Delete.
32223 (avr_operand_rtx_cost): New function.
32224 (avr_rtx_costs): Completely rewrite.
32226 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
32229 * config/cris/cris.c (in_code): New variable.
32230 (cris_output_addr_const): Now a static function, a wrapper for
32232 (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
32233 case from old cris_output_addr_const.
32234 (cris_asm_output_label_ref): Similar for LABEL_REF.
32235 (cris_output_addr_const_extra): Similar for UNSPEC.
32236 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
32237 (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
32238 * config/cris/cris-protos.h (cris_output_addr_const): Remove
32240 (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
32241 (cris_asm_output_label_ref): Declare.
32243 2005-02-08 Paolo Bonzini <bonzini@gnu.org>
32245 PR preprocessor/19801
32246 * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
32247 filenames that changed when libcpp was moved to the toplevel.
32249 2005-02-07 Roger Sayle <roger@eyesopen.com>
32251 * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
32252 zero extensions of BImode operands. Call lowpart_subreg instead
32253 of gen_lowpart_common and gen_lowpart_SUBREG.
32255 2005-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
32258 * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
32259 * configure.ac: Set cc_for_cross_gnattools.
32260 * configure: Regenerate.
32262 2005-02-08 Alan Modra <amodra@bigpond.net.au>
32265 * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
32267 2005-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
32270 * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
32271 of nested functions.
32273 2005-02-07 Jonathan Wakely <redi@gcc.gnu.org>
32275 * doc/extend.texi: Document deprecated extensions allowing
32276 static floating-point members to have initializers and allowing
32277 floating-point literals in integral constant expressions.
32279 2005-02-07 Kazu Hirata <kazu@cs.umass.edu>
32281 * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
32282 config/darwin7.h, config/mips/mips.c,
32283 config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
32286 * cse.c: Update comments.
32288 2005-02-07 Richard Guenther <rguenth@gcc.gnu.org>
32290 PR middle-end/19775
32291 * builtins.c (fold_builtin_sqrt): Transform
32292 sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
32295 2005-02-07 Leehod Baruch <leehod@il.ibm.com>
32296 Dorit Naishlos <dorit@il.ibm.com>
32298 * doc/invoke.texi (ftree-vectorizer-verbose): New.
32299 * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
32300 * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
32302 * tree.h (vect_set_verbosity_level): New extern function declaration
32304 * tree-vectorizer.h (verbosity_levels): New enum type.
32305 * tree-vectorizer.c (vect_debug_stats): Function removed.
32306 (vect_debug_details): Likewise.
32307 (vect_verbosity_level): Global variable was defined and initialized.
32308 (vect_dump): Global variable definition.
32309 (vect_print_dump_info): New function.
32310 (vect_set_dump_settings): New function.
32311 (vect_set_verbosity_level): New function.
32312 (vectorize_loops): Add call to vect_set_dump_settings.
32314 (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
32315 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
32316 (slpeel_tree_peel_loop_to_edge): Likewise.
32318 (vect_analyze_offset_expr): Call to vect_print_dump_info with
32319 appropriate verbosity level instead of call to vect_debug_details
32320 or vect_debug_stats.
32321 (vect_get_base_and_offset):
32322 (vect_create_addr_base_for_vector_ref):
32323 (get_vectype_for_scalar_type):
32324 (vect_create_data_ref_ptr):
32325 (vect_init_vector):
32326 (vect_get_vec_def_for_operand):
32327 (vect_finish_stmt_generation):
32328 (vectorizable_assignment):
32329 (vectorizable_operation):
32330 (vectorizable_store):
32331 (vectorizable_load):
32332 (vect_transform_stmt):
32333 (vect_update_ivs_after_vectorizer):
32334 (vect_do_peeling_for_loop_bound):
32335 (vect_update_inits_of_drs):
32336 (vect_do_peeling_for_alignment):
32337 (vect_transform_loop):
32338 (vect_is_simple_use):
32339 (vect_analyze_operations):
32340 (vect_is_simple_iv_evolution):
32341 (vect_analyze_scalar_cycles):
32342 (vect_analyze_data_ref_dependence):
32343 (vect_analyze_data_ref_dependences):
32344 (vect_compute_data_ref_alignment):
32345 (vect_enhance_data_refs_alignment):
32346 (vect_analyze_data_refs_alignment):
32347 (vect_analyze_data_ref_access):
32348 (vect_analyze_data_ref_accesses):
32349 (vect_analyze_pointer_ref_access):
32350 (vect_get_memtag_and_dr):
32351 (vect_analyze_data_refs):
32352 (vect_mark_relevant):
32353 (vect_stmt_relevant_p):
32354 (vect_mark_stmts_to_be_vectorized):
32355 (vect_can_advance_ivs_p):
32356 (vect_get_loop_niters):
32357 (vect_analyze_loop_form):
32358 (vect_analyze_loop):
32359 (vectorize_loops): Likewise.
32361 (vect_do_peeling_for_loop_bound): Dump format slightly changed.
32362 (vect_update_inits_of_drs):
32363 (vect_do_peeling_for_alignment):
32364 (vect_transform_loop):
32365 (vect_analyze_operations):
32366 (vect_analyze_scalar_cycles):
32367 (vect_analyze_data_ref_dependences):
32368 (vect_analyze_data_refs_alignment):
32369 (vect_analyze_data_ref_accesses):
32370 (vect_analyze_data_refs):
32371 (vect_mark_stmts_to_be_vectorized):
32372 (vect_get_loop_niters):
32373 (vect_analyze_loop_form):
32374 (vect_analyze_loop): Likewise.
32375 (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
32377 2005-02-07 Richard Sandiford <rsandifo@redhat.com>
32381 2005-01-26 Richard Sandiford <rsandifo@redhat.com>
32382 * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
32383 either -ffast-math or -funsafe-math-optimizations is in use.
32385 2005-01-24 Richard Sandiford <rsandifo@redhat.com>
32386 * config/mips/irix-csr.c: New file.
32387 * config/mips/t-iris6 (irix-csr.o): New rule to build it.
32388 (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
32389 * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
32392 2005-02-07 Alexandre Oliva <aoliva@redhat.com>
32394 * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
32395 redundant, incorrect definitions.
32397 * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
32399 ("*tls_indirect_call"): New, reference hard regs directly.
32400 * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
32402 2005-02-07 Ralf Corsepius <ralf.corsepius@rtems.org>
32404 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC):
32405 Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
32407 2005-02-06 Roger Sayle <roger@eyesopen.com>
32409 PR rtl-optimization/19800
32410 * simplify_rtx.c (simplify_relational_operation_1): Explicitly
32411 call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
32414 2005-02-07 Ralf Corsepius <ralf.corsepius@rtems.org>
32416 * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
32418 2005-02-07 Joseph S. Myers <joseph@codesourcery.com>
32421 * doc/invoke.texi: Correct documentation of -freorder-functions.
32423 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
32426 * doc/invoke.texi: Don't mention gccbug.
32428 2005-02-06 Roger Sayle <roger@eyesopen.com>
32429 Andrew Pinski <pinskia@physics.uc.edu>
32430 Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
32432 * simplify-rtx.c (simplify_relational_operation_1): Simplify
32433 (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
32434 into just (zero_extract:SI FOO (const_int 1) BAR).
32436 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
32438 * doc/cpp.texi: Include gcc-common.texi. Don't define gcctabopt
32439 macro locally. Don't give last revision date. Use GCC version
32440 number from gcc-common.texi.
32441 * doc/cppinternals.texi: Include gcc-common.texi. Don't give last
32442 revision date. Use GCC version number from gcc-common.texi.
32443 Describe being a library as current state rather than as 3.x
32445 * doc/gcc.texi: Remove last update date.
32446 * doc/gccint.texi: Likewise. Update copyright dates.
32447 * doc/install.texi: Update copyright dates.
32449 2005-02-06 Joseph S. Myers <joseph@codesourcery.com>
32452 * doc/invoke.texi: Mention for each option included in -Wall that
32453 it is included in -Wall.
32454 * doc/gcc.texi: Update copyright and last modification date.
32456 2005-02-06 Zdenek Dvorak <dvorakz@suse.cz>
32458 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
32459 unnecessary cast to original induction variable increments.
32461 2005-02-06 Zdenek Dvorak <dvorakz@suse.cz>
32463 PR tree-optimization/18219
32464 * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
32465 in distributed form.
32467 2005-02-06 Richard Sandiford <rsandifo@redhat.com>
32469 * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
32470 Set bitpos and offset later in the function. Do nothing if the
32471 target is a register and if the bitfield lies completely outside
32473 (extract_bit_field): Make the same SUBREG, bitpos and offset changes
32474 here. Return an uninitialised register if the source value is stored
32475 in a register and the bitfield lies completely outside that register.
32477 2005-02-06 Steven Bosscher <stevenb@suse.de>
32479 * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
32482 2005-02-06 Marcin Dalecki <martin@dalecki.de>
32484 * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
32486 2005-02-06 Geoffrey Keating <geoffk@apple.com>
32488 * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
32489 * config/darwin8.h: New.
32490 * config/darwin7.h: Update comment.
32492 2005-02-03 Leehod Baruch <leehod@il.ibm.com>
32493 Dorit Naishlos <dorit@il.ibm.com>
32495 * tree-vectorizer.h (LOC): New type.
32496 (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
32497 (loop_line_number): New field in struct _loop_vec_info.
32498 (LOOP_VINFO_LOC, LOOP_LOC): New macros.
32500 * tree-vectorizer.c (input.h): Included.
32501 (find_loop_location): New function.
32502 (vect_debug_stats): Argument changed from loop to LOC. Computation of
32503 loop line number removed.
32504 (vect_debug_details): Likewise.
32505 (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
32507 (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
32508 call to vect_debug_details/stats changed from loop to loop_loc.
32509 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
32510 (slpeel_tree_peel_loop_to_edge): Likewise.
32512 (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
32513 changed from NULL to UNKNOWN_LOC.
32514 (vect_get_base_and_offset):
32515 (vect_create_addr_base_for_vector_ref):
32516 (get_vectype_for_scalar_type):
32517 (vect_create_data_ref_ptr):
32518 (vect_init_vector):
32519 (vect_get_vec_def_for_operand):
32520 (vect_finish_stmt_generation):
32521 (vectorizable_assignment):
32522 (vectorizable_operation):
32523 (vectorizable_store):
32524 (vectorizable_load):
32525 (vect_transform_stmt):
32526 (vect_update_ivs_after_vectorizer):
32527 (vect_do_peeling_for_loop_bound):
32528 (vect_do_peeling_for_alignment):
32529 (vect_transform_loop):
32530 (vect_is_simple_use):
32531 (vect_analyze_operations):
32532 (vect_is_simple_iv_evolution):
32533 (vect_analyze_scalar_cycles):
32534 (vect_analyze_data_ref_dependences):
32535 (vect_compute_data_ref_alignment):
32536 (vect_enhance_data_refs_alignment):
32537 (vect_analyze_data_ref_access):
32538 (vect_analyze_data_ref_accesses):
32539 (vect_analyze_pointer_ref_access):
32540 (vect_get_memtag_and_dr):
32541 (vect_analyze_data_refs):
32542 (vect_mark_relevant):
32543 (vect_stmt_relevant_p):
32544 (vect_mark_stmts_to_be_vectorized):
32545 (vect_can_advance_ivs_p):
32546 (vect_get_loop_niters):
32547 (vect_analyze_loop):
32548 (vectorize_loops): Likewise.
32550 (vectorizable_load): Argument in call to vect_debug_details/stats
32551 changed from loop to LOOP_LOC (loop_vinfo).
32552 (vect_transform_loop):
32553 (vect_analyze_operations):
32554 (vect_analyze_scalar_cycles):
32555 (vect_analyze_data_ref_dependence):
32556 (vect_enhance_data_refs_alignment):
32557 (vect_analyze_data_ref_accesses):
32558 (vect_analyze_pointer_ref_access):
32559 (vect_analyze_data_refs):
32560 (vect_analyze_loop): Likewise.
32562 (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
32563 changed from loop to loop_loc.
32565 (vect_enhance_data_refs_alignment): Removed unused variable loop.
32567 2005-02-03 Leehod Baruch <leehod@il.ibm.com>
32568 Dorit Naishlos <dorit@il.ibm.com>
32570 * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
32572 (vect_analyze_data_ref_dependences): Likewise.
32574 (vect_is_simple_use): Argument changed from loop structure to
32575 loop_vect_info structure.
32576 (vect_can_advance_ivs_p): Likewise.
32577 (vect_create_index_for_vector_ref): Likewise.
32578 (vect_update_ivs_after_vectorizer): Likewise.
32579 (new_stmt_vec_info): Likewise.
32581 (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
32582 changed from loop to loop_vinfo.
32583 (vect_create_data_ref_ptr): First argument in call to
32584 vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
32585 (vectorizable_assignment): Second argument in call to vect_is_simple_use
32586 was changed from loop to loop_vinfo.
32587 (vectorizable_operation): Likewise.
32588 (vectorizable_store): Likewise.
32589 (vect_mark_stmts_to_be_vectorized): Likewise.
32590 (vect_do_peeling_for_loop_bound): First argument in call to
32591 vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
32592 (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
32593 was changed from loop to loop_vinfo.
32594 (vect_analyze_data_ref_dependences): Third argument in call to
32595 vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
32597 (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
32598 (vect_create_data_ref_ptr): Likewise.
32599 (vect_init_vector): Likewise.
32600 (vect_get_vec_def_for_operand): Likewise.
32601 (vectorizable_assignment): Likewise.
32602 (vectorizable_operation): Likewise.
32603 (vectorizable_store): Likewise.
32604 (vectorizable_load): Likewise.
32605 (vect_update_ivs_after_vectorizer): Likewise.
32606 (vect_is_simple_use): Likewise.
32607 (vect_analyze_data_ref_dependence): Likewise.
32608 (vect_analyze_pointer_ref_access): Likewise.
32609 (vect_can_advance_ivs_p): Likewise.
32611 * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
32612 before _stmt_vec_info.
32613 (_stmt_vec_info): Loop field replaced by loop_vec_info.
32614 (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
32615 (new_stmt_vec_info): Argument changed from loop structure to
32616 loop_vect_info structure
32618 (vect_analyze_data_ref_dependences): Unnecessary line was removed.
32619 (vect_analyze_offset_expr): Avoid 80 columns overflow.
32620 (vect_create_addr_base_for_vector_ref): Likewise.
32621 (vect_analyze_pointer_ref_access): Likewise.
32623 2005-02-03 Andrew Pinski <pinskia@physics.uc.edu>
32626 * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
32627 phi flag if the phi is abnormal.
32629 2005-02-03 Andrew Pinski <pinskia@physics.uc.edu>
32632 * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
32633 information for the new statement.
32635 2005-02-03 Joseph S. Myers <joseph@codesourcery.com>
32638 * gcc.c (main): Include the target in -v output.
32640 2005-02-03 Alexandre Oliva <aoliva@redhat.com>
32642 * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
32643 Do not drop the extend if we'd have to add a paradoxical subreg
32644 later. Include optabs.h and insn-codes.h.
32645 * Makefile.in (combine.o): Depend on $(OPTABS_H).
32647 2005-02-02 Roger Sayle <roger@eyesopen.com>
32649 PR middle-end/19405
32650 * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
32651 * fold-const.c (const_binop): Avoid constant folding floating
32652 point operations in modes that use composite representations.
32653 * simplify-rtx.c (simplify_binary_operation): Likewise.
32655 2005-02-02 Geoffrey Keating <geoffk@apple.com>
32657 * config/rs6000/altivec.md (altivec_dst): Make the first operand
32659 (altivec_dstt): Likewise.
32660 (altivec_dstst): Likewise.
32661 (altivec_dststt): Likewise.
32662 * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
32665 2005-02-03 Dorit Naishlos <dorit@il.ibm.com>
32667 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
32668 EXPR_LOCUS from orig_cond to the new cond_stmt.
32669 (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
32672 2005-02-03 Dorit Naishlos <dorit@il.ibm.com>
32674 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
32675 standard_iv_increment_position. Remove call to bsi_next
32676 (no need to bump the iterator anymore).
32677 (vect_create_index_for_vector_ref): Call
32678 standard_iv_increment_position. Remove second function argument.
32679 (vect_finish_stmt_generation): Remove call to bsi_next
32680 (no need to bump the iterator anymore).
32681 (vect_create_data_ref_ptr): Remove second argument (bsi) in call
32682 to vect_create_index_for_vector_ref.
32684 2005-02-03 Dorit Naishlos <dorit@il.ibm.com>
32686 * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
32687 phis are used out of the loop.
32689 2005-02-03 Joseph S. Myers <joseph@codesourcery.com>
32692 * c-decl.c (undef_nested_function): New variable.
32693 (pop_scope): Diagnose undefined nested functions.
32694 (finish_function): Don't attempt cgraph processing or genericizing
32695 if current top-level function contained an undefined nested
32696 function. Reset undef_nested_function at the end of a top-level
32699 2005-02-02 Zdenek Dvorak <dvorakz@suse.cz>
32701 * tree.c (build_int_cst_type): Take sign of the value into account
32702 when deciding whether sign extend the value.
32704 2005-02-02 Joseph S. Myers <joseph@codesourcery.com>
32707 * gcc.c (cpp_unique_options): Remove %{trigraphs}.
32708 (cpp_options, cc1_options): Change %{std*&ansi} to
32709 %{std*&ansi&trigraphs}.
32711 2005-02-02 Kazu Hirata <kazu@cs.umass.edu>
32713 * cse.c: Update comments.
32715 2005-02-02 Aldy Hernandez <aldyh@redhat.com>
32717 * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
32718 arguments go on the stack. Do not put complex doubles in odd/even
32721 2005-02-02 Steven Bosscher <stevenb@suse.de>
32723 * doc/invoke.texi: Update the options enabled at -O1, -O2,
32724 and -O3. Update the documentation for -fgcse-sm, -fgcse-las,
32725 -ftree-pre, and -fthread-jumps.
32727 2005-02-02 Richard Sandiford <rsandifo@redhat.com>
32729 PR tree-optimization/19578
32730 * tree-flow.h (modified_noreturn_calls): Declare.
32731 (noreturn_call_p): Declare.
32732 * tree-flow-inline.h (noreturn_call_p): New function.
32733 (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
32734 * tree-cfg.c (modified_noreturn_calls): New variable.
32735 (cleanup_control_flow): Use noreturn_call_p. Split basic blocks
32736 that contain a mid-block noreturn call.
32737 * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
32739 2005-02-02 Kazu Hirata <kazu@cs.umass.edu>
32741 * df.c (df_def_record_1, df_uses_record): Don't use
32743 * df.h (DF_FOR_REGALLOC): Remove.
32745 2005-02-02 Joseph S. Myers <joseph@codesourcery.com>
32748 * c-typeck.c (really_start_incremental_init): Reset
32749 constructor_max_index for arrays of incomplete type.
32751 2005-02-02 Jeff Law <law@redhat.com>
32753 * gcse.c (struct reg_set): Store the block index where the register
32754 was set rather than the setting insn.
32755 (record_one_set, compute_transp): Corresponding changes.
32756 (pre_insert_copy_insn): Do not call replace_one_set.
32757 (replace_one_set): Remove.
32759 2005-02-02 Joseph S. Myers <joseph@codesourcery.com>
32762 * doc/gcov.texi: Fix typo.
32764 2005-02-01 Richard Henderson <rth@redhat.com
32767 * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
32768 * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
32770 (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
32771 * config/i386/i386-protos.h: Update.
32773 2005-02-01 Steven Bosscher <stevenb@suse.de>
32775 PR tree-optimization/19217
32776 * tree-cfg.c (verify_expr): Use the data field to see if TP was
32777 seen inside a PHI node. Do not do the ADDR_EXPR check if it was.
32778 (verify_stmts): Pass (void*)1 as data to verify_expr to signal
32779 that it is walking a PHI node.
32781 2005-02-01 Joseph S. Myers <joseph@codesourcery.com>
32783 * doc/extend.texi (Nested Functions): Update.
32785 2005-02-01 Richard Henderson <rth@redhat.com>
32788 * optabs.c (expand_copysign_absneg): Export.
32789 * optabs.h (expand_copysign_absneg): Declare.
32790 * config/rs6000/rs6000.md (copysigntf3): New.
32792 2005-02-01 Diego Novillo <dnovillo@redhat.com>
32794 PR tree-optimization/19633
32795 * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
32796 * tree-ssa-alias.c (init_alias_info): Initialize.
32797 (merge_pointed_to_info): Set.
32798 (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
32799 (dump_points_to_info_for): Show value of pt_null.
32800 (struct count_ptr_d): Declare.
32801 (find_ptr_dereference): Remove.
32802 (ptr_is_dereferenced_by): Remove.
32803 (count_ptr_derefs): New local function.
32804 (count_uses_and_derefs): New local function.
32805 (compute_points_to_and_addr_escape): Call it. If the number
32806 of dereferences is greater than zero, mark the pointer as
32807 dereferenced. If there are fewer dereferences than uses of
32808 the pointer, the pointer's value escapes.
32810 2005-02-01 Diego Novillo <dnovillo@redhat.com>
32812 PR tree-optimization/19670
32813 * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
32815 (verify_use): ... set it here, instead.
32817 2005-02-01 Janis Johnson <janis187@us.ibm.com>
32819 * doc/sourcebuild.texi (Test directives): Fix formatting.
32821 * doc/sourcebuild.texi (Test directives): Describe selector
32824 2005-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32826 * config.gcc (powerpc64-*-linux*): Default to -m64 also for
32827 specific 64-bit CPUs.
32829 2005-02-01 Richard Earnshaw <rearnsha@arm.com>
32832 * arm.c (arm_eliminable_register): New function.
32833 (adjacent_mem_locations): Don't allow eliminable registers. Use
32834 HOST_WIDE_INT for address offsets.
32835 * arm-protos.h (arm_eliminable_register): Add prototype.
32837 2005-02-01 Steven Bosscher <stevenb@suse.de>
32839 PR optimization/15242
32840 * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
32841 * basic-block.h (duplicate_computed_gotos): Add prototype.
32842 * bb-reorder.c (duplicate_computed_gotos): New function to
32843 duplicate sufficiently small blocks ending in a computed jump.
32844 * passes.c (rest_of_compilation): Call duplicate_computed_gotos
32845 if not optimizing for size.
32846 * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
32847 never do tail merging for blocks ending in a computed jump.
32848 * doc/invoke.texi: Document the max-goto-duplication-insns param.
32850 2005-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
32852 Patch from Richard Sandiford <rsandifo@redhat.com>
32853 * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
32854 from inheriting a subreg equivalence with a non-spill register.
32856 * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
32858 2005-02-01 Alexandre Oliva <aoliva@redhat.com>
32860 * config/frv/frv.c (movcc_fp_destination_operand): New.
32861 (gpr_or_memory_operand): Fix typo in comment.
32862 (gpr_or_memory_operand_with_scratch): New.
32863 * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
32864 * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
32865 movcc_fp_destination_operand.
32866 (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
32867 Legitimize memory addresses using a scratch register.
32869 2005-01-31 Jeff Law <law@redhat.com>
32871 * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
32872 bitmap a sparse bitmap instead of a simple bitmap.
32873 (mark_def_sites_initialize_block): Corresponding changes.
32874 (ssa_mark_def_sites_initialize_block): Likewise.
32875 (ssa_mark_phi_uses): Likewise.
32876 (mark_def_site, ssa_mark_def_sites): Likewise.
32877 (mark_def_site_blocks): Likewise.
32878 (rewrite_ssa_into_ssa): Likewise.
32880 * tree-ssa-dom.c (record_cond): Pass correct variable type
32881 for last argument to htab_find_slot_with_hash.
32883 * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
32884 effects when optimizing 0 % X. Do not try to optimize X % 0.
32886 2005-01-31 James E. Wilson <wilson@specifixinc.com>
32888 * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
32891 2005-02-01 Eric Christopher <echristo@redhat.com>
32893 * config/mips/mips.c (override_options): Warn if -mint64
32895 * doc/invoke.texi (MIPS Options): Document that -mint64 is
32898 2005-02-01 Kazu Hirata <kazu@cs.umass.edu>
32900 * cse.c (cse_reg_info): Remove hash_next, next, regno. Add
32902 (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
32903 REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
32904 cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
32905 (cached_regno): Initialize to INVALID_REGNUM.
32906 (cse_reg_info_table_size,
32907 cse_reg_info_table_first_uninitialized,
32908 cse_reg_info_timestamp): New.
32909 (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
32911 (init_cse_reg_info, get_cse_reg_info_1): New.
32912 (get_cse_reg_info): Cache the last look-up.
32913 (new_basic_block): Update the code to clear mappings from
32914 registers to cse_reg_info entries.
32915 (cse_main): Call init_cse_reg_info.
32917 * cse.c (get_cse_reg_info): Update a comment.
32919 2005-01-31 Steven Bosscher <stevenb@suse.de>
32922 * c-decl.c (start_decl): Do not warn about arrays of elements with
32923 an incomplete type here.
32924 (grokdeclarator): Do it here by making a pedwarn an error.
32925 * c-typeck.c (push_init_level): If there were previous errors with
32926 the constructor type, do not warn about braces for initializers.
32927 (process_init_element): Likewise for excess initializer elements.
32929 2005-01-31 Kazu Hirata <kazu@cs.umass.edu>
32931 * cse.c (delete_trivially_dead_insn): Don't iterate.
32933 2005-01-31 Andrew Pinski <pinskia@physics.uc.edu>
32935 * config/rs6000/rs6000.md (copysignsf3): New expand.
32936 (copysigndf3): Likewise.
32938 2005-01-31 Steven Bosscher <stevenb@suse.de>
32940 * recog.c (constrain_operands): Only look for earlyclobber operand
32941 conflicts if an '&' constraint was seen.
32943 2005-01-31 Marc Espie <espie@openbsd.org>
32945 * config.gcc: Don't include embedded systems fragment, switches default
32946 debugging format to ELF.
32947 * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
32948 longer pick it up there.
32950 2005-01-31 Dale Johannesen <dalej@apple.com>
32952 * doc/extend.texi (nested functions): Fix linkage description.
32953 Clarify that static is not allowed.
32955 2005-01-31 Dale Johannesen <dalej@apple.com>
32957 * config/rs6000/darwin.md (movsf_low_di): Make work.
32958 (movdf_low_di): Make work.
32960 2005-01-31 Dale Johannesen <dalej@apple.com>
32962 * config/rs6000/darwin-tramp.asm (__trampoline_setup):
32963 Make work for 64 bit.
32965 2005-01-31 Roger Sayle <roger@eyesopen.com>
32966 Dale Johannesen <dalej@apple.com>
32968 PR middle-end/19650
32969 * fold-const.c (fold_binary_op_with_conditional_arg):
32970 Make types match original operands, before STRIP_NOPS.
32972 2005-01-31 Alan Modra <amodra@bigpond.net.au>
32974 * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
32975 (struct gcc_regs): Rename from gcc_pt_regs. Add more regs.
32976 (struct gcc_sigcontext): Delete. Merge contents to..
32977 (struct gcc_ucontext): ..here.
32978 (get_sigcontext): Delete.
32979 (get_regs): New function, like get_sigcontext but return regs ptr.
32980 64-bit version finds regs from r1 to support vdso.
32981 (ppc_linux_aux_vector): New function.
32982 (ppc_fallback_frame_state): Modify for get_regs. Restore fprs
32985 2005-01-31 Ira Rosen <irar@il.ibm.com>
32987 * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
32989 (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
32990 redundant fold. Fix misalignment for MINUS_EXPR.
32991 (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
32992 (vect_analyze_pointer_ref_access): Likewise.
32993 (vect_get_memtag_and_dr): Likewise.
32995 2005-01-31 Richard Henderson <rth@redhat.com>
32997 * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
32998 (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
32999 absnegdf2_i387, absnegxf2_i387): Likewise.
33001 2005-01-31 Richard Henderson <rth@redhat.com>
33004 * optabs.c (expand_copysign_absneg): New.
33005 (expand_copysign_bit): Split out from ...
33006 (expand_copysign): ... here. Use expand_copysign_absneg.
33008 2005-01-30 Roger Sayle <roger@eyesopen.com>
33010 PR middle-end/19697
33011 * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
33012 constant as the second operand and a register as the third.
33014 2005-01-31 Danny Smith <dannysmith@users.sourceforge.net>
33017 * config/i386/i386.c (ix86_function_ok_for_sibcall): Also check
33018 that dllimport'd functions do not use all call-clobbered registers
33019 to pass parameters.
33021 2005-01-30 Richard Henderson <rth@redhat.com>
33024 * optabs.c (expand_absneg_bit): Split out from expand_unop and
33025 expand_abs_nojump and generalize. Use operand_subword and
33026 emit_no_conflict_block. Support large modes.
33027 (expand_abs_nojump): Use it. Use HONOR_SIGNED_ZEROS to fall
33029 (expand_unop): Likewise. Use HONOR_SIGNED_ZEROS to fall back
33030 negation to subtraction.
33031 (expand_copysign): Check that the format has signed zeros.
33032 Use operand_subword and emit_no_conflict_block. Support large modes.
33034 2005-01-30 Daniel Berlin <dberlin@dberlin.org>
33036 Fix PR tree-optimization/19624
33038 * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
33039 * tree-ssa-pre.c: Add cfgloop.h.
33041 (pre_stats): New member, constified.
33042 (inserted_exprs): New static variable.
33043 (NECESSARY): New macro.
33044 (create_expression_by_pieces): Fold the expression, and
33045 mark it as defaulting to not necessary. Also put in
33047 (fully_constant_expression): New function.
33048 (insert_into_preds_of_block): Modify to not insert phis when we
33049 are playing with induction variables.
33050 Push phis onto the inserted_exprs vector, and mark them as not
33051 necessary by default.
33052 (insert_aux): Call fully_constant_expression on eprime.
33053 If all edges produce the same value, mark it constant.
33054 (mark_operand_necessary): New function.
33055 (remove_dead_inserted_code): New function.
33056 (init_pre): Init loop optimizer to get loop info.
33057 (fini_pre): Free loop_optimizer, and inserted_exprs vec.
33058 (execute_pre): Commit edge inserts, then remove dead code.
33060 2005-01-30 Richard Henderson <rth@redhat.com>
33062 * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
33063 * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
33065 2005-01-30 Richard Henderson <rth@redhat.com>
33068 * config/i386/i386.c (ix86_expand_copysign): New.
33069 (ix86_split_copysign_const): New.
33070 (ix86_split_copysign_var): Rename from ix86_split_copysign,
33071 rearrange op1/nmask operands.
33072 * config/i386/i386-protos.h: Update.
33073 * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
33074 (copysigndf3): Likewise.
33075 (copysignsf3_const, copysigndf3_const): New.
33076 (copysignsf3_var): Rename from copysignsf3, split out splitter
33077 and fix split predicate for X constraint.
33078 (copysigndf3_var): Similarly.
33080 2005-01-30 Kazu Hirata <kazu@cs.umass.edu>
33082 * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
33083 doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
33084 doc/tm.texi, doc/tree-ssa.texi: Update copyright.
33086 2005-01-29 Richard Henderson <rth@redhat.com>
33089 * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
33090 of # and * in constraints.
33092 2005-01-29 Richard Henderson <rth@redhat.com>
33094 PR middle-end/19689
33095 * expr.c (store_field): Don't strip sub-mode cast when the input
33096 data is even smaller.
33098 2005-01-29 Richard Henderson <rth@redhat.com>
33100 PR middle-end/19687
33101 * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
33104 2005-01-29 Richard Henderson <rth@redhat.com>
33106 * combine.c (make_field_assignment): Fix argument order
33109 2005-01-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
33111 PR tree-optimization/15791
33112 * fold-const.c (extract_array_ref): New function.
33113 (fold): Fold comparisons between &a[i] and &a[j] or
33114 semantically equivalent trees.
33116 2005-01-29 Jeff Law <law@redhat.com>
33118 * gcse.c (insert_expr_in_table): Revamp handling of available
33119 and anticipatable occurrence lists to avoid unnecessary list
33121 (insert_set_in_table): Similarly.
33123 2005-01-29 Joseph S. Myers <joseph@codesourcery.com>
33125 * c-common.c (fix_string_type): Just use c_build_qualified_type to
33127 (c_build_qualified_type): Build qualified array types with
33128 TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
33129 * c-decl.c (c_make_fname_decl): Build unqualified array type
33130 before qualified type.
33131 (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
33132 type is qualified, not just if type itself is. Don't apply
33133 qualifiers to array type when declarator is processed. Apply
33134 qualifiers to field type whether or not it is an array type.
33135 Don't handle array types specially for applying qualifiers to
33137 * c-typeck.c (composite_type): Build unqualified element type and
33138 array type when forming composite of array types.
33139 (common_pointer_type, comptypes, comp_target_types,
33140 type_lists_compatible_p, build_indirect_ref, build_array_ref,
33141 convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
33143 (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
33144 (args2) in variables a1 and a2.
33146 2005-01-29 Kazu Hirata <kazu@cs.umass.edu>
33148 * cse.c (n_elements_made, max_elements_made): Remove.
33149 (insert): Don't touch n_elements_made.
33150 (cse_main): Don't touch n_elements_made or max_elements_made.
33152 2005-01-28 Stephane Carrez <stcarrez@nerim.fr>
33155 * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
33156 configuration part of dp-bit.c to be lost.
33158 2005-01-28 Roger Sayle <roger@eyesopen.com>
33160 * expmed.c (expand_mult_highpart_optab): When attempting to use
33161 a non-widening multiplication in a wider mode, the operands need
33162 to be converted (zero or sign extended) to that mode.
33164 2005-01-28 Ian Lance Taylor <ian@airs.com>
33166 PR middle-end/16558
33167 PR middle-end/19583
33168 * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
33169 through if both operands fall through.
33171 2005-01-28 Kazu Hirata <kazu@cs.umass.edu>
33173 * cse.c (fold_rtx) <PC>: Don't optimize.
33175 2005-01-28 Jeff Law <law@redhat.com>
33177 * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
33178 (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
33180 2005-01-28 Kazu Hirata <kazu@cs.umass.edu>
33182 * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
33183 cse_reg_info_used_list_end): Remove.
33184 (cse_reg_info_list, cse_reg_info_list_free): New.
33185 (get_cse_reg_info): When allocating an instance of
33186 cse_reg_info, add it to the beginning of the cse_reg_info_list
33187 list. Remove code to maintain cse_reg_info_used_list.
33188 (new_basic_block): Reset the free list to the beginning of
33191 2005-01-28 Richard Sandiford <rsandifo@redhat.com>
33193 * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
33194 (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
33195 (frv_expand_mdpackh_builtin): New function.
33196 (frv_expand_builtin): Use it to expand __MDPACKH.
33197 * doc/extend.texi (__MDPACKH): Update documentation.
33199 2005-01-28 Uros Bizjak <uros@kss-loka.si>
33201 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
33202 SSE_FLOAT_MODE_P for use_sse computation.
33204 2005-01-28 Ralf Corsepius <ralf.corsepius@rtems.org>
33207 * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
33209 2005-01-27 Richard Henderson <rth@redhat.com>
33211 * builtins.c (expand_builtin_copysign): New.
33212 (expand_builtin): Call it.
33213 * genopinit.c (optabs): Add copysign_optab.
33214 * optabs.c (init_optabs): Initialize it.
33215 (expand_copysign): New.
33216 * optabs.h (OTI_copysign, copysign_optab): New.
33217 (expand_copysign): Declare.
33219 * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
33220 (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
33222 * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
33223 (ix86_expand_fp_absneg_operator): ... here.
33224 (ix86_split_copysign): New.
33225 * config/i386/i386-protos.h: Update.
33226 * config/i386/i386.md (UNSPEC_COPYSIGN): New.
33227 (copysignsf3, copysigndf3): New.
33229 * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
33230 (copysignsf3, ncopysignsf3): New.
33231 (copysigndf3, ncopysigndf3): New.
33232 (copysignxf3, ncopysignxf3): New.
33233 * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
33235 2005-01-27 Arend Bayer <arend.bayer@web.de>
33236 Kazu Hirata <kazu@cs.umass.edu>
33238 * cse.c: (find_best_addr): Don't call copy_rtx before calling
33239 fold_rtx. Save cost recomputation if fold_rtx did nothing.
33240 (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
33243 2005-01-27 Jeff Law <law@redhat.com>
33245 * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
33246 definitions of SSA_NAMEs which are not being rewritten.
33247 (rewrite_ssa_into_ssa): Only initialize the current definition
33248 of an SSA_NAME if that SSA_NAME has been marked for rewriting.
33249 If checking is enabled, assert that SSA_NAME_AUX is clear for all
33250 SSA_NAMEs before returning.
33252 2005-01-27 Kazu Hirata <kazu@cs.umass.edu>
33254 * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
33255 cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
33256 tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
33257 config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
33258 config/mips/iris6.h, config/sh/sh.c: Update copyright.
33260 2005-01-27 Steven Bosscher <stevenb@suse.de>
33262 PR middle-end/17278
33263 * opts.c (decode_options): Move flag_thread_jumps from -O1 and
33264 higher to -O2 and higher. Likewise for tree PRE.
33265 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
33268 2005-01-27 Ian Lance Taylor <ian@airs.com>
33270 PR middle-end/19583
33271 * gimple-low.c (try_catch_may_fallthru): New static function.
33272 (block_may_fallthru): Handle TRY_CATCH_EXPR.
33273 * tree-inline.c (expand_call_inline): Don't warn about reaching
33274 the end of a non-void function being inlined if the function uses
33277 2005-01-27 Jakub Jelinek <jakub@redhat.com>
33279 * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
33282 * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
33283 (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
33284 (implicitly_declare): Handle error_mark_node.
33286 2005-01-27 Richard Henderson <rth@redhat.com>
33289 * tree.h (struct tree_decl): Add debug_expr_is_from.
33290 (DECL_DEBUG_EXPR_IS_FROM): New.
33291 (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
33292 * dwarf2out.c (dwarf2out_var_location): Update to match.
33293 * tree-outof-ssa.c (create_temp): Likewise.
33294 * var-tracking.c (track_expr_p): Likewise.
33295 * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
33296 * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
33297 * toplev.c (default_tree_printer): Likewise.
33299 2005-01-27 Alexandre Oliva <aoliva@redhat.com>
33301 * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
33302 GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
33304 2005-01-27 Steven Bosscher <stevenb@suse.de>
33306 * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
33307 CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
33308 ASM_CLOBBERS): Add tree checks.
33310 * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
33311 (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
33312 * c-common.def (SWITCH_STMT): Update to match.
33313 * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
33314 macros instead of SWITCH_EXPR ones.
33315 * c-dump.c (c_dump_tree): Likewise.
33316 * c-gimplify.c (gimplify_switch_stmt): Likewise.
33317 * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
33319 * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
33321 2005-01-27 Alan Modra <amodra@bigpond.net.au>
33323 * unwind-dw2.c (execute_stack_op): Add missing cases for
33324 DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
33326 2005-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
33328 * config.gcc (Obsolete configurations): Remove 'dummy', add
33329 sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
33332 2005-01-26 Diego Novillo <dnovillo@redhat.com>
33334 PR tree-optimization/19633
33335 * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
33337 (maybe_create_global_var): Do not create .GLOBAL_VAR if there
33338 are no call-clobbered variables.
33339 * tree-outof-ssa.c (check_replaceable): Return false for calls
33342 2005-01-26 Ulrich Weigand <uweigand@de.ibm.com>
33344 * dbxout.c (dbxout_symbol_location): Resolve constant pool references
33345 even for variables with NULL DECL_INITIAL.
33347 2005-01-26 Stuart Hastings <stuart@apple.com>
33349 * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
33351 2005-01-26 Richard Henderson <rth@redhat.com>
33353 PR middle-end/18008
33354 * c-decl.c (finish_struct): Set DECL_MODE after resetting a
33356 * expr.c (store_field): Strip conversions to odd-bit-sized types
33357 if the destination field width matches.
33359 2005-01-26 Richard Henderson <rth@redhat.com>
33361 * c-decl.c, expmed.c, expr.c: Revert last change.
33363 2005-01-26 Richard Henderson <rth@redhat.com>
33365 PR middle-end/18008
33366 * c-decl.c (finish_struct): Set DECL_MODE after resetting a
33368 * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
33369 if we don't need the bits above those present in the current mode.
33370 * expr.c (store_field): Strip conversions to odd-bit-sized types
33371 if the destination field width matches.
33373 2005-01-26 Richard Sandiford <rsandifo@redhat.com>
33375 * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
33376 either -ffast-math or -funsafe-math-optimizations is in use.
33378 2005-01-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
33382 * config/avr/avr.c (notice_update_cc): Only set condition code for
33383 ashrqi3 if shift count > 0.
33384 (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
33385 (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
33386 ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
33387 count <= 0 as a no-op, and shift count >= width by copying zero
33388 or sign bit to all bits of the result.
33389 * config/avr/avr.md (all shifts): Add alternatives for zero shift
33390 count, with attribute "length" set to 0 and "cc" set to "none".
33392 2005-01-26 Aldy Hernandez <aldyh@redhat.com>
33394 * doc/invoke.texi: Document -mTLS.
33396 * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
33397 * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
33398 * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
33399 * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
33400 * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
33401 * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
33402 * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
33403 * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
33405 * configure.ac: Check for a TLS capable gas.
33407 * configure: Regenerate.
33409 2005-01-26 Richard Henderson <rth@redhat.com>
33411 PR middle-end/18008
33412 * combine.c (make_field_assignment): Simplify store to zero_extract
33413 from a source with an overlapping mask.
33415 2005-01-26 Aldy Hernandez <aldyh@redhat.com>
33417 2004-11-11 Eric Christopher <echristo@redhat.com>
33419 * config/frv/frv.md: Add fr400_integer automaton. Don't
33420 allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
33423 2005-01-26 Steven Bosscher <stevenb@suse.de>
33425 PR middle-end/16585
33426 * cfgbuild.c (make_edges): Do not clear or set
33427 current_function_has_computed_jump.
33428 * function.h (struct function): Remove the has_computed_jump field.
33429 (current_function_has_computed_jump): Do not define.
33430 * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
33431 in a computed jump. Ignore current_function_has_computed_jump.
33433 2005-01-26 Richard Henderson <rth@redhat.com>
33435 PR middle-end/19515
33436 * expr.c (categorize_ctor_elements): New argument p_must_clear.
33437 (categorize_ctor_elements_1): Likewise. Detect a union that isn't
33439 (mostly_zeros_p): Update for new categorize_ctor_elements argument.
33440 * gimplify.c (gimplify_init_constructor): Likewise. Only shove
33441 objects into static storage if they have more than one non-zero value.
33442 * tree.h (categorize_ctor_elements): Update decl.
33444 2005-01-26 Steven Bosscher <stevenb@suse.de>
33446 PR middle-end/19616
33447 * tree.h (CALL_EXPR_TAILCALL): Add comment.
33448 * calls.c (check_sibcall_argument_overlap_1): Revert the change
33449 to this function from 2004-07-10.
33450 * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
33451 the current function for tail call optimizations if the address
33452 of one of it its arguments is taken.
33454 2005-01-26 Kazu Hirata <kazu@cs.umass.edu>
33456 * cse.c (fold_rtx): Call equiv_constant only when necessary.
33458 2005-01-26 Bernd Schmidt <bernd.schmidt@analog.com>
33460 * function.c (expand_function_end): If current_function_calls_alloca,
33461 emit stack restore in a place that is reached when the function falls
33462 through at the end.
33464 2005-01-26 Alexandre Oliva <aoliva@redhat.com>
33466 * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
33467 rule to avoid matching inappropriate suffix rule.
33469 2005-01-26 Jan Hubicka <jh@suse.cz>
33471 PR tree-optimization/19241
33472 * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
33474 2005-01-26 Hans-Peter Nilsson <hp@axis.com>
33476 * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
33477 -lsyssim. Wrap -lc -lsyssim in --start-group --end-group instead
33479 (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
33480 <sim*>: Always use crt1.o, regardless of N in simN.
33481 <!sim>: Drop support for -pg and -p variants; always use crt0.o.
33482 (ENDFILE_SPEC): Add crtn.o, after crtend.o.
33483 (CRT_CALL_STATIC_FUNCTION): Remove.
33484 * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
33485 use crt1.o, regardless of N in simN.
33486 <!sim>: Drop support for -pg and -p variants; always use crt0.o.
33487 (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
33488 (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
33489 case isystem setting.
33490 (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
33492 2005-01-25 Ian Lance Taylor <ian@airs.com>
33494 * gimple-low.c (block_may_fallthru): Correct handling of
33495 SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
33497 2005-01-26 Hans-Peter Nilsson <hp@axis.com>
33499 * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
33500 handlers to match indentation; nested under the mtune=* handler.
33501 Similar for mcpu= and march=.
33503 2005-01-25 Daniel Jacobowitz <dan@codesourcery.com>
33505 * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
33506 * config/mips/linux64.h (LIB_SPEC): Likewise.
33507 * config/mn10300/linux.h (LIB_SPEC): Likewise.
33508 * config/sh/linux.h (LIB_SPEC): Likewise.
33510 2005-01-25 Aldy Hernandez <aldyh@redhat.com>
33512 * config/frv/frv.c (frv_legitimize_tls_address): New.
33513 (TARGET_HAVE_TLS): Define.
33514 (FRV_SYMBOL_REF_TLS_P): Define.
33515 (frv_override_options): Handle new register classes.
33516 (frv_legitimate_address_p): Reject tls addresses.
33517 (frv_legitimize_address): Handle TLS addresses.
33518 (gen_inlined_tls_plt): New.
33519 (gen_tlsmoff): New.
33520 (frv_legitimize_tls_address): New.
33521 (unspec_got_name): Add TLS entries.
33522 (got12_operand): Add R_FRV_TLSMOFF12 case.
33523 (frv_emit_move): Fixup TLS addresses.
33524 (frv_emit_movsi): Legitimize TLS addresses.
33526 * config/frv/frv.h (MASK_BIG_TLS): New.
33527 (TARGET_BIG_TLS): New.
33528 (HAVE_AS_TLS): Define.
33529 (TARGET_SWITCHES): Add -mTLS and -mtls options.
33530 (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
33531 (REG_CLASS_NAMES): Same.
33532 (REG_CLASS_CONTENTS): Same.
33533 (CONSTRAINT_LEN): New.
33534 (REG_CLASS_FROM_CONSTRAINT): New.
33535 (PREDICATE_CODES): Add symbolic_operand.
33537 * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
33538 UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
33539 UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
33540 UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
33541 R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
33542 R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
33543 R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
33544 GR9_REG, GR14_REG, LRREG.
33545 (type): Add load_or_call attribute.
33546 ("load_or_call"): New reservation.
33547 ("call_gettlsoff"): New.
33548 ("tls_indirect_call"): New.
33549 ("tls_load_gottlsoff12"): New.
33550 ("tlsoff_hilo"): New.
33551 ("tls_tlsdesc_ldd"): New.
33552 ("tls_tlsoff_ld"): New.
33555 * config/frv/frv-protos.h (symbolic_operand): Protoize.
33557 2005-01-25 Alexandre Oliva <aoliva@redhat.com>
33559 * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
33560 * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
33561 * config/frv/frv.c (TLS_BIAS): Define.
33562 (frv_output_dwarf_dtprel): New.
33564 2005-01-26 Jakub Jelinek <jakub@redhat.com>
33566 PR rtl-optimization/19579
33567 * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
33568 both A and B, see if they don't clobber registers the other expr uses.
33570 2005-01-25 J"orn Rennecke <joern.rennecke@st.com>
33572 * real.c (do_add): Initialize signalling and canonical members.
33574 * real.c (real_from_integer): Zero out destination.
33576 2005-01-18 Jan Hubicka <jh@suse.cz>
33578 PR tree-optimize/19337
33579 * tree-inline.c (initialize_inlined_parameters): Copy
33580 saved_static_chain_decl only.
33582 2005-01-25 Richard Henderson <rth@redhat.com>
33586 * config/i386/i386.c (x86_inter_unit_moves): Zero.
33587 (ix86_preferred_reload_class): Rewrite fp-constant section, with
33588 80387 enabled, to return a proper subclass. Return the subset that
33589 overlaps with GENERAL_REGS for PLUS.
33590 * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
33592 2005-01-25 Richard Henderson <rth@redhat.com>
33594 PR middle-end/19609
33595 * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
33597 2005-01-25 Roger Sayle <roger@eyesopen.com>
33599 * expmed.c (choose_multiplier): Change interface to return the
33600 multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
33601 (expand_divmod): Update calls to choose_multiplier.
33603 2005-01-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33605 PR middle-end/19330
33606 * expmed.c (extract_bit_field): Use adjust_address instead of
33607 gen_lowpart when op0 is a MEM.
33609 2005-01-24 Steven Bosscher <stevenb@suse.de>
33611 * cfgexpand.c (expand_gimple_tailcall): Fix typo.
33613 2005-01-24 Richard Sandiford <rsandifo@redhat.com>
33615 * config/mips/irix-csr.c: New file.
33616 * config/mips/t-iris6 (irix-csr.o): New rule to build it.
33617 (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
33618 * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
33621 2005-01-24 Eric Botcazou <ebotcazou@libertysurf.fr>
33624 * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
33625 sparc/elf.h, add sparc/sp-elf.h.
33626 (sparc-*-rtems*): Likewise.
33627 (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
33628 tm-dwarf2.h, add sparc/sp-elf.h.
33629 (sparc86x-*-elf): Likewise.
33630 (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
33631 * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
33632 TARGET_OS_CPP_BUILTINS.
33633 * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
33634 * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
33636 * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
33637 * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
33638 (SWITCH_TAKES_ARG): Likewise.
33639 (LOCAL_LABEL_PREFIX): Likewise.
33640 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
33641 (TARGET_N_FORMAT_TYPES): Delete.
33642 (TARGET_FORMAT_TYPES): Likewise.
33643 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
33644 * config/sparc/elf.h: Delete.
33645 * config/sparc/sp-elf.h: New file.
33647 2005-01-24 Kazu Hirata <kazu@cs.umass.edu>
33649 * tree-flow-inline.h (phi_arg_from_edge): Remove.
33650 * tree-flow.h: Remove the corresponding prototype.
33651 * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
33652 tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
33654 2005-01-24 Jakub Jelinek <jakub@redhat.com>
33657 * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
33658 for AIX ABI or ELF -fPIC.
33659 (rs6000_emit_load_toc_table): Don't create toc_section here.
33660 (rs6000_xcoff_file_start): Nor here.
33662 2005-01-24 J"orn Rennecke <joern.rennecke@st.com>
33664 * sh.c (ra.h): Don't #include.
33665 (hard_regs_intersect_p): New function, resurrected from ra.c.
33667 * sh.c: Fix 1996 Copyright.
33669 2005-01-24 Richard Henderson <rth@redhat.com>
33670 Aldy Hernandez <aldyh@redhat.com>
33672 * regrename.c (note_sets): Handle subregs.
33674 2005-01-24 Joseph S. Myers <joseph@codesourcery.com>
33677 * genconditions.c (write_header, write_conditions): Elide file if
33680 2005-01-24 Kazu Hirata <kazu@cs.umass.edu>
33682 * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
33683 config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
33686 2005-01-24 Jakub Jelinek <jakub@redhat.com>
33688 * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
33689 expand_builtin_printf, expand_builtin_fprintf,
33690 expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
33691 checking against POINTER_TYPE.
33692 (validate_arglist): Handle POINTER_TYPE code by checking
33695 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
33697 * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
33698 init_rtlanal): New.
33699 (for_each_rtx): Call for_each_rtx_1.
33700 * rtl.h (init_rtlanal): Declare.
33701 * toplev.c (backend_init): Call init_rtlanal.
33703 2005-01-24 Jakub Jelinek <jakub@redhat.com>
33705 * flow.c (propagate_one_insn): Formatting.
33707 PR middle-end/19551
33708 * flow.c (libcall_dead_p): Be more conservative if unsure.
33709 If there are any instructions between insn and call, see if they are
33710 all dead before saying the libcall is dead.
33712 2005-01-24 Uros Bizjak <uros@kss-loka.si>
33714 * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
33715 operand constraint for operand 0.
33717 2005-01-23 Richard Henderson <rth@redhat.com>
33720 * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
33721 edges leading to join block.
33723 2005-01-23 Roger Sayle <roger@eyesopen.com>
33725 * expmed.c (expand_mult_highpart): Make static. Change type of
33726 constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
33727 (expand_divmod): Updates calls to expand_mult_highpart by using
33728 gen_int_mode to pass a CONST_INT rtx.
33729 * rtl.h (expand_mult_highpart): Remove prototype.
33731 2005-01-23 Kazu Hirata <kazu@cs.umass.edu>
33733 * flow.c (regset_bytes, regset_size): Remove.
33735 * cfganal.c: Fix a reference to Harvey's paper.
33737 2005-01-23 Steven Bosscher <stevenb@suse.de>
33739 PR rtl-optimization/19464
33740 * tree-optimize.c (init_tree_optimization_passes): Add one more
33741 copyrename pass just before out-of-ssa.
33743 2005-01-23 Joseph S. Myers <joseph@codesourcery.com>
33746 * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
33747 * ggc-none.c (ggc_free): Define.
33749 2005-01-23 Kazu Hirata <kazu@cs.umass.edu>
33751 * cse.c (max_reg, max_insn_uid): Remove.
33752 (cse_main): Don't access max_reg or max_insn_uid.
33754 * c-common.c (explicit_flag_signed_bitfields,
33755 lang_statement_code_p, lang_expand_function_end): Remove.
33756 * c-common.h: Remove the corresponding declarations.
33757 * c-opts.c (c_common_handle_option): Remove all write access
33758 to explicit_flag_signed_bitfields.
33760 * cgraph.c (cgraph_varpool_n_nodes): Remove.
33761 (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
33762 * cgraph.h: Remove the corresponding declaration.
33764 * gcse.c (null_pointer_info): Remove.
33766 2005-01-23 Roger Sayle <roger@eyesopen.com>
33767 Eric Botcazou <ebotcazou@libertysurf.fr>
33769 * combine.c (simplify_logical): Only simplify logical expressions
33770 of the form ior(and(x,y),z) by the inverse distributive law if the
33771 result is cheaper than the original.
33773 2005-01-23 Kazu Hirata <kazu@cs.umass.edu>
33775 * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
33776 fold-const.c, gimplify.c, params.h, tree-data-ref.c,
33777 tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
33778 tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
33779 config/freebsd-spec.h, config/arm/arm.h,
33780 config/h8300/h8300.md, config/i386/i386.md,
33781 config/i386/predicates.md, config/i386/sse.md,
33782 config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
33783 config/vax/vax.md: Fix comment typos. Follow spelling
33786 2005-01-23 Steven Bosscher <stevenb@suse.de>
33788 * gengtype.c (walk_type): Produce `not equal to' compares for loop
33789 tests, instead of `less than'.
33791 2005-01-23 Richard Sandiford <rsandifo@redhat.com>
33793 * function.c (assign_parm_setup_block): When creating a new stack slot
33794 for a parameter, get its alignment from the parameter's DECL_ALIGN
33795 rather than the type's TYPE_ALIGN. Make sure that the parameter
33796 is at least word aligned.
33798 2005-01-22 Roger Sayle <roger@eyesopen.com>
33800 PR middle-end/19378
33801 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
33803 2005-01-22 Richard Henderson <rth@redhat.com>
33806 * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
33807 in both compare operands.
33808 (movdfcc_1_sse_max): Likewise.
33809 (movsfcc_1_sse): Likewise. Add earlyclobber for scratch.
33810 (movdfcc_1_sse): Likewise.
33811 * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
33812 scratch register as needed.
33814 2005-01-22 Richard Henderson <rth@redhat.com>
33816 * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
33818 * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
33820 2005-01-22 Richard Henderson <rth@redhat.com>
33822 * genopinit.c (optabs): Use smin/smax for floating point too.
33823 * doc/md.texi: Update to match. Clarify that floating point
33824 results are undefined for +0/-0 and NaN.
33825 * doc/rtl.texi: Likewise.
33826 * rtl.def (SMIN, SMAX): Likewise
33827 * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
33829 * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
33830 leading 's' to the name.
33831 * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
33832 smaxxf3, sminxf3): Likewise.
33833 * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
33836 2005-01-22 Paul Brook <paul@codesourcery.com>
33838 * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
33840 2005-01-21 Mark Dettinger <dettinge@de.ibm.com>
33842 * config/s390/s390.c (struct processor_costs): New fields
33843 dlgr, dlr, dr, dsgfr, dsgr.
33844 (z900_cost, z990_cost): Values for new fields.
33845 (s390_rtx_costs): New cases MEM und COMPARE in switch
33846 statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
33847 DIV, MOD, UDIV, UMOD.
33849 2005-01-21 Ulrich Weigand <uweigand@de.ibm.com>
33851 * config/s390/s390.md ("doloop_si64"): Reload input value directly
33852 into the register being decremented.
33853 ("doloop_si31", "doloop_di"): Likewise.
33854 ("*doloop_si_long"): Adapt pattern.
33856 2005-01-21 Ulrich Weigand <uweigand@de.ibm.com>
33858 * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
33860 (CLASS_MAX_NREGS): Likewise.
33862 2005-01-21 Daniel Berlin <dberlin@dberlin.org>
33864 * doc/tree-ssa.texi (Statement Operands): Add example for new
33865 must-def macro. Note deprecation of old operands interface.
33867 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
33869 PR tree-optimization/19484
33870 * tree-cfg.c (remove_fallthru_edge): New function.
33871 (cleanup_control_flow): Remove fallthru edges from calls that are
33872 now known not to return.
33874 2005-01-20 Daniel Berlin <dberlin@dberlin.org>
33876 Fix PR tree-optimization/19038
33877 * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
33878 copies with loop variant ones.
33880 2005-01-22 Kazu Hirata <kazu@cs.umass.edu>
33882 * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
33883 config/alpha/alpha-protos.h, config/alpha/alpha.h,
33884 config/alpha/alpha.md, config/alpha/predicates.md,
33885 config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
33886 config/sparc/sol2.h: Update copyright.
33888 * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
33889 first label to see if it is a nonlocal label.
33891 2005-01-22 David Edelsohn <edelsohn@gnu.org>
33892 Andrew Pinski <pinskia@physics.uc.edu>
33895 * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
33896 maximum number of GPRs. Saturate n_fpr at maximum number of FPRs.
33898 2005-01-22 Ralf Corsepius <ralf.corsepius@rtems.org>
33900 * config/rs6000/rtems.h: Update copyright.
33902 2005-01-22 Ralf Corsepius <ralf.corsepius@rtems.org>
33905 * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
33906 (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
33907 (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
33909 2005-01-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
33912 * c-typeck.c (convert_arguments): Check for error_mark_node.
33914 2005-01-21 Ian Lance Taylor <ian@airs.com>
33916 PR tree-optimization/13000
33917 * tree-inline.c: Include "tree-flow.h".
33918 (expand_call_inline): If warn_return_type, warn if non-void inline
33919 function falls through.
33920 * tree-cfg.c (execute_warn_function_return): Don't warn about
33921 control reaching end if TREE_NO_WARNING is set. Set
33923 * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
33925 * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
33926 branch if we don't need one.
33927 * c-typeck.c: Include "tree-flow.h"
33928 (c_finish_bc_stmt): Don't add a goto if the current statement
33929 list doesn't fall through to the current point.
33931 2005-01-21 Roger Sayle <roger@eyesopen.com>
33933 PR rtl-optimization/576
33934 * real.c (real_arithmetic): Change return type from void to bool
33935 to return an indication that the result may be inexact.
33936 * real.h (real_arithmeric): Update prototype.
33937 * fold-const.c (const_binop): Don't constant fold floating
33938 point expressions when the user specifies -frounding-math and
33939 the result may depend upon the run-time rounding mode.
33940 (fold_convert_const_real_from_real): Clean-up.
33941 (fold_initializer): Ignore flag_rounding_math for initializers.
33942 * simplify-rtx.c (simplify_binary_operation): Likewise, don't
33943 constant fold FP operations with flag_rounding_math if the
33944 result may depend upon the run-time rounding mode.
33946 2005-01-21 Tom Tromey <tromey@redhat.com>
33948 * c-cppbuiltin.c (define__GNUC__): Correct assertion.
33950 2005-01-21 Kazu Hirata <kazu@cs.umass.edu>
33952 * tree-cfg.c: Fix comment typos.
33954 2005-01-21 J"orn Rennecke <joern.rennecke@st.com>
33956 * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
33957 around the call to rest_of_handle_branch_target_load_optimize.
33959 2005-01-21 Eric Botcazou <ebotcazou@libertysurf.fr>
33961 * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
33962 (sparc64-*-openbsd*): Likewise.
33963 (sparclite-*-elf*): Include tm-dwarf2.h.
33964 (sparc86x-*-elf*): Likewise.
33965 (sparc64-*-elf*): Likewise.
33966 * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
33967 (DBX_DEBUGGING_INFO): Likewise.
33968 * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
33969 (PREFERRED_DEBUGGING_TYPE): Likewise.
33970 * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
33971 * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
33972 (PREFERRED_DEBUGGING_TYPE): Likewise.
33973 * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
33974 (PREFERRED_DEBUGGING_TYPE): Likewise.
33975 * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
33977 2005-01-21 Hans-Peter Nilsson <hp@bitrange.com>
33980 * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
33982 2005-01-20 Paul Brook <paul@codesourcery.com>
33984 * doc/rtl.texi: Document value extension requirements for CONST_INT.
33986 2005-01-20 Kazu Hirata <kazu@cs.umass.edu>
33988 * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
33989 label is first in a sequence of labels.
33991 * tree-cfg.c (tree_verify_flow_info): Fix a typo.
33993 2005-01-20 Janis Johnson <janis187@us.ibm.com>
33994 Giovanni Bajo <giovannibajo@gcc.gnu.org>
33996 * doc/sourcebuild.texi (Test Directives): New.
33998 2005-01-20 Roger Sayle <roger@eyesopen.com>
34000 * real.c (real_floor): Don't leave the result uninitialized when
34001 mode is VOIDMode, but return the unrounded intermediate value.
34002 (real_ceil): Likewise.
34004 2005-01-20 Paul Brook <paul@codesourcery.com>
34006 * config/arm/arm.md (insv): Use gen_int_mode.
34008 2005-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
34010 * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
34011 * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
34012 * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
34013 * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
34014 * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
34016 2005-01-20 Daniel Berlin <dberlin@dberlin.org>
34019 * dwarf2out.c (concat_loc_descriptor): We don't know we can use
34020 fbreg, so we have to assume we can't.
34021 (loc_descriptor_from_tree_1): Ditto.
34022 (containing_function_has_frame_base): New function.
34023 (add_location_or_const_value_attribute): Use it.
34024 Also try to generate a frame_base from a single element location
34027 2005-01-20 Kazu Hirata <kazu@cs.umass.edu>
34029 PR tree-optimization/15349
34030 * timevar.def (TV_TREE_MERGE_PHI): New.
34031 * tree-cfg.c (tree_forwarder_block_p): Add a new argument
34033 (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
34034 calls to tree_forwarder_block_p.
34035 (remove_forwarder_block_with_phi, merge_phi_nodes,
34036 gate_merge_phi, pass_merge_phi): New.
34037 * tree-optimize.c (init_tree_optimization_passes): Add
34039 * tree-pass.h: Add an extern for pass_merge_phi;
34041 2005-01-20 Richard Henderson <rth@redhat.com>
34044 * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
34045 (_mm_castps_pd, _mm_castps_si128): New.
34046 (_mm_castsi128_ps, _mm_castsi128_pd): New.
34048 2005-01-20 Richard Henderson <rth@redhat.com>
34051 * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
34052 __builtin_ia32_vec_init_v2si.
34053 (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
34054 * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
34055 (ix86_init_mmx_sse_builtins): Create it.
34056 (ix86_expand_builtin): Expand it.
34057 (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
34058 * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
34059 (vec_extractv2si_0, vec_extractv2si_1): New.
34061 2005-01-20 Richard Henderson <rth@redhat.com>
34064 * config/i386/i386.c (ix86_expand_push): New.
34065 * config/i386/mmx.md (push<MMXMODE>1): New.
34066 * config/i386/sse.md (push<SSEMODE>1): New.
34067 * config/i386/i386-protos.h: Update.
34069 2005-01-20 Kazu Hirata <kazu@cs.umass.edu>
34071 * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
34074 2005-01-20 Richard Henderson <rth@redhat.com>
34076 * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
34077 * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
34079 2005-01-19 Richard Henderson <rth@redhat.com>
34082 * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
34083 to V4SFmode in SSE1 fallback load path.
34085 2005-01-19 Richard Henderson <rth@redhat.com>
34087 * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
34088 in QImode expansion to ix86_expand_vector_set.
34089 (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
34091 2005-01-19 Richard Henderson <rth@redhat.com>
34094 * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
34095 subclass of the input class.
34096 (ix86_secondary_memory_needed): Always true for cross-MMX classes.
34097 Always true for cross-SSE1 classes. Rationalize conditionals.
34098 * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
34099 * config/i386/i386.md (movsi_1): Add MMX/SSE zeros. Fix alternatives
34100 for SSE1. Don't check TARGET_INTER_UNIT_MOVES.
34101 (movdi_2): Add MMX/SSE zeros.
34102 (movdi_1_rex64): Likewise. Don't check TARGET_INTER_UNIT_MOVES.
34103 (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
34104 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
34105 (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
34106 (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
34107 (zero_extendsidi2_rex64_1): Remove.
34108 (MOV0 peephole): Check GENERAL_REG_P.
34110 2005-01-19 Richard Henderson <rth@redhat.com>
34113 * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
34115 (ix86_expand_vector_extract): Likewise.
34117 2005-01-19 Richard Henderson <rth@redhat.com>
34119 PR middle-end/19304
34120 * expr.c (emit_move_change_mode): New argument force; use
34121 simplify_gen_subreg if true.
34122 (emit_move_via_alt_mode): Merge into ...
34123 (emit_move_via_integer): ... here.
34124 (emit_move_ccmode): Use emit_move_change_mode directly.
34126 2005-01-19 Richard Henderson <rth@redhat.com>
34129 * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
34130 (alpha_preferred_reload_class): Handle CONST_VECTOR.
34131 (alpha_emit_set_const_1): Add no_output parameter; don't emit
34133 (alpha_emit_set_const): Likewise. Make static.
34134 (alpha_emit_set_long_const): Make static.
34135 (alpha_extract_integer): Split out from alpha_expand_mov.
34136 (alpha_split_const_mov): Likewise.
34137 (alpha_expand_mov): Use them. Handle CONST_VECTOR.
34138 (alpha_legitimate_constant_p): New.
34139 * config/alpha/alpha-protos.h: Update.
34140 * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
34141 (LEGITIMATE_CONSTANT_P): Re-implement with a function.
34142 * config/alpha/alpha.md (movsi): Add n alternative.
34143 (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
34144 (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
34145 (splitters for all of the above): Use alpha_split_const_mov.
34146 * config/alpha/predicates.md (non_add_const_operand): New.
34147 (non_zero_const_operand): New.
34148 (input_operand): Use alpha_legitimate_constant_p after reload.
34150 2005-01-19 Zdenek Dvorak <dvorakz@suse.cz>
34152 PR tree-optimization/19038
34153 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
34154 (add_candidate): Add ivs with increment in latch only if
34155 allow_ip_end_pos_p is true.
34156 (determine_iv_cost): Use empty_block_p.
34158 2005-01-19 Daniel Berlin <dberlin@dberlin.org>
34160 * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
34161 (compute_dominance_frontiers): Ditto.
34163 2005-01-19 Ralf Corsepius <ralf.corsepius@rtems.org>
34166 * config/sh/t-rtems: New.
34167 * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
34169 2005-01-19 Zdenek Dvorak <dvorakz@suse.cz>
34171 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
34172 the offset of the selected field.
34174 2005-01-19 Kazu Hirata <kazu@cs.umass.edu>
34176 * tree-cfg.c (remove_forwarder_block): Fix the check to
34177 prevent a nonlocal label from appearing in the middle of a
34180 2005-01-19 Hans-Peter Nilsson <hp@axis.com>
34182 PR rtl-optimization/19462
34183 * reorg.c (find_end_label): Create return insn only if
34184 current_function_epilogue_delay_list is empty.
34186 2005-01-19 Paolo Bonzini <bonzini@gnu.org>
34188 * doc/passes.texi: Remove paragraph mentioning new-ra.
34190 2005-01-19 Jakub Jelinek <jakub@redhat.com>
34192 PR rtl-optimization/15139
34193 * combine.c: Include params.h.
34194 (count_rtxs): New function.
34195 (record_value_for_reg): If replace_rtx would replace at least
34196 2 occurrences of REG in VALUE and TEM is really large, replace REG with
34197 (clobber (const_int 0)) instead of TEM.
34198 * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
34199 * params.h (MAX_LAST_VALUE_RTL): New.
34200 * Makefile.in (combine.o): Depend on $(PARAMS_H).
34201 * doc/invoke.texi (--param max-last-value-rtl=N): Document.
34204 * c-typeck.c (digest_init): Only call build_vector if all constructor
34205 elements are *_CST nodes.
34206 * gimplify.c (gimplify_init_constructor): Likewise.
34208 PR middle-end/19164
34209 * c-typeck.c (digest_init): Only call build_vector if inside_init
34212 2005-01-18 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
34214 * toplev.c (init_asm_output): Remove dead #ifdef.
34216 2005-01-18 Kaz Kojima <kkojima@gcc.gnu.org>
34218 * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
34220 2005-01-18 Eric Botcazou <ebotcazou@libertysurf.fr>
34222 * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
34223 accessing DECL_FUNCTION_CODE.
34224 * dojump.c (do_jump): Likewise.
34225 * gimplify.c (gimplify_call_expr): Likewise.
34226 * predict.c (expr_expected_value): Likewise.
34227 (strip_builtin_expect): Likewise.
34228 * tree-inline.c (estimate_num_insns_1): Likewise.
34229 * tree-ssa-loop-im.c (stmt_cost): Likewise
34230 * fold-const.c (fold): Test for BUILT_IN_NORMAL.
34231 (tree_expr_nonnegative_p): Likewise.
34233 2005-01-18 Eric Botcazou <ebotcazou@libertysurf.fr>
34235 * config/sparc/sparc.c (load_pic_register): Emit the appropriate
34236 variant of the load_pcrel_sym pattern.
34237 * config/sparc/sparc.md (P macro): Move to the top.
34238 (load_pcrel_sym): Macroize using P.
34239 (save_register_window): Likewise.
34241 2005-01-18 Aldy Hernandez <aldyh@redhat.com>
34243 * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
34244 ("sordered"): Same.
34246 2005-01-18 Andrew Pinski <pinskia@physics.uc.edu>
34249 * c-typeck.c (build_asm_expr): Strip nops off
34250 input memory operands.
34252 2005-01-18 David Edelsohn <edelsohn@gnu.org>
34254 * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
34255 _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
34256 * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
34257 * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
34259 2005-01-18 Joel Sherrill <joel.sherrill@oarcorp.com>
34262 * config/i386/i386.c (override_options): If the 80387 is disabled,
34263 then do not return FP values using FP registers.
34265 2005-01-18 Kazu Hirata <kazu@cs.umass.edu>
34267 * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
34268 c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
34269 combine.c, config.gcc, coverage.h, cse.c, cselib.c,
34270 defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
34271 flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
34272 gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
34273 output.h, postreload-gcse.c, postreload.c, recog.c,
34274 resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
34275 targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
34276 tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
34277 tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
34278 tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
34279 tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
34280 tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
34281 unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
34283 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
34284 config/alpha/alpha.c, config/arm/vfp.md,
34285 config/i386/emmintrin.h, config/i386/i386-modes.def,
34286 config/i386/i386-protos.h, config/i386/i386.h,
34287 config/i386/pmmintrin.h, config/i386/ppro.md,
34288 config/i386/predicates.md, config/i386/xmmintrin.h,
34289 config/i860/i860.c, config/ia64/ia64-modes.def,
34290 config/ia64/ia64-protos.h, config/ia64/ia64.h,
34291 config/ia64/ia64.md, config/ia64/itanium1.md,
34292 config/ia64/itanium2.md, config/ia64/predicates.md,
34293 config/iq2000/iq2000.h, config/mips/linux64.h,
34294 config/rs6000/aix41.h, config/rs6000/aix43.h,
34295 config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
34296 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
34297 config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
34298 config/sparc/linux64.h, config/sparc/litecoff.h,
34299 config/sparc/sp64-elf.h, config/sparc/sparc.c,
34300 config/sparc/sparc.h, config/sparc/sparc.md,
34301 config/sparc/sysv4-only.h: Update copyright.
34303 2005-01-18 Richard Henderson <rth@redhat.com>
34306 * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
34308 2005-01-18 Marc Espie <espie@openbsd.org>
34309 * config/i386/openbsdelf.h: Typo.
34311 2005-01-18 Richard Henderson <rth@redhat.com>
34313 * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
34314 special case for sse.
34315 * config/i386/predicates.md (sse_comparison_operator): Likewise.
34317 2005-01-18 Dorit Naishlos <dorit@il.ibm.com>
34319 * tree-inline.c (estimate_num_insns_1): Added cases for
34320 ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
34322 2005-01-18 Eric Botcazou <ebotcazou@libertysurf.fr>
34324 PR rtl-optimization/19296
34325 * combine.c (simplify_comparison): Rewrite the condition under
34326 which a non-paradoxical SUBREG of a PLUS can be lifted when
34327 compared against a constant.
34329 2005-01-18 Andi Kleen <ak@muc.de>
34331 * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
34332 * c.opt (-Wpointer-sign): Add.
34333 * doc/invoke.texi: (-Wpointer-sign): Add.
34335 2005-01-18 Uros Bizjak <uros@kss-loka.si>
34337 * config/i386/i386.c (override_options): Revert 2004-11-24 change.
34338 * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
34339 *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
34340 logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
34341 exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
34342 nearbyintsf2): Disable for TARGET_SSE_MATH. Leave patterns enabled
34343 for TARGET_MIX_SSE_I387.
34344 (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
34345 sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
34346 atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
34347 log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
34348 floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
34349 (TARGET_SSE2 && TARGET_SSE_MATH). Leave patterns enabled for
34350 TARGET_MIX_SSE_I387.
34351 (atan2sf3, atan2df3, atan2xf3): Remove register constraints
34354 2005-01-18 Uros Bizjak <uros@kss-loka.si>
34357 * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
34358 Add movaps alternative for xmm reg->reg move.
34360 2005-01-17 Jeff Law <law@redhat.com>
34362 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
34363 at the end of the main DOM loop rather than just before DOM exits.
34365 2005-01-17 Diego Novillo <dnovillo@redhat.com>
34367 PR tree-optimization/19121
34368 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
34369 adding aliases to a name tag, also add them to the pointer's
34371 * tree-ssa-copy.c (merge_alias_info): Do not merge flow
34372 sensitive alias info at all. Only check that the two pointers
34373 have compatible pointed-to sets.
34374 * tree-ssa.c (verify_name_tags): Verify that the alias set of
34375 a pointer's type tag is a superset of the alias set of the
34376 pointer's name tag.
34378 2005-01-17 James E Wilson <wilson@specifixinc.com>
34381 * config/ia64/ia64.md (movxf): Handle general register source. Adjust
34382 comment to document why.
34384 2005-01-17 Richard Henderson <rth@redhat.com>
34386 * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
34387 sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
34388 sse2_vmsmaxv2df3_finite, sminv2df3_finite,
34389 sse2_vmsminv2df3_finite): New.
34390 (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
34391 sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
34392 Force op1 into register.
34394 2005-01-17 Kelley Cook <kcook@gcc.gnu.org>
34396 * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
34397 bubblestrap from always rebuilding build directory.
34399 2005-01-17 Ulrich Weigand <uweigand@de.ibm.com>
34401 * config/s390/s390.md ("*clc"): Remove incorrect '='.
34402 ("*cmpmem_short"): Likewise.
34404 2005-01-17 Steven Bosscher <stevenb@suse.de>
34406 * basic-block.h: Document BB_* flags.
34407 * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
34408 use an sbitmap instead.
34409 * sched-rgn.c (compute_trg_info): Likewise.
34411 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
34413 * config.gcc (mips64*-*-linux*): Set the default abi to n32. Remove
34414 redundant target_cpu_default and extra_parts lines. Use the default
34416 * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
34417 (SUBTARGET_EXTRA_SPECS): Delete.
34418 (DRIVER_SELF_SPECS): Remove architecture lines. Set the ABI directly.
34419 (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
34420 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
34421 and "n32" for -mabi=n32.
34423 2005-01-17 Ian Lance Taylor <ian@airs.com>
34426 * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
34427 fold constant variables into initial values.
34429 2005-01-17 Kazu Hirata <kazu@cs.umass.edu>
34431 * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
34433 * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
34434 through the statements backward.
34436 2005-01-17 Ian Lance Taylor <ian@airs.com>
34438 PR middle-end/13127:
34439 * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
34440 a variable set to the return value of the inlined function.
34442 2005-01-17 Mark Dettinger <dettinge@de.ibm.com>
34444 * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
34445 when modes are tieable.
34447 2005-01-17 Ranjit Mathew <rmathew@hotmail.com>
34449 * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
34450 of pthread_create to find out if threads are enabled.
34451 * gthr-posix95.h (__gthread_active_p): Likewise.
34453 2005-01-17 Paolo Bonzini <bonzini@gnu.org>
34455 * common.opt (-fnew-ra): Remove.
34457 * toplev.h (flag_new_regalloc): Remove.
34458 * Makefile.in (ra*.*): Don't mention.
34459 * passes.c (rest_of_handle_new_regalloc): Remove.
34460 (rest_of_handle_combine, rest_of_compilation): Always consider
34461 flag_new_regalloc as false.
34462 * doc/invoke.texi: Don't document -fnew-ra.
34464 2005-01-17 Paolo Bonzini <bonzini@gnu.org>
34466 * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
34467 last parameter to reg_scan.
34468 * loop.c (loop_optimize): Likewise.
34469 * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
34470 rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
34471 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
34472 rest_of_handle_gcse, rest_of_handle_loop_optimize,
34473 rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
34474 * regclass.c (reg_scan): Likewise, for the declaration.
34475 * rtl.h (reg_scan): Likewise, for the prototype.
34477 2005-01-17 Kazu Hirata <kazu@cs.umass.edu>
34479 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
34480 mark_dfs_back_edges.
34482 2005-01-16 Daniel Berlin <dberlin@dberlin.org>
34484 * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
34485 (compute_avail): Uses don't go in tmp_gen.
34487 2005-01-16 Steven Bosscher <stevenb@suse.de>
34489 * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
34490 loop to look for a free slot in a page entry.
34492 2005-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34495 * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
34496 * toplev.c (compile_file): Call process_pending_assemble_output_defs
34497 just before targetm.asm_out.file_end.
34498 * tree.h (process_pending_assemble_output_defs): Declare.
34499 * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
34501 (assemble_alias): Defer generation of assembly code for defines when
34502 TARGET_DEFERRED_OUTPUT_DEFS is true.
34503 * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
34504 * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
34505 * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
34507 2005-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34510 * pa.c (pa_scalar_mode_supported_p): New function.
34511 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
34512 * pa.h (MIN_UNITS_PER_WORD): Add comment.
34514 * pa-protos.h (prefetch_operand): Delete.
34515 (prefetch_cc_operand, prefetch_nocc_operand): New declations.
34516 * pa.c (prefetch_operand): Delete.
34517 (prefetch_cc_operand, prefetch_nocc_operand): New functions.
34518 * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
34519 (PREDICATE_CODES): Delete prefetch_operand. Add prefetch_cc_operand
34520 and prefetch_nocc_operand.
34521 * pa.md (prefetch): Rework to avoid reload problems handling short
34522 displacements when a cache control completer needs to be provided.
34523 (prefetch_32, prefetch_64): Delete.
34524 (prefetch_cc, prefetch_nocc): New patterns.
34526 2005-01-15 David Edelsohn <edelsohn@gnu.org>
34528 * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
34530 2005-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34533 * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
34534 exceeds maximum alignment for global common data.
34535 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
34536 * som.h (MAX_OFILE_ALIGNMENT): Likewise.
34538 2004-01-15 Roger Sayle <roger@eyesopen.com>
34540 * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
34542 2004-01-15 Roger Sayle <roger@eyesopen.com>
34544 * harg-reg-set.h (reg_class_names): Prototype global array.
34545 * regclass.c (reg_class_names): Declare here and initialize to
34547 (dump_regclass): Remove local declaration of reg_class_names.
34548 (regclass): Likewise.
34549 * cfg.c (dump_flow_info): Likewise.
34550 * ra-debug.c (reg_class_names): Likewise.
34551 * regrename.c (reg_class_names): Likewise.
34552 * reload.c (reg_class_names): Likewise.
34553 * reload1.c (spill_failure): Likewise.
34554 * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
34556 2005-01-15 Ulrich Weigand <uweigand@de.ibm.com>
34558 * config/s390/s390.md ("reload_outti"): Remove predicate for
34559 output operand. Abort if operand is not a MEM.
34560 ("reload_outdi", "reload_outdf"): Likewise.
34562 2005-01-15 Marc Espie <espie@openbsd.org>
34564 * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
34565 (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
34566 * config/openbsd.h: Fix C++ includes for native configurations.
34567 Add proper OS_CPP_BUILTINS. Fix libspec for recent OpenBSD.
34568 Add trampoline support.
34569 * config/i386/openbsdelf.h: New.
34571 2005-01-15 Marc Espie <espie@openbsd.org>
34573 * collect2.c (main): Explicitly parse -dynamic-linker option.
34575 2005-01-15 Jakub Jelinek <jakub@redhat.com>
34577 PR tree-optimization/19060
34578 * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
34579 Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
34580 (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
34581 and handle extract_range_from_cond returning false.
34582 * fold-const.c (fold): Optimize comparisons with min/max even for
34583 width > HOST_BITS_PER_WIDE_INT.
34585 2005-01-15 Ralf Corsepius <ralf.corsepius@rtems.org>
34587 * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
34588 * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
34589 Remove little endian multilib variants.
34590 Add mips32 multilib variant.
34592 2005-01-15 Kazu Hirata <kazu@cs.umass.edu>
34594 * explow.c (copy_all_reg, stabilize): Remove.
34595 * expr.h: Remove the corresponding prototypes.
34597 * rtlanal.c (regs_set_between_p): Remove.
34598 * rtl.h: Remove the corresponding prototype.
34600 2005-01-14 David Edelsohn <edelsohn@gnu.org>
34602 * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
34603 to rs6000_nonimmediate_operand.
34604 * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
34605 rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
34606 * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
34607 rs6000_nonimmediate_operand.
34608 * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
34609 rs6000_nonimmediate_operand.
34611 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
34613 * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
34615 2005-01-14 Aldy Hernandez <aldyh@redhat.com>
34617 * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
34619 (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
34620 (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
34622 * config/rs6000/rs6000.c (invalid_e500_subreg): New.
34623 (rs6k_nonimmediate_operand): New.
34624 (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
34626 (legitimate_lo_sum_address_p): Same.
34627 (rs6000_legitimize_address): Same.
34628 (rs6000_legitimize_reload_address): Same.
34629 (rs6000_legitimate_address): Same.
34630 (spe_build_register_parallel): Pass DF and DC modes in a DI
34633 * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
34634 to rs6k_nonimmediate_operand.
34636 * config/rs6000/spe.md ("*frob_df_di"): New.
34637 ("*frob_di_df"): New.
34638 ("*frob_di_df_2"): New.
34639 ("*mov_sidf_e500_subreg0"): New.
34640 ("*mov_sidf_e500_subreg4"): New.
34641 ("*movdf_e500_double"): Change predicate to
34642 rs6k_nonimmediate_operand.
34644 2005-01-14 Aldy Hernandez <aldyh@redhat.com>
34646 * postreload.c (move2add_note_store): Only call
34647 trunc_int_for_mode on scalar integers.
34649 2005-01-14 Steven Bosscher <stevenb@suse.de>
34651 * tree-ssa-dce.c (visited_control_parents): New sbitmap to
34652 replace BB_VISITED uses.
34653 (find_obviously_necessary_stmts): Don't clear BB_VISITED.
34654 (propagate_necessity): Check the bitmap instead of BB_VISITED.
34655 (tree_dce_done): Free visited_control_parents.
34656 (perform_tree_ssa_dce): Allocate and clear it.
34657 * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
34658 (compute_antic): Iterate from here using a DFS. Use an sbitmap
34659 instead of BB_VISITED.
34661 2005-01-14 Kazu Hirata <kazu@cs.umass.edu>
34663 * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
34664 rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
34665 Remove unused prototypes.
34667 2005-01-14 Aldy Hernandez <aldyh@redhat.com>
34669 * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
34670 64-bit register usage.
34671 (spe_func_has_64bit_regs_p): Add FIXME note.
34673 2005-01-14 Aldy Hernandez <aldyh@redhat.com>
34675 * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
34676 flag_finite_math_only with flag_unsafe_math_optimizations.
34678 2005-01-14 J. D. Johnston <jjohnst@us.ibm.com>
34680 * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
34681 end-of-stack check.
34682 (__tpf_eh_return): Copy TPF private stack area from the module
34683 boundary stack frame. Add check for when module addresses are
34684 equal, but no stub address is found.
34686 2005-01-14 Richard Earnshaw <rearnsha@arm.com>
34689 * arm.h (struct machine_function): Add call_via field.
34690 (thumb_call_via_label): Declare.
34691 * arm.c (thumb_call_via_label): New variable.
34692 (thumb_call_reg_needed): New variable.
34693 (arm_output_function_epilogue): For Thumb code, output any per-function
34694 call-indirect trampolines.
34695 (thumb_call_via_reg): New function.
34696 (arm_file_end): New function.
34697 (TARGET_ASM_FILE_END): Call arm_file_end.
34698 (aof_file_end): Likewise.
34699 * arm-protos.h (thumb_call_via_reg): Declare.
34700 * arm.md (call_reg_thumb, call_value_reg_thumb): Call
34701 thumb_call_via_reg in normal case.
34703 2005-01-14 Jakub Jelinek <jakub@redhat.com>
34705 PR middle-end/19084
34706 PR rtl-optimization/19348
34707 * recog.c (peephole2_optimize): Do global life update if some peephole
34708 decides it doesn't need at least one of its inputs and that change
34709 influences liveness at the start of the basic block.
34711 * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
34712 arguments instead of 1.
34714 2005-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
34716 PR middle-end/18820
34717 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
34718 zero for nested functions needing a static chain or functions
34719 with a non-constant address.
34721 2005-01-13 Roger Sayle <roger@eyesopen.com>
34723 * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
34724 (and (sign_extend X) C) into (zero_extend (and X C)).
34726 2005-01-13 David O'Brien <obrien@FreeBSD.org>
34728 * config/freebsd-spec.h: Make KSE pthread lib logic the default.
34730 2005-01-13 Richard Henderson <rth@redhat.com>
34735 * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
34736 bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
34737 not just TARGET_SSE.
34738 (cmpfp_i_387): Rename from cmpfp_i. Move after sse patterns.
34739 (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
34740 (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
34741 (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
34742 (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
34743 (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
34744 (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
34745 fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
34746 (movdicc_c_rex64): Rename with '*'.
34747 (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
34748 (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
34749 (movsfcc_1_387): Rename from movsfcc_1.
34750 (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
34751 (movdfcc_1, movdfcc_1_rex64): Add check for 387.
34752 (sminsf3, smaxsf3, smindf3, smaxdf3): New.
34753 (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
34754 mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
34755 maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
34756 sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
34757 sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
34758 sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
34759 sse_movdfcc_const0_4): Remove.
34760 * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
34761 recognize min/max early. Update for changed sse cmove patterns.
34762 (ix86_split_sse_movcc): New.
34763 * config/i386/i386-protos.h: Update.
34765 2005-01-13 Steven Bosscher <stevenb@suse.de>
34767 * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
34768 (fix_stmt_v_may_defs): Likewise.
34770 2005-01-13 Richard Henderson <rth@redhat.com>
34772 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
34773 for converting the mask.
34775 2005-01-13 David Edelsohn <edelsohn@gnu.org>
34777 * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
34780 2005-01-13 Richard Henderson <rth@redhat.com>
34782 * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
34783 IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
34784 IX86_BUILTIN_MOVDQ2Q): Remove.
34785 (IX86_BUILTIN_VEC_EXT_V4SI): New.
34786 (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
34787 (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
34789 * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
34790 (sse2_pextrw): Fix immediate constraint.
34791 (sse2_loadq, sse2_loadq_rex64): Remove.
34792 * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
34793 Use __builtin_ia32_vec_ext_<size>.
34794 (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
34796 2005-01-13 Aldy Hernandez <aldyh@redhat.com>
34798 * function.c (assign_parm_setup_block): Look inside original
34799 entry_parm when inspecting PARALLEL.
34801 2005-01-13 Ralf Corsepius <ralf.corsepius@rtems.org>
34802 Joel Sherrill <joel@oarcorp.com>
34805 * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
34806 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
34807 rtems_gxx_recursive_mutex_init.
34808 (__gthread_recursive_mutex_lock): New function.
34809 (__gthread_recursive_mutex_trylock): Likewise.
34810 (__gthread_recursive_mutex_unlock): Likewise.
34812 2005-01-13 Ralf Corsepius <ralf.corsepius@rtems.org>
34814 * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
34816 2005-01-13 Jan Beulich <jbeulich@novell.com>
34818 * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
34819 (ashrti3_internal): Indicate output is early clobber. Generate result
34820 into output rather than first input. Use move for low word of output
34821 if shift count is exactly 64.
34822 (lshrti3_internal): Likewise.
34824 2005-01-13 Hans-Peter Nilsson <hp@bitrange.com>
34828 * reload1.c (delete_output_reload): Don't delete an output reload
34829 if the pseudo lives longer than a single basic block. Adjust and
34830 improve wording of comment.
34832 2005-01-12 Andrew Pinski <pinskia@physics.uc.edu>
34835 * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
34836 of TYPE_SIZE where we mean the number of bytes.
34838 2005-01-12 Aldy Hernandez <aldyh@redhat.com>
34840 * function.c (assign_parm_setup_block): Relax condition on
34841 multi-register optimization.
34843 2005-01-12 Nick Clifton <nickc@redhat.com>
34845 * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
34846 an "in_delay_slot" attribute of "no" to prevent them being used in
34847 delay slots. This is forbidden because they might generate
34850 2005-01-12 Alan Modra <amodra@bigpond.net.au>
34853 * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
34854 with r->Y and Y->r.
34856 2005-01-12 Nick Clifton <nickc@redhat.com>
34858 * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
34859 passed on to GAS) but do not define, as GAS no longer supports or
34860 needs the -m2000 option.
34862 2005-01-11 Roger Sayle <roger@eyesopen.com>
34864 * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
34865 type as args of unprototyped builtins aren't automatically promoted.
34866 (fold_builtin_abs): Likewise.
34868 2005-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
34870 * Makefile.in: Set a `build-warn' variable.
34872 2005-01-11 Zdenek Dvorak <dvorakz@suse.cz>
34874 PR tree-optimization/17949
34875 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
34876 (find_interesting_uses_address): Use it.
34878 2005-01-11 Aldy Hernandez <aldyh@redhat.com>
34880 * regrename.c (kill_value): Handle subreg's that won't simplify.
34882 2005-01-11 Richard Henderson <rth@redhat.com>
34885 * config/i386/i386.h (enum ix86_builtins): Move ...
34886 * config/i386/i386.c: ... here.
34887 (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
34888 IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
34889 IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
34890 IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
34891 IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD, IX86_BUILTIN_STOREHPD,
34892 IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
34893 IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
34894 IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
34895 IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
34896 IX86_BUILTIN_LOADDDUP): Remove.
34897 (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
34898 IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
34899 IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
34900 IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
34901 IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
34902 (ix86_init_builtins): Make static.
34903 (ix86_init_mmx_sse_builtins): Update for changed builtins.
34904 (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
34905 if all the modes match. Otherwise, fake it.
34906 (get_element_number, ix86_expand_vec_init_builtin,
34907 ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
34908 (ix86_expand_builtin): Make static. Update for changed builtins.
34909 (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
34910 operand instead of sse2_loadsd. Cast sse1 fallback to V4SFmode.
34911 (ix86_expand_vector_init_duplicate): New.
34912 (ix86_expand_vector_init_low_nonzero): New.
34913 (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
34914 Split out from ix86_expand_vector_init; handle integer modes.
34915 (ix86_expand_vector_init): Use them.
34916 (ix86_expand_vector_set, ix86_expand_vector_extract): New.
34917 * config/i386/i386-protos.h: Update.
34918 * config/i386/predicates.md (reg_or_0_operand): New.
34919 * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
34920 (movv2sf_internal): Likewise. And a splitter to match them all.
34921 (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
34922 vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
34923 vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
34924 vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
34925 (mmx_pinsrw): Fix operand ordering.
34926 * config/i386/sse.md (movv4sf splitter): Use direct pattern,
34927 rather than sse_loadss expander.
34928 (movv2df splitter): Similarly.
34929 (sse_loadss, sse_loadlss): Remove.
34930 (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
34931 (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
34932 (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
34933 (sse3_movddup): Rename with '*'.
34934 (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
34935 (sse2_loadsd): Remove.
34936 (vec_dupv2df_sse3): Rename from sse3_loadddup.
34937 (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
34938 (sse2_pinsrw): Fix argument ordering.
34939 (sse2_loadld, sse2_loadq): Add sse1 alternatives.
34940 (sse2_stored): Remove 'r' destination.
34941 (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
34942 vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
34943 vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
34944 vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
34945 vec_extractv16qi, vec_initv16qi): New.
34947 * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
34948 (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x,
34949 _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
34951 (_mm_load_pd, _mm_store_pd): Use plain dereference.
34952 (_mm_load_si128, _mm_store_si128): Likewise.
34953 (_mm_load1_pd): Use _mm_set1_pd.
34954 (_mm_load_sd): Use _mm_set_sd.
34955 (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
34956 (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
34957 (_mm_set_epi64): Use _mm_set_epi64x.
34958 (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
34959 _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
34960 _mm_setr_epi8): Use _mm_set_foo form.
34961 (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
34962 (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
34963 (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
34964 (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
34965 * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
34966 (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
34967 (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
34968 (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
34969 (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
34970 * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
34971 (_mm_movedup_pd): Use _mm_shuffle_pd.
34972 * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
34973 _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
34974 (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
34975 _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
34976 Use _mm_setzero_ps.
34977 (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
34978 (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
34979 (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
34980 (_mm_store_ps): Use raw dereference.
34981 (_mm_store1_ps): Use _mm_storeu_ps.
34982 (_mm_storer_ps): Use _mm_store_ps.
34983 (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
34984 (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
34986 2005-01-11 Stan Shebs <shebs@apple.com>
34988 * config/rs6000/rs6000.c (machopic_output_stub): Issue
34989 ldu instead of lwzu if 64-bit -mdynamic-no-pic.
34991 2005-01-11 Andrew Pinski <pinskia@physics.uc.edu>
34994 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
34995 Skip all DECLs except for FIELD_DECLs.
34997 2005-01-11 Andreas Krebbel <krebbel1@de.ibm.com>
34999 * config/s390/s390.c (override_options): Return error if
35000 -mbackchain, -mpacked-stack and -mhard-float are used together.
35001 (s390_va_start): Remove the backchain && packed-stack special case.
35002 (s390_gimplify_va_arg): Likewise.
35003 * doc/invoke.texi: Remove the ABI incompatibility note.
35005 2005-01-11 Andreas Krebbel <krebbel1@de.ibm.com>
35007 * config/s390/s390.c (struct s390_frame_layout): Remove
35009 (s390_frame_info, s390_emit_prologue): Replace occurrences of
35010 save_backchain_p with TARGET_BACKCHAIN.
35012 2005-01-11 Alan Modra <amodra@bigpond.net.au>
35015 * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
35016 * expr.h (struct locate_and_pad_arg_data): Add "boundary".
35017 * function.c (locate_and_pad_parm): Set new field.
35018 (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
35019 Tweak where_pad test to include "none". Always set mem align for
35021 (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
35022 not sufficient for type.
35023 (assign_parm_setup_block): If stack_parm is zero on entry, always
35024 make a new stack local. Block move old stack parm if necessary
35025 to new aligned stack local.
35026 (assign_parm_setup_stack): Use a block move to handle
35027 potentially misaligned entry_parm.
35028 (assign_parms_unsplit_complex): Specify required alignment when
35029 creating stack local.
35030 * calls.c (compute_argument_addresses): Override alignment of stack
35031 arg calculated from its type with the alignment given by
35032 FUNCTION_ARG_BOUNDARY.
35033 (store_one_arg): Likewise.
35035 2005-01-11 Jan Beulich <jbeulich@novell.com>
35037 * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
35038 Change respective itanium_class attribute to ialu.
35039 (shladdp4_internal): New.
35040 * config/ia64/predicates.md (shladd_log2_operand): New.
35042 2005-01-11 Richard Henderson <rth@redhat.com>
35044 * expr.c (store_constructor): Use rtvec_alloc instead of
35045 alloca+gen_rtvec_v, and an incorrect number passed to alloca.
35047 2005-01-11 Kazu Hirata <kazu@cs.umass.edu>
35049 * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
35051 2005-01-11 Alan Modra <amodra@bigpond.net.au>
35053 * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
35054 * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
35055 (TARGET_RWRELOC): Define.
35056 (ia64_rwreloc_section_type_flags): Delete.
35057 (ia64_section_type_flags): New function.
35058 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
35059 (TARGET_RWRELOC): Define.
35061 2005-01-10 David Mosberger <davidm@hpl.hp.com>
35064 * config/ia64/ia64.c (process_set): For alloc insn, only call
35065 process_epilogue is !frame_pointer_needed.
35067 2005-01-10 Roger Sayle <roger@eyesopen.com>
35070 * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
35071 unary operator and can't be treated as a binary/comparison operator.
35073 2005-01-10 Richard Henderson <rth@redhat.com>
35075 * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
35076 (ix86_return_in_memory): Likewise.
35077 (function_arg_advance): Likewise. Mirror structure in function_arg
35078 for choosing register to advance.
35080 2005-01-10 Kazu Hirata <kazu@cs.umass.edu>
35082 * tree-vectorizer.c, tree.def: Fix comment typos.
35084 2005-01-10 Mark Dettinger <dettinge@de.ibm.com>
35086 * config/s390/s390.c (struct processor_costs): 4 new fields:
35087 ddbr, ddr, debr, der.
35088 (s390_rtx_costs): More precise handling of divide instructions.
35090 2005-01-10 David Edelsohn <edelsohn@gnu.org>
35092 * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
35094 2005-01-10 Jan Beulich <jbeulich@novell.com>
35096 * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
35097 names resulting from -ffunction-sections/-fdata-sections and linkonce
35099 * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
35100 based on the section name. Rearrange the section name comparison logic
35101 slightly so that each section name is compared against at most once.
35103 2005-01-10 Ben Elliston <bje@au.ibm.com>
35105 * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
35106 targets for which -fPIC reduces limitations on the GOT size.
35108 2005-01-09 Falk Hueffner <falk@debian.org>
35110 * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
35113 2005-01-09 David Edelsohn <edelsohn@gnu.org>
35116 * collect2.c (main): Set aixrtl_flag for -brtl option.
35117 (resolve_lib_name): Search for .so file extension before .a
35118 if aixrtl_flag set.
35120 2005-01-09 Dorit Naishlos <dorit@il.ibm.com>
35122 * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
35123 (vect_analyze_data_refs_alignment): Add dump prints.
35125 2005-01-09 Ira Rosen <irar@il.ibm.com>
35127 * tree-vectorizer.c (vect_analyze_offset_expr): Use
35128 expr_invariant_in_loop_p.
35129 Initialize outputs first thing in the function.
35130 (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
35131 (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
35132 (vect_analyze_pointer_ref_access): Check that the initial condition of
35133 the access function is loop invariant.
35135 2005-01-09 Richard Henderson <rth@redhat.com>
35137 * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
35138 (ix86_expand_builtin): Likewise. Frob MASKMOVQ wrt the input mem
35139 just like MASKMOVDQU. Return plain zero for MMX_ZERO.
35140 * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
35141 mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
35142 movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
35143 movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
35144 sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
35145 ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
35146 mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
35147 mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
35148 sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
35149 mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
35150 mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
35151 gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
35152 ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
35153 mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
35154 mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
35155 mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
35156 eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
35157 pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
35158 pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
35159 pswapdv2sf2): Move to mmx.md; rename as necessary with leading
35161 (mmx_clrdi, pavgusb): Remove.
35162 (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
35163 with leading sse_ prefix.
35164 * config/i386/sse.md: Receive them.
35165 * config/i386/mmx.md: New file.
35166 (MMXMODE12, MMXMODE24, mmxvecsize): New.
35167 (subrv2sf3): Turn into expander for normal subtraction.
35168 (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
35169 mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
35170 mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
35171 mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
35172 commutative; use ix86_binary_operator_ok.
35173 (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
35174 mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
35175 mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
35176 mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
35177 mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
35178 Macroize from existing patterns; use ix86_binary_operator_ok.
35179 (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
35180 (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
35181 mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise. Model
35182 with vec_select+vec_concat.
35183 (mmx_pshufw, mmx_pshufw_1): Likewise.
35184 (mmx_uavgv8qi3): Merge pavgusb. Model correcty.
35185 (mmx_uavgv4hi3): Model correctly.
35186 * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
35187 _mm_xor_si64): Remove casts.
35189 2005-01-09 Zdenek Dvorak <dvorakz@suse.cz>
35191 PR tree-optimization/19224
35192 * tree-scalar-evolution.c (get_instantiated_value,
35193 set_instantiated_value): New functions.
35194 (instantiate_parameters_1): Cache the results.
35195 (instantiate_parameters, resolve_mixers): Initialize and free
35198 2005-01-08 David Edelsohn <edelsohn@gnu.org>
35200 * config/i386/i386.md (addhi_4): Correct reference in comment.
35203 2005-01-08 Richard Henderson <rth@redhat.com>
35205 * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
35206 (_mm_cvtsi128_si64x): Likewise.
35207 (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
35208 _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
35209 the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
35210 * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
35211 * config/i386/i386-protos.h: Update.
35212 * config/i386/i386.c (print_operand): Add 'H'.
35213 (ix86_fixup_binary_operands): Split out from ...
35214 (ix86_expand_binary_operator): ... here.
35215 (ix86_fixup_binary_operands_no_copy): New.
35216 (ix86_expand_fp_absneg_operator): Handle vector mode results.
35217 (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
35218 (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
35219 (safe_vector_operand): Use CONST0_RTX.
35220 (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
35221 (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
35222 CODE_FOR_sse2_maskmovdqu. Special case SSE version of MASKMOVDQU
35223 expansion. Update names for sse{,2,3}_ prefixes. Remove *maskncmp*
35225 * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
35226 (IX86_BUILTIN_CMPNGESS): New.
35227 * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
35228 (attr type): Add sselog1.
35229 (attr unit, attr memory): Handle it.
35230 (movti, movti_internal, movti_rex64): Move near other integer moves.
35231 (movtf, movtf_internal): Move near other fp moves.
35232 (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
35233 vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
35234 movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
35235 movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
35236 sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
35237 sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
35238 sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
35239 mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
35240 rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
35241 sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
35242 sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
35243 sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
35244 vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
35245 smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
35246 cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
35247 cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
35248 vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
35249 vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
35250 sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
35251 sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
35252 cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
35253 cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
35254 cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
35255 cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
35256 ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
35257 subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
35258 smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
35259 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
35260 sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
35261 sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
35262 gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
35263 ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
35264 ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
35265 sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
35266 sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
35267 sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
35268 sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
35269 sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
35270 sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
35271 sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
35272 mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
35273 addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
35274 movsldup, lddqu, loadddup, movddup): Move to sse.md. Any with
35275 non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
35277 (SSEPUSH, push<SSEPUSH>): Remove.
35278 (MMXPUSH, push<MMXPUSH>): Remove.
35279 (sse_movaps, sse_movaps_1, sse_movups): Remove.
35280 (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
35281 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
35282 (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
35283 (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
35284 (maskncmpv2df3, vmmaskncmpv2df3): Remove.
35285 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
35286 (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
35287 * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
35288 (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
35289 * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
35290 (ppro_sse_log_V4SF_load): Similarly. Handle sselog1.
35291 (ppro_sse_log_V4SF): Handle sselog1.
35292 * config/i386/predicates.md (const_0_to_1_operand): New.
35293 (const_0_to_255_mul_8_operand): New.
35294 (const_1_to_31_operand): Rename from const_int_1_31_operand.
35295 (const_2_to_3_operand, const_4_to_7_operand): New.
35296 * config/i386/sse.md: New file.
35297 (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
35298 (sse_movups): Rename from sse_movups_1.
35299 (sse_loadlss): Rename from sse_loadss_1.
35300 (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
35302 (negv4sf2): Use ix86_expand_fp_absneg_operator.
35303 (absv4sf2, negv2df, absv2df): New.
35304 (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
35305 (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
35306 iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
35307 smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
35308 umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
35309 (sse3_addsubv4sf3): Model correctly.
35310 sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
35311 sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
35312 (sse_movhlps): Model with vec_select+vec_concat.
35313 (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
35314 sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
35315 sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
35316 sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
35317 sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
35318 sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
35319 sse2_pshufhw_1): Likewise.
35320 (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
35321 (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
35322 sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
35323 ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
35324 sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
35325 ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
35326 (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
35327 sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
35328 mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
35329 sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
35330 sminv8hi3): Mark commutative
35331 operands. Use ix86_binary_operator_ok.
35332 (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
35333 sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
35334 sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
35335 sse2_punpcklqdq): Allow operand2 in memory.
35336 (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
35337 sse2_movsd): Add memory alternatives.
35338 (sse_storelps): Turn expander into an insn; split after reload.
35339 (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
35340 (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
35342 2005-01-08 Eric Botcazou <ebotcazou@libertysurf.fr>
35344 * configure.ac (DWARF-2 debug_line): Use objdump.
35345 * configure: Regenerate.
35347 2005-01-08 Jeff Law <law@redhat.com>
35348 Diego Novillo <dnovillo@redhat.com>
35350 PR tree-optimization/18241
35351 * tree-nrv.c (tree_nrv): Ignore volatile return values.
35352 * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
35353 statements with volatile operands.
35354 * tree-ssa-operands.c (add_stmt_operand): Do add volatile
35355 operands after marking a statement with has_volatile_ops.
35357 2005-01-08 Roger Sayle <roger@eyesopen.com>
35359 * tree.c (int_fits_type_p): Always honor integer constant
35360 TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
35362 2005-01-08 Roger Sayle <roger@eyesopen.com>
35364 * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
35365 the latent bug in rtl_delete_block has been resolved.
35367 2005-01-08 Richard Sandiford <rsandifo@redhat.com>
35369 * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
35370 (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
35372 2005-01-08 Richard Sandiford <rsandifo@redhat.com>
35374 * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
35375 library as @multilib_dir@/$(SHLIB_SONAME).
35377 2005-01-07 Eric Botcazou <ebotcazou@libertysurf.fr>
35379 * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
35380 * configure: Regenerate.
35382 2005-01-07 Jakub Jelinek <jakub@redhat.com>
35384 * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
35387 2005-01-07 David Edelsohn <edelsohn@gnu.org>
35390 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
35391 Convert non-word aligned offset address using ld/std into
35394 2005-01-07 Richard Henderson <rth@redhat.com>
35396 * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
35398 2005-01-07 Richard SAndiford <rsandifo@redhat.com>
35400 * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
35402 2005-01-07 Jakub Jelinek <jakub@redhat.com>
35404 PR tree-optimization/19283
35405 * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
35406 is not shorter than the original type.
35408 PR rtl-optimization/19012
35409 * config/i386/i386.md (addqi_1_slp): Set memory attribute.
35411 PR rtl-optimization/18861
35412 * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
35413 (FULL_STATE): Define.
35414 (mark_tablejump_edge): New function.
35415 (purge_dead_tablejump_edges): New function.
35416 (find_bb_boundaries): Use it.
35418 PR tree-optimization/18828
35419 * builtins.c (expand_builtin_next_arg): Remove argument and all
35420 the argument checking.
35421 (expand_builtin): Adjust caller.
35422 (expand_builtin_va_start): Likewise. Remove error for too many
35424 (fold_builtin_next_arg): Issue error for too many arguments.
35425 After checking arguments, replace them with magic arguments that
35426 prevent further checking of the args.
35428 2005-01-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35430 * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
35432 2005-01-06 Roger Sayle <roger@eyesopen.com>
35435 * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
35436 and %{.S:...} (and their negative variants) to test whether the
35437 input file is assembler or pre-processed-assembler independent of
35438 the actual filename extension.
35440 2005-01-06 Roger Sayle <roger@eyesopen.com>
35442 * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
35443 of sign or zero extended values.
35445 2005-01-06 Geoffrey Keating <geoffk@apple.com>
35447 * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
35448 for IBM long double format correctly.
35450 2005-01-06 Daniel Berlin <dberlin@dberlin.org>
35452 Fix PR tree-optimization/18792
35454 * tree-data-ref.c (build_classic_dist_vector): Change first_loop
35455 to first_loop_depth, and use loop depth instead of loop number.
35456 (build_classic_dir_vector): Ditto.
35457 (compute_data_dependences_for_loop): Use depth, not loop number.
35458 * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
35459 number. Pass in loops, instead of loop numbers.
35460 (gather_interchange_stats): Ditto.
35461 (linear_transform_loops): Ditto.
35463 2005-01-06 Richard Sandiford <rsandifo@redhat.com>
35466 * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
35467 biv_fits_mode_p, extension_within_bounds_p): New functions.
35468 (check_ext_dependent_givs): Use them.
35470 2005-01-06 Roger Sayle <roger@eyesopen.com>
35472 * cfgrtl.c (rtl_delete_block): A basic block may be followed by
35473 more than one barrier, in which case we should delete them all.
35475 2005-01-06 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
35477 * gcc.c (process_command): Change year in 'gcc --version' to 2005.
35479 2005-01-05 Daniel Berlin <dberlin@dberlin.org>
35481 Fix PR middle-end/19286
35483 * dwarf2out.c (gen_subprogram_die): If we've already tried to
35484 output this subprogram, simply ignore this attempt to do it again.
35485 (add_abstract_origin_attribute): Don't abort trying to add the abstract
35486 origin attribute if it's not possible.
35487 (gen_block_die): Don't ignore subblocks of "unused" blocks.
35488 (decls_for_scope): Ditto.
35489 * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
35490 (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
35492 2005-01-05 Richard Henderson <rth@redhat.com>
35495 * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
35496 (bdesc_2arg): Use it.
35497 (ix86_expand_binop_builtin): Force operands into registers
35499 (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
35500 ix86_expand_sse_compare, ix86_expand_sse_comi,
35501 ix86_expand_builtin): Likewise.
35503 2005-01-05 Richard Henderson <rth@redhat.com>
35505 * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
35507 * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
35508 (mulv4hi3): Set itanium_class mmmul.
35509 (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
35510 (fpack): Rename from fpack_sfsf.
35512 2005-01-05 Richard Henderson <rth@redhat.com>
35515 * reload1.c (do_input_reload): Restrict the optimization deleteing
35516 a previous output reload to RELOAD_FOR_INPUT.
35518 2005-01-05 Steven Bosscher <stevenb@suse.de>
35520 * combine.c (expand_compound_operation) <ZERO_EXTRACT>: Add
35521 comment that we fall through after case.
35522 (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
35523 (distribute_links): Likewise.
35524 * cse.c (cse_insn): Likewise.
35525 * cselib.c (cselib_invalidate_mem): Likewise.
35526 * df.c: Update comments at the top of the file.
35527 (read_modify_subreg_p): Update comments here too.
35528 (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
35529 * flow.c (mark_set_1): Likewise.
35530 (mark_used_regs): Likewise.
35531 * gcse.c (mems_conflict_for_gcse_p): Likewise.
35532 (canon_list_insert): Likewise.
35533 (mark_set): Likewise.
35534 (try_replace_reg): Likewise.
35535 (store_killed_in_insn): Likewise.
35536 * loop.c (count_one_set): Likewise.
35537 (basic_induction_var): Likewise.
35538 * postreload-gcse.c (find_mem_conflicts): Likewise.
35539 * postreload.c (reload_combine_note_store): Likewise.
35540 (move2add_note_store): Likewise.
35541 * reload.c (find_equiv_reg): Likewise.
35542 (mark_referenced_resources): Likewise.
35543 * rtlanal.c (set_noop_p): Likewise.
35544 (note_stores): Likewise.
35545 (note_uses): Likewise.
35546 * sched-deps.c (sched_analyze_1): Likewise.
35547 * sched-rgn.c (check_live_1): Likewise.
35548 (update_live_1): Likewise.
35549 * config/i860/i860.c: Likewise.
35551 * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
35553 (ZERO_EXTRACT): Mention that this one can be an lvalue.
35555 * doc/rtl.texi: Update documentation for bit-fields and SET.
35557 2005-01-05 Roger Sayle <roger@eyesopen.com>
35559 * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
35561 2005-01-05 Jan Hubicka <jh@suse.cz>
35562 Richard Henderson <rth@redhat.com>
35565 * config/i386/i386.c (ix86_expand_move): Handle tls symbols
35568 2005-01-05 Richard Henderson <rth@redhat.com>
35571 * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
35572 (sse_shufps): Change operand 3 to const_int_operand.
35573 (sse2_storelps): Fix typo in template.
35574 (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
35575 * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
35576 (ix86_expand_builtin): Likewise.
35578 2005-01-05 Julian Brown <julian@codesourcery.com>
35580 * config/arm/arm.c (arm_return_in_memory): Treat complex types
35581 as aggregates for AAPCS ABIs.
35583 2005-01-05 Stan Shebs <shebs@apple.com>
35585 * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
35586 Mach-O getters if ppc64.
35587 * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
35589 * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
35590 signed four-byte field for global code case.
35591 (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
35593 2005-01-05 Roger Sayle <roger@eyesopen.com>
35595 PR middle-end/19100
35596 * c-common.c: Include real.h.
35597 (c_common_truthvalue_conversion): Avoid destructively modifying expr.
35598 Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
35599 Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
35600 * Makefile.in (c-common.o): Update dependencies.
35602 2005-01-05 Joseph S. Myers <joseph@codesourcery.com>
35604 * c-parse.in (asm_string): Add trailing semicolon.
35606 2005-01-05 Joseph S. Myers <joseph@codesourcery.com>
35608 * c-parse.in (asm_string): New. Don't allow wide strings in
35610 (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
35611 asm_string instead of STRING.
35613 2005-01-05 Joseph S. Myers <joseph@codesourcery.com>
35615 * c-typeck.c (constructor_no_implicit): Remove.
35616 (set_designator, process_init_element): Don't check
35617 constructor_no_implicit.
35619 2005-01-05 J"orn Rennecke <joern.rennecke@st.com>
35620 Kaz Kojima <kkojima@gcc.gnu.org>
35623 * lcm.c (create_pre_exit): New.
35624 (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
35625 ENTRY_EXIT_EXTRA to 3. Use create_pre_exit.
35627 2004-01-05 Richard Earnshaw <rearnsha@arm.com>
35629 * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
35630 -msoft-float in target_float_switch.
35631 * arm.c (arm_override_options): Fix processing of target_float_switch.
35633 2004-01-05 Richard Earnshaw <rearnsha@arm.com>
35635 * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
35638 2004-01-05 Uros Bizjak <uros@kss-loka.si>
35640 * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
35641 Replace i387 with 'i386 compiler' in -mfpmath=sse option.
35643 2005-01-04 Roger Sayle <roger@eyesopen.com>
35645 * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
35646 if deleting the then-block allows the test-block to fallthru to the
35649 2005-01-04 Andrew Pinski <pinskia@physics.uc.edu>
35652 * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
35653 after the full declaration if the are in two different TUs.
35655 2005-01-04 Richard Henderson <rth@redhat.com>
35658 * tree-sra.c (generate_one_element_init): Just
35659 call gimplify_and_add.
35660 (generate_element_init): Record the
35661 new referenced variables and mark them for renaming
35662 and split out to ...
35663 (generate_element_init_1): This.
35664 (scalarize_init): Don't call push_gimplify_context/
35665 pop_gimplify_context.
35667 2005-01-04 Geoffrey Keating <geoffk@apple.com>
35669 * toplev.c (get_src_pwd): Handle failure of getpwd().
35671 2005-01-04 Roger Sayle <roger@eyesopen.com>
35673 * fold-const.c (fold_single_bit_test): Delete unreachable handling
35675 (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
35676 all the cases handled by it are inverted by invert_truthvalue.
35678 2005-01-04 Eric Botcazou <ebotcazou@libertysurf.fr>
35680 * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
35681 (save_register_windowsi): Likewise.
35683 2005-01-04 Richard Henderson <rth@redhat.com>
35685 * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
35687 2005-01-04 Uros Bizjak <uros@kss-loka.si>
35689 PR middle-end/17767
35690 * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
35691 any simplifications of vector mode comparison operators.
35692 * simplify-rtx.c (simplify_relational_operation): Fix variable name.
35694 2005-01-04 Paolo Bonzini <bonzini@gnu.org>
35695 Devang Patel <dpatel@apple.com>
35697 PR tree-optimization/18308
35698 * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
35699 the operands before creating a new expression.
35700 * dojump.c (do_jump): Make drop_through_label available
35701 for all cases. Add expansion of COND_EXPR.
35703 2005-01-04 Ira Rosen <irar@il.ibm.com>
35705 * tree-vectorizer.c (vect_analyze_offset_expr): Test for
35706 INTEGER_CST instead of TREE_CONSTANT.
35707 (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
35708 instead of TREE_CONSTANT.
35709 (vect_analyze_pointer_ref_access): Test for INTEGER_CST
35710 instead of TREE_CONSTANT.
35712 2005-01-04 Eric Botcazou <ebotcazou@libertysurf.fr>
35714 * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
35716 2005-01-04 Uros Bizjak <uros@kss-loka.si>
35719 * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
35720 (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
35722 2005-01-03 Richard Henderson <rth@redhat.com>
35724 * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
35725 (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
35726 fold_convert_const_real_from_real): Split out from ...
35727 (fold_convert_const): ... here.
35729 2005-01-03 Richard Henderson <rth@redhat.com>
35732 * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
35733 (mov<MMXMODEI>_internal): Likewise.
35734 (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
35735 Add V2SF case; use it for SSE1; don't use TI.
35736 (movdf_integer): Likewise.
35737 (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
35739 2005-01-03 Ira Rosen <irar@il.ibm.com>
35741 * tree-vectorizer.c (vect_strip_conversions): New function.
35742 (vect_analyze_offset_expr): Call vect_strip_conversions. Add
35743 check for binary class.
35745 2005-01-03 Daniel Berlin <dberlin@dberlin.org>
35749 * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
35751 * gimple-low.c (mark_blocks_with_used_vars): New function.
35752 (mark_blocks_with_used_subblocks): Ditto.
35753 (mark_used_blocks): Ditto.
35754 (pass_mark_used_blocks): New pass.
35755 * tree-inline.c: Include debug.h.
35756 (expand_call_inline): Call outlining_inline_function here.
35757 * tree-optimize.c (init_tree_optimization_passes): Add
35758 pass_mark_used_blocks.
35759 * tree-pass.h (pass_mark_used_blocks): New.
35760 * Makefile.in (tree-inline.o): Add debug.h dependency.
35762 2005-01-03 Geoffrey Keating <geoffk@apple.com>
35764 * config/darwin.c (darwin_handle_weak_import_attribute): Permit
35765 VAR_DECLs to have weak_import attribute.
35767 * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
35770 2004-01-03 Steven Bosscher <stevenb@suse.de>
35772 * passes.c (rest_of_compilation): Don't run regmove if only
35773 flag_expensive_optimizations, require flag_regmove instead.
35775 2005-01-03 Eric Botcazou <ebotcazou@libertysurf.fr>
35777 * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
35779 * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
35780 * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
35781 * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
35782 * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
35784 2005-01-03 Richard Henderson <rth@redhat.com>
35786 * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
35787 (ia64_const_ok_for_letter_p): New.
35788 (ia64_const_double_ok_for_letter_p): New.
35789 (ia64_extra_constraint): New.
35790 (ia64_expand_vecint_compare): New.
35791 (ia64_expand_vcondu_v2si): New.
35792 (ia64_expand_vecint_cmov): New.
35793 (ia64_expand_vecint_minmax): New.
35794 (ia64_print_operand): Add 'v'.
35795 (ia64_preferred_reload_class): New.
35796 (ia64_vector_mode_supported_p): New.
35797 * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
35798 (PREFERRED_RELOAD_CLASS): Move to function.
35799 (CONST_OK_FOR_LETTER_P): Move to function.
35800 (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
35801 (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
35802 (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
35803 (EXTRA_CONSTRAINT): Move to function.
35804 * config/ia64/ia64.md: Include vect.md.
35805 (itanium_class): Add mmalua.
35807 * config/ia64/itanium1.md (1_mmalua): New. Add it to bypasses.
35809 * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
35810 * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
35812 (const_int_2bit_operand): New.
35813 (fr_reg_or_0_operand): New.
35814 * config/ia64/ia64-modes.def: Add vector modes.
35815 * config/ia64/ia64-protos.h: Update.
35816 * config/ia64/vect.md: New file.
35818 2005-01-03 Richard Henderson <rth@redhat.com>
35820 * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
35822 2005-01-03 Uros Bizjak <uros@kss-loka.si>
35825 * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
35827 (log1pdf2): Change mode of operands[0,1] to DFmode.
35829 2005-01-03 Eric Botcazou <ebotcazou@libertysurf.fr>
35831 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
35832 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
35833 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
35834 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
35835 SPARC_RELAXED_ORDERING.
35837 2005-01-03 Richard Henderson <rth@redhat.com>
35838 Uros Bizjak <uros@kss-loka.si>
35841 * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
35842 IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
35843 * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
35845 (*mmx_pinsrw, *sse2_pinsrw): New patterns.
35846 * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
35847 const_pow2_1_to_128_operand): New predicates.
35849 2005-01-02 Greg McGary <greg@mcgary.org>
35851 * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
35853 (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
35854 object. [ptr_type]: Remove unused variable.
35855 Remember nearest addressable array-element or record-component
35856 when checking bitfield components. Tolerate empty BIND_EXPR.
35858 2005-01-01 Richard Henderson <rth@redhat.com>
35860 * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
35861 that don't narrow the value. Fail for other conversions.
35863 2005-01-01 Richard Henderson <rth@redhat.com>
35866 * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
35867 * c-lang.c (finish_file): Don't do it here.
35868 * objc/objc-act.c (objc_finish_file): Likewise.
35870 * cgraph.c (decl_assembler_name_equal): New.
35871 (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
35872 (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
35873 * cgraph.h (struct cgraph_varpool_node): Add next.
35874 (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
35875 * varasm.c (assemble_alias): Mark the target as needed.
35877 2005-01-01 Andrew Pinski <pinskia@physics.uc.edu>
35879 PR middle-end/19221
35880 * function.c (get_arg_pointer_save_area): Use entry_of_function
35881 instead of get_insns.
35883 2005-01-01 Roger Sayle <roger@eyesopen.com>
35884 Andrew Pinski <pinskia@physics.uc.edu>
35885 James E. Wilson <wilson@specifixinc.com>
35887 PR rtl-optimization/12092
35888 * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
35891 2005-01-01 Roger Sayle <roger@eyesopen.com>
35892 Olivier Hainque <hainque@act-europe.fr>
35894 * tree.c (int_fits_type_p): A narrower type always fits in a
35895 wider one, except for negative values into unsigned types.
35897 2005-01-01 Roger Sayle <roger@eyesopen.com>
35899 * tree.c (int_fits_type_p): Compare the result of force_fit_type
35900 with the original constant rather than require TREE_OVERFLOW.
35902 2005-01-01 Steven Bosscher <stevenb@suse.de>
35904 PR middle-end/17544
35905 * c-decl.c (finish_function): If compiling C99, annotate the
35906 compiler generated return with the current file name and line 0.
35907 * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
35908 the source line is greater than 0.
35909 (remove_bb): Likewise.