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 Mike Stump <mrs@apple.com>
121 * doc/invoke.texi (Objective-C and Objective-C++ Dialect Options
122 -fobjc-exceptions): Don't imply this doesn't work with the GNU
125 2005-12-29 Nathan Sidwell <nathan@codesourcery.com>
127 * varasm.c (get_section): Use gcc_assert.
129 2005-12-29 Paul Brook <paul@codesourcery.com>
131 * config/m68k/m68k.h (RETURN_ADDR_RTX): Define.
132 * config/m68k/m68k.c (m68k_initial_elimination_offset): Remove FIXME.
133 Include offset due to FIRST_PARM_OFFSET.
135 2005-12-29 Paul Brook <paul@codesourcery.com>
137 * config/m68k/lb1sf68.asm (__cmpdf2): Fix typo in immediate mask.
138 Create wrapper and rename body...
139 (__cmpdf2_internal): ... to this. Return correct value for unordered
141 (__cmpsf2): Create wrapper and rename body...
142 (__cmpsf2_internal): ... to this. Return corerct value for unordered
144 (__eqdf2, __nedf2, __gtdf2, __gedf2, __ltdf2, __ledf2): Use
146 (__eqsf2, __nesf2, __gtsf2, __gesf2, __ltsf2, __lesf2): Use
149 2005-12-29 Paul Brook <paul@codesourcery.com>
151 * config/m68k/fpgnulib.c (__extendsfdf2): Handle negative zero.
152 (__truncdfsf2): Ditto.
153 (__extenddfxf2): Ditto.
154 (__truncxfdf2): Ditto.
155 * config/m68k/lb1sf68.asm (__addsf3): Return -0.0 for -0.0 + -0.0.
158 2005-12-29 Daniel Jacobowitz <dan@codesourcery.com>
159 Paul Brook <paul@codesourcery.com>
161 * config/m68k/m68k.c (m68k_output_pic_call): Don't use bsr.l for
163 * config/m68k/t-m68kelf (EXTRA_PARTS): Remove.
164 (EXTRA_MULTILIB_PARTS): Set.
165 * config/m68k/t-uclinux (EXTRA_PARTS): Remove.
166 (EXTRA_MULTILIB_PARTS): Set.
168 2005-12-29 Alan Modra <amodra@bigpond.net.au>
171 * config/rs6000/rs6000.c (create_TOC_reference): Set regs_ever_live.
173 2005-12-28 Nathan Sidwell <nathan@codesourcery.com>
175 * config.gcc (mt-*-*): Add --with-arch support.
176 (--with): Print accepted options on error.
177 * config/mt/mt.h (OPTION_DEFAULT_SPECS): Define.
179 * config/mt/mt.c (DEF_VEC_P(basic_block),
180 DEF_VEC_ALLOC_P(basic_bloc,heap)): Remove from here.
182 2005-12-28 Daniel Berlin <dberlin@dberlin.org>
184 Fix PR tree-optimization/25394
185 * fold-const.c (fold_checksum_tree): Guard
186 portions of checksumming with correct structure checks.
188 2005-12-27 Kazu Hirata <kazu@codesourcery.com>
190 * global.c, tree-ssa-pre.c: Move DEF_VEC_P(basic_block) and
191 DEF_VEC_ALLOC_P(basic_block,{gc,heap}) to ...
192 * basic-block.h: ... here.
194 2005-12-27 Roger Sayle <roger@eyesopen.com>
196 * fold-const.c (int_const_binop): Return NULL_TREE when an expression
197 can't be evaluated at compile-time (instead of calling abort).
198 Return NULL_TREE for division (and modulus) by zero.
199 (const_binop): Return NULL_TREE for floating point operators that
200 aren't handled by real_arithmetic.
201 (fold_binary): Eliminate "wins" variable, and "binary" label, by
202 folding operators with constant operands early. Assert that
203 operands are non-NULL.
205 2005-12-27 Kazu Hirata <kazu@codesourcery.com>
207 * tree-vrp.c (extract_range_from_binary_expr): Use
208 build_int_cst instead of fold_convert.
210 2005-12-26 Mark Mitchell <mark@codesourcery.com>
212 PR c++/23171, c++/23172, c++/25417.
213 * c-decl.c (compound_literal_number): Remove.
214 (build_compound_literal): Use set_compound_literal_name.
215 * c-common.c (compound_literal_number): New variable.
216 (set_compound_literal_name): New function.
217 * c-common.h (set_compound_literal_name): Declare.
219 2005-12-26 Kazu Hirata <kazu@codesourcery.com>
221 PR tree-optimization/25125
222 * convert.c (convert_to_integer): Don't narrow the type of a
223 PLUX_EXPR or MINUS_EXPR if !flag_wrapv and the unwidened type
226 2005-12-26 Graham Stott <graham.stott@btinternet.com>
229 * combine.c (simplify_shift_const_1 <case PLUS>):Fix enable-checking
230 rtl bootstrap failure.
232 2005-12-25 Kazu Hirata <kazu@codesourcery.com>
234 * final.c (compute_alignments): Make it static.
235 * gcse.c (gcse_main, bypass_jumps): Likewise.
236 * web.c (web_main): Likewise.
237 * output.h: Remove the prototype for compute_alignments.
238 * rtl.h: Remove the prototypes for web_main, gcse_main, and
241 2005-12-24 Roger Sayle <roger@eyesopen.com>
243 * expr.c (force_operand): Use expand_fix and expand_float to
244 implement integer <-> FP conversions instead of convert_to_mode.
246 2005-12-24 Mark Mitchell <mark@codesourcery.com>
249 * varasm.c (initializer_constant_valid_p): An ADDR_EXPR of a
250 CONSTRUCTOR is invalid.
252 2005-12-23 Daniel Berlin <dberlin@dberlin.org>
254 * tree-pass.h (pass_eliminate_useless_stores): Remove.
255 * tree-ssa-pre.c (is_copy_stmt): Ditto.
256 (follow_copies_till_vuse): Ditto.
258 (gate_eustores): Ditto.
259 (pass_eliminate_useless_stores): Ditto.
260 * passes.c (init_optimization_passes): Ditto.
262 2005-12-23 Paolo Bonzini <bonzini@gnu.org>
264 * combine.c (simplify_shift_const): Fix typo. Use, whenever
265 applicable, simplify_const_binary_operation.
267 (simplify_shift_const): Leave only the fallback
268 case when no simplification is possible. Extract to...
269 (simplify_shift_const_1): ... here. Always create a new
270 RTX instead of substituting. Remove the signed_count variable.
271 Return NULL_RTX if no substitution is possible.
273 (simplify_and_const_int): Leave only the fallback
274 case when no simplification is possible. Extract to...
275 (simplify_and_const_int_1): ... here. Always create a new
276 RTX instead of substituting. Return NULL_RTX if no substitution
279 (force_to_mode, simplify_comparison): Don't pass a non-NULL first
280 parameter to simplify_and_const_int and simplify_shift_const,
281 unless it is equal to the expected non-simplified result.
283 2005-12-23 Jakub Jelinek <jakub@redhat.com>
286 * regrename.c (replace_oldest_value_reg): Use validate_change with
287 IN_GROUP set to 1 instead of doing direct modifications.
288 (copyprop_hardreg_forward_1): Likewise. If any replace_oldest_*
289 replacements have been performed on an instruction, use
290 apply_change_group ().
292 2005-12-23 Hans-Peter Nilsson <hp@axis.com>
294 * config/cris/arit.c (do_31div): Clarify what "31" refers to.
295 [L_divsi3] (__Udiv): Don't use as inline function.
296 [L_modsi3] (__Umod): Ditto.
297 (__Div): Rearrange to call do_31div directly instead of __Udiv.
298 (__Mod): Similarly regarding __Umod.
301 * config/cris/cris.c (cris_split_movdx): Add REG_INC notes for
302 emitted insns with post-increments.
303 (cris_expand_epilogue): Ditto.
305 2005-12-22 Jakub Jelinek <jakub@redhat.com>
306 Richard Henderson <rth@redhat.com>
308 Merge from gomp-branch.
309 * builtins.def: Move all DEF_SYNC_BUILTIN to ...
310 * sync-builtins.def: ... new file.
311 (BUILT_IN_FETCH_AND_ADD_16,
312 BUILT_IN_FETCH_AND_SUB_16, BUILT_IN_FETCH_AND_OR_16,
313 BUILT_IN_FETCH_AND_AND_16, BUILT_IN_FETCH_AND_XOR_16,
314 BUILT_IN_FETCH_AND_NAND_16, BUILT_IN_ADD_AND_FETCH_16,
315 BUILT_IN_SUB_AND_FETCH_16, BUILT_IN_OR_AND_FETCH_16,
316 BUILT_IN_AND_AND_FETCH_16, BUILT_IN_XOR_AND_FETCH_16,
317 BUILT_IN_NAND_AND_FETCH_16, BUILT_IN_BOOL_COMPARE_AND_SWAP_16,
318 BUILT_IN_VAL_COMPARE_AND_SWAP_16, BUILT_IN_LOCK_TEST_AND_SET_16,
319 BUILT_IN_LOCK_RELEASE_16): New builtins.
320 * builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
321 BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
322 * builtins.c (expand_builtin): Handle sync BUILT_IN_*_16 builtins.
323 * c-common.c (enum c_builtin_type): Move to top-level from
324 c_common_nodes_and_builtins enum builtin_type.
325 (builtin_types): Move from c_common_nodes_and_builtins.
327 (c_common_nodes_and_builtins): Use it.
328 (def_builtin_1): Check for error_mark_node.
329 (sync_resolve_size): Handle also 128 bit sync builtins.
330 * Makefile.in (BUILTINS_DEF): New. Use it instead of builtins.def.
332 * config/i386/i386.h (x86_cmpxchg8b, x86_cmpxchg16b): New decls.
333 (TARGET_CMPXCHG8B, TARGET_CMPXCHG16B): Define.
334 * config/i386/i386.c (x86_cmpxchg8b, x86_cmpxchg16b): New variables.
335 * config/i386/sync.md (CASMODE, DCASMODE): New mode macros.
336 (doublemodesuffix, DCASHMODE): New mode attrs.
337 (sync_compare_and_swap<mode>): Change into expand, use CASMODE
338 instead of IMODE, if mode is wider than a word, expand into
339 sync_double_compare_and_swap*.
340 (*sync_compare_and_swap<mode>): New insn.
341 (sync_double_compare_and_swap<mode>): Likewise.
342 (*sync_double_compare_and_swapdi_pic): Likewise.
343 (sync_compare_and_swap_cc<mode>): Use CASMODE instead of IMODE, if
344 mode is wider than a word, expand into
345 sync_double_compare_and_swap_cc*.
346 (sync_double_compare_and_swap_cc<mode>): New insn.
347 (*sync_double_compare_and_swap_ccdi_pic): Likewise.
349 2005-12-22 Richard Henderson <rth@redhat.com>
351 * config/i386/mmintrin.h (_mm_add_si64): Only define for SSE2.
352 (_mm_sub_si64): Likewise.
353 * config/i386/xmmintrin.h (_mm_shuffle_pi16, _m_pshufw): Likewise.
355 2005-12-23 Alan Modra <amodra@bigpond.net.au>
357 PR rtl-optimization/25432
358 * reload1.c (eliminate_regs_in_insn): Update insn code on
359 successfully re-recognizing modified insn.
361 2005-12-22 Richard Guenther <rguenther@suse.de>
363 * tree.c (tree_fold_gcd): Use build_int_cst where appropriate.
364 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
365 * varasm.c (array_size_for_constructor): Likewise.
366 * fold-const.c (size_diffop, invert_truthvalue,
367 optimize_bit_field_compare, make_range, build_range_check,
368 fold_cond_expr_with_comparison, fold_truthop,
369 fold_single_bit_test_into_sign_test, fold_binary): Likewise.
371 2005-12-22 Dale Johannesen <dalej@apple.com>
373 * config/i386/sse.md (sse_movhlps): Reverse operands for
374 2nd and 3rd alternatives.
376 2005-12-22 Andrew Pinski <pinskia@physics.uc.edu>
379 * tree-dfa.c (make_rename_temp): Set DECL_COMPLEX_GIMPLE_REG_P complex
382 2005-12-22 Zdenek Dvorak <dvorakz@suse.cz>
383 Steven Bosscher <stevenb@suse.de>
385 * df.c (df_bitmaps_free): Only work for bbs for that structures are
387 (df_bb_modify): Realloc tables to the new index.
388 (df_find_use): New function.
389 (df_find_def, df_reg_used): Handle subregs.
390 * df.h (df_find_use): Declare.
392 * loop-invariant.c: Include hashtab.h.
393 (struct invariant): Remove processed field, add eqto and reg fields.
394 (struct invariant_expr_entry): New.
395 (invariant_for_use, hash_invariant_expr_1, invariant_expr_equal_p,
396 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv,
397 find_identical_invariants, merge_identical_invariants): New functions.
398 (create_new_invariant): Return the new invariant. Initialize new
400 (find_invariants): Call merge_identical_invariants.
401 (get_inv_cost, best_gain_for_invariant, set_move_mark,
402 move_invariant_reg): Handle equivalent invariants.
403 * Makefile.in (loop-invariant.o): Add HASHTAB_H dependency.
405 2005-12-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
408 * c-lex.c (c_lex_with_flags): Add PURE_ZERO to cpp_flags if
409 number is a single digit '0'.
411 2005-12-22 Kazu Hirata <kazu@codesourcery.com>
413 PR tree-optimization/23518
414 * fold-const.c (make_range): Don't move a constant to the
415 other side of the comparison if the type is signed and -fwrapv
418 2005-12-22 Kazu Hirata <kazu@codesourcery.com>
420 * tree-vrp.c (extract_range_from_binary_expr): Clean up uses
423 2005-12-21 Joseph S. Myers <joseph@codesourcery.com>
426 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add _floatundidf and
429 2005-12-21 Andrew Haley <aph@redhat.com>
432 * recog.c (peephole2_optimize): Don't peephole any
433 RTX_FRAME_RELATED_P insns.
435 2005-12-21 Kazu Hirata <kazu@codesourcery.com>
437 * tree-data-ref.c (estimate_niter_from_size_of_data): Replace
438 fold_build2 with fold_binary.
439 * tree-ssa-ccp.c (visit_assignment, maybe_fold_stmt_addition):
440 Replace fold_build1 with fold_unary.
441 * tree-ssa-reassoc.c (optimize_ops_list): Replace fold_build2
444 2005-12-21 Steven Bosscher <stevenb@suse.de>
446 PR rtl-optimization/25196
447 * postreload-gcse.c (record_last_set_info): Notice stack pointer
448 changes in push insns without REG_INC notes.
450 2005-12-21 Kazu Hirata <kazu@codesourcery.com>
452 PR tree-optimization/25382.
453 * tree-vrp.c (extract_range_from_binary_expr): Extract a range
456 2005-12-21 Janis Johnson <janis187@us.ibm.com>
457 Ben Elliston <bje@au.ibm.com>
459 * configure.ac: Enable C extension for decimal float if invoked
460 with --enable-decimal-float.
461 * doc/install.texi (Configuration): Document it.
462 * configure, config.in: Regenerate.
464 2005-12-20 Mike Stump <mrs@apple.com>
466 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Handle the
467 ambiguity between -seg_addr_table and -seg_addr_table_filename.
468 (WORD_SWITCH_TAKES_ARG): Likewise.
469 (LINK_SPEC): Likewise.
471 2005-12-20 Kenneth Zadeck <zadeck@naturalbridge.com>
473 * cfganal.c (flow_reverse_top_sort_order_compute):
474 Renamed to post_order_compute and additional parameter added which
475 allows the inclusion of entry and exit blocks into list.
476 (mark_dfs_back_edges): Fixed comment.
477 (flow_depth_first_order_compute): Renamed to
478 pre_and_rev_post_order_compute additional parameter added which
479 allows the inclusion of entry and exit blocks into list.
480 * global.c (set_up_bb_rts_numbers): Call to
481 flow_reverse_top_sort_order_compute renamed to
483 * var-tracking.c (vt_stack_adjustments): Fixed comment.
484 (vt_find_locations): Call to
485 flow_depth_first_order_compute renamed to
486 pre_and_rev_post_order_compute.
487 * cfgloop.c (flow_find_loops): Ditto.
488 * tree-ssa-reassoc.c (init_reassoc): Ditto.
489 * df.c (df_analyze_1, df_analyze_subcfg): Calls to
490 flow_reverse_top_sort_order_compute renamed to post_order_compute
491 and calls to flow_reverse_top_sort_order_compute renamed to
493 * basic_block.h: Ditto.
496 2005-12-20 Roger Sayle <roger@eyesopen.com>
497 Paolo Bonzini <bonzini@gnu.org>
499 PR rtl-optimization/25115
500 * gcse.c (pre_insert_copy_insn): Fall back to the sole
501 SET in the insn if there is no SET for an
502 expression that is equivalent to EXPR.
504 2005-12-20 Richard Guenther <rguenther@suse.de>
507 * builtins.c (std_gimplify_va_arg_expr): Do not align
508 va frame for zero sized types.
509 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
511 2005-12-20 Kazu Hirata <kazu@codesourcery.com>
513 PR tree-optimization/25501
514 * tree-cfgcleanup.c (merge_phi_nodes): Check that RESULT is
515 used in the PHI argument corresponding to the edge from BB to
518 2005-12-20 Richard Guenther <rguenther@suse.de>
521 2005-12-02 Richard Guenther <rguenther@suse.de>
523 * tree-cfg.c (mark_used_vars): New function.
524 (dump_function_to_file): Dump only used VAR_DECLs.
526 2005-12-19 Roger Sayle <roger@eyesopen.com>
528 * combine.c (try_combine): Improve splitting of binary operators
529 by taking advantage of reassociative transformations.
531 2005-12-19 Jeff Law <law@redhat.com>
533 * tree-ssa-dom.c (thread_across_edge): Do not use local_fold.
534 Strip away all type conversions after simplifying the
537 * tree-cfgcleanup.c (merge_phi_nodes): Allow merging in some
538 cases the forwarder block dominates the destination.
540 2005-12-19 DJ Delorie <dj@redhat.com>
542 * reload1.c (spill_failure): Dump reload data to dump file.
543 (find_reload_regs): Likewise.
545 2005-12-19 Zdenek Dvorak <dvorakz@suse.cz>
547 PR tree-optimization/24793
548 * tree-ssa-loop-ivopts.c (get_ref_tag): Remember the
549 original reference if there are subvars.
550 * tree-ssa-operands.c (get_tmr_operands): Handle subvars.
552 2005-12-19 Kenneth Zadeck <zadeck@naturalbridge.com>
554 * df.c (df_analyze_1, df_analyze_subcfg, iterative_dataflow):
555 Corrected basic block number calculations for changes in entry and
558 2005-12-19 Zdenek Dvorak <dvorakz@suse.cz>
560 * tree-flow.h (struct var_ann_d): Change type of
561 may_aliases field to VEC(tree, gc) *.
562 (may_aliases): Declaration changed.
563 * tree-ssa-alias.c (group_aliases, add_may_alias,
564 replace_may_alias, dump_may_aliases_for,
565 is_aliased_with, add_type_alias, new_type_alias):
566 Work with VEC(tree, gc) * instead of varray.
567 * tree-flow-inline.h (may_aliases): Ditto.
568 * tree-ssa.c (verify_flow_insensitive_alias_info,
569 verify_name_tags): Ditto.
570 * tree-ssa-operands.c (add_stmt_operand): Ditto.
572 2005-12-19 J"orn Rennecke <joern.rennecke@st.com>
574 * cfgcleanup.c: Temporarily revert patches for PR 20070 till Bernd
577 2005-12-19 J"orn Rennecke <joern.rennecke@st.com>
579 * struct-equiv.c (struct_equiv_improve_checkpoint): Fix sets_cc0_p
582 2005-12-19 Ben Elliston <bje@au.ibm.com>
584 * doc/install.texi (Configuration): Typo in Fortran subheading.
586 2005-12-19 Nathan Sidwell <nathan@codesourcery.com>
588 * config/mt/mt.md (decrement_and_branch_until_zero): Add another
589 scratch. Correct its reload split. Adjust its peephole.
590 (doloop_end): Add additional scratch.
592 * config/mt/mt.c (MT_INT_ARG_FIRST): Remove.
593 (mt_asm_output_opcode, mt_print_operand): Use 'nop'.
594 (mt_function_arg_slotno): Use FIRST_ARG_REGNUM.
595 (mt_builtin_saveregs): Replace with ...
596 (mt_setup_incoming_varargs): ... here. Save just the varadic
598 (mt_va_start): Remove.
599 (mt_reorg_hazard): Ignore USE insns. Don't call set_noop_p.
600 (mt_machine_reorg): Split all insns here.
601 (TARGET_SETUP_INCOMING_VARARGS): Override.
602 * config/mt/mt.h (TARGET_CPU_CPP_BUILTINS): Define __mt__ only.
604 (EXPAND_BUILTIN_VA_START): Remove.
606 2005-12-17 Kenneth Zadeck <zadeck@naturalbridge.com>
608 * flow.c (update_life_info, count_or_remove_death_notes): Fixed
609 latent bug that could happen if update_life_info was called with a
610 blocks parameter and the call to cleanup_cfg actually deleted one
613 2005-12-19 Zdenek Dvorak <dvorakz@suse.cz>
615 * tree-ssa-structalias.c (update_alias_info): Remove handling
616 of may_be_aliased (SSA_NAME_VAR (op)) case.
618 2005-12-19 Zdenek Dvorak <dvorakz@suse.cz>
620 * tree-flow.h (struct stmt_ann_d): Remove
621 makes_aliased_loads and makes_aliased_stores fields.
622 * tree-ssa-ccp.c (likely_value): Do not use makes_aliased_stores
623 and makes_aliased_loads fields.
624 * tree-ssa-dom.c (eliminate_redundant_computations): Do not
625 use makes_aliased_stores.
626 * tree-ssa-operands.c (clobbered_aliased_loads,
627 clobbered_aliased_stores, ro_call_aliased_loads): Removed.
628 (build_ssa_operands, add_stmt_operand, add_call_clobber_ops,
629 add_call_read_ops): Do not set makes_aliased_stores and
630 makes_aliased_loads fields.
631 * tree-ssa.c (verify_ssa): Do not verify makes_aliased_stores
634 2005-12-18 Geoffrey Keating <geoffk@apple.com>
636 * config/darwin.h: Don't include darwin-sections.def to declare
637 global variables; instead create darwin_section_enum.
638 (darwin_section_enum): New.
639 (darwin_sections): New.
640 * config/darwin.c: Don't include darwin-sections.def to define
642 (darwin_sections): New.
643 (output_objc_section_asm_op): Rewrite to take advantage of
645 (darwin_init_sections): Rewrite to use darwin_sections.
646 (machopic_output_indirection): Update for darwin_sections array.
647 (machopic_select_section): Likewise.
648 (machopic_select_rtx_section): Likewise.
649 (machopic_asm_out_constructor): Likewise.
650 (machopic_asm_out_destructor): Likewise.
651 (darwin_file_end): Likewise.
652 * config/rs6000/rs6000.c (machopic_output_stub): Likewise.
653 * config/i386/i386.c (machopic_output_stub): Likewise.
655 2005-12-18 Richard Guenther <rguenther@suse.de>
657 PR tree-optimization/25481
658 * tree-ssa-structalias.c (handle_ptr_arith): Handle accesses we
659 don't have a varinfo for.
661 2005-12-18 Jon Grimm <jgrimm2@us.ibm.com>
662 Janis Johnson <janis187@us.ibm.com>
663 Ben Elliston <bje@au.ibm.com>
665 * optabs.c (init_floating_libfuncs): Handle decimal float modes.
666 (init_optabs): Handle libfuncs for decimal float.
667 * genopinit.c (gen_insn): Handle MODE_DECIMAL_FLOAT.
668 * stor-layout.c (int_mode_for_mode): Likewise.
669 * simplify-rtx.c (simplify_immed_subreg): Likewise.
670 (simplify_unary_operation_1): Skip optimisations for decimal float
672 * varasm.c (output_constant_pool_2): Handle MODE_DECIMAL_FLOAT.
673 * emit-rtl.c (gen_const_vector): Add assertion check.
674 (init_emit_once): Populate const_tiny_rtx with constants in each
676 * expmed.c (extract_high_half, expand_mult_highpart_optab,
677 expand_mult_highpart): Assert that mode is not a scalar float
679 * expr.c (convert_move): Handle conversion between decimal and
680 binary floats of the same size.
681 * convert.c (convert_to_real): Consider decimal float types when
683 * dwarf2out.c (base_type_die): Use DW_ATE_decimal_float to
684 describe decimal floating point types.
686 2005-12-18 Ulrich Weigand <uweigand@de.ibm.com>
688 PR rtl-optimization/21041
689 * reload.c (find_reloads_subreg_address): Replace paradoxical
690 subreg of MEM by widened access only if the resulting memory
691 is properly aligned, even on !STRICT_ALIGNMENT targets.
693 2005-12-18 Andreas Krebbel <krebbel1@de.ibm.com>
695 * tree-cfg.c (tree_flow_call_edges_add): Check for empty basic blocks.
697 2005-12-18 Steven Bosscher <stevenb@suse.de>
699 * gcse.c (gcse_main, bypass_jumps): Fix non-GNU-isms from
700 the 2005-12-17 patch to renumber the entry and exit blocks.
702 2005-12-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
704 * doc/objc.texi (Type encoding): Fix typo.
706 2005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
708 * tree-tailcall.c (find_tail_calls): Use XNEW.
709 * tree-ssa-dom.c (allocate_edge_info): Use XCNEW.
710 (free_all_edge_infos): Use explicit cast to convert from void *.
711 (vrp_free): Likewise.
712 (dom_opt_finalize_block): Likewise.
713 (record_equivalences_from_incoming_edge): Likewise.
714 (thread_across_edge): Likewise. Use XCNEWVEC.
715 (record_cond): Use XCNEW.
716 (record_conditions): Use XNEWVEC.
717 (record_edge_info): Use XCNEWVEC.
718 (lookup_avail_expr): Use XNEW.
719 (record_range): Likewise. Use GGC_NEW.
720 * tree-nested.c (var_map_hash): Use explicit cast to convert from
722 (var_map_eq): Likewise.
723 (lookup_field_for_decl): Likewise.
724 (convert_nonlocal_reference): Likewise.
725 (convert_local_reference): Likewise.
726 (convert_nl_goto_reference): Likewise.
727 (convert_nl_goto_receiver): Likewise.
728 (convert_call_expr): Likewise.
729 (convert_tramp_reference): Likewise.
730 (lookup_tramp_for_decl): Likewise.Use GGC_NEW.
731 (convert_nl_goto_reference): Likewise.
732 (lookup_field_for_decl): Use GGC_NEW.
733 (create_nesting_tree): Use GGC_CNEW.
734 * tree-ssa-phiopt.c (blocks_in_phiopt_order): Use XNEWVEC.
735 * tree-ssa-alias.c (init_alias_info): Use XCNEW.
736 (create_alias_map_for): Likewise.
737 (setup_pointers_and_addressables): Use XCNEWVEC.
738 (get_ptr_info): Use GGC_NEW.
739 (used_part_map_eq): Use explicit cast to convert from void *.
740 (up_lookup): Likewise.
741 (up_insert): Use XNEW.
742 (get_or_create_used_part_for): Use XCNEW.
743 (get_tmt_for): Likewise.
744 * tree-ssa-operands.c (ssa_operand_alloc): Use GGC_NEW.
745 * tree-ssa-pre.c (phi_trans_add): Use XNEW.
746 (bitmap_set_new): Use explicit cast to convert from void *.
748 (insert_into_set): Likewise.
749 (pool_copy_list): Likewise.
750 (phi_translate): Likewise.
751 (create_value_expr_from): Likewise.
752 (insert_aux): Use XCNEWVEC.
753 (compute_avail): Use XNEWVEC.
754 * tree-ssa-live.c (calculate_live_on_entry): Likewise.
755 (sort_coalesce_list): Likewise.
756 (build_tree_conflict_graph): Use XCNEWVEC.
757 * tree-ssa-dce.c (tree_dce_init): Use XNEWVEC.
758 * tree-ssa-copy.c (init_copy_prop): Likewise.
759 (fini_copy_prop): Likewise.
760 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use XNEW
762 (record_equiv): Use XNEW.
763 (uncprop_into_successor_phis): Use explicit cast to convert from
765 (uncprop_initialize_block): Likewise.
767 2005-12-18 Dorit Nuzman <dorit@il.ibm.com>
769 PR tree-optimization/24378
770 * tree-vect-transform.c (vect_transform_loop): Create single-predecessor
771 basic-block after loop-versioning.
773 2005-12-18 Jeff Law <law@redhat.com>
775 * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Code
776 to simplify SWITCH_EXPR_CODE moved from here to ...
777 * tree-ssa-forwprop.c (simplify_switch_expr): Here.
778 (tree-ssa-forward_propagate_single_use_vars): Call
779 simplify_switch_expr when appropriate.
781 2005-12-17 Andrew Pinski <pinskia@physics.uc.edu>
783 * doc/objc.texi (Type encoding): Add documentation about encoding
784 complex types and _Bool.
786 2005-12-17 Paul Brook <paul@codesourcery.com>
788 * config/m68k/m68k.md (m68k_output_function_prologue): Always call
789 dwarf2out_def_cfa. Only add space for frame pointer to cfa_offset
790 when frame_pointer_needed.
792 2005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
794 * tree-vn.c (vn_add): Use XNEW.
795 * tree-ssa-ccp.c (ccp_initialize): Use XNEWVEC.
796 (ccp_fold): Likewise.
797 (fold_stmt_r): Use explicit cast to convert from void *.
798 * tree-outof-ssa.c (new_temp_expr_table): Use XCNEWVEC.
799 (new_temp_expr_table): Likewise.
800 * gimplify.c (lookup_tmp_var): Use XNEW.
801 (gimplify_asm_expr): Use explcit cast to convert from void *.
802 * tree-into-ssa.c (get_ssa_name_ann): Likewise.
803 (get_def_blocks_for): Use XNEW.
804 (add_to_repl_tbl): Likewise.
805 (mark_def_sites): Use explicit cast to convert from void *.
806 (def_blocks_free): Likewise.
807 (mark_def_sites_initialize_block): Likewise.
808 (update_ssa): Use XNEWVEC.
809 * tree-dfa.c (create_var_ann): Use GGC_NEW.
810 (create_stmt_ann): Likewise.
811 (create_tree_ann): Likewise.
812 (referenced_var_insert): Likewise.
813 (set_default_def): Likewise.
814 (referenced_var_lookup_if_exists): Use explicit cast to convert
816 (referenced_var_lookup): Likewise.
817 (default_def): Likewise.
818 (set_default_def): Likewise.
819 * tree-cfg.c (create_bb): Likewise.
820 (edge_to_cases_cleanup): Likewise.
821 (verify_node_sharing): Likewise.
822 (record_switch_edge): Use XNEW.
823 (cleanup_dead_labels): Use XCNEWVEC.
824 (tree_duplicate_sese_region): Use XNEWVEC.
825 * tree-scalar-evolution.c (get_instantiated_value): Likewise.
826 * tree-ssa.c (verify_ssa): Use XCNEWVEC.
827 (int_tree_map_eq): Use explicit cast to convert from void *.
828 * libgcov.c (gcov_exit): Use explicit cast to convert from void *.
829 (__gcov_execl): Likewise.
830 (__gcov_execlp): Likewise.
831 (__gcov_execle): Likewise.
832 * tree-eh.c (struct_ptr_eq): Likewise.
833 (struct_ptr_hash): Likewise.
834 (lookup_stmt_eh_region_fn): Likewise.
835 (outside_finally_tree): Likewise.
836 (find_goto_replacement): Likewise.
837 (make_eh_edge): Likewise.
838 (mark_eh_edge): Likewise.
839 (add_stmt_to_eh_region_fn): Use GGC_NEW.
840 (record_in_finally_tree): Use XNEW.
841 (maybe_record_in_goto_queue): Use XRESIZEVEC.
842 (lower_try_finally_copy): Use XCNEWVEC.
844 2005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
846 * tree-inline.c (copy_body_r): Use explicit cast when converting
849 (copy_edges_for_bb): Likewise.
850 (remap_decl_1): Likewise.
851 (estimate_num_insns_1): Likewise.
852 * cgraph.c (hash_node): Use explicit cast when converting from
855 (cgraph_create_node): Use GGC_CNEW.
856 (cgraph_create_edge): Use GGC_NEW.
857 (cgraph_remove_node): Use explicit cast when converting from void *.
858 (hash_varpool_node): Likewise.
859 (eq_varpool_node): Likewise.
860 (cgraph_varpool_node): Use GGC_CNEW.
861 * lambda.h (lambda_vector_new): Use GGC_CNEWVEC.
862 * tree-scalar-evolution.c (new_scev_info_str): Use XNEW.
863 (eq_scev_info): Use explicit cast when converting from void *.
864 (find_var_scev_info): Likewise.
865 (set_instantiated_value): Likewise.
866 (gather_stats_on_scev_database_1): Likewise.
867 * cfgloop.h (simple_loop_desc): Use explicit cast when converting
869 * c-pch.c (c_common_write_pch): Use XNEWVEC.
870 (c_common_read_pch): Likewise.
871 * prefix.c (save_string): Use XNEWVEC.
872 (translate_name): Use explicit cast when converting from void *.
873 * c-ppoutput.c (print_line): Use explicit cast when converting
875 (pp_dir_change): Likewise.
876 * c-cppbuiltin.c (builtin_define_std): Likewise.
877 (builtin_define_with_value): Likewise.
878 (builtin_define_with_value_n): Likewise.
879 (builtin_define_with_int_value): Likewise.
880 (builtin_define_type_max): Likewise.
881 * c-incpath.c (add_env_var_paths): Use XNEWVEC.
882 (add_path): Use XNEW.
883 * c-format.c (check_format_info_main): Use GGC_NEW.
884 (format_type_warning): Use explicit cast when converting from void *.
885 * c-typeck.c (alloc_tagged_tu_seen_cache): Use XNEW instead of
887 (start_init): Likewise.
888 * tree-flow-inline.h (first_referenced_var): Use explicit cast
889 when converting from void *.
890 (next_referenced_var): Likewise.
891 * c-pragma.c (push_alignment): Use GGC_NEW instead of ggc_alloc.
892 * gensupport.c (lookup_predicate): Use explicit cast to convert
894 (init_predicate_table): Use XCNEW instead of xcalloc.
895 * genpreds.c (process_define_predicate): Likewise.
897 2005-12-17 Danny Berlin <dberlin@dberlin.org>
898 Kenneth Zadeck <zadeck@naturalbridge.com>
900 * basic-block.h: Changed basic block numbering so that the entry
901 block is 0 and the exit block is 1. Changed insn iterators so
902 that they are tolerant of blocks with no insns.
903 * regrename.c (copyprop_hardreg_forward): Changed basic block
904 numbering so that the entry block is 0 and the exit block is 1.
905 * sched-ebb.c (sehedule_ebbs): Ditto.
906 * tracer.c (branch_ratio_cutoff): Ditto.
907 * cfgloopmanip.c (fix_loop_structure): Ditto.
908 * cfghooks.c (verify_flow_info): Ditto.
909 * cfg.c (compact_blocks): Ditto.
910 * reorg.c (dbr_schedule): Ditto.
911 * flow.c (calculate_global_regs_live, libcall_dead_p): Ditto.
912 * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
913 calculate_dominance_info): Ditto.
914 * cfganal.c (create_edge_list, print_edge_list,
915 flow_depth_first_order_compute, flow_dfs_compute_reverse_init,
916 flow_dfs_compute_reverse_add_bb, flow_dfs_compute_reverse_execute,
917 dfs_enumerate_from): Ditto.
918 * global.c (global_alloc, set_up_bb_rts_numbers): Ditto.
919 * ifcvt.c (find_if_case_2): Ditto.
920 * cfgbuild.c (control_flow_insn_p, count_basic_blocks,
921 find_basic_blocks): Ditto.
922 * predict.c (predict_loops, tree_bb_level_predictions,
923 predict_paths_leading_to, propagate_freq): Ditto.
924 * lcm.c (compute_antinout_edge, compute_laterin,
925 compute_available): Ditto.
926 * function.c (thread_prologue_and_epilogue_insns): Ditto.
927 * gcse.c (gcse_main, bypass_jumps): Ditto.
928 * profile.c (compute_branch_probabilities,
929 compute_value_histograms, branch_prob): Ditto.
930 * tree-flow-inline.h (bsi_start, bsi_after_labels,
932 * tree-ssa-phiopt.c (tree_ssa_phiopt,
933 blocks_in_phiopt_order): Ditto.
934 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
935 compute_out, link_btr_uses, migrate_btr_defs): Ditto.
936 * tree-dfa.c (collect_dfa_stats): Ditto.
937 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Ditto.
938 * cfglayout.c (fixup_reorder_chain): Ditto.
939 * bb-reorder.c (reorder_basic_blocks, duplicate_computed_gotos,
940 partition_hot_cold_basic_blocks): Ditto.
941 * var-tracking.c (vt_find_locations): Ditto.
942 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find, get_loop_body): Ditto.
943 * sched-rgn.c (compute_trg_info, init_regions, schedule_insns): Ditto.
944 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, make_edges
945 label_to_block_fn, print_loop_ir, tree_flow_call_edges_add): Ditto.
946 * tree-ssa-reassoc.c (init_reassoc): Ditto.
947 * cfgrtl.c (entry_of_function, rtl_verify_flow_info,
948 rtl_flow_call_edges_add, rtl_flow_call_edges_add): Ditto.
949 * df.c (df_analyze_1, hybrid_search, iterative_dataflow): Ditto
950 and removed unused reverse orders.
952 * combine.c: Fix document typo.
954 2005-12-17 Jan Hubicka <jh@suse.cz>
956 * tree-flow-inline.h (set_default_def, default_def): Kill.
957 * tree-dfa.c (default_defs): New global variable.
958 (default_def, set_default_def): New functions.
959 * tree-ssa.c (init_tree_ssa, delete_tree_ssa): Add default_def hash.
960 * tree-flow.h (struct var_ann_d): Kill default_def field.
961 (set_default_def, default_def): Update prototype.
962 (default_defs): Declare.
964 2005-12-16 Jeff Law <law@redhat.com>
966 * tree-ssa-dom.c (update_rhs_and_lookup_avail_expr): Kill.
967 (simplify_rhs_and_lookup_avail_expr): Kill. Remnants moved
968 into tree-ssa-forwprop.c.
969 (eliminate_redundant_computations): Do not call
970 simplify_rhs_and_lookup_avail_expr anymore.
971 * tree-ssa-forwprop.c (simplify_not_neg_expr): New function
972 extracted from remnants of simplify_rhs_and_lookup_avail_expr.
973 (tree_ssa_forward_propagate_single_use_vars): Call
974 simplify_not_neg_expr appropriately.
976 2005-12-16 Bernd Trog <berndtrog@yahoo.com>
979 * config/avr/t-avr: Add -Os to TARGET_LIBGCC2_CFLAGS.
981 2005-12-17 Kazu Hirata <kazu@codesourcery.com>
983 PR rtl-optimization/25456
984 * struct-equiv.c (struct_equiv_improve_checkpoint): Replace
985 info->x_start with p->x_start.
987 2005-12-17 Alan Modra <amodra@bigpond.net.au>
989 * simplify-rtx.c (simplify_binary_operation_1 <IOR>): Correct bug
990 introduced 2005-12-16.
992 2005-12-16 Steven Bosscher <stevenb@suse.de>
994 PR rtl-optimization/23837
995 * optabs.c (expand_binop): For a multi-word rotate, never emit
996 a REG_NO_CONFLICT block.
998 2005-12-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1001 * reorg.c (mostly_true_jump): Remove unused variable 'insn'.
1004 * config/pa/pa.c (pa_scalar_mode_supported_p): Handle
1007 2005-12-16 Steven Bosscher <stevenb@suse.de>
1009 * loop-invariant.c (move_loop_invariants): Add missing hunk from
1010 the previous patch, to nullify df.
1012 2005-12-16 Steven Bosscher <stevenb@suse.de>
1014 * reorg.c (mostly_true_jump): Clean up code depending on
1015 LABEL_OUTSIDE_LOOP_P and loop notes. Remove code doing
1016 poor man's branch prediction, instead rely on REG_BR_PROB
1017 notes to be available.
1019 2005-12-16 Jakub Jelinek <jakub@redhat.com>
1021 PR rtl-optimization/24899
1022 * loop.c (strength_reduce): Don't reduce giv that is not always
1023 computable and where add_val or mult_val can trap.
1025 * doc/invoke.texi (-fdump-tree-*): Remove note about C/C++ only.
1027 2005-12-16 Nathan Sidwell <nathan@codesourcery.com>
1029 * config/mt/mt.h (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Correct
1030 names of ms1-16-002 files.
1032 2005-12-16 Alan Modra <amodra@bigpond.net.au>
1035 * gcc.c (for_each_path): New function.
1036 (add_to_obstack, file_at_path): New functions.
1037 (struct file_at_path_info, struct add_to_obstack_info): New.
1038 (build_search_list): Rewrite using for_each_path. Constify struct
1039 path_prefix pointer. Add do_multi param. Adjust all callers.
1040 (find_a_file): Similarly, but just change existing param to bool.
1041 (putenv_from_prefixes): Add do_multi param, make "paths" const.
1042 (do_spec_path): Delete.
1043 (struct spec_path_info): New.
1044 (spec_path): New function.
1045 (do_spec_1): Use for_each_path for %D and %I.
1046 (find_file): Adjust for find_a_file changes.
1047 (main): Search multilibs for specs. Print multilib lib path for
1048 -print-search-dirs. Likewise add multilibs to LIBRARY_PATH_ENV.
1049 (read_specs): Search multilibs for %include and %include_noerr.
1050 (is_directory): Remove second string param. Change last param
1051 to a bool. Don't use concat. Remove SMALL_ARG_MAX test, always
1052 check path is a dir. Update all callers.
1053 * doc/hostconfig.texi (SMALL_ARG_MAX): Remove mention.
1054 * system.h (SMALL_ARG_MAX): Poison.
1055 * config.gcc: Don't define SMALL_ARG_MAX.
1056 * config.host: Likewise.
1057 * config.build: Likewise.
1059 2005-12-16 Paolo Bonzini <bonzini@gnu.org>
1061 * combine.c (combine_simplify_rtx <case NOT, NEG, TRUNCATE,
1062 FLOAT_TRUNCATE, FLOAT_EXTEND, PLUS, MINUS, AND, IOR, XOR,
1063 ABS, VEC_SELECT, POPCOUNT, PARITY, FFS, FLOAT>,
1064 simplify_logical): Move simplifications that do not require
1065 additional infrastructure...
1066 * simplify-rtx.c (simplify_unary_operation_1,
1067 simplify_binary_operation_1): ... here.
1069 2005-12-16 Andreas Krebbel <krebbel1@de.ibm.com>
1072 * flow.c (mark_used_dest_regs): New function.
1073 (mark_used_regs): Call mark_used_dest_regs.
1075 2005-12-16 Jeff Law <law@redhat.com>
1077 * tree-ssa-dse.c (dse_optimize_stmt): Correctly handle PHI nodes which
1078 represent a use and definition of the same SSA_NAME.
1080 2005-12-16 Jon Grimm <jgrimm2@us.ibm.com>
1081 Janis Johnson <janis187@us.ibm.com>
1082 Ben Elliston <bje@au.ibm.com>
1084 * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): New.
1085 (TARGET_INITIALIZER): Add TARGET_DECIMAL_FLOAT_P.
1086 * target.h (struct gcc_target): Add decimal_float_supported_p.
1087 * targhooks.c (default_scalar_mode_supported_p): Handle
1089 * builtins.def: Add new builtins for 32, 64 and 128 bit variants
1090 of inf, nan, finite, isinf and isnan.
1091 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128,
1092 BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR,
1093 BT_FN_DFLOAT32, BT_FN_DFLOAT64, BT_FN_DFLOAT128,
1094 BT_FN_INT_DFLOAT32, BT_FN_INT_DFLOAT64, BT_FN_INT_DFLOAT128,
1095 BT_FN_DFLOAT32_CONST_STRING, BT_FN_DFLOAT64_CONST_STRING,
1096 BT_FN_DFLOAT32_CONST_STRING, BT_FN_DFLOAT32_DFLOAT32,
1097 BT_FN_DFLOAT64_DFLOAT64, BT_FN_DFLOAT128_DFLOAT128): New.
1098 * c-decl.c (declspecs_add_type): Verify combos on type qualifiers.
1099 Pedwarn if decimal floating point types are used. Error if
1100 decimal floating point is not supported by the target.
1101 (finish_declspecs): Return type from DFP typespec_word.
1102 * c-typeck.c (c_common_type): Choose the decimal floating point
1103 type with the greater precision when determining a common type.
1104 (convert_arguments): Warn if there is a mismatch between argument
1105 and prototype for decimal float types. Warn of conversions with
1106 binary float types and of precision narrowing due to prototype.
1107 * c-parser.c (reswords): Add _Decimal32, _Decimal64, _Decimal128.
1108 (c_token_starts_typename): Handle RID_DFLOAT32/64/128.
1109 (c_token_starts_declspecs): Likewise.
1110 (c_parser_attributes): Likewise.
1111 * c-common.h (enum rid): Add new enumeration values RID_DFLOAT32,
1112 RID_DFLOAT64, RID_DFLOAT128.
1113 (T_D32, TEX_D32, T_D64, TEX_D64, T_D128, TEX_D128): New macros.
1114 * c-common.c (c_common_type_for_mode): Handle decimal float modes.
1115 (shorten_compare): Convert DFP/BFP operands to a common type.
1116 (c_common_modes_and_builtins): Register built-in decimal float
1117 types if the target supports them.
1118 (handle_mode_addtribute): Handle MODE_DECIMAL_FLOAT.
1119 * builtins.c (fold_builtin_1): Handle 32, 64 and 128 bit cases of
1120 inf, nan, finite, isinf and isnan builtins.
1121 * c-cppbuiltin.c (builtin_define_decimal_float_constants): New.
1122 (builtin_define_float_constants): Assert non-decimal radix.
1123 (c_cpp_builtins): Register built-in __DEC_EVAL_METHOD__ define.
1124 Call builtin_define_decimal_float_constants for each type.
1125 * c-lex.c (interpret_float): Decode decimal float types from CPP_N
1126 flags. Use real_from_string3, which can handle binary or decimal
1128 * c-tree.h (enum c_typespec_keyword): Add cts_dfloat32,
1129 cts_dfloat64, cts_dfloat128.
1130 * tree.c (build_common_tree_nodes_2): Add decimal float types.
1131 * tree.h (enum tree_index): Add new enumeration values
1132 TI_DFLOAT32_TYPE, TI_DFLOAT64_TYPE, TI_DFLOAT128_TYPE,
1133 TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE, TI_DFLOAT128_PTR_TYPE.
1134 (dfloat32_type_node): New macro.
1135 (dfloat64_type_node, dfloat128_type_node): Likewise.
1136 (dfloat32_ptr_type_node, dfloat64_ptr_type_node): Likewise.
1137 (dfloat128_ptr_type_node): Likewise.
1138 * c-pretty-print.c (pp_c_floating_constant): Append 32, 64 and 128
1139 bit decimal floating point types with "df", "dd" and "dl".
1140 * c-format.h (enum format_lengths): Add new enumeration values
1141 FMT_LEN_H, FMT_LEN_D and FMT_LEN_DD.
1142 * c-format.c (printf_length_specs, scanf_length_specs): Add
1143 entries for H, D, DD.
1144 (print_char_table, scan_char_table): Use new entries.
1145 (asm_fprintf_char_table, gcc_diag_char_table,
1146 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Adjust for longer
1148 * defaults.h (DECIMAL32_TYPE_SIZE): Define.
1149 (DECIMAL64_TYPE_SIZE): Likewise.
1150 (DECIMAL128_TYPE_SIZE): Likewise.
1151 (TARGET_DEC_EVAL_METHOD): Likewise.
1152 * doc/extend.texi (Decimal Float): New node.
1153 (Constructing Calls): Document decimal float built-ins.
1154 * doc/tm.texi: Document TARGET_DECIMAL_FLOAT_SUPPORTED_P hook.
1155 * Makefile.in (USER_H): Add $(srcdir)/ginclude/decfloat.h.
1156 * ginclude/decfloat.h: New file.
1158 2005-12-16 Alan Modra <amodra@bigpond.net.au>
1160 * reload.c (find_reloads): Fix comment typo.
1161 * recog.h (recog_memoized): Correct comment.
1163 2005-12-16 Kazu Hirata <kazu@codesourcery.com>
1165 * basic-block.h, config/i386/winnt.c, config/pa/pa.c,
1166 config/s390/s390.c, dfp.c, expr.c, fold-const.c, params.def,
1167 reload.c, struct-equiv.c, tree-ssa-ccp.c, tree-ssa-pre.c,
1168 tree-ssa-reassoc.c, tree-ssa-structalias.c: Fix comment typos.
1169 * doc/invoke.texi, doc/tm.texi: Fix typos.
1171 2005-12-16 Ben Elliston <bje@au.ibm.com>
1173 * real.c (decimal_quad_format): Correct values for emin, emax.
1175 2005-12-15 DJ Delorie <dj@redhat.com>
1177 * config/m32c/predicates.md (m32c_psi_scale): New.
1178 * config/m32c/m32c.c (m32c_expand_neg_mulpsi3): New.
1179 * config/m32c/muldiv.md (mulpsi3): Support negative constants.
1181 2005-12-16 Jan Hubicka <jh@suse.cz>
1183 PR rtl-optimization/25224
1184 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free copy
1187 2005-12-15 Zdenek Dvorak <dvorakz@suse.cz>
1188 Steven Bosscher <stevenb@suse.de>
1190 * loop-invariant.c (df): New global variable.
1191 (find_defs, check_dependencies, find_invariant_insn, record_uses,
1192 find_invariants_bb, find_invariants_body, find_invariants,
1193 find_invariants_to_move, move_invariants, free_inv_motion_data,
1194 move_single_loop_invariants, move_loop_invariants): Do not pass df in
1197 2005-12-15 Jakub Jelinek <jakub@redhat.com>
1199 * varasm.c (default_unique_section_1): Use special section
1200 names for SECCAT_DATA_REL{,_RO}{,_LOCAL}.
1202 2005-12-16 Ben Elliston <bje@au.ibm.com>
1204 * doc/invoke.texi (Warning Options): Document -Walways-true being
1207 2005-12-15 Joseph S. Myers <joseph@codesourcery.com>
1210 * libgcc2.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Define.
1211 * libgcc2.c (__floatdixf, __floatundixf, __floatditf,
1212 __floatunditf): Use #error if type sizes don't match requirements
1214 (__floatdisf, __floatdidf): Unify. Possibly use XFmode or TFmode
1215 as wider floating-point type. Use #error if type sizes don't
1216 match requirements of implementation. Avoid overflow in computing
1217 Wtype_MAXp1_F * Wtype_MAXp1_F. When special casing conversion,
1218 shift one more bit. Cast 1 to DWtype or UDWtype for shifting.
1219 (__floatundisf, __floatundidf): Likewise.
1220 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Define.
1221 * config/ia64/ia64.c (ia64_init_libfuncs): Use
1222 _U_Qfcnvfxt_quad_to_quad and _U_Qfcnvxf_quad_to_quad for
1223 TFmode-TImode conversions.
1224 * doc/tm.texi (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Document.
1226 2005-12-14 Craig Rodrigues <rodrigc@gcc.gnu.org>
1228 * freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS):
1229 Use builtin_define_with_int_value() instead of
1230 adding a new check for every new major FreeBSD version.
1232 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1234 * config/t-darwin (darwin-c.o): Depend on $(TREE_H) instead of tree.h.
1236 2005-12-15 Richard Sandiford <richard@codesourcery.com>
1238 * config/arm/predicates.md (call_memory_operand): New.
1239 * config/arm/arm.md (*call_mem, *call_value_mem): Use it.
1241 2005-12-15 Andrew Haley <aph@redhat.com>
1243 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Guard
1244 against prev_cache_entry == NULL when moving a cache entry to the
1247 2005-12-15 Nathan Sidwell <nathan@codesourcery.com>
1249 * config/mt/mt.c (mt_override_options): Require lower case
1250 architectures. Revert accidental default to ms2.
1251 * config/mt/mt.h (ASM_SPEC, LIBSPEC, STARTFILE_SPEC,
1252 ENDFILE_SPEC): Require lower case architectures. Revert default
1255 * doc/invoke.texi (MT Options): Rename and update.
1256 * doc/md.texi (MorphoTech family): Rename and update.
1258 2005-12-15 Olivier Hainque <hainque@adacore.com>
1260 * stor-layout.c (layout_type): Don't complain about a too small
1261 an array element type size compared to its alignment when the
1264 2005-12-15 Jan Hubicka <jh@suse.cz>
1267 * i386.c (classify_argument): Properly adjust offset of bitfield for
1270 2005-12-15 Richard Sandiford <richard@codesourcery.com>
1272 * final.c (final_scan_insn): Flip in_cold_section_p when changing
1273 between the hot and cold sections. Use current_function_section
1274 to get the new section.
1275 * dwarf2out.c (output_line_info): Use in_cold_section_p to
1276 determine whether we are assembling hot or cold code.
1277 (secname_for_decl, dwarf2out_var_location): Likewise.
1278 (dwarf2out_init, dwarf2out_finish): Use switch_to_section.
1279 * varasm.c (last_text_section): Delete.
1280 (in_cold_section_p): New variable.
1281 (hot_function_section): New function.
1282 (current_function_section): Pass in_cold_section_p as the
1283 reloc argument to select_section. Use it to decide between
1284 unlikely_function_section and hot_function_section.
1285 (assemble_start_function): Use switch_to_section. Set
1286 in_cold_section_p instead of last_text_section.
1287 (assemble_end_function): Use switch_to_section.
1288 (switch_to_section): Don't set last_text_section.
1289 * config/darwin/darwin.c (machopic_select_section): Trust the reloc
1290 argument to make the right choice between hot and cold sections.
1292 2005-12-15 Nathan Sidwell <nathan@codesourcery.com>
1294 Second part of MS1->MT renaming
1295 * config/mt/mt.md (doloop_end): Call mt_add_loop.
1296 (movqi, movhi): Call mt_set_memflags.
1297 (*movdf_internal): Call mt_split_words.
1298 (reload_inqi, reload_outqi, reload_inhi, reload_outhi): Call
1300 (cmpsi): Store to mt_compare_op[01].
1301 (beq, bne, bge, bgt, ble, blt, bgeu, bgtu, bleu, bltu, bunge,
1302 bungt, bunle, bunlt): Call mt_emit_cbranch.
1303 (prologue): Call mt_expand_prologue.
1304 (epilogu): Call mt_expend_epilogue.
1305 (eh_return): Call mt_expand_eh_return.
1306 (eh_epilogue): Call me_emit_eh_epilogue.
1307 (conditional_trap): Store to mt_compare_op[01].
1308 * config/mt/crti.asm: Adjust comment.
1309 * config/mt/crtn.asm: Adjust comment.
1310 * config/mt/mt.c (MT_INT_ARG_FIRST): Renamed.
1311 (mt_compare_op0, mt_compare_op1): Renamed.
1312 (current_frame_info, zero_frame_info): Adjust type.
1313 (mt_ucmpsi3_libcall): Renamed.
1314 (mt_flag_delayed_branch): Renamed.
1315 (mt_struct_value_rtx, mt_return_addr_rtx): Renamed.
1316 (mt_nops_required, mt_nop_reasons): Renamed.
1317 (mt_asm_output_opcode, mt_get_attr_type, mt_final_prescan_insn,
1318 mt_debug_stack, mt_print_operand_simple_address,
1319 mt_print_operand_address, mt_print_operand): Renamed, adjusted.
1320 (mt_init_cumulative_args, mt_function_arg_slotno, mt_function_arg,
1321 mt_function_arg_advance, mt_arg_partial_bytes,
1322 mt_pass_by_reference, mt_function_arg_boundary,
1323 mt_reg_ok_for_base_p, mt_legitimate_simple_address_p,
1324 mt_legitimate_address_p): Renamed, adjusted.
1326 (mt_init_machine_status, mt_override_options, mt_builtin_saveregs,
1327 mt_va_start, mt_compute_frame_size, mt_emit_save_restore,
1328 mt_emit_save_fp, mt_emit_save_regs, mt_interrupt_function_p,
1329 mt_expand_prologue, mt_epilogue_uses, mt_expand_epilogue,
1330 mt_expand_eh_return, mt_emit_eh_prologue,
1331 mt_handl_interrupt_attribute): Renamed, adjusted.
1332 (mt_attribute_table): Renamed, adjusted.
1333 (mt_initial_elimination_offset, mt_generate_compare,
1334 mt_emit_cbranch, mt_set_memflags_1, mt_set_memflags,
1335 mt_secondary_reload_class, mt_function_value, mt_split_words,
1336 mt_pass_in_stack, mt_add_loop, mt_loop_nesting, mt_block_length,
1337 mt_scan_loop, mt_reorg_loops): Renamed, adjusted.
1338 (mt_labels): Renamed.
1339 (mt_add_branches, mt_check_delay_slot, mt_reorg_hazard,
1340 mt_machine_reorg): Renamed, adjusted.
1341 (mt_attribute_table: Renamed.
1342 (TARGET_ATTRIBUTE_TABLE, TARGET_STRUCT_VALUE_RTX,
1343 TARGET_PASS_BY_REFERENCE, TARGET_MUST_PASS_IN_STACK,
1344 TARGET_ARG_PARTIAL_BYTES, TARGET_MACHINE_DEPENDENT_REORG): Adjust.
1345 * config/mt/mt.opt (march): Set mt_cpu_string.
1346 * config/mt/mt.h (mt_ucmpsi3_libcall, mt_cpu): Renamed.
1347 (TARGET_CPU_CPP_BUILTINS): Adjust.
1348 (TARGET_MS1_64_001, TARGET_MS1_16_002, TARGET_MS1_16_003,
1349 TARGET_MS2): Adjust.
1350 (TARGET_VERSION, OVERRIDE_OPTIONS, SECONDARY_RELOAD_CLASS): Adjust.
1351 (MT_MIN_INT): Renamed.
1352 (RETURN_ADDR_RTX): Adjust.
1353 (struct mt_frame_info): Renamed.
1354 (current_frame_info): Adjust type.
1355 (INITIAL_ELIMINATION_OFFSET): Adjust.
1356 (MT_NUM_ARG_REGS): Renamed.
1357 (REG_PARM_STACK_SPACE, FUNCTION_ARG, INIT_CUMULATVE_ARGS,
1358 FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY, FUNCTION_VALUE,
1359 LIBCALL_VALUE, EPILOGUE_USES, EXPAND_BUILTIN_VA_START,
1360 GO_IF_LEGITIMATE_ADDRESS, REG_OK_FOR_BASE_P, ASM_OUTPUT_OPCODE,
1361 FINAL_REPSCAN_INSN, PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Adjust.
1362 (mt_compare_op0, mt_compare_op1): Renamed.
1363 * config/mt/mt-protos.h: Rename prototypes.
1365 2005-12-15 Richard Guenther <rguenther@suse.de>
1367 * tree-flow.h (okay_component_ref_for_subvars): Remove.
1368 (get_ref_base_and_extent): Declare.
1369 * tree-dfa.c (okay_component_ref_for_subvars): Remove.
1370 (get_ref_base_and_extent): New function.
1371 * tree-ssa-alias.c (find_used_portions): Use it.
1372 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1374 * tree-ssa-operands.c (get_expr_operands): Likewise.
1376 2005-12-15 Paolo Bonzini <bonzini@gnu.org>
1378 * combine.c: Remove force_to_mode's fourth parameter.
1379 (force_to_mode): Do not handle REG.
1380 (canon_reg_for_combine): New.
1381 (make_field_assignment): Use it where the removed argument was non-NULL.
1383 2005-12-15 Alan Modra <amodra@bigpond.net.au>
1386 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Handle
1387 error_mark_node. Make alignment params unsigned.
1388 * config/rs6000/rs6000-protos.h
1389 (rs6000_special_round_type_align): Update prototype.
1390 (rs6000_machopic_legitimize_pic_address): Remove arg names.
1392 2005-12-14 Ulrich Weigand <uweigand@de.ibm.com>
1394 PR rtl-optimization/25310
1395 * reload1.c (eliminate_regs_in_insn): Handle lowpart SUBREGs
1396 of the eliminable register when substituting into a PLUS.
1398 2005-12-14 Jakub Jelinek <jakub@redhat.com>
1401 * config/i386/i386.c (ix86_force_to_memory): Always use
1402 SImode push for HImode in -m32.
1403 (ix86_free_from_memory): Likewise.
1405 2005-12-14 Richard Sandiford <richard@codesourcery.com>
1407 * gcc/config/arm/arm.md: Provide a big-endian version of the
1408 (zero_extend:SI (subreg:QI ...)) splitter.
1410 2005-12-14 J"orn Rennecke <joern.rennecke@st.com>
1412 * struct-equiv.c (note_local_live): Handle hard regs with different
1415 2005-12-14 Jeff Law <law@redhat.com>
1417 * tree-ssa-ccp.c (fold_stmt_r): DATA argument is now a pointer
1418 to a structure containing state rather than a pointer to bool.
1419 (case ARRAY_REF): New code to handle folding some array references.
1420 (case ADDR_EXPR): Note when we are processing expressions found
1421 within an ADDRE_EXPR.
1422 (fold_stmt, fold_stmt_inplace): Pass in a structure to fold_stmt_r
1423 for state variables rather than just a pointer to a boolean.
1424 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
1425 handling of constant string references.
1427 2005-12-14 Adrian Straetling <straetling@de.ibm.com>
1429 * config/s390/s390.md ("*tstdi_extimm", "*tstsi_extimm"): Merge.
1430 ("*tstdi_cconly_extimm", "*tstsi_cconly_extimm"): Merge.
1431 ("*tstdi_cconly2", "*tstsi_cconly2"): Merge.
1432 Move other tst* patterns to retain partial order.
1434 2005-12-14 Adrian Straetling <straetling@de.ibm.com>
1436 * config/s390/s390.md ("d0", "1"): New mode attributes.
1437 ("<shift>di3", "<shift>si3"): Merge.
1438 ("*<shift>di3_and", "*<shift>si3_and"): Merge.
1439 ("ashrdi3", "ashrsi3"): Merge.
1440 ("*ashrdi3_cc", "*ashrsi3_cc"): Merge.
1441 ("*ashrdi3_cc_and", "*ashrsi3_cc_and"): Merge.
1442 ("*ashrdi3_cconly", "*ashrsi3_cconly"): Merge.
1443 ("*ashrdi3_cconly_and", "*ashrsi3_cconly_and"): Merge.
1444 ("*ashrdi3", "*ashrsi3"): Merge.
1445 ("*ashrdi3_and", "*ashrsi3_and"): Merge.
1447 2005-12-14 Adrian Straetling <straetling@de.ibm.com>
1449 * config/s390/s390.md ("extend<mode>di2", "extend<mode>si2"): Merge.
1450 ("*extendqidi2_extimm", "*extendqisi2_extimm"): Merge.
1451 ("*extendqidi2", "*extendqisi2") Merge.
1452 ("*extendqidi2_short_displ", "*extendqisi2_short_displ"): Merge.
1453 ("zero_extendhidi2", "zero_extendqidi2"): Merge.
1454 ("*zero_extend<mode>di2_extimm", "*zero_extend<mode>si2_extimm"): Merge.
1455 Move some patterns to retain partial ordering.
1457 2005-12-14 Adrian Straetling <straetling@de.ibm.com>
1459 * config/s390/s390.md ("atype", "length"): Rewrite.
1460 ("*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): Add mode.
1462 2005-12-14 Sebastian Pop <pop@cri.ensmp.fr>
1464 * tree-ssa-operands.c (build_ssa_operands): Update leading comment.
1466 2005-12-14 J"orn Rennecke <joern.rennecke@st.com>
1468 * struct-equiv.c (rtx_equiv_p): Allow arbitrary RVALUE values for
1469 PARALLELs with a mode.
1471 2005-12-14 Sebastian Pop <pop@cri.ensmp.fr>
1473 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Adjust the type of
1474 cond_expr parameter.
1476 2005-12-14 Sebastian Pop <pop@cri.ensmp.fr>
1478 * loop-unswitch.c (unswitch_loop): Free zero_bitmap before returning.
1480 2005-12-14 J"orn Rennecke <joern.rennecke@st.com>
1484 * struct-equiv.c (struct_equiv_init): Fix off-by-one error in clearing
1487 * struct-euiv.c (rtx_equiv_p): Remove SUBREG case.
1489 2005-12-14 Jakub Jelinek <jakub@redhat.com>
1493 * config/i386/i386.c (x86_64_elf_select_section): If DECL is not
1494 DECL_P, call get_section rather than get_named_section. Supply
1495 section flags to it.
1497 2005-12-14 Ben Elliston <bje@au.ibm.com>
1499 * c-common.c (c_common_truthvalue_conversion): Generalise warning
1500 for addresses converted to booleans; not just function addresses.
1501 * c-typeck.c (build_binary_op): Warn for address comparisons which
1502 can never be NULL (eg. func == NULL or &var == NULL).
1503 * common.opt (Walways-true): New option.
1504 * c-opts.c (c_common_handle_option): Set it with -Wall.
1505 * doc/invoke.texi: Document it.
1507 2005-12-13 Paul Brook <paul@codesourcery.com>
1509 * config/m68k/fpgnulib.c (__unordsf2, __unorddf2, __unordxf2,
1510 __floatunsidf, __floatunsisf, __floatunsixf): New functions.
1512 2005-12-13 Nathan Sidwell <nathan@codesourcery.com>
1514 * config/mt/t-mt (crti.o, crtn.o): Add multilib options.
1515 (EXTRA_MULTILIB_PARTS): Define.
1517 2005-12-13 J"orn Rennecke <joern.rennecke@st.com>
1519 PR rtl-optimization/20070 / part1
1520 * flow.c (update_life_info): If PROP_POST_REGSTACK is set, call
1521 count_or_remove_death_notes with kill == -1.
1522 (mark_set_1): Don't add REG_DEAD / REG_UNUSED notes for stack
1523 registers if PROP_POST_REGSTACK is set.
1524 (mark_used_reg): Likewise.
1525 (count_or_remove_death_notes): If kill is -1, don't remove REG_DEAD /
1526 REG_UNUSED notes for stack regs.
1527 * cfgcleanup.c (condjump_equiv_p): Change parameters and processing
1528 to match rtx_equiv_p machinery. Change caller.
1529 (outgoing_edges_match): Likewise.
1530 (try_crossjump_to_edge): Use struct_equiv_block_eq
1531 instead of flow_find_cross_jump.
1532 * basic-block.h (PROP_POST_REGSTACK, STRUCT_EQUIV_START): Define.
1533 (STRUCT_EQUIV_RERUN, STRUCT_EQUIV_FINAL): Likewise.
1534 (STRUCT_EQUIV_NEED_FULL_BLOCK, STRUCT_EQUIV_MATCH_JUMPS): Likewise.
1535 (STRUCT_EQUIV_MAX_LOCAL): Likewise.
1536 (struct struct_equiv_checkpoint, struct equiv_info): Likewise.
1537 (insns_match_p): Update prototype.
1538 (flow_find_cross_jump): Remove prototype.
1539 (struct_equiv_block_eq, struct_equiv_init): Declare.
1540 (rtx_equiv_p, condjump_equiv_p): Likewise.
1541 * struct-equiv.c: Include reload.h.
1542 (IMPOSSIBLE_MOVE_FACTOR): Define.
1543 (assign_reg_reg_set, struct_equiv_make_checkpoint): New functions.
1544 (struct_equiv_improve_checkpoint): Likewise.
1545 (struct_equiv_restore_checkpoint, rtx_equiv_p): Likewise.
1546 (set_dest_equiv_p, set_dest_addr_equiv_p, struct_equiv_init): Likewise.
1547 (struct_equiv_merge, find_dying_input): Likewise.
1548 (resolve_input_conflict, note_local_live): Likewise.
1549 (death_notes_match_p): Change parameters and processing
1550 to match rtx_equiv_p machinery. Change caller.
1551 (insns_match_p): Likewise.
1552 (flow_find_cross_jump): Replace with:
1553 (struct_equiv_block_eq).
1555 Back out this change:
1556 2005-03-07 Kazu Hirata <kazu@cs.umass.edu>
1557 * recog.c (verify_changes): Make it static.
1558 * recog.h: Remove the corresponding prototype.
1560 2005-12-13 J"orn Rennecke <joern.rennecke@st.com>
1562 * rtlhooks.c (gen_lowpart_general): Handle SUBREGs of floating point
1565 2005-12-13 Nathan Sidwell <nathan@codesourcery.com>
1567 * config/mt/t-mt (MULTILIB_OPTIONS): Add ms2
1568 (MULTILIB_DIRNAMES): Add ms2. Prefix ms1 dirs with 'ms1'.
1569 * config/mt/mt.c (ms1_final_prescan): Use TARGET_MS2,
1570 TARGET_MS1_64_001 appropriately.
1571 (ms1_machine_reorg): Use TARGET_MS2.
1573 2005-12-13 Jakub Jelinek <jakub@redhat.com>
1577 * expr.c (emit_move_resolve_push): Handle PRE_MODIFY
1578 and POST_MODIFY with CONST_INT adjustment equal to PUSH_ROUNDING.
1579 Fix POST_INC/POST_DEC handling if PUSH_ROUNDING is not identity.
1580 * config/i386/i386.md (pushhi2, pushqi2): Use pushl instead of pushw.
1581 Set mode to SI, adjust constraints.
1582 (pushhi2_rex64, pushqi2_rex64): Set mode to DI.
1583 * config/i386/i386.h (PUSH_ROUNDING): Round up to 4 instead of 2 for
1586 2005-12-13 Carlos O'Donell <carlos@codesourcery.com>
1588 * c-cppbuiltin.c (builtin_define_float_constants): Add
1589 fp_cast parameter, pass to builtin_define_with_hex_fp_value.
1590 Define __FLT_HAS_DENORM__, __DBL_HAS_DENORM__, __LDBL_HAS_DENORM__.
1591 (builtin_define_with_hex_fp_value): Use fp_cast when building macro.
1592 (c_cpp_builtins): If flag_single_precision_constant then set fp_cast
1593 to "((double)%sL)" otherwise "%s".
1595 2005-12-13 Paul Brook <paul@codesourcery.com>
1597 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for
1600 2005-12-11 Rafael vila de Espndola <rafael.espindola@gmail.com>
1602 * tree-flow.h: Allow compilation with a C++ compiler.
1603 (struct edge_prediction): Prefix all field names with "ep_".
1604 * predict.c (tree_predicted_by_p): Likewise for struct edge_prediction.
1605 (tree_predict_edge, combine_predictions_for_bb): Likewise.
1606 (remove_predictions_associated_with_edge): Likewise.
1608 2005-12-12 Jeff Law <law@redhat.com>
1610 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
1612 * passes.c (init_optimization_passes): Run reassociation again
1613 after loop optimizations.
1615 2005-12-12 Daniel Berlin <dberlin@dberlin.org>
1617 * tree-ssa-dom.c (thread_across_edge): Canonicalize condition
1619 (optimize_stmt): Ditto.
1620 (canonicalize_comparison): New function.
1621 * tree-ssa-operands.c (swap_tree_operands): Make external.
1622 (get_expr_operands): Stop auto-canonicalization.
1623 * tree-ssa-reassoc.c: Rewrite.
1624 (init_optimization_passes):
1625 * tree-flow.h (swap_tree_operands): Prototype.
1626 * Makefile.in (tree-ssa-reassoc.o): Update dependencies.
1628 2005-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1630 * pa.c (pa_output_function_epilogue): Set cfun->machine->in_nsubspa to
1631 indicate function epilogue has been output.
1632 (pa_asm_output_mi_thunk): Likewise.
1633 (output_deferred_plabels): Put plabels in readonly data section when
1634 not generating PIC code.
1635 (som_output_text_section_asm_op): Use .NSUBSPA to output debug
1636 information. Add assert.
1637 (som_output_comdat_data_section_asm_op): New function.
1638 (pa_som_asm_init_sections): Use som_output_comdat_data_section_asm_op
1639 instead of output_section_asm_op for COMDAT sections.
1641 2005-12-12 J"orn Rennecke <joern.rennecke@st.com>
1643 * cfgcleanup.c (condjump_equiv_p, try_crossjump_to_edge):
1644 Fix whitespace in vincinity of to-be-installed changes.
1645 * struct-equiv.c (merge_memattrs, death_notes_match_p): Fix whitespace.
1646 (insns_match_p): Likewise.
1648 2005-12-12 Nathan Sidwell <nathan@codesourcery.com>
1650 * config.gcc (ms1): Replace with ...
1652 * config/ms1: Rename to ...
1653 * config/mt: ... here. Rename ms1 files to mt.
1654 * config/mt/mt.c: Adjust gt-mt.h #include.
1655 * config/mt/t-mt (LIB1ASMSRCS, LIB2FUNCS_EXTRA): Adjust.
1656 (crti.o, crtn.o): Adjust file names.
1658 2005-12-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
1660 * varray.h: Allow compilation with a C++ compiler.
1661 (union varray_data_tag): Prefix all field names with "vdt_".
1662 (VARRAY_CHAR, VARRAY_UCHAR, VARRAY_SHORT, VARRAY_USHORT,
1663 VARRAY_INT, VARRAY_UINT, VARRAY_LONG, VARRAY_ULONG,
1664 VARRAY_WIDE_INT, VARRAY_UWIDE_INT, VARRAY_GENERIC_PTR,
1665 VARRAY_GENERIC_PTR_NOGC, VARRAY_CHAR_PTR, VARRAY_RTX,
1666 VARRAY_RTVEC, VARRAY_TREE, VARRAY_BITMAP, VARRAY_REG, VARRAY_BB,
1667 VARRAY_ELT_LIST, VARRAY_EDGE, VARRAY_TREE_PTR): Adjust definition.
1668 (VARRAY_PUSH_CHAR, VARRAY_PUSH_UCHAR, VARRAY_PUSH_SHORT,
1669 VARRAY_PUSH_USHORT, VARRAY_PUSH_INT, VARRAY_PUSH_UINT,
1670 VARRAY_PUSH_LONG, VARRAY_PUSH_ULONG, VARRAY_PUSH_WIDE_INT,
1671 VARRAY_PUSH_UWIDE_INT, VARRAY_PUSH_GENERIC_PTR,
1672 VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_CHAR_PTR,
1673 VARRAY_PUSH_RTX, VARRAY_PUSH_RTVEC, VARRAY_PUSH_TREE,
1674 VARRAY_PUSH_BITMAP, VARRAY_PUSH_REG, VARRAY_PUSH_BB,
1675 VARRAY_PUSH_EDGE, VARRAY_PUSH_TREE_PTR): Likewise.
1676 (VARRAY_TOP_CHAR, VARRAY_TOP_UCHAR, VARRAY_TOP_SHORT,
1677 VARRAY_TOP_USHORT, VARRAY_TOP_INT, VARRAY_TOP_UINT,
1678 VARRAY_TOP_LONG, VARRAY_TOP_ULONG, VARRAY_TOP_WIDE_INT,
1679 VARRAY_TOP_UWIDE_INT, VARRAY_TOP_GENERIC_PTR,
1680 VARRAY_TOP_GENERIC_PTR_NOGC, VARRAY_TOP_CHAR_PTR, VARRAY_TOP_RTX,
1681 VARRAY_TOP_RTVEC, VARRAY_TOP_TREE, VARRAY_TOP_BITMAP,
1682 VARRAY_TOP_REG, VARRAY_TOP_BB, VARRAY_TOP_EDGE,
1683 VARRAY_TOP_TREE_PTR): Likewise.
1684 * varray.c (varray_grow): Likewise.
1685 (varray_clear): Likewise.
1687 2005-12-12 Alan Modra <amodra@bigpond.net.au>
1690 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Increase
1691 alignment to doubleword if the first field is a double array.
1692 * config/rs6000/linux64.h (TARGET_ALIGN_NATURAL): Define.
1694 2005-12-11 Daniel Berlin <dberlin@dberlin.org>
1696 * tree-ssa-structalias.c (process_constraint): Remove code to
1697 transform addressofs into scalar.
1698 (create_variable_info_for): In whole-program IPA, globals don't
1699 point to ANYTHING by default.
1701 2005-12-11 Daniel Berlin <dberlin@dberlin.org>
1703 * timevar.def (TV_IPA_PTA): New.
1704 * tree-pass.h (pass_ipa_pta): New
1705 * tree-ssa-structalias.c: Include cgraph.h
1707 (predbitmap_obstack): New.
1708 (EXECUTE_IF_IN_NONNULL_BITMAP): New.
1709 (struct constraint_stats): Add num_edges.
1710 (new_var_info): Don't call bitmap_clear.
1711 (struct constraint_edge): Update docs.
1712 (new_constraint_edge): Remove src param.
1713 (struct constraint_graph): Add zero_weight_succs,
1714 zero_weight_preds. Update docs.
1715 (constraint_expr_equal): Reformat.
1716 (constraint_edge_equal): Update for removal of src.
1717 (constraint_edge_less): Ditto.
1718 (constraint_edge_vec_find): Ditto.
1719 (erase_graph_self_edge): Update for removal of src and and zero
1721 (clear_edges_for_node): Ditto.
1722 (add_graph_edge): Ditto.
1723 (get_graph_weights): Ditto.
1724 (allocate_graph_weights): Ditto.
1725 (merge_graph_nodes): Ditto.
1726 (int_add_graph_edge): Ditto.
1727 (valid_graph_edge): Ditto.
1728 (valid_weighted_graph_edge): Ditto.
1729 (build_constraint_graph): Ditto.
1731 (collapse_nodes): Ditto.
1732 (process_unification_queue): Ditto.
1733 (topo_visit): Ditto.
1734 (solve_graph): Ditto.
1735 (do_structure_copy): Ditto.
1736 (perform_var_substitution): Ditto.
1737 Init and release obstack.
1738 (handle_ptr_arith): Try to resolve directly.
1739 (find_func_aliases): Don't call update_alias_info here
1740 Handle RETURN_EXPR, and CALL_EXPR's in IPA mode.
1741 (do_sd_constraint): Add code for propagating faster.
1743 (do_ds_constraint): Ditto.
1744 (count_num_arguments): New function.
1745 (create_function_info_for): Ditto.
1746 (create_variable_info_for): Handle FUNCTION_DECL.
1747 (intra_create_variable_infos): Use make_constraint_to_anything.
1748 (init_alias_vars): Init obstacks here.
1749 (need_to_solve): Handle zero weight graph changes.
1750 (compute_points_to_sets): Call update_alias_info here.
1751 (delete_points_to_sets): Free zero weight preds/succs here.
1752 (gate_ipa_pta): New.
1753 (ipa_pta_execute): New
1755 2005-12-11 Daniel Berlin <dberlin@dberlin.org>
1757 * tree-ssa-structalias.c (var_anyoffset): Removed.
1758 (anyoffset_tree): Ditto.
1759 (anyoffset_id): Ditto.
1760 (do_deref): Take vector of constraints, no return value.
1761 Update to work on vector.
1762 (get_constraint_for): Ditto.
1763 (get_constraint_for_component_ref): Ditto.
1764 (do_structure_copy): Ditto.
1765 (handle_ptr_arith): Ditto.
1766 (find_func_aliases): Ditto.
1767 (set_uids_in_ptset): Remove anyoffset handling.
1768 (init_base_vars): Ditto.
1770 2005-12-10 Mark Mitchell <mark@codesourcery.com>
1773 * ipa-inline.c (cgraph_clone_inlined_nodes): Do not assume that
1774 DECL_EXTERNAL functions have no bodies. Tidy.
1776 2005-12-10 Andreas Schwab <schwab@suse.de>
1778 * except.c (switch_to_exception_section): Only define if
1779 TARGET_UNWIND_INFO is not defined.
1781 2005-12-10 Richard Sandiford <richard@codesourcery.com>
1783 * config/darwin.h (HAS_INIT_SECTION): Remove definition.
1784 (INIT_SECTION_ASM_OP): Restore empty definition from before 2005-12-07.
1786 2005-12-10 Richard Sandiford <richard@codesourcery.com>
1788 * output.h (init_section, fini_section): Delete.
1789 * varasm.c (init_section, fini_section): Delete.
1790 (init_varasm_once): Don't initialize them.
1791 * doc/tm.texi (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Say that
1792 there are no corresponding varasm.c variables.
1794 2005-12-10 Richard Sandiford <richard@codesourcery.com>
1796 * dwarf2out.c (default_eh_frame_section): Delete, moving handling
1797 of EH_FRAME_SECTION_NAME into...
1798 (switch_to_eh_frame_section): ...here. Try to set eh_frame_section
1799 if it is still null.
1800 * except.c (default_exception_section): Delete, moving most
1802 (switch_to_exception_section): ...this new function. Set
1803 exception_section if it is still null, then switch to it.
1804 (output_function_exception_table): Use switch_to_exception_section.
1805 * varasm.c (exception_section, eh_frame_section): Update comments.
1806 (get_section): Hoist use of SECTION_NAMED.
1807 (init_varasm_once): Don't set exception_section and eh_frame_section.
1808 * output.h (default_exception_section): Delete.
1809 (default_eh_frame_section): Delete.
1811 2005-12-09 Bernd Schmidt <bernd.schmidt@analog.com>
1813 * config/bfin/bfin.c: Include "cgraph.h".
1814 (bfin_load_pic_reg): Omit loading pic reg if in a local function.
1815 Return the reg that holds the pointer to the GOT.
1816 (bfin_expand_prologue): Use return value of bfin_load_pic_reg when
1817 doing stack checking.
1819 2005-12-09 Diego Novillo <dnovillo@redhat.com>
1821 * tree.c (recompute_tree_invariant_for_addr_expr): Rename from
1822 recompute_tree_invarant_for_addr_expr.
1823 Update uses everywhere.
1825 2005-12-09 Aldy Hernandez <aldyh@redhat.com>
1827 * config/ms1/t-ms1 (MULTILIB_OPTIONS): Define.
1828 (MULTILIB_DIRNAMES): Define.
1830 2005-12-09 Ulrich Weigand <uweigand@de.ibm.com>
1833 * config/s390/s390.c (struct s390_address): New field literal_pool.
1834 (s390_decompose_address): Compute literal_pool field. Do not
1835 assume register %r13 is always (and solely) used as pool base.
1836 (s390_extra_constraint_str): Use literal_pool field.
1838 2005-12-09 Thiemo Seufer <ths@networkno.de>
1840 * config/mips/mips.c (override_options): Don't allow too small
1841 integers in FP registers.
1843 2005-12-09 Ulrich Weigand <uweigand@de.ibm.com>
1845 * config/s390/s390.c (s390_function_ok_for_sibcall): Use
1846 targetm.binds_local_p to check for local function calls.
1848 2005-12-09 Alan Modra <amodra@bigpond.net.au>
1851 * dwarf2out.c (dwarf2out_frame_debug_expr): Don't assert that
1852 call_used_regs can't be used to save reg in another reg.
1854 2005-12-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1855 Christophe Jaillet <christophe.jaillet@wanadoo.fr>
1857 * ipa-type-escape.c (analyze_variable): Use gcc_assert instead of
1859 * except.c (output_ttype): Likewise.
1860 * tree-object-size.c (collect_object_sizes_for): Likewise.
1861 (check_for_plus_in_loops_1): Likewise.
1862 (check_for_plus_in_loops): Likewise.
1863 (compute_object_sizes): Use gcc_unreachable instead of abort.
1865 2005-12-08 Nathan Sidwell <nathan@codesourcery.com>
1867 * config/ms1/ms1.md (UNSPEC_LOOP): New constant.
1868 (loop_end, loop_init, doloop_end): New insns.
1869 * config/ms1/ms1.h (LOOP_FIRST, LOOP_LAST): New.
1870 (SPECIAL_REG_FIRST, FIRST_PSEUDO_REGISTER): Adjust.
1871 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
1872 (REG_CLASS_CONTENTS, REGISTER_NAMES): Adjust.
1873 * config/ms1/ms1.c: #include basic-block.h
1874 (struct machine_function): Add has_loops field.
1875 (ms1_add_loop): New.
1876 (MAX_LOOP_DEPTH, MAX_LOO_LENGTH): New.
1877 (struct loop_info, struct loop_work): New.
1878 (ms1_loop_nesting, ms1_block_length, ms1_scan_loop): New workers.
1879 (ms1_reorg_loops): New loop optimization.
1880 (ms1_machine_reorg): Call it.
1881 * config/ms1/ms1-protos.h (ms1_add_loop): Declare.
1883 2005-12-08 Zdenek Dvorak <dvorakz@suse.cz>
1885 PR tree-optimization/25248
1886 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Do not use
1887 evolution_of_loop from the failed attempt. Remove handling
1890 2005-12-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
1892 * tree.h (DECL_EXTERNAL): Clarify documentation.
1894 2005-12-08 Andreas Krebbel <krebbel1@de.ibm.com>
1895 Jakub Jelinek <jakub@redhat.com>
1898 * config/s390/s390.c (s390_decompose_shift_count): Remove BITS
1899 argument. Don't drop outer ANDs.
1900 (s390_extra_constraint_str, print_shift_count_operand): Adjust callers.
1901 * config/s390/s390-protos.h (s390_decompose_shift_count): Adjust
1903 * config/s390/predicates.md (setmem_operand): Remove.
1904 (shift_count_operand): Rename to...
1905 (shift_count_or_setmem_operand): ... this. Adjust
1906 s390_decompose_shift_count caller.
1907 * config/s390/s390.md (<shift>di3_31_and, <shift>di3_64_and,
1908 ashrdi3_cc_31_and, ashrdi3_cconly_31_and, ashrdi3_31_and,
1909 ashrdi3_cc_64_and, ashrdi3_cconly_64_and, ashrdi3_64_and,
1910 <shift>si3_and, ashrsi3_cc_and, ashrsi3_cconly_and, ashrsi3_and,
1911 rotl<mode>3_and, setmem_long_and): New insns.
1912 (<shift>di3_31, <shift>di3_64, ashrdi3_cc_31, ashrdi3_cconly_31,
1913 ashrdi3_31, ashrdi3_cc_64, ashrdi3_cconly_64, ashrdi3_64,
1914 <shift>si3, ashrsi3_cc, ashrsi3_cconly, ashrsi3, rotl<mode>3,
1915 <shift>di3, ashrdi3): Use shift_count_or_setmem_operand instead
1916 of shift_count_operand.
1917 (setmem_long): Use shift_count_or_setmem_operand instead of
1920 2005-12-08 Daniel Jacobowitz <dan@codesourcery.com>
1921 Andreas Tobler <a.tobler@schweiz.ch>
1923 * Makefile.in (ALL_GTFILES_H): Replace sed statement with more portable
1926 2005-12-07 J"orn Rennecke <joern.rennecke@st.com>
1928 * expr.c (force_operand): Use convert_to_mode for conversions.
1930 2005-12-07 J"orn Rennecke <joern.rennecke@st.com>
1932 * reload.h (reg_equiv_invariant): Declare.
1933 * reload.c (refers_to_regno_for_reload_p): Allow R to be a pseudo
1934 register also when reg_equiv_invariant[R] is set.
1936 2005-12-07 Richard Sandiford <richard@codesourcery.com>
1937 Andreas Tobler <a.tobler@schweiz.ch>
1939 * config/darwin.h: Guard section variables with #ifndef USED_FOR_TARGET.
1941 2005-12-07 Daniel Berlin <dberlin@dberlin.org>
1943 * tree-ssa-pre.c (bitmap_set_and): New function.
1944 (bitmap_set_and_compl): New function.
1945 (bitmap_set_empty_p): New function.
1946 (insert_extra_phis): New function.
1947 (compute_avail): Use insert_extra_phis.
1949 2005-12-07 Adrian Straetling <straetling@de.ibm.com>
1951 * config/s390/s390.c (s390_expand_atomic): New function.
1952 Adjust comment of helper functions.
1953 * config/s390/s390-protos.h (s390_expand_atomic): Declare.
1954 * config/s390/s390.md ("ATOMIC"): New code macro.
1955 ("atomic"): Corresponding new code attribute.
1956 ("sync_lock_test_and_set[hq]i",
1957 "sync_{new_,old_,}{and,ior,xor,add,sub,nand}[hq]i"): New pattern.
1959 2005-12-07 Adrian Straetling <straetling@de.ibm.com>
1961 * config/s390/s390.c (s390_expand_mask_and_shift,
1962 struct alignment_context, init_alignment_context,
1963 s390_expand_cs_hqi): New.
1964 * config/s390/s390-protos.h (s390_expand_cs_hqi): Declare.
1965 * config/s390/s390.md ("sync_compare_and_swaphi",
1966 "sync_compare_and_swapqi"): New pattern.
1968 2005-12-07 Daniel Berlin <dberlin@dberlin.org>
1970 Fix PR tree-optimization/25291
1971 * tree-ssa-operands.c (add_call_clobber_ops): Remove
1972 redundant and crashing check.
1974 2005-12-08 Alan Modra <amodra@bigpond.net.au>
1977 * config/rs6000/rs6000.c (legitimate_indexed_address_p): Relax
1978 tests further when !strict && reload_in_progress.
1979 (print_operand): Check that both operands of indexed address are regs.
1980 (print_operand_address): Likewise.
1981 * config/rs6000/rs6000.h (INT_REG_OK_FOR_INDEX_P): Simplify.
1982 (INT_REG_OK_FOR_BASE_P): Correct.
1984 2005-12-07 J"orn Rennecke <joern.rennecke@st.com>
1986 Preparation for PR rtl-optimization/20070 / part1
1987 * basic-block.h (insns_match_p, flow_find_cross_jump): Declare.
1988 * cfgcleanup.c (condjump_equiv_p): New function, broken out of
1989 outgoing_edges_match.
1990 (outgoing_edges_match): Use condjump_equiv_p.
1991 (merge_memattrs, insns_match_p, flow_find_cross_jump): Move from here
1993 * struct-equiv.c: New file.
1994 (death_notes_match_p) New function, broken out of insns_match_p.
1995 * Makefile.in (OBJS-common): Add struct-equiv.o.
1996 (struct-equiv.o): New target.
1998 2005-12-07 Richard Sandiford <richard@codesourcery.com>
2000 * coretypes.h: Revert previous change.
2001 * config/darwin.h: Revert previous reversion.
2002 * config/avr/avr.h (progmem_section): Guard with #ifndef IN_LIBGCC2.
2004 2005-12-07 Richard Sandiford <richard@codesourcery.com>
2006 * coretypes.h (section): Provide dummy definition for target files.
2007 * config/darwin.h: Revert previous change.
2009 2005-12-07 Rafael vila de Espndola <rafael.espindola@gmail.com>
2011 * doc/sourcebuild.texi (all.build, install-normal): Remove.
2012 * configure.ac: Remove all.build and install-normal from target_list
2013 * configure: Regenerate.
2014 * Makefile.in (install): Don't depend on install-normal.
2016 2005-12-07 Rafael vila de Espndola <rafael.espindola@gmail.com>
2018 * Makefile.in: Document the use of stamps.
2020 2005-12-07 Rafael vila de Espndola <rafael.espindola@gmail.com>
2022 * doc/gty.texi: Remove instructions for adding a dependency on s-gtype.
2023 * Makefile.in: Add code to compute some dependencies on s-gtype
2024 automatically. Remove the declaration of those dependencies.
2026 2005-12-07 Richard Sandiford <richard@codesourcery.com>
2028 * gcc/reload.c (push_secondary_reload): Fix typo:
2029 s/insn_constraint/scratch_constraint/.
2031 2005-12-07 Richard Sandiford <richard@codesourcery.com>
2033 * config/darwin.h: Guard section variables with #ifndef IN_LIBGCC2.
2035 2005-12-07 Richard Sandiford <richard@codesourcery.com>
2037 * config/alpha/alpha.c (alpha_start_function): Use switch_to_section.
2038 (alpha_elf_select_rtx_section): Return the selected section rather
2039 than emitting assembly code.
2040 (alpha_write_linkage): Emit a ".link" directive directly and then
2041 set in_section to NULL.
2042 (vms_asm_out_constructor): Use switch_to_section.
2043 (vms_asm_out_destructor): Likewise.
2044 (unicosmk_output_common): Set in_section to NULL instead of calling
2045 the dummy common_section function.
2046 (unicosmk_text_section): Delete in favor of...
2047 (unicosmk_output_text_section_asm_op): ...this new function.
2048 (unicosmk_data_section): Delete in favor of...
2049 (unicosmk_output_data_section_asm_op): ...this new function.
2050 (unicosmk_init_sections): New function.
2051 (unicosmk_output_deferred_case_vectors): Use switch_to_section.
2052 (unicosmk_output_ssib): Set in_section to NULL instead of calling
2053 the dummy ssib_section function.
2054 (unicosmk_section_buf): Delete.
2055 * config/alpha/alpha-protos.h (unicosmk_text_section): Delete.
2056 (unicosmk_data_section): Delete.
2057 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
2058 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, sbss_section, sdata_section)
2059 (SECTION_FUNCTION_TEMPLATE): Delete.
2060 * config/alpha/unicosmk.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP)
2061 (READONLY_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2062 (common_section, COMMON_SECTION, ssib_section, SSIB_SECTION): Delete.
2063 (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
2064 (TARGET_ASM_INIT_SECTIONS): Define.
2065 * config/alpha/vms.h (LINK_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP)
2066 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2067 (link_section, literals_section): Delete.
2068 (ASM_OUTPUT_DEF): Emit the ".literal" directive directly and then
2069 set in_section to NULL.
2071 * config/arm/aof.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Delete.
2072 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, ZERO_INIT_SECTION): Delete.
2073 (COMMON_SECTION): Delete.
2074 (TARGET_ASM_INIT_SECTIONS): Define.
2075 (ASM_OUTPUT_COMMON): Set in_section to NULL rather than calling
2076 the dummy common_section function.
2077 * config/arm/aout.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
2078 * config/arm/arm.c (get_jump_table_size): Use pointer comparison
2079 between readonly_data_section and text_section to check whether
2080 read-only data is being put in the text section.
2081 (arm_output_function_epilogue): Use switch_to_section.
2082 (arm_elf_asm_constructor): Likewise.
2083 (thumb_call_via_reg): Replace call to in_text_section with
2084 a comparison between in_section and text_section.
2085 (arm_file_end): Use switch_to_section.
2086 (aof_text_section): Delete in favor of...
2087 (aof_output_text_section_asm_op): ...this new function.
2088 (aof_data_section): Delete in favor of...
2089 (aof_output_data_section_asm_op): ...this new function.
2090 (aof_asm_init_sections): New function.
2091 (zero_init_section): Moved from config/arm/aof.h.
2092 (aof_dump_imports, aof_file_start): Use switch_to_section.
2093 * config/arm/arm.h (thumb_call_via_label): Update comment.
2094 * config/arm/arm-protos.h (aof_text_section, aof_data_section): Delete.
2095 (common_section): Delete.
2096 * config/arm/pe.h (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
2097 (ASM_DECLARE_OBJECT_NAME): Update the type of save_section. Use the
2098 global switch_to_section function instead of the old port-local one.
2099 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION)
2100 (SWITCH_TO_SECTION_FUNCTION): Delete.
2101 (drectve_section): Redefine as a macro.
2102 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS):
2103 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use get_named_section and
2106 * config/avr/avr.c (progmem_section): New variable.
2107 (avr_output_progmem_section_asm_op): New function.
2108 (avr_asm_init_sections): New function.
2109 (avr_output_addr_vec_elt): Use switch_to_section.
2110 * config/avr/avr.h (progmem_section): Declare.
2111 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2112 (READONLY_DATA_SECTION): Delete.
2113 (TARGET_ASM_INIT_SECTIONS): Define.
2114 (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
2115 * config/avr/avr-protos.h (progmem_section): Delete.
2117 * config/bfin/bfin.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
2119 * config/c4x/c4x.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2120 (INIT_SECTION_FUNCTION, FINI_SECTION_FUNCTION): Delete.
2122 * config/darwin-sections.def: New file.
2123 * config/darwin.c: Define all sections in darwin-sections.def.
2124 (output_objc_section_asm_op, darwin_init_sections): New functions.
2125 (machopic_output_indirection): Use switch_to_section.
2126 (machopic_select_section): Return the selected section rather than
2127 emitting assembly code. Replace the static function table with
2128 inline conditional expressions. Update the tests of last_text_section
2129 and move them into the FUNCTION_DECL block.
2130 (machopic_select_rtx_section): Return the selected section rather than
2131 emitting assembly code.
2132 (machopic_asm_out_constructor, machopic_asm_out_destructor)
2133 (darwin_file_end): Use switch_to_section.
2134 * config/darwin.h: Use darwin-sections.def to declare sections.
2135 (INIT_SECTION_ASM_OP): Remove empty definition.
2136 (HAS_INIT_SECTION): Define this instead.
2137 (SECTION_FUNCTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2138 (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
2139 (TARGET_ASM_EH_FRAME_SECTION): Delete.
2140 (TARGET_ASM_INIT_SECTIONS): Define.
2141 * config/darwin-protos.h (darwin_init_sections): Declare.
2142 (machopic_picsymbol_stub_section, machopic_picsymbol_stub1_section)
2143 (machopic_symbol_stub_section, machopic_symbol_stub1_section): Delete.
2144 (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
2145 (constructor_section, destructor_section, mod_init_section): Delete.
2146 (mod_term_section): Delete.
2147 (darwin_exception_section, darwin_eh_frame_section): Delete.
2148 (machopic_select_section): Return a section.
2149 (machopic_select_rtx_section): Likewise.
2150 (text_coal_section, text_unlikely_section, text_unlikely_coal_section)
2151 (const_section, const_coal_section, const_data_section): Delete.
2152 (const_data_coal_section, data_coal_section, cstring_section): Delete.
2153 (literal4_section, literal8_section, constructor_section): Delete.
2154 (mod_init_section, mod_term_section, destructor_section): Delete.
2155 (objc_class_section, objc_meta_class_section, objc_category_section)
2156 (objc_class_vars_section, objc_instance_vars_section): Delete.
2157 (objc_cls_meth_section, objc_inst_meth_section): Delete.
2158 (objc_cat_cls_meth_section, objc_cat_inst_meth_section): Delete.
2159 (objc_selector_refs_section, objc_selector_fixup_section): Delete.
2160 (objc_symbols_section, objc_module_info_section): Delete.
2161 (objc_image_info_section, objc_protocol_section): Delete.
2162 (objc_string_object_section, objc_constant_string_object_section)
2163 (objc_class_names_section, objc_meth_var_names_section): Delete.
2164 (objc_meth_var_types_section, objc_cls_refs_section): Delete.
2165 (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
2166 (machopic_symbol_stub_section, machopic_picsymbol_stub_section)
2167 (darwin_exception_section, darwin_eh_frame_section): Delete.
2168 * config/t-darwin (darwin.o): Depend on config/darwin-sections.def.
2170 * config/frv/frv.c (frv_asm_out_constructor): Use switch_to_section.
2171 (frv_asm_out_destructor): Likewise.
2172 * config/frv/frv.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2173 (SDATA_SECTION_FUNCTION, FIXUP_SECTION_FUNCTION): Delete.
2174 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use switch_to_section and
2176 (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
2177 * config/frv/frv-protos.h (fixup_section, sdata_section, sbss_section)
2178 (data_section): Delete.
2180 * config/i386/cygming.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2181 (DRECTVE_SECTION_FUNCTION): Delete.
2182 (drectve_section): Redefine as a macro that sets in_section after
2183 emitting the directive.
2184 (SWITCH_TO_SECTION_FUNCTION): Delete.
2185 * config/i386/darwin.h (ASM_OUTPUT_ALIGN): Replace call to
2186 in_text_section with comparison between in_section and text_section.
2187 * config/i386/i386.c (x86_64_elf_select_section): Return the section
2188 rather than emitting assembly code. Use get_named_section.
2189 (x86_output_aligned_bss, ix86_file_end): Use switch_to_section and
2191 (machopic_output_stub): Use switch_to_section.
2192 * config/i386/nwld.c (nwld_named_section_asm_out_constructor)
2193 (nwld_named_section_asm_out_destructor): Use get_section and
2196 * config/ia64/ia64.c (ia64_select_rtx_section): Return the section
2197 rather than emitting assembly code.
2198 (ia64_rwreloc_select_section): Likewise.
2199 (ia64_rwreloc_select_rtx_section): Likewise.
2200 * config/ia64/ia64-protos.h (sdata_section, sbss_section): Delete.
2201 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
2203 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2204 (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Delete.
2206 * config/iq2000/iq2000.c (iq2000_select_rtx_section): Return the
2207 section rather than emitting assembly code.
2208 (iq2000_select_section): Likewise.
2209 * config/iq2000/iq2000.h (rdata_section, sdata_section): Delete.
2210 (sbss_section): Delete.
2212 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use switch_to_section
2213 and get_named_section.
2214 * config/m32r/m32r-protos.h (sbss_section, sdata_section): Delete.
2216 * config/mcore/mcore-elf.h (EXPORTS_SECTION_ASM_OP): Delete.
2217 (SUBTARGET_EXTRA_SECTIONS, SUBTARGET_EXTRA_SECTION_FUNCTIONS): Delete.
2218 (EXPORT_SECTION_FUNCTION, SUBTARGET_SWITCH_SECTIONS): Delete.
2219 (MCORE_EXPORT_NAME): Emit the exports directive directly, then set
2221 (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
2222 (ASM_DECLARE_OBJECT_NAME): Update the type of save_section. Use the
2223 global switch_to_section function instead of the old port-local one.
2224 * config/mcore/mcore.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2225 (SWITCH_SECTION_FUNCTION): Delete.
2226 * config/mcore/mcore-pe.h (SUBTARGET_SWITCH_SECTIONS): Delete.
2227 (DRECTVE_SECTION_ASM_OP, SUBTARGET_EXTRA_SECTIONS): Delete.
2228 (SUBTARGET_EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION): Delete.
2229 (MCORE_EXPORT_NAME): Emit ".section .drectve" directly, then set
2231 (ASM_DECLARE_OBJECT_NAME): Update the type of save_section. Use the
2232 global switch_to_section function instead of the old port-local one.
2233 (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
2235 * config/mips/mips.c (mips_file_start): Update comment.
2236 (mips_output_aligned_bss): Use switch_to_section and get_named_section.
2237 (mips_output_aligned_decl_common): Use switch_to_section.
2238 (mips_select_rtx_section): Return the section rather than emitting
2239 assembly code. Use get_named_section.
2240 (mips_function_rodata_section: Likewise get_section.
2241 (build_mips16_function_stub): Use switch_to_section.
2242 * config/mips/mips.h (ASM_OUTPUT_IDENT): Use switch_to_section.
2243 (SDATA_SECTION_ASM_OP): Delete.
2244 * config/mips/vxworks.h (EXTRA_SECTIONS): Delete.
2245 (EXTRA_SECTION_FUNCTIONS): Delete.
2247 * config/mmix/mmix.c (mmix_file_start, mmix_file_end)
2248 (mmix_asm_output_aligned_local): Use switch_to_section.
2250 * config/pa/pa.c (som_readonly_data_section, som_one_only_data_section)
2251 (som_one_only_readonly_data_section): New variables.
2252 (pa_output_function_epilogue): Set in_section to NULL instead of
2253 calling forget_section.
2254 (output_deferred_plabels): Use select_section.
2255 (pa_asm_output_mi_thunk): Likewise. Set in_section to NULL instead
2256 of calling forget_section.
2257 (pa_asm_output_aligned_bss, pa_asm_output_aligned_common)
2258 (pa_asm_output_aligned_local): Use select_section.
2259 (som_text_section_asm_op): Delete in favor of...
2260 (som_output_text_section_asm_op): ...this new function.
2261 (pa_som_asm_init_sections): New function.
2262 (pa_select_section): Return the section rather than emitting
2264 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2265 (SOM_READONLY_DATA_SECTION_FUNCTION): Delete.
2266 (SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION): Delete.
2267 (SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): Delete.
2268 * config/pa/pa-protos.h (som_text_section_asm_op): Delete.
2269 (som_readonly_data_section, som_one_only_readonly_data_section)
2270 (som_one_only_data_section, forget_section): Delete.
2271 * config/pa/som.h (TEXT_SECTION_ASM_OP): Delete.
2272 (TARGET_ASM_INIT_SECTIONS): Define.
2273 (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
2275 * config/rs6000/rs6000.c (read_only_data_section): New variable.
2276 (private_data_section, read_only_private_data_section): New variables.
2277 (sdata2_section, toc_section): New variables.
2278 (rs6000_file_start): Use switch_to_section.
2279 (rs6000_assemble_integer): Use comparisons against in_section
2280 instead of calling in_toc_section and in_text_section. Use
2281 unlikely_text_section_p.
2282 (rs6000_elf_output_toc_section_asm_op): New function, derived
2283 from the old rs6000/sysv4.h toc_section function.
2284 (rs6000_elf_asm_init_sections): New function.
2285 (rs6000_elf_select_rtx_section, rs6000_elf_select_section): Return
2286 the section rather than emitting assembly code.
2287 (machopic_output_stub): Use switch_to_section.
2288 (toc_section): Delete dummy function.
2289 (rs6000_elf_asm_out_constructor, rs6000_elf_asm_out_destructor): Use
2290 switch_to_section and get_section.
2291 (rs6000_xcoff_output_readonly_section_asm_op): New function.
2292 (rs6000_xcoff_output_readwrite_section_asm_op): New function.
2293 (rs6000_xcoff_output_toc_section_asm_op): New function, derived from
2294 the old rs6000/xcoff.h toc_section function.
2295 (rs6000_xcoff_asm_init_sections): New function.
2296 (rs6000_xcoff_select_section, rs6000_xcoff_select_rtx_section): Return
2297 the section rather than emitting assembly code.
2298 (rs6000_xcoff_file_start): Use switch_to_section.
2299 (rs6000_xcoff_file_end): Likewise.
2300 * config/rs6000/rs6000-protos.h (toc_section, sdata_section): Delete.
2301 (sdata2_section, sbss_section, private_data_section): Delete.
2302 (read_only_data_section, read_only_private_data_section): Delete.
2303 * config/rs6000/sysv4.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2304 (TOC_SECTION_FUNCTION, SDATA_SECTION_FUNCTION, SDATA2_SECTION_FUNCTION)
2305 (SBSS_SECTION_FUNCTION, INIT_SECTION_FUNCTION): Delete.
2306 (FINI_SECTION_FUNCTION): Delete.
2307 (TARGET_ASM_INIT_SECTIONS): Define.
2308 (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
2309 * config/rs6000/xcoff.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2310 (READ_ONLY_DATA_SECTION_FUNCTION, PRIVATE_DATA_SECTION_FUNCTION)
2311 (READ_ONLY_PRIVATE_DATA_SECTION_FUNCTION, TOC_SECTION_FUNCTION)
2312 (READONLY_DATA_SECTION): Delete.
2313 (TARGET_ASM_INIT_SECTIONS): Define.
2314 (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section. Set in_section
2315 to NULL rather than no_section.
2316 (TARGET_ASM_EXCEPTION_SECTION): Delete.
2318 * config/sh/sh.c (sh_file_start): Use switch_to_section.
2320 * config/sparc/sparc.c (emit_pic_helper): Use switch_to_section.
2321 (sparc_output_deferred_case_vectors): Likewise. Remove argument
2322 from call to current_function_section.
2324 * config/stormy16/stormy16.c: Include ggc.h and gt-storm16.h.
2325 (bss100_section): New variable.
2326 (xstormy16_asm_output_aligned_common): Use switch_to_section.
2327 (xstormy16_asm_init_sections): New function.
2328 (xstormy16_asm_out_destructor, xstormy16_asm_out_constructor): Use
2329 switch_to_section and get_section.
2330 (xstormy16_output_addr_vec): Use switch_to_section. Remove argument
2331 from calls to current_function_section.
2332 * config/stormy16/stormy16.h (EXTRA_SECTIONS): Delete.
2333 (XSTORMY16_SECTION_FUNCTION, EXTRA_SECTION_FUNCTIONS): Delete.
2334 (TARGET_ASM_INIT_SECTIONS): Define.
2335 * config/stormy16/stormy16-protos.h (bss100_section): Delete.
2337 * config/svr3.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
2338 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, INIT_SECTION_FUNCTION)
2339 (FINI_SECTION_FUNCTION): Delete.
2341 * config/v850/v850.c: Include gt-v850.h.
2342 (rosdata_section, rozdata_section, tdata_section, zdata_section)
2343 (zbss_section): New variables.
2344 (v850_output_aligned_bss): Use switch_to_section.
2345 (v850_asm_init_sections): New function.
2346 (v850_select_section): Return the section rather than emitting
2348 * config/v850/v850.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2349 (ZDATA_SECTION_ASM_OP, ZBSS_SECTION_ASM_OP, TDATA_SECTION_ASM_OP)
2350 (ROSDATA_SECTION_ASM_OP, ROZDATA_SECTION_ASM_OP): Delete.
2351 (TARGET_ASM_INIT_SECTIONS): Define.
2352 * config/v850/v850-protos.h (sdata_section, rosdata_section): Delete.
2353 (sbss_section, tdata_section, zdata_section, rozdata_section): Delete.
2354 (zbss_section): Delete.
2356 * config/vax/vaxv.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
2358 * config/vx-common.h (vxworks_exception_section): Delete.
2359 (TARGET_ASM_EXCEPTION_SECTION): Delete.
2361 * config/xtensa/xtensa.c (xtensa_select_rtx_section): Return the
2362 section rather than emitting assembly code.
2363 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Use
2366 * Makefile.in (GTFILES): Add $(srcdir)/output.h.
2367 * coretypes.h (section): New union and typedef.
2368 * dbxout.c (FORCE_TEXT): Use switch_to_section. Remove argument
2369 from call to current_function_section.
2370 (dbxout_function_end, dbxout_init, dbxout_source_file, dbxout_finish)
2371 (dbxout_symbol_location): Use switch_to_section.
2372 * dwarf2out.c (named_section_eh_frame_section): Delete, moving
2373 most of the code into...
2374 (default_eh_frame_section): ...here. Return a section.
2375 (collect2_eh_frame_section): Delete, moving most of the code into..
2376 (switch_to_eh_frame_section): ...this new function.
2377 (debug_info_section, debug_abbrev_section, debug_aranges_section)
2378 (debug_macinfo_section, debug_line_section, debug_loc_section)
2379 (debug_pubnames_section, debug_str_section, debug_ranges_section): New
2381 (output_call_frame_info): Call switch_to_eh_frame_section instead of
2382 eh_frame_section. Use switch_to_section and get_section.
2383 (dwarf2out_begin_prologue): Use switch_to_section.
2384 (AT_string_form): Check the flags in debug_str_section instead of
2385 DEBUG_STR_SECTION_FLAGS.
2386 (output_comp_unit): Use switch_to_section, get_section, and
2388 (output_line_info, secname_for_decl): Use unlikely_text_section_p.
2389 (dwarf2out_begin_block): Use switch_to_section. Remove argument
2390 from call to current_function_section.
2391 (dwarf2out_var_location): Use unlikely_text_section_p.
2392 (dwarf2out_source_line): Use switch_to_section. Remove argument
2393 from call to current_function_section.
2394 (dwarf2out_start_source_file, dwarf2out_end_source_file)
2395 (dwarf2out_define, dwarf2out_undef: Use switch_to_section and
2396 debug_macinfo_section.
2397 (dwarf2out_init): Initialize the new section variables. Use them
2398 instead of calls to named_section_flags. Use switch_to_section.
2399 (output_indirect_string): Use switch_to_section and debug_str_section.
2400 (dwarf2out_finish): Use switch_to_section and the new section
2402 * except.c (default_exception_section): Return the section instead
2403 of emitting assembly code.
2404 (output_function_exception_table): Use the global exception_section
2405 variable instead of the target hook. Use switch_to_section. Remove
2406 argument from call to current_function_section.
2407 * final.c (HAVE_READONLY_DATA_SECTION): Delete.
2408 (shorten_branches): Use pointer comparisons to detect whether the
2409 text section is the same as readonly_data_section.
2410 (profile_function): Use switch_to_section. Remove argument from
2411 call to current_function_section.
2412 (final_scan_insn): Likewise. Update use of last_text_section.
2413 * gengtype.c (open_base_files): Add an include of output.h.
2414 * output.h (text_section, data_section, readonly_data_section)
2415 (ctors_section, dtors_section, bss_section, init_section)
2416 (fini_section, sdata_section): Turn into section pointers.
2417 (in_text_section, in_unlikely_text_section, exports_section)
2418 (drectve_section, named_section, mergeable_string_section)
2419 (last_text_section_name): Delete.
2420 (default_exception_section, default_eh_frame_section): Return sections.
2421 (SECTION_DECLARED, SECTION_NAMED): New macros.
2422 (SECTION_MACH_DEP): Bump value.
2423 (section_common, named_section, unnamed_section): New structures.
2424 (unnamed_section_callback): New typedef.
2425 (section): New union.
2426 (sbss_section, exception_section, eh_frame_section): New variables.
2427 (in_section, last_text_section): Turn into section pointers.
2428 (get_unnamed_section, get_section, get_named_section): New functions.
2429 (mergeable_constant_section, function_section): Return a section.
2430 (unlikely_text_section): Likewise.
2431 (current_function_section): Likewise. Remove the decl argument.
2432 (unlikely_text_section_p, switch_to_section): New functions.
2433 (output_section_asm_op): New function.
2434 (set_named_section_flags, named_section_flags, named_section_real)
2435 (named_section_first_declaration): Delete.
2436 (default_select_section, default_elf_select_section): Return a section.
2437 (default_elf_select_section_1, default_function_rodata_section)
2438 (default_no_function_rodata_section, default_select_rtx_section)
2439 (default_elf_select_rtx_section): Likewise.
2440 * rtl.h (in_data_section): Delete.
2441 * sdbout.c (sdbout_one_type): Use switch_to_section.
2442 * system.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Poison.
2443 (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Poison.
2444 (TARGET_ASM_EH_FRAME_SECTION): Poison.
2445 * target-def.h (TARGET_ASM_INIT_SECTIONS): New macro.
2446 (TARGET_ASM_EXCEPTION_SECTION, TARGET_ASM_EH_FRAME_SECTION): Delete.
2447 (TARGET_ASM_OUT): Update after above changes.
2448 * target.h (init_sections): New hook.
2449 (exception_section, eh_frame_section): Delete.
2450 (select_section, select_rtx_section, function_rodata_section): Return
2451 a section rather than emitting assembly code.
2452 * varasm.c (text_section, data_section, readonly_data_section)
2453 (ctors_section, dtors_section, bss_section, init_section)
2454 (fini_section): Turn into section pointers.
2455 (sdata_section, sbss_section, exception_section): New variables.
2456 (eh_frame_section): New variable.
2457 (in_section): Make global and turn into a section pointer.
2458 (last_text_section): Turn into a section pointer.
2459 (unnamed_sections): New variable.
2460 (in_named_name, last_text_section_name): Delete.
2461 (EXTRA_SECTION_FUNCTIONS): Delete.
2462 (in_named_entry): Delete.
2463 (section_htab): New variable, replacing...
2464 (in_named_htab): ...this deleted variable.
2465 (section_entry_eq, section_entry_hash): New functions, based on...
2466 (in_named_entry_eq, in_named_entry_hash): ...these deleted functions.
2467 (get_unnamed_section, get_section): New functions.
2468 (unlikely_text_section): Return a section instead of emitting
2470 (in_text_section, in_unlikely_text_section, in_data_section): Delete.
2471 (get_named_section_flags, named_section_first_declaration): Delete.
2472 (unlikely_text_section_p): New function.
2473 (named_section_real, named_section): Delete.
2474 (get_named_section): New function.
2475 (asm_output_bss, asm_output_aligned_bss): Use switch_to_section.
2476 (function_section): Return a section rather than emitting
2478 (current_function_section): Likewise. Remove argument. Use
2479 last_text_section if nonnull, otherwise use function_section.
2480 (default_function_rodata_section): Return a section rather than
2481 emitting assembly code. Use get_section.
2482 (default_no_function_rodata_section): Return a section rather than
2483 emitting assembly code.
2484 (variable_section): Use switch_to_section and get_named_section.
2485 (mergeable_string_section): Return a section rather than emitting
2486 assembly code. Use get_section. Make static. Don't take special
2487 countermeasures for empty strings.
2488 (mergeable_constant_section): Return a section rather than emitting
2489 assembly code. Use get_section.
2490 (default_named_section_asm_out_destructor): Use switch_to_section
2492 (default_dtor_section_asm_out_destructor): Use switch_to_section.
2493 (default_named_section_asm_out_constructor): Use switch_to_section
2495 (default_ctor_section_asm_out_constructor): Use switch_to_section.
2496 (assemble_start_function): Likewise. Set last_text_section to
2497 NULL rather than no_section. Change the type of save_section.
2498 (assemble_zeros, assemble_variable): Use the section flags to detect
2499 whether or not a section is text.
2500 (assemble_static_space): Use switch_to_section.
2501 (assemble_trampoline_template): Likewise.
2502 (output_constant_def_contents): Use switch_to_section and
2504 (output_constant_pool_1): Use switch_to_section. Use the section
2505 flags to see whether sections contain mergeable data.
2506 (init_varasm_once): Initialize section_htab instead of in_named_htab.
2507 Initialize new section variables. Call TARGET_ASM_INIT_SECTIONS.
2508 (default_elf_asm_named_section): Use SECTION_DECLARED to detect
2509 whether a section has already been declared.
2510 (default_select_section, default_elf_select_section): Return a
2511 section rather than emitting assembly code.
2512 (default_elf_select_section_1): Likewise. Use bss_section for
2513 SECCAT_BSS if nonnull. Use get_named_section.
2514 (default_select_rtx_section): Return a section rather than
2515 emitting assembly code.
2516 (default_elf_select_rtx_section): Likewise. Use get_named_section.
2517 (file_end_indicate_exec_stack): Use switch_to_section and get_section.
2518 (output_section_asm_op, switch_to_section): New functions.
2519 * vmsdbgout.c (vmsdbgout_finish): Use switch_to_section and
2522 * doc/tm.texi: Expand the introduction to the sections documentation.
2523 (TRAMPOLINE_SECTION): Document new interface.
2524 (SDATA_SECTION_ASM_OP): Document new macro.
2525 (READONLY_DATA_SECTION): Delete.
2526 (SDATA_SECTION_ASM_OP): Document new macro.
2527 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2528 (TARGET_ASM_INIT_SECTIONS): Document new hook.
2529 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_FUNCTION_RODATA_SECTION)
2530 (TARGET_ASM_SELECT_RTX_SECTION): Adjust for new interface.
2531 (TARGET_EXCEPTION_SECTION, TARGET_EH_FRAME_SECTION): Delete.
2533 2005-12-07 Alan Modra <amodra@bigpond.net.au>
2535 * gcc.c (init_gcc_specs): Match braces inside conditionally
2538 2005-12-06 Geoffrey Keating <geoffk@apple.com>
2540 * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): New.
2542 2005-12-06 Aldy Hernandez <aldyh@redhat.com>
2545 * tree.c (integer_all_onesp): Always return true if all bits on.
2547 * testsuite/g++.dg/init/array0.C: New.
2549 2005-12-06 Adrian Straetling <straetling@de.ibm.com>
2551 * doc/md.texi: Adapt to implementation.
2553 2005-12-06 Andreas Schwab <schwab@suse.de>
2555 * opts.c (decode_options): Fix typo in message.
2557 2005-12-06 Alan Modra <amodra@bigpond.net.au>
2560 * longlong.h: Merge PPC tests from upstream.
2562 2005-12-06 Richard Guenther <rguenther@suse.de>
2564 * fold-const.c (fold_convert): Do not build and fold
2565 CONVERT_EXPR, but always use NOP_EXPR.
2567 2005-12-06 Jan Beulich <jbeulich@novell.com>
2569 * config/i386/i386.c (builtin_description): Use MASK_SSE2 for
2570 __builtin_ia32_paddq and __builtin_ia32_psubq.
2571 (ix86_init_mmx_sse_builtins): Use MASK_SSE|MASK_3DNOW_A for
2572 __builtin_ia32_pshufw.
2573 * config/i386/i386.md (mmx_adddi3, mmx_subdi3): Depend on TARGET_SSE2.
2575 2005-12-05 James E Wilson <wilson@specifix.com>
2578 * opts.c (decode_options): Turn off partitioning if flag_unwind_tables
2581 2005-12-05 Daniel Berlin <dberlin@dberlin.org>
2583 * print-tree.c (print_node): Ditto.
2584 * tree-dfa.c (add_referenced_var): Tag's don't have DECL_INITIAL.
2585 * tree-dump.c (dequeue_and_dump): Check for decl_common structure
2586 before accessing DECL_ARTIFICIAL.
2587 Handle new tag tree codes.
2588 * tree-flow-inline.h (clear_call_clobbered): Update for tag
2590 (unmodifiable_var_p): Ditto.
2591 * tree-flow.h (mem_tag_kind): Remove.
2592 (struct var_ann_d): Remove mem_tag_kind member.
2593 * tree-gimple.c (is_gimple_reg): Tags are not gimple registers.
2594 * tree-pretty-print.c (dump_generic_node): Handle memory tags.
2595 * tree-ssa-alias.c (init_alias_info): Update for memory tag changes.
2596 (group_aliases): Ditto.
2597 (setup_pointers_and_addressables): Ditto.
2598 (is_escape_site): Ditto.
2599 (may_alias_p): Ditto.
2600 (create_tag_raw): New function.
2601 (create_memory_tag): Use it.
2602 (dump_alias_info): Update for tags.
2603 (may_be_aliased): Ditto.
2604 (add_type_alias): Ditto.
2605 (new_type_alias): Ditto.
2606 (create_sft): Ditto.
2607 (create_structure_vars): Ditto.
2608 * tree-ssa-ccp.c (get_default_value): Ditto.
2609 * tree-ssa-operands.c (get_expr_operands): Ditto.
2610 (add_stmt_operand): Ditto.
2611 (add_call_clobber_ops): Remove duplicated condition.
2612 * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
2614 * tree-tailcall.c (suitable_for_tail_opt_p): Ditto.
2615 * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
2616 * tree.c (init_ttree): Update structures for new tree codes.
2617 (tree_code_size): Update sizes for new tree codes.
2618 (make_node_stat): Don't try to set common things on minimal
2620 (tree_node_structure): Update for tags.
2621 (is_global_var): Ditto.
2622 * tree.def: Add new tree codes.
2623 * tree.h (MTAG_P): New macro.
2624 (TREE_MEMORY_TAG_CHECK): Ditto.
2625 (SSA_VAR_P): Update for tags.
2626 (struct tree_memory_tag): New structure.
2627 (MTAG_GLOBAL): New macro.
2628 (union tree_node): Add memory tag member.
2629 * treestruct.def (TS_MEMORY_TAG): New.
2631 2005-12-05 Dale Johannesen <dalej@apple.com>
2633 * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Fix to match
2634 what was approved (PR 24323).
2636 2005-12-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2638 * doc/c-tree.texi (Function Bodies): Remove description of
2641 2005-12-05 Joseph S. Myers <joseph@codesourcery.com>
2643 * doc/libgcc.texi (__floatunsisf, __floatunsidf, __floatunsitf,
2644 __floatunsixf, __floatundisf, __floatundidf, __floatunditf,
2645 __floatundixf, __floatuntisf, __floatuntidf, __floatuntitf,
2646 __floatuntixf, __powisf2, __powidf2, __powixf2, __mulsc3,
2647 __muldc3, __multc3, __mulxc3, __divsc3, __divdc3, __divtc3,
2648 __divxc3): Document.
2650 2005-12-05 Geoffrey Keating <geoffk@apple.com>
2652 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Preserve
2654 * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Define to
2655 hook_bool_void_false.
2656 (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
2657 * config/darwin.c (darwin_cxx_determine_class_data_visibility): New.
2659 * config/darwin.c (machopic_select_section): It's not defined
2660 as weak if it's only marked as weak_import.
2662 * config/darwin-protos.h (darwin_cxx_determine_class_data_visibility):
2665 * varasm.c (default_binds_local_p_1): Weakrefs don't bind locally.
2666 A hidden weak object does bind locally. Strong linkonce data
2667 counts like any other strong symbol for binding.
2668 (weak_finish_1): Don't specially handle weakrefs, they no longer
2670 (assemble_alias): Weakrefs can't be TREE_PUBLIC yet.
2671 * c-common.c (handle_alias_attribute): Allow static aliases
2673 (handle_weakref_attribute): Don't call declare_weak on weakrefs.
2674 * gthr-dce.h: Make weakrefs static.
2675 * gthr-tpf.h: Likewise.
2676 * gthr-solaris.h: Likewise.
2677 * gthr-posix.h: Likewise.
2678 * gthr-posix95.h: Likewise.
2679 * config/darwin.c (darwin_encode_section_info): static weakref
2680 variables are not necessarily defined in this translation unit.
2681 * doc/extend.texi (Function Attributes): Mention that an alias
2682 attribute creates a definition for the thing it's attached to.
2683 Change the documentation for weakref to say that the thing
2684 it's attached to must be static.
2686 * config/rs6000/host-darwin.c (segv_handler): Unblock SEGV so
2687 we don't go into an infinite loop.
2689 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
2691 * config/rs6000/predicates.md (logical_const_operand): Split
2692 out of logical_operand.
2693 (logical_operand): Use it.
2694 * config/rs6000/rs6000.md (cmp -> xor peephole2): Use
2695 logical_const_operand.
2697 2005-12-05 Jan Beulich <jbeulich@novell.com>
2699 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_CMPNEPS
2700 and IX86_BUILTIN_CMPNESS.
2701 (ix86_init_mmx_sse_builtins): Remove ti_ftype_ti_ti.
2702 * config/i386/i386.h (ALIGN_MODE_128): Don't check TFmode explicitly.
2703 * config/i386/i386.md (movti_internal): Correct type attribute.
2704 Simplify mode attribute.
2705 (movti_rex64, movsf_1, movdf_nointeger, movdf_integer, movtf_internal):
2706 Correct type attribute.
2707 (absxf2): Correct operator.
2708 * config/i386/mmx.md (mov<mode>_internal_rex64, mov<mode>_internal,
2709 movv2sf_internal_rex64, movv2sf_internal): Correct type attribute.
2710 * config/i386/sse.md (mov<mode>_internal, movv2df_internal): Simplify
2712 (sse2_vmsqrtv2df2): Correct mode attribute.
2714 2005-12-05 Jan Beulich <jbeulich@novell.com>
2716 * config/ia64/ia64.md (rotlsi3_internal): Don't split if rotating by
2717 16 bits. Provide insn pattern for this case.
2719 2005-12-05 Jan Beulich <jbeulich@novell.com>
2721 * libgcc2.c (__popcountSI2): Don't use wide type for iterator and
2723 (__popcountDI2): Likewise.
2725 2005-12-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2728 * pa/pa.c (pa_hpux_init_libfuncs): Add _U_Qfcnvxf_usgl_to_quad and
2729 _U_Qfcnvxf_udbl_to_quad to set of initialized libfuncs.
2730 * pa/quadlib.c (_U_Qfcnvxf_usgl_to_quad, _U_Qfcnvxf_udbl_to_quad): New
2733 2005-12-04 Joseph S. Myers <joseph@codesourcery.com>
2735 * c-typeck.c (null_pointer_constant_p): New function.
2736 (build_conditional_expr, build_c_cast, convert_for_assignment,
2737 build_binary_op): Use it.
2739 2005-12-04 Joseph S. Myers <joseph@codesourcery.com>
2741 * c-common.c (binary_op_error): Do not allow NOP_EXPR.
2742 (c_common_truthvalue_conversion): Handle NOP_EXPR the same as
2744 (check_function_arguments_recurse): Allow both NOP_EXPR and
2745 CONVERT_EXPR but check conversions preserve precision.
2746 * c-typeck.c (pointer_diff): Allow both NOP_EXPR and CONVERT_EXPR
2747 but check conversions preserve precision.
2748 (build_unary_op): Don't allow NOP_EXPR. Use gcc_unreachable () in
2751 2005-12-04 Roger Sayle <roger@eyesopen.com>
2754 * common.opt (Wstring-literal-comparison): New command line option.
2755 * c-opts.c (c_common_handle_option): Set it with -Wall.
2756 * c-typeck.c (parser_build_binary_op): Issue warning if either
2757 operand of a comparison operator is a string literal, except for
2758 testing equality or inequality against NULL.
2760 * doc/invoke.texi: Document new -Wstring-literal-comparison option.
2762 2005-12-03 Joseph S. Myers <joseph@codesourcery.com>
2764 * c-common.c (c_sizeof_or_alignof_type): Use fold_convert instead
2765 of building a NOP_EXPR.
2766 (c_alignof_expr): Likewise. Handle CONVERT_EXPR the same as
2768 * c-convert.c (convert): Use fold_convert instead of building
2769 NOP_EXPRs and CONVERT_EXPRs directly. Don't special case
2770 c_objc_common_truthvalue_conversion returning a NOP_EXPR. Remove
2772 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Handle
2773 NOP_EXPR the same as CONVERT_EXPR.
2774 * c-typeck.c (build_function_call): Use fold_convert instead of
2775 building a NOP_EXPR directly.
2776 (build_compound_expr): Handle NOP_EXPR the same as CONVERT_EXPR.
2778 2005-12-03 Alan Modra <amodra@bigpond.net.au>
2780 PR rtl-optimization/25197
2781 * dwarf2out.c (dwarf2out_frame_debug_expr <rule 12>): Assert we
2784 2005-12-02 Stuart Hastings <stuart@apple.com>
2786 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove -fpic
2789 2005-12-03 Joseph S. Myers <joseph@codesourcery.com>
2791 * c-typeck.c (default_function_array_conversion,
2792 build_function_call): Allow for CONVERT_EXPR as well as NOP_EXPR.
2793 (build_conditional_expr): Apply integer_zerop to orig_op1 and
2794 orig_op2. Don't check them for NOP_EXPR.
2795 (build_c_cast, convert_for_assignment): Don't check for NOP_EXPR
2796 around integer zero.
2798 2005-12-03 Alan Modra <amodra@bigpond.net.au>
2800 * config/rs6000/rs6000.c (rs6000_stack_t): Remove toc_save_p,
2801 toc_save_offset, toc_size, lr_size.
2802 (rs6000_stack_info): Use memset rather than bss struct copy to init.
2803 Test rs6000_ra_ever_killed last in condition setting lr_save_p.
2804 Adjust for removal of unused rs6000_stack_t fields.
2805 (debug_stack_info): Adjust.
2806 (rs6000_ra_ever_killed): Expand FIND_REG_INC_NOTE. Test for calls
2807 first, and don't bother checking for set/inc of lr on sibcalls.
2808 (rs6000_emit_epilogue): Tidy code restoring stack pointer.
2810 2005-12-02 Jakub Jelinek <jakub@redhat.com>
2813 * config/i386/i386.md (movqi_1): Only force imovx for alternative
2814 5 if operand 1 is not aligned. Undo previous constraint change.
2815 * config/i386/predicates.md (aligned_operand): Use MEM_ALIGN.
2817 2005-12-02 Richard Guenther <rguenther@suse.de>
2819 * tree.h (build): Remove prototype.
2820 (build, _buildN1, _buildN2, _buildC1, _buildC2): Remove macros.
2821 * tree.c (build): Remove.
2822 (build0_stat): Update comment.
2824 2005-12-02 Richard Guenther <rguenther@suse.de>
2826 * tree-ssa-loop-im.c (schedule_sm): Use buildN instead of build.
2827 * tree-complex.c (update_complex_assignment, expand_complex_div_wide):
2829 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref,
2830 maybe_fold_offset_to_component_ref): Likewise.
2831 * tree-ssa-dom.c (thread_across_edge,
2832 simplify_rhs_and_lookup_avail_expr,
2833 find_equivalent_equality_comparison, record_equivalences_from_stmt):
2835 * gimple-low.c (lower_function_body, lower_return_expr): Likewise.
2836 * tree-eh.c (do_return_redirection, honor_protect_cleanup_actions,
2837 lower_try_finally_switch): Likewise.
2838 * tree-if-conv.c (add_to_dst_predicate_list,
2839 replace_phi_with_cond_modify_expr, ifc_temp_var): Likewise.
2840 * gimplify.c (internal_get_tmp_var, gimple_build_eh_filter,
2841 voidify_wrapper_expr, build_stack_save_restore, gimplify_bind_expr,
2842 gimplify_return_expr, gimplify_decl_expr, gimplify_switch_expr,
2843 gimplify_case_label_expr, gimplify_exit_expr, gimplify_self_mod_expr,
2844 shortcut_cond_r, shortcut_cond_expr, gimplify_cond_expr,
2845 gimplify_init_ctor_eval, gimplify_init_constructor,
2846 gimplify_variable_sized_compare, gimplify_boolean_expr,
2847 gimplify_cleanup_point_expr, gimple_push_cleanup, gimplify_target_expr,
2848 gimplify_expr, gimplify_body, gimplify_function_tree,
2849 force_gimple_operand): Likewise.
2850 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
2851 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for,
2852 mx_register_decls): Likewise.
2853 * tree-nested.c (init_tmp_var, save_tmp_var, get_static_chain,
2854 get_frame_field, finalize_nesting_tree_1): Likewise.
2855 * tree-inline.c (setup_one_parameter): Likewise.
2856 * tree-vect-transform.c (vectorizable_condition): Likewise.
2857 * tree-outof-ssa.c (insert_copy_on_edge, insert_backedge_copies):
2859 * tree-profile.c (tree_gen_edge_profiler): Likewise.
2860 * tree-cfg.c (factor_computed_gotos, gimplify_val): Likewise.
2861 * c-parser.c (c_parser_if_body, c_parser_switch_statement): Likewise.
2862 * tree-chrec.h (build_polynomial_chrec): Likewise.
2864 2005-12-02 Richard Guenther <rguenther@suse.de>
2866 * config/alpha/alpha.c (alpha_va_start, alpha_gimplify_va_arg_1i,
2867 alpha_gimplify_va_arg): Use buildN and fold_buildN where applicable.
2868 * config/frv/frv.c (frv_expand_builtin_va_start): Likewise.
2869 * config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise.
2870 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2871 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
2872 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg):
2874 * config/sh/sh.c (sh_va_start, sh_gimplify_va_arg_expr,
2875 sh_adjust_unroll_max): Likewise.
2876 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
2877 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2878 * config/xtensa/xtensa.c (xtensa_va_start, xtensa_gimplify_va_arg_expr):
2880 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
2882 * config/mips/mips.c (mips_va_start, mips_gimplify_va_arg_expr):
2885 2005-12-02 Richard Guenther <rguenther@suse.de>
2887 * tree-vrp.c (build_assert_expr_for, process_assert_insertions_for,
2888 simplify_cond_using_ranges): Use buildN instead of build.
2889 * tree-tailcall.c (adjust_accumulator_values,
2890 adjust_return_value): Likewise.
2891 * tree-sra.c (generate_one_element_ref, generate_copy_inout,
2892 generate_element_copy, generate_element_zero,
2893 generate_one_element_init): Likewise.
2894 * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Likewise.
2895 * lambda-code.c (gcc_loop_to_lambda_loop, lbv_to_gcc_expression,
2896 lle_to_gcc_expression, lambda_loopnest_to_gcc_loopnest,
2897 perfect_nestify): Likewise.
2899 2005-12-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2901 * pa.c (pa_secondary_reload): Revise initialization of variable regno.
2903 2005-12-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2905 * ggc.h (GGC_RESIZEVEC): New.
2907 2005-12-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2909 * gcc.c (execute): Improve readability.
2911 2005-12-02 Richard Guenther <rguenther@suse.de>
2913 * tree-cfg.c (mark_used_vars): New function.
2914 (dump_function_to_file): Dump only used VAR_DECLs.
2916 2005-12-02 Richard Guenther <rguenther@suse.de>
2918 * convert.c (convert_to_integer): Fix compare for nonpositive
2919 constant to use tree_int_cst_sgn <= 0.
2921 2005-12-02 Richard Guenther <rguenther@suse.de>
2923 * convert.c (convert_to_integer): Use fold_convert instead
2924 of fold_build1 (NOP_EXPR, ...). Use tree_int_cst_sgn < 0
2925 instead of comparing against 0. Use build_int_cst instead
2926 of converting integer_zero_node.
2928 2005-12-02 Richard Guenther <rguenther@suse.de>
2930 * tree-pretty-print.c (op_symbol): Handle LROTATE_EXPR
2933 2005-12-02 Alan Modra <amodra@bigpond.net.au>
2936 * combine.c (simplify_logical <IOR>): Simplify more patterns to
2939 2005-12-02 Alan Modra <amodra@bigpond.net.au>
2942 * function.c (expand_function_end): Emit blockage for unwinder
2945 2005-12-01 Roger Sayle <roger@eyesopen.com>
2947 * tree.h (TREE_OVERFLOW): Make this flag/predicate specific to
2948 constant nodes, i.e. INTEGER_CST, REAL_CST, etc...
2949 * tree-vrp.c (compare_values): Only check TREE_OVERFLOW for
2950 integer constant comparisons.
2952 2005-12-02 Jon Grimm <jgrimm2@us.ibm.com>
2953 Janis Johnson <janis187@us.ibm.com>
2954 David Edelsohn <dje@watson.ibm.com>
2955 Ben Elliston <bje@au.ibm.com>
2957 * dfp.h, dfp.c: New files.
2958 * Makefile.in (DECNUM, DECNUMINC, LIBDECNUMBER): New variables.
2959 (DECNUM_H): Likewise.
2960 (LIBDEPS, LIBS, BACKEND): Append $(LIBDECNUMBER).
2961 (INCLUDES): Append $(DECNUMINC).
2962 (OBJS-common): Add dfp.o.
2964 * real.h (EXP_BITS): Pinch one bit to ..
2965 (struct real_value): Add decimal field.
2966 (real_format): Change table size, update documentation.
2967 (REAL_MODE_FORMAT): Update for to handle float, decimal float.
2968 (real_from_string3): Declare.
2969 (decimal_single_format): Declare.
2970 (decimal_double_format): Declare.
2971 (decimal_quad_format): Declare.
2972 (REAL_VALUE_TO_TARGET_DECIMAL32): New.
2973 (REAL_VALUE_TO_TARGET_DECIMAL64): New.
2974 (REAL_VALUE_TO_TARGET_DECIMAL128): New.
2975 * real.c: Include dfp.h.
2976 (normalize): Early return for decimal floats.
2977 (do_add): Zero decimal field.
2978 (do_compare): Call do_decimal_compare for decimal floats.
2979 (do_fix_trunc): Likewise, call decimal_do_fix_trunc.
2980 (real_arithmetic): Call decimal_real_arithmetic for decimal
2981 floating point operands.
2982 (real_identical): If a and b are of differing radix, return false.
2983 (real_to_integer): Call decimal_real_to_integer if the value is a
2985 (real_to_integer2): Likewise, call decimal_real_to_integer2.
2986 (real_to_decimal): Likewise, call decimal_real_to_decimal.
2987 (real_to_hexadecimal): Place "N/A" in the return string for
2989 (real_from_string3): New variant, given a mode.
2990 (real_maxval): Use decimal_real_maxval for decimal floats.
2991 (round_for_format): Use decimal_round_for_format for decimals.
2992 (real_convert): Use decimal_real_convert where appropriate.
2993 (significand_size): Handle base 10.
2994 (encode_decimal_single, decode_decimal_single,
2995 encode_decimal_double, decode_decimal_double, encode_decimal_quad,
2996 decode_decimal_quad): New functions.
2997 (decimal_single_format): New.
2998 (decimal_double_format): New.
2999 (decimal_quad_format): New.
3000 * machmode.def: Add SD, DD and TD decimal floating point modes.
3001 * machmode.h (FLOAT_MODE_P, SCALAR_FLOAT_MODE_P, MODES_WIDEN_P):
3002 Include MODE_DECIMAL_FLOAT.
3003 (DECIMAL_FLOAT_MODE_P): New.
3004 * mode-classes.def (MODE_DECIMAL_FLOAT): New mode class.
3005 * genmodes.c (struct mode_data): Add counter field.
3006 (struct mode_data): Update comment for format.
3007 (blank_mode): Initialise counter field.
3008 (new_mode): Increment counter field for each mode defined.
3009 (complete_mode): Handle MODE_DECIMAL_FLOAT, update check for mode
3011 (make_complex_modes): Handle modes containing `D'.
3012 (DECIMAL_FLOAT_MODE, FRACTIONAL_DECIMAL_FLOAT_MODE): New.
3013 (make_decimal_float_mode): New.
3014 (reset_float_format): Handle MODE_DECIMAL_FLOAT.
3015 (cmp_modes): Compare counter field if other characteristics
3017 (emit_real_format_for_mode): Support formats for decimal floats.
3018 * doc/rtl.texi (Machine Modes): Document SD, DD and TDmodes.
3019 Document MODE_DECIMAL_FLOAT.
3021 2005-12-02 Alan Modra <amodra@bigpond.net.au>
3023 * simplify-rtx.c (simplify_plus_minus): Do simplify constants.
3026 2005-12-01 Richard Henderson <rth@redhat.com>
3028 * optabs.c (expand_vec_cond_expr): Use EXPAND_NORMAL.
3030 2005-12-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3032 * builtins.def (BUILT_IN_PUTC, BUILT_IN_PUTC_UNLOCKED): New.
3034 * config/pa/pa.c (pa_init_builtins): If we detect
3035 DONT_HAVE_FPUTC_UNLOCKED, set builtin fputc_unlocked to
3038 2005-12-01 Richard Guenther <rguenther@suse.de>
3040 * fold-const.c (fold_binary): Use fold_build2, not
3043 2005-12-01 Nathan Sidwell <nathan@codesourcery.com>
3045 * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves.
3047 * vec.h (VEC_block_remove): New.
3049 2005-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
3052 * c-common.c (lvalue_error): Fix wording.
3054 2005-12-01 Richard Guenther <rguenther@suse.de>
3056 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Fix
3057 thinko in last patch.
3059 2005-12-01 Geoffrey Keating <geoffk@apple.com>
3061 * config/t-slibgcc-darwin (SHLIB_LINK): Use -single_module rather
3062 than -flat_namespace.
3064 2005-12-01 Ben Elliston <bje@au.ibm.com>
3066 * mklibgcc.in: Parameterise the script to build soft float
3067 functions by iterating over each type, rather than cloning the
3070 2005-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3073 * builtins.c (fold_builtin_fputs): Defer check for missing
3074 replacement functions.
3076 2005-11-30 Kean Johnston <jkj@sco.com>
3078 * config/i386/i386.c: Check the value of SUPPORTS_ONE_ONLY, not
3079 simply its presense in case targets #define SUPPORTS_ONE_ONLY 0.
3081 2005-11-30 Richard Guenther <rguenther@suse.de>
3083 PR tree-optimization/22501
3084 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
3085 function split out from ...
3086 (forward_propagate_addr_expr): ... here. Use it to propagate
3087 ADDR_EXPRs to all uses.
3089 2005-11-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3091 * tree.h (CASE_FLT_FN, CASE_INT_FN): New macros.
3092 * builtins.c (expand_builtin_mathfn): Use them.
3093 (expand_builtin_mathfn_2): Likewise.
3094 (expand_builtin_mathfn_3): Likewise.
3095 (expand_builtin_int_roundingfn): Likewise.
3096 (expand_builtin): Likewise.
3097 (integer_valued_real_p): Likewise.
3098 (fold_builtin_int_roundingfn): Likewise.
3099 (fold_builtin_bitop): Likewise.
3100 (fold_builtin_logarithm): Likewise.
3101 (fold_builtin_1): Likewise.
3102 * convert.c (convert_to_integer): Likewise.
3103 * fold-const.c (negate_mathfn_p): Likewise.
3104 (tree_expr_nonnegative_p): Likewise.
3106 2005-11-30 Dale Johannesen <dalej@apple.com>
3107 Andrew Pinski <pinskia@physics.uc.edu>
3109 * combine.c (find_split_point): Sign extend bitmask
3110 when changing bitfield assignment to IOR of AND.
3112 2005-11-30 Nathan Sidwell <nathan@codesourcery.com>
3114 * config/ms1/ms1.md (decrement_and_branch_until_zero): Add early
3115 clobber to scratch reg.
3116 (*decrement_and_branch_until_zero_no_clobber): Remove.
3117 (decrement_and_branch peephole): Add dummy scratch reg to pattern.
3118 (mulhish3): Use TARGET_MS1_16_003, TARGET_MS2.
3119 * config/ms1/ms1.opt (mmul): Remove.
3120 * config/ms1/ms1.h (ASM_SPEC): Cope with uppercase arch names.
3121 (LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Default to 16-002.
3123 2005-11-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3124 Bernd Schmidt <bernd.schmidt@analog.com>
3126 * pa/predicates.md (symbolic_operand): Add comment.
3127 * pa/pa.md (reload_insi_r1, reload_indi_r1): New reload expanders.
3128 * pa/pa-protos.h (pa_secondary_reload_class): Delete.
3129 * pa/pa.c (TARGET_SECONDARY_RELOAD): Define.
3130 (pa_secondary_reload_class): Delete.
3131 (pa_secondary_reload): New function derived from SECONDARY_RELOAD_CLASS
3132 and pa_secondary_reload_class. Reorder some checks. Update inline
3133 copy of symbolic operand.
3134 * pa/pa.h (SECONDARY_RELOAD_CLASS): Delete.
3136 2005-11-30 Nathan Sidwell <nathan@codesourcery.com>
3138 * loop-doloop.c (add_test): Only add jump notes if we did emit a
3141 2005-11-30 Jeff Law <law@redhat.com>
3143 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Properly
3144 handle SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3146 2005-11-30 Jakub Jelinek <jakub@redhat.com>
3148 * config/ia64/ia64.c (ia64_expand_tls_address): Add ORIG_OP1 argument.
3149 Move ADDEND_{HI,LO} computation into TLS_MODEL_INITIAL_EXEC case.
3150 (ia64_expand_move): Adjust caller.
3152 * config/ia64/ia64.c (ia64_expand_atomic_op): Only use
3153 fetchadd{4,8}.acq instruction if CODE is PLUS or MINUS, for MINUS
3156 2005-11-30 Paolo Bonzini <bonzini@gnu.org>
3158 * simplify-rtx.c (simplify_plus_minus): Remove final parameter.
3159 Always produce an output if we can remove NEGs or canonicalize
3160 (minus (minus ...)) expressions. Provide a fast path for the
3162 (simplify_gen_binary): Do not call simplify_plus_minus.
3163 (simplify_binary_operation_1): Reassociate at the end of the
3166 2005-11-29 Evan Cheng <evan.cheng@apple.com>
3168 * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Rewrite using high/low
3169 moves and unpack to speed up.
3171 2005-11-29 David S. Miller <davem@sunset.davemloft.net>
3173 * config/sparc/sparc.c (gen_compare_reg): Kill 2nd and 3rd
3174 argument, they are always sparc_compare_op0 and sparc_compare_op1.
3175 (gen_v9_scc): Update callers.
3176 * config/sparc/sparc.md: Likewise.
3177 * config/sparc/sparc-protos.h: Update extern declaration.
3179 * tree-into-ssa.c (rewrite_into_ssa): Fix comment typo.
3181 2005-11-29 Andrew Pinski <pinskia@physics.uc.edu>
3183 * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
3186 2005-11-29 Andrew Pinski <pinskia@physics.uc.edu>
3188 * fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.
3189 (fold_unary) <case NEGATE_EXPR>: Move -(~a) transformation to ...
3190 (negate_expr): Here.
3192 2005-11-29 Ben Elliston <bje@au.ibm.com>
3194 * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN):
3195 Fix typo in comment.
3197 2005-11-29 Ben Elliston <bje@au.ibm.com>
3199 * Makefile.in (clean-target): Depend on clean-target-libgcc.
3200 (clean-target-libgcc): Import rule from the top-level Makefile.in.
3202 2005-11-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3206 * builtins.c (init_target_chars): New.
3207 (expand_builtin_printf, expand_builtin_fprintf,
3208 expand_builtin_sprintf, fold_builtin_sprintf,
3209 maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
3210 fold_builtin_snprintf_chk, fold_builtin_printf,
3211 fold_builtin_fprintf): Check for matching format strings using
3214 2005-11-29 Paul Brook <paul@codesourcery.com>
3216 * config.gcc: Do not use fixproto on m68k-elf.
3218 2005-11-28 Roger Sayle <roger@eyesopen.com>
3220 * expmed.c (div_cost): Replace with...
3221 (sdiv_cost, udiv_cost): New.
3222 (init_expmed): Initialize sdiv_cost and udiv_cost, not div_cost.
3223 Rename the div and mod fields, used to initialize sdiv_pow2_cheap
3224 and smod_pow2_cheap, to sdiv_32 and smod_32 to avoid confusion.
3225 (expand_divmod): Replace use of div_cost with either sdiv_cost
3226 or udiv_cost depending upon the signedness of the operation.
3228 2005-11-28 Alexandre Oliva <aoliva@redhat.com>
3231 * config/darwin.c (machopic_indirection_name,
3232 machopic_output_indirection): Follow transparent alias chain.
3234 2005-11-28 Alexandre Oliva <aoliva@redhat.com>
3236 * varasm.c (ultimate_transparent_alias_target): Add comment.
3238 2005-11-28 Kazu Hirata <kazu@codesourcery.com>
3240 * config/m68k/m68k.c (notice_update_cc): Use SET_DEST and
3241 SET_SRC instead of XEXP where appropriate.
3243 2005-11-28 Joseph S. Myers <joseph@codesourcery.com>
3245 * config/fp-bit.c (isnan, isinf, pack_d, unpack_d): Use
3248 2005-11-28 Joseph S. Myers <joseph@codesourcery.com>
3250 * config/fp-bit.h (LSHIFT): Take shift count parameter.
3251 * config/fp-bit.c (_fpadd_parts): Shift in one go instead of one
3254 2005-11-28 Bernd Schmidt <bernd.schmidt@analog.com>
3256 * config/bfin/bfin.c (bfin_secondary_reload): Renamed from
3257 secondary_input_reload_class, made static. Adapt to new
3259 (secondary_output_reload_class): Delete.
3260 (TARGET_SECONDARY_RELOAD): New macro.
3261 * config/bfin/bfin.h (SECONDARY_INPUT_RELOAD_CLASS,
3262 SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
3264 2005-11-28 Nathan Sidwell <nathan@codesourcery.com>
3267 * c-decl.c (finish_struct): Only set DECL_PACKED on a field
3268 when its natural alignment is > BITS_PER_UNIT.
3269 * stor-layout.c (finalize_type_size): Revert my patch of 2005-08-08.
3270 * c-common.c (handle_packed_attribute): Ignore packing on a field
3271 whose type is naturally char aligned.
3273 2005-11-28 Richard Guenther <rguenther@suse.de>
3275 * c-common.c (strict_aliasing_warning): Handle all
3276 component-ref like accesses.
3278 2005-11-28 Roger Sayle <roger@eyesopen.com>
3279 Uros Bizjak <uros@kss-loka.si>
3282 * fold-const.c (fold binary) <RDIV_EXPR>: Optimize
3283 sin(x)/tan(x) as cos(x) and tan(x)/sin(x) as 1.0/cos(x)
3284 when flag_unsafe_math_optimizations is set and
3285 we don't care about NaNs or Infinities.
3287 Move x/expN(y) and x/pow(y,z) transformation into common
3288 flag_unsafe_math_optimizations section.
3290 2005-11-27 Mark Mitchell <mark@codesourcery.com>
3292 * gcc.c (main): Change type of argv to "char **".
3294 2005-11-28 Alan Modra <amodra@bigpond.net.au>
3296 * doc/invoke.texi (powerpc msdata-data): Static data doesn't go in
3297 small data sections.
3298 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Make global.
3299 * config/rs6000/rs6000-protos.h: (rs6000_elf_in_small_data_p): Declare.
3300 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Rename to..
3301 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ..this, adding extra parm. Don't
3302 output locals to sbss if !rs6000_elf_in_small_data_p.
3303 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above.
3305 2005-11-28 Alan Modra <amodra@bigpond.net.au>
3308 * config/rs6000/rs6000.c (legitimate_indexed_address_p): Allow pattern
3309 generated by reload.
3310 * config/rs6000/predicates.md (indexed_or_indirect_operand): Use
3311 indexed_or_indirect_address.
3312 (indexed_or_indirect_address): Don't test for base reg. Call
3313 address_operand last. Make it a special predicate.
3315 2005-11-27 Kazu Hirata <kazu@codesourcery.com>
3317 * config/m68k/m68k.c (notice_update_cc): Remove useless code.
3319 2005-11-27 Andrew Pinski <pinskia@physics.uc.edu>
3322 * fold-const.c (negate_expr_p): Add case for signed divides if overflow
3324 (negate_expr): Likewise.
3326 2005-11-27 Andreas Schwab <schwab@suse.de>
3328 * config/m68k/m68k.c: Reindent and fix whitespace, remove
3331 2005-11-27 Steven Bosscher <stevenb@suse.de>
3333 * cfgcleanup.c (try_crossjump_to_edge): Always split SRC2 if it
3334 has EH predecessor edges.