c++: new-expression is potentially constant in C++20
[official-gcc.git] / gcc / ChangeLog-2005
blobbd366c8dd6919641a4270439d1353466fd226e45
1 2005-12-31  Andrew Pinski  <pinskia@physics.uc.edu>
3         PR tree-opt/25612
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
10         VEC(int,heap).
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
39         rvuse_kill.
40         (RVUSE_IN): New macro.
41         (RVUSE_GEN): Ditto.
42         (RVUSE_KILL): Ditto.
43         (RVUSE_OUT): Ditto.
44         (modify_expr_node_pool): New function.
45         (pretemp): New.
46         (storetemp): Ditto.
47         (mergephitemp): Ditto.
48         (prephitemp): 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
55         have vuses.
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
59         cache.
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
82         types.
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
96         realify_fake_stores.
97         * tree-flow.h (vn_compute): Fix prototype.
98         (vn_add): Ditto.
99         (vn_lookup): Ditto.
100         (sort_vuses): New.
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
109         "constant".
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>
115         PR fortran/25586
116         * pa.md: Remove REG_POINTER check from REG+REG peephole2 floating-point
117         store patterns.
119 2005-12-29 Kenneth Zadeck <zadeck@naturalbridge.com>
121         * bitmap.c (bitmap_element_free, bitmap_element_link,
122         bitmap_elt_insert_after, bitmap_and, bitmap_and_compl,
123         bitmap_and_compl, bitmap_ior, bitmap_ior_into, bitmap_xor,
124         bitmap_xor_into): Added code to properly maintain the variants
125         associated with the CURRENT and HEAD fields.
126         (bitmap_popcount, bitmap_clear_range, bitmap_compl_and_into): New
127         functions.
128         * bitmap.h: Added defs for bitmap_popcount, bitmap_clear_range,
129         and bitmap_compl_and_into.
132 2005-12-29  Mike Stump  <mrs@apple.com>
134         * doc/invoke.texi (Objective-C and Objective-C++ Dialect Options
135         -fobjc-exceptions): Don't imply this doesn't work with the GNU
136         runtime.
138 2005-12-29  Nathan Sidwell  <nathan@codesourcery.com>
140         * varasm.c (get_section): Use gcc_assert.
142 2005-12-29  Paul Brook  <paul@codesourcery.com>
144         * config/m68k/m68k.h (RETURN_ADDR_RTX): Define.
145         * config/m68k/m68k.c (m68k_initial_elimination_offset): Remove FIXME.
146         Include offset due to FIRST_PARM_OFFSET.
148 2005-12-29  Paul Brook  <paul@codesourcery.com>
150         * config/m68k/lb1sf68.asm (__cmpdf2): Fix typo in immediate mask.
151         Create wrapper and rename body...
152         (__cmpdf2_internal): ... to this.  Return correct value for unordered
153         result.
154         (__cmpsf2): Create wrapper and rename body...
155         (__cmpsf2_internal): ... to this.  Return corerct value for unordered
156         result.
157         (__eqdf2, __nedf2, __gtdf2, __gedf2, __ltdf2, __ledf2): Use
158         __cmpdf2_internal.
159         (__eqsf2, __nesf2, __gtsf2, __gesf2, __ltsf2, __lesf2): Use
160         __cmpsf2_internal.
162 2005-12-29  Paul Brook  <paul@codesourcery.com>
164         * config/m68k/fpgnulib.c (__extendsfdf2): Handle negative zero.
165         (__truncdfsf2): Ditto.
166         (__extenddfxf2): Ditto.
167         (__truncxfdf2): Ditto.
168         * config/m68k/lb1sf68.asm (__addsf3): Return -0.0 for -0.0 + -0.0.
169         (__adddf3): Ditto.
171 2005-12-29  Daniel Jacobowitz  <dan@codesourcery.com>
172         Paul Brook  <paul@codesourcery.com>
174         * config/m68k/m68k.c (m68k_output_pic_call): Don't use bsr.l for
175         !TARGET_68020.
176         * config/m68k/t-m68kelf (EXTRA_PARTS): Remove.
177         (EXTRA_MULTILIB_PARTS): Set.
178         * config/m68k/t-uclinux (EXTRA_PARTS): Remove.
179         (EXTRA_MULTILIB_PARTS): Set.
181 2005-12-29  Alan Modra  <amodra@bigpond.net.au>
183         PR target/25572
184         * config/rs6000/rs6000.c (create_TOC_reference): Set regs_ever_live.
186 2005-12-28  Nathan Sidwell  <nathan@codesourcery.com>
188         * config.gcc (mt-*-*): Add --with-arch support.
189         (--with): Print accepted options on error.
190         * config/mt/mt.h (OPTION_DEFAULT_SPECS): Define.
192         * config/mt/mt.c (DEF_VEC_P(basic_block),
193         DEF_VEC_ALLOC_P(basic_bloc,heap)): Remove from here.
195 2005-12-28  Daniel Berlin  <dberlin@dberlin.org>
197         Fix PR tree-optimization/25394
198         * fold-const.c (fold_checksum_tree): Guard
199         portions of checksumming with correct structure checks.
201 2005-12-27  Kazu Hirata  <kazu@codesourcery.com>
203         * global.c, tree-ssa-pre.c: Move DEF_VEC_P(basic_block) and
204         DEF_VEC_ALLOC_P(basic_block,{gc,heap}) to ...
205         * basic-block.h: ... here.
207 2005-12-27  Roger Sayle  <roger@eyesopen.com>
209         * fold-const.c (int_const_binop): Return NULL_TREE when an expression
210         can't be evaluated at compile-time (instead of calling abort).
211         Return NULL_TREE for division (and modulus) by zero.
212         (const_binop): Return NULL_TREE for floating point operators that
213         aren't handled by real_arithmetic.
214         (fold_binary): Eliminate "wins" variable, and "binary" label, by
215         folding operators with constant operands early.  Assert that
216         operands are non-NULL.
218 2005-12-27  Kazu Hirata  <kazu@codesourcery.com>
220         * tree-vrp.c (extract_range_from_binary_expr): Use
221         build_int_cst instead of fold_convert.
223 2005-12-26  Mark Mitchell  <mark@codesourcery.com>
225         PR c++/23171, c++/23172, c++/25417.
226         * c-decl.c (compound_literal_number): Remove.
227         (build_compound_literal): Use set_compound_literal_name.
228         * c-common.c (compound_literal_number): New variable.
229         (set_compound_literal_name): New function.
230         * c-common.h (set_compound_literal_name): Declare.
232 2005-12-26  Kazu Hirata  <kazu@codesourcery.com>
234         PR tree-optimization/25125
235         * convert.c (convert_to_integer): Don't narrow the type of a
236         PLUS_EXPR or MINUS_EXPR if !flag_wrapv and the unwidened type
237         is signed.
239 2005-12-26  Graham Stott  <graham.stott@btinternet.com>
241         PR middle-end/25568
242         * combine.c (simplify_shift_const_1 <case PLUS>):Fix enable-checking
243         rtl bootstrap failure.
245 2005-12-25  Kazu Hirata  <kazu@codesourcery.com>
247         * final.c (compute_alignments): Make it static.
248         * gcse.c (gcse_main, bypass_jumps): Likewise.
249         * web.c (web_main): Likewise.
250         * output.h: Remove the prototype for compute_alignments.
251         * rtl.h: Remove the prototypes for web_main, gcse_main, and
252         bypass_jumps.
254 2005-12-24  Roger Sayle  <roger@eyesopen.com>
256         * expr.c (force_operand): Use expand_fix and expand_float to
257         implement integer <-> FP conversions instead of convert_to_mode.
259 2005-12-24  Mark Mitchell  <mark@codesourcery.com>
261         PR c++/23171
262         * varasm.c (initializer_constant_valid_p): An ADDR_EXPR of a
263         CONSTRUCTOR is invalid.
265 2005-12-23  Daniel Berlin  <dberlin@dberlin.org>
267         * tree-pass.h (pass_eliminate_useless_stores): Remove.
268         * tree-ssa-pre.c (is_copy_stmt): Ditto.
269         (follow_copies_till_vuse): Ditto.
270         (do_eustore): Ditto.
271         (gate_eustores): Ditto.
272         (pass_eliminate_useless_stores): Ditto.
273         * passes.c (init_optimization_passes): Ditto.
275 2005-12-23  Paolo Bonzini  <bonzini@gnu.org>
277         * combine.c (simplify_shift_const): Fix typo.  Use, whenever
278         applicable, simplify_const_binary_operation.
280         (simplify_shift_const): Leave only the fallback
281         case when no simplification is possible.  Extract to...
282         (simplify_shift_const_1): ... here.  Always create a new
283         RTX instead of substituting.  Remove the signed_count variable.
284         Return NULL_RTX if no substitution is possible.
286         (simplify_and_const_int): Leave only the fallback
287         case when no simplification is possible.  Extract to...
288         (simplify_and_const_int_1): ... here.  Always create a new
289         RTX instead of substituting.  Return NULL_RTX if no substitution
290         is possible.
292         (force_to_mode, simplify_comparison): Don't pass a non-NULL first
293         parameter to simplify_and_const_int and simplify_shift_const,
294         unless it is equal to the expected non-simplified result.
296 2005-12-23  Jakub Jelinek  <jakub@redhat.com>
298         PR target/25005
299         * regrename.c (replace_oldest_value_reg): Use validate_change with
300         IN_GROUP set to 1 instead of doing direct modifications.
301         (copyprop_hardreg_forward_1): Likewise.  If any replace_oldest_*
302         replacements have been performed on an instruction, use
303         apply_change_group ().
305 2005-12-23  Hans-Peter Nilsson  <hp@axis.com>
307         * config/cris/arit.c (do_31div): Clarify what "31" refers to.
308         [L_divsi3] (__Udiv): Don't use as inline function.
309         [L_modsi3] (__Umod): Ditto.
310         (__Div): Rearrange to call do_31div directly instead of __Udiv.
311         (__Mod): Similarly regarding __Umod.
313         PR target/24342
314         * config/cris/cris.c (cris_split_movdx): Add REG_INC notes for
315         emitted insns with post-increments.
316         (cris_expand_epilogue): Ditto.
318 2005-12-22  Jakub Jelinek  <jakub@redhat.com>
319             Richard Henderson  <rth@redhat.com>
321         Merge from gomp-branch.
322         * builtins.def: Move all DEF_SYNC_BUILTIN to ...
323         * sync-builtins.def: ... new file.
324         (BUILT_IN_FETCH_AND_ADD_16,
325         BUILT_IN_FETCH_AND_SUB_16, BUILT_IN_FETCH_AND_OR_16,
326         BUILT_IN_FETCH_AND_AND_16, BUILT_IN_FETCH_AND_XOR_16,
327         BUILT_IN_FETCH_AND_NAND_16, BUILT_IN_ADD_AND_FETCH_16,
328         BUILT_IN_SUB_AND_FETCH_16, BUILT_IN_OR_AND_FETCH_16,
329         BUILT_IN_AND_AND_FETCH_16, BUILT_IN_XOR_AND_FETCH_16,
330         BUILT_IN_NAND_AND_FETCH_16, BUILT_IN_BOOL_COMPARE_AND_SWAP_16,
331         BUILT_IN_VAL_COMPARE_AND_SWAP_16, BUILT_IN_LOCK_TEST_AND_SET_16,
332         BUILT_IN_LOCK_RELEASE_16): New builtins.
333         * builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
334         BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
335         * builtins.c (expand_builtin): Handle sync BUILT_IN_*_16 builtins.
336         * c-common.c (enum c_builtin_type): Move to top-level from
337         c_common_nodes_and_builtins enum builtin_type.
338         (builtin_types): Move from c_common_nodes_and_builtins.
339         (def_fn_type): New.
340         (c_common_nodes_and_builtins): Use it.
341         (def_builtin_1): Check for error_mark_node.
342         (sync_resolve_size): Handle also 128 bit sync builtins.
343         * Makefile.in (BUILTINS_DEF): New.  Use it instead of builtins.def.
345         * config/i386/i386.h (x86_cmpxchg8b, x86_cmpxchg16b): New decls.
346         (TARGET_CMPXCHG8B, TARGET_CMPXCHG16B): Define.
347         * config/i386/i386.c (x86_cmpxchg8b, x86_cmpxchg16b): New variables.
348         * config/i386/sync.md (CASMODE, DCASMODE): New mode macros.
349         (doublemodesuffix, DCASHMODE): New mode attrs.
350         (sync_compare_and_swap<mode>): Change into expand, use CASMODE
351         instead of IMODE, if mode is wider than a word, expand into
352         sync_double_compare_and_swap*.
353         (*sync_compare_and_swap<mode>): New insn.
354         (sync_double_compare_and_swap<mode>): Likewise.
355         (*sync_double_compare_and_swapdi_pic): Likewise.
356         (sync_compare_and_swap_cc<mode>): Use CASMODE instead of IMODE, if
357         mode is wider than a word, expand into
358         sync_double_compare_and_swap_cc*.
359         (sync_double_compare_and_swap_cc<mode>): New insn.
360         (*sync_double_compare_and_swap_ccdi_pic): Likewise.
362 2005-12-22  Richard Henderson  <rth@redhat.com>
364         * config/i386/mmintrin.h (_mm_add_si64): Only define for SSE2.
365         (_mm_sub_si64): Likewise.
366         * config/i386/xmmintrin.h (_mm_shuffle_pi16, _m_pshufw): Likewise.
368 2005-12-23  Alan Modra  <amodra@bigpond.net.au>
370         PR rtl-optimization/25432
371         * reload1.c (eliminate_regs_in_insn): Update insn code on
372         successfully re-recognizing modified insn.
374 2005-12-22  Richard Guenther  <rguenther@suse.de>
376         * tree.c (tree_fold_gcd): Use build_int_cst where appropriate.
377         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
378         * varasm.c (array_size_for_constructor): Likewise.
379         * fold-const.c (size_diffop, invert_truthvalue,
380         optimize_bit_field_compare, make_range, build_range_check,
381         fold_cond_expr_with_comparison, fold_truthop,
382         fold_single_bit_test_into_sign_test, fold_binary): Likewise.
384 2005-12-22  Dale Johannesen  <dalej@apple.com>
386         * config/i386/sse.md (sse_movhlps): Reverse operands for
387         2nd and 3rd alternatives.
389 2005-12-22  Andrew Pinski <pinskia@physics.uc.edu>
391         PR tree-opt/25513
392         * tree-dfa.c (make_rename_temp): Set DECL_COMPLEX_GIMPLE_REG_P complex
393         variables.
395 2005-12-22  Zdenek Dvorak <dvorakz@suse.cz>
396             Steven Bosscher <stevenb@suse.de>
398         * df.c (df_bitmaps_free): Only work for bbs for that structures are
399         allocated.
400         (df_bb_modify): Realloc tables to the new index.
401         (df_find_use): New function.
402         (df_find_def, df_reg_used): Handle subregs.
403         * df.h (df_find_use): Declare.
405         * loop-invariant.c: Include hashtab.h.
406         (struct invariant): Remove processed field, add eqto and reg fields.
407         (struct invariant_expr_entry): New.
408         (invariant_for_use, hash_invariant_expr_1, invariant_expr_equal_p,
409         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv,
410         find_identical_invariants, merge_identical_invariants): New functions.
411         (create_new_invariant): Return the new invariant.  Initialize new
412         fields.
413         (find_invariants): Call merge_identical_invariants.
414         (get_inv_cost, best_gain_for_invariant, set_move_mark,
415         move_invariant_reg): Handle equivalent invariants.
416         * Makefile.in (loop-invariant.o): Add HASHTAB_H dependency.
418 2005-12-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
420         PR c++/23333
421         * c-lex.c (c_lex_with_flags): Add PURE_ZERO to cpp_flags if
422         number is a single digit '0'.
424 2005-12-22  Kazu Hirata  <kazu@codesourcery.com>
426         PR tree-optimization/23518
427         * fold-const.c (make_range): Don't move a constant to the
428         other side of the comparison if the type is signed and -fwrapv
429         is given.
431 2005-12-22  Kazu Hirata  <kazu@codesourcery.com>
433         * tree-vrp.c (extract_range_from_binary_expr): Clean up uses
434         of vr0.type.
436 2005-12-21  Joseph S. Myers  <joseph@codesourcery.com>
438         PR middle-end/24998
439         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add _floatundidf and
440         _floatundisf.
442 2005-12-21  Andrew Haley  <aph@redhat.com>
444         PR middle-end/25121
445         * recog.c (peephole2_optimize): Don't peephole any
446         RTX_FRAME_RELATED_P insns.
448 2005-12-21  Kazu Hirata  <kazu@codesourcery.com>
450         * tree-data-ref.c (estimate_niter_from_size_of_data): Replace
451         fold_build2 with fold_binary.
452         * tree-ssa-ccp.c (visit_assignment, maybe_fold_stmt_addition):
453         Replace fold_build1 with fold_unary.
454         * tree-ssa-reassoc.c (optimize_ops_list): Replace fold_build2
455         with fold_binary.
457 2005-12-21  Steven Bosscher  <stevenb@suse.de>
459         PR rtl-optimization/25196
460         * postreload-gcse.c (record_last_set_info): Notice stack pointer
461         changes in push insns without REG_INC notes.
463 2005-12-21  Kazu Hirata  <kazu@codesourcery.com>
465         PR tree-optimization/25382.
466         * tree-vrp.c (extract_range_from_binary_expr): Extract a range
467         from BIT_AND_EXPR.
469 2005-12-21  Janis Johnson  <janis187@us.ibm.com>
470             Ben Elliston  <bje@au.ibm.com>
472         * configure.ac: Enable C extension for decimal float if invoked
473         with --enable-decimal-float.
474         * doc/install.texi (Configuration): Document it.
475         * configure, config.in: Regenerate.
477 2005-12-20  Mike Stump  <mrs@apple.com>
479         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Handle the
480         ambiguity between -seg_addr_table and -seg_addr_table_filename.
481         (WORD_SWITCH_TAKES_ARG): Likewise.
482         (LINK_SPEC): Likewise.
484 2005-12-20  Kenneth Zadeck <zadeck@naturalbridge.com>
486         * cfganal.c (flow_reverse_top_sort_order_compute):
487         Renamed to post_order_compute and additional parameter added which
488         allows the inclusion of entry and exit blocks into list.
489         (mark_dfs_back_edges): Fixed comment.
490         (flow_depth_first_order_compute): Renamed to
491         pre_and_rev_post_order_compute additional parameter added which
492         allows the inclusion of entry and exit blocks into list.
493         * global.c (set_up_bb_rts_numbers): Call to
494         flow_reverse_top_sort_order_compute renamed to
495         post_order_compute.
496         * var-tracking.c (vt_stack_adjustments): Fixed comment.
497         (vt_find_locations): Call to
498         flow_depth_first_order_compute renamed to
499         pre_and_rev_post_order_compute.
500         * cfgloop.c (flow_find_loops): Ditto.
501         * tree-ssa-reassoc.c (init_reassoc): Ditto.
502         * df.c (df_analyze_1, df_analyze_subcfg): Calls to
503         flow_reverse_top_sort_order_compute renamed to post_order_compute
504         and calls to flow_reverse_top_sort_order_compute renamed to
505         post_order_compute.
506         * basic_block.h: Ditto.
509 2005-12-20  Roger Sayle  <roger@eyesopen.com>
510             Paolo Bonzini  <bonzini@gnu.org>
512         PR rtl-optimization/25115
513         * gcse.c (pre_insert_copy_insn): Fall back to the sole
514         SET in the insn if there is no SET for an
515         expression that is equivalent to EXPR.
517 2005-12-20  Richard Guenther  <rguenther@suse.de>
519         PR middle-end/24306
520         * builtins.c (std_gimplify_va_arg_expr): Do not align
521         va frame for zero sized types.
522         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
524 2005-12-20  Kazu Hirata  <kazu@codesourcery.com>
526         PR tree-optimization/25501
527         * tree-cfgcleanup.c (merge_phi_nodes): Check that RESULT is
528         used in the PHI argument corresponding to the edge from BB to
529         DEST.
531 2005-12-20  Richard Guenther  <rguenther@suse.de>
533         Revert
534         2005-12-02  Richard Guenther  <rguenther@suse.de>
536         * tree-cfg.c (mark_used_vars): New function.
537         (dump_function_to_file): Dump only used VAR_DECLs.
539 2005-12-19  Roger Sayle  <roger@eyesopen.com>
541         * combine.c (try_combine): Improve splitting of binary operators
542         by taking advantage of reassociative transformations.
544 2005-12-19  Jeff Law  <law@redhat.com>
546         * tree-ssa-dom.c (thread_across_edge): Do not use local_fold.
547         Strip away all type conversions after simplifying the
548         condition.
550         * tree-cfgcleanup.c (merge_phi_nodes): Allow merging in some
551         cases the forwarder block dominates the destination.
553 2005-12-19  DJ Delorie  <dj@redhat.com>
555         * reload1.c (spill_failure): Dump reload data to dump file.
556         (find_reload_regs): Likewise.
558 2005-12-19  Zdenek Dvorak <dvorakz@suse.cz>
560         PR tree-optimization/24793
561         * tree-ssa-loop-ivopts.c (get_ref_tag): Remember the
562         original reference if there are subvars.
563         * tree-ssa-operands.c (get_tmr_operands): Handle subvars.
565 2005-12-19  Kenneth Zadeck <zadeck@naturalbridge.com>
567         * df.c (df_analyze_1, df_analyze_subcfg, iterative_dataflow):
568         Corrected basic block number calculations for changes in entry and
569         exit numbering.
571 2005-12-19  Zdenek Dvorak <dvorakz@suse.cz>
573         * tree-flow.h (struct var_ann_d): Change type of
574         may_aliases field to VEC(tree, gc) *.
575         (may_aliases): Declaration changed.
576         * tree-ssa-alias.c (group_aliases, add_may_alias,
577         replace_may_alias, dump_may_aliases_for,
578         is_aliased_with, add_type_alias, new_type_alias):
579         Work with VEC(tree, gc) * instead of varray.
580         * tree-flow-inline.h (may_aliases): Ditto.
581         * tree-ssa.c (verify_flow_insensitive_alias_info,
582         verify_name_tags): Ditto.
583         * tree-ssa-operands.c (add_stmt_operand): Ditto.
585 2005-12-19  J"orn Rennecke <joern.rennecke@st.com>
587         * cfgcleanup.c: Temporarily revert patches for PR 20070 till Bernd
588         comes back.
590 2005-12-19  J"orn Rennecke <joern.rennecke@st.com>
592         * struct-equiv.c (struct_equiv_improve_checkpoint): Fix sets_cc0_p
593         check.
595 2005-12-19  Ben Elliston  <bje@au.ibm.com>
597         * doc/install.texi (Configuration): Typo in Fortran subheading.
599 2005-12-19  Nathan Sidwell  <nathan@codesourcery.com>
601         * config/mt/mt.md (decrement_and_branch_until_zero): Add another
602         scratch.  Correct its reload split. Adjust its peephole.
603         (doloop_end): Add additional scratch.
604         (nop): Use 'nop'.
605         * config/mt/mt.c (MT_INT_ARG_FIRST): Remove.
606         (mt_asm_output_opcode, mt_print_operand): Use 'nop'.
607         (mt_function_arg_slotno): Use FIRST_ARG_REGNUM.
608         (mt_builtin_saveregs): Replace with ...
609         (mt_setup_incoming_varargs): ... here.  Save just the varadic
610         args.
611         (mt_va_start): Remove.
612         (mt_reorg_hazard): Ignore USE insns.  Don't call set_noop_p.
613         (mt_machine_reorg): Split all insns here.
614         (TARGET_SETUP_INCOMING_VARARGS): Override.
615         * config/mt/mt.h (TARGET_CPU_CPP_BUILTINS): Define __mt__ only.
616         Set to CPU type.
617         (EXPAND_BUILTIN_VA_START): Remove.
619 2005-12-17  Kenneth Zadeck <zadeck@naturalbridge.com>
621         * flow.c (update_life_info, count_or_remove_death_notes): Fixed
622         latent bug that could happen if update_life_info was called with a
623         blocks parameter and the call to cleanup_cfg actually deleted one
624         of those blocks.
626 2005-12-19  Zdenek Dvorak <dvorakz@suse.cz>
628         * tree-ssa-structalias.c (update_alias_info): Remove handling
629         of may_be_aliased (SSA_NAME_VAR (op)) case.
631 2005-12-19  Zdenek Dvorak <dvorakz@suse.cz>
633         * tree-flow.h (struct stmt_ann_d): Remove
634         makes_aliased_loads and makes_aliased_stores fields.
635         * tree-ssa-ccp.c (likely_value): Do not use makes_aliased_stores
636         and makes_aliased_loads fields.
637         * tree-ssa-dom.c (eliminate_redundant_computations): Do not
638         use makes_aliased_stores.
639         * tree-ssa-operands.c (clobbered_aliased_loads,
640         clobbered_aliased_stores, ro_call_aliased_loads): Removed.
641         (build_ssa_operands, add_stmt_operand, add_call_clobber_ops,
642         add_call_read_ops): Do not set makes_aliased_stores and
643         makes_aliased_loads fields.
644         * tree-ssa.c (verify_ssa): Do not verify makes_aliased_stores
645         field.
647 2005-12-18  Geoffrey Keating  <geoffk@apple.com>
649         * config/darwin.h: Don't include darwin-sections.def to declare
650         global variables; instead create darwin_section_enum.
651         (darwin_section_enum): New.
652         (darwin_sections): New.
653         * config/darwin.c: Don't include darwin-sections.def to define
654         global variables.
655         (darwin_sections): New.
656         (output_objc_section_asm_op): Rewrite to take advantage of
657         darwin_sections.
658         (darwin_init_sections): Rewrite to use darwin_sections.
659         (machopic_output_indirection): Update for darwin_sections array.
660         (machopic_select_section): Likewise.
661         (machopic_select_rtx_section): Likewise.
662         (machopic_asm_out_constructor): Likewise.
663         (machopic_asm_out_destructor): Likewise.
664         (darwin_file_end): Likewise.
665         * config/rs6000/rs6000.c (machopic_output_stub): Likewise.
666         * config/i386/i386.c (machopic_output_stub): Likewise.
668 2005-12-18  Richard Guenther  <rguenther@suse.de>
670         PR tree-optimization/25481
671         * tree-ssa-structalias.c (handle_ptr_arith): Handle accesses we
672         don't have a varinfo for.
674 2005-12-18  Jon Grimm  <jgrimm2@us.ibm.com>
675             Janis Johnson  <janis187@us.ibm.com>
676             Ben Elliston  <bje@au.ibm.com>
678         * optabs.c (init_floating_libfuncs): Handle decimal float modes.
679         (init_optabs): Handle libfuncs for decimal float.
680         * genopinit.c (gen_insn): Handle MODE_DECIMAL_FLOAT.
681         * stor-layout.c (int_mode_for_mode): Likewise.
682         * simplify-rtx.c (simplify_immed_subreg): Likewise.
683         (simplify_unary_operation_1): Skip optimisations for decimal float
684         modes.
685         * varasm.c (output_constant_pool_2): Handle MODE_DECIMAL_FLOAT.
686         * emit-rtl.c (gen_const_vector): Add assertion check.
687         (init_emit_once): Populate const_tiny_rtx with constants in each
688         decimal float mode.
689         * expmed.c (extract_high_half, expand_mult_highpart_optab,
690         expand_mult_highpart): Assert that mode is not a scalar float
691         mode.
692         * expr.c (convert_move): Handle conversion between decimal and
693         binary floats of the same size.
694         * convert.c (convert_to_real): Consider decimal float types when
695         folding.
696         * dwarf2out.c (base_type_die): Use DW_ATE_decimal_float to
697         describe decimal floating point types.
699 2005-12-18  Ulrich Weigand  <uweigand@de.ibm.com>
701         PR rtl-optimization/21041
702         * reload.c (find_reloads_subreg_address): Replace paradoxical
703         subreg of MEM by widened access only if the resulting memory
704         is properly aligned, even on !STRICT_ALIGNMENT targets.
706 2005-12-18  Andreas Krebbel  <krebbel1@de.ibm.com>
708         * tree-cfg.c (tree_flow_call_edges_add): Check for empty basic blocks.
710 2005-12-18  Steven Bosscher  <stevenb@suse.de>
712         * gcse.c (gcse_main, bypass_jumps): Fix non-GNU-isms from
713         the 2005-12-17 patch to renumber the entry and exit blocks.
715 2005-12-18  Gabriel Dos Reis  <gdr@integrable-solutions.net>
717         * doc/objc.texi (Type encoding): Fix typo.
719 2005-12-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
721         * tree-tailcall.c (find_tail_calls): Use XNEW.
722         * tree-ssa-dom.c (allocate_edge_info): Use XCNEW.
723         (free_all_edge_infos): Use explicit cast to convert from void *.
724         (vrp_free): Likewise.
725         (dom_opt_finalize_block): Likewise.
726         (record_equivalences_from_incoming_edge): Likewise.
727         (thread_across_edge): Likewise.  Use XCNEWVEC.
728         (record_cond): Use XCNEW.
729         (record_conditions): Use XNEWVEC.
730         (record_edge_info): Use XCNEWVEC.
731         (lookup_avail_expr): Use XNEW.
732         (record_range): Likewise.  Use GGC_NEW.
733         * tree-nested.c (var_map_hash): Use explicit cast to convert from
734         void *.
735         (var_map_eq): Likewise.
736         (lookup_field_for_decl): Likewise.
737         (convert_nonlocal_reference): Likewise.
738         (convert_local_reference): Likewise.
739         (convert_nl_goto_reference): Likewise.
740         (convert_nl_goto_receiver): Likewise.
741         (convert_call_expr): Likewise.
742         (convert_tramp_reference): Likewise.
743         (lookup_tramp_for_decl): Likewise.Use GGC_NEW.
744         (convert_nl_goto_reference): Likewise.
745         (lookup_field_for_decl): Use GGC_NEW.
746         (create_nesting_tree): Use GGC_CNEW.
747         * tree-ssa-phiopt.c (blocks_in_phiopt_order): Use XNEWVEC.
748         * tree-ssa-alias.c (init_alias_info): Use XCNEW.
749         (create_alias_map_for): Likewise.
750         (setup_pointers_and_addressables): Use XCNEWVEC.
751         (get_ptr_info): Use GGC_NEW.
752         (used_part_map_eq): Use explicit cast to convert from void *.
753         (up_lookup): Likewise.
754         (up_insert): Use XNEW.
755         (get_or_create_used_part_for): Use XCNEW.
756         (get_tmt_for): Likewise.
757         * tree-ssa-operands.c (ssa_operand_alloc): Use GGC_NEW.
758         * tree-ssa-pre.c (phi_trans_add): Use XNEW.
759         (bitmap_set_new): Use explicit cast to convert from void *.
760         (set_new): Likewise.
761         (insert_into_set): Likewise.
762         (pool_copy_list): Likewise.
763         (phi_translate): Likewise.
764         (create_value_expr_from): Likewise.
765         (insert_aux): Use XCNEWVEC.
766         (compute_avail): Use XNEWVEC.
767         * tree-ssa-live.c (calculate_live_on_entry): Likewise.
768         (sort_coalesce_list): Likewise.
769         (build_tree_conflict_graph): Use XCNEWVEC.
770         * tree-ssa-dce.c (tree_dce_init): Use XNEWVEC.
771         * tree-ssa-copy.c (init_copy_prop): Likewise.
772         (fini_copy_prop): Likewise.
773         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use XNEW
774         and XCNEWVEC.
775         (record_equiv): Use XNEW.
776         (uncprop_into_successor_phis): Use explicit cast to convert from
777         void *.
778         (uncprop_initialize_block): Likewise.
780 2005-12-18  Dorit Nuzman  <dorit@il.ibm.com>
782         PR tree-optimization/24378
783         * tree-vect-transform.c (vect_transform_loop): Create single-predecessor
784         basic-block after loop-versioning.
786 2005-12-18  Jeff Law  <law@redhat.com>
788         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Code
789         to simplify SWITCH_EXPR_CODE moved from here to ...
790         * tree-ssa-forwprop.c (simplify_switch_expr): Here.
791         (tree-ssa-forward_propagate_single_use_vars): Call
792         simplify_switch_expr when appropriate.
794 2005-12-17  Andrew Pinski  <pinskia@physics.uc.edu>
796         * doc/objc.texi (Type encoding): Add documentation about encoding
797         complex types and _Bool.
799 2005-12-17  Paul Brook  <paul@codesourcery.com>
801         * config/m68k/m68k.md (m68k_output_function_prologue): Always call
802         dwarf2out_def_cfa. Only add space for frame pointer to cfa_offset
803         when frame_pointer_needed.
805 2005-12-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
807         * tree-vn.c (vn_add): Use XNEW.
808         * tree-ssa-ccp.c (ccp_initialize): Use XNEWVEC.
809         (ccp_fold): Likewise.
810         (fold_stmt_r): Use explicit cast to convert from void *.
811         * tree-outof-ssa.c (new_temp_expr_table): Use XCNEWVEC.
812         (new_temp_expr_table): Likewise.
813         * gimplify.c (lookup_tmp_var): Use XNEW.
814         (gimplify_asm_expr): Use explcit cast to convert from void *.
815         * tree-into-ssa.c (get_ssa_name_ann): Likewise.
816         (get_def_blocks_for): Use XNEW.
817         (add_to_repl_tbl): Likewise.
818         (mark_def_sites): Use explicit cast to convert from void *.
819         (def_blocks_free): Likewise.
820         (mark_def_sites_initialize_block): Likewise.
821         (update_ssa): Use XNEWVEC.
822         * tree-dfa.c (create_var_ann): Use GGC_NEW.
823         (create_stmt_ann): Likewise.
824         (create_tree_ann): Likewise.
825         (referenced_var_insert): Likewise.
826         (set_default_def): Likewise.
827         (referenced_var_lookup_if_exists): Use explicit cast to convert
828         from void *.
829         (referenced_var_lookup): Likewise.
830         (default_def): Likewise.
831         (set_default_def): Likewise.
832         * tree-cfg.c (create_bb): Likewise.
833         (edge_to_cases_cleanup): Likewise.
834         (verify_node_sharing): Likewise.
835         (record_switch_edge): Use XNEW.
836         (cleanup_dead_labels): Use XCNEWVEC.
837         (tree_duplicate_sese_region): Use XNEWVEC.
838         * tree-scalar-evolution.c (get_instantiated_value): Likewise.
839         * tree-ssa.c (verify_ssa): Use XCNEWVEC.
840         (int_tree_map_eq): Use explicit cast to convert from void *.
841         * libgcov.c (gcov_exit): Use explicit cast to convert from void *.
842         (__gcov_execl): Likewise.
843         (__gcov_execlp): Likewise.
844         (__gcov_execle): Likewise.
845         * tree-eh.c (struct_ptr_eq): Likewise.
846         (struct_ptr_hash): Likewise.
847         (lookup_stmt_eh_region_fn): Likewise.
848         (outside_finally_tree): Likewise.
849         (find_goto_replacement): Likewise.
850         (make_eh_edge): Likewise.
851         (mark_eh_edge): Likewise.
852         (add_stmt_to_eh_region_fn): Use GGC_NEW.
853         (record_in_finally_tree): Use XNEW.
854         (maybe_record_in_goto_queue): Use XRESIZEVEC.
855         (lower_try_finally_copy): Use XCNEWVEC.
857 2005-12-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
859         * tree-inline.c (copy_body_r): Use explicit cast when converting
860         from void *.
861         (copy_bb): Likewise.
862         (copy_edges_for_bb): Likewise.
863         (remap_decl_1): Likewise.
864         (estimate_num_insns_1): Likewise.
865         * cgraph.c (hash_node): Use explicit cast when converting from
866         void *.
867         (eq_node): Likewise.
868         (cgraph_create_node): Use GGC_CNEW.
869         (cgraph_create_edge): Use GGC_NEW.
870         (cgraph_remove_node): Use explicit cast when converting from void *.
871         (hash_varpool_node): Likewise.
872         (eq_varpool_node): Likewise.
873         (cgraph_varpool_node): Use GGC_CNEW.
874         * lambda.h (lambda_vector_new): Use GGC_CNEWVEC.
875         * tree-scalar-evolution.c (new_scev_info_str): Use XNEW.
876         (eq_scev_info): Use explicit cast when converting from void *.
877         (find_var_scev_info): Likewise.
878         (set_instantiated_value): Likewise.
879         (gather_stats_on_scev_database_1): Likewise.
880         * cfgloop.h (simple_loop_desc): Use explicit cast when converting
881         from void *.
882         * c-pch.c (c_common_write_pch): Use XNEWVEC.
883         (c_common_read_pch): Likewise.
884         * prefix.c (save_string): Use XNEWVEC.
885         (translate_name): Use explicit cast when converting from void *.
886         * c-ppoutput.c (print_line): Use explicit cast when converting
887         from void *.
888         (pp_dir_change): Likewise.
889         * c-cppbuiltin.c (builtin_define_std): Likewise.
890         (builtin_define_with_value): Likewise.
891         (builtin_define_with_value_n): Likewise.
892         (builtin_define_with_int_value): Likewise.
893         (builtin_define_type_max): Likewise.
894         * c-incpath.c (add_env_var_paths): Use XNEWVEC.
895         (add_path): Use XNEW.
896         * c-format.c (check_format_info_main): Use GGC_NEW.
897         (format_type_warning): Use explicit cast when converting from void *.
898         * c-typeck.c (alloc_tagged_tu_seen_cache): Use XNEW instead of
899         xmalloc.
900         (start_init): Likewise.
901         * tree-flow-inline.h (first_referenced_var): Use explicit cast
902         when converting from void *.
903         (next_referenced_var): Likewise.
904         * c-pragma.c (push_alignment): Use GGC_NEW instead of ggc_alloc.
905         * gensupport.c (lookup_predicate): Use explicit cast to convert
906         from void *.
907         (init_predicate_table): Use XCNEW instead of xcalloc.
908         * genpreds.c (process_define_predicate): Likewise.
910 2005-12-17  Danny Berlin <dberlin@dberlin.org>
911             Kenneth Zadeck <zadeck@naturalbridge.com>
913         * basic-block.h: Changed basic block numbering so that the entry
914         block is 0 and the exit block is 1.  Changed insn iterators so
915         that they are tolerant of blocks with no insns.
916         * regrename.c (copyprop_hardreg_forward): Changed basic block
917         numbering so that the entry block is 0 and the exit block is 1.
918         * sched-ebb.c (sehedule_ebbs): Ditto.
919         * tracer.c (branch_ratio_cutoff): Ditto.
920         * cfgloopmanip.c (fix_loop_structure): Ditto.
921         * cfghooks.c (verify_flow_info): Ditto.
922         * cfg.c (compact_blocks): Ditto.
923         * reorg.c (dbr_schedule): Ditto.
924         * flow.c (calculate_global_regs_live, libcall_dead_p): Ditto.
925         * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
926         calculate_dominance_info): Ditto.
927         * cfganal.c (create_edge_list, print_edge_list,
928         flow_depth_first_order_compute, flow_dfs_compute_reverse_init,
929         flow_dfs_compute_reverse_add_bb, flow_dfs_compute_reverse_execute,
930         dfs_enumerate_from): Ditto.
931         * global.c (global_alloc, set_up_bb_rts_numbers): Ditto.
932         * ifcvt.c (find_if_case_2): Ditto.
933         * cfgbuild.c (control_flow_insn_p, count_basic_blocks,
934         find_basic_blocks): Ditto.
935         * predict.c (predict_loops, tree_bb_level_predictions,
936         predict_paths_leading_to, propagate_freq): Ditto.
937         * lcm.c (compute_antinout_edge, compute_laterin,
938         compute_available): Ditto.
939         * function.c (thread_prologue_and_epilogue_insns): Ditto.
940         * gcse.c (gcse_main, bypass_jumps): Ditto.
941         * profile.c (compute_branch_probabilities,
942         compute_value_histograms, branch_prob): Ditto.
943         * tree-flow-inline.h (bsi_start, bsi_after_labels,
944         bsi_last): Ditto.
945         * tree-ssa-phiopt.c (tree_ssa_phiopt,
946         blocks_in_phiopt_order): Ditto.
947         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
948         compute_out, link_btr_uses, migrate_btr_defs): Ditto.
949         * tree-dfa.c (collect_dfa_stats): Ditto.
950         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Ditto.
951         * cfglayout.c (fixup_reorder_chain): Ditto.
952         * bb-reorder.c (reorder_basic_blocks, duplicate_computed_gotos,
953         partition_hot_cold_basic_blocks): Ditto.
954         * var-tracking.c (vt_find_locations): Ditto.
955         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find, get_loop_body): Ditto.
956         * sched-rgn.c (compute_trg_info, init_regions, schedule_insns): Ditto.
957         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, make_edges
958         label_to_block_fn, print_loop_ir, tree_flow_call_edges_add): Ditto.
959         * tree-ssa-reassoc.c (init_reassoc): Ditto.
960         * cfgrtl.c (entry_of_function, rtl_verify_flow_info,
961         rtl_flow_call_edges_add, rtl_flow_call_edges_add): Ditto.
962         * df.c (df_analyze_1, hybrid_search, iterative_dataflow): Ditto
963         and removed unused reverse orders.
964         * df.h (): Ditto.
965         * combine.c: Fix document typo.
967 2005-12-17  Jan Hubicka  <jh@suse.cz>
969         * tree-flow-inline.h (set_default_def, default_def): Kill.
970         * tree-dfa.c (default_defs): New global variable.
971         (default_def, set_default_def): New functions.
972         * tree-ssa.c (init_tree_ssa, delete_tree_ssa): Add default_def hash.
973         * tree-flow.h (struct var_ann_d): Kill default_def field.
974         (set_default_def, default_def): Update prototype.
975         (default_defs): Declare.
977 2005-12-16  Jeff Law  <law@redhat.com>
979         * tree-ssa-dom.c (update_rhs_and_lookup_avail_expr): Kill.
980         (simplify_rhs_and_lookup_avail_expr): Kill.  Remnants moved
981         into tree-ssa-forwprop.c.
982         (eliminate_redundant_computations): Do not call
983         simplify_rhs_and_lookup_avail_expr anymore.
984         * tree-ssa-forwprop.c (simplify_not_neg_expr): New function
985         extracted from remnants of simplify_rhs_and_lookup_avail_expr.
986         (tree_ssa_forward_propagate_single_use_vars): Call
987         simplify_not_neg_expr appropriately.
989 2005-12-16  Bernd Trog  <berndtrog@yahoo.com>
991         PR target/20016
992         * config/avr/t-avr: Add -Os to TARGET_LIBGCC2_CFLAGS.
994 2005-12-17  Kazu Hirata  <kazu@codesourcery.com>
996         PR rtl-optimization/25456
997         * struct-equiv.c (struct_equiv_improve_checkpoint): Replace
998         info->x_start with p->x_start.
1000 2005-12-17  Alan Modra  <amodra@bigpond.net.au>
1002         * simplify-rtx.c (simplify_binary_operation_1 <IOR>): Correct bug
1003         introduced 2005-12-16.
1005 2005-12-16  Steven Bosscher  <stevenb@suse.de>
1007         PR rtl-optimization/23837
1008         * optabs.c (expand_binop): For a multi-word rotate, never emit
1009         a REG_NO_CONFLICT block.
1011 2005-12-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1013         PR middle-end/25457
1014         * reorg.c (mostly_true_jump): Remove unused variable 'insn'.
1016         PR target/25447
1017         * config/pa/pa.c (pa_scalar_mode_supported_p): Handle
1018         MODE_DECIMAL_FLOAT.
1020 2005-12-16  Steven Bosscher  <stevenb@suse.de>
1022         * loop-invariant.c (move_loop_invariants): Add missing hunk from
1023         the previous patch, to nullify df.
1025 2005-12-16  Steven Bosscher  <stevenb@suse.de>
1027         * reorg.c (mostly_true_jump): Clean up code depending on
1028         LABEL_OUTSIDE_LOOP_P and loop notes.  Remove code doing
1029         poor man's branch prediction, instead rely on REG_BR_PROB
1030         notes to be available.
1032 2005-12-16  Jakub Jelinek  <jakub@redhat.com>
1034         PR rtl-optimization/24899
1035         * loop.c (strength_reduce): Don't reduce giv that is not always
1036         computable and where add_val or mult_val can trap.
1038         * doc/invoke.texi (-fdump-tree-*): Remove note about C/C++ only.
1040 2005-12-16  Nathan Sidwell  <nathan@codesourcery.com>
1042         * config/mt/mt.h (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Correct
1043         names of ms1-16-002 files.
1045 2005-12-16  Alan Modra  <amodra@bigpond.net.au>
1047         PR driver/20425
1048         * gcc.c (for_each_path): New function.
1049         (add_to_obstack, file_at_path): New functions.
1050         (struct file_at_path_info, struct add_to_obstack_info): New.
1051         (build_search_list): Rewrite using for_each_path.  Constify struct
1052         path_prefix pointer.  Add do_multi param.  Adjust all callers.
1053         (find_a_file): Similarly, but just change existing param to bool.
1054         (putenv_from_prefixes): Add do_multi param, make "paths" const.
1055         (do_spec_path): Delete.
1056         (struct spec_path_info): New.
1057         (spec_path): New function.
1058         (do_spec_1): Use for_each_path for %D and %I.
1059         (find_file): Adjust for find_a_file changes.
1060         (main): Search multilibs for specs.  Print multilib lib path for
1061         -print-search-dirs.  Likewise add multilibs to LIBRARY_PATH_ENV.
1062         (read_specs): Search multilibs for %include and %include_noerr.
1063         (is_directory): Remove second string param.  Change last param
1064         to a bool.  Don't use concat.  Remove SMALL_ARG_MAX test, always
1065         check path is a dir.  Update all callers.
1066         * doc/hostconfig.texi (SMALL_ARG_MAX): Remove mention.
1067         * system.h (SMALL_ARG_MAX): Poison.
1068         * config.gcc: Don't define SMALL_ARG_MAX.
1069         * config.host: Likewise.
1070         * config.build: Likewise.
1072 2005-12-16  Paolo Bonzini  <bonzini@gnu.org>
1074         * combine.c (combine_simplify_rtx <case NOT, NEG, TRUNCATE,
1075         FLOAT_TRUNCATE, FLOAT_EXTEND, PLUS, MINUS, AND, IOR, XOR,
1076         ABS, VEC_SELECT, POPCOUNT, PARITY, FFS, FLOAT>,
1077         simplify_logical): Move simplifications that do not require
1078         additional infrastructure...
1079         * simplify-rtx.c (simplify_unary_operation_1,
1080         simplify_binary_operation_1): ... here.
1082 2005-12-16  Andreas Krebbel  <krebbel1@de.ibm.com>
1084         PR 24823
1085         * flow.c (mark_used_dest_regs): New function.
1086         (mark_used_regs): Call mark_used_dest_regs.
1088 2005-12-16  Jeff Law  <law@redhat.com>
1090         * tree-ssa-dse.c (dse_optimize_stmt): Correctly handle PHI nodes which
1091         represent a use and definition of the same SSA_NAME.
1093 2005-12-16  Jon Grimm  <jgrimm2@us.ibm.com>
1094             Janis Johnson  <janis187@us.ibm.com>
1095             Ben Elliston  <bje@au.ibm.com>
1097         * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): New.
1098         (TARGET_INITIALIZER): Add TARGET_DECIMAL_FLOAT_P.
1099         * target.h (struct gcc_target): Add decimal_float_supported_p.
1100         * targhooks.c (default_scalar_mode_supported_p): Handle
1101         MODE_DECIMAL_FLOAT.
1102         * builtins.def: Add new builtins for 32, 64 and 128 bit variants
1103         of inf, nan, finite, isinf and isnan.
1104         * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128,
1105         BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR,
1106         BT_FN_DFLOAT32, BT_FN_DFLOAT64, BT_FN_DFLOAT128,
1107         BT_FN_INT_DFLOAT32, BT_FN_INT_DFLOAT64, BT_FN_INT_DFLOAT128,
1108         BT_FN_DFLOAT32_CONST_STRING, BT_FN_DFLOAT64_CONST_STRING,
1109         BT_FN_DFLOAT32_CONST_STRING, BT_FN_DFLOAT32_DFLOAT32,
1110         BT_FN_DFLOAT64_DFLOAT64, BT_FN_DFLOAT128_DFLOAT128): New.
1111         * c-decl.c (declspecs_add_type): Verify combos on type qualifiers.
1112         Pedwarn if decimal floating point types are used.  Error if
1113         decimal floating point is not supported by the target.
1114         (finish_declspecs): Return type from DFP typespec_word.
1115         * c-typeck.c (c_common_type): Choose the decimal floating point
1116         type with the greater precision when determining a common type.
1117         (convert_arguments): Warn if there is a mismatch between argument
1118         and prototype for decimal float types.  Warn of conversions with
1119         binary float types and of precision narrowing due to prototype.
1120         * c-parser.c (reswords): Add _Decimal32, _Decimal64, _Decimal128.
1121         (c_token_starts_typename): Handle RID_DFLOAT32/64/128.
1122         (c_token_starts_declspecs): Likewise.
1123         (c_parser_attributes): Likewise.
1124         * c-common.h (enum rid): Add new enumeration values RID_DFLOAT32,
1125         RID_DFLOAT64, RID_DFLOAT128.
1126         (T_D32, TEX_D32, T_D64, TEX_D64, T_D128, TEX_D128): New macros.
1127         * c-common.c (c_common_type_for_mode): Handle decimal float modes.
1128         (shorten_compare): Convert DFP/BFP operands to a common type.
1129         (c_common_modes_and_builtins): Register built-in decimal float
1130         types if the target supports them.
1131         (handle_mode_addtribute): Handle MODE_DECIMAL_FLOAT.
1132         * builtins.c (fold_builtin_1): Handle 32, 64 and 128 bit cases of
1133         inf, nan, finite, isinf and isnan builtins.
1134         * c-cppbuiltin.c (builtin_define_decimal_float_constants): New.
1135         (builtin_define_float_constants): Assert non-decimal radix.
1136         (c_cpp_builtins): Register built-in __DEC_EVAL_METHOD__ define.
1137         Call builtin_define_decimal_float_constants for each type.
1138         * c-lex.c (interpret_float): Decode decimal float types from CPP_N
1139         flags.  Use real_from_string3, which can handle binary or decimal
1140         floats.
1141         * c-tree.h (enum c_typespec_keyword): Add cts_dfloat32,
1142         cts_dfloat64, cts_dfloat128.
1143         * tree.c (build_common_tree_nodes_2): Add decimal float types.
1144         * tree.h (enum tree_index): Add new enumeration values
1145         TI_DFLOAT32_TYPE, TI_DFLOAT64_TYPE, TI_DFLOAT128_TYPE,
1146         TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE, TI_DFLOAT128_PTR_TYPE.
1147         (dfloat32_type_node): New macro.
1148         (dfloat64_type_node, dfloat128_type_node): Likewise.
1149         (dfloat32_ptr_type_node, dfloat64_ptr_type_node): Likewise.
1150         (dfloat128_ptr_type_node): Likewise.
1151         * c-pretty-print.c (pp_c_floating_constant): Append 32, 64 and 128
1152         bit decimal floating point types with "df", "dd" and "dl".
1153         * c-format.h (enum format_lengths): Add new enumeration values
1154         FMT_LEN_H, FMT_LEN_D and FMT_LEN_DD.
1155         * c-format.c (printf_length_specs, scanf_length_specs): Add
1156         entries for H, D, DD.
1157         (print_char_table, scan_char_table): Use new entries.
1158         (asm_fprintf_char_table, gcc_diag_char_table,
1159         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Adjust for longer
1160         length arrays.
1161         * defaults.h (DECIMAL32_TYPE_SIZE): Define.
1162         (DECIMAL64_TYPE_SIZE): Likewise.
1163         (DECIMAL128_TYPE_SIZE): Likewise.
1164         (TARGET_DEC_EVAL_METHOD): Likewise.
1165         * doc/extend.texi (Decimal Float): New node.
1166         (Constructing Calls): Document decimal float built-ins.
1167         * doc/tm.texi: Document TARGET_DECIMAL_FLOAT_SUPPORTED_P hook.
1168         * Makefile.in (USER_H): Add $(srcdir)/ginclude/decfloat.h.
1169         * ginclude/decfloat.h: New file.
1171 2005-12-16  Alan Modra  <amodra@bigpond.net.au>
1173         * reload.c (find_reloads): Fix comment typo.
1174         * recog.h (recog_memoized): Correct comment.
1176 2005-12-16  Kazu Hirata  <kazu@codesourcery.com>
1178         * basic-block.h, config/i386/winnt.c, config/pa/pa.c,
1179         config/s390/s390.c, dfp.c, expr.c, fold-const.c, params.def,
1180         reload.c, struct-equiv.c, tree-ssa-ccp.c, tree-ssa-pre.c,
1181         tree-ssa-reassoc.c, tree-ssa-structalias.c: Fix comment typos.
1182         * doc/invoke.texi, doc/tm.texi: Fix typos.
1184 2005-12-16  Ben Elliston  <bje@au.ibm.com>
1186         * real.c (decimal_quad_format): Correct values for emin, emax.
1188 2005-12-15  DJ Delorie  <dj@redhat.com>
1190         * config/m32c/predicates.md (m32c_psi_scale): New.
1191         * config/m32c/m32c.c (m32c_expand_neg_mulpsi3): New.
1192         * config/m32c/muldiv.md (mulpsi3): Support negative constants.
1194 2005-12-16  Jan Hubicka  <jh@suse.cz>
1196         PR rtl-optimization/25224
1197         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free copy
1198         tables.
1200 2005-12-15  Zdenek Dvorak <dvorakz@suse.cz>
1201             Steven Bosscher <stevenb@suse.de>
1203         * loop-invariant.c (df): New global variable.
1204         (find_defs, check_dependencies, find_invariant_insn, record_uses,
1205         find_invariants_bb, find_invariants_body, find_invariants,
1206         find_invariants_to_move, move_invariants, free_inv_motion_data,
1207         move_single_loop_invariants, move_loop_invariants): Do not pass df in
1208         arguments.
1210 2005-12-15  Jakub Jelinek  <jakub@redhat.com>
1212         * varasm.c (default_unique_section_1): Use special section
1213         names for SECCAT_DATA_REL{,_RO}{,_LOCAL}.
1215 2005-12-16  Ben Elliston  <bje@au.ibm.com>
1217         * doc/invoke.texi (Warning Options): Document -Walways-true being
1218         enabled by -Wall.
1220 2005-12-15  Joseph S. Myers  <joseph@codesourcery.com>
1222         PR other/25028
1223         * libgcc2.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Define.
1224         * libgcc2.c (__floatdixf, __floatundixf, __floatditf,
1225         __floatunditf): Use #error if type sizes don't match requirements
1226         of implementation.
1227         (__floatdisf, __floatdidf): Unify.  Possibly use XFmode or TFmode
1228         as wider floating-point type.  Use #error if type sizes don't
1229         match requirements of implementation.  Avoid overflow in computing
1230         Wtype_MAXp1_F * Wtype_MAXp1_F.  When special casing conversion,
1231         shift one more bit.  Cast 1 to DWtype or UDWtype for shifting.
1232         (__floatundisf, __floatundidf): Likewise.
1233         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Define.
1234         * config/ia64/ia64.c (ia64_init_libfuncs): Use
1235         _U_Qfcnvfxt_quad_to_quad and _U_Qfcnvxf_quad_to_quad for
1236         TFmode-TImode conversions.
1237         * doc/tm.texi (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Document.
1239 2005-12-14  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1241         * freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS):
1242         Use builtin_define_with_int_value() instead of
1243         adding a new check for every new major FreeBSD version.
1245 2005-12-14  Andrew Pinski  <pinskia@physics.uc.edu>
1247         * config/t-darwin (darwin-c.o): Depend on $(TREE_H) instead of tree.h.
1249 2005-12-15  Richard Sandiford  <richard@codesourcery.com>
1251         * config/arm/predicates.md (call_memory_operand): New.
1252         * config/arm/arm.md (*call_mem, *call_value_mem): Use it.
1254 2005-12-15  Andrew Haley  <aph@redhat.com>
1256         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Guard
1257         against prev_cache_entry == NULL when moving a cache entry to the
1258         head of the list.
1260 2005-12-15  Nathan Sidwell  <nathan@codesourcery.com>
1262         * config/mt/mt.c (mt_override_options): Require lower case
1263         architectures.  Revert accidental default to ms2.
1264         * config/mt/mt.h (ASM_SPEC, LIBSPEC, STARTFILE_SPEC,
1265         ENDFILE_SPEC): Require lower case architectures.  Revert default
1266         to ms2.
1268         * doc/invoke.texi (MT Options): Rename and update.
1269         * doc/md.texi (MorphoTech family): Rename and update.
1271 2005-12-15  Olivier Hainque  <hainque@adacore.com>
1273         * stor-layout.c (layout_type): Don't complain about a too small
1274         an array element type size compared to its alignment when the
1275         size overflows.
1277 2005-12-15  Jan Hubicka  <jh@suse.cz>
1279         PR target/24969
1280         * i386.c (classify_argument): Properly adjust offset of bitfield for
1281         substructures.
1283 2005-12-15  Richard Sandiford  <richard@codesourcery.com>
1285         * final.c (final_scan_insn): Flip in_cold_section_p when changing
1286         between the hot and cold sections.  Use current_function_section
1287         to get the new section.
1288         * dwarf2out.c (output_line_info): Use in_cold_section_p to
1289         determine whether we are assembling hot or cold code.
1290         (secname_for_decl, dwarf2out_var_location): Likewise.
1291         (dwarf2out_init, dwarf2out_finish): Use switch_to_section.
1292         * varasm.c (last_text_section): Delete.
1293         (in_cold_section_p): New variable.
1294         (hot_function_section): New function.
1295         (current_function_section): Pass in_cold_section_p as the
1296         reloc argument to select_section.  Use it to decide between
1297         unlikely_function_section and hot_function_section.
1298         (assemble_start_function): Use switch_to_section.  Set
1299         in_cold_section_p instead of last_text_section.
1300         (assemble_end_function): Use switch_to_section.
1301         (switch_to_section): Don't set last_text_section.
1302         * config/darwin/darwin.c (machopic_select_section): Trust the reloc
1303         argument to make the right choice between hot and cold sections.
1305 2005-12-15  Nathan Sidwell  <nathan@codesourcery.com>
1307         Second part of MS1->MT renaming
1308         * config/mt/mt.md (doloop_end): Call mt_add_loop.
1309         (movqi, movhi): Call mt_set_memflags.
1310         (*movdf_internal): Call mt_split_words.
1311         (reload_inqi, reload_outqi, reload_inhi, reload_outhi): Call
1312         mt_set_memflags.
1313         (cmpsi): Store to mt_compare_op[01].
1314         (beq, bne, bge, bgt, ble, blt, bgeu, bgtu, bleu, bltu, bunge,
1315         bungt, bunle, bunlt): Call mt_emit_cbranch.
1316         (prologue): Call mt_expand_prologue.
1317         (epilogu): Call mt_expend_epilogue.
1318         (eh_return): Call mt_expand_eh_return.
1319         (eh_epilogue): Call me_emit_eh_epilogue.
1320         (conditional_trap): Store to mt_compare_op[01].
1321         * config/mt/crti.asm: Adjust comment.
1322         * config/mt/crtn.asm: Adjust comment.
1323         * config/mt/mt.c (MT_INT_ARG_FIRST): Renamed.
1324         (mt_compare_op0, mt_compare_op1): Renamed.
1325         (current_frame_info, zero_frame_info): Adjust type.
1326         (mt_ucmpsi3_libcall): Renamed.
1327         (mt_flag_delayed_branch): Renamed.
1328         (mt_struct_value_rtx, mt_return_addr_rtx): Renamed.
1329         (mt_nops_required, mt_nop_reasons): Renamed.
1330         (mt_asm_output_opcode, mt_get_attr_type, mt_final_prescan_insn,
1331         mt_debug_stack, mt_print_operand_simple_address,
1332         mt_print_operand_address, mt_print_operand): Renamed, adjusted.
1333         (mt_init_cumulative_args, mt_function_arg_slotno, mt_function_arg,
1334         mt_function_arg_advance, mt_arg_partial_bytes,
1335         mt_pass_by_reference, mt_function_arg_boundary,
1336         mt_reg_ok_for_base_p, mt_legitimate_simple_address_p,
1337         mt_legitimate_address_p): Renamed, adjusted.
1338         (mt_cpu): Renamed.
1339         (mt_init_machine_status, mt_override_options, mt_builtin_saveregs,
1340         mt_va_start, mt_compute_frame_size, mt_emit_save_restore,
1341         mt_emit_save_fp, mt_emit_save_regs, mt_interrupt_function_p,
1342         mt_expand_prologue, mt_epilogue_uses, mt_expand_epilogue,
1343         mt_expand_eh_return, mt_emit_eh_prologue,
1344         mt_handl_interrupt_attribute): Renamed, adjusted.
1345         (mt_attribute_table): Renamed, adjusted.
1346         (mt_initial_elimination_offset, mt_generate_compare,
1347         mt_emit_cbranch, mt_set_memflags_1, mt_set_memflags,
1348         mt_secondary_reload_class, mt_function_value, mt_split_words,
1349         mt_pass_in_stack, mt_add_loop, mt_loop_nesting, mt_block_length,
1350         mt_scan_loop, mt_reorg_loops): Renamed, adjusted.
1351         (mt_labels): Renamed.
1352         (mt_add_branches, mt_check_delay_slot, mt_reorg_hazard,
1353         mt_machine_reorg): Renamed, adjusted.
1354         (mt_attribute_table: Renamed.
1355         (TARGET_ATTRIBUTE_TABLE, TARGET_STRUCT_VALUE_RTX,
1356         TARGET_PASS_BY_REFERENCE, TARGET_MUST_PASS_IN_STACK,
1357         TARGET_ARG_PARTIAL_BYTES, TARGET_MACHINE_DEPENDENT_REORG): Adjust.
1358         * config/mt/mt.opt (march): Set mt_cpu_string.
1359         * config/mt/mt.h (mt_ucmpsi3_libcall, mt_cpu): Renamed.
1360         (TARGET_CPU_CPP_BUILTINS): Adjust.
1361         (TARGET_MS1_64_001, TARGET_MS1_16_002, TARGET_MS1_16_003,
1362         TARGET_MS2): Adjust.
1363         (TARGET_VERSION, OVERRIDE_OPTIONS, SECONDARY_RELOAD_CLASS): Adjust.
1364         (MT_MIN_INT): Renamed.
1365         (RETURN_ADDR_RTX): Adjust.
1366         (struct mt_frame_info): Renamed.
1367         (current_frame_info): Adjust type.
1368         (INITIAL_ELIMINATION_OFFSET): Adjust.
1369         (MT_NUM_ARG_REGS): Renamed.
1370         (REG_PARM_STACK_SPACE, FUNCTION_ARG, INIT_CUMULATVE_ARGS,
1371         FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY, FUNCTION_VALUE,
1372         LIBCALL_VALUE, EPILOGUE_USES, EXPAND_BUILTIN_VA_START,
1373         GO_IF_LEGITIMATE_ADDRESS, REG_OK_FOR_BASE_P, ASM_OUTPUT_OPCODE,
1374         FINAL_REPSCAN_INSN, PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Adjust.
1375         (mt_compare_op0, mt_compare_op1): Renamed.
1376         * config/mt/mt-protos.h: Rename prototypes.
1378 2005-12-15  Richard Guenther  <rguenther@suse.de>
1380         * tree-flow.h (okay_component_ref_for_subvars): Remove.
1381         (get_ref_base_and_extent): Declare.
1382         * tree-dfa.c (okay_component_ref_for_subvars): Remove.
1383         (get_ref_base_and_extent): New function.
1384         * tree-ssa-alias.c (find_used_portions): Use it.
1385         * tree-ssa-structalias.c (get_constraint_for_component_ref):
1386         Likewise.
1387         * tree-ssa-operands.c (get_expr_operands): Likewise.
1389 2005-12-15  Paolo Bonzini  <bonzini@gnu.org>
1391         * combine.c: Remove force_to_mode's fourth parameter.
1392         (force_to_mode): Do not handle REG.
1393         (canon_reg_for_combine): New.
1394         (make_field_assignment): Use it where the removed argument was non-NULL.
1396 2005-12-15  Alan Modra  <amodra@bigpond.net.au>
1398         PR target/25406
1399         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Handle
1400         error_mark_node.  Make alignment params unsigned.
1401         * config/rs6000/rs6000-protos.h
1402         (rs6000_special_round_type_align): Update prototype.
1403         (rs6000_machopic_legitimize_pic_address): Remove arg names.
1405 2005-12-14  Ulrich Weigand  <uweigand@de.ibm.com>
1407         PR rtl-optimization/25310
1408         * reload1.c (eliminate_regs_in_insn): Handle lowpart SUBREGs
1409         of the eliminable register when substituting into a PLUS.
1411 2005-12-14  Jakub Jelinek  <jakub@redhat.com>
1413         PR debug/25023
1414         * config/i386/i386.c (ix86_force_to_memory): Always use
1415         SImode push for HImode in -m32.
1416         (ix86_free_from_memory): Likewise.
1418 2005-12-14  Richard Sandiford  <richard@codesourcery.com>
1420         * config/arm/arm.md: Provide a big-endian version of the
1421         (zero_extend:SI (subreg:QI ...)) splitter.
1423 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
1425         * struct-equiv.c (note_local_live): Handle hard regs with different
1426         hard_regno_nregs.
1428 2005-12-14  Jeff Law  <law@redhat.com>
1430         * tree-ssa-ccp.c (fold_stmt_r): DATA argument is now a pointer
1431         to a structure containing state rather than a pointer to bool.
1432         (case ARRAY_REF): New code to handle folding some array references.
1433         (case ADDR_EXPR): Note when we are processing expressions found
1434         within an ADDRE_EXPR.
1435         (fold_stmt, fold_stmt_inplace): Pass in a structure to fold_stmt_r
1436         for state variables rather than just a pointer to a boolean.
1437         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
1438         handling of constant string references.
1440 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
1442         * config/s390/s390.md ("*tstdi_extimm", "*tstsi_extimm"): Merge.
1443         ("*tstdi_cconly_extimm", "*tstsi_cconly_extimm"): Merge.
1444         ("*tstdi_cconly2", "*tstsi_cconly2"): Merge.
1445         Move other tst* patterns to retain partial order.
1447 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
1449         * config/s390/s390.md ("d0", "1"): New mode attributes.
1450         ("<shift>di3", "<shift>si3"): Merge.
1451         ("*<shift>di3_and", "*<shift>si3_and"): Merge.
1452         ("ashrdi3", "ashrsi3"): Merge.
1453         ("*ashrdi3_cc", "*ashrsi3_cc"): Merge.
1454         ("*ashrdi3_cc_and", "*ashrsi3_cc_and"): Merge.
1455         ("*ashrdi3_cconly", "*ashrsi3_cconly"): Merge.
1456         ("*ashrdi3_cconly_and", "*ashrsi3_cconly_and"): Merge.
1457         ("*ashrdi3", "*ashrsi3"): Merge.
1458         ("*ashrdi3_and", "*ashrsi3_and"): Merge.
1460 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
1462         * config/s390/s390.md ("extend<mode>di2", "extend<mode>si2"): Merge.
1463         ("*extendqidi2_extimm", "*extendqisi2_extimm"): Merge.
1464         ("*extendqidi2", "*extendqisi2") Merge.
1465         ("*extendqidi2_short_displ", "*extendqisi2_short_displ"): Merge.
1466         ("zero_extendhidi2", "zero_extendqidi2"): Merge.
1467         ("*zero_extend<mode>di2_extimm", "*zero_extend<mode>si2_extimm"): Merge.
1468         Move some patterns to retain partial ordering.
1470 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
1472         * config/s390/s390.md ("atype", "length"): Rewrite.
1473         ("*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): Add mode.
1475 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
1477         * tree-ssa-operands.c (build_ssa_operands): Update leading comment.
1479 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
1481         * struct-equiv.c (rtx_equiv_p): Allow arbitrary RVALUE values for
1482         PARALLELs with a mode.
1484 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
1486         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Adjust the type of
1487         cond_expr parameter.
1489 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
1491         * loop-unswitch.c (unswitch_loop): Free zero_bitmap before returning.
1493 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
1495         PR bootstrap/25397:
1497         * struct-equiv.c (struct_equiv_init): Fix off-by-one error in clearing
1498         of STACK_REGS bits.
1500         * struct-euiv.c (rtx_equiv_p): Remove SUBREG case.
1502 2005-12-14  Jakub Jelinek  <jakub@redhat.com>
1504         PR target/25254
1505         PR target/24188
1506         * config/i386/i386.c (x86_64_elf_select_section): If DECL is not
1507         DECL_P, call get_section rather than get_named_section.  Supply
1508         section flags to it.
1510 2005-12-14  Ben Elliston  <bje@au.ibm.com>
1512         * c-common.c (c_common_truthvalue_conversion): Generalise warning
1513         for addresses converted to booleans; not just function addresses.
1514         * c-typeck.c (build_binary_op): Warn for address comparisons which
1515         can never be NULL (eg. func == NULL or &var == NULL).
1516         * common.opt (Walways-true): New option.
1517         * c-opts.c (c_common_handle_option): Set it with -Wall.
1518         * doc/invoke.texi: Document it.
1520 2005-12-13  Paul Brook  <paul@codesourcery.com>
1522         * config/m68k/fpgnulib.c (__unordsf2, __unorddf2, __unordxf2,
1523         __floatunsidf, __floatunsisf, __floatunsixf): New functions.
1525 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
1527         * config/mt/t-mt (crti.o, crtn.o): Add multilib options.
1528         (EXTRA_MULTILIB_PARTS): Define.
1530 2005-12-13  J"orn Rennecke <joern.rennecke@st.com>
1532         PR rtl-optimization/20070 / part1
1533         * flow.c (update_life_info): If PROP_POST_REGSTACK is set, call
1534         count_or_remove_death_notes with kill == -1.
1535         (mark_set_1): Don't add REG_DEAD / REG_UNUSED notes for stack
1536         registers if PROP_POST_REGSTACK is set.
1537         (mark_used_reg): Likewise.
1538         (count_or_remove_death_notes): If kill is -1, don't remove REG_DEAD /
1539         REG_UNUSED notes for stack regs.
1540         * cfgcleanup.c (condjump_equiv_p): Change parameters and processing
1541         to match rtx_equiv_p machinery.  Change caller.
1542         (outgoing_edges_match): Likewise.
1543         (try_crossjump_to_edge): Use struct_equiv_block_eq
1544         instead of flow_find_cross_jump.
1545         * basic-block.h (PROP_POST_REGSTACK, STRUCT_EQUIV_START): Define.
1546         (STRUCT_EQUIV_RERUN, STRUCT_EQUIV_FINAL): Likewise.
1547         (STRUCT_EQUIV_NEED_FULL_BLOCK, STRUCT_EQUIV_MATCH_JUMPS): Likewise.
1548         (STRUCT_EQUIV_MAX_LOCAL): Likewise.
1549         (struct struct_equiv_checkpoint, struct equiv_info): Likewise.
1550         (insns_match_p): Update prototype.
1551         (flow_find_cross_jump): Remove prototype.
1552         (struct_equiv_block_eq, struct_equiv_init): Declare.
1553         (rtx_equiv_p, condjump_equiv_p): Likewise.
1554         * struct-equiv.c: Include reload.h.
1555         (IMPOSSIBLE_MOVE_FACTOR): Define.
1556         (assign_reg_reg_set, struct_equiv_make_checkpoint): New functions.
1557         (struct_equiv_improve_checkpoint): Likewise.
1558         (struct_equiv_restore_checkpoint, rtx_equiv_p): Likewise.
1559         (set_dest_equiv_p, set_dest_addr_equiv_p, struct_equiv_init): Likewise.
1560         (struct_equiv_merge, find_dying_input): Likewise.
1561         (resolve_input_conflict, note_local_live): Likewise.
1562         (death_notes_match_p): Change parameters and processing
1563         to match rtx_equiv_p machinery.  Change caller.
1564         (insns_match_p): Likewise.
1565         (flow_find_cross_jump): Replace with:
1566         (struct_equiv_block_eq).
1568         Back out this change:
1569         2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
1570           * recog.c (verify_changes): Make it static.
1571           * recog.h: Remove the corresponding prototype.
1573 2005-12-13  J"orn Rennecke <joern.rennecke@st.com>
1575         * rtlhooks.c (gen_lowpart_general): Handle SUBREGs of floating point
1576         values.
1578 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
1580         * config/mt/t-mt (MULTILIB_OPTIONS): Add ms2
1581         (MULTILIB_DIRNAMES): Add ms2.  Prefix ms1 dirs with 'ms1'.
1582         * config/mt/mt.c (ms1_final_prescan): Use TARGET_MS2,
1583         TARGET_MS1_64_001 appropriately.
1584         (ms1_machine_reorg): Use TARGET_MS2.
1586 2005-12-13  Jakub Jelinek  <jakub@redhat.com>
1588         PR debug/25023
1589         PR target/25293
1590         * expr.c (emit_move_resolve_push): Handle PRE_MODIFY
1591         and POST_MODIFY with CONST_INT adjustment equal to PUSH_ROUNDING.
1592         Fix POST_INC/POST_DEC handling if PUSH_ROUNDING is not identity.
1593         * config/i386/i386.md (pushhi2, pushqi2): Use pushl instead of pushw.
1594         Set mode to SI, adjust constraints.
1595         (pushhi2_rex64, pushqi2_rex64): Set mode to DI.
1596         * config/i386/i386.h (PUSH_ROUNDING): Round up to 4 instead of 2 for
1597         32-bit code.
1599 2005-12-13  Carlos O'Donell <carlos@codesourcery.com>
1601         * c-cppbuiltin.c (builtin_define_float_constants): Add
1602         fp_cast parameter, pass to builtin_define_with_hex_fp_value.
1603         Define __FLT_HAS_DENORM__, __DBL_HAS_DENORM__, __LDBL_HAS_DENORM__.
1604         (builtin_define_with_hex_fp_value): Use fp_cast when building macro.
1605         (c_cpp_builtins): If flag_single_precision_constant then set fp_cast
1606         to "((double)%sL)" otherwise "%s".
1608 2005-12-13  Paul Brook  <paul@codesourcery.com>
1610         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for
1611         apcs/atpcs.
1613 2005-12-11 Rafael vila de Espndola <rafael.espindola@gmail.com>
1615         * tree-flow.h: Allow compilation with a C++ compiler.
1616         (struct edge_prediction): Prefix all field names  with "ep_".
1617         * predict.c (tree_predicted_by_p): Likewise for struct edge_prediction.
1618         (tree_predict_edge, combine_predictions_for_bb): Likewise.
1619         (remove_predictions_associated_with_edge): Likewise.
1621 2005-12-12  Jeff Law  <law@redhat.com>
1623         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
1624         reassociation code.
1625         * passes.c (init_optimization_passes): Run reassociation again
1626         after loop optimizations.
1628 2005-12-12  Daniel Berlin  <dberlin@dberlin.org>
1630         * tree-ssa-dom.c (thread_across_edge): Canonicalize condition
1631         if necessary.
1632         (optimize_stmt): Ditto.
1633         (canonicalize_comparison): New function.
1634         * tree-ssa-operands.c (swap_tree_operands): Make external.
1635         (get_expr_operands): Stop auto-canonicalization.
1636         * tree-ssa-reassoc.c: Rewrite.
1637         (init_optimization_passes):
1638         * tree-flow.h (swap_tree_operands): Prototype.
1639         * Makefile.in (tree-ssa-reassoc.o): Update dependencies.
1641 2005-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1643         * pa.c (pa_output_function_epilogue): Set cfun->machine->in_nsubspa to
1644         indicate function epilogue has been output.
1645         (pa_asm_output_mi_thunk): Likewise.
1646         (output_deferred_plabels): Put plabels in readonly data section when
1647         not generating PIC code.
1648         (som_output_text_section_asm_op): Use .NSUBSPA to output debug
1649         information.  Add assert.
1650         (som_output_comdat_data_section_asm_op): New function.
1651         (pa_som_asm_init_sections): Use som_output_comdat_data_section_asm_op
1652         instead of output_section_asm_op for COMDAT sections.
1654 2005-12-12  J"orn Rennecke <joern.rennecke@st.com>
1656         * cfgcleanup.c (condjump_equiv_p, try_crossjump_to_edge):
1657         Fix whitespace in vincinity of to-be-installed changes.
1658         * struct-equiv.c (merge_memattrs, death_notes_match_p): Fix whitespace.
1659         (insns_match_p): Likewise.
1661 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
1663         * config.gcc (ms1): Replace with ...
1664         (mt): ... this.
1665         * config/ms1: Rename to ...
1666         * config/mt: ... here.  Rename ms1 files to mt.
1667         * config/mt/mt.c: Adjust gt-mt.h #include.
1668         * config/mt/t-mt (LIB1ASMSRCS, LIB2FUNCS_EXTRA): Adjust.
1669         (crti.o, crtn.o): Adjust file names.
1671 2005-12-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1673         * varray.h: Allow compilation with a C++ compiler.
1674         (union varray_data_tag): Prefix all field names with "vdt_".
1675         (VARRAY_CHAR, VARRAY_UCHAR, VARRAY_SHORT, VARRAY_USHORT,
1676         VARRAY_INT, VARRAY_UINT, VARRAY_LONG, VARRAY_ULONG,
1677         VARRAY_WIDE_INT, VARRAY_UWIDE_INT, VARRAY_GENERIC_PTR,
1678         VARRAY_GENERIC_PTR_NOGC, VARRAY_CHAR_PTR, VARRAY_RTX,
1679         VARRAY_RTVEC, VARRAY_TREE, VARRAY_BITMAP, VARRAY_REG, VARRAY_BB,
1680         VARRAY_ELT_LIST, VARRAY_EDGE, VARRAY_TREE_PTR): Adjust definition.
1681         (VARRAY_PUSH_CHAR, VARRAY_PUSH_UCHAR, VARRAY_PUSH_SHORT,
1682         VARRAY_PUSH_USHORT, VARRAY_PUSH_INT, VARRAY_PUSH_UINT,
1683         VARRAY_PUSH_LONG, VARRAY_PUSH_ULONG, VARRAY_PUSH_WIDE_INT,
1684         VARRAY_PUSH_UWIDE_INT, VARRAY_PUSH_GENERIC_PTR,
1685         VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_CHAR_PTR,
1686         VARRAY_PUSH_RTX, VARRAY_PUSH_RTVEC, VARRAY_PUSH_TREE,
1687         VARRAY_PUSH_BITMAP, VARRAY_PUSH_REG, VARRAY_PUSH_BB,
1688         VARRAY_PUSH_EDGE, VARRAY_PUSH_TREE_PTR): Likewise.
1689         (VARRAY_TOP_CHAR, VARRAY_TOP_UCHAR, VARRAY_TOP_SHORT,
1690         VARRAY_TOP_USHORT, VARRAY_TOP_INT, VARRAY_TOP_UINT,
1691         VARRAY_TOP_LONG, VARRAY_TOP_ULONG, VARRAY_TOP_WIDE_INT,
1692         VARRAY_TOP_UWIDE_INT, VARRAY_TOP_GENERIC_PTR,
1693         VARRAY_TOP_GENERIC_PTR_NOGC, VARRAY_TOP_CHAR_PTR, VARRAY_TOP_RTX,
1694         VARRAY_TOP_RTVEC, VARRAY_TOP_TREE, VARRAY_TOP_BITMAP,
1695         VARRAY_TOP_REG, VARRAY_TOP_BB, VARRAY_TOP_EDGE,
1696         VARRAY_TOP_TREE_PTR): Likewise.
1697         * varray.c (varray_grow): Likewise.
1698         (varray_clear): Likewise.
1700 2005-12-12  Alan Modra  <amodra@bigpond.net.au>
1702         PR target/25299
1703         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Increase
1704         alignment to doubleword if the first field is a double array.
1705         * config/rs6000/linux64.h (TARGET_ALIGN_NATURAL): Define.
1707 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
1709         * tree-ssa-structalias.c (process_constraint): Remove code to
1710         transform addressofs into scalar.
1711         (create_variable_info_for): In whole-program IPA, globals don't
1712         point to ANYTHING by default.
1714 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
1716         * timevar.def (TV_IPA_PTA): New.
1717         * tree-pass.h (pass_ipa_pta): New
1718         * tree-ssa-structalias.c: Include cgraph.h
1719         (in_ipa_mode): New.
1720         (predbitmap_obstack): New.
1721         (EXECUTE_IF_IN_NONNULL_BITMAP): New.
1722         (struct constraint_stats): Add num_edges.
1723         (new_var_info): Don't call bitmap_clear.
1724         (struct constraint_edge): Update docs.
1725         (new_constraint_edge): Remove src param.
1726         (struct constraint_graph): Add zero_weight_succs,
1727         zero_weight_preds.  Update docs.
1728         (constraint_expr_equal): Reformat.
1729         (constraint_edge_equal): Update for removal of src.
1730         (constraint_edge_less): Ditto.
1731         (constraint_edge_vec_find): Ditto.
1732         (erase_graph_self_edge): Update for removal of src and and zero
1733         weight bitmap.
1734         (clear_edges_for_node): Ditto.
1735         (add_graph_edge): Ditto.
1736         (get_graph_weights): Ditto.
1737         (allocate_graph_weights): Ditto.
1738         (merge_graph_nodes): Ditto.
1739         (int_add_graph_edge): Ditto.
1740         (valid_graph_edge): Ditto.
1741         (valid_weighted_graph_edge): Ditto.
1742         (build_constraint_graph): Ditto.
1743         (scc_visit): Ditto.
1744         (collapse_nodes): Ditto.
1745         (process_unification_queue): Ditto.
1746         (topo_visit): Ditto.
1747         (solve_graph): Ditto.
1748         (do_structure_copy): Ditto.
1749         (perform_var_substitution): Ditto.
1750         Init and release obstack.
1751         (handle_ptr_arith): Try to resolve directly.
1752         (find_func_aliases): Don't call update_alias_info here
1753         Handle RETURN_EXPR, and CALL_EXPR's in IPA mode.
1754         (do_sd_constraint): Add code for propagating faster.
1755         Update.
1756         (do_ds_constraint): Ditto.
1757         (count_num_arguments): New function.
1758         (create_function_info_for): Ditto.
1759         (create_variable_info_for): Handle FUNCTION_DECL.
1760         (intra_create_variable_infos): Use make_constraint_to_anything.
1761         (init_alias_vars): Init obstacks here.
1762         (need_to_solve): Handle zero weight graph changes.
1763         (compute_points_to_sets): Call update_alias_info here.
1764         (delete_points_to_sets): Free zero weight preds/succs here.
1765         (gate_ipa_pta): New.
1766         (ipa_pta_execute): New
1768 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
1770         * tree-ssa-structalias.c (var_anyoffset): Removed.
1771         (anyoffset_tree): Ditto.
1772         (anyoffset_id): Ditto.
1773         (do_deref): Take vector of constraints, no return value.
1774         Update to work on vector.
1775         (get_constraint_for): Ditto.
1776         (get_constraint_for_component_ref): Ditto.
1777         (do_structure_copy): Ditto.
1778         (handle_ptr_arith): Ditto.
1779         (find_func_aliases): Ditto.
1780         (set_uids_in_ptset): Remove anyoffset handling.
1781         (init_base_vars): Ditto.
1783 2005-12-10  Mark Mitchell  <mark@codesourcery.com>
1785         PR c++/25010
1786         * ipa-inline.c (cgraph_clone_inlined_nodes): Do not assume that
1787         DECL_EXTERNAL functions have no bodies.  Tidy.
1789 2005-12-10  Andreas Schwab  <schwab@suse.de>
1791         * except.c (switch_to_exception_section): Only define if
1792         TARGET_UNWIND_INFO is not defined.
1794 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
1796         * config/darwin.h (HAS_INIT_SECTION): Remove definition.
1797         (INIT_SECTION_ASM_OP): Restore empty definition from before 2005-12-07.
1799 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
1801         * output.h (init_section, fini_section): Delete.
1802         * varasm.c (init_section, fini_section): Delete.
1803         (init_varasm_once): Don't initialize them.
1804         * doc/tm.texi (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Say that
1805         there are no corresponding varasm.c variables.
1807 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
1809         * dwarf2out.c (default_eh_frame_section): Delete, moving handling
1810         of EH_FRAME_SECTION_NAME into...
1811         (switch_to_eh_frame_section): ...here.  Try to set eh_frame_section
1812         if it is still null.
1813         * except.c (default_exception_section): Delete, moving most
1814         of the code to...
1815         (switch_to_exception_section): ...this new function.  Set
1816         exception_section if it is still null, then switch to it.
1817         (output_function_exception_table): Use switch_to_exception_section.
1818         * varasm.c (exception_section, eh_frame_section): Update comments.
1819         (get_section): Hoist use of SECTION_NAMED.
1820         (init_varasm_once): Don't set exception_section and eh_frame_section.
1821         * output.h (default_exception_section): Delete.
1822         (default_eh_frame_section): Delete.
1824 2005-12-09  Bernd Schmidt  <bernd.schmidt@analog.com>
1826         * config/bfin/bfin.c: Include "cgraph.h".
1827         (bfin_load_pic_reg): Omit loading pic reg if in a local function.
1828         Return the reg that holds the pointer to the GOT.
1829         (bfin_expand_prologue): Use return value of bfin_load_pic_reg when
1830         doing stack checking.
1832 2005-12-09  Diego Novillo  <dnovillo@redhat.com>
1834         * tree.c (recompute_tree_invariant_for_addr_expr): Rename from
1835         recompute_tree_invarant_for_addr_expr.
1836         Update uses everywhere.
1838 2005-12-09  Aldy Hernandez  <aldyh@redhat.com>
1840         * config/ms1/t-ms1 (MULTILIB_OPTIONS): Define.
1841         (MULTILIB_DIRNAMES): Define.
1843 2005-12-09  Ulrich Weigand  <uweigand@de.ibm.com>
1845         PR target/25311
1846         * config/s390/s390.c (struct s390_address): New field literal_pool.
1847         (s390_decompose_address): Compute literal_pool field.  Do not
1848         assume register %r13 is always (and solely) used as pool base.
1849         (s390_extra_constraint_str): Use literal_pool field.
1851 2005-12-09  Thiemo Seufer  <ths@networkno.de>
1853         * config/mips/mips.c (override_options): Don't allow too small
1854         integers in FP registers.
1856 2005-12-09  Ulrich Weigand  <uweigand@de.ibm.com>
1858         * config/s390/s390.c (s390_function_ok_for_sibcall): Use
1859         targetm.binds_local_p to check for local function calls.
1861 2005-12-09  Alan Modra  <amodra@bigpond.net.au>
1863         PR debug/24908
1864         * dwarf2out.c (dwarf2out_frame_debug_expr): Don't assert that
1865         call_used_regs can't be used to save reg in another reg.
1867 2005-12-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1868             Christophe Jaillet  <christophe.jaillet@wanadoo.fr>
1870         * ipa-type-escape.c (analyze_variable): Use gcc_assert instead of
1871         abort.
1872         * except.c (output_ttype): Likewise.
1873         * tree-object-size.c (collect_object_sizes_for): Likewise.
1874         (check_for_plus_in_loops_1): Likewise.
1875         (check_for_plus_in_loops): Likewise.
1876         (compute_object_sizes): Use gcc_unreachable instead of abort.
1878 2005-12-08  Nathan Sidwell  <nathan@codesourcery.com>
1880         * config/ms1/ms1.md (UNSPEC_LOOP): New constant.
1881         (loop_end, loop_init, doloop_end): New insns.
1882         * config/ms1/ms1.h (LOOP_FIRST, LOOP_LAST): New.
1883         (SPECIAL_REG_FIRST, FIRST_PSEUDO_REGISTER): Adjust.
1884         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
1885         (REG_CLASS_CONTENTS, REGISTER_NAMES): Adjust.
1886         * config/ms1/ms1.c: #include basic-block.h
1887         (struct machine_function): Add has_loops field.
1888         (ms1_add_loop): New.
1889         (MAX_LOOP_DEPTH, MAX_LOO_LENGTH): New.
1890         (struct loop_info, struct loop_work): New.
1891         (ms1_loop_nesting, ms1_block_length, ms1_scan_loop): New workers.
1892         (ms1_reorg_loops): New loop optimization.
1893         (ms1_machine_reorg): Call it.
1894         * config/ms1/ms1-protos.h (ms1_add_loop): Declare.
1896 2005-12-08  Zdenek Dvorak  <dvorakz@suse.cz>
1898         PR tree-optimization/25248
1899         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Do not use
1900         evolution_of_loop from the failed attempt.  Remove handling
1901         of MULT_EXPR.
1903 2005-12-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1905         * tree.h (DECL_EXTERNAL): Clarify documentation.
1907 2005-12-08  Andreas Krebbel  <krebbel1@de.ibm.com>
1908             Jakub Jelinek  <jakub@redhat.com>
1910         PR target/25268
1911         * config/s390/s390.c (s390_decompose_shift_count): Remove BITS
1912         argument.  Don't drop outer ANDs.
1913         (s390_extra_constraint_str, print_shift_count_operand): Adjust callers.
1914         * config/s390/s390-protos.h (s390_decompose_shift_count): Adjust
1915         prototype.
1916         * config/s390/predicates.md (setmem_operand): Remove.
1917         (shift_count_operand): Rename to...
1918         (shift_count_or_setmem_operand): ... this.  Adjust
1919         s390_decompose_shift_count caller.
1920         * config/s390/s390.md (<shift>di3_31_and, <shift>di3_64_and,
1921         ashrdi3_cc_31_and, ashrdi3_cconly_31_and, ashrdi3_31_and,
1922         ashrdi3_cc_64_and, ashrdi3_cconly_64_and, ashrdi3_64_and,
1923         <shift>si3_and, ashrsi3_cc_and, ashrsi3_cconly_and, ashrsi3_and,
1924         rotl<mode>3_and, setmem_long_and): New insns.
1925         (<shift>di3_31, <shift>di3_64, ashrdi3_cc_31, ashrdi3_cconly_31,
1926         ashrdi3_31, ashrdi3_cc_64, ashrdi3_cconly_64, ashrdi3_64,
1927         <shift>si3, ashrsi3_cc, ashrsi3_cconly, ashrsi3, rotl<mode>3,
1928         <shift>di3, ashrdi3): Use shift_count_or_setmem_operand instead
1929         of shift_count_operand.
1930         (setmem_long): Use shift_count_or_setmem_operand instead of
1931         setmem_operand.
1933 2005-12-08  Daniel Jacobowitz  <dan@codesourcery.com>
1934             Andreas Tobler  <a.tobler@schweiz.ch>
1936         * Makefile.in (ALL_GTFILES_H): Replace sed statement with more portable
1937         tr expression.
1939 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
1941         * expr.c (force_operand): Use convert_to_mode for conversions.
1943 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
1945         * reload.h (reg_equiv_invariant): Declare.
1946         * reload.c (refers_to_regno_for_reload_p): Allow R to be a pseudo
1947         register also when reg_equiv_invariant[R] is set.
1949 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
1950             Andreas Tobler  <a.tobler@schweiz.ch>
1952         * config/darwin.h: Guard section variables with #ifndef USED_FOR_TARGET.
1954 2005-12-07  Daniel Berlin  <dberlin@dberlin.org>
1956         * tree-ssa-pre.c (bitmap_set_and): New function.
1957         (bitmap_set_and_compl): New function.
1958         (bitmap_set_empty_p): New function.
1959         (insert_extra_phis): New function.
1960         (compute_avail): Use insert_extra_phis.
1962 2005-12-07  Adrian Straetling  <straetling@de.ibm.com>
1964         * config/s390/s390.c (s390_expand_atomic): New function.
1965         Adjust comment of helper functions.
1966         * config/s390/s390-protos.h (s390_expand_atomic): Declare.
1967         * config/s390/s390.md ("ATOMIC"): New code macro.
1968         ("atomic"): Corresponding new code attribute.
1969         ("sync_lock_test_and_set[hq]i",
1970         "sync_{new_,old_,}{and,ior,xor,add,sub,nand}[hq]i"): New pattern.
1972 2005-12-07  Adrian Straetling  <straetling@de.ibm.com>
1974         * config/s390/s390.c (s390_expand_mask_and_shift,
1975         struct alignment_context, init_alignment_context,
1976         s390_expand_cs_hqi): New.
1977         * config/s390/s390-protos.h (s390_expand_cs_hqi): Declare.
1978         * config/s390/s390.md ("sync_compare_and_swaphi",
1979         "sync_compare_and_swapqi"): New pattern.
1981 2005-12-07  Daniel Berlin <dberlin@dberlin.org>
1983         Fix PR tree-optimization/25291
1984         * tree-ssa-operands.c (add_call_clobber_ops): Remove
1985         redundant and crashing check.
1987 2005-12-08  Alan Modra  <amodra@bigpond.net.au>
1989         PR target/25212
1990         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Relax
1991         tests further when !strict && reload_in_progress.
1992         (print_operand): Check that both operands of indexed address are regs.
1993         (print_operand_address): Likewise.
1994         * config/rs6000/rs6000.h (INT_REG_OK_FOR_INDEX_P): Simplify.
1995         (INT_REG_OK_FOR_BASE_P): Correct.
1997 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
1999         Preparation for PR rtl-optimization/20070 / part1
2000         * basic-block.h (insns_match_p, flow_find_cross_jump): Declare.
2001         * cfgcleanup.c (condjump_equiv_p): New function, broken out of
2002         outgoing_edges_match.
2003         (outgoing_edges_match): Use condjump_equiv_p.
2004         (merge_memattrs, insns_match_p, flow_find_cross_jump): Move from here
2005         into..
2006         * struct-equiv.c: New file.
2007         (death_notes_match_p) New function, broken out of insns_match_p.
2008         * Makefile.in (OBJS-common): Add struct-equiv.o.
2009         (struct-equiv.o): New target.
2011 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
2013         * coretypes.h: Revert previous change.
2014         * config/darwin.h: Revert previous reversion.
2015         * config/avr/avr.h (progmem_section): Guard with #ifndef IN_LIBGCC2.
2017 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
2019         * coretypes.h (section): Provide dummy definition for target files.
2020         * config/darwin.h: Revert previous change.
2022 2005-12-07  Rafael vila de Espndola  <rafael.espindola@gmail.com>
2024         * doc/sourcebuild.texi (all.build, install-normal): Remove.
2025         * configure.ac: Remove all.build and install-normal from target_list
2026         * configure: Regenerate.
2027         * Makefile.in (install): Don't depend on install-normal.
2029 2005-12-07  Rafael vila de Espndola  <rafael.espindola@gmail.com>
2031         * Makefile.in: Document the use of stamps.
2033 2005-12-07  Rafael vila de Espndola  <rafael.espindola@gmail.com>
2035         * doc/gty.texi: Remove instructions for adding a dependency on s-gtype.
2036         * Makefile.in: Add code to compute some dependencies on s-gtype
2037         automatically.  Remove the declaration of those dependencies.
2039 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
2041         * reload.c (push_secondary_reload): Fix typo:
2042         s/insn_constraint/scratch_constraint/.
2044 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
2046         * config/darwin.h: Guard section variables with #ifndef IN_LIBGCC2.
2048 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
2050         * config/alpha/alpha.c (alpha_start_function): Use switch_to_section.
2051         (alpha_elf_select_rtx_section): Return the selected section rather
2052         than emitting assembly code.
2053         (alpha_write_linkage): Emit a ".link" directive directly and then
2054         set in_section to NULL.
2055         (vms_asm_out_constructor): Use switch_to_section.
2056         (vms_asm_out_destructor): Likewise.
2057         (unicosmk_output_common): Set in_section to NULL instead of calling
2058         the dummy common_section function.
2059         (unicosmk_text_section): Delete in favor of...
2060         (unicosmk_output_text_section_asm_op): ...this new function.
2061         (unicosmk_data_section): Delete in favor of...
2062         (unicosmk_output_data_section_asm_op): ...this new function.
2063         (unicosmk_init_sections): New function.
2064         (unicosmk_output_deferred_case_vectors): Use switch_to_section.
2065         (unicosmk_output_ssib): Set in_section to NULL instead of calling
2066         the dummy ssib_section function.
2067         (unicosmk_section_buf): Delete.
2068         * config/alpha/alpha-protos.h (unicosmk_text_section): Delete.
2069         (unicosmk_data_section): Delete.
2070         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
2071         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, sbss_section, sdata_section)
2072         (SECTION_FUNCTION_TEMPLATE): Delete.
2073         * config/alpha/unicosmk.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP)
2074         (READONLY_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2075         (common_section, COMMON_SECTION, ssib_section, SSIB_SECTION): Delete.
2076         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
2077         (TARGET_ASM_INIT_SECTIONS): Define.
2078         * config/alpha/vms.h (LINK_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP)
2079         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2080         (link_section, literals_section): Delete.
2081         (ASM_OUTPUT_DEF): Emit the ".literal" directive directly and then
2082         set in_section to NULL.
2084         * config/arm/aof.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Delete.
2085         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, ZERO_INIT_SECTION): Delete.
2086         (COMMON_SECTION): Delete.
2087         (TARGET_ASM_INIT_SECTIONS): Define.
2088         (ASM_OUTPUT_COMMON): Set in_section to NULL rather than calling
2089         the dummy common_section function.
2090         * config/arm/aout.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
2091         * config/arm/arm.c (get_jump_table_size): Use pointer comparison
2092         between readonly_data_section and text_section to check whether
2093         read-only data is being put in the text section.
2094         (arm_output_function_epilogue): Use switch_to_section.
2095         (arm_elf_asm_constructor): Likewise.
2096         (thumb_call_via_reg): Replace call to in_text_section with
2097         a comparison between in_section and text_section.
2098         (arm_file_end): Use switch_to_section.
2099         (aof_text_section): Delete in favor of...
2100         (aof_output_text_section_asm_op): ...this new function.
2101         (aof_data_section): Delete in favor of...
2102         (aof_output_data_section_asm_op): ...this new function.
2103         (aof_asm_init_sections): New function.
2104         (zero_init_section): Moved from config/arm/aof.h.
2105         (aof_dump_imports, aof_file_start): Use switch_to_section.
2106         * config/arm/arm.h (thumb_call_via_label): Update comment.
2107         * config/arm/arm-protos.h (aof_text_section, aof_data_section): Delete.
2108         (common_section): Delete.
2109         * config/arm/pe.h (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
2110         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
2111         global switch_to_section function instead of the old port-local one.
2112         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION)
2113         (SWITCH_TO_SECTION_FUNCTION): Delete.
2114         (drectve_section): Redefine as a macro.
2115         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS):
2116         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use get_named_section and
2117         switch_to_section.
2119         * config/avr/avr.c (progmem_section): New variable.
2120         (avr_output_progmem_section_asm_op): New function.
2121         (avr_asm_init_sections): New function.
2122         (avr_output_addr_vec_elt): Use switch_to_section.
2123         * config/avr/avr.h (progmem_section): Declare.
2124         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2125         (READONLY_DATA_SECTION): Delete.
2126         (TARGET_ASM_INIT_SECTIONS): Define.
2127         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
2128         * config/avr/avr-protos.h (progmem_section): Delete.
2130         * config/bfin/bfin.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
2132         * config/c4x/c4x.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2133         (INIT_SECTION_FUNCTION, FINI_SECTION_FUNCTION): Delete.
2135         * config/darwin-sections.def: New file.
2136         * config/darwin.c: Define all sections in darwin-sections.def.
2137         (output_objc_section_asm_op, darwin_init_sections): New functions.
2138         (machopic_output_indirection): Use switch_to_section.
2139         (machopic_select_section): Return the selected section rather than
2140         emitting assembly code.  Replace the static function table with
2141         inline conditional expressions.  Update the tests of last_text_section
2142         and move them into the FUNCTION_DECL block.
2143         (machopic_select_rtx_section): Return the selected section rather than
2144         emitting assembly code.
2145         (machopic_asm_out_constructor, machopic_asm_out_destructor)
2146         (darwin_file_end): Use switch_to_section.
2147         * config/darwin.h: Use darwin-sections.def to declare sections.
2148         (INIT_SECTION_ASM_OP): Remove empty definition.
2149         (HAS_INIT_SECTION): Define this instead.
2150         (SECTION_FUNCTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2151         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
2152         (TARGET_ASM_EH_FRAME_SECTION): Delete.
2153         (TARGET_ASM_INIT_SECTIONS): Define.
2154         * config/darwin-protos.h (darwin_init_sections): Declare.
2155         (machopic_picsymbol_stub_section, machopic_picsymbol_stub1_section)
2156         (machopic_symbol_stub_section, machopic_symbol_stub1_section): Delete.
2157         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
2158         (constructor_section, destructor_section, mod_init_section): Delete.
2159         (mod_term_section): Delete.
2160         (darwin_exception_section, darwin_eh_frame_section): Delete.
2161         (machopic_select_section): Return a section.
2162         (machopic_select_rtx_section): Likewise.
2163         (text_coal_section, text_unlikely_section, text_unlikely_coal_section)
2164         (const_section, const_coal_section, const_data_section): Delete.
2165         (const_data_coal_section, data_coal_section, cstring_section): Delete.
2166         (literal4_section, literal8_section, constructor_section): Delete.
2167         (mod_init_section, mod_term_section, destructor_section): Delete.
2168         (objc_class_section, objc_meta_class_section, objc_category_section)
2169         (objc_class_vars_section, objc_instance_vars_section): Delete.
2170         (objc_cls_meth_section, objc_inst_meth_section): Delete.
2171         (objc_cat_cls_meth_section, objc_cat_inst_meth_section): Delete.
2172         (objc_selector_refs_section, objc_selector_fixup_section): Delete.
2173         (objc_symbols_section, objc_module_info_section): Delete.
2174         (objc_image_info_section, objc_protocol_section): Delete.
2175         (objc_string_object_section, objc_constant_string_object_section)
2176         (objc_class_names_section, objc_meth_var_names_section): Delete.
2177         (objc_meth_var_types_section, objc_cls_refs_section): Delete.
2178         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
2179         (machopic_symbol_stub_section, machopic_picsymbol_stub_section)
2180         (darwin_exception_section, darwin_eh_frame_section): Delete.
2181         * config/t-darwin (darwin.o): Depend on config/darwin-sections.def.
2183         * config/frv/frv.c (frv_asm_out_constructor): Use switch_to_section.
2184         (frv_asm_out_destructor): Likewise.
2185         * config/frv/frv.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2186         (SDATA_SECTION_FUNCTION, FIXUP_SECTION_FUNCTION): Delete.
2187         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use switch_to_section and
2188         get_named_section.
2189         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
2190         * config/frv/frv-protos.h (fixup_section, sdata_section, sbss_section)
2191         (data_section): Delete.
2193         * config/i386/cygming.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2194         (DRECTVE_SECTION_FUNCTION): Delete.
2195         (drectve_section): Redefine as a macro that sets in_section after
2196         emitting the directive.
2197         (SWITCH_TO_SECTION_FUNCTION): Delete.
2198         * config/i386/darwin.h (ASM_OUTPUT_ALIGN): Replace call to
2199         in_text_section with comparison between in_section and text_section.
2200         * config/i386/i386.c (x86_64_elf_select_section): Return the section
2201         rather than emitting assembly code.  Use get_named_section.
2202         (x86_output_aligned_bss, ix86_file_end): Use switch_to_section and
2203         get_named_section.
2204         (machopic_output_stub): Use switch_to_section.
2205         * config/i386/nwld.c (nwld_named_section_asm_out_constructor)
2206         (nwld_named_section_asm_out_destructor): Use get_section and
2207         switch_to_section.
2209         * config/ia64/ia64.c (ia64_select_rtx_section): Return the section
2210         rather than emitting assembly code.
2211         (ia64_rwreloc_select_section): Likewise.
2212         (ia64_rwreloc_select_rtx_section): Likewise.
2213         * config/ia64/ia64-protos.h (sdata_section, sbss_section): Delete.
2214         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
2215         switch_to_section.
2216         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2217         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Delete.
2219         * config/iq2000/iq2000.c (iq2000_select_rtx_section): Return the
2220         section rather than emitting assembly code.
2221         (iq2000_select_section): Likewise.
2222         * config/iq2000/iq2000.h (rdata_section, sdata_section): Delete.
2223         (sbss_section): Delete.
2225         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use switch_to_section
2226         and get_named_section.
2227         * config/m32r/m32r-protos.h (sbss_section, sdata_section): Delete.
2229         * config/mcore/mcore-elf.h (EXPORTS_SECTION_ASM_OP): Delete.
2230         (SUBTARGET_EXTRA_SECTIONS, SUBTARGET_EXTRA_SECTION_FUNCTIONS): Delete.
2231         (EXPORT_SECTION_FUNCTION, SUBTARGET_SWITCH_SECTIONS): Delete.
2232         (MCORE_EXPORT_NAME): Emit the exports directive directly, then set
2233         in_section to NULL.
2234         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
2235         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
2236         global switch_to_section function instead of the old port-local one.
2237         * config/mcore/mcore.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2238         (SWITCH_SECTION_FUNCTION): Delete.
2239         * config/mcore/mcore-pe.h (SUBTARGET_SWITCH_SECTIONS): Delete.
2240         (DRECTVE_SECTION_ASM_OP, SUBTARGET_EXTRA_SECTIONS): Delete.
2241         (SUBTARGET_EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION): Delete.
2242         (MCORE_EXPORT_NAME): Emit ".section .drectve" directly, then set
2243         in_section to NULL.
2244         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
2245         global switch_to_section function instead of the old port-local one.
2246         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
2248         * config/mips/mips.c (mips_file_start): Update comment.
2249         (mips_output_aligned_bss): Use switch_to_section and get_named_section.
2250         (mips_output_aligned_decl_common): Use switch_to_section.
2251         (mips_select_rtx_section): Return the section rather than emitting
2252         assembly code.  Use get_named_section.
2253         (mips_function_rodata_section: Likewise get_section.
2254         (build_mips16_function_stub): Use switch_to_section.
2255         * config/mips/mips.h (ASM_OUTPUT_IDENT): Use switch_to_section.
2256         (SDATA_SECTION_ASM_OP): Delete.
2257         * config/mips/vxworks.h (EXTRA_SECTIONS): Delete.
2258         (EXTRA_SECTION_FUNCTIONS): Delete.
2260         * config/mmix/mmix.c (mmix_file_start, mmix_file_end)
2261         (mmix_asm_output_aligned_local): Use switch_to_section.
2263         * config/pa/pa.c (som_readonly_data_section, som_one_only_data_section)
2264         (som_one_only_readonly_data_section): New variables.
2265         (pa_output_function_epilogue): Set in_section to NULL instead of
2266         calling forget_section.
2267         (output_deferred_plabels): Use select_section.
2268         (pa_asm_output_mi_thunk): Likewise.  Set in_section to NULL instead
2269         of calling forget_section.
2270         (pa_asm_output_aligned_bss, pa_asm_output_aligned_common)
2271         (pa_asm_output_aligned_local): Use select_section.
2272         (som_text_section_asm_op): Delete in favor of...
2273         (som_output_text_section_asm_op): ...this new function.
2274         (pa_som_asm_init_sections): New function.
2275         (pa_select_section): Return the section rather than emitting
2276         assembly code.
2277         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2278         (SOM_READONLY_DATA_SECTION_FUNCTION): Delete.
2279         (SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION): Delete.
2280         (SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): Delete.
2281         * config/pa/pa-protos.h (som_text_section_asm_op): Delete.
2282         (som_readonly_data_section, som_one_only_readonly_data_section)
2283         (som_one_only_data_section, forget_section): Delete.
2284         * config/pa/som.h (TEXT_SECTION_ASM_OP): Delete.
2285         (TARGET_ASM_INIT_SECTIONS): Define.
2286         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
2288         * config/rs6000/rs6000.c (read_only_data_section): New variable.
2289         (private_data_section, read_only_private_data_section): New variables.
2290         (sdata2_section, toc_section): New variables.
2291         (rs6000_file_start): Use switch_to_section.
2292         (rs6000_assemble_integer): Use comparisons against in_section
2293         instead of calling in_toc_section and in_text_section.  Use
2294         unlikely_text_section_p.
2295         (rs6000_elf_output_toc_section_asm_op): New function, derived
2296         from the old rs6000/sysv4.h toc_section function.
2297         (rs6000_elf_asm_init_sections): New function.
2298         (rs6000_elf_select_rtx_section, rs6000_elf_select_section): Return
2299         the section rather than emitting assembly code.
2300         (machopic_output_stub): Use switch_to_section.
2301         (toc_section): Delete dummy function.
2302         (rs6000_elf_asm_out_constructor, rs6000_elf_asm_out_destructor): Use
2303         switch_to_section and get_section.
2304         (rs6000_xcoff_output_readonly_section_asm_op): New function.
2305         (rs6000_xcoff_output_readwrite_section_asm_op): New function.
2306         (rs6000_xcoff_output_toc_section_asm_op): New function, derived from
2307         the old rs6000/xcoff.h toc_section function.
2308         (rs6000_xcoff_asm_init_sections): New function.
2309         (rs6000_xcoff_select_section, rs6000_xcoff_select_rtx_section): Return
2310         the section rather than emitting assembly code.
2311         (rs6000_xcoff_file_start): Use switch_to_section.
2312         (rs6000_xcoff_file_end): Likewise.
2313         * config/rs6000/rs6000-protos.h (toc_section, sdata_section): Delete.
2314         (sdata2_section, sbss_section, private_data_section): Delete.
2315         (read_only_data_section, read_only_private_data_section): Delete.
2316         * config/rs6000/sysv4.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2317         (TOC_SECTION_FUNCTION, SDATA_SECTION_FUNCTION, SDATA2_SECTION_FUNCTION)
2318         (SBSS_SECTION_FUNCTION, INIT_SECTION_FUNCTION): Delete.
2319         (FINI_SECTION_FUNCTION): Delete.
2320         (TARGET_ASM_INIT_SECTIONS): Define.
2321         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
2322         * config/rs6000/xcoff.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2323         (READ_ONLY_DATA_SECTION_FUNCTION, PRIVATE_DATA_SECTION_FUNCTION)
2324         (READ_ONLY_PRIVATE_DATA_SECTION_FUNCTION, TOC_SECTION_FUNCTION)
2325         (READONLY_DATA_SECTION): Delete.
2326         (TARGET_ASM_INIT_SECTIONS): Define.
2327         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.  Set in_section
2328         to NULL rather than no_section.
2329         (TARGET_ASM_EXCEPTION_SECTION): Delete.
2331         * config/sh/sh.c (sh_file_start): Use switch_to_section.
2333         * config/sparc/sparc.c (emit_pic_helper): Use switch_to_section.
2334         (sparc_output_deferred_case_vectors): Likewise.  Remove argument
2335         from call to current_function_section.
2337         * config/stormy16/stormy16.c: Include ggc.h and gt-storm16.h.
2338         (bss100_section): New variable.
2339         (xstormy16_asm_output_aligned_common): Use switch_to_section.
2340         (xstormy16_asm_init_sections): New function.
2341         (xstormy16_asm_out_destructor, xstormy16_asm_out_constructor): Use
2342         switch_to_section and get_section.
2343         (xstormy16_output_addr_vec): Use switch_to_section.  Remove argument
2344         from calls to current_function_section.
2345         * config/stormy16/stormy16.h (EXTRA_SECTIONS): Delete.
2346         (XSTORMY16_SECTION_FUNCTION, EXTRA_SECTION_FUNCTIONS): Delete.
2347         (TARGET_ASM_INIT_SECTIONS): Define.
2348         * config/stormy16/stormy16-protos.h (bss100_section): Delete.
2350         * config/svr3.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
2351         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, INIT_SECTION_FUNCTION)
2352         (FINI_SECTION_FUNCTION): Delete.
2354         * config/v850/v850.c: Include gt-v850.h.
2355         (rosdata_section, rozdata_section, tdata_section, zdata_section)
2356         (zbss_section): New variables.
2357         (v850_output_aligned_bss): Use switch_to_section.
2358         (v850_asm_init_sections): New function.
2359         (v850_select_section): Return the section rather than emitting
2360         assembly code.
2361         * config/v850/v850.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2362         (ZDATA_SECTION_ASM_OP, ZBSS_SECTION_ASM_OP, TDATA_SECTION_ASM_OP)
2363         (ROSDATA_SECTION_ASM_OP, ROZDATA_SECTION_ASM_OP): Delete.
2364         (TARGET_ASM_INIT_SECTIONS): Define.
2365         * config/v850/v850-protos.h (sdata_section, rosdata_section): Delete.
2366         (sbss_section, tdata_section, zdata_section, rozdata_section): Delete.
2367         (zbss_section): Delete.
2369         * config/vax/vaxv.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
2371         * config/vx-common.h (vxworks_exception_section): Delete.
2372         (TARGET_ASM_EXCEPTION_SECTION): Delete.
2374         * config/xtensa/xtensa.c (xtensa_select_rtx_section): Return the
2375         section rather than emitting assembly code.
2376         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Use
2377         switch_to_section.
2379         * Makefile.in (GTFILES): Add $(srcdir)/output.h.
2380         * coretypes.h (section): New union and typedef.
2381         * dbxout.c (FORCE_TEXT): Use switch_to_section.  Remove argument
2382         from call to current_function_section.
2383         (dbxout_function_end, dbxout_init, dbxout_source_file, dbxout_finish)
2384         (dbxout_symbol_location): Use switch_to_section.
2385         * dwarf2out.c (named_section_eh_frame_section): Delete, moving
2386         most of the code into...
2387         (default_eh_frame_section): ...here.  Return a section.
2388         (collect2_eh_frame_section): Delete, moving most of the code into..
2389         (switch_to_eh_frame_section): ...this new function.
2390         (debug_info_section, debug_abbrev_section, debug_aranges_section)
2391         (debug_macinfo_section, debug_line_section, debug_loc_section)
2392         (debug_pubnames_section, debug_str_section, debug_ranges_section): New
2393         variables.
2394         (output_call_frame_info): Call switch_to_eh_frame_section instead of
2395         eh_frame_section.  Use switch_to_section and get_section.
2396         (dwarf2out_begin_prologue): Use switch_to_section.
2397         (AT_string_form): Check the flags in debug_str_section instead of
2398         DEBUG_STR_SECTION_FLAGS.
2399         (output_comp_unit): Use switch_to_section, get_section, and
2400         debug_info_section.
2401         (output_line_info, secname_for_decl): Use unlikely_text_section_p.
2402         (dwarf2out_begin_block): Use switch_to_section.  Remove argument
2403         from call to current_function_section.
2404         (dwarf2out_var_location): Use unlikely_text_section_p.
2405         (dwarf2out_source_line): Use switch_to_section.  Remove argument
2406         from call to current_function_section.
2407         (dwarf2out_start_source_file, dwarf2out_end_source_file)
2408         (dwarf2out_define, dwarf2out_undef: Use switch_to_section and
2409         debug_macinfo_section.
2410         (dwarf2out_init): Initialize the new section variables.  Use them
2411         instead of calls to named_section_flags.  Use switch_to_section.
2412         (output_indirect_string): Use switch_to_section and debug_str_section.
2413         (dwarf2out_finish): Use switch_to_section and the new section
2414         variables.
2415         * except.c (default_exception_section): Return the section instead
2416         of emitting assembly code.
2417         (output_function_exception_table): Use the global exception_section
2418         variable instead of the target hook.  Use switch_to_section.  Remove
2419         argument from call to current_function_section.
2420         * final.c (HAVE_READONLY_DATA_SECTION): Delete.
2421         (shorten_branches): Use pointer comparisons to detect whether the
2422         text section is the same as readonly_data_section.
2423         (profile_function): Use switch_to_section.  Remove argument from
2424         call to current_function_section.
2425         (final_scan_insn): Likewise.  Update use of last_text_section.
2426         * gengtype.c (open_base_files): Add an include of output.h.
2427         * output.h (text_section, data_section, readonly_data_section)
2428         (ctors_section, dtors_section, bss_section, init_section)
2429         (fini_section, sdata_section): Turn into section pointers.
2430         (in_text_section, in_unlikely_text_section, exports_section)
2431         (drectve_section, named_section, mergeable_string_section)
2432         (last_text_section_name): Delete.
2433         (default_exception_section, default_eh_frame_section): Return sections.
2434         (SECTION_DECLARED, SECTION_NAMED): New macros.
2435         (SECTION_MACH_DEP): Bump value.
2436         (section_common, named_section, unnamed_section): New structures.
2437         (unnamed_section_callback): New typedef.
2438         (section): New union.
2439         (sbss_section, exception_section, eh_frame_section): New variables.
2440         (in_section, last_text_section): Turn into section pointers.
2441         (get_unnamed_section, get_section, get_named_section): New functions.
2442         (mergeable_constant_section, function_section): Return a section.
2443         (unlikely_text_section): Likewise.
2444         (current_function_section): Likewise.  Remove the decl argument.
2445         (unlikely_text_section_p, switch_to_section): New functions.
2446         (output_section_asm_op): New function.
2447         (set_named_section_flags, named_section_flags, named_section_real)
2448         (named_section_first_declaration): Delete.
2449         (default_select_section, default_elf_select_section): Return a section.
2450         (default_elf_select_section_1, default_function_rodata_section)
2451         (default_no_function_rodata_section, default_select_rtx_section)
2452         (default_elf_select_rtx_section): Likewise.
2453         * rtl.h (in_data_section): Delete.
2454         * sdbout.c (sdbout_one_type): Use switch_to_section.
2455         * system.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Poison.
2456         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Poison.
2457         (TARGET_ASM_EH_FRAME_SECTION): Poison.
2458         * target-def.h (TARGET_ASM_INIT_SECTIONS): New macro.
2459         (TARGET_ASM_EXCEPTION_SECTION, TARGET_ASM_EH_FRAME_SECTION): Delete.
2460         (TARGET_ASM_OUT): Update after above changes.
2461         * target.h (init_sections): New hook.
2462         (exception_section, eh_frame_section): Delete.
2463         (select_section, select_rtx_section, function_rodata_section): Return
2464         a section rather than emitting assembly code.
2465         * varasm.c (text_section, data_section, readonly_data_section)
2466         (ctors_section, dtors_section, bss_section, init_section)
2467         (fini_section): Turn into section pointers.
2468         (sdata_section, sbss_section, exception_section): New variables.
2469         (eh_frame_section): New variable.
2470         (in_section): Make global and turn into a section pointer.
2471         (last_text_section): Turn into a section pointer.
2472         (unnamed_sections): New variable.
2473         (in_named_name, last_text_section_name): Delete.
2474         (EXTRA_SECTION_FUNCTIONS): Delete.
2475         (in_named_entry): Delete.
2476         (section_htab): New variable, replacing...
2477         (in_named_htab): ...this deleted variable.
2478         (section_entry_eq, section_entry_hash): New functions, based on...
2479         (in_named_entry_eq, in_named_entry_hash): ...these deleted functions.
2480         (get_unnamed_section, get_section): New functions.
2481         (unlikely_text_section): Return a section instead of emitting
2482         assembly code.
2483         (in_text_section, in_unlikely_text_section, in_data_section): Delete.
2484         (get_named_section_flags, named_section_first_declaration): Delete.
2485         (unlikely_text_section_p): New function.
2486         (named_section_real, named_section): Delete.
2487         (get_named_section): New function.
2488         (asm_output_bss, asm_output_aligned_bss): Use switch_to_section.
2489         (function_section): Return a section rather than emitting
2490         assembly code.
2491         (current_function_section): Likewise.  Remove argument.  Use
2492         last_text_section if nonnull, otherwise use function_section.
2493         (default_function_rodata_section): Return a section rather than
2494         emitting assembly code.  Use get_section.
2495         (default_no_function_rodata_section): Return a section rather than
2496         emitting assembly code.
2497         (variable_section): Use switch_to_section and get_named_section.
2498         (mergeable_string_section): Return a section rather than emitting
2499         assembly code.  Use get_section.  Make static.  Don't take special
2500         countermeasures for empty strings.
2501         (mergeable_constant_section): Return a section rather than emitting
2502         assembly code.  Use get_section.
2503         (default_named_section_asm_out_destructor): Use switch_to_section
2504         and get_section.
2505         (default_dtor_section_asm_out_destructor): Use switch_to_section.
2506         (default_named_section_asm_out_constructor): Use switch_to_section
2507         and get_section.
2508         (default_ctor_section_asm_out_constructor): Use switch_to_section.
2509         (assemble_start_function): Likewise.  Set last_text_section to
2510         NULL rather than no_section.  Change the type of save_section.
2511         (assemble_zeros, assemble_variable): Use the section flags to detect
2512         whether or not a section is text.
2513         (assemble_static_space): Use switch_to_section.
2514         (assemble_trampoline_template): Likewise.
2515         (output_constant_def_contents): Use switch_to_section and
2516         get_named_section.
2517         (output_constant_pool_1): Use switch_to_section.  Use the section
2518         flags to see whether sections contain mergeable data.
2519         (init_varasm_once): Initialize section_htab instead of in_named_htab.
2520         Initialize new section variables.  Call TARGET_ASM_INIT_SECTIONS.
2521         (default_elf_asm_named_section): Use SECTION_DECLARED to detect
2522         whether a section has already been declared.
2523         (default_select_section, default_elf_select_section): Return a
2524         section rather than emitting assembly code.
2525         (default_elf_select_section_1): Likewise.  Use bss_section for
2526         SECCAT_BSS if nonnull.  Use get_named_section.
2527         (default_select_rtx_section): Return a section rather than
2528         emitting assembly code.
2529         (default_elf_select_rtx_section): Likewise.  Use get_named_section.
2530         (file_end_indicate_exec_stack): Use switch_to_section and get_section.
2531         (output_section_asm_op, switch_to_section): New functions.
2532         * vmsdbgout.c (vmsdbgout_finish): Use switch_to_section and
2533         get_named_section.
2535         * doc/tm.texi: Expand the introduction to the sections documentation.
2536         (TRAMPOLINE_SECTION): Document new interface.
2537         (SDATA_SECTION_ASM_OP): Document new macro.
2538         (READONLY_DATA_SECTION): Delete.
2539         (SDATA_SECTION_ASM_OP): Document new macro.
2540         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2541         (TARGET_ASM_INIT_SECTIONS): Document new hook.
2542         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_FUNCTION_RODATA_SECTION)
2543         (TARGET_ASM_SELECT_RTX_SECTION): Adjust for new interface.
2544         (TARGET_EXCEPTION_SECTION, TARGET_EH_FRAME_SECTION): Delete.
2546 2005-12-07  Alan Modra  <amodra@bigpond.net.au>
2548         * gcc.c (init_gcc_specs): Match braces inside conditionally
2549         compiled strings.
2551 2005-12-06  Geoffrey Keating  <geoffk@apple.com>
2553         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): New.
2555 2005-12-06  Aldy Hernandez  <aldyh@redhat.com>
2557         PR C++/24138
2558         * tree.c (integer_all_onesp): Always return true if all bits on.
2560         * testsuite/g++.dg/init/array0.C: New.
2562 2005-12-06  Adrian Straetling  <straetling@de.ibm.com>
2564         * doc/md.texi: Adapt to implementation.
2566 2005-12-06  Andreas Schwab  <schwab@suse.de>
2568         * opts.c (decode_options): Fix typo in message.
2570 2005-12-06  Alan Modra  <amodra@bigpond.net.au>
2572         PR other/13873
2573         * longlong.h: Merge PPC tests from upstream.
2575 2005-12-06  Richard Guenther  <rguenther@suse.de>
2577         * fold-const.c (fold_convert): Do not build and fold
2578         CONVERT_EXPR, but always use NOP_EXPR.
2580 2005-12-06  Jan Beulich  <jbeulich@novell.com>
2582         * config/i386/i386.c (builtin_description): Use MASK_SSE2 for
2583         __builtin_ia32_paddq and __builtin_ia32_psubq.
2584         (ix86_init_mmx_sse_builtins): Use MASK_SSE|MASK_3DNOW_A for
2585         __builtin_ia32_pshufw.
2586         * config/i386/i386.md (mmx_adddi3, mmx_subdi3): Depend on TARGET_SSE2.
2588 2005-12-05  James E Wilson  <wilson@specifix.com>
2590         PR target/24934
2591         * opts.c (decode_options): Turn off partitioning if flag_unwind_tables
2592         is set.
2594 2005-12-05  Daniel Berlin  <dberlin@dberlin.org>
2596         * print-tree.c (print_node): Ditto.
2597         * tree-dfa.c (add_referenced_var): Tag's don't have DECL_INITIAL.
2598         * tree-dump.c (dequeue_and_dump): Check for decl_common structure
2599         before accessing DECL_ARTIFICIAL.
2600         Handle new tag tree codes.
2601         * tree-flow-inline.h (clear_call_clobbered): Update for tag
2602         changes.
2603         (unmodifiable_var_p): Ditto.
2604         * tree-flow.h (mem_tag_kind): Remove.
2605         (struct var_ann_d): Remove mem_tag_kind member.
2606         * tree-gimple.c (is_gimple_reg): Tags are not gimple registers.
2607         * tree-pretty-print.c (dump_generic_node): Handle memory tags.
2608         * tree-ssa-alias.c (init_alias_info): Update for memory tag changes.
2609         (group_aliases): Ditto.
2610         (setup_pointers_and_addressables): Ditto.
2611         (is_escape_site): Ditto.
2612         (may_alias_p): Ditto.
2613         (create_tag_raw): New function.
2614         (create_memory_tag): Use it.
2615         (dump_alias_info): Update for tags.
2616         (may_be_aliased): Ditto.
2617         (add_type_alias): Ditto.
2618         (new_type_alias): Ditto.
2619         (create_sft): Ditto.
2620         (create_structure_vars): Ditto.
2621         * tree-ssa-ccp.c (get_default_value): Ditto.
2622         * tree-ssa-operands.c (get_expr_operands): Ditto.
2623         (add_stmt_operand): Ditto.
2624         (add_call_clobber_ops): Remove duplicated condition.
2625         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
2626         tags.
2627         * tree-tailcall.c (suitable_for_tail_opt_p): Ditto.
2628         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
2629         * tree.c (init_ttree): Update structures for new tree codes.
2630         (tree_code_size): Update sizes for new tree codes.
2631         (make_node_stat): Don't try to set common things on minimal
2632         structures.
2633         (tree_node_structure): Update for tags.
2634         (is_global_var): Ditto.
2635         * tree.def: Add new tree codes.
2636         * tree.h (MTAG_P): New macro.
2637         (TREE_MEMORY_TAG_CHECK): Ditto.
2638         (SSA_VAR_P): Update for tags.
2639         (struct tree_memory_tag): New structure.
2640         (MTAG_GLOBAL): New macro.
2641         (union tree_node): Add memory tag member.
2642         * treestruct.def (TS_MEMORY_TAG): New.
2644 2005-12-05  Dale Johannesen  <dalej@apple.com>
2646         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Fix to match
2647         what was approved (PR 24323).
2649 2005-12-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2651         * doc/c-tree.texi (Function Bodies): Remove description of
2652         RETURN_INIT.
2654 2005-12-05  Joseph S. Myers  <joseph@codesourcery.com>
2656         * doc/libgcc.texi (__floatunsisf, __floatunsidf, __floatunsitf,
2657         __floatunsixf, __floatundisf, __floatundidf, __floatunditf,
2658         __floatundixf, __floatuntisf, __floatuntidf, __floatuntitf,
2659         __floatuntixf, __powisf2, __powidf2, __powixf2, __mulsc3,
2660         __muldc3, __multc3, __mulxc3, __divsc3, __divdc3, __divtc3,
2661         __divxc3): Document.
2663 2005-12-05  Geoffrey Keating  <geoffk@apple.com>
2665         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Preserve
2666         previous behaviour.
2667         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Define to
2668         hook_bool_void_false.
2669         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
2670         * config/darwin.c (darwin_cxx_determine_class_data_visibility): New.
2672         * config/darwin.c (machopic_select_section): It's not defined
2673         as weak if it's only marked as weak_import.
2675         * config/darwin-protos.h (darwin_cxx_determine_class_data_visibility):
2676         Prototype.
2678         * varasm.c (default_binds_local_p_1): Weakrefs don't bind locally.
2679         A hidden weak object does bind locally.  Strong linkonce data
2680         counts like any other strong symbol for binding.
2681         (weak_finish_1): Don't specially handle weakrefs, they no longer
2682         arrive here.
2683         (assemble_alias): Weakrefs can't be TREE_PUBLIC yet.
2684         * c-common.c (handle_alias_attribute): Allow static aliases
2685         of variables.
2686         (handle_weakref_attribute): Don't call declare_weak on weakrefs.
2687         * gthr-dce.h: Make weakrefs static.
2688         * gthr-tpf.h: Likewise.
2689         * gthr-solaris.h: Likewise.
2690         * gthr-posix.h: Likewise.
2691         * gthr-posix95.h: Likewise.
2692         * config/darwin.c (darwin_encode_section_info): static weakref
2693         variables are not necessarily defined in this translation unit.
2694         * doc/extend.texi (Function Attributes): Mention that an alias
2695         attribute creates a definition for the thing it's attached to.
2696         Change the documentation for weakref to say that the thing
2697         it's attached to must be static.
2699         * config/rs6000/host-darwin.c (segv_handler): Unblock SEGV so
2700         we don't go into an infinite loop.
2702 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
2704         * config/rs6000/predicates.md (logical_const_operand): Split
2705         out of logical_operand.
2706         (logical_operand): Use it.
2707         * config/rs6000/rs6000.md (cmp -> xor peephole2): Use
2708         logical_const_operand.
2710 2005-12-05  Jan Beulich  <jbeulich@novell.com>
2712         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_CMPNEPS
2713         and IX86_BUILTIN_CMPNESS.
2714         (ix86_init_mmx_sse_builtins): Remove ti_ftype_ti_ti.
2715         * config/i386/i386.h (ALIGN_MODE_128): Don't check TFmode explicitly.
2716         * config/i386/i386.md (movti_internal): Correct type attribute.
2717         Simplify mode attribute.
2718         (movti_rex64, movsf_1, movdf_nointeger, movdf_integer, movtf_internal):
2719         Correct type attribute.
2720         (absxf2): Correct operator.
2721         * config/i386/mmx.md (mov<mode>_internal_rex64, mov<mode>_internal,
2722         movv2sf_internal_rex64, movv2sf_internal): Correct type attribute.
2723         * config/i386/sse.md (mov<mode>_internal, movv2df_internal): Simplify
2724         mode attribute.
2725         (sse2_vmsqrtv2df2): Correct mode attribute.
2727 2005-12-05  Jan Beulich  <jbeulich@novell.com>
2729         * config/ia64/ia64.md (rotlsi3_internal): Don't split if rotating by
2730         16 bits. Provide insn pattern for this case.
2732 2005-12-05  Jan Beulich  <jbeulich@novell.com>
2734         * libgcc2.c (__popcountSI2): Don't use wide type for iterator and
2735         result.
2736         (__popcountDI2): Likewise.
2738 2005-12-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2740         PR target/25166
2741         * pa/pa.c (pa_hpux_init_libfuncs): Add _U_Qfcnvxf_usgl_to_quad and
2742         _U_Qfcnvxf_udbl_to_quad to set of initialized libfuncs.
2743         * pa/quadlib.c (_U_Qfcnvxf_usgl_to_quad, _U_Qfcnvxf_udbl_to_quad): New
2744         functions.
2746 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
2748         * c-typeck.c (null_pointer_constant_p): New function.
2749         (build_conditional_expr, build_c_cast, convert_for_assignment,
2750         build_binary_op): Use it.
2752 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
2754         * c-common.c (binary_op_error): Do not allow NOP_EXPR.
2755         (c_common_truthvalue_conversion): Handle NOP_EXPR the same as
2756         CONVERT_EXPR.
2757         (check_function_arguments_recurse): Allow both NOP_EXPR and
2758         CONVERT_EXPR but check conversions preserve precision.
2759         * c-typeck.c (pointer_diff): Allow both NOP_EXPR and CONVERT_EXPR
2760         but check conversions preserve precision.
2761         (build_unary_op): Don't allow NOP_EXPR.  Use gcc_unreachable () in
2762         default case.
2764 2005-12-04  Roger Sayle  <roger@eyesopen.com>
2766         PR c/7776
2767         * common.opt (Wstring-literal-comparison): New command line option.
2768         * c-opts.c (c_common_handle_option): Set it with -Wall.
2769         * c-typeck.c (parser_build_binary_op): Issue warning if either
2770         operand of a comparison operator is a string literal, except for
2771         testing equality or inequality against NULL.
2773         * doc/invoke.texi: Document new -Wstring-literal-comparison option.
2775 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
2777         * c-common.c (c_sizeof_or_alignof_type): Use fold_convert instead
2778         of building a NOP_EXPR.
2779         (c_alignof_expr): Likewise.  Handle CONVERT_EXPR the same as
2780         NOP_EXPR.
2781         * c-convert.c (convert): Use fold_convert instead of building
2782         NOP_EXPRs and CONVERT_EXPRs directly.  Don't special case
2783         c_objc_common_truthvalue_conversion returning a NOP_EXPR.  Remove
2784         #if 0 code.
2785         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Handle
2786         NOP_EXPR the same as CONVERT_EXPR.
2787         * c-typeck.c (build_function_call): Use fold_convert instead of
2788         building a NOP_EXPR directly.
2789         (build_compound_expr): Handle NOP_EXPR the same as CONVERT_EXPR.
2791 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
2793         PR rtl-optimization/25197
2794         * dwarf2out.c (dwarf2out_frame_debug_expr <rule 12>): Assert we
2795         have a reg.
2797 2005-12-02  Stuart Hastings  <stuart@apple.com>
2799         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove -fpic
2800         warning.
2802 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
2804         * c-typeck.c (default_function_array_conversion,
2805         build_function_call): Allow for CONVERT_EXPR as well as NOP_EXPR.
2806         (build_conditional_expr): Apply integer_zerop to orig_op1 and
2807         orig_op2.  Don't check them for NOP_EXPR.
2808         (build_c_cast, convert_for_assignment): Don't check for NOP_EXPR
2809         around integer zero.
2811 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
2813         * config/rs6000/rs6000.c (rs6000_stack_t): Remove toc_save_p,
2814         toc_save_offset, toc_size, lr_size.
2815         (rs6000_stack_info): Use memset rather than bss struct copy to init.
2816         Test rs6000_ra_ever_killed last in condition setting lr_save_p.
2817         Adjust for removal of unused rs6000_stack_t fields.
2818         (debug_stack_info): Adjust.
2819         (rs6000_ra_ever_killed): Expand FIND_REG_INC_NOTE.  Test for calls
2820         first, and don't bother checking for set/inc of lr on sibcalls.
2821         (rs6000_emit_epilogue): Tidy code restoring stack pointer.
2823 2005-12-02  Jakub Jelinek  <jakub@redhat.com>
2825         PR target/25199
2826         * config/i386/i386.md (movqi_1): Only force imovx for alternative
2827         5 if operand 1 is not aligned.  Undo previous constraint change.
2828         * config/i386/predicates.md (aligned_operand): Use MEM_ALIGN.
2830 2005-12-02  Richard Guenther  <rguenther@suse.de>
2832         * tree.h (build): Remove prototype.
2833         (build, _buildN1, _buildN2, _buildC1, _buildC2): Remove macros.
2834         * tree.c (build): Remove.
2835         (build0_stat): Update comment.
2837 2005-12-02  Richard Guenther  <rguenther@suse.de>
2839         * tree-ssa-loop-im.c (schedule_sm): Use buildN instead of build.
2840         * tree-complex.c (update_complex_assignment, expand_complex_div_wide):
2841         Likewise.
2842         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref,
2843         maybe_fold_offset_to_component_ref): Likewise.
2844         * tree-ssa-dom.c (thread_across_edge,
2845         simplify_rhs_and_lookup_avail_expr,
2846         find_equivalent_equality_comparison, record_equivalences_from_stmt):
2847         Likewise.
2848         * gimple-low.c (lower_function_body, lower_return_expr): Likewise.
2849         * tree-eh.c (do_return_redirection, honor_protect_cleanup_actions,
2850         lower_try_finally_switch): Likewise.
2851         * tree-if-conv.c (add_to_dst_predicate_list,
2852         replace_phi_with_cond_modify_expr, ifc_temp_var): Likewise.
2853         * gimplify.c (internal_get_tmp_var, gimple_build_eh_filter,
2854         voidify_wrapper_expr, build_stack_save_restore, gimplify_bind_expr,
2855         gimplify_return_expr, gimplify_decl_expr, gimplify_switch_expr,
2856         gimplify_case_label_expr, gimplify_exit_expr, gimplify_self_mod_expr,
2857         shortcut_cond_r, shortcut_cond_expr, gimplify_cond_expr,
2858         gimplify_init_ctor_eval, gimplify_init_constructor,
2859         gimplify_variable_sized_compare, gimplify_boolean_expr,
2860         gimplify_cleanup_point_expr, gimple_push_cleanup, gimplify_target_expr,
2861         gimplify_expr, gimplify_body, gimplify_function_tree,
2862         force_gimple_operand): Likewise.
2863         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
2864         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for,
2865         mx_register_decls): Likewise.
2866         * tree-nested.c (init_tmp_var, save_tmp_var, get_static_chain,
2867         get_frame_field, finalize_nesting_tree_1): Likewise.
2868         * tree-inline.c (setup_one_parameter): Likewise.
2869         * tree-vect-transform.c (vectorizable_condition): Likewise.
2870         * tree-outof-ssa.c (insert_copy_on_edge, insert_backedge_copies):
2871         Likewise.
2872         * tree-profile.c (tree_gen_edge_profiler): Likewise.
2873         * tree-cfg.c (factor_computed_gotos, gimplify_val): Likewise.
2874         * c-parser.c (c_parser_if_body, c_parser_switch_statement): Likewise.
2875         * tree-chrec.h (build_polynomial_chrec): Likewise.
2877 2005-12-02  Richard Guenther  <rguenther@suse.de>
2879         * config/alpha/alpha.c (alpha_va_start, alpha_gimplify_va_arg_1i,
2880         alpha_gimplify_va_arg): Use buildN and fold_buildN where applicable.
2881         * config/frv/frv.c (frv_expand_builtin_va_start): Likewise.
2882         * config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise.
2883         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2884         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
2885         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg):
2886         Likewise.
2887         * config/sh/sh.c (sh_va_start, sh_gimplify_va_arg_expr,
2888         sh_adjust_unroll_max): Likewise.
2889         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
2890         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2891         * config/xtensa/xtensa.c (xtensa_va_start, xtensa_gimplify_va_arg_expr):
2892         Likewise.
2893         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
2894         Likewise.
2895         * config/mips/mips.c (mips_va_start, mips_gimplify_va_arg_expr):
2896         Likewise.
2898 2005-12-02  Richard Guenther  <rguenther@suse.de>
2900         * tree-vrp.c (build_assert_expr_for, process_assert_insertions_for,
2901         simplify_cond_using_ranges): Use buildN instead of build.
2902         * tree-tailcall.c (adjust_accumulator_values,
2903         adjust_return_value): Likewise.
2904         * tree-sra.c (generate_one_element_ref, generate_copy_inout,
2905         generate_element_copy, generate_element_zero,
2906         generate_one_element_init): Likewise.
2907         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Likewise.
2908         * lambda-code.c (gcc_loop_to_lambda_loop, lbv_to_gcc_expression,
2909         lle_to_gcc_expression, lambda_loopnest_to_gcc_loopnest,
2910         perfect_nestify): Likewise.
2912 2005-12-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2914         * pa.c (pa_secondary_reload): Revise initialization of variable regno.
2916 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2918         * ggc.h (GGC_RESIZEVEC): New.
2920 2005-12-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2922         * gcc.c (execute): Improve readability.
2924 2005-12-02  Richard Guenther  <rguenther@suse.de>
2926         * tree-cfg.c (mark_used_vars): New function.
2927         (dump_function_to_file): Dump only used VAR_DECLs.
2929 2005-12-02  Richard Guenther  <rguenther@suse.de>
2931         * convert.c (convert_to_integer): Fix compare for nonpositive
2932         constant to use tree_int_cst_sgn <= 0.
2934 2005-12-02  Richard Guenther  <rguenther@suse.de>
2936         * convert.c (convert_to_integer): Use fold_convert instead
2937         of fold_build1 (NOP_EXPR, ...).  Use tree_int_cst_sgn < 0
2938         instead of comparing against 0.  Use build_int_cst instead
2939         of converting integer_zero_node.
2941 2005-12-02  Richard Guenther  <rguenther@suse.de>
2943         * tree-pretty-print.c (op_symbol): Handle LROTATE_EXPR
2944         and RROTATE_EXPR.
2946 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
2948         PR target/21017
2949         * combine.c (simplify_logical <IOR>): Simplify more patterns to
2950         rotates.
2952 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
2954         PR middle-end/25176
2955         * function.c (expand_function_end): Emit blockage for unwinder
2956         after return label.
2958 2005-12-01  Roger Sayle  <roger@eyesopen.com>
2960         * tree.h (TREE_OVERFLOW): Make this flag/predicate specific to
2961         constant nodes, i.e. INTEGER_CST, REAL_CST, etc...
2962         * tree-vrp.c (compare_values): Only check TREE_OVERFLOW for
2963         integer constant comparisons.
2965 2005-12-02  Jon Grimm  <jgrimm2@us.ibm.com>
2966             Janis Johnson  <janis187@us.ibm.com>
2967             David Edelsohn  <dje@watson.ibm.com>
2968             Ben Elliston  <bje@au.ibm.com>
2970         * dfp.h, dfp.c: New files.
2971         * Makefile.in (DECNUM, DECNUMINC, LIBDECNUMBER): New variables.
2972         (DECNUM_H): Likewise.
2973         (LIBDEPS, LIBS, BACKEND): Append $(LIBDECNUMBER).
2974         (INCLUDES): Append $(DECNUMINC).
2975         (OBJS-common): Add dfp.o.
2976         (dfp.o): New rule.
2977         * real.h (EXP_BITS): Pinch one bit to ..
2978         (struct real_value): Add decimal field.
2979         (real_format): Change table size, update documentation.
2980         (REAL_MODE_FORMAT): Update for to handle float, decimal float.
2981         (real_from_string3): Declare.
2982         (decimal_single_format): Declare.
2983         (decimal_double_format): Declare.
2984         (decimal_quad_format): Declare.
2985         (REAL_VALUE_TO_TARGET_DECIMAL32): New.
2986         (REAL_VALUE_TO_TARGET_DECIMAL64): New.
2987         (REAL_VALUE_TO_TARGET_DECIMAL128): New.
2988         * real.c: Include dfp.h.
2989         (normalize): Early return for decimal floats.
2990         (do_add): Zero decimal field.
2991         (do_compare): Call do_decimal_compare for decimal floats.
2992         (do_fix_trunc): Likewise, call decimal_do_fix_trunc.
2993         (real_arithmetic): Call decimal_real_arithmetic for decimal
2994         floating point operands.
2995         (real_identical): If a and b are of differing radix, return false.
2996         (real_to_integer): Call decimal_real_to_integer if the value is a
2997         decimal float.
2998         (real_to_integer2): Likewise, call decimal_real_to_integer2.
2999         (real_to_decimal): Likewise, call decimal_real_to_decimal.
3000         (real_to_hexadecimal): Place "N/A" in the return string for
3001         decimal float.
3002         (real_from_string3): New variant, given a mode.
3003         (real_maxval): Use decimal_real_maxval for decimal floats.
3004         (round_for_format): Use decimal_round_for_format for decimals.
3005         (real_convert): Use decimal_real_convert where appropriate.
3006         (significand_size): Handle base 10.
3007         (encode_decimal_single, decode_decimal_single,
3008         encode_decimal_double, decode_decimal_double, encode_decimal_quad,
3009         decode_decimal_quad): New functions.
3010         (decimal_single_format): New.
3011         (decimal_double_format): New.
3012         (decimal_quad_format): New.
3013         * machmode.def: Add SD, DD and TD decimal floating point modes.
3014         * machmode.h (FLOAT_MODE_P, SCALAR_FLOAT_MODE_P, MODES_WIDEN_P):
3015         Include MODE_DECIMAL_FLOAT.
3016         (DECIMAL_FLOAT_MODE_P): New.
3017         * mode-classes.def (MODE_DECIMAL_FLOAT): New mode class.
3018         * genmodes.c (struct mode_data): Add counter field.
3019         (struct mode_data): Update comment for format.
3020         (blank_mode): Initialise counter field.
3021         (new_mode): Increment counter field for each mode defined.
3022         (complete_mode): Handle MODE_DECIMAL_FLOAT, update check for mode
3023         using a format.
3024         (make_complex_modes): Handle modes containing `D'.
3025         (DECIMAL_FLOAT_MODE, FRACTIONAL_DECIMAL_FLOAT_MODE): New.
3026         (make_decimal_float_mode): New.
3027         (reset_float_format): Handle MODE_DECIMAL_FLOAT.
3028         (cmp_modes): Compare counter field if other characteristics
3029         similar.
3030         (emit_real_format_for_mode): Support formats for decimal floats.
3031         * doc/rtl.texi (Machine Modes): Document SD, DD and TDmodes.
3032         Document MODE_DECIMAL_FLOAT.
3034 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
3036         * simplify-rtx.c (simplify_plus_minus): Do simplify constants.
3037         Delete dead code.
3039 2005-12-01  Richard Henderson  <rth@redhat.com>
3041         * optabs.c (expand_vec_cond_expr): Use EXPAND_NORMAL.
3043 2005-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3045         * builtins.def (BUILT_IN_PUTC, BUILT_IN_PUTC_UNLOCKED): New.
3047         * config/pa/pa.c (pa_init_builtins): If we detect
3048         DONT_HAVE_FPUTC_UNLOCKED, set builtin fputc_unlocked to
3049         putc_unlocked.
3051 2005-12-01  Richard Guenther  <rguenther@suse.de>
3053         * fold-const.c (fold_binary): Use fold_build2, not
3054         fold (build (...)).
3056 2005-12-01  Nathan Sidwell  <nathan@codesourcery.com>
3058         * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves.
3060         * vec.h (VEC_block_remove): New.
3062 2005-12-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3064         PR c/13384
3065         * c-common.c (lvalue_error): Fix wording.
3067 2005-12-01  Richard Guenther  <rguenther@suse.de>
3069         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Fix
3070         thinko in last patch.
3072 2005-12-01  Geoffrey Keating  <geoffk@apple.com>
3074         * config/t-slibgcc-darwin (SHLIB_LINK): Use -single_module rather
3075         than -flat_namespace.
3077 2005-12-01  Ben Elliston  <bje@au.ibm.com>
3079         * mklibgcc.in: Parameterise the script to build soft float
3080         functions by iterating over each type, rather than cloning the
3081         code for each type.
3083 2005-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3085         PR middle-end/25158
3086         * builtins.c (fold_builtin_fputs): Defer check for missing
3087         replacement functions.
3089 2005-11-30  Kean Johnston  <jkj@sco.com>
3091         * config/i386/i386.c: Check the value of SUPPORTS_ONE_ONLY, not
3092         simply its presense in case targets #define SUPPORTS_ONE_ONLY 0.
3094 2005-11-30  Richard Guenther  <rguenther@suse.de>
3096         PR tree-optimization/22501
3097         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
3098         function split out from ...
3099         (forward_propagate_addr_expr): ... here.  Use it to propagate
3100         ADDR_EXPRs to all uses.
3102 2005-11-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3104         * tree.h (CASE_FLT_FN, CASE_INT_FN): New macros.
3105         * builtins.c (expand_builtin_mathfn): Use them.
3106         (expand_builtin_mathfn_2): Likewise.
3107         (expand_builtin_mathfn_3): Likewise.
3108         (expand_builtin_int_roundingfn): Likewise.
3109         (expand_builtin): Likewise.
3110         (integer_valued_real_p): Likewise.
3111         (fold_builtin_int_roundingfn): Likewise.
3112         (fold_builtin_bitop): Likewise.
3113         (fold_builtin_logarithm): Likewise.
3114         (fold_builtin_1): Likewise.
3115         * convert.c (convert_to_integer): Likewise.
3116         * fold-const.c (negate_mathfn_p): Likewise.
3117         (tree_expr_nonnegative_p): Likewise.
3119 2005-11-30  Dale Johannesen  <dalej@apple.com>
3120             Andrew Pinski  <pinskia@physics.uc.edu>
3122         * combine.c (find_split_point): Sign extend bitmask
3123         when changing bitfield assignment to IOR of AND.
3125 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
3127         * config/ms1/ms1.md (decrement_and_branch_until_zero): Add early
3128         clobber to scratch reg.
3129         (*decrement_and_branch_until_zero_no_clobber): Remove.
3130         (decrement_and_branch peephole): Add dummy scratch reg to pattern.
3131         (mulhish3): Use TARGET_MS1_16_003, TARGET_MS2.
3132         * config/ms1/ms1.opt (mmul): Remove.
3133         * config/ms1/ms1.h (ASM_SPEC): Cope with uppercase arch names.
3134         (LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Default to 16-002.
3136 2005-11-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3137             Bernd Schmidt  <bernd.schmidt@analog.com>
3139         * pa/predicates.md (symbolic_operand): Add comment.
3140         * pa/pa.md (reload_insi_r1, reload_indi_r1): New reload expanders.
3141         * pa/pa-protos.h (pa_secondary_reload_class): Delete.
3142         * pa/pa.c (TARGET_SECONDARY_RELOAD): Define.
3143         (pa_secondary_reload_class): Delete.
3144         (pa_secondary_reload): New function derived from SECONDARY_RELOAD_CLASS
3145         and pa_secondary_reload_class.  Reorder some checks.  Update inline
3146         copy of symbolic operand.
3147         * pa/pa.h (SECONDARY_RELOAD_CLASS): Delete.
3149 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
3151         * loop-doloop.c (add_test): Only add jump notes if we did emit a
3152         jump.
3154 2005-11-30  Jeff Law  <law@redhat.com>
3156         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Properly
3157         handle SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3159 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
3161         * config/ia64/ia64.c (ia64_expand_tls_address): Add ORIG_OP1 argument.
3162         Move ADDEND_{HI,LO} computation into TLS_MODEL_INITIAL_EXEC case.
3163         (ia64_expand_move): Adjust caller.
3165         * config/ia64/ia64.c (ia64_expand_atomic_op): Only use
3166         fetchadd{4,8}.acq instruction if CODE is PLUS or MINUS, for MINUS
3167         negate VAL.
3169 2005-11-30  Paolo Bonzini  <bonzini@gnu.org>
3171         * simplify-rtx.c (simplify_plus_minus): Remove final parameter.
3172         Always produce an output if we can remove NEGs or canonicalize
3173         (minus (minus ...)) expressions.  Provide a fast path for the
3174         two-operand case.
3175         (simplify_gen_binary): Do not call simplify_plus_minus.
3176         (simplify_binary_operation_1): Reassociate at the end of the
3177         function.
3179 2005-11-29  Evan Cheng  <evan.cheng@apple.com>
3181         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Rewrite using high/low
3182         moves and unpack to speed up.
3184 2005-11-29  David S. Miller  <davem@sunset.davemloft.net>
3186         * config/sparc/sparc.c (gen_compare_reg): Kill 2nd and 3rd
3187         argument, they are always sparc_compare_op0 and sparc_compare_op1.
3188         (gen_v9_scc): Update callers.
3189         * config/sparc/sparc.md: Likewise.
3190         * config/sparc/sparc-protos.h: Update extern declaration.
3192         * tree-into-ssa.c (rewrite_into_ssa): Fix comment typo.
3194 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
3196         * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
3197         the if.
3199 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
3201         * fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.
3202         (fold_unary) <case NEGATE_EXPR>: Move -(~a) transformation to ...
3203         (negate_expr): Here.
3205 2005-11-29  Ben Elliston  <bje@au.ibm.com>
3207         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN):
3208         Fix typo in comment.
3210 2005-11-29  Ben Elliston  <bje@au.ibm.com>
3212         * Makefile.in (clean-target): Depend on clean-target-libgcc.
3213         (clean-target-libgcc): Import rule from the top-level Makefile.in.
3215 2005-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3217         PR middle-end/20109
3218         PR middle-end/25120
3219         * builtins.c (init_target_chars): New.
3220         (expand_builtin_printf, expand_builtin_fprintf,
3221         expand_builtin_sprintf, fold_builtin_sprintf,
3222         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
3223         fold_builtin_snprintf_chk, fold_builtin_printf,
3224         fold_builtin_fprintf): Check for matching format strings using
3225         the target charset.
3227 2005-11-29  Paul Brook  <paul@codesourcery.com>
3229         * config.gcc: Do not use fixproto on m68k-elf.
3231 2005-11-28  Roger Sayle  <roger@eyesopen.com>
3233         * expmed.c (div_cost): Replace with...
3234         (sdiv_cost, udiv_cost): New.
3235         (init_expmed): Initialize sdiv_cost and udiv_cost, not div_cost.
3236         Rename the div and mod fields, used to initialize sdiv_pow2_cheap
3237         and smod_pow2_cheap, to sdiv_32 and smod_32 to avoid confusion.
3238         (expand_divmod): Replace use of div_cost with either sdiv_cost
3239         or udiv_cost depending upon the signedness of the operation.
3241 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
3243         PR libfortran/24991
3244         * config/darwin.c (machopic_indirection_name,
3245         machopic_output_indirection): Follow transparent alias chain.
3247 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
3249         * varasm.c (ultimate_transparent_alias_target): Add comment.
3251 2005-11-28  Kazu Hirata  <kazu@codesourcery.com>
3253         * config/m68k/m68k.c (notice_update_cc): Use SET_DEST and
3254         SET_SRC instead of XEXP where appropriate.
3256 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
3258         * config/fp-bit.c (isnan, isinf, pack_d, unpack_d): Use
3259         __builtin_expect.
3261 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
3263         * config/fp-bit.h (LSHIFT): Take shift count parameter.
3264         * config/fp-bit.c (_fpadd_parts): Shift in one go instead of one
3265         bit at a time.
3267 2005-11-28  Bernd Schmidt  <bernd.schmidt@analog.com>
3269         * config/bfin/bfin.c (bfin_secondary_reload): Renamed from
3270         secondary_input_reload_class, made static.  Adapt to new
3271         infrastructure.
3272         (secondary_output_reload_class): Delete.
3273         (TARGET_SECONDARY_RELOAD): New macro.
3274         * config/bfin/bfin.h (SECONDARY_INPUT_RELOAD_CLASS,
3275         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
3277 2005-11-28  Nathan Sidwell  <nathan@codesourcery.com>
3279         PR c++/21166
3280         * c-decl.c (finish_struct): Only set DECL_PACKED on a field
3281         when its natural alignment is > BITS_PER_UNIT.
3282         * stor-layout.c (finalize_type_size): Revert my patch of 2005-08-08.
3283         * c-common.c (handle_packed_attribute): Ignore packing on a field
3284         whose type is naturally char aligned.
3286 2005-11-28  Richard Guenther  <rguenther@suse.de>
3288         * c-common.c (strict_aliasing_warning): Handle all
3289         component-ref like accesses.
3291 2005-11-28  Roger Sayle  <roger@eyesopen.com>
3292             Uros Bizjak  <uros@kss-loka.si>
3294         PR middle-end/20219
3295         * fold-const.c (fold binary) <RDIV_EXPR>: Optimize
3296         sin(x)/tan(x) as cos(x) and tan(x)/sin(x) as 1.0/cos(x)
3297         when flag_unsafe_math_optimizations is set and
3298         we don't care about NaNs or Infinities.
3300         Move x/expN(y) and x/pow(y,z) transformation into common
3301         flag_unsafe_math_optimizations section.
3303 2005-11-27  Mark Mitchell  <mark@codesourcery.com>
3305         * gcc.c (main): Change type of argv to "char **".
3307 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
3309         * doc/invoke.texi (powerpc msdata-data): Static data doesn't go in
3310         small data sections.
3311         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Make global.
3312         * config/rs6000/rs6000-protos.h: (rs6000_elf_in_small_data_p): Declare.
3313         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Rename to..
3314         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ..this, adding extra parm.  Don't
3315         output locals to sbss if !rs6000_elf_in_small_data_p.
3316         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above.
3318 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
3320         PR target/24997
3321         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Allow pattern
3322         generated by reload.
3323         * config/rs6000/predicates.md (indexed_or_indirect_operand): Use
3324         indexed_or_indirect_address.
3325         (indexed_or_indirect_address): Don't test for base reg.  Call
3326         address_operand last.  Make it a special predicate.
3328 2005-11-27  Kazu Hirata  <kazu@codesourcery.com>
3330         * config/m68k/m68k.c (notice_update_cc): Remove useless code.
3332 2005-11-27  Andrew Pinski  <pinskia@physics.uc.edu>
3334         PR middle-end/24575
3335         * fold-const.c (negate_expr_p): Add case for signed divides if overflow
3336         is undefined.
3337         (negate_expr): Likewise.
3339 2005-11-27  Andreas Schwab  <schwab@suse.de>
3341         * config/m68k/m68k.c: Reindent and fix whitespace, remove
3342         redundant parens.
3344 2005-11-27  Steven Bosscher  <stevenb@suse.de>
3346         * cfgcleanup.c (try_crossjump_to_edge): Always split SRC2 if it
3347         has EH predecessor edges.
3349 2005-11-26  Eric Christopher  <echristo@apple.com>
3351         * config/i386/i386.md (*zero_extendqihi2_movzbw): Avoid partial
3352         register stalls by zero extending to the full register.
3354 2005-11-27  Joseph S. Myers  <joseph@codesourcery.com>
3356         * config/floatunsisf.c, config/floatunsidf.c,
3357         config/floatunsixf.c, config/floatunsitf.c: New files.
3358         * config/ia64/t-hpux: Add floatunsitf.c.
3359         * config/ia64/ia64.c (ia64_init_libfuncs): Use
3360         _U_Qfcnvxuf_dbl_to_quad for unsigned DImode-to-TFmode conversion.
3362 2005-11-26  Richard Henderson  <rth@redhat.com>
3364         * c-lex.c (pragma_lex): Rename from c_lex.
3365         * c-pch.c: Update for pragma_lex rename.
3366         * c-pragma.c, c-pragma.h, config/ia64/ia64-c.c: Likewise.
3367         * config/m32c/m32c-pragma.c, config/darwin-c.c: Likewise.
3368         * config/rs6000/rs6000-c.c, config/c4x/c4x-c.c: Likewise.
3369         * config/sol2-c.c, config/v850/v850-c.c: Likewise.
3370         * doc/tm.texi: Likewise.
3372 2005-11-26  Andrew Pinski  <pinskia@physics.uc.edu>
3374         PR middle-end/23669
3375         * fold-const.c (fold_binary): Convert -A/-B to A/B for signed types
3376         when overflow is undefined.
3378 2005-11-26  Hans-Peter Nilsson  <hp@axis.com>
3380         * doc/md.texi (Insn Canonicalizations): Refer to the
3381         function commutative_operand_precedence for further rules.
3383 2005-11-25  Roger Sayle  <roger@eyesopen.com>
3385         PR middle-end/21309
3386         * expmed.c (choose_mult_variant): Return immediately when mult_cost
3387         is less than zero.  Limit mult_cost to a reasonable upper bound for
3388         the synthetic multiplication sequence.
3390 2005-11-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3392         PR middle-end/25022
3393         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
3394         fold_builtin_fputs, fold_builtin_printf, fold_builtin_fprintf):
3395         Lookup the explicit replacement functions for any unlocked
3396         stdio builtin transformations.
3398 2005-11-25  Hans-Peter Nilsson  <hp@axis.com>
3400         * config/cris/cris.md ("reload_out<mode>"): Mark operand 2 as
3401         earlyclobber.
3402         * targhooks.c (default_secondary_reload): Don't require operand 2
3403         for an input reload to be earlyclobber.
3405 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3407         * fold-const.c (negate_mathfn_p): Fix comment and add support
3408         for BUILT_IN_CBRT, BUILT_IN_SINH, BUILT_IN_TANH, BUILT_IN_ASINH,
3409         BUILT_IN_ATANH.
3411 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
3413         PR middle-end/24998
3414         * config/sparc/sparc.c (sparc_init_libfuncs): Use _Q_utoq and
3415         _Q_ulltoq for unsigned conversions from SImode and DImode to
3416         TFmode.
3418 2005-11-25  Alan Modra  <amodra@bigpond.net.au>
3420         * config/rs6000/ppc64-fp.c (__floatunditf): New function.
3421         (__floatundidf, __floatundisf): Likewise.
3423 2005-11-25  David Edelsohn  <edelsohn@gnu.org>
3425         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Delete.
3426         (rs6000_override_options): Remove initialization of
3427         rs6000_sr_alias_set.
3428         (rs6000_emit_eh_reg_restore): Use gen_frame_mem.
3429         (rs6000_emit_stack_tie): Same.
3430         (emit_frame_save): Same.
3431         (gen_frame_mem_offset): Same.
3432         (rs6000_emit_prologue): Same.
3433         (rs6000_emit_epilogue): Same.
3435 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
3437         PR middle-end/24989
3438         * fold-const.c (fold_build): Convert bool_var != 1 and
3439         bool_var == 0 to !bool_var.
3441 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
3443         PR middle-end/24990
3444         * fold-const.c (fold_binary): Fold (~a) == C to a == ~C
3445         for C being INTEGER_CST.  Likewise for !=.
3447 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
3449         PR middle-end/24998
3450         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use _q_utoq for
3451         unsigned conversions from SImode to TFmode.
3453 2005-11-24  Bernd Schmidt  <bernd.schmidt@analog.com>
3455         * expr.c (expand_expr_real_1): Fix error in last change.
3457 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
3459         * caller-save.c: (this_insn_sets): Move into:
3460         (save_call_clobbered_regs).
3461         (mark_set_regs): Get this_insn_sets from data.
3463         (save_call_clobbered_regs): Take sets of the return value by
3464         sibcalls into account.
3466 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
3467         PR target/21623:
3469         * regclass.c (FORBIDDEN_INC_DEC_CLASSES): Remove
3470         SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS tests.
3471         (init_fake_stack_mems): Remove HAVE_SECONDARY_RELOADS test.
3472         (memory_move_secondary_cost, init_reg_autoinc): Remove
3473         SECONDARY_INPUT_RELOAD_CLASS / SECONDARY_OUTPUT_RELOAD_CLASS tests.
3474         Replace SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with
3475         secondary_reload_class call.
3476         (copy_cost): Likewise.  Add new parameter prev_sri.  Changed all
3477         callers.
3478         * reload.c (entire file): Remove HAVE_SECONDARY_RELOADS checks.
3479         (push_secondary_reload): Use secondary_reload target hook.
3480         (secondary_reload_class, scratch_reload_class): New functions.
3481         (push_reload): Remove SECONDARY_INPUT_RELOAD_CLASS and
3482         SECONDARY_OUTPUT_RELOAD_CLASS tests.  Replace
3483         SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with secondary_reload_class call.
3484         * reload.h (HAVE_SECONDARY_RELOADS): Don't define nor test.
3485         (secondary_reload_class, scratch_reload_class): Declare.
3486         * reload1.c: Include target.h.
3487         (reload_adjust_reg_for_temp): New function.
3488         (reload_adjust_reg_for_icode): Likewise.
3489         (choose_reload_regs): Remove SECONDARY_INPUT_RELOAD_CLASS test.
3490         Replace SECONDARY_INPUT_RELOAD_CLASS use with secondary_reload_class
3491         call.
3492         (emit_input_reload_insns): Likewise.  Rewrite secondary reload checks
3493         for inheritance.  Support case when both secondary & tertiary reloads
3494         are for intermediate registers.
3495         (emit_output_reload_insns): Replace SECONDARY_OUTPUT_RELOAD_CLASS use
3496         with secondary_reload_class call.  Support case when both secondary
3497         & tertiary reloads are for intermediate registers.
3498         * target-def.h (TARGET_SECONDARY_RELOAD): Provide default definition.
3499         (TARGET_INITIALIZER) Add TARGET_SECONDARY_RELOAD.
3500         * target.h (secondary_reload_info): New struct / typedef.
3501         (struct gcc_target): New member secondary_reload.
3502         * targhooks.c Include reload.h, optabs.h and recog.h.
3503         (default_secondary_reload): New function.
3504         * targhooks.h (default_secondary_reload): Declare.
3505         * doc/tm.texi: Document secondary_reload target hook.  Update
3506         description of SECONDARY_*RELOAD_CLASS and reload_{in,out}<mode>.
3507         * doc/md.texi: Likewise.
3509         * sh-protos.h (sh_secondary_reload): Declare.
3510         * sh.c (TARGET_SECONDARY_RELOAD): Override.
3511         (sh_secondary_reload): New function.
3512         * sh.h (SECONDARY_INOUT_RELOAD_CLASS): Don't define.
3513         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
3514         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
3515         (HAVE_SECONDARY_RELOADS): Define.
3516         * sh.md (reload_indf): Rename to:
3517         (reload_indf__frn).
3518         (reload_outdf): Rename to:
3519         (reload_outdf__RnFRm).
3520         (reload_insf): Rename to:
3521         (reload_insf__frn).
3522         (reload_insi): Rename to:
3523         (reload_insi__i_fpul).
3525 2005-11-24  Uros Bizjak  <uros@kss-loka.si>
3527         * configure.ac: Require at least texinfo 4.4.
3528         * configure: Regenerate.
3530         * doc/install.texi (Tools/packages necessary for building GCC):
3531         Update required version of texinfo to at least 4.4.
3532         (Installing GCC: Building): Update required version of texinfo
3533         to at least 4.4.
3534         (Installing GCC: Final installation): Update required version
3535         of texi2dvi to at least 4.4.
3536         (Host/target specific installation notes for GCC): Update required
3537         version of texinfo to at least 4.4.
3539 2005-11-24  Richard Guenther  <rguenther@suse.de>
3540         Dirk Mueller <dmueller@suse.de>
3542         PR c++/14024
3543         * c-common.h (strict_aliasing_warning): Declare.
3544         * c-common.c (strict_aliasing_warning): New function,
3545         split out from ...
3546         * c-typeck.c (build_c_cast): ... here.
3548 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
3550         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
3551         to order operands.
3552         (swap_commutative_operands_with_target): New.
3554 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
3556         * gcse.c (hash_scan_set): Look through REG_EQUAL or REG_EQUIV notes
3557         also when doing PRE, rather than only for global CPROP.
3559 2005-11-24  Ben Elliston  <bje@au.ibm.com>
3561         * machmode.h (CLASS_HAS_WIDER_MODES_P): New macro.
3562         * optabs.c (expand_binop): Use CLASS_HAS_WIDER_MODES_P, improve
3563         formatting.
3564         (expand_twoval_unop): Likewise.
3565         (widen_clz): Likewise.
3566         (expand_parity): Likewise.
3567         (expand_unop): Likewise.
3568         (emit_cmp_and_jmp_insn_1): Likewise.
3569         (prepare_float_lib_cmp): Likewise.
3571 2005-11-24  Ben Elliston  <bje@au.ibm.com>
3573         * optabs.c (prepare_cmp_insn): Use SCALAR_FLOAT_MODE_P.
3574         Remove unused `class' variable.
3576 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3578         PR c++/21667
3579         * c-typeck.c (build_array_ref): Avoid code duplicate.  Use common
3580         C/C++ diagnostic function warn_array_subscript_with_type_char.
3581         * c-common.h (warn_array_subscript_with_type_char): Declare.
3582         * c-common.c (warn_array_subscript_with_type_char): Define.
3584 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3586         PR c/21668
3587         * c-decl.c (grokdeclarator): Don't warn for 'extern const' when
3588         compiling at the intersection of C and C++.
3590 2005-11-23  Mark Mitchell  <mark@codesourcery.com>
3592         * doc/invoke.texi: For man pages, include gcc-vers.texi.
3593         List @file in the option summary.  Include the libiberty
3594         documentation for @file.
3595         * gcc.c (main): Call expandargv.
3596         * Makefile.in (gcc-vers.texi): Define srcdir.
3598 2005-11-23  Diego Novillo  <dnovillo@redhat.com>
3600         * passes.c (init_optimization_passes): Document
3601         sequencing of passes.
3603 2005-11-23  Kazu Hirata  <kazu@codesourcery.com>
3605         * config/m68k/predicates.md (pcrel_address, extend_operator,
3606         post_inc_operand, pre_dec_operand): Remove redundant
3607         conditionals.
3608         (const_uint32_operand, const_sint32_operand): Use gcc_assert
3609         instead of abort.
3610         (valid_dbcc_comparison_p): Rewrite in the lisp style.
3612 2005-11-23  Ben Elliston  <bje@au.ibm.com>
3614         * dwarf2.h (enum dwarf_type): Add DW_ATE_decimal_float.
3616 2005-11-22  J"orn Rennecke <joern.rennecke@st.com>
3618         Preparatory work for PR target/21623:
3619         * alpha.c (secondary_reload_class): Rename to:
3620         (alpha_secondary_reload_class).
3621         * alpha.h, alpha-protos.h: Likewise.
3622         * mn10300.c (secondary_reload_class): Rename to:
3623         (mn10300_secondary_reload_class).
3624         * mn10300.h, mn10300-protos.h: Likewise.
3625         * pa.c (secondary_reload_class): Rename to:
3626         (pa_secondary_reload_class).
3627         * pa.h, pa-protos.h: Likewise.
3628         * rs6000.c (secondary_reload_class): Rename to:
3629         rs6000_secondary_reload_class.
3630         * rs6000.h, rs6000-protos.h: Likewise.
3632 2005-11-22  Eric Botcazou  <ebotcazou@adacore.com>
3634         PR middle-end/22561
3635         * tree-ssa-structalias.c (get_constraint_for): Handle ARRAY_RANGE_REF.
3637 2005-11-22  Ian Lance Taylor  <ian@airs.com>
3639         * optabs.c (expand_unop): Call SCALAR_FLOAT_MODE_P on a mode, not
3640         a mode_class.
3641         (prepare_cmp_insn): Likewise.
3643 2005-11-22  Kazu Hirata  <kazu@codesourcery.com>
3645         PR target/23435
3646         * m68k.md (zero_extendsidi2): Force operands[1] to a register
3647         if both operands[0] and operands[1] are memory.
3649 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
3651         PR middle-end/23606
3652         * fold-const.c (fold_unary) <case NOP_EXPR, CONVERT_EXPR>: For
3653         COMPARISON_CLASS_P and an integral types create create a new
3654         expression with the new type and fold that.
3656 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
3658         PR target/24988
3659         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Remove call
3660         to SUBTARGET_OS_CPP_BUILTINS.
3662 2005-11-22  Richard Earnshaw  <richard.earnshaw@arm.com>
3664         * arm.c (emit_set_insn): New function.
3665         (arm_split_constant): Call it.
3666         (arm_gen_compare_reg, arm_reload_in_hi, arm_reload_out_hi): Likewise.
3667         (arm_legitimize_address): Likewise.  Use plus_constant.
3668         (arm_expand_prologue): Likewise.  Use VOIDmode in SET.
3669         (thumb_expand_prologue): Likewise.
3670         (arm_gen_load_multiple): Use VOIDmode in SET.
3671         (arm_gen_store_multiple): Likewise.
3672         (vfp_emit_fstmx): Likewise.  Use plus_constant.
3673         (emit_multi_reg_push): Likewise.
3674         (emit_sfm): Use plus_constant.
3676 2005-11-23  Alan Modra  <amodra@bigpond.net.au>
3678         PR target/24954
3679         * config/rs6000/predicates.md (easy_vector_constant_add_self): Fix
3680         typo last change.
3682 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
3684         PR middle-end/24950
3685         * expmed.c (store_bit_field): Don't attempt to insv a field
3686         larger than the reg.
3688 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
3690         PR target/24954
3691         * config/rs6000/predicated.md (easy_vector_constant_add_self): Use
3692         explicit sign extension, not a (char) cast.
3694 2005-11-22  Ben Elliston  <bje@au.ibm.com>
3696         * optabs.c: Use SCALAR_FLOAT_MODE_P instead of explicitly testing
3697         GET_MODE_CLASS (x) == MODE_FLOAT.
3698         * config/i386/i386.c: Likewise.
3699         * config/rs6000/xcoff.h: Likewise.
3700         * config/rs6000/linux64.h: Likewise.
3701         * config/rs6000/rs6000.c: Likewise.
3702         * config/rs6000/rs6000.h: Likewise.
3703         * config/rs6000/predicates.md: Likewise.
3704         * config/rs6000/sysv4.h: Likewise.
3706 2005-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3708         * c-cppbuiltin.c (c_cpp_builtins): Define __pic__ and __PIC__ when
3709         flag_pic is set.
3711         * config/alpha/freebsd.h, config/alpha/linux.h,
3712         config/arm/linux-elf.h, config/bfin/bfin.h,
3713         config/cris/linux.h, config/darwin.h, config/freebsd-spec.h,
3714         config/i386/beos-elf.h, config/i386/gnu.h,
3715         config/i386/linux.h, config/i386/linux64.h, config/i386/nto.h,
3716         config/i386/sco5.h, config/m32r/m32r.h, config/m68k/linux.h,
3717         config/m68k/m68k.h, config/mips/linux.h, config/pa/pa-linux.h,
3718         config/rs6000/linux64.h, config/rs6000/sysv4.h,
3719         config/rs6000/vxworks.h, config/s390/linux.h, config/s390/tpf.h,
3720         config/sh/linux.h, config/sh/sh.h, config/sol2.h,
3721         config/sparc/linux.h, config/sparc/linux64.h,
3722         config/xtensa/xtensa.h: Don't define __pic__ or __PIC__.
3724         * doc/invoke.texi: Document that the macros __pic__ and __PIC__
3725         are both defined when either flag -fpic or -fPIC are used.
3727 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
3729         * config/fp-bit.c (clzusi): New function.
3730         (si_to_float, usi_to_float): Use it to compute proper shift.
3731         (usi_to_float): Preserve guard bits when shifting right.
3732         * libgcc-std.ver (GCC_4.2.0): New version.
3733         * libgcc2.c (__floatundixf, __floatunditf, __floatundidf,
3734         __floatundisf): New functions.
3735         * libgcc2.h (__floatundixf, __floatunditf, __floatundidf,
3736         __floatundisf): Declare.
3737         * mklibgcc.in (lib2funcs): Add _floatundidf, _floatundisf,
3738         _floatundixf, and _floatunditf.
3739         * optabs.c (expand_float): If target does not define a pattern for
3740         signed or unsigned conversion, use an unsigned libcall instead of
3741         a signed one.
3742         (init_optabs): Initialize ufloat_optab.
3744 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
3746         * config/rs6000/rs6000.opt (mmulhw): New option.
3747         * doc/invoke.texi (-mmulhw): Document.
3748         * config/rs6000/rs6000.c (rs6000_override_options): Enable -mmulhw
3749         for 405 and 440.
3750         * config/rs6000/rs6000.md: Add half-word multiply and
3751         multiply-accumulate instructions for 405 and 440.
3753 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
3755         * config/arm/rtems-elf.h: Added definition of LINK_GCC_C_SEQUENCE_SPEC
3756         which matches behavior of gcc 4.0 and older for RTEMS targets.  The
3757         default now includes a linker group which makes the RTEMS one nest.
3759 2005-11-22  Ben Elliston  <bje@au.ibm.com>
3761         * cse.c (fold_rtx): Typo fix.
3762         (find_comparison_args): Pass the mode of arg1, not arg1 itself.
3764 2005-11-21  Richard Henderson  <rth@redhat.com>
3766         * c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h,
3767         langhooks-def.h, langhooks.h: Revert 2005-11-18 lookup_name patch.
3769         * c-tree.h (lookup_name): Move declaration ...
3770         * c-common.h (lookup_name): ... here.
3771         * config/darwin-c.c: Include c-common.h.
3772         * config/t-darwin: Update dependencies.
3774 2005-11-22  Ben Elliston  <bje@au.ibm.com>
3776         * optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of
3777         explicitly testing GET_MODE_CLASS (x) == MODE_FLOAT.
3778         * genopinit.c (gen_insn): Likewise.
3779         * reload.c (find_equiv_reg): Likewise.
3780         * loop.c (load_mems): Likewise.
3781         * rtlanal.c (may_trap_p_1, canonicalize_condition): Likewise.
3782         * cse.c (find_comparison_args, fold_rtx): Likewise.
3783         * dwarf2out.c (add_const_value_attribute): Likewise.
3784         * expr.c (convert_move): Likewise.
3785         * recog.c (general_operand, register_operand): Likewise.
3786         * reg-stack.c (replace_reg): Likewise.
3787         * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
3788         * c-common.c (handle_vector_size_attribute): Likewise.
3789         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3790         (simplify_binary_operation_1): Likewise.
3791         (simplify_const_binary_operation): Likewise.
3792         (simplify_relational_operation): Likewise.
3793         (simplify_const_relational_operation): Likewise.
3794         (simplify_immed_subreg): Likewise.
3795         * emit-rtl.c (gen_lowpart_common): Likewise.
3796         * expmed.c (expand_mult): Likewise.
3797         * stor-layout.c (layout_type): Likewise.
3799 2005-11-21  Paolo Bonzini  <bonzini@gnu.org>
3801         PR target/24951
3802         * config/rs6000/rs6000.c (output_vec_const_move): Load cst and
3803         cst2 only for SPE vectors.
3805 2005-11-21  David Edelsohn  <edelsohn@gnu.org>
3807         PR target/24953
3808         * config/rs6000/predicates.md (vrsave_operation): Check
3809         UNSPEC_VOLATILE value.
3811 2005-11-21  Jan Hubicka  <jh@suse.cz>
3813         PR tree-optimization/24653
3814         * tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
3816 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
3818         * config/i386/predicates.md (ax_reg_operand): New predicate.
3819         (memory_displacement_only_operand): New predicate.
3820         * config/i386/i386.md ("modrm" attribute): Return 0 if one
3821         operand is AX register and the other operand is memory operand
3822         with displacement only.
3824 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
3826         * fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0
3827         if we don't care about NaNs or Infinities.
3829 2005-11-20  Ian Lance Taylor  <ian@airs.com>
3831         PR rtl-optimization/24883
3832         * combine.c (combinable_i3pat): When checking whether the
3833         destination of i3 is used in i3, consider paradoxical subregs.
3835 2005-11-21  Kazu Hirata  <kazu@codesourcery.com>
3837         PR middle-end/20583
3838         * cse.c (cse_insn): Reject invalid forms of CONST earlier.
3840 2005-11-20  Joseph S. Myers  <joseph@codesourcery.com>
3842         * combine.c (try_combine): Do not run subst on i1src and i2src in
3843         the case of generating a PARALLEL for a comparison.
3845 2005-11-20  Richard Henderson  <rth@redhat.com>
3847         PR 24931
3848         * tree-sra.c (struct sra_elt): Add all_no_warning.
3849         (struct sra_walk_fns) <use>: Add use_all argument.
3850         (sra_walk_expr): Pass it.
3851         (sra_walk_modify_expr): Likewise.
3852         (scalarize_ldst): Likewise.
3853         (scan_use): Update for new argument.
3854         (mark_no_warning): New.
3855         (scalarize_use): Use it.
3857 2005-11-20  Bernd Schmidt  <bernd.schmidt@analog.com>
3859         * expr.c (expand_expr_real): Use usmul_optab for widening
3860         signed * unsigned multiplies.
3861         * genopinit.c (optabs): Add usmul_widen_optab.
3862         * optabs.c (init_optabs): Likewise.
3863         * optabs.h (enum optab_index): Add OTI_usmul_widen.
3864         (usmul_widen_optab): Define.
3865         * config/bfin/bfin.md (usmulhisi3): New pattern.
3867         * doc/md.texi (usmulqihi3, usmulhisi3, usmulsidi3): Document.
3869 2005-11-20  Graham Stott <btinternet.com>
3871         * gensupport.c (std_preds): Fixed extraneous `false` in last change.
3873 2005-11-20  Andreas Schwab  <schwab@suse.de>
3875         PR target/24757
3876         * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
3877         insn.
3879 2005-11-19  Richard Henderson  <rth@redhat.com>
3881         PR tree-opt/24665
3882         * tree-gimple.c (is_gimple_id): Export.
3883         * tree-gimple.h (is_gimple_id): Declare.
3884         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
3885         (get_default_value): Use it.
3886         (maybe_fold_stmt_indirect): Likewise.
3888 2005-11-19  James A. Morrison  <phython@gcc.gnu.org>
3890         * tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less
3891         than VR1 or vice-versa.
3893 2005-11-19  Hans-Peter Nilsson  <hp@axis.com>
3895         PR middle-end/24912
3896         PR middle-end/24750
3897         * reload.c (find_reloads_address_1): Mention dependency on
3898         gen_reload.
3899         * reload1.c (gen_reload): For IN with an unary operation, try
3900         moving inner expression to OUT if trivial SET is not valid.
3901         Confirm that the result is valid.  Move common code block into...
3902         (emit_insn_if_valid_for_reload): New function.
3904 2005-11-19  Richard Guenther  <rguenther@suse.de>
3906         * fold-const.c (fold_indirect_ref_1): Make sure we fold
3907         ARRAY_REFs of constant strings.
3909 2005-11-19  Jakub Jelinek  <jakub@redhat.com>
3911         * gcc.c (version_compare_spec_function): Use '%s' rather than %qs in
3912         fatal format string.
3914 2005-11-19  Joseph S. Myers  <joseph@codesourcery.com>
3916         * combine.c (make_compound_operation): Swap operands of
3917         commutative operation if necessary before returning.
3919 2005-11-19  Richard Guenther  <rguenther@suse.de>
3921         PR middle-end/23294
3922         * fold-const.c (fold_plusminus_mult_expr): New function.
3923         (fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
3924         cases, remove now unnecessary code.
3926 2005-11-19  Paolo Bonzini  <bonzini@gcc.gnu.org>
3928         * gensupport.c (old_preds): Rename to std_preds, add special field.
3929         (struct old_pred_table): Rename to struct std_pred_table, add special
3930         field.
3931         (NUM_KNOWN_OLD_PREDS): Rename to NUM_KNOWN_STD_PREDS.
3932         (NUM_OLD_SPECIAL_MODE_PREDS): Remove.
3933         (init_predicate_table): Adjust, and set along the way whether a
3934         predicate is special.
3936 2005-11-18  Mark Mitchell  <mark@codesourcery.com>
3938         * BASE-VER: Change to 4.2.0.
3940 2005-11-18  James E Wilson  <wilson@specifix.com>
3942         * builtins.c (fold_builtin_strstr): Pass s1 through fold_convert before
3943         returning it.
3945 2005-11-18  Mike Stump  <mrs@apple.com>
3947         * c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
3948         * config/darwin-c.c (darwin_pragma_unused): Likewise.
3949         * c-decl.c (lookup_name_two) Remove.
3950         * c-tree.h (lookup_name_two): Remove.
3951         * c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
3952         * langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
3953         (LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
3954         * langhooks.h (lang_hooks_for_decls): Add lookup_name.
3956 2005-11-18  Richard Earnshaw  <richard.earnshaw@arm.com>
3958         PR target/24914
3959         * arm.c (arm_hard_regno_mode_ok): Co-processor registers aren't ok
3960         when not generating code to use that co-processor.
3962 2005-11-18  James A. Morrison  <phython@gcc.gnu.org>
3964         * tree-flow.h (reserve_phi_args_for_new_edge, create_phi_node,
3965         add_phi_arg, remove_phi_args, remove_phi_node phi_reverse): Mention that
3966         these functions are now in tree-phinodes.c.
3968 2005-11-18  Jie Zhang  <jie.zhang@analog.com>
3970         * config/bfin/bfin.md (trap): New pattern.
3972 2005-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3974         * tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds
3975         on types.
3977         * expr.c (expand_expr_real): Don't call record_block_change unless
3978         ib_boundaries_block is non-null
3980         * postreload.c (reload_cse_move2add): Don't try to work with BImode.
3982         * fold-const.c (build_range_check): Use proper type for subtraction
3983         when merging lower bound.
3985 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
3987         PR rtl-optimization/24497
3988         * loop-unroll.c (apply_opt_in_copies): Do not verify equality of
3989         the copied insn.
3991 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
3993         * tree-scalar-evolution.c (expression_expensive_p): New function.
3994         (scev_const_prop): Use compute_overall_effect_of_inner_loop.
3996 2005-11-18  Bernd Schmidt  <bernd.schmidt@analog.com>
3998         * config/bfin/crtlibid.s: New file.
4000 2005-11-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4002         PR target/24348
4003         * config.gcc (hppa*-*-hpux*): Add pa/t-slibgcc-elf-ver to tmake config
4004         when not using sjlj exceptions.
4005         * config/pa/pa64-hpux.h (LIB_SPEC): Add -lpthread in static links.
4006         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4007         * config/pa/som.h (ASM_PREFERRED_EH_DATA_FORMAT): Delete define.
4008         * config/pa/linux-unwind.h (pa32_fallback_frame_state): Use
4009         DWARF_ALT_FRAME_RETURN_COLUMN instead of column 0 as return column.
4010         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): New define.
4011         * config/pa/pa-linux.h (INCOMING_RETURN_ADDR_RTX,
4012         DWARF_FRAME_RETURN_COLUMN, ASM_PREFERRED_EH_DATA_FORMAT,
4013         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Delete defines.
4014         * config/pa/pa.h (ARG_POINTER_CFA_OFFSET): Delete.
4015         (FRAME_POINTER_CFA_OFFSET, INCOMING_RETURN_ADDR_RTX,
4016         DWARF_FRAME_RETURN_COLUMN, DWARF_ALT_FRAME_RETURN_COLUMN,
4017         ASM_PREFERRED_EH_DATA_FORMAT, ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New
4018         defines.
4019         * config/pa/hpux-unwind.h: New file.
4021 2005-11-17  Alexandre Oliva  <aoliva@redhat.com>
4023         * config/rs6000/rs6000.h (ASM_OUTPUT_WEAKREF): Define.
4024         * defaults.h (ASM_OUTPUT_WEAKREF): Add decl argument.
4025         * varasm.c (do_assemble_alias): Adjust call.
4026         (weak_finish): Don't use ASM_WEAKEN_LABEL if ASM_WEAKEN_DECL
4027         is defined.
4028         * doc/tm.texi (ASM_OUTPUT_WEAKREF): Document it.
4030 2005-11-17  James E Wilson  <wilson@specifix.com>
4032         * tree.def (FUNCTION_DECL): Correct typo in comment.
4034 2005-11-17  Richard Henderson  <rth@redhat.com>
4036         * dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
4037         (lookup_cfa_1): Apply data alignment to DW_CFA_def_cfa_offset_sf
4038         and DW_CFA_def_cfa_sf.
4039         (def_cfa_1): Use DW_CFA_def_cfa_offset_sf with negative values.
4040         (dbx_reg_number): Don't assert particular registers here.
4041         (based_loc_descr): ... do it here instead.  Fold in ...
4042         (eliminate_reg_to_offset): ... this function.
4043         (compute_frame_pointer_to_cfa_displacement): Fold in the effects
4044         of eliminate_reg_to_offset; use FRAME_POINTER_CFA_OFFSET.
4045         * unwind-dw2.c (execute_cfa_program): Apply data align factor
4046         to DW_CFA_def_cfa_offset_sf and DW_CFA_def_cfa_sf.
4047         * function.c (instantiate_new_reg): Use FRAME_POINTER_CFA_OFFSET.
4048         (instantiate_virtual_regs): Likewise.
4049         * var-tracking.c (adjust_stack_reference): Likewise.
4050         * doc/tm.texi (FRAME_POINTER_CFA_OFFSET): New.
4052 2005-11-17  Bernd Schmidt  <bernd.schmidt@analog.com>
4054         * config/bfin/elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
4055         * config/bfin/uclinux.h (STARFILE_SPEC): Likewise.
4056         * config/bfin/t-bfin-elf (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Add
4057         crtlibid.o.
4058         ($(T)crtlibid.o): New rule.
4060 2005-11-16  Richard Guenther  <rguenther@suse.de>
4062         PR middle-end/24851
4063         * fold-const.c (extract_array_ref): Return byte offset
4064         in all cases.
4065         (fold_binary): Fold &x[a] CMP &x[b] to
4066         a*sizeof(*x) CMP b*sizeof(*x) to get correct overflow
4067         behavior.
4069 2005-11-16  Richard Henderson  <rth@redhat.com>
4071         PR middle-end/23497
4072         * tree-ssa.c (warn_uninitialized_var): Skip real and imaginary
4073         parts of an SSA_NAME.
4075 2005-11-16  Richard Earnshaw  <richard.earnshaw@arm.com>
4077         PR target/24861
4078         * arm.md (split for movsf with immediate): Restrict split to insns
4079         that set a general register.
4081 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
4083         * config/ia64/unwind-ia64.c (uw_advance_context): New.  Call
4084         uw_update_context.
4085         * unwind-dw2.c (uw_advance_context): Likewise.
4086         * unwind-sjlj.c (uw_advance_context): Likewise.  Also call
4087         _Unwind_SjLj_Unregister.
4088         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Call uw_advance_context.
4090 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
4092         * unwind-sjlj.c (_Unwind_GetCFA): Handle the builtin_setjmp case.
4094 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4096         * config/alpha/alpha.c (alpha_init_builtins): Use type_for_mode
4097         langhook to get a DImode integer type.
4099 2005-11-16  Richard Henderson  <rth@redhat.com>
4100             J"orn Rennecke <joern.rennecke@st.com>
4101             Ulrich Weigand  <uweigand@de.ibm.com>
4103         PR rtl-opt/24160
4104         PR target/24621
4105         * reload1.c (reg_equiv_invariant): New.
4106         (reload): Allocate, initialize, and free it.
4107         (calculate_needs_all_insns): Check it when skipping equivalence
4108         setting insns.
4109         (alter_reg): Likewise.
4110         (eliminate_regs_1): Rename from eliminate_regs.  Add new
4111         may_use_invariant argument; only use reg_equiv_invariant when true.
4112         (eliminate_regs): New.
4113         (eliminate_regs_in_insn): Use eliminate_regs_1; track when we're in
4114         a context for which may_use_invariant may be true.
4116 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4118         * fold-const.c (const_binop): Don't constant fold the operation
4119         if the result has overflowed and flag_trapping_math.
4120         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
4122 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
4124         * config/arm/unwind-arm.c (abort): Add prototype here.
4125         (UCB_FORCED_STOP_ARG): Correct typo in macro argument.
4126         (struct phase1_vrs): Add prev_sp.
4127         (unwind_phase2_forced): Save the original core registers instead of
4128         modifying entry_vrs.  Take a new flag argument for resuming unwinding
4129         and set action flags accordingly.  Always set _US_END_OF_STACK when
4130         get_eit_entry fails.  Unwind before calling the stop function.
4131         (_Unwind_GetCFA): New function.
4132         (__gnu_Unwind_ForcedUnwind): Update call to unwind_phase2_forced.
4133         (__gnu_Unwind_Resume_or_Rethrow): Likewise.
4134         (__gnu_Unwind_Resume): Do not unwind here for forced unwinding;
4135         just call unwind_phase2_forced.
4136         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Move to here.
4137         * config/arm/unwind-arm.h (abort): Remove prototype.
4138         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Change to
4139         prototypes.
4140         (_Unwind_GetCFA): New prototype.
4141         * config/arm/pr-support.c (abort): Add prototype here.
4142         * unwind-c.c (PERSONALITY_FUNCTION) [__ARM_EABI_UNWINDER__]: Handle
4143         forced unwinding.
4144         * config/arm/arm.c (arm_expand_prologue, thumb_expand_prologue): Do
4145         not schedule the prologue with non-call exceptions and EABI.
4147 2005-11-16  Nathan Sidwell  <nathan@codesourcery.com>
4149         * config/arm/unwind-arm.h: Reorder interface function declarations.
4150         (_URC_END_OF_STACK): New enumeration value.
4151         (_US_UNWIND_ACTION_MASK, _US_FORCE_UNWIND, _US_END_OF_STACK): Likewise.
4152         (struct _Unwind_Control_Block): Document reserved field use.
4153         (_Unwind_Stop_Fn): New typedef.
4154         (_Unwind_ForcedUnwind): Declare.
4155         (_Unwind_Resume_or_Rethrow): Declare.
4156         * config/arm/libunwind.S (UNWIND_WRAPER): Add nargs
4157         argument.  Adjust.
4158         (_Unwind_Resume_or_Rethrow, _Unwind_ForcedUnwind): New.
4159         * config/arm/unwind-arm.c (UCB_FORCED_STOP_FN)
4160         (UCB_FORCED_STOP_ARG): New.
4161         (search_EIT_table): Update boundary condition checks.
4162         (get_eit_entry): Return _URC_END_OF_STACK when cannot unwind.
4163         (unwind_phase2): Replace for with do..while.
4164         (unwind_phase2_forced): New.
4165         (__gnu_Unwind_RaiseException): Replace for with do..while.
4166         (__gnu_Unwind_ForcedUnwind): New.
4167         (__gnu_Unwind_Resume): Set FORCE_UNWIND flag, if forced unwinding.
4168         Use appropriate phase2 unwinder.
4169         (__gnu_Unwind_Resume_or_Rethrow): New.
4170         (__gnu_unwind_pr_common): Cope with forced unwinding.
4172 2005-11-16  David Edelsohn  <edelsohn@gnu.org>
4174         PR target/24772
4175         * config/rs6000/predicates.md (vrsave_operation): SET_SRC is a VEC.
4177         * config/rs6000/rs6000.md (btruncsf2, ceilsf2, floorsf2,
4178         roundsf2): Remove "s" from mnemonic.
4180 2005-11-16  Bernd Schmidt  <bernd.schmidt@analog.com>
4182         * config/bfin/crti.s (__init, __fini): Use appropriate prologue if
4183         __PIC__ is defined.
4184         * config/bfin/crtn.s: Change epilogues to match.
4185         * config/bfin/t-bfin-elf (EXTRA_MULTILIB_PARTS): Define.
4186         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If flag_pic, define
4187         __PIC__ and __pic__.
4189 2005-11-16  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
4191         PR 24357
4192         * doc/invoke.texi: Distinguish between free and fixed form instead of
4193         Fortran and Fortran 90/95.  Remove ratfor from the list of supported
4194         languages.
4195         * gcc.c (default_compilers): Remove double entries, add entries for
4196         suffixes '.F90' and '.F95'.
4198 2005-11-16  Eric Botcazou <ebotcazou@adacore.com>
4200         * config/alpha/alpha.c (alpha_expand_prologue): Fix off-by-one bug
4201         in the stack probing loop.
4203 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
4205         * configure.ac: Use .machine power5 not power5x.
4206         * configure: Regenerate.
4208 2005-11-15  Mike Stump  <mrs@apple.com>
4210         * c-decl.c (lookup_name_two): Add.
4211         * c-tree.h (lookup_name_two): Likewise.
4212         * c-common.c (handle_cleanup_attribute): Use lookup_name_two instead.
4213         * config/darwin-c.c (darwin_pragma_unused): Likewise.
4215 2005-11-16  Alan Modra  <amodra@bigpond.net.au>
4217         PR rtl-optimization/23392
4218         * regrename.c (enum scan_actions) Add mark_access.
4219         (scan_actions_name): Ditto.
4220         (scan_rtx_reg): Handle mark_access.
4221         (scan_rtx_address): Do nothing for mark_access.
4222         (build_def_use): Mark source registers in REG_FRAME_RELATED_EXPR
4223         and regs in REG_INC notes before closing chains for dead regs.
4224         Mark destination regs in REG_FRAME_RELATED_EXPR notes after
4225         opening chains for new writes.
4227 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
4229         * c.opt (ffixed-line-length-none): New.
4231 2005-11-15  Steve Ellcey  <sje@cup.hp.com>
4233         * mklibgcc.in: Change contents of eh_dummy.c.
4235 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
4237         * loop.c (scan_loop): Do not insert temporaries for hard registers.
4239 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
4241         * config/arm/lib1funcs.asm (div0) [L_dvmd_lnx]: Call raise instead
4242         of making syscalls.
4243         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define.  Set r7 also.
4245 2005-11-15  Jan Hubicka  <jh@suse.cz>
4247         * invoke.texi (large-unit-insns): Document.
4248         * ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
4249         * params.def (large-unit-insns): New param.
4251 2005-11-15  Hans-Peter Nilsson  <hp@axis.com>
4253         PR target/24869
4254         * config/cris/cris.md ("*mov_sidesisf_mem"): Do not match
4255         special register for operand 3.  Reindent constraints to align
4256         them vertically.
4258 2005-11-14  David Edelsohn  <edelsohn@gnu.org>
4260         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf,
4261         -mpopcntb, -mfprnd. Add -mcpu=power5+.
4262         * configure.ac: Add test for FP rounding instructions.
4263         * configure: Regenerate.
4264         * config.in: Regenerate.
4265         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4266         _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if
4267         features enabled.
4268         * config/rs6000/rs6000.opt (mfprnd): New.
4269         * config/rs6000/rs6000.c (processor_target_table): Add power5+.
4270         (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND.
4271         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+.
4272         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+.
4273         (TARGET_FPRND): New.
4274         * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP,
4275         UNSPEC_FRIZ): New.
4276         (btrunc<mode>2): New.
4277         (ceil<mode>2): New.
4278         (floor<mode>2): New.
4279         (round<mode>2): New.
4281 2005-11-14  Geoffrey Keating  <geoffk@apple.com>
4283         * gcc.c (version_compare_spec_function): Use fatal() rather than
4284         abort().
4286         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
4287         (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
4288         * config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
4289         as empty.
4290         * config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
4291         link in crt2.o.
4293         * config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
4294         on -mmacosx-version-min setting.
4296 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
4298         PR 24840
4299         * tree-vrp.c (infer_value_range): Return false if STMT is a
4300         block terminator and its basic block has no successors.
4302 2005-11-14  Mike Stump  <mrs@apple.com>
4304         * config/i386/i386.c (override_options): -masm=intel isn't
4305         supported on darwin.
4306         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
4308 2005-11-15  Joseph S. Myers  <joseph@codesourcery.com>
4310         * crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
4311         vfork after including auto-host.h.
4313 2005-11-15  Alan Modra  <amodra@bigpond.net.au>
4315         PR rtl-optimization/22002
4316         * combine.c (distribute_notes): Detect cases where a reg dies
4317         two or more times in a bb, including on the insn we are combining,
4318         and place the death note on the correct range.
4320 2005-11-14  Dale Johannesen  <dalej@apple.com>
4322         * expmed.c (store_bit_field): Add offset unconditionally for
4323         memory targets.
4324         (extract_bit_field): Don't force extzv or extv operand into
4325         a register if field is too big.
4327 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
4329         * config/arm/arm.c (pic_labelno): New.
4330         (arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a
4331         LABEL_REF.  Pass only the labelno to PIC insns.
4332         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
4333         (arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL.
4334         * arm.md (UNSPEC_PIC_LABEL): New constant.
4335         (pic_add_dot_plus_four, pic_add_dot_plus_eight)
4336         (tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF.
4337         Use the correct label prefix.
4339 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
4341         * config/arm/arm.c (legitimize_tls_address): Use correct rtx for
4342         REQ_EQUIV note.
4344 2005-11-14  Richard Earnshaw  <richard.earnshaw@arm.com>
4346         * loop-invariant.c: Include tm_p.h.
4347         * Makefile.in: Updated.
4349 2005-11-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4351         * pa.c (store_reg): Revise generation of frame notes in large frames.
4352         (set_reg_plus_d): Likewise.
4354 2005-11-13  Andrew MacLeod  <amacleod@redhat.com>
4356         PR tree-optimization/24709
4357         * tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
4358         loop check.
4360 2005-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
4362         * gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
4363         and duplicate declaration of pthread_self.
4365 2005-11-13  Eric Botcazou  <ebotcazou@adacore.com>
4366             Ian Lance Taylor  <ian@airs.com>
4368         PR middle-end/24003
4369         * calls.c (expand_call): If TARGET is a MEM and some part of the
4370         argument area has been saved, force TARGET to a register.
4372 2005-11-13  Razya Ladelsky <razya@il.ibm.com>
4374         * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type
4375         checking.
4377 2005-11-13  Jason Merrill  <jason@redhat.com>
4379         PR c++/22489
4380         * dwarf2out.c (gen_subprogram_die): Force a declaration die for
4381         lazily declared methods.
4382         (force_decl_die): Stop if forcing out the context already make a
4383         DIE for the decl.
4384         (force_type_die): Likewise.
4386 2005-11-13  Andrew Pinski  <pinskia@physics.uc.edu>
4388         PR middle-end/24820
4389         * builtins.c (integer_valued_real_p): Add break in
4390         REAL_CST having TREE_OVERFLOW set.
4392 2005-11-13  Zdenek Dvorak  <dvorakz@suse.cz>
4394         * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
4395         addressing modes during calculation of costs.
4397 2005-11-12  Eric Botcazou  <ebotcazou@adacore.com>
4399         * function.c (assign_stack_local_1): Restrict sanity check
4400         on frame size overflow to 32-bit and above platforms.
4402 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
4404         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
4405         * config/cris/cris.c: Include reload.h.
4406         (cris_initial_elimination_offset): New function.
4407         * config/cris/cris-protos.h: (cris_initial_elimination_offset):
4408         Prototype.
4410 2005-11-12  Richard Guenther  <rguenther@suse.de>
4412         * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
4414 2005-11-12  Jan Hubicka  <jh@suse.cz>
4416         * expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize
4417         to compare against 0 when possible.
4419 2005-11-12  Jie Zhang  <jie.zhang@analog.com>
4421         * config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES,
4422         HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
4423         REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers.
4424         * config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers
4425         in the new order.
4427 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
4429         * recog.c (constrain_operands) <case 'g'>: For a match, require
4430         that a non-register matches general_operand when strict >= 0.
4432 2005-11-11  Steven Bosscher  <stevenb@suse.de>
4434         * loop-invariant.c (move_loop_invariants): Fix a thinko in the
4435         previous checkin.
4437 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
4439         * tree-ssa-dse.c (struct address_walk_data, memory_ssa_name_same)
4440         (memory_address_same): New.
4441         (dse_optimize_stmt): Call memory_address_same.
4443 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
4445         PR middle-end/24750
4446         * reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND,
4447         ZERO_EXTEND>: New cases.
4449 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
4451         * longlong.h (__clz_tab): Always provide.
4453 2005-11-11  Steven Bosscher  <stevenb@suse.de>
4455         PR 24265
4456         * loop-invariant.c (may_assign_reg_p): Make sure a hard register
4457         can be assigned to.
4458         (find_invariant_insn): Do the cheapest check, may_assign_reg_p,
4459         before check_maybe_invariant.
4460         (move_invariant_reg): Use gen_move_insn instead of replacing
4461         SET_DEST with the temporary for the invariant.
4462         (move_loop_invariants): If checking is enabled, do internal
4463         consistency checks after completing the pass.
4465 2005-11-11  David Edelsohn  <edelsohn@gnu.org>
4467         PR 24644
4468         * common.opt (Wvolatile-register-var): New.
4469         * varasm.c (make_decl_rtl): Only emit warning when option
4470         specified.  Clarify warning message.
4471         * doc/invoke.texi (Wvolatile-register-var): Document new option.
4473         * doc/md.texi (copysign): Document standard named pattern.
4475 2005-11-11  Jie Zhang  <jie.zhang@analog.com>
4477         * config/bfin/bfin.c (bfin_expand_strmov): Correctly move the trailing
4478         bytes when align is 2.
4479         * config/bfin/bfin.md (rep_movsi, rep_movhi): Make LSETUP be followed
4480         by the first instruction of the loop.
4482 2005-11-11  Jason Merrill  <jason@redhat.com>
4484         PR c++/24686
4485         * gimplify.c (gimplify_cleanup_point_expr): Also save and restore
4486         the cleanup list.
4488 2005-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
4490         PR rtl-optimization/22509
4491         * local-alloc.c (memref_used_between_p): Check whether a function call
4492         could not reference the memref.
4494 2005-11-11  Ulrich Weigand  <uweigand@de.ibm.com>
4496         * postreload.c (reload_cse_simplify_operands): Fix bug in sorting
4497         algorithm so as to choose the best, not the worst, alternative.
4498         Reset accumulated register class before processing next alternative.
4500 2005-11-11  Kaz Kojima  <kkojima@gcc.gnu.org>
4502         PR target/24445
4503         * calls.c (expand_call): Copy a return value to a plain register
4504         if needed.
4506 2005-11-10  Alexandre Oliva  <aoliva@redhat.com>
4508         PR target/24778
4509         * varasm.c (assemble_name): Recompute name only for transparent
4510         aliases.
4512 2005-11-10  Hans-Peter Nilsson  <hp@axis.com>
4514         * tree-ssa-structalias.c (heapvar_lookup): Fix typo: stmt to from.
4516 2005-11-04  Jeff Law  <law@redhat.com>
4518         PR middle-end/23181
4519         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Do not
4520         perform reassociation if the parent statement will not die as
4521         a result of the optimization.
4523 2005-11-10  Daniel Berlin  <dberlin@dberlin.org>
4525         * tree-ssa-alias.c (compute_may_aliases): Remove call to
4526         delete_old_heap_vars.
4527         * tree-dfa.c (referenced_var_remove): Remove function.
4528         * tree-ssa.c (init_tree_ssa): Call init_alias_heapvars.
4529         (delete_tree_ssa): Remove call to delete_old_heapvars.
4530         Add call to delete_alias_heapvars.
4531         * tree-flow.h (referenced_var_remove): Remove prototype
4532         (init_alias_heapvars): New prototype.
4533         (delete_alias_heapvars): Ditto.
4534         * Makefile.in (tree-ssa-structalias.o): Add
4535         gt-tree-ssa-structalias.o
4536         (GTFILES): Add tree-ssa-structalias.h and
4537         tree-ssa-structalias.c.
4538         (s-gtype): Add gt-tree-ssa-structalias.h.
4539         * tree-ssa-structalias.c (heapvars): Remove.
4540         (oldheapvars): Remove.
4541         (heapvar_for_stmt): New variable.
4542         (heapvar_lookup): New function.
4543         (heapvar_insert): Ditto.
4544         (get_constraint_for): See if we have an old heapvar
4545         to reuse.
4546         (init_alias_heapvars): New function.
4547         (delete_alias_heapvars): Ditto.
4548         Add include of gt-tree-ssa-structalias.h.
4550 2005-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
4552         PR middle-end/22127
4553         * calls.c (special_function_p): Set ECF_RETURNS_TWICE for getcontext.
4555 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
4557         * tree.c (int_fits_type_p): Only look at the base type
4558         if it has the same precision as the original type.
4560 2005-11-10  Jakub Jelinek  <jakub@redhat.com>
4562         PR other/4372
4563         * varasm.c (assemble_alias): Use %q+D in the error
4564         message instead of %J and %qD.
4566 2005-11-10  Richard Guenther  <rguenther@suse.de>
4568         * gcse.c (free_ldst_entry): Only free hashtable if
4569         it exists.
4571 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4573         * function.c (assign_stack_local_1): Issue an error message if
4574         the frame size overflows in the signed target arithmetics.
4576 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4578         * tree.c (build_qualified_type): Chain the new type to the original
4579         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
4580         a POINTER_TYPE or a REFERENCE_TYPE respectively.
4581         (build_pointer_type_for_mode): Only return unqualified types.
4582         (build_reference_type_for_mode): Likewise.
4584 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
4586         * Makefile.in (gnucompare): Do comparison of all files using one of
4587         the chosen methods and only afterwards decide if just warning should
4588         be issued or comparison failure raised.
4590 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4592         * ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
4593         (noce_try_abs): Negate if the comparison is reversed.
4594         Look only one instruction backwards for a REG_EQUAL note.
4596 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
4598         PR other/4372
4599         * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
4600         gthr-tpf.h: Define __gthrw.  For all identifiers that might
4601         be weak, introduce weakrefs or non-weak aliases with __gthrw,
4602         and prefix all uses with __ghtrw.
4604 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
4606         PR other/4372
4607         * tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New.
4608         (TREE_DEPRECATED): Adjust comment.  Check for a DECL.
4609         * c-common.c (handle_weakref_attribute): New.
4610         (c_common_attribute_table): Add weakref.
4611         * configure.ac (HAVE_GAS_WEAKREF): Check for weakref support
4612         in the assembler.
4613         * configure, config.in: Rebuilt.
4614         * defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF.
4615         * doc/extend.texi: Document weakref attribute.
4616         * varasm.c (ultimate_transparent_alias_target): New
4617         (assemble_name): Use it.
4618         (weak_finish_1): Split out of...
4619         (weak_finish): ... and deal with weakrefs in...
4620         (weakref_targets): ... new list.
4621         (globalize_decl): Clean up weakref_targets.
4622         (do_assemble_alias): Handle weakrefs.
4623         (finish_aliases_1): Do not reject weakrefs to external symbols.
4624         (assemble_alias): Handle weakrefs.
4626 2005-11-09  Richard Guenther  <rguenther@suse.de>
4628         PR tree-optimization/24716
4629         * tree-scalar-evolution.c (analyze_evolution_in_loop): Use
4630         t_bool to track results from follow_ssa_edge.
4632 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4634         * final.c (force_source_line): New global variable.
4635         (final_scan_insn): Set it to true instead of clearing last_filename.
4636         (notice_source_line): Return true if force_source_line is true,
4637         unless source info is absent.
4639 2005-11-09  Andrew Pinski  <pinskia@physics.uc.edu>
4641         PR c/24644
4642         * dwarf2-out.c (add_name_and_src_coords_attributes): Don't add
4643         a linkage name for a variable if it a register variable.
4644         * c-decl.c (grokdeclarator): Global register variables
4645         should be set as PUBLIC.
4647 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
4649         PR 24624
4650         * config/s390/s390.c (struct s390_frame_layout): New fields
4651         first_save_gpr_slot and last_save_gpr_slot.
4652         (cfun_grps_save_area_size, s390_frame_info, s390_emit_prologue,
4653         s390_emit_epilogue, s390_initial_elimination_offset): Replaced
4654         first_save_gpr and last_save_gpr with the _slot variants.
4655         (s390_register_info): Calculate first_save_gpr_slot and
4656         last_save_gpr_slot using regs_ever_live.
4658 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
4660         PR 24623
4661         * config/s390/s390.c (s390_regs_ever_clobbered): Only save live eh regs
4662         for a function containing a landing pad.
4664 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
4666         PR 24034
4667         * flow.c (mark_set_1): Handle CLOBBERs like SETs if the register
4668         is live afterwards.
4670 2005-11-08  Bernd Schmidt  <bernd.schmidt@analog.com>
4672         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DEFAULTS,
4673         MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): New.
4675 2005-11-09  Nathan Sidwell  <nathan@codesourcery.com>
4677         Add ms2 support
4678         * config/ms1/ms1.md (UNSPEC_BLOCKAGE, UNSPEC_EI, UNSPEC_DI): New
4679         constants.
4680         (call,load,store): New insn types.
4681         (mem_access, branch_access): Adjust reservation conditions.
4682         (define_delay): Adjust condition.
4683         (decrement_and_branch_until_zero): Allow for ms2.  Set branch
4684         type.
4685         (*decrement_and_rbanch_until_zero_no_clobber): Allow for ms2.
4686         (*movqi_internal,*movsi_internal,*movsf_internal): Use load,store
4687         insn type.
4688         (call_internal, call_value_internal, return_internal,
4689         return_interrupt_internal, eh_return_internal, indirect_jump,
4690         tablejump): Set call insn type.
4691         (blockage, ei, di): Use appropriate unspec const.
4692         * config/ms1/ms1.c (ms1_flag_delayed_branch): New.
4693         (ms1_get_attr_type): Adjust to give load & store types.
4694         (ms1_final_prescan_insn): Adjust for new insn types.  Don't look
4695         backwards past a barrier.
4696         (ms1_override_options): Accept ms2 arch.  Copy and reset delayed
4697         branch scheduling.
4698         (struct branch_info, struct label_info): New.
4699         (ms1_labels): New.
4700         (ms1_add_branches, ms1_check_delay_slot, ms1_reorg_hazard): New.
4701         (ms1_machine_reorg): New.
4702         (TARGET_MACHINE_DEPENDENT_REORG): Override.
4703         * config/ms1/crtn.asm: Add nop for ms2 JAL hazard.
4704         * config/ms1/ms1.h (processor_type): Add PROCESSOR_MS2.
4705         (ASM_SPEC, LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Add ms2.
4706         (TARGET_MS2): New.
4708 2005-11-09  Per Bothner  <per@bothner.com>
4709             Uros Bizjak  <uros@kss-loka.si>
4711         PR c/24101
4712         * toplev.c (process_options): Initialize debug_hooks early
4713         in case lang_hooks.post_options ends up calling a debug_hook.
4715 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
4717         * dwarf2out.c (multiple_reg_loc_descriptor): Don't assume
4718         DBX_REGISTER_NUMBER being contiguous.
4720 2005-11-08  James A. Morrison  <phython@gcc.gnu.org>
4721             Diego Novillo  <dnovillo@redhat.com>
4723         PR 23046
4724         * tree-vrp.c (register_edge_assert_for): Do not register
4725         always-false predicates.
4727 2005-11-08  Devang Patel <dpatel@apple.com>
4729         PR tree-optimization/23115
4730         * tree-if-conv.c (find_phi_replacement_condition): Check domninated_by
4731         relation.
4733 2005-11-08  Joseph S. Myers  <joseph@codesourcery.com>
4735         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include
4736         -mcpu=440.
4738 2005-11-08  Daniel Berlin  <dberlin@dberlin.org>
4740         Fix PR tree-optimization/23382
4742         * tree-ssa-alias.c (compute_may_aliases): Call
4743         delete_old_heap_vars.
4744         * tree-dfa.c (referenced_var_remove): New function.
4745         * tree-ssa.c (delete_tree_ssa): Call delete_old_heap_vars.
4746         * tree-flow.h (referenced_var_remove): Add prototype.
4747         (delete_old_heap_vars): Ditto.
4748         * tree-ssa-structalias.c (heapvars): New variable.
4749         (oldheapvars): Ditto.
4750         (get_constraint_for): Put heap vars on heapvars list.
4751         (delete_old_heap_vars): New function.
4753 2005-11-08  Jason Merrill  <jason@redhat.com>
4755         * tree.h (CALL_FROM_THUNK_P): Add CALL_EXPR_CHECK.
4757 2005-11-08  Uros Bizjak  <uros@kss-loka.si>
4759         PR target/19340
4760         * reg-stack.c (reg_to_stack): Update register liveness also
4761         for flag_sched2_use_traces.
4763 2005-11-08  Alan Modra  <amodra@bigpond.net.au>
4765         PR target/23704
4766         * config/rs6000/rs6000.c (rs6000_handle_option <OPT_m64>): Don't
4767         override prior explicit -mno-powerpc-gfxopt.
4769 2005-11-07  Eric Botcazou  <ebotcazou@adacore.com>
4771         * expmed.c (extract_bit_field): Do not use insv/extv/extzv patterns
4772         if the bitsize is zero.
4773         * doc/md.texi (Standard Pattern Names): Document it.
4775         * config/ia64/ia64.c (ia64_pass_by_reference): Delete.
4776         (TARGET_PASS_BY_REFERENCE): Likewise.
4778 2005-11-07  Ian Lance Taylor  <ian@airs.com>
4780         PR rtl-optimization/24683
4781         * config/i386/i386.c (legitimize_pic_address): If constant operand
4782         to PLUS is too large, put it in a register.
4784 2005-11-07  Jie Zhang  <jie.zhang@analog.com>
4786         * configure.ac: Enable checking assembler dwarf2 support for bfin
4787         target.
4788         * configure: Regenerate.
4790 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
4792         PR target/24230
4794         * config/rs6000/rs6000.c (easy_vector_splat_const, easy_vector_same,
4795         gen_easy_vector_constant_add_self): Delete.
4796         (vspltis_constant, easy_altivec_constant, gen_easy_altivec_constant):
4797         New.
4798         (output_vec_const_move): Use gen_easy_altivec_constant.
4799         (rs6000_expand_vector_init): Do not emit a set of a VEC_DUPLICATE.
4800         * config/rs6000/predicates.md (easy_vector_constant): Reorganize tests.
4801         (easy_vector_constant_add_self): Rewritten.
4802         * config/rs6000/rs6000-protos.h (easy_vector_splat_const,
4803         easy_vector_same, gen_easy_vector_constant_add_self): Remove prototype.
4804         (easy_altivec_constant, gen_easy_altivec_constant): Add prototype.
4805         * config/rs6000/altivec.md (easy_vector_constant_add_self splitters):
4806         Macroize and adjust for the other changes.
4808 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
4810         PR c/24599
4812         * c-typeck.c (build_c_cast): Try using a shared constant, and see
4813         if TREE_OVERFLOW or TREE_CONSTANT_OVERFLOW really changed.
4815 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
4817         PR rtl-optimization/23567
4818         * ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
4819         (noce_process_if_block): Don't do any optimizations except
4820         if (cond) x = x; if !set_b and write into orig_x may trap
4821         or fault.  Remove the MEM_READONLY_P check.
4823 2005-11-06  Diego Novillo  <dnovillo@redhat.com>
4825         PR 24670
4826         * tree-vrp.c (fix_equivalence_set): New.
4827         (extract_range_from_assert): Call it.
4829 2005-11-05  Ian Lance Taylor  <ian@airs.com>
4831         PR target/22432
4832         * combine.c (apply_distributive_law): Don't distribute across a
4833         vector mode subreg.
4835 2005-11-05  Kazu Hirata  <kazu@codesourcery.com>
4837         * c-typeck.c, config/i386/netware.h, config/m32c/cond.md,
4838         config/ms1/ms1.h, config/rs6000/predicates.md,
4839         config/s390/s390.c, params.def, postreload-gcse.c,
4840         tree-flow-inline.h, tree-ssa-operands.c, tree-vectorizer.c,
4841         tree-vrp.c, tree.c: Fix comment typos.
4842         * doc/invoke.texi: Fix typos.
4844 2005-11-05  Sebastian Pop  <pop@cri.ensmp.fr>
4846         * lambda-code.c (lambda_transform_legal_p): Use DDR_NUM_DIST_VECTS
4847         for testing whether the data_dependence_relation contains distance
4848         vectors.  Iterate over all distance vectors of the ddr.
4849         * lambda.h: Define a vec of lambda_vector pointers.
4850         * tree-data-ref.c (dump_data_dependence_relation,
4851         dump_data_dependence_direction): Iterate over all distance and
4852         direction vectors of the ddr.
4853         (initialize_data_dependence_relation): Initialize DDR_DIR_VECTS and
4854         DDR_DIST_VECTS.
4855         (build_classic_dist_vector, build_classic_dir_vector): Push a set
4856         of distance/direction vectors instead of a single one.
4857         * tree-data-ref.h (dir_vects, dist_vects): Replace dir/dist
4858         lambda_vectors with a vec of lambda_vectors.
4859         (DDR_DIR_VECT, DDR_DIST_VECT): Redefined as operations on vec.
4860         (DDR_DIR_VECTS, DDR_DIST_VECTS, DDR_NUM_DIR_VECTS,
4861         DDR_NUM_DIST_VECTS): New.
4862         * tree-loop-linear.c (gather_interchange_stats): Test for the
4863         existence of distance vectors only after having checked that there
4864         is a dependence.  Iterate over all distance vectors of the ddr.
4865         (linear_transform_loops): Use dump_data_dependence_relation.
4866         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Test for
4867         distance vectors using DDR_NUM_DIST_VECTS.  Iterate over all the
4868         distance vectors of the ddr.
4870 2005-11-05  Bernd Schmidt  <bernd.schmidt@analog.com>
4872         * config/bfin/bfin.c (n_dregs_to_save, n_pregs_to_save,
4873         expand_prologue_reg_save, expand_epilogue_reg_restore): New argument
4874         IS_INTHANDLER; all callers changed.
4875         (n_regs_saved_by_prologue): Take interrupt handler attributes into
4876         account.
4877         (do_link, do_unlink): New argument ALL; all callers changed.
4878         (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
4879         If function isn't leaf, save and restore all registers.
4880         (bfin_function_ok_for_sibcall): Only true if not an interrupt or
4881         exception handler.
4883 2005-11-05  Jan Hubicka  <jh@suse.cz>
4885         PR rtl-optimization/23490
4886         * doc/invoke.texi (max-predicted-iterations, max-cse-insns,
4887         max-flow-memory-location): Document.
4888         * flow.c: Include params.h
4889         (MAX_MEM_SET_LIST_LEN): Kill.
4890         (add_to_mem_set_list): Use new param.
4891         * cse.c (cse_basic_block): Replace 1000 by new param.
4892         * params.def (PARAM_MAX_PREDICTED_ITERATIONS, PARAM_MAX_CSE_INSNS,
4893         PARAM_MAX_FLOW_MEMORY_LOCATIONS): New.
4894         * predict.c (predict_loops): Use new param.
4895         * predict.def (MAX_PRED_LOOP_ITERATIONS): Remove.
4897         * ipa-inline.c (cgraph_decide_inlining_of_small_function,
4898         cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
4899         Do not hold memory returned by cgraph_node_name across other call.
4901 2005-11-04  Hans-Peter Nilsson  <hp@axis.com>
4903         PR target/23424
4904         * config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
4905         Disable.
4907 2005-11-04  Jeff Law  <law@redhat.com>
4909         PR/21883
4910         * doc/invoke.texi: Document max-jump-thread-duplication-stmts PARAM.
4911         * tree-ssa-dom.c: Include params.h.
4912         (thread_across_edge): If there are too many statements in the
4913         target block, then do not thread through it.
4914         * Makefile.in (tree-ssa-dom.o): Depend on $(PARAMS_H).
4915         * params.def (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS): New PARAM.
4917 2005-11-03  Diego Novillo  <dnovillo@redhat.com>
4919         PR 24627
4920         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Use
4921         TODO_update_ssa instead of TODO_update_ssa_no_phi.
4923 2005-11-04  Sebastian Pop  <pop@cri.ensmp.fr>
4925         PR/18595
4926         * tree-scalar-evolution.c (instantiate_parameters_1,
4927         instantiate_parameters, resolve_mixers): Compute the size of an
4928         expression to be instantiated and give up the instantiation if the
4929         size exceeds PARAM_SCEV_MAX_EXPR_SIZE.
4931 2005-11-04  Richard Guenther  <rguenther@suse.de>
4933         * tree-flow.h (ref_contains_indirect_ref): Rename to
4934         array_ref_contains_indirect_ref.
4935         * tree-flow-inline.h (ref_contains_indirect_ref): Likewise.
4936         (array_ref_contains_indirect_ref): Make comment match the code
4937         and vice-versa.
4938         (ref_contains_array_ref): Likewise.
4939         * tree-ssa-structalias.c (find_func_aliases): Remove call to
4940         ref_contains_indirect_ref.
4941         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
4942         Rename calls to ref_contains_indirect_ref.
4944 2005-11-04 Paul Brook  <paul@codesourcery.com>
4946         * config/arm/arm.c (arm_load_pic_register): Pass extra reg to
4947         gen_pic_add_dot_plus_four and gen_pic_add_dot_plus_eight.
4948         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
4949         * config/arm/arm.md: Use match_operand in peephole input templates
4950         and match_dup in peephole output templates.
4952 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
4954         * config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
4955         __aeabi_uidiv.
4957 2005-11-04  Mark Mitchell  <mark@codesourcery.com>
4958             Daniel Jacobowitz  <dan@codesourcery.com>
4960         * longlong.h (add_ssaaaa): Clobber condition code register
4961         in ARM version.
4962         (sub_ddmmss): Likewise.
4963         (umul_ppmm): Likewise.
4965 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
4966             Paul Brook  <paul@codesourcery.com>
4967             Phil Blundell  <pb@reciva.com>
4969         * configure.ac: Add test for ARM TLS support.
4970         * configure: Regenerated.
4971         * config/arm/arm-protos.h (legitimize_tls_address)
4972         (arm_tls_referenced_p, tls_mentioned_p)
4973         (arm_output_addr_const_extra): New prototypes.
4974         (thumb_legitimize_pic_address): Delete.
4975         * config/arm/arm.c: Include "gt-arm.h".
4976         (enum tls_reloc): New.
4977         (arm_cannot_copy_insn_p, arm_tls_symbol_p, load_tls_operand)
4978         (pcrel_constant_p, get_tls_get_addr, arm_load_tp)
4979         (arm_call_tls_get_addr, legitimize_tls_address)
4980         (arm_tls_referenced_p, arm_tls_operand_p_1, tls_mentioned_p)
4981         (arm_init_tls_builtins, arm_emit_tls_decoration)
4982         (arm_output_addr_const_extra): New functions.
4983         (TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM)
4984         (TARGET_HAVE_TLS): Define.
4985         (target_thread_pointer): New.
4986         (arm_override_options): Handle -mtp=.
4987         (legitimize_pic_address): Ignore UNSPECs.
4988         (arm_legitimate_address_p, thumb_legitimate_address_p): Handle PC
4989         relative symbols.
4990         (arm_legitimize_address, thumb_legitimize_address): Handle TLS.
4991         (tls_get_addr_libfunc): New variable.
4992         (symbol_mentioned_p, label_mentioned_p): Ignore UNSPEC_TLS.
4993         (arm_init_builtins): Call arm_init_tls_builtins.
4994         (arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER.
4995         (arm_encode_section_info): Call default_encode_section_info.
4996         * config/arm/arm.h (TARGET_HARD_TP, TARGET_SOFT_TP): Define.
4997         (enum arm_tp_type): New.
4998         (target_thread_pointer): Add declaration.
4999         (LEGITIMATE_CONSTANT_P): Handle TLS.
5000         (LEGITIMATE_PIC_OPERAND_P): Handle TLS.
5001         (OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra.
5002         (enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER.
5003         * config/arm/arm.md: Add UNSPEC_TLS.
5004         (movsi): Handle TLS.
5005         (pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for
5006         non-PIC.
5007         (tls_load_dot_plus_eight): New insn and a peephole to create it.
5008         (load_tp_hard, load_tp_soft): New insns.
5009         * arm.opt: Add -mtp=.
5010         * doc/invoke.texi (ARM Options): Document -mtp.
5012 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
5014         * config/arm/lib1funcs.asm: Don't include "libunwind.S".
5015         * config/arm/libunwind.S: Include "lib1funcs.asm".
5016         * config/arm/t-bpabi (LIB1ASMFUNCS): Remove _unwind.
5017         (LIB2ADDEH): Add libunwind.S.
5018         (LIB2ADDEHDEP): Add lib1funcs.asm.
5019         * mklibgcc.in: Handle asm files in libgcc_eh.a.
5021 2005-11-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
5023         PR fortran/18452
5024         * c.opt: Add a -lang-fortran option.
5025         * c-opts.c: Add a lang_fortran flag.
5026         (c_common_init_options): Handling the -lang-fortran option.
5027         (c_common_handle_option): Add a case for Fortran options in
5028         preprocessing. Remove cases for -ffixed-form and
5029         -ffixed-line-length. Add a case for -lang-fortran.
5031 2005-11-03  David Edelsohn  <edelsohn@gnu.org>
5033         * config/rs6000/rs6000.c: Include params.h
5034         (optimization_options): Set max-grow-copy-bb-insns default to 16.
5035         (bdesc_2arg): Delete vpkuhss and vpkuwss.
5036         * config/rs6000/altivec.md (UNSPEC_VPKUHSS): Delete.
5037         (UNSPEC_VPKUWSS): Delete.
5038         (altivec_vpkuhss): Delete.
5039         (altivec_vpkuwss): Delete.
5040         * config/rs6000/rs6000.md (plus_eqsi): Remove optimize_size from
5041         final condition.
5042         (neg_eq0<mode>): Remove final condition.
5043         (neg_eq<mode>): Remove condition and split-condition.
5045 2005-11-04  Alan Modra  <amodra@bigpond.net.au>
5047         * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
5048         Use associated print macros.
5050 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
5052         PR c++/17964
5053         * diagnostic.c (diagnostic_set_info_translated): New function.
5054         (diagnostic_set_info): Use it.  Add comment.
5055         * diagnostic.h (diagnostic_set_info_translated): Declare.
5057 2005-11-03  Eric Botcazou  <ebotcazou@adacore.com>
5059         * dwarf2asm.c (dw2_force_const_mem): Add new parameter 'public'.
5060         On USE_LINKONCE_INDIRECT platforms, build a DECL_ONE_ONLY indirect
5061         reference only if 'public' is true.
5062         (dw2_output_indirect_constant_1): On USE_LINKONCE_INDIRECT platforms,
5063         emit the .hidden directive only if the indirect reference is public.
5064         (dw2_asm_output_encoded_addr_rtx): Add new parameter 'public'.
5065         Pass it to dw2_force_const_mem.
5066         * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): New param 'public'.
5067         * dwarf2out.c (output_cfi): Adjust calls to above function.
5068         (output_call_frame_info): Likewise.
5069         * except.c (output_ttype): Pass TREE_PUBLIC of the type_info object
5070         as 'public' argument to dw2_asm_output_encoded_addr_rtx.
5072 2005-11-03  Zdenek Dvorak  <dvorakz@suse.cz>
5074         PR tree-optimization/24483
5075         * tree-ssa-loop-ivopts.c (aff_combination_add_elt): Move rest
5076         field to elts if possible.
5078 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
5080         PR middle-end/23155
5081         * gimplifier.c (gimplify_expr): Create a temporary for lvalue
5082         CONSTRUCTOR.
5084 2005-11-03  Daniel Berlin  <dberlin@dberlin.org>
5086         Fix PR tree-optimization/24351
5088         * tree-ssa-structalias.c (struct variable_info): Add
5089         collapsed_into.
5090         (get_varinfo_fc): New function to follow collapsing.
5091         (new_var_info): Set collapsed_to to NULL.
5092         (dump_constraint): Follow collapsing.
5093         (build_constraint_graph): Handle collapsing.
5094         (do_simple_structure_copy): Return false if something bad
5095         happened.
5096         (collapse_rest_of_var): New function.
5097         (do_structure_copy): Collapse if do_simple_structure_copy returns
5098         false.
5100 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
5102         PR middle-end/24589
5103         * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
5104         expressions to a statement list instead of gimplifying them.
5106 2005-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
5108         PR rtl-optimization/23585
5109         * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
5110         that can't trap plus a constant integer, if the mode has zero size.
5112 2005-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
5114         PR target/24620
5115         * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
5116         as operand 2.
5117         ("*insv<mode>_reg_extimm"): Likewise.
5119 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
5121         PR c/24329
5122         * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
5123         c_common_type_for_mode returns an unnamed type.
5125 2005-11-02  Richard Henderson  <rth@redhat.com>
5127         PR target/9350
5128         PR target/24374
5129         * dwarf2out.c (dwarf2out_reg_save_reg): New.
5130         (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
5131         * function.c (assign_parms): Use calls.internal_arg_pointer.
5132         (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
5133         code.
5134         * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
5135         (TARGET_CALLS): Add it.
5136         * target.h (struct gcc_target): Add calls.internal_arg_pointer.
5137         * targhooks.c (default_internal_arg_pointer): New.
5138         * targhooks.h (default_internal_arg_pointer): Declare.
5139         * tree.h (dwarf2out_reg_save_reg): Declare.
5140         * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
5141         * config/i386/i386.c (dbx_register_map): Add return column.
5142         (dbx64_register_map, svr4_dbx_register_map): Likewise.
5143         (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
5144         (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
5145         (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
5146         (ix86_save_reg): Save force_align_arg_pointer.
5147         (ix86_emit_save_regs): Make regno unsigned.
5148         (ix86_emit_save_regs_using_mov): Likewise.
5149         (ix86_expand_prologue): Handle force_align_arg_pointer.
5150         (ix86_expand_epilogue): Likewise.
5151         * config/i386/i386.h: (dbx_register_map): Update.
5152         (dbx64_register_map, svr4_dbx_register_map): Update.
5153         (struct machine_function): Add force_align_arg_pointer.
5154         * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
5155         (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
5156         (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
5158 2005-11-02  Jan Hubicka  <jh@suse.cz>
5160         PR target/23303
5161         * i386.md: Add peep2 for simplyfing array accesses.
5163 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
5165         PR target/24615
5166         * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
5167         * config/s390/s390.c (s390_decompose_shift_count): New function.
5168         (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
5169         (print_shift_count_operand): Use s390_decompose_shift_count.
5170         * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
5171         Use s390_decompose_shift_count.  Do not accept any non-base hard regs.
5173 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
5175         PR target/24600
5176         * loop.c (loop_givs_rescan): Use force_operand to expand
5177         complex GIVs.
5179 2005-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
5181         PR 22429
5182         * fold-const.c (build_range_check): Use unsigned when signed
5183         overflow is undefined also.  If etype is subtype, make sure that
5184         the subtraction is in the supertype.
5186 2005-11-02  Richard Henderson  <rth@redhat.com>
5188         PR target/24178
5189         * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
5190         by MEM_ALIGN.
5192 2005-11-01  Richard Henderson  <rth@redhat.com>
5194         PR 21518
5195         * loop.c (scan_loop): Do not propagate computations to a hard
5196         register destination with SMALL_REGISTER_CLASSES.
5198 2005-11-01  Joseph S. Myers  <joseph@codesourcery.com>
5200         * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
5201         costs for MULT inside PLUS or MINUS.
5203 2005-11-01  Bob Wilson  <bob.wilson@acm.org>
5205         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
5206         (TRAMPOLINE_SIZE): Round up to 60.
5207         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
5209 2005-10-31  James E. Wilson  <wilson@specifix.com>
5211         PR debug/24444
5212         * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
5213         ifdef.  Put ifdefs around call in gen_subprogram_die.
5214         (compute_frame_pointer_to_cfa_displacement): Likewise.
5215         (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
5216         not defined.
5218         PR rtl-optimization/17356
5219         *  cfgrtl.c (purge_dead_edges): Undo last change.  In EDGE_EH code,
5220         add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
5222 2005-10-31  Jan Hubicka  <jh@suse.cz>
5224         PR middle-end/24093
5225         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
5227         PR target/20928
5228         * i386.c (legitimize_pic_address): Deal with large immediates.
5230         PR profile/20815
5231         * coverage.c (coverage_checksum_string): Fix code to stip random seeds
5232         from symbol names while computing checkup.
5234         PR profile/24487
5235         * predict.c (predict_loops): Do not estimate more than
5236         MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
5237         * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
5239 2005-10-31  Andrew MacLeod  <amacleod@redhat.com>
5241         PR tree-optimization/19097
5242         * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
5244 2005-10-31  J"orn Rennecke <joern.rennecke@st.com>
5246         * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
5248 2005-10-31  Andrew Pinski  <pinskia@physics.uc.edu>
5250         PR middle-end/23492
5251         * tree-inline.c (setup_one_parameter): If the init_stmt
5252         is NULL, don't insert the statement.
5254 2005-10-30  Jan Hubicka  <jh@suse.cz>
5256         PR tree-optimization/24172
5257         * tree-inline.c (copy_body_r): Unshare the substituted value first.
5259 2005-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
5261         * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
5262         constants for hosts with long != 32 bits.
5264 2005-10-28  Andreas Krebbel <krebbel1@de.ibm.com>
5266         PR middle-end/24093
5267         * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
5269 2005-10-28  Aldy Hernandez  <aldyh@redhat.com>
5271         * config/ms1/ms1.h (TARGET_MS1_64_001): New.
5272         (TARGET_MS1_16_002): New.
5273         (TARGET_MS1_16_003): New.
5275         * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
5276         ("*decrement_and_branch_until_zero_no_clobber"): New.
5277         Add corresponding splitter for decrement_and_branch_until_zero
5278         instruction.
5279         Key all decrement_and_branch_until_zero patterns off of
5280         TARGET_MS1_16_003.
5282 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
5284         PR middle-end/24362
5285         * tree-complex.c (extract_component): Treat RESULT_DECL
5286         like the rest of the decls.
5288 2005-10-25  Eric Botcazou  <ebotcazou@adacore.com>
5290         * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
5291         indirect call to _mcount if the function needs a static chain.
5293 2005-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
5294             Caroline Tice  <ctice@apple.com>
5296         PR rtl-optimization/24460
5297         * dwarf2out.c (have_switched_text_sections): New boolean variable.
5298         (dwarf2out_switch_text_section): Set it to true instead of
5299         incrementing separate_line_info_table_in_use.
5300         (output_loc_list): Additionally test have_switched_text_sections.
5301         (output_ranges): Likewise.
5302         (dwarf2out_finish): Likewise.
5303         * varasm.c (assemble_start_function): Do not call
5304         insert_section_boundary_note.
5305         (assemble_end_function): If flag_reorder_blocks_and_partition,
5306         switch to the function's section before emitting the .size directive.
5307         * bb-reorder.c (insert_section_boundary_note): Staticify.
5308         (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
5309         * output.h (insert_section_boundary_note): Delete.
5311 2005-10-24  Andrew Pinski  <pinskia@physics.uc.edu>
5313         PR c/23103
5314         * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
5315         instead of pointer equality when comparing types.
5317 2005-10-24  James E. Wilson  <wilson@specifix.com>
5319         * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
5320         add_dependence_list_and_free calls.
5322 2005-10-24  Steven Bosscher  <stevenb@suse.de>
5324         * contrib.texi: Add the names of the LLNL folks who donated
5325         Cray pointer support for gfortran.
5327 2005-10-24  Steven Bosscher  <stevenb@suse.de>
5329         PR tree-optimization/24225
5330         * profile.c (branch_prob): Look from end to start through a
5331         basic block when looking for a locus.
5333 2005-10-24  Richard Henderson  <rth@redhat.com>
5335         * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
5336         parallel.
5337         (hppa_expand_prologue): Likewise.
5339 2005-10-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5341         * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
5342         (NO_DEFERRED_PROFILE_COUNTERS): Define.
5343         * pa.h (NO_PROFILE_COUNTERS): Define.
5344         * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
5345         (funcdef_nos): New vector to hold label numbers of deferred profile
5346         counters.
5347         (output_deferred_profile_counters): New function.
5348         (hppa_profile_hook): Push label number onto funcdef_nos.
5349         (pa_hpux_file_end): Call output_deferred_profile_counters if
5350         NO_DEFERRED_PROFILE_COUNTERS is false.
5352         * pa-protos.h (get_deferred_plabel): New prototype.
5353         * pa.c (get_plabel): Rename to get_deferred_plabel.  Return plabel.
5354         Make global.
5355         (output_call): Adjust calls.
5357 2005-10-24  Alan Modra  <amodra@bigpond.net.au>
5359         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
5360         peculiarity of GOT/TOC section usage.
5362 2005-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
5364         PR objc/24435
5365          * c-common.c (constant_string_class_name): Add documentation.
5367 2005-10-23  Kaz Kojima  <kkojima@gcc.gnu.org>
5369         PR target/23832
5370         * recog.c (peephole2_optimize): Increment peep2_current_count
5371         only when the slot is empty.
5373 2005-10-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5375         PR ada/23957
5376         * except.c (output_function_exception_table): Call
5377         assemble_external_libcall if we need a personality function.
5379 2005-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
5381         PR rtl-optimization/24460
5382         * bb-reorder.c (fix_crossing_unconditional_branches): Do not
5383         set the basic block for barriers.
5385 2005-10-21  Janis Johnson  <janis187@us.ibm.com>
5387         * var-tracking.c (vt_initialize): Initialize post.
5389 2005-10-21  Devang Patel  <dpatel@apple.com>
5391         PR/24220
5392         * c-common.c (vector_types_convertible_p): Check vector element type.
5394 2005-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
5396         * config/sh/sh.c (prepare_move_operands): Handle the address
5397         constant which is a tls symbolic address plus a constant.
5399 2005-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
5401         PR driver/24473
5402         * gcc.c (main): Use the correct counter for erroring out
5403         about mulitple files.
5405 2005-10-21  Alan Modra  <amodra@bigpond.net.au>
5407         PR target/24465
5408         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
5409         use r2 for 64-bit tls .got access.
5411 2005-10-21  Paolo Bonzini  <bonzini@gnu.org>
5413         * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
5414         TRUTH_OR_EXPR.
5416 2005-10-20  Steven Bosscher  <stevenb@suse.de>
5418         PR tree-optimization/24307
5419         * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
5421 2005-10-20  Alexandre Oliva  <aoliva@redhat.com>
5423         PR middle-end/24295
5424         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
5425         alias targets.
5426         * varasm.c (find_decl_and_mark_needed): After cgraph global info
5427         is ready, stop marking functions, but still mark variables.
5429 2005-10-20  Richard Guenther  <rguenther@suse.de>
5431         PR c++/24439
5432         * fold-const.c (invert_truthvalue): Handle COND_EXPR with
5433         void type operands.
5435 2005-10-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
5437         PR rtl-optimization/23585
5438         * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
5439         (rtx_addr_can_trap_p): ... here.  Invoke rtx_addr_can_trap_p_1.
5440         (may_trap_p_1): New predicate extracted from...
5441         (may_trap_p): ... here.  Invoke may_trap_p_1.
5442         (may_trap_or_fault_p): New predicate.
5443         * rtl.h (may_trap_or_fault_p): Declare it.
5444         * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
5445         instead of may_trap_p.
5446         (steal_delay_list_from_fallthrough): Likewise.
5447         (fill_simple_delay_slots): Likewise.
5448         (fill_slots_from_thread): Likewise.
5449         * function.c (pad_to_arg_alignment): Rework comment about
5450         SPARC_STACK_BOUNDARY_HACK.
5451         * config/sparc/sparc.h: Likewise.
5453 2005-10-19  Adrian Straetling  <straetling@de.ibm.com>
5455         * config/s390/s390.c (s390_expand_insv): New.
5456         * config/s390/s390-protos.h (s390_expand_insv): Declare.
5457         * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
5458         ("icm_hi"): Remove mode attribute.
5459         ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
5460         Adjust all uses.
5461         ("*extracthi", "*extractqi"): Remove.
5462         (extv<mode>", "*extzv<mode>"): New.
5463         ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
5464         "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
5466 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5468         * cfgexpand.c (discover_nonconstant_array_refs_r,
5469         discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
5470         (tree_expand_cfg): Call discover_nonconstant_array_refs.
5471         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
5472         discover_nonconstant_array_refs.
5474 2005-10-19  Steven Bosscher  <stevenb@suse.de>
5476         PR c/23228
5477         * c-decl.c (pop_scope): Don't warn about an unused variable
5478         if it is marked with TREE_NO_WARNING.
5479         (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
5480         somenow mismatch and olddecl is to be replaced.
5482 2005-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
5484         PR middle-end/23199
5485         * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
5486         whether registers live on the edge can be saved/restored.
5488 2005-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
5490         * config/sh/sh.c (fixup_mova): Skip notes.
5492 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5494         * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
5495         * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
5496         (s390_can_eliminate): Handle BASE_REGNUM elimination.
5497         (s390_initial_elimination_offset): Likewise.
5498         (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
5499         register on TARGET_ZARCH targets.
5500         * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
5501         (INITIAL_FRAME_POINTER_OFFSET): Remove.
5502         (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
5503         (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
5505 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
5507         * config/s390/s390.md: Comment describing output modifiers updated.
5508         * config/s390/s390.c (print_operand): Likewise.
5510 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
5512         * config/s390/s390.c (override_options): Added check for -mstack-size
5513         64k limitation.
5514         * doc/invoke.texi: Mention that limit in the documenation.
5516 2005-10-18  Paolo Bonzini  <bonzini@gnu.org>
5518         PR #19672
5519         * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
5521 2005-10-18  Daniel Berlin <dberlin@dberlin.org>
5523         Fix PR tree-optimization/24231
5525         * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
5526         (compute_avail): Ditto.
5528 2005-10-18  Richard Henderson  <rth@redhat.com>
5530         PR target/24428
5531         * config/i386/i386.c (legitimate_constant_p): Check
5532         SYMBOL_REF_TLS_MODEL directly.  Don't fallthru to SYMBOL_REF
5533         if LABEL_REF.
5534         (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
5535         (legitimate_pic_address_disp_p): Reorg CONST checking to make
5536         sure SYMBOL_REF_TLS_MODEL is tested.  Test SYMBOL_REF_TLS_MODEL
5537         directly.
5538         (print_operand_address): Likewise.
5539         * config/i386/predicates.md (x86_64_immediate_operand): Test
5540         SYMBOL_REF_TLS_MODEL properly inside CONST.
5541         (x86_64_zext_immediate_operand): Likewise.
5542         (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
5543         initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
5544         * config/i386/i386-protos.h: Remove predicates.md entries.
5546 2005-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
5548         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
5549         Check that elements of TYPE_METHODS are FUNCTION_DECLs.
5551 2005-10-17  Alexey Starovoytov  <alexey.starovoytov@sun.com>
5552             Ian Lance Taylor <ian@airs.com>
5554         PR middle-end/23522
5555         * fold-const.c (fold_widened_comparison): Do not allow range based
5556         constant folding when right operand cannot be unwidened.
5558 2005-10-17  Richard Henderson  <rth@redhat.com>
5560         * builtins.c (expand_builtin_synchronize): Build a new-style asm
5561         with a memory clobber.
5563 2005-10-17  James E Wilson  <wilson@specifix.com>
5565         PR rtl-optimization/17356
5566         * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
5567         checking for EDGE_EH.
5569 2005-10-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
5571         * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
5572         the slot on an even boundary for any type with 16-byte alignment.
5574 2005-10-17  Hans-Peter Nilsson  <hp@axis.com>
5576         PR target/23424
5577         * md.texi (Modifiers) <%>: Clarify that % doesn't work
5578         after register allocation.
5580 2005-10-17  DJ Delorie  <dj@redhat.com>
5582         * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
5583         as frame related.
5585 2005-10-17  Nathan Sidwell  <nathan@codesourcery.com>
5587         PR c++/22551
5588         * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
5589         overflow flags.
5591 2005-10-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5593         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
5594         to 2 if it's already non-zero.
5595         (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
5596         is set and warn about it if flag_schedule_insns is 1.
5598 2005-10-17  Paul Woegerer  <paul.woegerer@nsc.com>
5600         * config/crx/crx.md: Compare-and-branch instructions need to
5601         invalidate CC.
5603 2005-10-17  Uros Bizjak  <uros@kss-loka.si>
5605         PR target/24315
5606         * config/i386/i386.md (*pushdi2_rex64 splitter)
5607         (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
5608         (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
5609         flow2 pass only when (optimize > 0 && flag_peephole2).
5611 2005-10-16  Andrew Pinski  <pinskia@physics.uc.edu>
5613         PR driver/22544
5614         * gcc.c (have_c): New static variable.
5615         (have_o): Likewise.
5616         (process_command): Remove declation of have_c.
5617         Set have_o to 1 when handling -o.
5618         (main): Add a fatel error if there are multiple
5619         files specified and -o and -c/-S is passed witout
5620         -combine or multiple languages.
5622 2005-10-16  Daniel Berlin  <dberlin@dberlin.org>
5624         Fix PR tree-optimization/22444
5625         * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
5626         Assert that we don't hit something with subvars.
5627         (setup_pointers_and_addressables): Don't add things with subvars,
5628         because we'll already process the subvars for aliasing purposes.
5630 2005-10-16  Hans-Peter Nilsson  <hp@axis.com>
5632         PR target/23424
5633         * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
5634         ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
5635         ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
5636         ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
5637         ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
5638         swapped, alternatives for the R constraint.
5640         PR middle-end/24341
5641         * builtins.c (get_builtin_sync_mode): Make unlimited
5642         mode_for_size request.
5644 2005-10-15  Richard Henderson  <rth@redhat.com>
5646         * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
5647         (gimplify_expr): ... here.
5648         (gimplify_compound_lval): Use it in initial scan loop.  Allow
5649         fb_lvalue in base expression.
5651 2005-10-15  Richard Henderson  <rth@redhat.com>
5653         PR 23714
5654         * builtins.c (expand_builtin_trap): Export.
5655         * expr.h (expand_builtin_trap): Declare.
5656         * expr.c (expand_assignment): Emit a trap for integral offsets
5657         from registers that weren't reduced to bitpos.
5659         * tree-cfg.c (mark_array_ref_addressable_1): Remove.
5660         (mark_array_ref_addressable): Remove.
5661         * tree-flow.h (mark_array_ref_addressable): Remove.
5662         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
5664 2005-10-15  James E Wilson  <wilson@specifix.com>
5666         PR target/24232
5667         * sched-deps.c (add_dependence_list): New arg UNCOND.  Fix all callers.
5668         (add_dependence_list_and_free): Likewise.
5669         (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
5670         call.
5672 2005-10-15  Diego Novillo  <dnovillo@redhat.com>
5674         PR 23141
5675         PR 23142
5676         * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
5677         sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
5678         anti-range.
5679         (vrp_visit_phi_node): Only prevent infinite iterations when
5680         the previous result and the new result are both VR_RANGEs.
5682 2005-10-15  Ranjit Mathew  <rmathew@gcc.gnu.org>
5684         * tree-into-ssa.c (mark_def_sites): Correct minor typo in
5685         function comment.
5687 2005-10-14  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5689         PR c/23439
5690         * c-parser.c (c_parser_for_statement): Use location of RID_FOR
5691         to initialize loc.
5693 2005-10-14  Per Bothner  <per@bothner.com>
5695         PR preprocessor/21250
5696         * c-ppoutput.c (print_line): Print internal line 0 as 1.
5698 2005-10-14  Nathan Sidwell  <nathan@codesourcery.com>
5700         PR c++/22551
5701         * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
5702         overflow flags.  Refactor some conditionals.
5704 2005-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
5706         PR tree-opt/21304
5707         * tree-dfa.c (add_referenced_var): Only look at decls which
5708         have TREE_CONSTANT or TREE_READONLY set instead of if
5709         !TREE_PUBLIC or !TREE_CONSTANT.
5711 2005-10-13  James E Wilson  <wilson@specifix.com>
5713         * doc/invoke.texi: For -x, add f95-cpp-input.
5714         * doc/install.texi: For --enable-languages doc, change f95 to fortran.
5716 2005-10-12  Sebastian Pop  <pop@cri.ensmp.fr>
5718         PR tree-optimization/24262
5719         * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
5720         in loop all the time.
5722 2005-10-12  Richard Henderson  <rth@redhat.com>
5724         PR c/24255
5725         * tree.h (DECL_TRANSPARENT_UNION): Remove.
5726         * function.c (assign_parm_find_data_types): Don't support it.
5727         * print-tree.c (print_node): Likewise.
5728         * c-common.c (handle_transparent_union_attribute): Likewise.
5729         Use build_duplicate_type.
5730         * tree-inline.c (remap_type_1): Split out of remap_type;
5731         properly remap aggregate fields.
5732         (build_duplicate_type): New.
5733         * doc/extend.texi (Variable Attributes): Remove documentation
5734         for transparent_union.
5736 2005-10-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
5738         PR target/24284
5739         * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
5740         (gen_stack_pointer_dec): Likewise.
5742 2005-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
5744         PR middle-end/21275
5745         PR middle-end/21766
5746         * target.h (struct gcc_target): Add valid_dllimport_attribute_p
5747         target hook.
5748         (struct cxx): Add adjust_class_at_definition target hook.
5749         * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
5750         defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
5751         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
5752         hook_void_tree. Add to TARGET_CXX.
5753         * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
5754         dllimport_flag.
5755         (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
5756         * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
5757         instead of attribute. Check for dllexport override.  Warn if
5758         inconsistent dll linkage. Don't lose old dllimport if decl has
5759         had address referenced.  Tweak lookup of dllimport atribute.
5760         (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
5761         for target specific rules.  Don't add dllimport attribute if
5762         DECL_DECLARED_INLINE_P.  Set DECL_DLLIMPORT_P when adding
5763         dllimport attribute.
5764         (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
5765         * varasm.c (initializer_constant_valid_p): Replace
5766         DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
5768         PR target/21801
5769         PR target/23589
5770         * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
5771         'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
5772         (i[34567]86-*-mingw32*): Likewise.
5774         * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
5775         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
5777         * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
5778         C++-specific code. Change return value to bool.
5779         (i386_pe_dllimport_p): Likewise.
5780         (associated_type): Simplify and make language-independent
5781         (i386_pe_encode_section_info): Replace override of ambiguous
5782         dllimport symbol refs with a gcc_assert.
5783         (i386_pe_valid_dllimport_attribute_p): Define.
5784         * config/i386/winnt-cxx.c: New file. Define C++ versions of
5785         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
5786         i386_pe_adjust_class_at_definition.
5787         * config/i386/winnt-stubs.c: New file. Define stub versions of
5788         lang-specific functions.
5789         * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
5790         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
5791         i386_pe_adjust_class_at_definition.
5792         (i386_pe_valid_dllimport_attribute_p): Declare.
5793         * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
5794         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
5795         * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
5797         PR target/19704
5798         * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
5799         dllimport attribute with test of DECL_DLLIMPORT_P.
5801 2005-10-12  Adrian Straetling <straetling@de.ibm.com>
5803         * combine.c (make_extraction): Correct offset computation.
5805 2005-10-12  Hans-Peter Nilsson  <hp@axis.com>
5807         * config/cris/t-linux (LIMITS_H_TEST): Define.
5809 2005-10-12  Richard Henderson  <rth@redhat.com>
5811         PR rtl-opt/23324
5812         * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
5814 2005-10-12  Richard Guenther  <rguenther@suse.de>
5816         * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
5818 2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>
5820         PR c++/19964
5821         * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
5822         DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
5823         type.
5825 2005-10-12  Richard Guenther  <rguenther@suse.de>
5827         PR c++/23799
5828         * varasm.c (output_constant): Correct typo from previous
5829         patch by DJ.
5831 2005-10-11  Ian Lance Taylor  <ian@airs.com>
5833         PR rtl-optimization/13931
5834         * combine.c: Revert patch of 2003-05-14, and:
5835         (try_combine): Only set elim_i1 and elim_i2 if the destination is
5836         completely killed in the appropriate insn.
5837         (distribute_notes): Don't skip multiple hard register test for
5838         elim_i1 and elim_i2.
5840 2005-10-11  Richard Henderson  <rth@redhat.com>
5842         PR c/24255
5843         * c-typeck.c (convert_for_assignment): Use build_constructor_single
5844         to initialize a transparent union instead of a nop_expr.
5846 2005-10-11  Richard Henderson  <rth@redhat.com>
5848         * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
5849         * tree-ssa-dce.c: Include tree-scalar-evolution.h.
5850         (tree_ssa_dce_loop): Call scev_reset.
5852         PR tree-opt/24300
5853         * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
5854         * tree-ssa-dce.c: Include cfgloop.h.
5855         (tree_ssa_dce_loop, pass_dce_loop): New.
5856         * tree-pass.h (pass_dce_loop): Declare it.
5857         * passes.c (init_optimization_passes): Use it.
5859 2005-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
5861         PR middle-end/24263
5862         * convert.c (convert_to_real): Revert 2005-10-05 patch.
5863         Only apply the optimization for rounding builtins if the inner
5864         cast is also an extension.
5866 2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
5868         PR tree-opt/23946
5869         * tree-ssa-ccp.c (execute_fold_all_builtins): Call
5870         mark_new_vars_to_rename instead of update_stmt.
5872 2005-10-11  Bernd Schmidt  <bernd.schmidt@analog.com>
5874         * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
5876 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
5878         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
5879         for setting MMX register to 0 rather than mmx.
5881 2005-10-10  Mark Mitchell <mark@codesourcery.com>
5883         * toplev.c (check_global_declaration_1): Robustify.
5885 2005-10-10  Steve Ellcey  <sje@cup.hp.com>
5887         PR target/12098
5888         * configure.ac: Move gas check from mips specific case to common case.
5889         Do check for GNU as for mips*-*-* and *-*-hpux* targets.
5890         * configure: Regenerate
5891         * doc/install.texi: Update.
5893 2005-10-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
5895         PR target/24284
5896         * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
5898 2005-10-10  Maciej W. Rozycki  <macro@linux-mips.org>
5900         * gcc.c (do_spec_1): Accept numeric characters in file name
5901         suffixes.
5903 2005-10-10  Nick Clifton  <nickc@redhat.com>
5905         * config/arm/arm.c: Remove extraneous whitespace.  Remove comment
5906         describing the deleted arm_gen_rotated_half_load function.
5908 2005-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
5910         * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
5911         __fpscr_values.
5913 2005-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
5915         * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
5916         gnu_ld assignments.
5917         * config/arm/t-linux-eabi (LIB1ASMFUNCS)
5918         (EXTRA_MULTILIB_PARTS): Define.
5919         * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
5920         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
5921         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
5922         * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
5923         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
5924         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
5926 2005-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
5928         PR tree-optimization/24226
5929         * tree-cfg.c (remove_bb): Clean up unreachable loops.
5930         * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
5931         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
5932         Export.
5934 2005-10-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
5936         * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
5938 2005-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
5940         PR target/24136
5941         * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
5942         Rewrite for no need for the early clobber.
5944 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
5946         Merge from csl-arm-branch:
5947         2005-09-07  Paul Brook  <paul@codesourcery.com>
5948         * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
5949         space to string.
5951         2005-04-30  Paul Brook  <paul@codesourcery.com>
5952         * config/arm/bpabi.h (TARGET_DEFAULT): Define.
5953         * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
5955         2005-03-07  Daniel Jacobowitz  <dan@codesourcery.com>
5956         * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
5957         (arm_override_options): Use TARGET_AAPCS_BASED.
5958         * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
5959         (PTRDIFF_TYPE): Use int for AAPCS.
5960         (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
5961         * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
5962         (DEFAULT_SHORT_ENUMS): Delete.
5963         * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
5965         2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
5966         * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
5967         * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
5968         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
5970         2004-12-03  Mark Mitchell  <mark@codesourcery.com>
5971         * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
5973         2004-11-22  Mark Mitchell  <mark@codesourcery.com>
5974         * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
5976         2004-11-19  Mark Mitchell  <mark@codesourcery.com>
5977         * config.gcc (arm*-*-linux-gnueabi): Add it.
5978         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
5979         redefining it.
5980         (TARGET_OS_CPP_BUILTINS): Likeiwse.
5981         * config/arm/linux-eabi.h: New file.
5982         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
5983         (LINUX_TARET_LINK_SPEC): Likewise.
5984         (LINK_SPEC): Use it.
5985         * config/arm/t-linux-eabi: New file.
5987 2005-10-08  Steven Bosscher  <stevenb@suse.de>
5989         PR other/22202
5990         * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
5991         spaces.
5992         (PARAM_SMS_DFA_HISTORY): Likewise.
5994 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
5996         PR middle-end/23150
5997         * calls.c (mem_overlaps_already_clobbered_arg_p): New.
5998         (load_register_parameters): Call it.
5999         (check_sibcall_argument_overlap_1): Likewise.
6000         (store_one_arg): Likewise.
6002 2005-10-07  James E. Wilson  <wilson@specifix.com>
6004         * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
6005         DImode not VECINT24 for operand 2.
6007         PR target/23644
6008         * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
6009         -mtune-arch.
6011         PR target/24193
6012         * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
6013         fr_spill): Use destination_operand for operand 0.
6015 2005-10-07  DJ Delorie  <dj@redhat.com>
6017         * varasm.c (output_constant): Limit error to expanding
6018         conversions.
6020 2005-10-07  Richard Guenther  <rguenther@suse.de>
6022         PR middle-end/24227
6023         * fold-const.c (fold_binary): Fix operand types during folding
6024         of X op (A, Y).  Evaluation order of the side-effects of
6025         X and A are frontend-defined, so ensure we honour that even for
6026         tcc_comparison class operands; eased by removing duplicate code.
6028 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
6030         * stor-layout.c (layout_type): Do not allow alignment of array
6031         elements to be greater than their size.
6033 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
6035         * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
6036         host_xmake_file.
6037         (hppa*-*-linux*): Ditto.
6038         (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
6039         * config/host-hpux.c: New.
6040         * config/x-hpux: New.
6041         * config/pa/x-hpux: Remove.
6042         * config/pa/x-linux: Remove.
6043         * config/pa/pa-host.c: Remove.
6045 2005-10-07  Jeff Law  <law@redhat.com>
6047         * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
6048         determine whether or not to try and thread outgoing edges.
6050 2005-10-07  David Edelsohn  <edelsohn@gnu.org>
6052         * config/rs6000/rs6000.md (eqsi_power): New.
6053         (neg_eq0si): Add TARGET_POWER to final condition.
6054         (neg_eqsi): Same.
6056 2005-10-06  Richard Henderson  <rth@redhat.com>
6058         * config/rs6000/rs6000.c: Revert last change.
6060 2005-10-06  Richard Henderson  <rth@redhat.com>
6062         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
6063         (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
6065 2005-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
6067         PR middle-end/22216
6068         PR middle-end/23651
6069         * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
6070         out return_label and naked_return_label.
6072 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
6074         * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
6075         change.
6077 2005-10-06  Richard Henderson  <rth@redhat.com>
6079         PR tree-opt/22237
6080         * tree-inline.c (declare_return_variable): Handle modify_dest not
6081         being a DECL.
6083 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
6085         Fix PR tree-optimization/22488
6086         * tree-ssa-structalias.c (check_for_overlaps): New function.
6087         (create_variable_info_for): Use it.
6089 2005-10-06  Richard Henderson  <rth@redhat.com>
6091         PR debug/24070
6092         * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
6093         (dwarf2out_start_source_file): Print it.
6095 2005-10-06  Geoffrey Keating  <geoffk@apple.com>
6097         * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
6099 2005-10-06  Richard Henderson  <rth@redhat.com>
6101         PR 23706
6102         * mode-switching.c (optimize_mode_switching): Clear transp bit
6103         for block with incoming abnormal edges.
6105         * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
6106         (fpscr_set_from_mem): Use them.
6107         * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
6108         (fpscr postinc splitters): Rewrite as peephole2+split.
6110 2005-10-06  David Edelsohn  <edelsohn@gnu.org>
6112         * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
6113         (eq<mode>_compare): Same.
6115 2005-10-06  Richard Guenther  <rguenther@suse.de>
6117         PR tree-optimization/24238
6118         * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
6120 2005-10-06  Daniel Jacobowitz  <dan@codesourcery.com>
6122         * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
6123         here.  Use AC_PATH_PROG for environment variables instead of
6124         test -x.
6125         * configure.ac: Update calls to gcc_AC_CHECK_TOOL.  Use it for
6126         objdump also.
6127         * configure: Regenerated.
6129 2005-10-06  Richard Earnshaw  <richard.earnshaw@arm.com>
6131         PR target/23783
6132         * arm.md (call): If the address isn't a SYMBOL_REF or a register,
6133         then force it into a register.
6134         (call_value): Likewise.
6136 2005-10-06  Richard Henderson  <rth@redhat.com>
6138         PR 24049
6139         * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
6140         under pass_vectorize.  Clear TODO_ggc_collect from the dce pass
6141         under pass_vectorize.
6143 2005-10-05  Devang Patel  <dpatel@apple.com>
6145         PR Debug/23205
6146         * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
6147         handling constants. Check NAMESPACE_DECL context for constants.
6149 2005-10-05  Eric Christopher  <echristo@apple.com>
6151         * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
6153 2005-10-05  Richard Henderson  <rth@redhat.com>
6155         PR 23714
6156         * tree-cfg.c (mark_array_ref_addressable_1): New.
6157         (mark_array_ref_addressable): New.
6158         * tree-flow.h (mark_array_ref_addressable): Declare.
6159         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
6161 2005-10-05  Andrew Pinski  <pinskia@physics.uc.edu>
6163         PR middle-end/20606
6164         PR middle-end/24069
6165         * reload.c (subst_reloads): When adding a REG_LABEL to a
6166         jump instruction, also update JUMP_LABEL.
6168 2005-10-05  David Edelsohn  <edelsohn@gnu.org>
6170         * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
6171         * bb-reorder.c (copy_bb_p): Use it.
6172         * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
6174 2005-10-05  Richard Henderson  <rth@redhat.com>
6176         PR target/23602
6177         * toplev.c (process_options): Warn about unsupported combinations
6178         of unwind tables and omit-frame-pointer.
6179         * config/i386/i386.c (override_options): Similarly.  Enable
6180         accumulate-outgoing-args if not explicitly disabled.
6182 2005-10-05  Steve Ellcey  <sje@cup.hp.com>
6184         * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
6185         Handle big endian vs. small endian.
6186         (vec_initv2sf): Handle big endian vs. small endian.
6187         (*vec_extractv2sf_1): Ditto.
6189 2005-10-05  Dale Johannesen  <dalej@apple.com>
6191         * convert.c (convert_to_real): Don't convert
6192         (float)floor(double d) to floorf((float)d).
6194 2005-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
6196         * config/arm/arm.md (insv): Use gen_int_mode in more places.
6198 2005-10-05  Andrew MacLeod  <amacleod@redhat.com>
6200         PR tree-optimization/18587
6201         * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
6202         (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
6203         build_vuses): Change to VEC type.
6204         (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
6205         opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
6206         opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
6207         opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
6208         (get_name_decl): New.  Return DECL_UID of base variable.
6209         (operand_build_cmp): New.  qsort comparison routine.
6210         (operand_build_sort_virtual): New.  Sort virtual build vector.
6211         (init_ssa_operands, fini_ssa_operands): Use VEC routines.
6212         (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
6213         (FINALIZE_BASE): Use get_name_decl.
6214         (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
6215         finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
6216         (start_ssa_stmt_operands, append_def, append_use, append_vuse,
6217         append_v_may_def, append_v_must_def): Replace opbuild_* routines with
6218         direct VEC_* manipulations.
6219         (build_ssa_operands): Call operand_build_sort_virtual.
6220         (copy_virtual_operand, create_ssa_artficial_load_stmt,
6221         add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
6222         with direct VEC_* manipulations.
6223         * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
6224         with direct VEC manipulations.
6226 2005-10-05  Paolo Bonzini  <bonzini@gnu.org>
6228         PR tree-optimization/21419
6229         PR tree-optimization/24146
6230         PR tree-optimization/24151
6232         * c-typeck.c (readonly_error): Handle USE being lv_asm.
6233         (build_asm_expr): Call it if outputs are read-only.
6234         * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
6236 2005-10-05  Billy Biggs  <billy.biggs@gmail.com>
6237             Paolo Bonzini  <bonzini@gnu.org>
6239         PR target/23809
6241         * doc/extend.texi (x86 Built-ins): Document that -msse and friends
6242         enable the instructions and not just the built-ins.
6243         * doc/invoke.texi (x86 Options): Likewise.
6245 2005-10-04  Geoffrey Keating  <geoffk@apple.com>
6247         * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
6249         * doc/invoke.texi (Option Summary): Correct spelling
6250         of -mmacosx-version-min.
6252 2005-10-04  Devang Patel  <dpatel@apple.com>
6254         * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
6255         real types.
6257 2005-10-04  Steve Ellcey  <sje@cup.hp.com>
6259         * tree-vect-transform.c (vect_create_epilog_for_reduction):
6260         Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
6262 2005-10-04  Adrian Straetling  <straetling@de.ibm.com>
6264         * config/s390/s390.md ("TDSI","DP"): New mode macros.
6265         ("TE","tg"): New mode attributes.
6266         ("sync_compare_and_swap<mode>"): Replace with a define_expand.
6267         ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
6268         ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
6269         dword_mode and one for GPRmode.
6271 2005-10-04  Ian Lance Taylor  <ian@airs.com>
6273         PR preprocessor/13726
6274         * c-ppoutput.c (cb_include): Add comments parameter, and print out
6275         any comments passed in.
6277 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
6279         * tree.c (annotate_with_file_line): Fix typo.
6281 2005-10-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6283         PR ada/19382
6284         * builtins.c (fold_builtin_memcmp): When constructing the pointer
6285         type used to access data in the inlined length == 1 case, use
6286         build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
6287         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
6289 2005-10-04  Uros Bizjak  <uros@kss-loka.si>
6291         * config/i386/i386.h (TARGET_FISTTP): Enable also for
6292         TARGET_SSE3 and only for TARGET_80387.
6293         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
6294         (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
6295         Do not depend on TARGET_80387.
6297 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
6299         * tree.c (last_annotated_node): Change type to location_t*.
6300         (annotate_with_file_line): Reflect the change of
6301         last_annotated_node type.
6303 2005-10-04  Richard Guenther  <rguenther@suse.de>
6305         PR c/23576
6306         * c-decl.c (grokdeclarator): Don't write to fields
6307         of error_mark_node.
6309 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
6311         PR middle-end/23125
6312         * c-decl.c (finish_decl): Use set_user_assembler_name even for
6313         register variables.
6314         * varasm.c (make_decl_rtl): If a register variable does not
6315         have a set user assmbler name, error out.
6316         Decode the asmspec is now name+1 bypassing '*'.
6318 2005-10-04  Steven Bosscher  <stevenb@suse.de>
6320         PR tree-optimization/23049
6321         * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
6322         of a COND_EXPR is folded before calling fold on the whole rhs of a
6323         conditional assignment.
6324         * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
6325         document that a COND_EXPR may appear there.
6327 2005-10-03  Diego Novillo  <dnovillo@redhat.com>
6329         PR 23445
6330         * tree-vrp.c (extract_range_from_assert): If the new numeric
6331         range created out of the assertion contradicts the existing
6332         numeric range of the ASSERT_EXPR variable, make the new range
6333         varying.
6335 2005-10-03  Kaz Kojima  <kkojima@gcc.gnu.org>
6337         * config/sh/sh.c (sh_register_move_cost): Add case for moving
6338         from T_REGS to FP register class.
6340 2005-10-03  Richard Henderson  <rth@redhat.com>
6342         PR 24135
6343         * tree-nested.c (convert_nl_goto_reference): Lookup a translation
6344         before creating a new one.
6346 2005-10-03  David Edelsohn  <edelsohn@gnu.org>
6348         * config/rs6000/t-aix43 (LDFLAGS): New.
6349         * config/rs6000/t-aix52 (LDFLAGS): New.
6351 2005-10-03  Ian Lance Taylor  <ian@airs.com>
6353         * gimplify.c (find_single_pointer_decl_1): New static function.
6354         (find_single_pointer_decl): New static function.
6355         (internal_get_tmp_var): For a formal variable, set restrict base
6356         information if appropriate.
6357         * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
6358         return it.
6359         * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
6360         (DECL_GET_RESTRICT_BASE): Define.
6361         (SET_DECL_RESTRICT_BASE): Define.
6362         (decl_restrict_base_lookup): Declare.
6363         (decl_restrict_base_insert): Declare.
6364         (struct tree_decl_with_vis): Add based_on_restrict_p field.
6365         * tree.c (restrict_base_for_decl): New static variable.
6366         (init_ttree): Initialize restrict_base_for_decl.
6367         (copy_node_stat): Copy restrict base information.
6368         (decl_restrict_base_lookup): New function.
6369         (decl_restrict_base_insert): New function.
6370         (print_restrict_base_statistics): New static function.
6371         (dump_tree_statistics): Call print_restrict_base_statistics.
6373 2005-10-02  Diego Novillo  <dnovillo@redhat.com>
6375         PR 24142
6376         * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
6377         case of anti-ranges.
6379 2005-10-02  Andrew Pinski  <pinskia@physics.uc.edu>
6381         PR c/18851
6382         * c-typeck.c (tagged_tu_seen): Rename to ...
6383         (tagged_tu_seen_cache): this and add val field.
6384         (comptypes): Move functional to comptypes_internal
6385         and free tagged_tu_seen.
6386         (comptypes_internal): New function and call comptypes_internal
6387         instead of comptypes. Speed up by sibcalling
6388         tagged_types_tu_compatible_p.
6389         (alloc_tagged_tu_seen): New function
6390         (free_all_tagged_tu_seen_up_to): New function.
6391         (tagged_types_tu_compatible_p): Return the val of the seen two
6392         types.
6393         Add that the two types are the same to tagged_tu_seen_base
6394         if they are and call comptypes_internal instead of comptypes.
6395         <case UNION_TYPE>: Speed up common type where the fields are
6396         in the same order.
6397         (function_types_compatible_p): Call comptypes_internal instead of
6398         comptypes.
6399         (type_lists_compatible_p): Likewise.
6400         (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
6402 2005-10-02  Matthias Klose  <doko@debian.org>
6404         * doc/invoke.texi: Fix typo and speling error.
6406 2005-10-01  Richard Henderson  <rth@redhat.com>
6408         * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
6410 2005-10-01  Mark Mitchell  <mark@codesourcery.com>
6412         * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
6413         using --start-group and --end-group.
6415 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
6417         * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
6418         FIXME note regarding quirky semantics.
6420 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
6422         PR 24141
6423         * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
6424         non-null range as a last resort.
6426 2005-10-01  James A. Morrison  <phython@gcc.gnu.org>
6427             Diego Novillo  <dnovillo@redhat.com>
6429         PR 23604
6430         * tree-vrp.c (extract_range_from_assert): For !=
6431         assertions, only build an anti-range if LIMIT is a
6432         single-valued range.
6434 2005-09-30  Richard Earnshaw  <richard.earnshaw@arm.com>
6436         * arm.md (movqi): On thumb when optimizing, handle loading from
6437         memory by describing this as taking a subreg of a zero-extended load
6438         into an SImode register.
6439         (movhi): Likewise.
6441 2005-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
6443         * reload1.c (merge_assigned_reloads): Do not change any
6444         RELOAD_FOR_OUTPUT_ADDRESS reloads.
6446 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
6448         * Makefile.in (LIPO_FOR_TARGET): Define.
6449         (STRIP_FOR_TARGET): Define.
6451         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
6452         before creating new ones.  Do symlinks before creating the actual
6453         targets.
6455         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
6456         to work out which multilibs are actually being built.
6458 2005-09-30  Kazu Hirata  <kazu@codesourcery.com>
6460         * tree-vect-transform.c, config/ms1/ms1.md,
6461         config/s390/s390.c, config/v850/v850.md: Fix comment typos.
6462         Follow spelling conventions.
6463         * doc/invoke.texi, doc/md.texi: Fix typos.
6465 2005-09-30  Andrew Macleod  <amacleod@redat.com>
6467         PR tree-optimization/21430
6468         * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
6469         use operands, and set stmt pointer if need be.
6470         (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
6471         tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
6472         present.
6474 2005-09-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6476         PR middle-end/24053
6477         * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
6479 2005-09-29  Mark Mitchell  <mark@codesourcery.com>
6481         * optabs.c (expand_binop): Initialize first_pass_p.
6483 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
6485         PR middle-end/24109
6486         * c-decl.c (c_write_global_declarations_1): If any
6487         wrapup_global_declaration_2 call returned true, restart the loop.
6489 2005-09-29  Daniel Berlin  <dberlin@dberlin.org>
6491         Fix PR tree-optimization/24117
6492         * tree-ssa-structalias.c (find_func_aliases): Strip nops
6493         before considering whether to use anyoffset.
6495 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
6497         Revert this patch:
6499         2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
6501         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
6502         to order operands.
6503         (swap_commutative_operands_with_target): New.
6505 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
6507         PR c/21419
6508         * gimplify.c (gimplify_asm_expr): Raise an error if an output is
6509         read-only.
6511 2005-09-29  Steven Bosscher  <stevenb@suse.de>
6513         PR tree-optimization/23911
6514         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
6515         and IMAGPART_EXPR too.
6517 2005-09-28  Mark Mitchell  <mark@codesourcery.com>
6519         PR 17886
6520         * expmed.c (expand_shift): Move logic to reverse rotation
6521         direction when rotating by constants ...
6522         * optabs.c (expand_binop): ... here.
6523         * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
6524         (ix86_rotrdi3): New pattern.
6525         (rotldi3): Handle 32-bit mode.
6526         (ix86_rotldi3): New pattern.
6528 2005-09-29  Alan Modra  <amodra@bigpond.net.au>
6530         PR target/24102
6531         * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
6532         check for numbers that need no bit twiddle.
6534 2005-09-28  Geoffrey Keating  <geoffk@apple.com>
6536         * config/rs6000/t-darwin8: Uncomment contents, allow -m64
6537         multilib to be built.
6539         * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
6540         (stage1-start): Delete old libgcc and libunwind before moving
6541         anything into the stage directory.
6542         (stage2-start): Likewise.
6543         (stage3-start): Likewise.
6544         (stage4-start): Likewise.
6545         (stageprofile-start): Likewise.
6546         (stagefeedback-start): Likewise.
6547         * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
6548         header in tm_file and CPU-specific t-darwin in tmake_file.
6549         (i[34567]86-*-darwin*): Don't change tm_file.
6550         (powerpc-*-darwin*): Don't change tm_file or tmake_file.
6551         * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
6552         shared library stub for target OS version.
6553         * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
6554         (SHLIB_LINK): Don't make SHLIB_SOLINK.
6555         (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
6556         (libgcc_s.%.dylib): New.
6557         (LIBGCC): Define.
6558         (install-darwin-libgcc-stubs): New.
6559         (INSTALL_LIBGCC): New append.
6560         * config/i386/darwin-libgcc.10.4.ver: New.
6561         * config/i386/darwin-libgcc.10.5.ver: New.
6562         * config/i386/t-darwin: New.
6563         * config/rs6000/darwin-libgcc.10.4.ver: New.
6564         * config/rs6000/darwin-libgcc.10.5.ver: New.
6565         * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
6566         * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
6568 2005-09-28  Paul Brook  <paul@codesourcery.com>
6570         * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
6571         denormals.
6573 2005-09-28  Richard Guenther  <rguenther@suse.de>
6575         PR tree-optimization/23853
6576         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
6577         host_integerp to verify misalignment value.
6579 2005-09-28  Richard Henderson  <rth@redhat.com>
6581         * builtins.c (get_builtin_sync_mode): New.
6582         (expand_builtin_sync_operation): Pass in mode argument.
6583         (expand_builtin_compare_and_swap): Likewise.
6584         (expand_builtin_lock_test_and_set): Likewise.
6585         (expand_builtin_lock_release): Likewise.
6586         (expand_builtin): Update to match.
6588 2005-09-28  Nick Clifton  <nickc@redhat.com>
6590         * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
6591         formatting.  Add check to PLUS case to ensure that the offset is
6592         within an acceptable range.
6594         * config/v850/v850.md (casesi): Disable the generation of the
6595         switch pattern as it is not being handled properly at the moment.
6597         * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
6598         for when the high words are identical.
6600 2005-09-27  Richard Henderson  <rth@redhat.com>
6602         * pretty-print.c (pp_base_format): Fix typo for %>.
6604 2005-09-27  Daniel Berlin  <dberlin@dberlin.org>
6605             Devang Patel  <dpatel@apple.com>
6607         PR tree-optimization/23625
6608         * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
6609         LABEL_EXPR, assertion check.
6611 2005-09-27  J"orn Rennecke <joern.rennecke@st.com>
6613         * optabs.c (no_conflict_move_test): Check if a result of a
6614         to-be-moved insn would be clobbered by an originally
6615         preceding insn.
6617 2005-09-27  Jeff Law  <law@redhat.com>
6619         * passes.c (init_optimization_passes): Replace copy propagation
6620         passes immediately after DOM with phi-only copy propagation
6621         pases.  Add phi-only copy propagation pass after first DOM pass.
6622         * tree-pass.h (pass_phi_only_copy_prop): Declare.
6623         * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
6624         If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
6625         (execute_copy_prop): Accept new PHI_ONLY argument.  Pass it along
6626         to init_copy_prop.  Callers updated.
6627         (do_phi_only_copy_prop): New function.
6628         (pass_phi_only_copy_prop): New pass descriptor.
6630 2005-09-27  Nick Clifton  <nickc@redhat.com>
6632         * libgcc2.c (__popcount_tab): Remove redundant prototype.
6634 2005-09-26  Jason Merrill  <jason@redhat.com>
6636         PR c++/13764
6637         * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
6639         * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
6641 2005-09-26  James E Wilson  <wilson@specifix.com>
6643         * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
6644         copyright.  Add gcc copyright plus libgcc exception.
6645         * config/ia64/crtfastmath.asm: Remove glibc copyright.  Add gcc
6646         copyright.
6647         * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
6649 2005-09-26  Jeff Law  <law@redhat.com>
6651         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
6652         about when to iterate.
6654 2005-09-23  Fariborz Jahanian <fjahanian@apple.com>
6656         PR target/23847
6657         * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
6658         for __complex__ double in -mcpu=G5 mode.
6660 2005-09-26  Sebastian Pop  <pop@cri.ensmp.fr>
6662         PR tree-optimization/23942
6663         * Makefile.in (SCEV_H): Depends on PARAMS_H.
6664         * tree-scalar-evolution.c: Include params.h.
6665         (t_bool): New enum.
6666         (follow_ssa_edge, follow_ssa_edge_in_rhs,
6667         follow_ssa_edge_in_condition_phi_branch,
6668         follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
6669         Change return type to t_bool.  Use a parameter to limit the size of
6670         trees that are walked before stopping
6671         (analyze_evolution_in_loop): Initialize the limit to 0.
6672         (follow_ssa_edge): Give up by returning t_dont_know if the limit
6673         exceeds PARAM_SCEV_MAX_EXPR_SIZE.
6675 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
6677         PR middle-end/23831
6678         * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
6679         simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
6681 2005-09-26    Fariborz Jahanian <fjahanian@apple.com>
6683         * combine.c (make_extraction): Check for valid use of subreg.
6685 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
6687         PR target/24055
6688         * config/i386/i386.md ("*fistdi2_1"): New pattern.
6689         ("*fist<mode>2_1"): Use only HImode and SImode register operands.
6690         ("fist<mode>2_with_temp"): Use only register operands.
6692 2005-09-26  J"orn Rennecke <joern.rennecke@st.com>
6694         * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
6695         CALL_INSN_FUNCTION_USAGE.
6697 2005-09-26  Richard Guenther  <rguenther@suse.de>
6699         PR middle-end/15855
6700         * gcse.c: Include hashtab.h, define ldst entry hashtable.
6701         (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
6702         (ldst_entry): Use the hashtable instead of list-walking.
6703         (find_rtx_in_ldst): Likewise.
6704         (free_ldst_entry): Free the hashtable.
6705         (compute_ld_motion_mems): Create the hashtable.
6706         (trim_ld_motion_mems): Remove entry from hashtable if
6707         removing it from list.
6708         (compute_store_table): Likewise^2.
6709         (store_motion): Free hashtable in case we did not see
6710         any stores.
6712 2005-09-25  Kazu Hirata  <kazu@codesourcery.com>
6714         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
6715         and arg1 if we are passing them to fold_build2.
6717 2005-09-25  Dan Nicolaescu  <dann@ics.uci.edu>
6719         PR 23828
6720         * config/i386/i386.c (ix86_function_regparm): Fix the test for
6721         a nested function.
6723 2005-09-25  Richard Henderson  <rth@redhat.com>
6725         * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
6726         SYMBOL_REF_TLS_MODEL to be correct.
6728 2005-09-24  Richard Henderson  <rth@redhat.com>
6730         * ipa-type-escape.c (discover_unique_type): Remove dead code at
6731         end of function.  Reindent.
6733 2005-09-24  Ian Lance Taylor  <ian@airs.com>
6735         * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
6736         NEGATE_EXPR/BIT_NOT_EXPR case.
6738 2005-09-24  Richard Henderson  <rth@redhat.com>
6740         * c-common.c (handle_mode_attribute): When not modifying in place,
6741         create subtypes for enumerations.
6742         (sync_resolve_return): Use TYPE_MAIN_VARIANT.
6743         * gimplify.c (create_tmp_from_val): Likewise.
6745 2005-09-24  Alexandre Oliva  <aoliva@redhat.com>
6747         * config/i386/i386.md (*tls_global_dynamic_64,
6748         *tls_local_dynamic_base_64): Add missing mode to call.
6749         (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
6751 2005-09-24  Jan Hubicka  <jh@suse.cz>
6753         * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
6754         (cgraph_clone_node): Likewise.
6755         * cgraph.h (cgraph_clone_edge): Update prototype.
6756         (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
6757         duplicated prototypes; add updating argument.
6758         * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
6759         * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
6760         updating profile.
6761         (cgraph_mark_inline_edge): Likewise.
6762         (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
6763         (cgraph_flatten_node): Likewise.
6764         (cgraph_decide_recursive_inlining): Likewise.
6765         (cgraph_decide_inlining_of_small_function): Likewise.
6766         * tree-optimize.c (tree_rest_of_compilation): Likewise.
6768 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
6769             Pete Steinmetz <steinmtz@us.ibm.com>
6771         * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
6772         (rldic.): Set type to "compare".
6773         (rldicr.): Same.
6774         (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR.  Set type to
6775         mfjmpr for MFCTR/MFLR.
6776         (movdf_hardfloat64): Same.
6777         (movdf_softfloat64): Same.  Correct order of store and move types.
6778         (movti_string): Set type to store_ux/load_ux.
6779         (load_multiple): Set type to load_ux.
6780         (store_multiple): Set type to store_ux.
6781         (movmemsi): Set type to store_ux.
6782         (output_cbranch direct_return): Set type to jmpreg.
6783         (stmw): Set type to store_ux.
6784         (lmw): Set type to load_ux.
6785         * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
6786         * config/rs6000/440.md (ppc440-store): Increase latency to 6.
6787         * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
6788         * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
6789         * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
6790         * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
6791         (rios1-fpstore): Increase latency to 3.
6792         * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
6793         * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
6795 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
6796             Andrew Pinski  <pinskia@physics.uc.edu>
6798         * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
6799         operand2 constraint to "b".
6800         (sync_<fetchop_name>di_internal): Same.
6801         (sync_old_<fetchop_name>si_internal): Change operand3 constraint
6802         to "b".
6803         (sync_old_<fetchop_name>di_internal): Same.
6804         (sync_new_<fetchop_name>si_internal): Same.
6805         (sync_new_<fetchop_name>di_internal): Same.
6807 2005-09-23  J"orn Rennecke <joern.rennecke@st.com>
6809         PR middle-end/23991
6810         * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
6811         case, define as macros.
6813         PR rtl-optimization/23837
6814         *  optabs.c (no_conflict_move_test): Don't set must_stay for a
6815         clobber / clobber match between dest and p->first.
6817         * optabs.c (emit_libcall_block): Use no_conflict_move_test.
6818         (no_conflict_move_test): Update comments.
6820 2005-09-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
6822         * doc/install.texi: Update URL for Jacks.
6823         * doc/sourcebuild.texi: Likewise.
6825 2005-09-22  David Edelsohn  <edelsohn@gnu.org>
6827         PR target/24007
6828         * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
6829         registers when choosing register preferences.
6830         (movdf_hardfloat64): Same.
6832 2005-09-22  Andreas Krebbel  <krebbel1@de.ibm.com>
6834         * expmed.c (expand_shift): Don't use the target of the rotate as
6835         target for the first expanded shift insn.
6837 2005-09-21  Zdenek Dvorak  <dvorakz@suse.cz>
6839         PR tree-optimization/22438
6840         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
6841         preserved iv rhs rewriting specially.
6843 2005-09-21  Daniel Berlin  <dberlin@dberlin.org>
6845         * tree-data-ref.c (analyze_array_indexes): Only estimate when
6846         estimate_only  is true.
6847         * tree-flow.h (ref_contains_indirect_ref): New prototype.
6848         * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
6849         tree-ssa-structalias.c
6850         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
6851         ref_contains_indirect_ref.
6852         * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
6854 2005-09-21  DJ Delorie  <dj@redhat.com>
6856         * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
6857         MASK_PTR_A0D0.
6858         (mn10300_return_in_memory): Support variable size types also.
6859         (mn10300_pass_by_reference): Likewise.
6860         (mn10300_function_value): New.
6861         * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
6862         (FUNCTION_OUTGOING_VALUE): Likewise.
6863         * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
6864         * doc/invoke.texi: Document it.
6866 2005-09-21  Uros Bizjak  <uros@kss-loka.si>
6868         PR target/22585
6869         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
6870         force integer op1 into register for XFmode compares.
6872 2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
6874         PR middle-end/23971
6875         * expmed.c (alg_code): Add alg_impossible.
6876         (alg_hash_entry): Add cost.
6877         (synth_mult): Record alg_impossible in the hash table if
6878         multiplication by a given integer is impossble within the
6879         limit.  Speed up using alg_impossible.
6881 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
6883         * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
6884         argument.  Allow and set any offset if needs_anyoffset is passed
6885         in.
6886         (get_constraint_for): Add argument here too.
6887         Pass it down.
6888         (do_structure_copy): Pass NULL to get_constraint_for.
6889         (handle_ptr_arith): Ditto.
6890         (find_func_aliases): Ditto.
6892 2005-09-20  J"orn Rennecke <joern.rennecke@st.com>
6894         PR rtl-optimization/23898
6895         * output.h (get_attr_min_length): Declare.
6896         * final.c (get_attr_length_1): New function, broken out of:
6897         (get_attr_length).
6898         (get_attr_min_length): New function.
6899         * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
6900         (duplicate_computed_gotos): Likewise.
6901         * genattr.c (insn_min_length): Generate declaration.
6902         * genattrtab.c (min_fn, min_attr_value): New functions.
6903         (make_length_attrs): Generate insn_min_length.
6905 2005-09-20  Steve Ellcey  <sje@cup.hp.com>
6907         * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
6909 2005-09-20  Richard Henderson  <rth@redhat.com>
6911         PR tree-optimization/24059
6912         * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
6913         EXPAND_STACK_PARM.
6915 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
6917         * c.opt (fextended-identifiers): New.
6918         * c-opts.c (c_common_handle_option): Handle
6919         -fextended-identifiers.
6920         * doc/cpp.texi: Update documentation of extended identifiers.
6921         * doc/cppopts.texi (-fextended-identifiers): Document.
6923 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
6925         PR tree-optimization/23929
6926         * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
6927         if expr is NULL.
6929         PR tree-optimization/23818
6930         * tree-stdarg.c (execute_optimize_stdarg): Call
6931         calculate_dominance_info.
6933 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
6935         * tree-data-ref.c (get_number_of_iters_for_loop): New function.
6936         (analyze_siv_subscript_cst_affine): Add weak SIV test.
6937         (compute_overlap_steps_for_affine_1_2): Use
6938         get_number_of_iters_for_loop.
6939         (analyze_subscript_affine_affine): Check whether difference is
6940         zero first.
6941         Use get_number_of_iters_for_loop.
6942         Check whether overlap occurs outside of bounds.
6943         (analyze_miv_subscript): Use get_number_of_iters_for_loop.
6945 2005-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
6947         * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
6948         base register if possible.
6950 2005-09-20  Zdenek Dvorak  <dvorakz@suse.cz>
6952         PR tree-optimization/18463
6953         * tree-chrec.c (chrec_convert): Return fold_converted chrec if
6954         converting it directly is not possible.
6955         (chrec_convert_aggressive): New function.
6956         * tree-chrec.h (chrec_convert_aggressive): Declare.
6957         * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
6958         Fold chrec conversions aggressively if asked to.
6959         (instantiate_parameters): Modified because of changes in
6960         instantiate_parameters_1.
6962 2005-09-19  Richard Henderson  <rth@redhat.com>
6964         * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
6965         (reduc_splus_v2df): New.
6967 2005-09-19  Richard Sandiford  <richard@codesourcery.com>
6969         * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
6970         (ADDITIONAL_REGISTER_NAMES): Add missing comma.  Remove final comma.
6972 2005-09-19  Richard Henderson  <rth@redhat.com>
6974         * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
6975         vcondu<SSEMODE12>.
6977 2005-09-19  Richard Henderson  <rth@redhat.com>
6979         * config/ia64/ia64.c (ia64_expand_widen_sum): New.
6980         (ia64_expand_dot_prod_v8qi): New.
6981         * config/ia64/ia64-protos.h: Update.
6982         * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
6983         widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
6984         sdot_prodv8qi, sdot_prodv4hi): New.
6985         (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
6987 2005-09-19  Richard Henderson  <rth@redhat.com>
6989         PR 23941
6990         * real.c (exact_real_truncate): Return false if the format cannot
6991         represent the number as a normal.
6993         * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
6994         for a memory source.
6996 2005-09-19  Dorit Nuzman  <dorit@il.ibm.com>
6998         * tree-ssa-operands.c (swap_tree_operands): Export.
6999         * tree.h (swap_tree_operands): Declare.
7000         * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
7001         Call swap_tree_operands.
7003 2005-09-19  Richard Henderson  <rth@redhat.com>
7005         * tree-flow.h (merge_alias_info): Declare.
7006         * tree-ssa-copy.c (merge_alias_info): Export.
7007         * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
7008         (vect_create_data_ref_ptr): Use create_iv directly.
7009         (vectorizable_load): Use correct types for integer constants.
7010         (vect_generate_tmps_on_preheader): Likewise.
7011         (vect_gen_niters_for_prolog_loop): Likewise.
7013 2005-09-19  Steven Bosscher  <stevenb@suse.de>
7015         PR rtl-optimization/23943
7016         * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
7018 2005-09-18  Jan Hubicka  <jh@suse.cz>
7020         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
7022 2005-09-18  Eric Botcazou  <ebotcazou@adacore.com>
7024         * varasm.c (output_constant): Do not abort on conversions to union
7025         types between different sizes.
7027 2005-09-18  Richard Guenther  <rguenther@suse.de>
7029         PR middle-end/23944
7030         * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
7031         fallback.
7033 2005-09-18  Paul Brook  <paul@codesourcery.com>
7035         * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
7037 2005-09-17  Richard Henderson  <rth@redhat.com>
7039         * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
7040         * tree-ssa-loop.c (pass_vect_dce): Remove.
7041         * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
7042         of pass_vectorize.
7044 2005-09-17  Richard Henderson  <rth@redhat.com>
7046         * tree-pass.h (pass_vect_dce): Declare.
7047         * passes.c (init_optimization_passes): Add it.
7048         * tree-flow.h (tree_ssa_dce): Declare.
7049         * tree-ssa-dce.c (tree_ssa_dce): Export.
7050         * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
7051         (gate_tree_vectorize): ... here.
7052         (pass_vect_dce): New.
7054 2005-09-17  Jan Hubicka  <jh@suse.cz>
7056         * except.c (struct eh_status): Turn region_array into vec.
7057         (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
7058         convert_from_eh_region_ranges, find_exception_handler_labels,
7059         current_function_has_exception_handlers, assign_filter_values,
7060         build_post_landing_pads, dw2_build_landing_pads,
7061         sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
7062         sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
7063         foreach_reachable_handler, can_throw_internal_1,
7064         convert_to_eh_region_ranges, verify_eh_tree): Update uses of
7065         region_array.
7066         (duplicate_eh_region_1): Update region_array.
7067         (duplicate_eh_regions): Resize region_array and avoid recomputing.
7069 2005-09-17  David Edelsohn  <edelsohn@gnu.org>
7071         PR middle-end/22067
7072         * expmed.c (expand_mult): Substitute simple register for op0 when
7073         computing max_cost.
7075 2005-09-17  Richard Henderson  <rth@redhat.com>
7077         * expr.c (emit_move_via_integer): Add force argument, pass it on
7078         to emit_move_change_mode.  Update callers.
7079         (emit_move_complex): Pass true to new force argument.
7080         * function.c (expand_function_end): Move expand_eh_return call
7081         earlier.  Merge sub-word complex values into a pseudo before
7082         copying to the return hard register.
7084 2005-09-17  Eric Botcazou  <ebotcazou@adacore.com>
7086         * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
7087         between different sizes.
7089 2005-09-16  Paolo Bonzini  <bonzini@gnu.org>
7091         PR 23903
7093         * passes.c (init_optimization_passes): Register dump files for
7094         IPA passes first.
7096 2005-09-16  Andreas Krebbel  <krebbel1@de.ibm.com>
7098         * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
7099         * config/s390/s390.c (s390_overlap_p): New function.
7100         * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
7101         peephole2, "*xc" peephole2): Added overlap check to the peephole2
7102         condition.
7104 2005-09-16  Richard Guenther  <rguenther@suse.de>
7106         * ipa-pure-const.c (static_execute): Free auxiliar information.
7107         * ipa-type-escape.c (discover_unique_type): Free temporary key.
7108         * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
7110 2005-09-15  DJ Delorie  <dj@redhat.com>
7112         * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
7114 2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
7116         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
7117         to order operands.
7118         (swap_commutative_operands_with_target): New.
7120 2005-09-15  Daniel Berlin  <dberlin@dberlin.org>
7122         * tree-data-ref.c (analyze_array_indexes): Add estimate_only
7123         parameter.
7124         Update callers.
7125         (estimate_iters_using_array): New function.
7126         * tree-data-ref.h (estimate_iters_using_array): Prototype
7127         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
7128         Use estimate_iters_using_array instead of analyze_array.
7130 2005-09-15  Eric Botcazou  <ebotcazou@adacore.com>
7132         * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
7133         as addressable.
7135 2005-09-15  Michael Matz  <matz@suse.de>
7137         * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
7139 2005-09-14  Daniel Berlin  <dberlin@dberlin.org>
7141         PR tree-optimization/23835
7142         * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
7143         (create_name_tags): Rewrite to be not O(num_ssa_names^2).
7145 2005-09-14  Richard Henderson  <rth@redhat.com>
7147         * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
7148         (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
7150 2005-09-14  Andrew Pinski  <pinskia@physics.uc.edu>
7152         * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
7153         in the ARRAY_TYPE case.
7155 2005-09-14  Eric Botcazou  <ebotcazou@adacore.com>
7157         * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
7159 2005-09-14  Uros Bizjak  <uros@kss-loka.si>
7161         PR middle-end/22480
7162         * tree-vect-transform.c (vectorizable_operation): Return false for
7163         scalar shift operations and for vector shift operations with
7164         non-invariant shift arguments.  Use scalar tree operand op1 as
7165         a shift operand when vector shift insn pattern uses scalar shift
7166         operand.
7167         * Makefile.in (tree-vect-transform.o): Depend on recog.h.
7169 2005-09-14  Olivier Hainque  <hainque@adacore.com>
7171         * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
7172         value if it has side-effects.
7174 2005-09-14  David Edelsohn  <edelsohn@gnu.org>
7176         PR target/22068
7177         * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
7179 2005-09-14  Alan Modra  <amodra@bigpond.net.au>
7181         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
7182         passed as NAME as if it were label at start of function code.
7184 2005-09-13  Kaz Kojima  <kkojima@gcc.gnu.org>
7186         * config/sh/sh.md (*movv4sf_i): Add general register cases to
7187         the constraints.
7189 2005-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
7191         * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
7192         as early clobber.  Rewrite so the PIC register is not implicitly used.
7194 2005-09-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7196         * tree.c (annotate_with_file_line): Compare line numbers before
7197         file names.
7199 2005-09-13  Uros Bizjak  <uros@kss-loka.si>
7201         PR target/23816
7202         * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
7203         (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
7205 2005-09-13  Ian Lance Taylor  <ian@airs.com>
7207         * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
7208         than a HOST_WIDEST_INT to gen_doloop_begin.
7210 2005-09-13  Diego Novillo  <dnovillo@redhat.com>
7212         * tree-dfa.c (dump_variable): Guard against NULL annotations.
7214 2005-09-13  Zdenek Dvorak  <dvorakz@suse.cz>
7216         PR tree-optimize/23817
7217         * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
7219 2005-09-13  Alan Modra  <amodra@bigpond.net.au>
7221         PR target/23774
7222         * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
7223         word before changing the stack pointer.  Use gen_frame_mem for MEMs.
7224         Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
7225         (restore_stack_nonlocal): Likewise.
7226         (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
7228 2005-09-12  Ian Lance Taylor  <ian@airs.com>
7230         PR g++/7874
7231         * c.opt (ffriend-injection): New C++ option.
7232         * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
7233         (C++ Dialect Options): Document -ffriend-injection.
7235 2005-09-12  Josh Conner  <jconner@apple.com>
7237         PR middle-end/23237
7238         * ipa-reference.c (static_execute): Don't mark variables in
7239         named sections TREE_READONLY.
7241 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
7243         * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
7244         stack_tie.
7246 2005-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
7248         * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
7249         V_MUST_DEF instead of just the first_use_p.
7250         Don't mark the virtual variables for renaming on the statement which
7251         is being removed.
7252         (pass_dse): Remove TODO_update_ssa.
7254 2005-09-12  J"orn Rennecke <joern.rennecke@st.com>
7256         PR middle-end/23290
7257         * stor-layout.c (compute_record_mode): For records with a single
7258         field, actually check the field's mode size against the type size.
7260         * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
7261         registers for TARGET_SHMEDIA.
7262         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
7263         GENERAL_FP_REGS to GENERAL_DF_REGS.  Add GENERAL_FP_REGS as union
7264         of GENERAL_REGS and FP_REGS.
7266 2005-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
7268         * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
7270 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
7272         * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
7273         CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
7274         are omitted.  Exclude stack_tie insn too.
7276 2005-09-11  David Edelsohn  <edelsohn@gnu.org>
7278         PR rtl-optimization/23098
7279         * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
7280         0.0f is easy.
7281         * config/rs6000/rs6000.md (movdf splitter): Use
7282         const_double_operand predicate for TARGET_POWERPC64.
7283         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
7284         SYMBOL_REF method to ABI_V4.
7286         * config/rs6000/altivec.md (build_vector_mask_for_load): Use
7287         replace_equiv_address.
7288         * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
7289         rs6000_sr_alias_set and MEM_NOTRAP.
7290         (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
7292 2005-09-11  Eric Botcazou  <ebotcazou@adacore.com>
7294         * tree.c (contains_placeholder_p) <tcc_expression>: Properly
7295         handle CALL_EXPR again.
7297 2005-09-11  Richard Earnshaw  <richard.earnshaw@arm.com>
7299         * arm/predicates.md (alignable_memory_operand): Delete.
7301 2005-09-10  Richard Henderson  <rth@redhat.com>
7303         PR debug/23806
7304         * dbxout.c (dbxout_expand_expr): New.
7305         (dbxout_symbol): Use it.
7307 2005-09-10  Richard Earnshaw  <richard.earnshaw@arm.com>
7309         * arm.c (arm_gen_rotated_half_load): Delete.
7310         (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
7311         (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
7312         (thumb_set_return_address): Likewise.
7313         (thumb_load_double_from_address): Use adjust_address.
7314         * arm.md (splits calling arm_gen_rotated_half_load): Delete.
7315         (extendhsisi2_mem, movhi_bytes): Use change_address.
7316         (movhi): Use widen_memory_access.
7317         (reload_out_df): Use replace_equiv_address.
7318         * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
7320 2005-09-09  Richard Henderson  <rth@redhat.com>
7322         PR debug/20998
7323         * dbxout.c: Include expr.h.
7324         (dbxout_global_decl): Don't suppress for DECL_RTL unset.
7325         (dbxout_symbol): Handle DECL_VALUE_EXPR.
7326         * Makefile.in (dbxout.o): Add EXPR_H.
7328 2005-09-09  Zdenek Dvorak  <dvorakz@suse.cz>
7330         PR tree-optimization/23509
7331         * tree-cfg.c (replace_uses_by): Use replace_exp.
7332         * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
7333         pointers have name_mem_tag or type_mem_tag set.
7335 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
7337         * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
7338         CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
7339         of wrongly accessing operands.
7341 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
7343         * Makefile.in (tree-chrec.o): Depends on SCEV_H.
7344         * tree-chrec.c: Include tree-scalar-evolution.h.
7345         (chrec_convert): Instantiate the base and step before calling
7346         scev_probably_wraps_p that would fail on parametric evolutions.
7347         Collect all the fails into a single section failed_to_convert,
7348         print a diagnostic, and return chrec_dont_know instead of calling
7349         fold_convert.
7350         * tree-scalar-evolution.c (loop_closed_phi_def): New.
7351         (instantiate_parameters_1): Avoid instantiation of loop closed ssa
7352         phi nodes.
7353         (scev_const_prop): Don't replace the definition of a loop closed ssa
7354         phi node by itself, or by another loop closed ssa phi node.
7355         * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
7356         that base and step are defined.
7358 2005-09-09  Richard Guenther  <rguenther@suse.de>
7360         PR c++/23624
7361         * fold-const.c (fold_ternary): Check truth_value_p before
7362         calling invert_truthvalue.
7364 2005-09-09  Nick Clifton  <nickc@redhat.com>
7366         * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
7367         * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
7368         dimension of these arrays.
7369         * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
7370         these arrays.
7371         * longlong.h: Only provide a prototype for the __clz_tab[] array
7372         if this header has not been included from libgcc2.h.
7373         * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
7374         defining own types.
7375         Provide prototypes for exported functions.
7376         Use the __clz_tab[] and __popcount_tab[] arrays provided by
7377         libgcc2.c.
7379 2005-09-08  Josh Conner  <jconner@apple.com>
7381         PR c++/21135
7382         PR c++/23180
7383         * expr.c (expand_expr_addr_expr_1): Don't invoke
7384         expand_simple_binop for EXPAND_INITIALIZER.
7386 2005-09-08  Richard Henderson  <rth@redhat.com>
7388         PR debug/23190
7389         * toplev.c (wrapup_global_declaration_1): Split out ...
7390         (wrapup_global_declaration_2): ... from ...
7391         (wrapup_global_declarations): ... here.  Return bool.
7392         (check_global_declaration_1): Split out ...
7393         (check_global_declarations): from here.
7394         (emit_debug_global_declarations): New.
7395         * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
7396         check_global_declaration_1, emit_debug_global_declarations): Declare.
7397         * c-decl.c (c_write_global_declarations_1): Don't create a vector
7398         of decls.  Call wrapup_global_declaration_1,
7399         wrapup_global_declaration_2, check_global_declaration_1 directly.
7400         (c_write_global_declarations_2): New.
7401         (ext_block): New.
7402         (c_write_global_declarations): Call c_write_global_declarations_2.
7403         * langhooks.c (write_global_declarations): Call
7404         emit_debug_global_declarations.
7406         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
7407         remove decls that have DECL_RTL_SET_P.
7408         * passes.c (rest_of_decl_compilation): Invoke
7409         cgraph_varpool_finalize_decl for all but functions.
7411 2005-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
7413         * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
7414         the result of a conversion if the new min and max cannot be compared.
7416 2005-09-08  Andreas Krebbel  <krebbel1@de.ibm.com>
7418         * config/s390/s390.c (s390_sr_alias_set): Variable removed.
7419         (override_options): Setting s390_sr_alias_set removed.
7420         (save_fpr, save_gprs): Set alias set to vararg or frame.
7421         (restore_fpr, restore_gprs, s390_emit_prologue): Replace
7422         s390_sr_alias_set with get_frame_alias_set ().
7423         (s390_gimplify_va_arg): Replace s390_sr_alias_set with
7424         get_varargs_alias_set ().
7426 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
7428         PR objc/20574
7429         PR objc/19324
7430         * c-parser.c (c_parser_objc_method_definition): If the next
7431         token is not "{", error out and don't start the function.
7433 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
7435         * tree-vrp.c (extract_range_from_expr): Move the check for non
7436         nullness after the check for gimple invariant.
7438 2005-09-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7440         * tree.c (host_integerp, tree_low_cst): Correct function comment.
7442 2005-09-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7444         PR target/23747
7445         * config/m32r.md (movmemsi_internal): Canonicalize order of
7446         operands in PLUS component of template.
7448 2005-09-07  Andreas Krebbel  <krebbel1@de.ibm.com>
7450         * reload1.c (fixup_eh_region_note): Remove assertion.
7451         (fixup_abnormal_edges): Reverted removal of call to
7452         find_many_sub_basic_blocks made on 2005-08-31.
7454 2005-09-07  Richard Henderson  <rth@redhat.com>
7456         * function.c (ARG_POINTER_CFA_OFFSET): Move ...
7457         * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
7458         (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
7459         * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
7460         rearrange for better packing.
7461         (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
7462         (lookup_cfa_1): Remove inline marker.
7463         (cfa_equal_p): Split out of ...
7464         (def_cfa_1): ... here.  Use INVALID_REGNUM.
7465         (build_cfa_loc): Handle !cfa->indirect.
7466         (frame_pointer_cfa_offset): New.
7467         (dbx_reg_number): Assert register elimination performed; do
7468         leaf register remapping.
7469         (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
7470         (eliminate_reg_to_offset): New.
7471         (based_loc_descr): Remove can_use_fbreg argument.  Use fbreg only
7472         for verifiably local stack frame addresses; re-base to CFA.
7473         (mem_loc_descriptor): Remove can_use_fbreg argument.
7474         (concat_loc_descriptor, loc_descriptor): Likewise.
7475         (containing_function_has_frame_base): Remove.
7476         (rtl_for_decl_location): Don't do register elimination or
7477         leaf register remapping here.
7478         (secname_for_decl): Split out from ..
7479         (add_location_or_const_value_attribute): ... here.
7480         (convert_cfa_to_loc_list): New.
7481         (compute_frame_pointer_to_cfa_displacement): New.
7482         (gen_subprogram_die): Use them.
7483         * tree.h (frame_base_decl): Remove.
7484         * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
7485         (prologue_stack_adjust): Remove.
7486         (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
7487         (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
7488         (set_frame_base_location): Remove.
7489         (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
7490         (dump_attrs_list, dump_dataflow_set): Use string concatenation.
7491         (vt_add_function_parameters): Don't eliminate_regs.
7492         (vt_initialize): Don't create frame_base_decl.
7494 2005-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
7496         * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
7497         version of GNU binutils for 4.x and later.
7499 2005-09-06  Mark Mitchell  <mark@codesourcery.com>
7501         * ggc-page.c (ggc_push_context): Remove.
7502         (ggc_pop_context): Likewise.
7503         * ggc.h (ggc_push_context): Remove.
7504         (ggc_pop_context): Likewise.
7506 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
7508         PR target/8973
7509         * config/arc/arc.c (arc_output_function_epilogue): Update flags while
7510         returning from an interrupt handler.
7512 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
7514         PR target/8972
7515         * config/arc/arc.c (output_shift): Add check for loop count when
7516         optimizing.
7518 2005-09-06  Steven Bosscher  <stevenb@suse.de>
7520         * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
7521         form manually.
7522         (abs_replacement): Likewise.
7523         (pass_phiopt): Remove TODO_update_ssa.
7525 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
7527         PR c/23075
7528         * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
7529         if "return with no value, in function returning non-void" warning
7530         has been issued.
7531         * tree-cfg.c (execute_warn_function_return): Don't look at
7532         RETURN_EXPRs with TREE_NO_WARNING set.
7534         PR target/22362
7535         * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
7536         for internal functions doesn't use registers used by global registers
7537         variables.  Use fewer register parameters if there are global register
7538         variables.
7540 2005-09-06  Olivier Hainque  <hainque@adacore.com>
7541             Eric Botcazou  <ebotcazou@adacore.com>
7543         PR middle-end/14997
7544         * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
7545         when we would be extracting outside its bit span (bitpos+bitsize
7546         larger than its mode), possible with some VIEW_CONVERT_EXPRs from
7547         Ada unchecked conversions.
7549 2005-09-06  Steven Bosscher  <stevenb@suse.de>
7551         * tree-ssa-pre.c (try_look_through_load): New function.
7552         (compute_avail): Use it to try to look through loads for some
7553         more useful expressions.
7555 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
7557         * simplify-rtx.c (simplify_binary_operation_1): Correct the
7558         condition for detecting cases like (a&a) and (a^a).
7560 2005-09-06  Keith Besaw  <kbesaw@us.ibm.com>
7562         * common.opt: Add option ftree-vect-loop-version.
7563         * params.def: Add --param vect-max-version-checks.
7564         * doc/invoke.texi: Document ftree-vect-loop-version and
7565         --param vect-max-version-checks.
7566         * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
7567         may_misalign_stmts and defines for accessors.
7568         * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
7569         LOOP_VINFO_MAY_MISALIGN_STMTS.
7570         (destroy_loop_vec_info): VEC_free for
7571         LOOP_VINFO_MAY_MISALIGN_STMTS.
7572         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
7573         Update documentation.
7574         (vect_update_misalignment_for_peel): New.
7575         (vect_enhance_data_refs_alignment): Update to choose loop
7576         peeling or loop versioning if appropriate for the (potentially)
7577         unaligned data references in the loop.
7578         (vect_analyze_data_refs_alignment): Remove call to
7579         vect_enhance_data_refs_alignment so the checks can be done
7580         earlier.
7581         (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
7582         and move up call to vect_analyze_data_refs_alignment.
7583         * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
7584         (vect_transform_loop): Add call to loop_version.
7586 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
7588         PR rtl-optimization/23098
7589         * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
7590         * simplify-rtx.c (constant_pool_reference_p): New function.
7591         * rtl.h (constant_pool_reference_p): New prototype.
7592         * config/i386/i386.md (pushf split, mov[sdx]f split): Use
7593         constant_pool_reference_p in condition and
7594         avoid_constant_pool_reference in preparation statements.
7596 2005-09-06  Andreas Krebbel  <krebbel1@de.ibm.com>
7598         * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
7599         STRICT_LOW_PART SETs.
7601 2005-09-06  Alan Modra  <amodra@bigpond.net.au>
7603         PR middle-end/21460
7604         * except.c (sjlj_emit_function_enter): Find the function begin
7605         note even when it's not in first basic block.
7607 2005-09-06  Kelley Cook  <kcook@gcc.gnu.org>
7609         * acinclude.m4: Renamed from aclocal.m4.  Delete AM_LANGINFO_CODESET,
7610         AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
7611         * aclocal.m4: Regenerate.
7613 2005-09-05  DJ Delorie  <dj@redhat.com>
7615         * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
7616         of macro.
7618 2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
7620         * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
7621         config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
7622         config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
7623         Follow spelling conventions.
7624         * doc/invoke.texi: Follow spelling conventions.
7626 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
7628         * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
7629         * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
7630         * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
7632 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
7634         PR target/23683
7635         * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
7636         (output_stack_adjust): Use gen_tmp_stack_mem.
7637         (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
7638         (sh_set_return_address, sh_allocate_initial_value): Likewise.
7639         (sh_get_pr_initial_val): Likewise.
7640         (sh_builtin_saveregs): Use gen_frame_mem and change_address.
7641         (sh_initialize_trampoline): Likewise.  Also use adjust_address.
7642         * sh.md (divsi_inv_m0): Use gen_const_mem.
7643         (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
7644         (movdf_i4+1): Use gen_tmp_stack_mem.
7645         (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
7646         (fpu_switch+2): Likewise.
7647         (movv4sf_i, movv16sf_i): Use adjust_address.
7648         (symGOT_load): Set MEM_NOTRAP_P bit.
7650 2005-09-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7652         PR target/23721
7653         * pa.c (emit_move_sequence): Fix typo in last change.
7655 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
7657         PR rtl-optimization/23454
7658         * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
7659         is true.
7661 2005-09-03  Richard Henderson  <rth@redhat.com>
7662             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7664         PR middle-end/23671
7665         * pa.c (emit_move_sequence): Use replace_equiv_address instead of
7666         gen_rtx_MEM.
7668 2005-09-02  Nicolas Pitre <nico@cam.org>
7670         * config/arm/arm.c (arm_legitimize_address): Limit the value passed
7671         to bit_count to 32 bits.
7673 2005-08-31  Mark Mitchell  <mark@codesourcery.com>
7675         PR c++/23167
7676         * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
7677         generating synthetic loads from volatile lvalues.
7679 005-09-02  Nick Clifton  <nickc@redhat.com>
7681         * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
7682         __ctzhi2, __clzhi2): New functions.
7684 2005-09-02  Andrew Pinski  <pinskia@physics.uc.edu>
7686         PR middle-end/23547
7687         * tree-nested.c (struct var_map_elt): Mark with GTY.
7688         (struct nesting_info): Mark with GTY.  Mark var_map's param is struct
7689         var_map_elt.
7690         (lookup_field_for_decl): Allocate new element in GC memory.
7691         (lookup_tramp_for_decl): Likewise.
7692         (convert_nl_goto_reference): Likewise
7693         (create_nesting_tree): Allocate info in GC memory. Likewise for
7694         info->var_map.
7695         (free_nesting_tree): Free with ggc_free instead of free.
7696         (root): New static variable.
7697         (lower_nested_functions): Remove root as local variable.  And zero out
7698         root at the end of the function.
7700 2005-09-02  J"orn Rennecke <joern.rennecke@st.com>
7702         PR rtl-optimization/20365
7703         * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
7704         to short.  New member ix.
7705         (simplify_plus_minus_op_data_cmp): Break ties using ix member.
7706         (simplify_plus_minus): Initialize ix members before calling qsort.
7708 2005-09-02  Zdenek Dvorak  <dvorakz@suse.cz>
7710         PR tree-optimization/23626
7711         * tree-cfg.c (replace_uses_by): Clean up eh info.
7713 2005-09-01  DJ Delorie  <dj@redhat.com>
7715         * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
7716         fprintf.
7718 2005-09-01  David Edelsohn  <edelsohn@gnu.org>
7720         * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
7721         (rs6000_split_multireg_move): Use replace_equiv_address instead of
7722         gen_rtx_MEM.
7724 2005-09-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7726         * c-decl.c (diagnose_mismatched_decls): With -Wredundant-decls,
7727         do not issue warning for a variable definition following
7728         a declaration.
7730 2005-09-01  Richard Henderson  <rth@redhat.com>
7732         PR 23668
7733         * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
7734         conversion to CONST_VECTOR.
7736 2005-09-01  Richard Henderson  <rth@redhat.com>
7738         PR 23676
7739         * reload1.c (reload_as_needed): Check !CALL_P before calling
7740         fixup_eh_region_note.
7741         * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
7743 2005-09-01  DJ Delorie  <dj@redhat.com>
7745         * varasm.c (output_constant): Let the target resolve
7746         conversions of addresses to non-default pointer sizes.
7748 2005-09-01  Nicolas Pitre <nico@cam.org>
7750         * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
7751         to alow matching ARM pre-indexed addressing mode.
7752         (arm_override_options): Remove now irrelevant comment.
7754 2005-09-01  Phil Edwards  <phil@codesourcery.com>
7756         * config.gcc (i*86-wrs-vxworks): Update.  Split out vxworksae target.
7757         * config/i386/t-vxworks: Update multilibs for VxWorks 6 and RTP mode.
7758         * config/i386/vxworks.h: Likewise.
7759         * config/i386/t-vxworksae: New file, for VxWorks AE.
7760         * config/i386/vxworksae.h: Likewise.
7762 2005-09-01  Sebastian Pop  <pop@cri.ensmp.fr>
7764         PR tree-optimization/23410
7765         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
7766         sequence is not wrapping during the first step.
7768 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
7770         PR debug/7241
7771         * dwarf2out.c (base_type_die): Compare char_type_node with
7772         TYPE_MAIN_VARIANT (type), not type.
7774 2005-09-01  Richard Guenther  <rguenther@suse.de>
7776         PR tree-optimization/15366
7777         * common.opt: Add -finline-functions-called-once.
7778         Put -fearly-inlining in alphabetically ordered place.
7779         * doc/invoke.texi: Document new option.
7780         * ipa-inline.c (cgraph_decide_inlining): Honour
7781         flag_inline_functions_called_once.
7783 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
7785         PR rtl-optimization/23478
7786         * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
7787         (alloc_qty): Initialize it.
7788         (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
7789         (combine_regs): Combine also n_throwing_calls_crossed fields.
7790         (find_free_reg): Don't attempt to caller-save pseudos crossing
7791         calls that might throw.
7792         * global.c (struct allocno): Add throwing_calls_crossed field.
7793         (global_alloc): Revert 2005-08-22 change.  Initialize
7794         throwing_calls_crossed.
7795         (find_reg): Don't attempt to caller-save pseudos crossing calls that
7796         might throw.
7798 2005-09-01  Alan Modra  <amodra@bigpond.net.au>
7800         PR target/23649
7801         * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
7802         (mask64_operand): Reinstate code prior to 2005-06-11 change.
7803         (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
7804         (and64_2_operand): Tweak to use predicate.
7805         (and_operand): Adjust for mask_operand changes.
7806         * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
7807         (print_operand): Likewise.
7808         (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
7809         (mask64_1or2_operand): Delete.
7810         * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
7811         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
7812         (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
7813         (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
7814         * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
7815         (rotldi3_internal4): Likewise.
7816         (rotldi3_internal5, rotldi3_internal5 split): Likewise.
7817         (rotldi3_internal6, rotldi3_internal6 split): Likewise.
7818         (ashldi3_internal7): Likewise.
7819         (ashldi3_internal8, ashldi3_internal8 split): Likewise.
7820         (ashldi3_internal, ashldi3_internal9 split): Likewise.
7821         (anddi3 split): Don't match mask64_operand.
7822         (anddi3_internal2): Add rlwinm.  Modify 't' splitter predicate.
7823         (anddi3_internal3): Add rlwinm.  Use and64_2_operand in non-cr0
7824         splitter and match TARGET_64BIT not TARGET_POWERPC64.  Modify
7825         't' splitter predicate.
7826         (movdi_internal64 + 2): Revert 2005-06-11 change.
7828 2005-08-31  DJ Delorie  <dj@redhat.com>
7830         * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
7831         (m32c_asm_integer): Add support for 32 bit pointers.
7833 2005-08-31  Richard Henderson  <rth@redhat.com>
7835         * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
7836         component-like references for setting MEM_NOTRAP_P.
7838         * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
7839         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
7841 2005-08-31  Richard Henderson  <rth@redhat.com>
7843         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
7844         into a pseudo before applying gen_lowpart.
7846 2005-08-31  Geoffrey Keating  <geoffk@apple.com>
7848         * doc/install.texi (Specific): Update cctools version required
7849         for full functionality.
7850         * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
7851         linkers as -macosx_version_min.
7853 2005-08-31  J"orn Rennecke <joern.rennecke@st.com>
7855         PR target/21255
7856         * sh.c (print_operand, %R and %S): Add handling of floating point
7857         registers, memory, constants and invalid operands.
7859 2005-08-31  Daniel Berlin  <dberlin@dberlin.org>
7861         * ipa-pure-const.c: Change dump name.
7863 2005-08-31 Uros Bizjak <uros@kss-loka.si>
7865         PR target/23570
7866         * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
7867         to "reg_or_0_operand".
7868         (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
7870 2005-08-31  Dale Johannesen  <dalej@apple.com>
7872         * loop-iv.c (iv_number_of_iterations): Fix overflow check for
7873         loops that count down.
7875 2005-08-31  Richard Henderson  <rth@redhat.com>
7877         PR rtl-opt/23601
7878         * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
7879         (fixup_eh_region_note): New.
7880         (reload_as_needed): Call it.
7881         (fixup_abnormal_edges): Allow all throwing insns to be deleted;
7882         don't call find_many_sub_basic_blocks; call verify_flow_info.
7883         * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
7884         (keep_stack_depressed): Likewise.
7885         (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
7887 2005-08-31  Richard Henderson  <rth@redhat.com>
7889         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
7890         fp return matching.
7892 2005-08-31  Fariborz Jahanian <fjahanian@apple.com>
7894         * expr.c (expand_expr_real_1): Compare size of address
7895         mode to target's address mode size in deciding expansion of
7896         the constant address.
7898 2005-08-31  Richard Guenther  <rguenther@suse.de>
7900         PR middle-end/23477
7901         * expr.c (all_zeros_p): New function.
7902         (expand_expr_real_1): Handle the case of an all-zero
7903         non-addressable constructor separately.
7905 2005-08-31  Adrian Straetling  <straetling@de.ibm.com>
7907         * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
7908         arguments, adjust all callers.
7909         (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
7911 2005-08-30  Richard Henderson  <rth@redhat.com>
7913         PR target/23630
7914         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
7915         whenever the mode sizes match.
7917 2005-08-31  Alan Modra  <amodra@bigpond.net.au>
7919         * calls.c (load_register_parameters): Fix comment typo.
7920         * expr.c (emit_push_insn): Comment formatting.
7922 2005-08-30  Ian Lance Taylor  <ian@airs.com>
7924         * config/i386/x-cygwin (host-cygwin): Change dependency from
7925         hosthooks-def.h to $(HOSTHOOKS_DEF_H).
7927 2005-08-29  Geoffrey Keating  <geoffk@apple.com>
7929         * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
7930         parts of 'vals'.
7932 2005-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
7934         PR middle-end/23408
7935         * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
7936         call to ggc_collect.
7938 2005-08-29  Paolo Bonzini  <bonzini@gnu.org>
7940         PR bootstrap/21268
7941         * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
7942         beginning.  Remove $(INCLUDES) from all the rules, if following
7943         $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
7945 2005-08-29  Jakub Jelinek  <jakub@redhat.com>
7947         PR middle-end/23484
7948         * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
7949         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
7950         not constant, but maxlen is, don't set len to maxlen, rather
7951         set maxlen to len if len is a constant.
7953 2005-08-29  Zdenek Dvorak  <dvorakz@suse.cz>
7955         PR tree-optimization/23475
7956         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
7957         and counts.
7959 2005-08-28  Daniel Berlin  <dberlin@dberlin.org>
7961         Fix PR middle-end/22455
7963         * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
7964         Checksum only the parts of the tree that exist for the tree code.
7966 2005-08-28  Dale Johannesen  <dalej@apple.com>
7968         * config/i386/i386.c (nocona_cost): Increase MOVE_RATIO.
7970 2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>
7972         * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
7974 2005-08-28  Richard Henderson  <rth@redhat.com>
7976         * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
7977         * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
7978         of char_type_node.
7980 2005-08-28  Jakub Jelinek  <jakub@redhat.com>
7982         PR ada/23593
7983         * builtins.c (get_memory_rtx): Don't strip nops
7984         in between COMPONENT_REFs.
7986 2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>
7988         PR middle-end/23463
7989         * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
7990         types.
7991         (gimplify_modify_expr): Check for zero sized types and gimplify the
7992         rhs and lhs as statements.
7994 2005-08-27  John David Anglin  <dave.anflin@nrc-cnrc.gc.ca>
7996         PR libgcj/23508
7997         * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
7998         state for return address column of signal frames.
8000 2005-08-27  David Edelsohn  <edelsohn@gnu.org>
8002         PR target/23539
8003         * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
8004         bytes >= 2 not bytes == 2.
8005         (expand_block_move): Same.
8007 2005-08-27  Richard Guenther  <rguenther@suse.de>
8009         PR target/23575
8010         * config/i386/sse.md (sse2_movsd): Add missing closing
8011         braces.
8013 2005-08-27  Paul Brook  <paul@codesourcery.com>
8015         * genrecog.c (enum decision_type): Add DT_num_insns.
8016         (struct decision_test): Add u.num_insns.
8017         (add_to_sequence): Add DT_num_insns test.
8018         (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
8019         (write_cond, debug_decision_2): Ditto.
8020         (change_state): Assume peep2_next_insn never fails.
8021         Remove "afterward" argument.
8022         (write afterward, write_tree): Update to match.
8023         * recog.c (peep2_current_count): New variable.
8024         (peep2_next_insn): Check it.
8025         (peephole2_optimize): Set peep2_current_count.
8026         * recog.h (peep2_current_count): Declare.
8028 2005-08-26  Josh Conner  <jconner@apple.com>
8030         PR middle-end/23584
8031         * ipa-pure-const.c (check_tree): Check for volatile-ness
8032         when considering a dereference.
8034 2005-08-27  Jakub Jelinek  <jakub@redhat.com>
8036         * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
8038 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
8040         PR rtl-optimization/23561
8041         * builtins.c (get_memory_rtx): Add LEN argument.  If MEM_EXPR is
8042         a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
8043         at most LEN bytes long memory fits into the field.
8044         (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
8045         expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
8046         expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
8048 2005-08-26  Richard Henderson  <rth@redhat.com>
8050         PR rtl-opt/23560
8051         * loop.c (biased_biv_may_wrap_p): New.
8052         (maybe_eliminate_biv_1): Use it to suppress non-equality
8053         comparison transformations.  Delete disabled code.
8055 2005-08-26  Ian Lance Taylor  <ian@airs.com>
8057         * combine.c (make_extraction): Avoid reference outside object.
8059 2005-08-26  J"orn Rennecke <joern.rennecke@st.com>
8061         * stor-layout.c (finalize_type_size): Restore behaviour for
8062         non-aggregate types to the status quo ante of the patch for
8063         pr 23467.  Document why it matters.
8065 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
8067         PR c/23506
8068         * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
8069         array by one element, initialize the BT_LAST element with NULL.
8071 2005-08-26  David Edelsohn  <edelsohn@gnu.org>
8073         * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
8074         optimizing for size.
8075         (plus_eqsi): Same.
8076         (compare_plus_eqsi): Same.
8077         (plus_eqsi_compare): Same.
8078         (neg_eq0<mode>): Same.
8079         (neg_eq<mode>): Same.
8081         * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
8082         PROCESSOR_POWER4.
8084 2005-08-26  Nick Clifton  <nickc@redhat.com>
8086         * config/v850/v850.c (ep_memory_operand): Return FALSE if
8087         TARGET_EP is not defined.
8088         * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
8089         TARGET_EP is enabled.
8090         (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
8091         * config/v850/v850.md (save_all_interrupt): Only use the EP
8092         register if TARGET_EP is defined.
8093         (restore_all_interrupt): Likewise.
8094         * config/v850/lib1funcs.asm: Update functions so that the EP
8095         register is only used if __EP__ is defined.
8097 2005-08-26  David Ung  <davidu@mips.com>
8099         * config/mips/mips.c (mips_expand_prologue): Handle case when
8100         generating for MIPS16 and the outgoing argument area is more than
8101         SMALL_OPERAND. Use the frame pointer as temporary to generate the
8102         add instruction.
8104 2005-08-26  Paul Woegerer  <paul.woegerer@nsc.com>
8106         * config/crx/crx.md: Make doloop_end pattern usage controllable
8107         via mloop-nesting=<max-nesting> command line switch. Make sure
8108         the combiner cannot use doloop_end_<mode> in an illegal way.
8109         * config/crx/crx.c: Use regs up to r6 for argument passing.
8110         Refine crx_address_cost (non cst4 displacements are expensive).
8111         * config/crx/crx.opt: Add switch for mloop-nesting=.
8113 2005-08-26  Adrian Straetling  <straetling@de.ibm.com>
8115         * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
8116         (UNSPEC_MVST): New constant.
8118 2005-08-26  Andreas Krebbel  <krebbel1@de.ibm.com>
8120         * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
8121         Reject operands containing eliminable registers.
8122         * testsuite/gcc.dg/20050825-1.c: New testcase.
8124 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
8125             Jan Hubicka  <jh@suse.cz>
8127         * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
8129 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
8131         PR tree-optimization/23546
8132         * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
8133         and REAL_CST nodes.
8135 2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>
8137         * params.def (PARAM_MIN_SPEC_PROB): New.
8138         * sched-rgn.c (MIN_PROBABILITY): Delete.
8139         (compute_trg_info): Convert to PARAM_VALUE.
8140         * doc/invoke.texi (param): Document min-spec-prob.
8142 2005-08-24  Fariborz Jahanian <fjahanian@apple.com>
8144         * config/darwin.h: define __PIC__
8145         * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
8146         TARGET_OS_CPP_BUILTINS macro.
8148 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
8150         * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
8151         yesterday.
8153 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
8155         * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
8156         to duplicate_block.
8157         * cfghooks.c (duplicate_block): Added position where to place
8158         new block as argument.
8159         * cfghooks.h (duplicate_block): Declaration changed.
8160         * cfglayout.c (copy_bbs): Add argument after.  Pass it to
8161         duplicate_block.
8162         * cfglayout.h (copy_bbs): Declaration changed.
8163         * cfgloop.h (loop_version): Declaration changed.
8164         * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
8165         position to copy_bbs.
8166         (loop_version): Pass position to duplicate_loop_to_header_edge.
8167         Add place_after argument and position new blocks according to
8168         it.
8169         * modulo-sched.c (sms_schedule): Pass place_after argument
8170         to loop_version.
8171         * tracer.c (tail_duplicate): Pass argument to duplicate_block.
8172         * tree-cfg.c (split_edge_bb_loc): New function.
8173         (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
8174         to determine position of new blocks.
8175         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
8176         to loop_version.
8177         * tree-ssa-threadupdate.c (create_block_for_threading): Pass
8178         argument to duplicate_block.
8179         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
8180         Pass position to copy_bbs.
8182 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
8184         * fold-const.c (ptr_difference_const): Use
8185         cst_and_fits_in_hwi instead of host_integerp.
8187 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
8189         * config/darwin.c (gen_pic_offset): New.
8190         (machopic_indirect_data_reference,  machopic_legitimize_pic_address):
8191         Use it.
8193 2005-08-23  Zdenek Dvorak  <dvorakz@suse.cz>
8195         PR tree-optimization/23486
8196         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
8198 2005-08-23  Phil Edwards  <phil@codesourcery.com>
8200         * config.gcc (*-*-vxworks*): Update tm_file, add extra_options,
8201         remove use_collect2.
8202         (powerpc-wrs-vxworks): Update, split out *-*-vxworksae target.
8204         * target-def.h (TARGET_HAVE_CTORS_DTORS): Allow target
8205         configuration files to override the default value.
8207         * config/t-vxworks: Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
8208         EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
8209         * config/vx-common.h: New file, split out from...
8210         * config/vxworks.h: here.  Update for VxWorks 6.x and RTP mode.
8211         * config/vxworksae.h: New file, for VxWorks AE.
8212         * config/vxworks.opt: New file.
8213         * config/vxlib.c: Update for VxWorks 6.
8215         * config/rs6000/t-vxworks (MULTILIB_OPTIONS): New list.  Adjust
8216         other MULTILIB_* variables appropriately.
8217         (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS): Correct from t-ppccomm.
8218         * config/rs6000/t-vxworksae: New file, adjust multilibs for AE.
8219         * config/rs6000/vxworks.h: Update for VxWorks 6.
8220         * config/rs6000/vxworksae.h: New file, mostly placeholder for now.
8222 2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>
8224         PR target/20799
8225         * config/darwin.c (machopic_select_section): Remove the hack to
8226         mark "::operator new" and "::operator delete" for coalescing
8227         even though they are not weak.
8229 2005-08-24  Alan Modra  <amodra@bigpond.net.au>
8231         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
8232         * configure: Regenerate.
8234 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
8236         PR middle-end/23517
8237         * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
8238         between vectors.
8239         * convert.c (convert_to_integer, convert_to_vector): Likewise.
8240         * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
8241         Likewise.
8243 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
8245         * config/rs6000/predicates.md (equality_operator): New.
8246         * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
8247         comparison with a large constant.
8249 2005-08-23  Mark Mitchell  <mark@codesourcery.com>
8251         * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
8253 2005-08-23  J"orn Rennecke <joern.rennecke@st.com>
8255         * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
8256         registers is even, and we have a hardware double precision fp,
8257         align the buffer.
8258         (sh_gimplify_va_arg_expr): For floating point arguments, consider
8259         size of current argument when checking if argument was passed in
8260         registers.
8262         * sh.c (sh_attr_renesas_p): Handle error_mark_node.
8264         PR middle-end/23467
8265         * stor-layout.c (finalize_type_size): Dont override
8266         existing alignment with a smaller alignment from the mode.
8268 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
8270         * lambda-code.c (lambda_vector_lexico_pos): Moved...
8271         * lambda.h (lambda_vector_lexico_pos): ... here.
8272         * tree-data-ref.c (build_classic_dist_vector): Return false when
8273         the distance vector is lexicographically negative.
8275 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
8277         PR tree-optimization/23511
8278         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
8279         handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
8281 2005-08-23  Jakub Jelinek  <jakub@redhat.com>
8283         PR tree-optimization/22043
8284         * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
8285         * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
8286         If ALLOW_FLEXARR, handle types ending with flexible array member.
8287         Pass false as second argument to recursive count_type_elements calls.
8288         (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
8289         argument to count_type_elements call.
8290         * tree-sra.c (decide_block_copy): Likewise.
8291         * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
8292         for a constant-sized object, set cleared as well.  Pass true as
8293         second argument to count_type_elements call.
8295 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
8297         PR target/21571
8298         * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
8299         from legitimate_small_data_p, and make global.  Update use.
8300         Remove forward declaration.
8301         * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
8302         Declare.
8303         * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
8305 2005-08-23  David Edelsohn  <edelsohn@gnu.org>
8307         * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
8308         of scratch intermediates.
8309         (eq<mode>_compare): Same.
8310         (neg_eq0<mode>): New.
8311         (neg_eq<mode>): Convert to define_insn_and_split.
8313 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
8315         PR target/23070
8316         * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
8317         stdarg functions, set/clear the fp marker even when no variable
8318         args are passed.
8319         * config/rs6000/sysv4.opt (mprototype): Describe.
8321 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
8323         PR rtl-optimization/23478
8324         * regs.h (reg_info): Add throw_calls_crossed.
8325         (REG_N_THROWING_CALLS_CROSSED): Define.
8326         * flow.c (allocate_reg_life_data): Initialize
8327         REG_N_THROWING_CALLS_CROSSED.
8328         (propagate_one_insn, attempt_auto_inc): Update
8329         REG_N_THROWING_CALLS_CROSSED.
8330         * global.c (global_alloc): Don't allocate pseudos across
8331         calls that may throw.
8333 2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
8335         PR c/18715
8336         * c-common.c (c_do_switch_warnings): Look for a node where the enum's
8337         value is inbetween the range if we did not find an exact match.
8339 2005-08-22  Aldy Hernandez  <aldyh@redhat.com>
8341         * doc/invoke.texi (Option Summary): Add ms1 options.
8342         * doc/extend.texi: Document interrupt handler attribute for ms1.
8343         * doc/md.texi: Document ms1 constraints.
8344         * config.gcc: Add ms1-*-elf.
8345         * config/ms1/ms1.h: New.
8346         * config/ms1/ms1.c: New.
8347         * config/ms1/ms1.md: New.
8348         * config/ms1/ms1-protos.h: New.
8349         * config/ms1/ABI.txt: New.
8350         * config/ms1/crti.asm: New.
8351         * config/ms1/crtn.asm: New.
8352         * config/ms1/lib2extra-funcs.c: New.
8353         * config/ms1/t-ms1: New.
8354         * config/ms1/ms1.opt: New.
8356 2005-08-22 Ira Rosen <irar@il.ibm.com>
8358         * config/rs6000/altivec.md (xorv4sf3): New.
8359         (negv4sf2, neg<mode>2): Likewise.
8361 2005-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8363         PR target/23485
8364         * config/ia64/ia64.md (divsi3): Check divide by zero.
8365         (udivsi3): Likewise.
8366         (divdi3): Likewise.
8367         (udivdi3): Likewise.
8369 2005-08-21  Jakub Jelinek  <jakub@redhat.com>
8371         * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
8372         up to elem_bitsize bits, not max_bitsize.
8374 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
8376         PR tree-optimization/23433
8377         * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
8378         REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
8380 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
8382         PR tree-optimization/23434
8383         * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
8384         the iteration bound is not an INTEGER_CST.
8386 2005-08-21  Dorit Nuzman  <dorit@il.ibm.com>
8388         * tree-vect-transform.c (get_initial_def_for_reduction): Set
8389         need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
8390         NULL if need_epilog_adjust is false.
8391         (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
8392         Case 3 always peels first itration, not just for PLUS case, and no need
8393         to use scalar_initial_def here. Create an epilog adjustment only if
8394         scalar_initial_def is not NULL.
8396         (vectorizable_reduction): Remove assert.
8398 2005-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8400         PR target/23485
8401         * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
8402         (__moddi3): Likewise.
8403         (__udivdi3): Likewise.
8404         (__umoddi3): Likewise.
8405         (__divsi3): Likewise.
8406         (__modsi3): Likewise.
8407         (__udivsi3): Likewise.
8408         (__umodsi3): Likewise.
8410 2005-08-20  Jakub Jelinek  <jakub@redhat.com>
8412         * tree-pass.h (TDF_GRAPH): Define.
8413         * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
8414         * passes.c (finish_optimization_passes): Only call
8415         finish_graph_dump_file if TDF_GRAPH is set.
8416         (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
8417         NULL.  Set TDF_GRAPH bit.
8418         (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
8420 2005-08-20  Richard Earnshaw  <richard.earnshaw@arm.com>
8422         * arm.h (arm_stack_offsets): Add locals_base field.
8423         * arm.c (arm_get_frame_offsets): Compute it.
8424         (thumb_compute_initial_elimination offset): Make the Thumb frame
8425         pointer point to the base of the local variables.
8426         (thumb_expand_prologue): Update accordingly.
8427         (thumb_expand_epilogue): Likewise.
8429         * arm.md (thumb_movhi_clobber): Make this insn a define_expand.  Change
8430         mode of clobbered scratch to DImode.  Handle a case that's known to
8431         need this.
8433 2005-08-19  David Edelsohn  <edelsohn@gnu.org>
8435         * config/rs6000/rs6000.md (gt0<mode>): Delete.
8436         (gt0<mode>_compare): Delete.
8437         (neg_gt0<mode>): Delete.
8439 2005-08-19  Eric Christopher  <echristo@apple.com>
8441         * optabs.h: Change CTI_ to COI_.
8442         * optabs.c: Ditto.
8444 2005-08-19  James E Wilson  <wilson@specifix.com>
8446         * builtins.c (expand_builtin_return_addr): Set
8447         current_function_accesses_prior_frames when count != 0.  Use
8448         frame_pointer_rtx when count == 0.
8449         * function.h (struct function): Add accesses_prior_frames field.
8450         (current_function_accesses_prior_frames): Define.
8451         * reload1.c (init_elim_table): Check
8452         current_function_accesses_prior_frames.
8453         * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
8455 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
8457         * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
8458         indicator.  Return true if the flowgraph changed during
8459         cleanup.
8461 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
8463         PR 23476
8464         * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
8465         conditional expression before testing its value.
8467 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
8469         * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
8471 2005-08-19  Devang Patel  <dpatel@apple.com>
8473         PR tree-optimization/23048
8474         * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
8475         third parameter. Check whether latch is dominated by exit
8476         block or not.
8477         (if_convertible_loop_p): Supply exit block itself to
8478         if_convertible_bb_p.
8480 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
8482         PR target/23473
8483         * arm.md (arm_load_pic_register): Change argument to the mask of
8484         saved registers.  Call thumb_find_work_register if we need a
8485         scratch register on Thumb.
8486         (arm_expand_prologue): Pass empty register set to
8487         arm_load_pic_register.
8488         (thumb_expand_prologue): Pass live_regs_mask directly to
8489         arm_load_pic_register.
8490         * arm-protos.h (arm_load_pic_register): Update prototype.
8492 2005-08-19  J"orn Rennecke <joern.rennecke@st.com>
8494         * sh.c (find_sole_member): New function.
8495         (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
8496         if the record's alignment is larger than the size of its only member.
8498 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
8500         PR target/23436
8501         * arm.c (thumb_legitimize_reload_address): New function.
8502         * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
8503         * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
8505 2005-08-19  Paul Woegerer  <paul.woegerer@nsc.com>
8507         * config/crx/crx.c: Implement crx_decompose_address. Reject
8508         symbolic displacements since CRX register relative adressing
8509         mode can't handle unsigned 32-bit values as displacements.
8510         * config/crx/crx.h: Simplify definitions, remove redundant
8511         parenthesis and obsolete macros.
8512         * config/crx/crx.opt: Add new switch for debugging addresses.
8513         * config/crx/crx-protos.h: Add new declarations for above.
8515 2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
8517         PR middle-end/20624
8518         * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
8519         looking past it.
8521 2005-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8523         * collect2.c (dup2): Delete.
8524         * configure.ac: Don't check for dup2.
8526         * config.in, configure: Regenerate.
8528 2005-08-18  J"orn Rennecke <joern.rennecke@st.com>
8530         * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
8531         record with the type of its only member.
8533 2005-08-18  David Edelsohn  <edelsohn@gnu.org>
8535         * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
8536         define_insn_and_split.
8537         (plus_ltu<mode>_compare): Same.
8538         (gtu<mode>_compare): Same.
8539         (plus_gtu<mode>_compare): Same.
8541 2005-08-18  Dorit Nuzman  <dorit@il.ibm.com>
8543         PR tree-optimization/22228
8544         * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
8545         todo_flags_start.
8546         * tree-vect-transform.c (vect_transform_loop): Mark the variables that
8547         are recorded in vect_vnames_to_rename for renaming.
8548         * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
8549         (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
8550         in vect_vnames_to_rename.
8551         (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
8552         * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
8554 2005-08-18  Jan Hubicka  <jh@suse.cz>
8556         PR c++/22034
8557         * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
8558         info only for local statics, not for member variables.
8560 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8562         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
8564 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8566         * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
8568 2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>
8570         PR middle-end/16045
8571         * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
8573 2005-08-17  James E Wilson  <wilson@specifix.com>
8575         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
8576         array size check.
8578 2005-08-17  David Edelsohn  <edelsohn@gnu.org>
8580         * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
8581         (leu<mode>_compare): Same.
8582         (plus_leu<mode>): Same.
8583         (neg_leu<mode>): Same.
8584         (and_neg_leu<mode): Same.
8585         (ltu<mode>_compare): Same.
8586         (plus_ltu<mode>): Same.
8587         (geu<mode>): Same.
8588         (geu<mode>_compare): Same.
8589         (plus_geu<mode>): Same.
8590         (neg_geu<mode>): Same.
8591         (and_neg_geu<mode>): Same.
8592         (plus_gt<mode>): Same.
8593         (gtu<mode>_compare): Same.
8594         (plus_gtu<mode>): Same.
8596 2005-08-17  Erik Christiansen  <erik@dd.nec.com.au>
8598         * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
8599         Move call_table_data to end.  Delete spurious .text.
8600         (callt_save_all_interrupt): Fix comment typo.
8602 2005-08-17  James E Wilson  <wilson@specifix.com>
8603             Kevin Winchester  <winchester@amirix.com>
8605         PR target/21684
8606         * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
8608 2005-08-17  Uros Bizjak  <uros@kss-loka.si>
8610         PR target/23268
8611         * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
8612         ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
8614 2005-08-17  J"orn Rennecke <joern.rennecke@st.com>
8616         * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
8617         record with the type of its only member if the modes don't match.
8619         * varasm.c (decode_reg_name): Skip empty additional register names.
8621 2005-08-16  Zdenek Dvorak  <dvorakz@suse.cz>
8623         * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
8624         lsm_tmp_name_length): New.
8625         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
8626         (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
8628 2005-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8629             Andreas Krebbel  <krebbel1@de.ibm.com>
8631         * config.gcc: Added z9-109 switch.
8632         * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
8633         "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
8634         "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
8635         "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
8636         "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
8637         for "z9_109" cpu attribute.
8638         * config/s390/s390.c (z9_109_cost): New processor cost structure.
8639         (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
8640         (s390_handle_arch_option): Added z9-109 switch.
8641         (override_options): Set respective cost function for z9-109.
8642         (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
8643         (legitimate_reload_constant_p): Accept extended immediates.
8644         (print_operand): Three new output modifiers added: k, m and o.
8645         (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
8646         (s390_output_mi_thunk): Use extended immediate when possible.
8647         * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
8648         (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
8649         (CONSTRAINT_LEN): Added length of O constraint.
8650         (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
8651         * config/s390/s390.md ("cpu"): New value z9_109 added.
8652         ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
8653         "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
8654         "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
8655         "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
8656         "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
8657         ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
8658         "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
8659         "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
8660         ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
8661         "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
8662         "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
8663         "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
8664         "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
8665         "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
8666         "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
8667         immediates.
8668         ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
8669         "zero_extend<mode>si2"): Allow memory operands and don't manually emit
8670         insns for TARGET_EXTIMM.
8672 2005-08-17  Andreas Krebbel  <krebbel1@de.ibm.com>
8674         * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
8676 2005-08-17  Nick Clifton  <nickc@redhat.com>
8678         * config/stormy16/stormy16.c (xstormy16_encode_section_info):
8679         Call default_encode_section_info.
8681 2005-08-17  Steven Bosscher  <stevenb@suse.de>
8683         PR tree-optimization/21574
8684         * tree-ssa-ccp.c (likely_value): If the right hand side is a
8685         constant, return CONSTANT.
8686         (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
8687         (ccp_fold, visit_assignment): Likewise.
8688         (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
8690 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
8692         * c-typeck.c (build_function_call): Call fold_buildN_initializer or
8693         fold_buildN instead of buildN then fold_initializer or fold.
8694         (build_unary_op): Likewise.
8695         (build_binary_op): Likewise.
8696         * fold-const.c (fold_initializer): Remove.
8697         (fold_build1_initializer): New function.
8698         (fold_build2_initializer): New function.
8699         (fold_build3_initializer): New function.
8700         * tree.h (fold_initializer): Remove.
8701         (fold_build1_initializer): New function.
8702         (fold_build2_initializer): New function.
8703         (fold_build3_initializer): New function.
8705 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
8707         * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
8708         (try_move_mult_to_index): Call fold_build2 instead of build2.
8709         (fold_binary): Don't call fold after calls to try_move_mult_to_index.
8710         * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
8711         fold_binary_to_constant.
8712         (infer_loop_bounds_from_undefined): Call fold_build2 instead of
8713         fold (build.
8714         * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
8715         check if A == gcd (A, B).  Remove TYPE argument.
8716         (analyze_offset) Use fold_build2 instead of fold (build.
8717         (create_data_ref): Likewise.
8718         (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
8719         * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
8720         then fold.
8722 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
8724         * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
8725         ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
8727 2005-08-16  Andrew Pinski  <pinskia@physics.uc.edu>
8729         PR tree-opt/23402
8730         * gimplify.c (zero_sized_type): New function.
8731         (gimplify_modify_expr_rhs): If we have a zero sized type,
8732         replace the statement with an empty statement.
8734 2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>
8736         * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
8737         fxsave.
8739 2005-08-16  Ian Lance Taylor  <ian@airs.com>
8741         * doc/tm.texi (Label Output): Correct typo.
8743 2005-08-16  Steven Bosscher  <stevenb@suse.de>
8745         PR target/23376
8746         * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
8747         force_operand will work later on using have_insn_for.
8749 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8751         * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
8753 2005-08-16  Ian Lance Taylor  <ian@airs.com>
8755         PR c++/23337
8756         * gimplify.c (gimplify_init_ctor_eval): If we see an element of
8757         vector type, don't try to construct it element by element.  Add an
8758         assertion that we use a FIELD_DECL when building a COMPONENT_REF.
8760 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8762         * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
8764 2005-08-16  Geoffrey Keating  <geoffk@apple.com>
8766         * doc/invoke.texi (Precompiled Headers): Document some more options
8767         which are known to be safe.
8769 2005-08-16  James E Wilson  <wilson@specifix.com>
8771         PR tree-optimization/21105
8772         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
8773         TREE_OVERFLOW check.
8775 2005-08-16  David Edelsohn  <edelsohn@gnu.org>
8777         * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
8778         (neg_ltu<mode>): Same.
8779         (gtu<mode>): Same.
8780         (neg_gtu<mode>): Same.
8782 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8784         * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
8785         (fold_builtin_isdigit): Use fold_buildN.
8786         (build_function_call_expr): Likewise.
8787         * c-typeck.c (c_finish_loop): Likewise.
8789 2005-08-16  J"orn Rennecke <joern.rennecke@st.com>
8790             Richard Shann <rshann@superh.com>
8792         PR middle-end/20396:
8793         * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
8795 2005-08-16  Sebastian Pop  <pop@cri.ensmp.fr>
8797         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
8799 2005-08-15  Richard Earnshaw  <richard.earnshaw@arm.com>
8801         PR target/23355
8802         * arm.c (thumb_compute_save_reg_mask): Use similar logic to
8803         arm_compure_save_reg0_reg12_mask to determine when the PIC register
8804         must be saved.
8806 2005-08-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8808         PR middle-end/23369
8809         * fold-const.c (build_range_check): Disable optimization for function
8810         pointer expressions on targets that require function pointer
8811         canonicalization.
8813 2005-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
8815         * simplify-rtx.c (simplify_const_relational_operation): When
8816         extracting arguments of a COMPARE, recompute the mode as well.
8818 2005-08-15  Ian Lance Taylor  <ian@airs.com>
8820         * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
8822 2005-08-15  DJ Delorie  <dj@redhat.com>
8824         * config/m32c/mov.md (movqi_op): Immediates can't be moved to
8825         the stack.
8826         (movsi_splittable): Allow, but split, moves to the stack.
8827         * config/m32c/m32c.c (m32c_split_move): Always split moves to the
8828         stack.
8830 2005-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8832         * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
8833         * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
8834         * system.h (HOST_PTR_PRINTF): Don't define, poison it.
8836         * bitmap.c, c-decl.c, config/i386/i386-interix.h,
8837         config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
8838         Delete HOST_PTR_PRINTF.
8840         * configure, config.in: Regenerate.
8842 2005-08-15  David Edelsohn  <edelsohn@gnu.org>
8844         * config/rs6000/rs6000.md (QHSI): New mode macro.
8845         (wd): Extend mode attr for QImode and HImode
8846         (dbits): New mode attr.
8847         (zero_extend<mode>di2): Convert to mode macro.
8849 2005-08-15  Steve Ellcey  <sje@cup.hp.com>
8851         PR target/21841
8852         * doc/invoke.texi (-mgnu-ld): Update description.
8853         (-mhp-ld): Ditto.
8855 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
8857         PR 23391
8858         * Makefile.in (tree-chrec.o): Depends on real.h.
8859         * tree-chrec.c: Include real.h.
8860         (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
8861         chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
8862         * tree-scalar-evolution.c (add_to_evolution_1,
8863         interpret_rhs_modify_expr): Ditto.
8865 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
8867         PR 23386
8868         * tree-data-ref.c (estimate_niter_from_size_of_data): When
8869         step is negative compute the estimation from init downwards to zero.
8871 2005-08-14  James A. Morrison  <phython@gcc.gnu.org>
8873         * fold-const (fold_binary): Call fold_build2 instead of fold (build.
8875 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
8877         * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
8878         constraint.
8879         (legitimate_reload_constant_p): Fix handling of lliXX operands.
8880         Accept double-word constants that can be split.
8881         * config/s390/s390.md ("movti"): Use 'P' constraint.
8882         ("*movdi_31", "*movdf_31"): Likewise.
8884 2005-08-14  Daniel Berlin  <dberlin@dberlin.org>
8886         Fix PR tree-optimization/22615
8888         * tree-ssa-structalias.c (solution_set_add): Handle
8889         first_vi_for_offset returning NULL.
8890         (do_da_constraint): Ditto.
8891         (do_sd_constraint): Ditto.
8892         (do_ds_constraint): Ditto
8893         (find_func_aliases): Ditto.
8894         (build_constraint_graph): RHS is allowed be ANYTHING.
8895         (first_vi_for_offset): Return NULL if we couldn't find anything at
8896         the offset.
8898 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
8900         * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
8901         over memory as first operand.
8903 2005-08-14  H.J. Lu  <hongjiu.lu@intel.com>
8905         PR target/23360
8906         * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
8907         available for setting it.
8909 2005-08-14  Ira Rosen  <irar@il.ibm.com>
8911         PR tree-optimization/23320
8912         * tree-data-ref.c (base_addr_differ_p): Add comment. Check
8913         data-refs' types instead of base object nullness. Add check for
8914         pointer type data-refs before first location comparison. Remove
8915         assert.
8917 2005-08-14  Andreas Schwab  <schwab@suse.de>
8919         * doc/md.texi (Machine Constraints): Fix misplaced @end table.
8921 2005-08-13  James E Wilson  <wilson@specifix.com>
8923         * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
8924         * doc/invoke.texi (-Wstack-protector, -fstack-protector,
8925         -fstack-protector-all, --param ssp-buffer-size): Document.
8926         (-Wvariadic-macros): Alphabetize.
8927         (-fsched-stalled-insns-dep): Add missing 'f'.
8929         * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
8930         macros.
8932 2005-08-13  David Edelsohn  <edelsohn@gnu.org>
8934         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
8935         or indirect address operand.
8936         (EXTRA_ADDRESS_CONSTRAINT): New.
8937         * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
8939 2005-08-13  Sebastian Pop  <pop@cri.ensmp.fr>
8941         PR tree-optimization/22236
8942         * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
8943         successors and predecessors.
8944         * tree-chrec.c (chrec_convert): Before converting, check that
8945         sequences don't wrap.
8946         * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
8947         (analyze_array): Extern.
8948         (find_data_references_in_loop): Remove call to
8949         compute_estimated_nb_iterations.
8950         * tree-data-ref.h (analyze_array): Declared.
8951         * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
8952         single_ssa_def_operand, zero_ssa_operands): Fix documentation.
8953         * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
8954         * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
8955         condition.
8956         * tree-ssa-loop-ivcanon.c: Fix documentation.
8957         * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
8958         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
8959         (infer_loop_bounds_from_undefined): New.
8960         (estimate_numbers_of_iterations_loop): Use
8961         infer_loop_bounds_from_undefined.
8962         (used_in_pointer_arithmetic_p): New.
8963         (scev_probably_wraps_p): Pass an extra parameter.  Call
8964         used_in_pointer_arithmetic_p.  Check that AT_STMT is not null.
8965         (convert_step): Fix documentation.
8966         * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
8967         Use initial_condition_in_loop_num and evolution_part_in_loop_num
8968         instead of CHREC_LEFT and CHREC_RIGHT.  Adjust the call to
8969         scev_probably_wraps_p.
8971 2005-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
8973         * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
8974         (s390_register_info): Ignore clobbered_regs information for fixed
8975         registers, and only fixed registers.
8976         (s390_init_frame_layout): Remove redundant call.
8978 2005-08-12  Gerald Pfeifer  <gerald@pfeifer.com>
8980         * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
8981         description of -Wold-style-casts.
8983 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
8984             Jakub Jelinek  <jakub@redhat.com>
8986         * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
8987         * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
8988         * config/s390/s390.c (print_operand): New output modifier 'G' added.
8989         (get_thread_pointer): Renamed to s390_get_thread_pointer.
8990         * config/s390/s390.md (stack_protect_set, stack_protect_test): If
8991         TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
8992         (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
8993         (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
8994         ("stack_protect_set", "stack_protect_test"): New expanders.
8995         ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
8996         "stack_protect_testdi"): New insn definitions.
8998 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
9000         * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
9002 2005-08-12  Paul Brook  <paul@codesourcery.com>
9004         * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
9006 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
9008         * config/s390/predicates.md (setmem_operand): New predicate.
9009         (shift_count_operand): Accept ANDs with special constants as
9010         operand.
9011         * config/s390/s390.c (print_shift_count_operand): Skip ANDs
9012         with special constants.
9013         * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
9014         shift_count_operand with setmem_operand.
9016 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
9018         * config/s390/s390.c (s390_extract_part, s390_single_part):
9019         Type cast added.
9020         (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
9021         (s390_output_mi_thunk): Don't use lg on 31 bit.
9022         * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
9023         ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
9025 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
9027         * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
9028         (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
9029         s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
9030         s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
9031         with one of the new macros.
9033 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
9035         * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
9036         Don't set save_return_addr_p.
9037         (s390_register_info): Make clobbered_regs not depending on
9038         save_return_addr_p.
9040 2005-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
9042         * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
9043         (LINK_COMMAND_SPEC): Add space after %(link_ssp).
9045 2005-08-11  James E. Wilson  <wilson@specifix.com>
9047         * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
9049 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
9051         * dwarf2out.c (add_location_or_const_value_attribute): Prefer
9052         locations gathered by var-tracking in single entry loc_list
9053         over loc_descriptor_from_tree.
9055         * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
9056         pass it down to loc_descriptor.
9057         (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
9058         (containing_function_has_frame_base): Move earlier in the file.
9059         (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
9060         instead of always assuming fbreg can't be used.
9062 2005-08-11  David Edelsohn  <edelsohn@gnu.org>
9064         * config/rs6000/altivec.md: Change constraint "m" to "Z".
9065         * config/rs6000/predicates.md (indexed_or_indirect_operand):
9066         Accept address wrapped in AND for Altivec.
9067         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
9068         Strip AND wrapping offset address for Altivec.
9070 2005-08-11  Richard Henderson  <rth@redhat.com>
9072         PR middle-end/23312
9073         * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
9074         before using TYPE_IS_SIZETYPE.
9076 2005-08-11  Richard Henderson  <rth@redhat.com>
9078         PR target/22225
9079         * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
9080         insn types not present on ev4.
9081         (alphaev5_insn_pipe): Similarly.
9083 2005-08-11  Richard Earnshaw  <richard.earnshaw@arm.com>
9085         PR target/23250
9086         * arm.c (arm_override_options): If the user has selected callee-super-
9087         interworking, then enable normal interworking.
9089 2005-08-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9091         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
9092         redefinition.
9094 2005-08-11  Wu Zhou  <woodzltc@cn.ibm.com>
9096         * doc/rtl.texi: Fix two typos.
9098 2005-08-11  Richard Guenther  <rguenther@suse.de>
9100         PR target/23289
9101         * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
9102         cases where we call to/from functions returning void.
9104 2005-08-10  James A. Morrison  <phython@gcc.gnu.org>
9106         PR c++/23225
9107         * tree.c (build_pointer_type_for_mode): Robustify.
9109 2005-08-10  James E Wilson  <wilson@specifix.com>
9111         * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
9112         (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
9114         * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
9115         "cum->".
9117 2005-08-10  Eric Christopher  <echristo@apple.com>
9119         * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
9120         * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
9121         V2DFmode.
9123 2005-08-10  Andrew Pinski  <pinskia@physics.uc.edu>
9125         PR target/21887
9126         * config/darwin.c (machopic_indirect_data_reference): Use a new register
9127         for the high part when generating dynamic-no-pic code.
9129 2005-08-10  H.J. Lu  <hongjiu.lu@intel.com>
9131         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
9132         (x86_64-*-linux*): Likewise.
9134         * config/i386/crtfastmath.c: New file.
9135         * config/i386/t-crtfm: Likewise.
9137         * config/i386/linux.h (ENDFILE_SPEC): New.
9138         * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
9140         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
9141         crtfastmath.o.
9143 2005-08-10  Dorit Nuzman  <dorit@il.ibm.com>
9145         * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
9146         (vec_shl, vec_shr): Document new operations.
9147         * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
9149 2005-08-10  David Edelsohn  <edelsohn@gnu.org>
9151         * config/rs6000/predicates.md (indexed_or_indirect_address): New.
9152         * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
9153         change predicate to indexed_or_indirect_address.
9155 2005-08-10  Richard Sandiford  <richard@codesourcery.com>
9157         * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
9158         * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
9159         __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
9160         and __aeabi_uwrite8.
9161         * config/arm/unaligned-funcs.c: New file.
9162         * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
9164 2005-08-09  Paolo Bonzini  <bonzini@gnu.org>
9166         * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
9167         Add dump.
9168         * cfglayout.c (pass_insn_locators_initialize): Add dump.
9169         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
9170         Add dump.
9171         * except.c (pass_convert_to_eh_region_ranges): Add dump.
9172         * final.c (pass_shorten_branches): Add dump.
9173         * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
9174         (pass_life): Rename dump.
9175         (rest_of_handle_flow2): Remove initial verify_flow_info.
9176         * function.c (pass_instantiate_virtual_regs): Add dump.
9177         * integrate.c (pass_initial_value_sets): Add dump.
9178         * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
9179         * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
9180         (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
9181         pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
9182         (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
9183         gate_rtl_unrool_and_peel_loops): New.
9184         (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
9185         rtl_doloop): Do not look at flags.
9186         * mode-switching.c (pass_mode_switching): Add dump.
9187         * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
9188         pass_split_before_regstack): Add dump.
9189         * regmove.c (pass_stack_adjustments): Add dump.
9190         * tree-optimize.c (pass_fixup_cfg): Add dump.
9192 2005-08-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9194         PR 23309
9195         * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
9196         deciding which instruction sequence to use.
9198 2005-08-09  Dorit Nuzman  <dorit@il.ibm.com>
9200         * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
9201         BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
9203 2005-08-09  Richard Guenther  <rguenther@suse.de>
9205         * c-common.c (builtin_function_2): Remove.
9206         (def_builtin_1): New function.
9207         (c_common_nodes_and_builtins): Use def_builtin_1 to
9208         build builtin functions.
9210 2005-08-09  Jie Zhang  <jie.zhang@analog.com>
9212         * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
9213         * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
9214         * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
9215         Visual DSP.
9217 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
9219         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
9220         fold_binary instead of fold_build2 since we don't care about the
9221         resulting tree.
9222         (loop_niter_by_eval): Likewise.
9223         (compare_trees): Likewise.
9224         (proved_non_wrapping_p): Likewise.
9226 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
9228         PR c/23161
9229         PR c/23165
9230         * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
9231         if the if is really empty.
9233 2005-08-09  Steven Bosscher  <stevenb@suse.de>
9235         PR tree-optimization/23234
9236         * tree-ssa-math-opts.c (place_reciprocal): New enum.
9237         (execute_cse_reciprocals_1): Replace the 'phi' argument with an
9238         argument of the new enum.
9239         (execute_cse_reciprocals): Add reciprocals for function arguments
9240         on the unique successor edge of the entry block.  Update other calls
9241         to execute_cse_reciprocals_1.
9243 2005-08-08  Richard Henderson  <rth@redhat.com>
9245         PR 22439
9246         * gimplify.c (gimplify_one_sizepos): Preserve the original type.
9248 2005-08-08  Bob Wilson  <bob.wilson@acm.org>
9250         * expr.c (write_complex_part): Return after handling MEM.
9252 2005-08-08  Josh Conner  <jconner@apple.com>
9254         PR rtl-optimization/23241
9255         * combine.c (simplify_comparison): Fix error in determining
9256         whether to lift a subreg from comparison.
9258 2005-08-08  David Edelsohn  <edelsohn@gnu.org>
9260         PR target/18506
9261         * config/rs6000/altivec.md (vec_init<mode>): New.
9262         (vec_set<mode>): New.
9263         (vec_extract<mode>): New.
9264         * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
9265         (rs6000_expand_vector_set): New.
9266         (rs6000_expand_vector_extract): New.
9267         (rs6000_legitimate_offset_address_p): Offset addresses are valid
9268         for Altivec modes before reload.
9269         (altivec_expand_vec_init_builtin): New.
9270         (get_element_number): New.
9271         (altivec_expand_vec_set_builtin): New.
9272         (altivec_expand_vec_ext_builtin): New.
9273         (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
9274         builtins.
9275         (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
9276         builtins.
9277         * config/rs6000/rs6000.h (rs6000_builtins): Add
9278         ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
9279         ALTIVEC_BUILTIN_VEC_EXT_<mode>.
9280         * config/rs6000/rs6000-protos.h: Declare new functions.
9282 2005-08-08  Jan Hubicka  <jh@suse.cz>
9284         * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
9285         (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
9286         * i386.md (movdi*): Use pic_32bit_operand.
9287         * predicates.md (pic_32bit_operand): New.
9289 2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
9291         PR c++/21166
9292         * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
9294 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
9296         * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
9297         (test_for_singularity): Use fold_build2.
9299 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9301         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
9303 2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
9305         * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
9306         (COMMON_ASM_OP) Define.
9307         * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
9308         (ix86_encode_section_info): Likewise.
9309         (TARGET_ENCODE_SECTION_INFO): Conditionally define as
9310         SUBTARGET_ENCODE_SECTION_INFO.
9312 2005-08-06  Richard Henderson  <rth@redhat.com>
9314         PR 21894
9315         * tree-nested.c (convert_local_reference): Save and restore val_only
9316         around component_ref and friends.  Clear walk_subtrees by default.
9318 2005-08-06  Peter O'Gorman  <peter@pogma.com>
9320         PR 21366
9321         * gcc.c (process_command): Check the argument to -b has a dash.
9322         * doc/invoke.texi: Update -b and -V docs.
9324 2005-08-06  James E Wilson  <wilson@specifix.com>
9326         * config/mips/cross64.h, config/mips/t-cross64: Delete.
9328 2005-08-06  Michael Matz  <matz@suse.de>
9330         * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
9331         member only if only one insn is associated with the value.
9333 2005-08-06  Nick Clifton  <nickc@redhat.com>
9335         * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
9336         New define.
9337         (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
9338         * config/stormy16/stormy16.c (xstormy16_below100_symbol):
9339         Check symbol flags instead of symbol name mangling.
9340         (xstormy16_asm_output_aligned_common): Likewise.  Also
9341         simplify code since the bss100_section cass is the only case
9342         where the below100 code will be triggered.
9343         (xstormy16_encode_section_info): Encode below100 attribute
9344         using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
9345         the name.
9346         (xstormy16_strip_name_encoding): Delete - this function is no
9347         longer needed.
9348         (TARGET_STRIP_NAME_ENCODING): Undefine.
9349         * config/stormy16/stormy16-protos.h: Delete prototype for
9350         xstormy16_strip_name_encoding.
9352 2005-08-06  Kazu Hirata  <kazu@codesourcery.com>
9354         * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
9355         config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
9356         tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
9357         config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
9358         config/alpha/predicates.md, config/arc/arc.h,
9359         config/arm/arm.h, config/arm/ieee754-df.S,
9360         config/arm/ieee754-sf.S, config/bfin/bfin.c,
9361         config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
9362         config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
9363         config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
9364         config/m68hc11/m68hc11.h, config/mips/mips.c,
9365         config/mips/mips.h, config/mips/openbsd.h,
9366         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
9367         config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
9368         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
9369         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
9370         config/sparc/linux.h, config/sparc/linux64.h,
9371         config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
9372         doc/extend.texi, doc/gcov.texi, doc/install.texi,
9373         doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
9374         typos.  Follow spelling conventions.
9376 2005-08-06  Joseph S. Myers  <joseph@codesourcery.com>
9378         PR c/23113
9379         * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
9380         Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
9381         specially.  Check for side effects only for COND_EXPR.
9382         * c-typeck.c (c_finish_stmt_expr): Mark statement expression
9383         return with TREE_NO_WARNING.
9385 2005-08-06  Richard Sandiford  <richard@codesourcery.com>
9387         PR rtl-optimization/23233
9388         * loop.c (combine_movables): Require the modes to be the same.
9389         (move_movables): Remove handling of cases where the replacement
9390         had a different mode to the original.
9392 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
9394         PR tree-optimization/23128
9395         * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
9396         subtraction wrap, and set TREE_OVERFLOW if they do.
9398 2005-08-05  Richard Henderson  <rth@redhat.com>
9400         PR 21728
9401         * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
9402         FORCED_LABEL labels.
9404 2005-08-05  J"orn Rennecke <joern.rennecke@st.com>
9406         PR middle-end/23135
9407         * reload.c (find_reloads_subreg_address): Pass down TYPE
9408         unchanged.  Change all callers except find_reloads_toplev.
9410 2005-08-05  Michael Matz  <matz@suse.de>
9412         * genattrtab.c (current_alternative_string): Remove.
9413         (SIMPLIFY_ALTERNATIVE): Ditto.
9414         (attr_alt_bit_p): Ditto.
9415         (alternative_name): Make const char *.
9416         (evaluate_eq_attr): Remove use of above things.
9417         (simplify_test_exp): Ditto.
9418         (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
9419         (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
9421 2005-08-04  James E Wilson  <wilson@specifix.com>
9423         * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
9424         config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
9425         config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
9426         config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
9427         (LINK_SPEC): Delete useless %{Wl,*:%*} item.
9429 2005-08-04  Richard Henderson  <rth@redhat.com>
9431         PR 21529
9432         * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
9433         * params.h (SRA_MAX_STRUCTURE_COUNT): New.
9434         * tree-sra.c (decide_block_copy): Use it.  Disable element copy
9435         if we'd have to instantiate too many members.
9437 2005-08-04  Richard Henderson  <rth@redhat.com>
9439         PR 21291
9440         * tree-outof-ssa.c (coalesce_asm_operands): New.
9441         (coalesce_ssa_name): Use it.  Split out ...
9442         (coalesce_phi_operands, coalesce_result_decls): ... these.
9444 2005-08-04  Paul Brook  <paul@codesourcery.com>
9446         * read-rtl.c (read_quoted_string): Break if EOF.
9448 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
9450         * tree.h (fold_build1): Change to macro and call fold_build1_stat.
9451         (fold_build2): Likewise.
9452         (fold_build3): Likewise.
9453         (fold_build1_stat): New function prototype.
9454         (fold_build2_stat): Likewise.
9455         (fold_build3_stat): Likewise.
9456         * fold-const.c (fold_build1): Rename to ..
9457         (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
9458         through to build1_stat.
9459         (fold_build2): Rename to ..
9460         (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
9461         through to build2_stat.
9462         (fold_build3): Rename to ..
9463         (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
9464         through to build3_stat.
9466 2005-08-04  David Edelsohn  <edelsohn@gnu.org>
9467             Ian Lance Taylor  <ian@airs.com>
9469         * function.c (assign_stack_local_1): Do not correct stack slot
9470         address if allocation size is smaller than mode size.
9472 2005-08-04  Diego Novillo  <dnovillo@redhat.com>
9474         PR 22037
9475         * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
9476         (tree_merge_blocks): Propagate anything allowed by
9477         may_propagate_copy.
9478         Clarify documentation.
9479         * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
9480         SSA form, schedule an update if necessary.
9482 2005-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
9484         * doc/install.texi (Binaries): Remove broken link to
9485         Sinix/Reliant Unix binaries.
9487 2005-08-03  Richard Henderson  <rth@redhat.com>
9489         PR 23221
9490         * function.c (stack_protect_epilogue): Export.
9491         * tree.h (stack_protect_epilogue): Declare.
9492         * calls.c (expand_call): Call it.
9494 2005-08-03  Eric Christopher  <echristo@apple.com>
9496         * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
9497         * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
9498         spec.
9500 2005-08-04  Jan Hubicka  <jh@suse.cz>
9502         * profile.c (branch_prob): Split edges with goto locus on them
9503         to get proper line counts.
9504         * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
9506 2005-08-03  Paul Brook  <paul@codesourcery.com>
9508         * function.c (assign_parms): Round current_function_args_size
9509         to PARM_BOUNDARY, not STACK_BOUNDARY.
9511 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
9513         * config/i386/i386.c (x86_elf_aligned_common)
9514         (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
9516 2005-08-03  Zdenek Dvorak  <dvorakz@suse.cz>
9518         PR tree-optimization/23157
9519         * tree-scalar-evolution.c (scev_const_prop): Unshare trees
9520         before emitting them.
9522 2005-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9524         PR tree-optimization/19899
9525         * Makefile.in (tree-scalar-evolution.o): Add real.h.
9526         * tree-scalar-evolution.c: Include real.h.
9527         (add_to_evolution): Build constant -1 of correct type.
9529 2005-08-03  Jan Hubicka  <jh@suse.cz>
9531         * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
9532         * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
9533         profile updating for complette unrolling.
9534         * loop-unroll.c (peel_loop_completely): Use it.
9535         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
9536         (tree_unroll_loops_completely): Disable code growing unrolling of cold
9537         loops.
9539 2005-08-03  Paul Brook  <paul@codesourcery.com>
9541         * combine.c (can_change_dest_mode): New function.
9542         (try_combine, simplify_set): Use it.
9544 2005-08-03  Eric Botcazou  <ebotcazou@adacore.com>
9546         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
9547         TFmode to BLKmode.
9549 2005-08-03  Gerald Pfeifer  <gerald@pfeifer.com>
9551         * doc/install.texi (Specific): Adjust link to openavr.org.
9552         (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
9553         (Binaries): Adjust HP-UX Porting Center link.
9554         (Binaries): Adjust Free Software Foundation ordering link.
9556 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
9558         * convert.c (convert_to_integer): Use fold_build1 instead of
9559         build1 when converting an integer to an integer.
9561 2005-08-02  Richard Henderson  <rth@redhat.com>
9563         * combine.c (combine_instructions): Don't use reg_equal/equiv
9564         results if the mode doesn't match.
9566 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
9568         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
9569         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
9571 2005-08-02  Richard Henderson  <rth@redhat.com>
9573         PR 23196
9574         * explow.c (memory_address): Remove special-case for
9575         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
9577 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
9579         PR 23164
9580         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
9581         number of calls to cleanup_tree_cfg_1.
9583 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
9585         * doc/invoke.texi: document file extensions .F90 and .F95
9587 2005-08-02  Richard Guenther  <rguenther@suse.de>
9589         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
9590         positive if its first argument is positive.
9592 2005-08-02  Richard Guenther  <rguenther@suse.de>
9594         PR tree-optimization/23177
9595         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
9596         on TMR_TAG.
9598 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
9600         PR tree-optimization/23129
9601         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
9602         varying for divisions with anti-ranges.
9604 2005-08-02  Jan Hubicka  <jh@suse.cz>
9606         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
9607         * tree-ssa-threadupdate.c (thread_block): Add it here.
9609 2005-08-01  James E Wilson  <wilson@specifix.com>
9611         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
9612         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
9613         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
9614         New.
9615         * config/mips/predicates.md (const_call_insn_operand): Add check for
9616         SYMBOL_REF_LONG_CALL_P.
9617         * doc/extend.texi (long_call): Document the new attribute.
9619 2005-08-01  Ian Lance Taylor  <ian@airs.com>
9620             Richard Henderson  <rth@redhat.com>
9622         * Makefile.in (RTL_BASE_H): Add real.h.
9623         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
9624         instead of memcpy.
9625         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
9626         directly.
9627         * rtl.c (rtl_check_failed_code_mode): New.
9628         * rtl.h (struct rtx_def): Add u.rv.
9629         (XCMWINT, XCNMPRV): New.
9630         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
9631         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
9633 2005-08-01  Richard Henderson  <rth@redhat.com>
9635         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
9636         with auto-inc codes.
9638         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
9640 2005-08-01  Jan Hubicka  <jh@suse.cz>
9642         * i386-protos.h (asm_preferred_eh_data_format): Declare.
9643         * i386.c: Include dwarf2.h
9644         (asm_preferred_eh_data_format): New.
9645         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
9647 2005-08-01  Ian Lance Taylor  <ian@airs.com>
9649         * config/host-linux.c (linux_gt_pch_get_address): Add new name
9650         randomize_va_space for virtual address randomization control.
9652 2005-08-01  Steven Bosscher  <stevenb@suse.de>
9654         * common.opt (flag_ipa_cp): Put in right place to maintain
9655         alphabetic sort.
9657 2005-08-01  Jan Hubicka  <jh@suse.cz>
9659         * profile.c (compute_value_histograms): Fix thinko.
9660         * value-prof.c: Include toplev.h
9661         (check_counter): New function.
9662         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
9663         tree_mod_subtract_transform): Add sanity check.
9665 2005-08-01  Richard Guenther  <rguenther@suse.de>
9667         PR tree-optimization/23133
9668         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
9669         current functions parameter decls to find defs to cse
9670         reciprocals of.
9672 2005-08-01  Richard Guenther  <rguenther@suse.de>
9674         PR tree-optimization/23109
9675         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
9676         If trapping math is in effect, use post-dominator information
9677         to check if we'd in any case reach a trapping point before
9678         doing the reciprocal insertion.
9679         (execute_cse_reciprocals): Compute post-dominators, if necessary.
9680         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
9681         expressions are invariant only if trapping math is not in effect.
9683 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
9685         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
9686         cgraph_function_versioning): New declarations.
9687         * cgraphunit.c: Add include to ipa-prop.h.
9688         (update_call_expr, cgraph_copy_node_for_versioning,
9689         cgraph_function_versioning): New functions.
9690         * integrate.c (copy_decl_for_inlining): Remove.
9691         * ipa-prop.h (ipa_replace_map): New struct.
9692         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
9693         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
9694         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
9695         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
9696         ipcp_iterate_stage, ipcp_method_scale_print,
9697         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
9698         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
9699         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
9700         ipcp_update_bb_counts, ipcp_update_profiling,
9701         ipcp_update_edges_counts): New functions.
9702         (ipcp_method_cval_init): Remove restriction regarding local methods.
9703         (ipcp_init_stage): Add ipcp_method_compute_scale.
9704         (ipcp_insert_stage): Add versioning.
9705         (ipcp_structures_print): Add ipcp_method_scale_print.
9706         (ipcp_driver): Dump profiling info.
9707         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
9708         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
9709         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
9710         (struct inline_data): Add versioning_p, ipa_info, new fields.
9711         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
9712         declare_return_variable): Replace calls to copy_decl_for_inlining with
9713         copy_decl_for_dup.
9714         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
9715         versioning support.
9716         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
9717         Add argument VERSIONING.
9718         (copy_arguments_for_versioning, copy_static_chain,
9719         function_versionable_p, tree_versionable_function_p,
9720         tree_function_versioning, replace_ref_tree): New functions.
9721         * tree-inline.h: Include varray.h.
9722         (tree_versionable_function_p,  tree_function_versioning,
9723         tree copy_decl_for_dup): New declarations.
9725 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
9727         * ipa-cp.c: New file. Contains IPCP specific functionality.
9728         * ipa-prop.h: New file. Contains structures/definitions that can be
9729         used by several interprocedural data flow optimizations (and also IPCP).
9730         * ipa-prop.c: New file.
9731         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
9732         * common.opt: Add ipa-cp flag.
9733         * timevar.def: Add IPCP optimization.
9734         * tree-optimize.c (init_tree_optimization_passes): Schedule
9735         pass_ipa_cp.
9736         * tree-pass.h (pass_ipa_cp): Declare.
9738 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
9740         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
9741         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
9742         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
9743         config/i386/i386.c, config/mips/mips.h,
9744         config/rs6000/rs6000.h, config/sh/sh.c,
9745         config/stormy16/stormy16.c: Fix comment typos.
9747 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
9749         PR c/22311
9750         * c-typeck.c (build_binary_op): Use common_type wrapper on
9751         shortened types.
9752         (common_type): Update comment.
9754 2005-07-31  Steven Bosscher  <stevenb@suse.de>
9756         PR target/23095
9757         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
9758         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
9759         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
9761 2005-07-31  Jan Hubicka  <jh@suse.cz>
9763         * pretty-print.h (pp_widest_integer): New macro.
9764         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
9765         counts.
9767 2005-07-31  Jan Hubicka  <jh@suse.cz>
9769         * output.h (enum section_category): Export from varasm.c
9770         (categorize_decl_for_section): Likewise.
9771         * varasm.c (enum section_category): Kill.
9772         (categorize_decl_for_section): Make global.
9773         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
9774         Declare.
9775         * i386.c (ix86_section_threshold): New static variable.
9776         (ix86_in_large_data_p, ix86_encode_section_info,
9777         x86_64_elf_unique_section,
9778         x86_64_elf_select_section): New functions.
9779         (TARGET_ENCODE_SECTION_INFO): Define
9780         (override_options): Enable medium model for PIC.
9781         (ix86_expand_prologue): Expand gen_set_got_rex64.
9782         (legitimate_constant_p): Handle new UNSPECs.
9783         (legitimate_pic_address_disp_p): Likewise.
9784         (legitimize_pic_address): Lower MEDIUM model addressing.
9785         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
9786         (enum cmodel): Add MEDIUM_PIC.
9787         (SYMBOL_REF_FAR_ADDR_P): New macro.
9788         (SYMBOL_FLAG_FAR_ADDR): New flag.
9789         * i386.md (movdi): Support medium model.
9790         (set_got_rex64): New pattern.
9791         * i386.opt (mlarge-data-threshold): New flag.
9792         * predicates.md (zext_operand/sext_operand): Deal with medium model.
9793         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
9794         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
9795         TARGET_ASM_UNIQUE_SECTION): New.
9797         * invoke.texi (-mlarge_data_threshold): Document
9799 2005-07-31  Jan Hubicka  <jh@suse.cz>
9801         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
9802         (coalesce_vars): Likewise.
9803         * tree-ssa-live.c (coalesce_cost): New.
9804         (build_tree_conflict_graph): Use coalesce_cost.
9805         * tree-ssa-live.h (coalesce_cost): Declare.
9807 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
9809         * arm.md (all peepholes for post-increment operations): Delete.
9810         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
9811         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
9812         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
9813         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
9814         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
9816 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
9818         * fold-const.c (tree_expr_nonnegative_p): Always return true for
9819         non-integral types.
9821 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
9823         PR target/22582
9824         * doc/invoke.texi: Document -rdynamic.
9826 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9828         PR c/23143
9829         * c-parser.c (c_parser_parms_list_declarator): Call
9830         mark_forward_parm_decls.
9831         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
9832         decls with visibility structure.
9834 2005-07-30  Paul Brook  <paul@codesourcery.com>
9836         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
9838 2005-07-30  Paul Brook  <paul@codesourcery.com>
9840         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
9841         prototype.
9842         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
9843         value for mode.
9844         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
9846 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9848         PR c/529
9849         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
9850         nested function declarators.
9851         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
9852         (grokparms): Call warn_if_shadowing for parameters used within the
9853         parameter list.
9854         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
9855         not used within the parameter list.
9856         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
9858 2005-07-30  Jan Hubicka  <jh@suse.cz>
9860         * expr.c (expand_expr_real_1): Do not load mem targets into register.
9861         * i386.c (ix86_fixup_binary_operands): Likewise.
9862         (ix86_expand_unary_operator): Likewise.
9863         (ix86_expand_fp_absneg_operator): Likewise.
9864         * optabs.c (expand_vec_cond_expr): Validate dest.
9866 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9868         PR c/21720
9869         * real.c (real_from_string): Also set last bit if there is a
9870         nonzero hex digit beyond GCC's internal precision after ".".
9872 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
9874         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
9875         define_constants.  Change duplicate values to unassigned numbers.
9876         Change UNSPEC_SUBS to UNSPEC_VSUBS.
9877         (*altivec_vspltsf): New.
9878         (altivec_vperm_v4sf): Delete.
9879         (altivec_vperm_<mode>): Use mode macro V.
9880         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
9881         (altivec_predicate_v4sf): Delete.
9882         (altivec_predicate_<mode>): Use mode macro V.
9883         (*altivec_lvesfx): New.
9884         (*altivec_stvesfx): New.
9885         (vec_realign_load_v4sf): Delete.
9886         (vec_realign_load_<mode>): Use mode macro V.
9887         * config/rs6000/rs6000.c (generate_set_vrsave): Use
9888         UNSPECV_SET_VRSAVE.
9890 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
9892         PR bootstrap/23131
9893         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
9894         string.
9895         * configure: Regenerated.
9897 2005-07-29  Paul Brook  <paul@codesourcery.com>
9899         * doc/install.texi: Add link to GFortran binaries wiki page.
9901 2005-07-29  David Ung  <davidu@mips.com>
9903         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
9904         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
9905         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
9906         * config/mips/mips.md (cpu): Add 5kf name.
9907         (includes): Includes 5k.md.
9908         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
9909         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
9910         -march flag.
9912 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
9914         PR 22550
9915         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
9916         (cleanup_tree_cfg): ... here.
9917         Call cleanup_tree_cfg_1 until there are no more cleanups to
9918         do.
9920 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
9922         * tree-vrp.c (compare_range_with_value): Return true or false
9923         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
9924         EQ_EXPR respectively.
9926 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
9928         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
9929         Fix comment typos.
9931 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
9933         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
9934         (tree_ssa_dominator_optimize): Increment it.
9935         (dump_dominator_optimization_stats): Print it.
9937 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
9938             Steven Bosscher  <stevenb@suse.de>
9940         PR rtl-optimization/23117
9941         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
9942         when head == tail.  Tidy comment.
9944 2005-07-28  Richard Henderson  <rth@redhat.com>
9946         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
9947         * cselib.c (rtx_equal_for_cselib_p): Likewise.
9948         * jump.c (rtx_renumbered_equal_p): Likewise.
9949         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
9950         CONST_INT and CONST_DOUBLE.
9951         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
9952         * reload.c (operands_match_p): Special case CONST_INT and
9953         CONST_DOUBLE; check mode earlier.
9955 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9957         PR c/22240
9958         * c-typeck.c (convert_for_assignment): Do not check
9959         DECL_IN_SYSTEM_HEADER on NULL fundecl.
9961 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9963         PR c/22192
9964         * c-typeck.c (composite_type): Prefer constant size arrays to
9965         VLAs.
9967 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9969         PR c/21720
9970         * real.c (real_from_string): Set last bit if there is a nonzero
9971         hex digit beyond GCC's internal precision.
9973 2005-07-28  Richard Henderson  <rth@redhat.com>
9975         PR rtl-opt/22619
9976         * cfgcleanup.c (try_forward_edges): Watch out for end of
9977         insn chain.
9979 2005-07-28  James E Wilson  <wilson@specifixinc.com>
9981         PR c/23106
9982         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
9984 2005-07-28  Jan Hubicka  <jh@suse.cz>
9986         * Makefile.in (rtl-profile.o): Kill all traces of it.
9987         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
9988         * coverage.h (rtl_coverage_counter_ref): Kill.
9989         * opts.c (flag_speculative_prefetching_set): Kill.
9990         (flag_loop_optimize_set): New.
9991         (common_handle_option): Disable loop optimizer when profiling;
9992         do not handle speculative prefetching.
9993         * passes.c (init_optimization_passes): Replace pass_profiling combo
9994         by branch_prob pass.
9995         * profile.c (compute_value_histograms): Update for simplified value
9996         profiles.
9997         (rtl_register_profile_hooks): Kill.
9998         (pass_profiling): Kill.
9999         (rest_of_handle_branch_prob): Do not profile.
10000         * toplev.c (process_options): Remove speculative prefetching.
10001         * toplev.h (flag_tree_based_profiling): Kill.
10002         * tree-profile.c (prepare_instrumented_value,
10003         tree_gen_interval_profiler, tree_gen_pow2_profiler,
10004         tree_gen_one_value_profiler, do_tree_profiling): Update for
10005         simplified datastructures.
10006         * value-prof.c: Add comment that speculative prefetching was dropped;
10007         update rest of file for simplified datastructures.
10008         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
10009         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
10010         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
10011         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
10012         rtl_mod_subtract, gen_speculative_prefetch,
10013         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
10014         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
10015         (gate_handle_value_profile_transformations,
10016         rest_of_handle_value_profile_transformations,
10017         pass_value_profile_transformations): Kill.
10018         * value-prof.h (histogram_value_t): Remove IL based unions.
10019         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
10020         rtl_profile_hooks): Remove hooks.
10022         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
10024         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
10025         (cgraph_clone_node): Likewise.
10026         * cgraph.h (cgraph_clone_edge): Update prototype.
10027         (cgraph_clone_node): Likewise.
10028         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
10029         cgraph_clone_node.
10030         (lookup_recursive_calls): Consider profile.
10031         (cgraph_decide_recursive_inlining): Fix updating; use new
10032         probability argument; use profile.
10033         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
10034         * tree-inline.c (copy_bb): Update clal of clone_edge.
10035         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
10037         * invoke.texi (min-inline-recursive-probability): Document.
10039 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
10041         * doc/install.texi (Configuration): Update Valgrind homepage.
10043 2005-07-28  Richard Henderson  <rth@redhat.com>
10045         PR middle-end/21362
10046         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
10047         labels we want to delete.
10048         (cfg_layout_merge_blocks): Likewise.
10050 2005-07-28  Richard Henderson  <rth@redhat.com>
10052         PR target/17692
10053         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
10054         when expanding to nothing.
10056 2005-07-28  Josh Conner  <jconner@apple.com>
10058         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
10059         (cgraph_decide_inlining_of_small_functions): Likewise.
10061 2005-07-28  Josh Conner  <jconner@apple.com>
10063         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
10064         direction of badness if negative.
10065         (cgraph_default_inline_p): Add reason to parameters, and assign it
10066         a value.
10067         (cgraph_decide_inlining_of_small_functions): New parameter in call
10068         to cgraph_default_inline_p.
10069         (cgraph_decide_inlining_incrementally): Likewise.
10070         * cgraphunit.c (decide_is_function_needed): Likewise.
10071         * cgraph.h (cgraph_default_inline_p): Likewise.
10073 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
10075         * builtins.c: Fix comment typo(s).
10076         * genautomata.c: Likewise.
10077         * gimplify.c: Likewise.
10078         * tree-dfa.c: Likewise.
10079         * tree-flow-inline.h: Likewise.
10080         * tree-into-ssa.c: Likewise.
10081         * tree-ssa-alias.c: Likewise.
10082         * tree-ssa-ccp.c: Likewise.
10083         * tree-ssa-copy.c: Likewise.
10084         * tree-ssa-dce.c: Likewise.
10085         * tree-ssa-dom.c: Likewise.
10086         * tree-ssa-operands.c: Likewise.
10087         * tree-tailcall.c: Likewise.
10088         * tree-vectorizer.c: Likewise.
10089         * tree-vrp.c: Likewise.
10090         * tree.c: Likewise.
10092 2005-07-28  Jeff Law  <law@redhat.com>
10094         * tree-vrp.c (test_for_singularity): Extracted from  ...
10095         (simplify_cond_using_ranges): Attempt to simplify a relational
10096         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
10098 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
10100         PR tree-optimization/22506
10101         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
10102         phis whose argument is constant.
10104 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
10106         PR rtl-optimization/18992
10107         Back out this patch:
10108           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10109           PR optimization/12142
10110           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
10111           uses of the register in the SET_SRC.  Remove unnecessary argument.
10113         Replace it with this:
10114         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
10115         if flag_non_call_exceptions is set and the insn may trap, pass
10116         pc_rtx as dest for recursion.
10117         In SET_SRC part of SET case, if dest is already set, pass it down
10118         unchanged.
10120 2005-07-28  Jan Hubicka  <jh@suse.cz>
10122         * cfg.c (update_bb_profile_for_threading): Use RDIV.
10123         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
10124         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
10125         roundoff errors.
10126         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
10127         profile when available.
10129 2005-07-28  Jan Beulich <jbeulich@novell.com>
10131         * config/ia64/ia64.c (ia64_load_pair_ok): New.
10132         (ia64_print_operand): Describe and handle 'X'.
10133         (ia64_register_move_cost): Also handle FP_REGS.
10134         (ia64_preferred_reload_class): Likewise.
10135         (ia64_secondary_reload_class): Likewise.
10136         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
10137         it. Also check for ITANIUM_CLASS_FLDP.
10138         * config/ia64/ia64.h (FP_REGNO_P): New.
10139         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
10140         (reg_class): Add FP_REGS.
10141         (REG_CLASS_NAMES): Adjust for it.
10142         (REG_CLASS_CONTENTS): Likewise.
10143         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
10144         (REG_CLASS_FROM_LETTER): Handle 'x'.
10145         (CLASS_MAX_NREGS): Handle FP_REGS.
10146         (MEMORY_MOVE_COST): Likewise.
10147         * config/ia64/ia64.md (itanium_class): Add fldp.
10148         (type): Handle fldp.
10149         (movti_internal): More allowable operand combinations. Use ldfp8 when
10150         splitting unnecessary. Remove predicable attribute. Adjust
10151         itanium_class attribute.
10152         (smuldi3_highpart): Remove outdated comment.
10153         (mulditi3, umulditi3, rotlti3): New expanders.
10154         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
10155         (absti2): Disabled new insn for future reference.
10156         Respective new splitters.
10157         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
10158         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
10159         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
10161 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
10163         PR rtl-optimization/23047
10164         * simplify-rtx.c (simplify_const_relational_operation): Respect
10165         flag_wrapv for comparisons with ABS.
10167 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
10169         PR tree-optimization/22493
10170         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
10171         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
10173 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
10175         * config/frv/frv.opt (moptimize-membar): New.
10177         * doc/invoke.texi: Document -moptimize-membar and its inverse.
10179         * config/frv/frv.h: Remove machine_function definition.
10181         * config/frv/frv.c (struct frv_io): New.
10182         (struct machine_function): Moved from frv.h.  Add has_membar_p.
10183         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
10184         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
10185         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
10186         (frv_optimize_membar_global, frv_optimize_membar): New functions.
10187         (frv_reorg): Call frv_optimize_membar when appropriate.
10188         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
10189         (frv_expand_builtin): Adjust calls accordingly.
10190         (frv_io_address_cookie): New function.
10191         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
10192         load or store rather than a special insn.  Add ccnstant address and
10193         io-type operands to the membar.
10194         (frv_ifcvt_modify_tests): Unsign regno.
10195         (frv_ifcvt_modify_tests): Same.
10197         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
10198         UNSPEC_OPTIONAL_MEMBAR constant.
10199         (builtin_read_<mode>): Delete.
10200         (builtin_write_<mode>): Delete.
10201         ("optional_membar_<mode>"): Add operand.
10203         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
10204         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
10205         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
10206         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
10207         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
10208         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
10209         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
10210         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
10211         * testsuite/gcc.target/frv/all-read-write-1.c: New.
10213 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
10215         * df.c (df_uses_record): Handle SCRATCH.
10217 2005-07-28  Steven Bosscher  <stevenb@suse.de>
10219         PR debug/20161
10220         * passes.c (rest_of_decl_compilation): If decl is a type and
10221         we have encountered errors, don't emit debug information.
10223 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
10225         * params.def: Fixed comment.
10227 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
10229         PR target/19885
10230         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
10231         (TARGET_ASM_UNALIGNED_HI_OP): Add.
10232         (TARGET_ASM_UNALIGNED_SI_OP): Add.
10234 2005-07-27  Steven Bosscher  <stevenb@suse.de>
10236         PR c++/22003
10237         * varasm.c (assemble_start_function): Don't do anything that may
10238         require a CFG if the current function is a thunk.
10240 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
10242         * doc/install.texi (Prerequisites): Mention that perl is needed
10243         to do export control in libstdc++ targetting Darwin.
10245 2005-07-27  Steven Bosscher  <stevenb@suse.de>
10247         PR rtl-optimization/17808
10248         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
10249         (sched_insns_conditions_mutex_p): Split out from...
10250         (add_dependence): ...here.  But don't call it from here.
10251         (add_dependence_list): Check sched_insns_conditions_mutex_p
10252         before calling add_dependence.
10253         (add_dependence_list_and_free): Likewise.
10254         (fixup_sched_groups): Likewise.
10255         (sched_analyze_1): Likewise.
10256         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
10257         (sched_analyze): Likewise.
10258         (sched_analyze_insn): Likewise.
10259         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
10260         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
10261         dependencies on all COND_EXEC insns to jumps ending basic blocks
10262         when doing intrablock scheduling.
10263         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
10265 2005-07-27  Jeff Law  <law@redhat.com>
10267         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
10268         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
10269         equivalency sets, correctly handle the case were vr0 has an
10270         equivalency set, but vr1 does not.
10272 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
10274         PR tree-optimization/23073
10275         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
10276         vect_print_dump_info before fprintf.
10278 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
10280         PR tree-optimize/22348
10281         * tree-ssa-loop-niter.c (number_of_iterations_cond):
10282         Fold the partial computation.
10284 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
10286         PR tree-optimization/22325
10287         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
10288         Declare.
10289         * tree-scalar-evolution.c (scev_const_prop): Add generic final
10290         value replacement.
10291         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
10292         (force_var_cost): ... this function.
10293         (compute_phi_arg_on_exit): Export.
10295 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
10297         PR tree-optimization/20773
10298         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
10299         edge.
10301 2005-07-27  Richard Guenther  <rguenther@suse.de>
10303         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
10304         Avoid pushing again if current struct contains only
10305         fields we decomposed.
10307 2005-07-27  Jan Hubicka  <jh@suse.cz>
10309         PR tree-optimization/22574
10310         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
10311         not available.
10313         * tree-tailcall.c (decrease_profile): New function.
10314         (eliminate_tail_call): Use it.
10316         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
10317         visibility flags correctly in whole program mode.
10319 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
10321         PR rtl-optimization/22472
10322         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
10324 2005-07-26  Steven Bosscher  <stevenb@suse.de>
10326         PR tree-optimization/22504
10327         * tree-complex.c (expand_complex_addition): Use 'code' instead
10328         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
10330 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
10332         * config.gcc (cpu_type): Add frv case.
10333         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
10334         (supported_defaults): Add fr550 case.
10336 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
10338         PR 22591
10339         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
10340         whether a pointer of type T * may point to objects of type T *.
10342 2005-07-26  DJ Delorie  <dj@redhat.com>
10344         * configure: Regenerate.
10346 2005-07-26  Dale Johannesen  <dalej@apple.com>
10348         * postreload-gcse.c (alloc_mem): Start CUID numbering at 1.
10350 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
10352         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
10353         Clarify use of "build" in name.
10355 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
10357         * doc/extend.texi (Raw read/write Functions): New section.
10358         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
10359         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
10360         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
10361         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
10362         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
10363         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
10364         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
10365         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
10366         * config/frv/frv.c: Add bdesc_loads global.
10367         Add bdesc_stores global.
10368         (frv_init_builtins): Add support for __builtin_{read/write}*.
10369         (frv_volatile_memref): New.
10370         (frv_expand_load_builtin): New.
10371         (frv_expand_store_builtin): New.
10372         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
10373         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
10374         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
10375         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
10376         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
10377         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
10378         (builtin_read_<mode>): New.
10379         (builtin_write_<mode>): New.
10380         (builtin_write64): New.
10381         (optional_membar_<mode>): New.
10383 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
10385         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
10386         (rather than units) against HOST_BITS_PER_WIDE_INT.
10388 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
10390         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
10391         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
10392         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
10393         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
10394         FSF address.
10396         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
10397         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
10398         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
10399         comment typos.
10400         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
10402 2005-07-26  Richard Guenther  <rguenther@suse.de>
10404         PR tree-optimization/22486
10405         * fold-const.c (fold_unary): Fold away useless component
10406         references of the form (T *)&T.x, if the address
10407         doesn't change.
10409 2005-07-25  James E Wilson  <wilson@specifixinc.com>
10411         * dwarf2out.c (add_call_src_coords_attributes): New.
10412         (gen_inlined_subroutine_die): Call it.
10413         (maybe_emit_file, init_file_table): Add comments.
10414         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
10415         maybe_emit_file.
10416         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
10417         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
10418         * tree.h (BLOCK_SOURCE_LOCATION): New.
10419         (struct tree_block): New field locus.
10421 2005-07-26  Andreas Schwab  <schwab@suse.de>
10423         PR rtl-optimization/23043
10424         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
10425         when allocating a struct unoccr.
10427 2005-07-25  Richard Henderson  <rth@redhat.com>
10429         PR 22626
10430         * tree-complex.c (gate_no_optimization): True if errors.
10431         * Makefile.in (tree-complex.o): Update dependencies.
10433 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
10435         * config/frv/predicates.md (integer_register_operand): Use
10436         GPR_AP_OR_PSEUDO_P.
10438 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
10440         PR tree-opt/22484
10441         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
10442         after fold.
10443         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
10445 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
10447         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
10448         types when flag_unsafe_math_optimizations is true.
10450 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
10452         * gcc.c (option_map): Add --sysroot.
10453         (process_command): Handle --sysroot.
10454         (display_help): Document it.
10455         * doc/cppopts.tex (-isysroot): Document.
10456         * doc/invoke.texi (--sysroot): Document.
10457         * doc/install.texi (--with-build-sysroot): Document.
10459         * Makefile.in (inhibit_libc): New variable.
10460         (INHIBIT_LIBC_CFLAGS): Likewise.
10461         (LIBGCC2_CFLAGS): Include
10462         $(INHIBIT_LIBC_CFLAGS).
10463         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
10464         ($(T)crtbegin.o): Do not use @inhibit_libc@.
10465         ($(T)crtend.o): Likewise.
10466         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
10467         ($(T)crtendS.o): Likewise.
10468         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
10469         ($(T)crtendT.o): Likewise.
10470         (stmp-fixinc): Do not complain about missing headers if
10471         inhibit_libc.
10472         * configure.ac (inhibit_libc): Set it to true/false.
10473         (--with-build-sysroot): New option.  Use it to set
10474         SYSTEM_HEADER_DIR.
10475         * configure: Regenerated.
10477 2005-07-25  Manfred Hollstein  <mh@suse.com>
10479         * calls.c (store_one_arg): Fix unsigned comparison warning.
10481 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
10483         PR other/22337
10484         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
10485         (ggc_print_statistics): Initialize variable before use.
10487 2005-07-25  Richard Guenther  <rguenther@suse.de>
10489         * tree-dfa.c (mark_new_vars_to_rename): Protect against
10490         calling with a PHI_NODE argument.
10492         * tree-flow-inline.h (overlap_subvar): Protect against
10493         possible overflow.
10495 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
10497         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
10498         * configure: Regenerate.
10500 2005-07-25  Ira Rosen  <irar@il.ibm.com>
10502         * expr.c (highest_pow2_factor): Make extern.
10503         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
10504         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
10505         record_array_differ_p, array_ptr_differ_p): Likewise.
10506         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
10507         additional cases. Call the above functions.
10508         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
10509         base_object_differ_p when there are two base objects. Otherwise, compare
10510         base address and offset. Call may_alias_p.
10511         (dump_data_reference): Use a correct field name.
10512         (analyze_array): Make static. Initialize new data-ref fields.
10513         (analyze_indirect_ref): New function.
10514         (init_data_ref): Initialize new data-ref fields.
10515         (strip_conversion): Moved from tree-vect-analyze.c.
10516         (analyze_offset_expr, get_ptr_offset, address_analysis,
10517         object_analysis): Likewise.
10518         (analyze_offset): New function.
10519         (create_data_ref): Likewise.
10520         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
10521         dimensions for ARRAY_REFs only.
10522         (build_classic_dist_vector): Make static.
10523         (access_functions_are_affine_or_constant_p): Call macro to get the
10524         address of access functions.
10525         (compute_all_dependences): Add new parameter
10526         compute_self_and_read_read_dependences. Compute self and read-read
10527         dependences if it is true.
10528         (find_data_references_in_loop): Call create_data_ref. Initialize new
10529         data-ref fields.
10530         (compute_data_dependences_for_loop): Add new parameter
10531         compute_self_and_read_read_dependences. Remove parameter nb_loops,
10532         compute nb_loops. Call compute_all_dependences,
10533         build_classic_dist_vector and build_classic_dir_vector with correct
10534         parameters.
10535         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
10536         with correct parameters. Compare dimensions for ARRAY_REFs only.
10537         (free_data_refs): Call macro to free access functions.
10538         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
10539         fields from stmt_vinfo.
10540         (struct base_object_info): New structure.
10541         (struct data_reference): Move fields to base_object_info. Add fields
10542         first_location and object_info for above structures. Move fields from
10543         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
10544         aligned_to.  Add macros to access the new fields.
10545         Update functions declarations.
10546         * tree-flow.h (is_aliased_with): Declare.
10547         * tree-loop-linear.c (linear_transform_loops): Call
10548         compute_data_dependences_for_loop with correct parameters.
10549         * tree-ssa-alias.c (is_aliased_with): New function.
10550         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
10551         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
10552         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
10553         vect_base_addr_differ_p, compute_subscript_distance and
10554         build_classic_dist_vector. Add printings. Check absolute value of
10555         distance.
10556         (vect_analyze_data_ref_dependences): Go through ddrs instead of
10557         data-refs.
10558         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
10559         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
10560         to bytes. Add printing.
10561         (vect_compute_data_refs_alignment): Go through loads and stores in one
10562         loop.
10563         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
10564         vect_analyze_data_ref_access): Likewise.
10565         (vect_analyze_pointer_ref_access): Remove.
10566         (vect_address_analysis, vect_object_analysis): Likewise.
10567         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
10568         and analyze data-refs in the loop.
10569         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
10570         fields of data-ref instead of stmt. Add init to the offset from the
10571         base.
10572         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
10573         (vect_update_init_of_dr): Likewise.
10574         (vect_update_inits_of_drs): Go through loads and stores in one loop.
10575         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
10576         removed fields.
10577         (new_loop_vec_info): Initialize new fields.
10578         (destroy_loop_vec_info): Free new fields.
10579         (vect_strip_conversion): Remove.
10580         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
10581         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
10582         datarefs. Add new field ddrs.
10583         Add macros for the new fields access.
10584         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
10585         base_aligned_p, misalignment, memtag, ptr_info and subvars.
10586         Remove their macros.
10587         * tree.h (highest_pow2_factor): Declare.
10589 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
10591         * calls.c (store_one_arg): Check for sibling call MEM arguments
10592         from already clobbered incoming argument area.
10594 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10596         * c-common.c (check_missing_format_attribute): New.
10597         * c-common.h (check_missing_format_attribute): Likewise.
10598         * c-typeck.c (convert_for_assignment): Use it.
10600 2005-07-24  Andreas Schwab  <schwab@suse.de>
10602         * config/m68k/m68k.md ("extendqidi2"): When source is an address
10603         register use a word move.  Correct operand of ext.w in 68000 code.
10605 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
10607         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
10608         variables as declarations, rather than definitions.
10610 2005-07-24  Ira Rosen  <irar@il.ibm.com>
10612         PR tree-optimization/22526
10613         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
10614         of the zero node.
10616 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
10618         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
10619         that C99 reserve for future use. Use it to define clog10,
10620         clog10f and clog10l.
10622 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10624         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
10625         * configure.ac: Check for -Wmissing-format-attribute.
10627         * configure: Regenerate.
10629 2005-07-23  Richard Henderson  <rth@redhat.com>
10631         PR tree-optimization/22623
10632         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
10634 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
10636         PR target/22577
10637         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
10639 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10641         * Makefile.in (C_TREE_H): Update dependencies.
10642         * c-tree.h: Include toplev.h.
10643         * diagnostic.h (diagnostic_set_info): Add format attribute.
10644         * rtl-error.c (diagnostic_for_asm): Likewise.
10646 2005-07-23  Chao-ying Fu  <fu@mips.com>
10648         * config/mips/mips-dsp.md: New file.
10649         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
10650         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
10651         functions.
10652         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
10653         MIPS_BUILTIN_BPOSGE32.
10654         (mips_expand_builtin_direct): Add one parameter to indicate that
10655         builtin functions need to return a value.
10656         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
10657         functions.
10658         (mips_regno_to_class): Add classes for 12 new DSP registers.
10659         (mips_subword): Change to check four HI registers.
10660         (mips_output_move): Output move to and from 6 new DSP accumulators.
10661         (override_options): Make sure -mdsp and -mips16 are not used together.
10662         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
10663         for machine modes.
10664         (mips_conditional_register_usage): Disable 6 new DSP accumulators
10665         when !TARGET_DSP.
10666         (print_operand): Add 'q' for printing DSP accumulators.
10667         (mips_cannot_change_mode_class): Check ACC_REGS.
10668         (mips_secondary_reload_class): Check ACC_REGS.
10669         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
10670         (mips_register_move_cost): Check ACC_REGS.
10671         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
10672         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
10673         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
10674         (dsp_bdesc): New array.
10675         (bdesc_arrays): Add DSP builtin function table.
10676         (mips_prepare_builtin_arg): Check predicate again after
10677         copy_to_mode_reg.
10678         (mips_expand_builtin): Add one more parameter to
10679         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
10680         MIPS_BUILTIN_BPOSGE32.
10681         (mips_init_builtins): Initialize new function types.
10682         (mips_expand_builtin_direct): Check if builtin functions need to
10683         return a value and pass operands properly.
10684         (mips_expand_builtin_bposge): New function.
10685         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
10686         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
10687         (FIRST_PSEUDO_REGISTER): Increase to 188.
10688         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
10689         Update for 12 new DSP registers.
10690         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
10691         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
10692         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
10693         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
10694         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
10695         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
10696         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
10697         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
10698         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
10699         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
10700         (REGISTER_NAMES): Add names for 12 new DSP registers.
10701         * config/mips/mips.md: Include mips-dsp.md.
10702         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
10703         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
10704         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
10705         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
10706         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
10707         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
10708         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
10709         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
10710         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
10711         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
10712         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
10713         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
10714         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
10715         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
10716         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
10717         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
10718         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
10719         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
10720         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
10721         (UNSPEC_RDDSP): New constants.
10722         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
10723         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
10724         A<-d alternative.
10725         * config/mips/mips.opt (-mdsp): New option.
10726         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
10727         (reg_imm10_operand): New predicates.
10728         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
10729         * doc/invoke.texi (-mdsp): Document new option.
10731 2005-07-22  DJ Delorie  <dj@redhat.com>
10733         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
10734         to warning calls.
10735         * tree-inline.c (inlinable_function_p): Likewise.
10737 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
10739         PR debug/21828
10740         * toplev.c (check_global_declarations): Do not mark undefined
10741         variables as DECL_IGNORED_P.
10742         * varasm.c (first_global_object_name): GTY it.
10743         (weak_global_object_name): Likewise.
10744         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
10745         a string to go into {weak,first}_global_object_name.
10747 2005-07-22  DJ Delorie  <dj@redhat.com>
10749         * c-format.c (check_function_format): Change warning control
10750         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
10752 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
10754         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
10755         &PTR->FLD a dereference of PTR.
10756         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
10757         a potential dereference of PTR.
10759 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
10761         PR rtl-optimization/20370
10762         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
10763         call allocate_reg_info if necessary.
10765         PR rtl-optimization/21848
10766         * calls.c (emit_library_call_value_1): For const functions, add
10767         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
10769         PR rtl-optimization/22445
10770         * cselib.c (target.h): Include.
10771         (rtx_equal_for_cselib_p): Allow commutative matches.
10772         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
10773         Remove MODE parameter.  Changed all callers.
10775         PR rtl-optimization/22258
10776         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
10777         New functions.
10778         (try_combine): Use likely_spilled_retval_p.
10780 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
10782         * config.gcc: Add crx-elf support.
10784         * doc/contrib.texi: Mention crx.
10785         * doc/extend.texi: Document crx extensions.
10786         * doc/install.texi: Document crx install.
10787         * doc/invoke.texi: Document crx options.
10788         * doc/md.texi: Document crx constraints.
10790         * config/crx/crx-protos.h: New file.
10791         * config/crx/crx.c: New file.
10792         * config/crx/crx.h: New file.
10793         * config/crx/crx.md: New file.
10794         * config/crx/crx.opt: New file.
10795         * config/crx/t-crx: New file.
10797 2005-07-22  Manfred Hollstein  <mh@suse.com>
10799         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
10800         warnings.
10801         (int_add_graph_edge): Likewise.
10802         (collapse_nodes): Likewise.
10803         (process_unification_queue): Likewise.
10805 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10806             Laurent GUERBY  <laurent@guerby.net>
10808         PR tree-optimization/22336
10809         * function.c (record_block_change): Check for
10810         cfun->ib_boundaries_block.
10812 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
10814         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
10815         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
10817 2005-07-21  DJ Delorie  <dj@redhat.com>
10819         * toplev.c (warn_deprecated_use): Add warning control to warning
10820         call.
10821         * c-typeck.c (parser_build_binary_op): Likewise.
10822         (c_finish_if_stmt): Likewise.
10823         * c-common.c (check_function_sentinel): Likewise.
10824         (check_nonnull_arg): Likewise.
10826 2005-07-21  Richard Henderson  <rth@redhat.com>
10828         PR tree-opt/22504
10829         * tree-complex.c (complex_ssa_name_components): New.
10830         (cvc_lookup): Allow entry not found.
10831         (create_components): Remove.
10832         (create_one_component_var, get_component_var): New.
10833         (get_component_ssa_name, set_component_ssa_name): New.
10834         (extract_component): Use get_component_ssa_name.
10835         (update_complex_components): Use set_component_ssa_name.
10836         (update_complex_components_on_edge): Likewise.
10837         (update_phi_components): Create new PHI nodes directly, instead
10838         of adding insns to edges.
10839         (tree_lower_complex): Allocate and free complex_variable_components
10840         and complex_ssa_name_components here.
10842 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
10844         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
10845         revert to returning false.
10847 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
10849         PR target/21149
10850         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
10852 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
10854         PR target/22576
10855         * config/i386/i386.md (cmpxf): Change operand constraints
10856         to "nonmemory_operand".
10858 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
10860         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
10862 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
10864         PR middle-end/21180
10865         * fold-const.c (fold_build1): Add checksum for the operands.
10866         (fold_build2): Likewise.
10867         (fold_build3): Likewise.
10869 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
10871         PR middle-end/19055
10872         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
10874 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
10876         * common.opt (-fforward-propagate): Committed by mistake,
10877         removed.
10879 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
10881         * reg-stack.c: Fix comment typo(s).
10882         * tree-ssa-operands.c: Likewise.
10883         * tree-vectorizer: Likewise.
10885 2005-07-21  Nick Clifton  <nickc@redhat.com>
10887         * config/sh/symbian.c: Replace C++ style line comments with C
10888         style line comments.
10889         (symbian_add_attribute): Do not use a ? operator on the LHS of
10890         an assignment.
10891         (sh_symbian_handle_dll_attribute): Change the type of the
10892         method vector to "VEC(tree,gc)*" and use vector accessor
10893         macros to walk over the elements.
10894         (symbian_export_vtable_and_rtti_p): Likewise.
10895         (symbian_class_needs_attribute_p): Likewise.
10897 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
10899         PR target/22085
10900         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
10901         initialize targetm.resolve_overloaded_builtin here.
10902         (altivec_expand_overloaded_builtin): Make it non-static.
10903         * config/rs6000/rs6000-protos.h
10904         (altivec_expand_overloaded_builtin): New prototype.
10905         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
10906         targetm.resolve_overloaded_builtin here.
10907         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
10909 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
10910             Zdenek Dvorak  <dvorakz@suse.cz>
10912         PR tree-optimization/19210
10913         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
10914         New.
10915         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
10916         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
10917         rely on unproven assumptions.
10918         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
10919         * tree-flow.h (number_of_iterations_exit): Add final parameter.
10920         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
10921         to number_of_iterations_exit.
10922         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
10923         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
10924         * tree-ssa-loop-niter.c (find_loop_niter,
10925         estimate_numbers_of_iterations_loop): Likewise.
10926         (number_of_iterations_exit): Honor the new options.
10927         * doc/invoke.texi (Wunsafe-loop-optimizations,
10928         funsafe-loop-optimizations): Document them.
10930 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
10932         PR rtl-optimization/22167
10933         * gcse.c (hoist_code): Fix hoist_exprs[] check.
10935 2005-07-20  Adam Nemet  <anemet@lnxw.com>
10937         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
10938         __do_global_dtors_aux longcall.
10940 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
10942         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
10943         (old_special_pred_table): Don't reference
10944         SPECIAL_MODE_PREDICATES.
10945         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
10946         * config/arc/arc.h: Don't mention PREDICATE_CODES.
10947         * config/sh/predicates.h: Don't mention
10948         SPECIAL_MODE_PREDICATES.
10949         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
10950         Remove.
10952 2005-07-20  DJ Delorie  <dj@redhat.com>
10954         * config.gcc: Add m32c-elf support.
10956         * doc/contrib.texi: Mention m32c.
10957         * doc/extend.texi: Document m32c extensions.
10958         * doc/install.texi: Mention m32c.
10959         * doc/invoke.texi: Document m32c options.
10960         * doc/md.texi: Document m32c constraints.
10962         * config/m32c/addsub.md: New file.
10963         * config/m32c/bitops.md: New file.
10964         * config/m32c/cond.md: New file.
10965         * config/m32c/jump.md: New file.
10966         * config/m32c/m32c-lib1.S: New file.
10967         * config/m32c/m32c-lib2.c: New file.
10968         * config/m32c/m32c-modes.def: New file.
10969         * config/m32c/m32c-pragma.c: New file.
10970         * config/m32c/m32c-protos.h: New file.
10971         * config/m32c/m32c.abi: New file.
10972         * config/m32c/m32c.c: New file.
10973         * config/m32c/m32c.h: New file.
10974         * config/m32c/m32c.md: New file.
10975         * config/m32c/m32c.opt: New file.
10976         * config/m32c/minmax.md: New file.
10977         * config/m32c/mov.md: New file.
10978         * config/m32c/muldiv.md: New file.
10979         * config/m32c/predicates.md: New file.
10980         * config/m32c/prologue.md: New file.
10981         * config/m32c/shift.md: New file.
10982         * config/m32c/t-m32c: New file.
10984 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10986         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
10987         (stack_protect_set, stack_protect_test): New expanders.
10988         (stack_protect_set_si, stack_protect_set_si_media,
10989         stack_protect_set_di_media, stack_protect_test_si,
10990         stack_protect_test_si_media, stack_protect_test_di_media):
10991         New insns.
10993 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
10995         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
10997 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
10999         * tree.h (tree_expr_nonzero_p): Export.
11000         * fold-const.c (tree_expr_nonzero_p): Likewise.
11001         Return true for CALL_EXPRs that are alloca calls.
11002         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
11003         against zero.
11004         * tree-flow.h (expr_computes_nonzero): Remove.
11005         * tree-vrp.c (expr_computes_nonzero): Remove.
11006         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
11007         (extract_range_from_unary_expr): Likewise.
11008         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
11009         tree_expr_nonzero_p.
11011 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
11013         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
11014         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
11015         extra arg "picreg" and use it instead of pic_offset_table_rtx.
11016         All callers changed.
11017         (frame_related_constant_load): New arg "related" which controls
11018         setting of RTX_FRAME_RELATED_P.  All callers changed.
11019         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
11020         (bfin_expand_prologue): Add stack limit checking.
11021         * config/bfin/bfin.md (trapifcc): New pattern.
11023         * config/bfin/bfin.c: Include "langhooks.h".
11024         (def_builtin): Go through lang_hooks to call builtin_function.
11026         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
11027         * config/bfin/predicates.md (symbol_ref_operand): New.
11028         (call_insn_operand): Delete.  All callers changed to use
11029         register_no_elim_operand.
11030         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
11031         call_cookie field.
11032         (function_arg): Use it to generate the call's operand 2.
11033         (bfin_longcall_p): New function.
11034         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
11035         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
11036         determine if the address needs to be in a REG.
11037         (bfin_handle_longcall_attribute): New function.
11038         (bfin_attribute_table): Add "longcall" and "shortcall".
11039         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
11040         (CUMULATIVE_ARGS): New member call_cookie.
11041         (PREDICATE_CODES): Add symbol_ref_operand.
11042         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
11043         extra USE to the pattern.
11044         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
11045         New patterns, split off call_insn, sibcall_insn, call_value_insn and
11046         sibcall_value_insn; now the new patterns handle direct calls and the
11047         old ones indirect calls.
11048         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
11050 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
11052         * doc/trouble.texi: Update section on handling of empty loops.
11054 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
11056         * config.gcc: Remove support for sparc-*-openbsd*,
11057         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
11058         ns32k-*-netbsd*.
11059         * config.host: Remove support for i860-*-sysv4* as a host.
11060         * config/i860/*, config/ip2k/*, config/ns32k/*,
11061         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
11062         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
11063         mention obsolete ports.
11065 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
11067         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
11068         soft frame pointer.
11069         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
11070         of frame_pointer_rtx.
11071         (sh_expand_epilogue): Likewise.
11072         (sh_set_return_address): Likewise.
11073         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
11074         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
11075         offsets from FRAME_POINTER_REGNUM.
11076         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
11077         (sh_register_names): Add initializer for sfp.
11078         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
11079         (VALID_REGISTER_P): Likewise.
11080         (FIRST_PSEUDO_REGISTER): Update.
11081         (DWARF_FRAME_REGISTERS): Define.
11082         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
11083         (HARD_FRAME_POINTER_REGNUM): Define.
11084         (FRAME_POINTER_REGNUM): Redefine.
11085         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
11086         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
11087         from FRAME_POINTER_REGNUM.
11088         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
11089         FRAME_POINTER_REGNUM.
11090         (REG_CLASS_CONTENTS): Add sfp.
11091         (REG_ALLOC_ORDER): Likewise.
11092         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
11093         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
11094         of frame_pointer_rtx.
11095         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
11097 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
11099         * fold-const.c (tree_expr_nonnegative_p): Only return true for
11100         ABS_EXPR when flag_wrapv is false because of INT_MIN.
11101         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
11102         of an ABS_EXPR.
11103         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
11104         ABS_EXPR<x>.
11106 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
11108         Make CONSTRUCTOR use VEC to store initializers.
11109         * c-common.c (complete_array_type): Update to cope with VEC in
11110         CONSTRUCTOR_ELTS.
11111         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
11112         (pp_c_constructor_elts): New function.
11113         * c-pretty-print.h (pp_c_constructor_elts): Declare.
11114         * c-typeck.c (build_function_call, build_c_cast, digest_init,
11115         struct constructor_stack, struct initializer_stack,
11116         constructor_elements, push_init_level, pop_init_level,
11117         add_pending_init, find_init_member, output_init_element): Update to
11118         cope with VEC in CONSTRUCTOR_ELTS.
11119         * coverage.c (build_fn_info_value, build_ctr_info_value,
11120         build_gcov_info): Likewise.
11121         * expr.c (categorize_ctor_elements_1, store_constructor,
11122         expand_expr_real_1): Likewise.
11123         * fold-const.c (fold_ternary): Likewise.
11124         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
11125         gimplify_init_constructor, gimplify_expr): Likewise.
11126         * tree-dump.c (dequeue_and_dump): Likewise.
11127         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
11128         node.
11129         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
11130         CONSTRUCTOR_ELTS.
11131         * tree-sra.c (generate_element_init_1): Likewise.
11132         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
11133         * tree-ssa-operands.c (get_expr_operands): Likewise.
11134         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
11135         * tree-vect-transform.c (vect_get_vec_def_for_operand):
11136         (get_initial_def_for_reduction): Likewise.
11137         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
11138         value handle in annotations.
11139         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
11140         tree_node_structure): Add support for constr_kind.
11141         (build_vector_from_ctor, build_constructor_single,
11142         build_constructor_from_list): New functions.
11143         (build_constructor): Update to take a VEC instead of a TREE_LIST.
11144         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
11145         Update to cope with VEC in CONSTRUCTOR_ELTS.
11146         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
11147         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
11148         CONSTRUCTOR_APPEND_ELT): New macros.
11149         (struct constructor_elt, struct tree_constructor): New data types.
11150         (union tree_node): Add tree_constructor field.
11151         * treestruct.def: Define TS_CONSTRUCTOR.
11152         * varasm.c (const_hash_1, compare_constant, copy_constant,
11153         compute_reloc_for_constant, output_addressed_constants,
11154         initializer_constant_valid_p, output_constant,
11155         array_size_for_constructor, output_constructor): Update to cope with
11156         VEC in CONSTRUCTOR_ELTS.
11157         * vec.h (VEC_empty, VEC_copy): New macros.
11159 2005-07-19  Devang Patel  <dpatel@apple.com>
11161         * dbxout.c (dbxout_type): Check Objective-C++ lang.
11163 2005-07-19  Richard Henderson  <rth@redhat.com>
11165         PR tree-opt/22278
11166         * gimplify.c (gimplify_expr): Use main variant type for the temp
11167         destination for a discarded volatile read.
11168         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
11169         casts between non-void types that change volatility.
11171 2005-07-15  DJ Delorie  <dj@redhat.com>
11173         * toplev.h: Add comment about the first parameter for warning().
11174         * errors.h: Likewise.
11176         * c.opt (Wpragmas): New.
11177         * doc/invoke.texi: Document it.
11179         * function.c (do_warn_unused_parameter): Add warning control to
11180         warning call.
11181         * c-decl.c (warn_if_shadowing): Likewise.
11182         * c-lex.c (cb_def_pragma): Likewise.
11183         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
11184         (pop_alignment): Likewise.
11185         (handle_pragma_pack): Likewise.
11186         (apply_pragma_weak): Likewise.
11187         (handle_pragma_weak): Likewise.
11188         (handle_pragma_redefine_extname): Likewise.
11189         (add_to_renaming_pragma_list): Likewise.
11190         (handle_pragma_extern_prefix): Likewise.
11191         (maybe_apply_renaming_pragma): Likewise.
11192         (handle_pragma_visibility): Likewise.
11194         * config/c4x/c4x-c.c (BAD): Likewise.
11195         (c4x_parse_pragma): Likewise.
11196         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
11197         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
11198         (rs6000_pragma_longcall): Likewise.
11199         * config/v850/v850-c.c (pop_data_area): Likewise.
11200         (ghs_pragma_section): Likewise.
11201         (ghs_pragma_section): Likewise.
11202         (ghs_pragma_interrupt): Likewise.
11203         (ghs_pragma_starttda): Likewise.
11204         (ghs_pragma_startsda): Likewise.
11205         (ghs_pragma_startzda): Likewise.
11206         (ghs_pragma_endtda): Likewise.
11207         (ghs_pragma_endsda): Likewise.
11208         (ghs_pragma_endzda): Likewise.
11210 2005-07-19  Danny Berlin <dberlin@dberlin.org>
11211             Kenneth Zadeck <zadeck@naturalbridge.com>
11213         * Makefile.in: Removed tree-promote-statics.c
11214         * tree-promote-statics.c: Removed.
11215         * common.opt: Removed flag-promote-statics.
11216         * opts.c: Ditto.
11217         * passes.c: Removed tree-promote-statics pass.
11218         * tree-pass.h: Ditto.
11219         * timevar.def: Removed TV_PROMOTE_STATICS.
11222 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
11224         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
11225         and *-*-freebsd9.
11226         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
11228 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11230         PR c/22476
11231         * c-common.c (check_function_arguments): Call
11232         'check_function_format' if either -Wformat or
11233         -Wmissing-format-attribute are specified.
11234         * c-format.c (check_function_format): Check -Wformat before
11235         calling 'check_format_info'.
11236         * c-opts.c (c_common_post_options): Don't warn for
11237         -Wmissing-format-attribute without -Wformat.
11238         * c-typeck.c (convert_for_assignment): Detect additional cases for
11239         -Wmissing-format-attribute.
11240         * doc/invoke.texi (-Wmissing-format-attribute): Document new
11241         behavior.
11243 2005-07-19  Richard Guenther  <rguenther@suse.de>
11245         * config/i386/i386.md (lrint<mode>2): Use temporary
11246         instead of clobbering non-existent memory.
11248 2005-07-19  Nick Clifton  <nickc@redhat.com>
11250         * config/avr/avr.c (legitimate_address_p): Fix debugging print
11251         statement to avoid displaying ASCII control characters.
11253 2005-07-19  Ben Elliston  <bje@au.ibm.com>
11255         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
11256         * cfganal.c (find_edge_index): Ditto.
11257         * combine.c (combine_instructions): Ditto.
11258         * ddg.c (create_scc): Ditto.
11259         (find_successors): Ditto.
11260         (find_predecessors): Ditto.
11261         (find_nodes_on_paths): Ditto.
11262         (longest_simple_path): Ditto.
11263         * flow.c (update_life_info): Ditto.
11264         (count_or_remove_death_notes): Ditto.
11265         (clear_log_links): Ditto.
11266         * modulo-sched.c (generate_reg_moves): Ditto.
11267         (find_max_asap): Ditto.
11268         (find_max_hv_min_mob): Ditto.
11269         (find_max_dv_min_mob): Ditto.
11270         * sbitmap.c (sbitmap_first_set_bit): Ditto.
11271         * sched-rgn.c (extract_edgelst): Ditto.
11272         * tree-into-ssa.c (prepare_names_to_update): Ditto.
11273         (dump_update_ssa): Ditto.
11274         (ssa_names_to_replace) Ditto.
11275         (switch_virtuals_to_full_rewrite): Ditto.
11276         (update_ssa): Ditto.
11277         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
11279 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
11281         Fix PR tree-optimization/22483
11283         * tree-complex.c (create_components): Use
11284         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
11285         * tree-flow-inline.h (fill_referenced_var_vec): New function.
11286         * tree-flow.h (safe_referenced_var_iterator): New structure.
11287         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
11288         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
11289         safe_referenced_var iterator.
11290         (add_type_alias): Ditto.
11292 2005-07-19  Steven Bosscher  <stevenb@suse.de>
11294         * loop-init.c (rest_of_handle_loop2): Remove.
11295         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
11296         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
11297         (pass_rtl_loop_init, pass_rtl_loop_done,
11298         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
11299         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
11300         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
11301         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
11302         pass_tree_loop_done, and pass_tree_unswitch.
11303         (gate_loop): Rename to gate_tree_loop.
11304         * passes.c (init_optimization_passes): Update for renamed tree
11305         loop passes.  Add the new loop2 passes as subpasses of loop2.
11306         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
11307         Update for the renamed tree loop passes.
11309 2005-07-18  Ian Lance Taylor  <ian@airs.com>
11311         PR middle-end/22057
11312         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
11313         blocks when optimizing.
11315 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
11317         * common.opt (frename-registers): Initialize to 2.
11318         (fweb): Ditto.
11319         (fgcse-after-reload): Ditto.
11320         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
11321         (process_options): Only change flag_web, flag_rename_registers,
11322         and flag_rerun_cse_after_loop if not explicitly set by user.
11324 2005-07-18  Jan Beulich  <jbeulich@novell.com>
11326         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
11327         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
11328         in 64-bit mode the same as DImode in 32-bit mode.
11329         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
11330         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
11331         mode. Add new mode parameter.
11332         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
11333         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
11334         x86_64_shift_adj): New expanders.
11335         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
11336         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
11337         insns.
11338         Respective new splitters. Use renamed shift splitter helpers in 32-bit
11339         DImode shift splitters.
11340         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
11341         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
11342         mode parameter.
11344 2005-07-18  Jan Beulich  <jbeulich@novell.com>
11346         * i386.md (movdi_extzv_1): New.
11347         (zero_extendhidi2): Combine alternatives and never force use of
11348         REX64 prefix.
11349         (zero_extendqidi2): Likewise. Don't restrict input selection.
11351 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
11353         Fix PR tree-optimization/22531
11354         * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
11355          moment.
11357 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
11359         * tree-promote-statics.c (pass_promote_statics): Change dump file
11360          name.
11362 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
11364         * tree-optimize.c (init_tree_optimization_passes): Add
11365         pass_eliminate_useless_stores pass.
11366         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
11367         * tree-ssa-pre.c (is_copy_stmt): New function.
11368         (follow_copies_till_vuse): Ditto.
11369         (do_eustores): Ditto.
11370         (gate_eustores): Ditto.
11372 2005-07-16  Richard Henderson  <rth@redhat.com>
11374         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
11376 2005-07-16 Danny Berlin <dberlin@dberlin.org>
11377            Kenneth Zadeck <zadeck@naturalbridge.com>
11379         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
11380         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
11381         ipa-type-escape.h, tree-promote-statics.c
11382         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
11383         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
11384         tree-promote-statics.c: new files.
11385         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
11386         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
11387         int nonlocal_set_p, mark_constant_function): Deleted.
11388         (rest_of_handle_cfg): Removed call to mark_constant_function.
11389         (nonoverlapping_component_refs_p): Added calls to support
11390         type based aliasing.
11391         * tree-ssa-alias.c (may_alias_p,
11392         compute_flow_insensitive_aliasing): Ditto.
11393         * calls.c (flags_from_decl_or_type): Removed reference to
11394         cgraph_rtl_info.
11395         * c-typeck.c (convert_arguments): Make builtins tolerant of having
11396         too many arguments.  This is necessary for Spec 2000.
11397         * cgraph.h (const_function, pure_function): Removed.
11398         * common.opt: Added "fipa-pure-const", "fipa-reference",
11399         "fipa-type-escape", and "ftree-promote-static".
11400         * opts.c: Ditto.
11401         * passes.c: Added ipa and tree-promote-statics passes.
11402         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
11403         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
11404         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
11405         * tree-flow.h: Added exposed sra calls and addition of
11406         reference_vars_info field for FUNCTION_DECLS.
11407         * tree-pass.h: Added passes.
11408         * tree-sra.c: (sra_init_cache): New function.
11409         (sra_insert_before, sra_insert_after) Made public.
11410         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
11411         and made public.
11412         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
11413         aliasing. (may_alias_p): Added code to use type escape analysis to
11414         improve alias sets.
11415         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
11416         code to prune clobbers of static variables based on information
11417         produced in ipa-reference pass.  Changed call clobbering so that
11418         statics are not marked as clobbered if the call does not clobber
11419         them.
11421 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
11423         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
11424         too.
11426 2005-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
11428         * doc/install.texi (*-*-solaris2*): Document recommended version
11429         of GNU binutils and mention GNU linker problem on Solaris 10.
11431 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
11433         PR c/22421
11434         * c-decl.c (c_build_bitfield_integer_type): New function.
11435         (finish_struct): Call it.
11436         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
11438 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11440         * c-typeck.c (digest_init): Call 'convert_for_assignment'
11441         before returning.
11443 2005-07-16  Jan Hubicka  <jh@suse.cz>
11445         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
11446         (scale_bbs_frequencies_int): Watch roundoff errors.
11447         * predict.c (return_prediction): Initialize return_stmt.
11449 2005-07-16  Jan Hubicka  <jh@suse.cz>
11451         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
11452         after RTL profiling.
11454 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
11456         PR middle-end/22398
11457         * fold-const.c (build_range_check): Convert high/low to etype
11458         if we are only comparing against exp.
11460 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
11462         Fix PR tree-optimization/22376
11463         * tree-ssa-structalias.c (build_constraint_graph): We really meant
11464         special var here.
11465         (need_to_solve): New function.
11466         (compute_points_to_sets): Use it.
11468 2005-07-15  Jan Hubicka  <jh@suse.cz>
11470         * cfg.c (update_bb_profile_for_threading): More diagnostic.
11471         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
11473 2005-07-15  Richard Guenther  <rguenther@suse.de>
11475         * c-common.c (handle_flatten_attribute): New function.
11476         Add flatten function attribute.
11477         * doc/extend.texi: Document flatten function attribute.
11478         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
11479         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
11480         New functions.
11481         (cgraph_decide_inlining): Handle functions with flatten
11482         attribute.
11484 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
11486         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
11487         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
11488         UNSPEC_XCHG, UNSPEC_AND): New.
11489         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
11490         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
11491         * config/rs6000/sync.md (FETCHOP): New code macro.
11492         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
11493         New code attrs.
11494         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
11495         (sync_compare_and_swap<mode>): Same.
11496         (sync_lock_test_and_set<mode>): Same.
11497         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
11498         for QImode and HImode, and not PPC405.
11499         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
11500         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
11501         (sync_<fetchop>{si,di}_internal): New.
11502         (sync_nand{si,di}_internal): New.
11503         (sync_old_<fetchop>{si,di}_internal): New.
11504         (sync_old_nand{si,di}_internal): New
11505         (sync_new_<fetchop>{si,di}_internal): New.
11506         (sync_new_nand{si,di}_internal): New.
11507         (atomic_and{si,di}): New.
11508         (sync_new_nand{si,di}_internal): New.
11509         (atomic_and{si,di}): New.
11510         (sync_add<mode>_internal): Delete.
11511         (sync_addshort_internal): Use unspec instead of unspec_volatile.
11512         (sync_sub<mode>_internal): Delte.
11513         (sync_subshort_internal): New.
11514         (sync_andsi_internal): Use unspec instead of unspec_volatile.
11515         (sync_anddi_internal): Delete.
11516         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
11517         (sync_booldi_internal): Delete.
11518         (sync_boolc<mode>_internal): Delete.
11519         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
11520         (sync_boolc<mode>_internal2): Delete.
11521         (sync_boolcc<mode>_internal): Delete.
11522         (isync, lwsync): Use unspec instead of unspec_volatile.
11523         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
11524         Revert UNSPEC_VOLATILE.
11525         (rs6000_split_atomic_op): New.
11526         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
11528 2005-07-14  Eric Christopher  <echristo@redhat.com>
11530         * config/mips/mips.c (mips_canonicalize_comparison): Cast
11531         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
11533 2005-07-14  Eric Christopher  <echristo@redhat.com>
11535         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
11537 2005-07-14  Steven Bosscher  <stevenb@suse.de>
11539         PR tree-optimization/22230
11540         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
11541         the computation of the four cross productions for "range op range".
11543 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
11544             Ulrich Weigand  <uweigand@de.ibm.com>
11546         PR target/20126
11547         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
11548         in some insn.
11550 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
11552         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
11554 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
11556         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
11558 2005-07-14  Richard Guenther  <rguenther@suse.de>
11560         PR middle-end/22347
11561         * config/i386/i386-protos.h (ix86_function_value): Change
11562         prototype to match new target hook.
11563         * config/i386/i386.c (ix86_value_regno): Change prototype
11564         to take extra type argument.
11565         (TARGET_FUNCTION_VALUE): Define.
11566         (ix86_function_ok_for_sibcall): Pass extra argument to
11567         ix86_value_regno, check return slot rtx for exact match.
11568         (ix86_function_value): Take extra parameter.  Dispatch to
11569         ix86_value_regno with fndecl/fntype as provided.
11570         (ix86_value_regno): Handle extra type argument.
11571         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
11573         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
11574         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
11575         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
11576         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
11577         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
11579 2005-07-14  Richard Guenther  <rguenther@suse.de>
11581         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
11582         * calls.c (expand_call): Pass fntype to hard_function_value.
11583         (emit_library_call_value_1): Likewise.
11584         * explow.c: Include target.h.
11585         (hard_function_value): Take extra argument, the fntype.
11586         Use new target hook for function_value.
11587         * expr.h (hard_function_value): Change prototype.
11588         * function.c (aggregate_value_p): Pass 0 as fntype to
11589         hard_function_value.
11590         (assign_parms): Use new target hook for function_value.
11591         Pass 0 as fntype to hard_function_value.
11592         (expand_function_end): Likewise.
11593         * reg-stack.c: Include target.h.
11594         (stack_result): Use new target hook for function_value.
11595         * target-def.h: New target hook function_value.
11596         * target.h: Likewise.
11597         * targhooks.c (default_function_value): New function.
11598         * targhooks.h (default_function_value): Declare.
11600 2005-07-13  Ian Lance Taylor  <ian@airs.com>
11602         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
11604 2005-07-14  Jan Hubicka  <jh@suse.cz>
11606         * tree-dfa.c (dump_variable): Use default_def function.
11607         * tree-ssa-alias.c (dump_points_to_info): Likewise.
11608         * tree-ssa.c (verify_use): Likewise.
11609         * tree-ssanames.c (release_ssa_name): Likewise.
11610         * tree-tailcall.c (eliminate_tail_call): Likewise.
11611         (tree_optimize_tail_calls_1): Likewise.
11612         * tree-vrp.c (get_value_range): Likewise.
11614 2005-07-14  Ben Elliston  <bje@au.ibm.com>
11616         * gcc.c (main): Compare language[0] with '*' when iterating over
11617         the infiles.
11619 2005-07-13  Adrian Straetling  <straetling@de.ibm.com>
11621         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
11622         "s390_emit_compare".  Add handling of CCZ1mode.
11623         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
11624         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
11625         checking.
11626         (s390_branch_condition_mask): Add CCZ1mode handling.
11627         * config/s390/s390.md: ("seq", "*seq"): New pattern.
11628         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
11629         Use CCZ1mode instead of CCZmode.
11630         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
11632 2005-07-13  Adrian Straetling  <straetling@de.ibm.com>
11634         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
11635         pattern.
11636         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
11638 2005-07-13  Eric Christopher  <echristo@redhat.com>
11640         * config/mips/mips.c (mips_canonicalize_comparison): New.
11641         (mips_emit_int_relational): Use.
11643 2005-07-13  Eric Christopher  <echristo@redhat.com>
11645         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
11646         static extra parts.
11647         * config/s390/s390.md: Include tpf.md. Move tpf specific
11648         patterns...
11649         * config/s390/tpf.md: To here.
11650         * config/s390/s390.opt: Move tpf specific options...
11651         * config/s390/tpf.opt: to here. Add mmain option.
11652         * config/s390/tpf-unwind.h: Remove unnecessary defines.
11653         * config/s390/tpf.h: Rewrite.
11655 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
11657         * doc/tm.texi: Remove @xref{Cross-profiling}.
11659 2005-07-13  Jeff Law  <law@redhat.com>
11661         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
11662         expressions, test their _DECL operands for pointer equality rather
11663         than using operand_equal_p.
11665 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
11667         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
11668         (TARGET_POSIX_IO): This.
11669         * config/darwin.h: Likewise.
11670         * config/freebsd.h: Likewise.
11671         * config/linux.h: Likewise.
11672         * config/lynx.h: Likewise.
11673         * config/netbsd.h: Likewise.
11674         * config/rs6000/linux64.h: Likewise.
11675         * config/rs6000/linux.h: Likewise.
11676         * config/s390/tpf.h: Likewise.
11677         * config/sh/embed-elf.h: Likewise.
11678         * config/sparc/linux64.h: Likewise.
11679         * config/sparc/linux.h: Likewise.
11680         * config/svr4.h: Likewise.
11681         * gcov-io.h: Likewise.
11683         * doc/tm.texi: Updated.
11685         * libgcov.c (create_file_directory): Defined only if
11686         TARGET_POSIX_IO is defined.
11687         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
11688         is defined.
11690 2005-07-13  Jan Hubicka  <jh@suse.cz>
11692         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
11694 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
11696         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
11697         structure as argument.
11699 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
11701         PR tree-optimization/21921
11702         * tree-iterator.c (tsi_link_before): Support the case when
11703         tsi_end_p (tsi) == true.
11705 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
11707         PR tree-optimization/22442
11708         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
11709         correctly.
11711 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
11713         PR rtl-optimization/20376
11714         * toplev.c (process_options): Enable -fweb and -frename-registers when
11715         unrolling.
11716         * doc/invoke.texi: Update the information about when -fweb and
11717         -frename-registers are enabled.
11719 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
11721         PR tree-opt/21840
11722         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
11723         if *rhs_p is not a SSA_NAME.
11725 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
11727         Fix PR tree-optimization/22422
11728         * tree-ssa-structalias.c (struct variable_info): Add flag for
11729         special vars.
11730         (get_varinfo): Now a static function.
11731         (new_varinfo): init has_union and is_special_var to false.
11732         (solution_set_add): Check has_union.
11733         (do_da_constraint): Move temporary variable so it gets reset
11734         properly.
11735         Also check for special variable.
11736         (do_ds_constraint): Ditto.
11737         (do_sd_constraint): Ditto.
11738         (do_structure_copy): Check for special variable.
11739         (find_func_aliases): Ditto.
11740         (init_base_vars): Set special vars properly.
11742 2005-07-13  Jan Hubicka  <jh@suse.cz>
11744         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
11745         do unit-at-a-time.
11747         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
11748         (get_expr_operands): Fix thinko wrt flags and subvars.
11750         PR tree-optimize/22379
11751         * tree-inline.c (expand_call_inline): Do not output sorry in early
11752         inlining.
11754 2005-07-12  Dale Johannesen  <dalej@apple.com>
11756         * config/rs6000.c (rs6000_rtx_cost): Move FLOAT_EXTEND.
11758 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
11760         PR bootstrap/21704
11761         * host-linux.h: Include limits.h.
11763 2005-07-12  Dale Johannesen  <dalej@apple.com>
11765         * expr.c (compress_float_constant): Add cost check.
11766         * config/rs6000.c (rs6000_rtx_cost): Adjust FLOAT_EXTEND cost.
11768 2005-07-12  Dale Johannesen  <dalej@apple.com>
11770         * gcc.target/i386/compress-float-sse.c: New.
11771         * gcc.target/i386/compress-float-sse-pic.c: New.
11772         * gcc.target/i386/compress-float-387.c: New.
11773         * gcc.target/i386/compress-float-387-pic.c: New.
11774         * gcc.dg/compress-float-ppc.c: New.
11775         * gcc.dg/compress-float-ppc-pic.c: New.
11777 2005-07-12  Eric Christopher  <echristo@redhat.com>
11779         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
11780         static extra parts.
11781         * config/s390/s390.md: Include tpf.md. Move tpf specific
11782         patterns...
11783         * config/s390/tpf.md: To here.
11784         * config/s390/s390.opt: Move tpf specific options...
11785         * config/s390/tpf.opt: to here. Add mmain option.
11786         * config/s390/tpf-unwind.h: Remove unnecessary defines.
11787         * config/s390/tpf.h: Rewrite.
11789 2005-07-12  Eric Christopher  <echristo@redhat.com>
11791         * gcc.c (struct infile): Update comment for language.
11792         (main): Rewrite input file resetting code.
11794 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
11796         PR tree-opt/22335
11797         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
11798         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
11799         (lookup_avail_expr): Use constant_boolean_node instead
11800         of boolean_false_node/boolean_true_node.
11802 2005-07-12  Ben Elliston  <bje@au.ibm.com>
11804         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
11805         and use it when printing num_edges.
11807 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
11809         * doc/extend.texi (Blackfin Built-in Functions): New section.
11810         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
11811         @opindex.
11813 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
11815         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
11816         s/cmpstrsi/cmpstrnsi
11817         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
11818         'cmpstrnsi'.
11819         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
11820         (init_optabs): Initialize cmpstrn_optab.
11821         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
11822         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
11823         * expr.c: (enum insn_code cmpstrn_optab): Declare.
11824         * config/i386/i386.md: s/cmpstr/cmpstrn
11825         * config/c4x/c4x.md: s/cmpstr/cmpstrn
11826         * doc/md.texi: Update documentation.
11828 2005-07-11  Richard Henderson  <rth@redhat.com>
11830         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
11831         build_va_arg_indirect_ref.
11832         (alpha_gimplify_va_arg): Likewise.
11833         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
11834         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
11835         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
11836         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
11837         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
11838         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
11839         Likewise.
11840         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
11842 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
11844         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
11845         * passes.c (init_optimization_passes): Add pass_empty_loop.
11846         * tree-pass.h (pass_empty_loop): Declare.
11847         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
11848         try_remove_empty_loop, remove_empty_loops): New functions.
11849         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
11850         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
11852 2005-07-12  Peter Barada  <peter@the-baradas.com>
11854         PR middle-end/16719
11855         PR middle-end/18421
11856         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
11857         in address registers.
11858         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
11859         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
11860         alternative of addsi3_5200.
11862 2005-07-11  Ian Lance Taylor  <ian@airs.com>
11864         * config/mips/mips.md (ffs<mode>2): Remove.
11866 2005-07-11  Ian Lance Taylor  <ian@airs.com>
11868         * doc/tree-ssa.texi (Cleanups): Improve description of
11869         TRY_FINALLY_EXPR.
11870         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
11872 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
11874         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
11875         * tree.h (DECL_ARGUMENT_FLD): New macro.
11877 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
11879         Fix PR tree-optimization/22404
11881         * tree-ssa-structalias.c (create_variable_info_for): Use
11882         correct offset.
11884 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
11886         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
11887         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
11888         for second comparison operand.
11889         * config/bfin/predicates.md (reg_or_const_int_operand): New.
11891         * config/bfin/bfin.md (define_attr "type"): Add "sync".
11892         (define_insn_reservation "alu"): Likewise.
11893         (csync, ssync): Now of type sync.
11894         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
11895         -mcsync-anomaly -mspecld-anomaly.
11896         * config/bfin/bfin.opt (mcsync): Remove.
11897         (mcsync-anomaly, mspecld-anomaly): Add.
11898         * config/bfin/bfin.c: Include "insn-codes.h".
11899         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
11900         (TARGET_DEFAULT_TARGET_FLAGS): New.
11901         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
11903 2005-07-11  Steven Bosscher  <stevenb@suse.de>
11905         * basic-block.h: Give the BB flags enum a name, bb_flags.
11906         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
11907         * cfgcleanup.c (enum bb_flags): Remove here.
11908         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
11909         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
11910         (update_forwarder_flag): Likewise.
11911         (thread_jump): Likewise.
11912         (try_forward_edges): Likewise.
11913         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
11914         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
11915         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
11917 2005-07-11  Richard Guenther  <rguenther@suse.de>
11919         * config/i386/i386.opt: New target option -msseregparm.
11920         * config/i386/i386.c (override_options): Error out for
11921         -msseregparm but no SSE support.
11922         (ix86_function_sseregparm): Check for global sseregparm.
11923         * doc/invoke.texi: Document -msseregparm.
11925 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
11927         * config.gcc (m32r-*-linux*): Use the default extra_parts.
11928         (m32rle-*-linux*): Ditto.
11930 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
11932         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
11933         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
11934         bytes.
11936 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11938         PR middle-end/22239
11939         PR target/20126
11940         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
11941         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
11943 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
11945         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
11946         (varmap): Heapify varmap.
11947         (constraints): Heapify constraints.
11948         (struct constraint_graph): Heapify succs and preds.
11949         (constraint_vec_find): Update for heapification.
11950         (constraint_set_union): Ditto.
11951         (insert_into_complex): Ditto.
11952         (constraint_edge_vec_find): Ditto.
11953         (erase_graph_self_edge): Ditto.
11954         (add_graph_edge): Ditto.
11955         (get_graph_weights): Ditto.
11956         (merge_graph_nodes): Ditto.
11957         (build_constraint_graph): Ditto.
11958         (topo_visit): Ditto.
11959         (solve_graph): Ditto.
11960         (create_variable_info_for): Ditto.
11961         (init_base_vars): Ditto.
11962         (delete_points_to_sets): Free graph, varmap, and complex constraints.
11963         (condese_varmap_nodes): Free complex vector.
11964         (clear_edges_for_node): Clear succs and preds vector.
11966 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
11968         * tree-ssa-structalias.c (update_alias_info): Change counting of
11969         references to not include vdefs.
11971 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
11973         * tree-ssa-alias.c (free_used_part_map): Add missing free.
11974         (up_insert): Ditto.
11976 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11978         * pa.c (pa_commutative_p): Make PLUS commutative when
11979         TARGET_NO_SPACE_REGS is true.
11981 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
11983         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
11984         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
11985         * tree-dfa.c (dump_subvars_for): New.
11986         (debug_subvars_for): New.
11987         (dump_variable): Show subvariables if VAR has them.
11988         * tree-flow-inline.h (get_subvar_at): New.
11989         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
11990         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
11991         Update all users.
11992         (struct subvar): Change fields offset and size to unsigned
11993         HOST_WIDE_INT.
11994         (dump_subvars_for): Declare.
11995         (debug_subvars_for): Declare.
11996         (get_subvar_at): Declare.
11997         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
11998         to unsigned HOST_WIDE_INT *.
11999         (overlap_subvar): Likewise.
12000         * tree-gimple.c (is_gimple_reg): Always return false for
12001         SFTs and memory tags.
12002         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
12003         Update all callers.
12004         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
12005         (compute_may_aliases): Call compute_points_to_sets.
12006         (collect_points_to_info_for): Remove.
12007         (compute_points_to_and_addr_escape): Remove.
12008         (delete_alias_info): Call delete_points_to_sets.
12009         (compute_flow_sensitive_aliasing): If the call to
12010         find_what_p_points_to returns false, call set_pt_anything.
12011         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
12012         (set_pt_anything): Clear pi->pt_vars.
12013         (set_pt_malloc): Remove.
12014         (merge_pointed_to_info): Remove.
12015         (add_pointed_to_expr): Remove.
12016         (add_pointed_to_var): Remove.
12017         (collect_points_to_info_r): Remove.
12018         (is_escape_site): Make extern.
12019         (create_sft): New.
12020         (create_overlap_variables_for): Call it.
12021         * tree-ssa-copy.c (merge_alias_info): Never merge
12022         flow-sensitive alias information.
12023         * tree-ssa-operands.c (get_expr_operands): Adjust variables
12024         offset and size to be unsigned HOST_WIDE_INT.
12025         (add_to_addressable_set): Rename from note_addressable.
12026         Set TREE_ADDRESSABLE as the variables are added to the set.
12027         Update all users.
12028         (add_stmt_operand): Do not try to micro-optimize unmodifiable
12029         operands into VUSEs when adding V_MAY_DEFs for members in an
12030         alias set.
12031         * tree-ssa-operands.h (add_to_addressable_set): Declare.
12032         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
12033         (struct variable_info): Add bitfield is_heap_var.
12034         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
12035         (new_var_info): Initialize is_heap_var.
12036         (get_constraint_for): Add HEAP variables to the symbol table.
12037         Mark them with is_heap_var.
12038         (update_alias_info): New.  Taken mostly from the old
12039         compute_points_to_and_addr_escape.
12040         (handle_ptr_arith): New.
12041         (find_func_aliases): Call update_alias_info.
12042         Call handle_ptr_info for tcc_binary expressions.
12043         Call mark_stmt_modified.
12044         (create_variable_info_for): If DECL has subvars, do not create
12045         variables for its subvars.  Always add all the fields.
12046         (set_uids_in_ptset): If the solution includes ANYOFFSET and
12047         SFTs, then add all the SFTs of the structure.
12048         If VI->DECL is an aggregate with subvariables, add the SFT at
12049         VI->OFFSET.
12050         (find_what_p_points_to): If VI is an artificial variable,
12051         translate to bitfields in SSA_NAME_PTR_INFO.
12052         If the solution is empty, set pi->pt_vars to NULL
12053         (init_base_vars): Create ANYOFFSET.
12054         (compute_points_to_sets): Rename from create_alias_vars.
12055         Make extern.
12056         (pass_build_pta): Remove.
12057         (delete_points_to_sets): Rename from delete_alias_vars.
12058         (pass_del_pta): Remove.
12059         * tree-ssa-structalias.h (struct alias_info): Move from
12060         tree-ssa-alias.h.
12061         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
12062         NUM_REFERENCES_SET): Likewise.
12063         (compute_points_to_sets, delete_points_to_sets): Declare.
12065 2005-07-09  Richard Henderson  <rth@redhat.com>
12067         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
12068         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
12069         alpha_split_lock_test_and_set_12): New functions.
12070         * config/alpha/alpha-protos.h: Update.
12071         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
12072         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
12073         * config/alpha/sync.md (I12MODE): New.
12074         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
12075         (sync_<fetchop_name><I48MODE>): Likewise.
12076         (sync_nand<I48MODE>): Likewise.
12077         (sync_old_<fetchop_name><I48MODE>): Likewise.
12078         (sync_new_<fetchop_name><I48MODE>): Likewise.
12079         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
12080         (sync_compare_and_swap<I48MODE>): Likewise.
12081         (sync_lock_test_and_set<I48MODE>): Likewise.
12082         (sync_compare_and_swap<I12MODE>): New.
12083         (sync_compare_and_swap<I12MODE>_1): New.
12084         (sync_lock_test_and_set<I12MODE>): New.
12085         (sync_lock_test_and_set<I12MODE>_1): New.
12087 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
12089         PR 21356
12090         PR 22332
12091         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
12093 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
12095         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
12096         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
12098 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
12100         PR target/21656
12101         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
12103 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
12105         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
12106         memory_operand constraint.
12107         (store_conditional_<mode>): Same.
12108         (sync_compare_and_swap<mode>): Same.
12109         (sync_lock_test_and_set<mode>): Same.
12111 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
12113         Rewrite PIC support to more closely model actual instructions.
12114         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
12115         (cris_symbol): Remove prototypes for removed functions.
12116         (cris_pic_symbol_type_of, cris_valid_pic_const)
12117         (cris_expand_pic_call_address): Prototypes for new functions.
12118         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
12119         variable.
12120         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
12121         modifiers.
12122         <case ':'>: Add case for new punctuation character.
12123         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
12124         emitting (extra) PIC modifier.
12125         <case UNSPEC>: Do not assert for PLT.
12126         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
12127         (cris_expand_prologue, cris_expand_epilogue): Check
12128         for pic_offset_table_rtx usage instead of taking
12129         current_function_uses_pic_offset_table as the final word.
12130         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
12131         Remove flag_pic difference.
12132         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
12133         the moral equivalents of...
12134         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
12135         functions.
12136         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
12137         (cris_handle_option): Mark ARG as unused.
12138         (cris_expand_pic_call_address): New worker function for "call",
12139         "call_value".
12140         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
12141         output PIC constructs here.
12142         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
12143         as symbol-specific modifers, not whole or part of operands.
12144         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
12145         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
12146         constants and flag_pic.
12147         (CONSTANT_INDEX_P): Adjust for new functions.
12148         (enum cris_pic_symbol_type): New helper type.
12149         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
12150         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
12151         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
12152         define_constants.
12153         ("movsi"): Emit actual instructions for GOT and relative access.
12154         ("*movsi_got_load"): New pattern to set up the register holding
12155         the GOT pointer.
12156         ("*movsi_internal"): Operand 1 is not a plain general_operand.
12157         Adjust FIXME for 'S'.
12158         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
12159         Use "movs" for -fpic cases.
12160         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
12161         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
12162         ("call", "call_value"): Just call cris_expand_pic_call_address for
12163         PIC addresses.
12164         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
12165         Remove special pattern.
12166         ("*expanded_call_side", "*expanded_call_value_side"): New
12167         patterns.
12168         (gotplt-to-plt, gotplt-to-plt-side-call)
12169         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
12170         peephole2:s.
12171         * config/cris/cris/predicates.md
12172         ("cris_general_operand_or_gotless_symbol"): Remove unused
12173         predicate.
12174         ("cris_general_operand_or_symbol"): Adjust for new functions.
12176 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
12178         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
12180 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
12182         * Makefile.in (TREE_H): Add treestruct.def.
12183         (c-decl.o): Add pointer-set.h
12184         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
12185         visibility on regular DECL's.
12186         (merge_decls): Fix the copying of decl nodes of various types for
12187         the new structures.  Don't update RTL, section name, weak status,
12188         etc, on DECL's without RTL.
12189         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
12190         Don't check volatile on non-variable types.
12191         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
12192         to check whether we have seen arguments.
12193         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
12194         flag is checked before field (flag is common, field is not).
12195         * dwarf2out.c (decl_ultimate_origin): Only DECL's with
12196         TS_DECL_COMMON could have an origin.
12197         (add_location_or_const_value_attribute): Don't check section name
12198         on non-var/function decls.
12199         (dwarf2out_var_location): Reverse order of tests.
12200         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
12201         with DECL_WRTL_CHECK.
12202         * expmed.c (make_tree): rtl is now in decl_with_rtl.
12203         * fold-const.c (fold_binary): Don't check weakness on
12204         non-var/function decls.
12205         (tree_expr_nonzero_p): Ditto.
12206         (fold_checksum_tree): Use tree_decl_extra as sizeof
12207         buffer.
12208         * ggc-page.c (extra_order_size_table): Add sizes for
12209         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
12210         tree_field_decl.
12211         * gimplify.c (gimplify_bind_expr): Only set
12212         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
12213         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
12214         without RTL.
12215         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
12216         * langhooks.h (init_ts). New langhook.
12217         * passes.c (rest_of_decl_compilation): Reverse order of tests.
12218         * print-tree.c (print_node): Update to only print fields that
12219         exist in the structures the passed decl has.
12220         * toplev.c (wrapup_global_declarations): Don't reset
12221         DECL_DEFER_OUTPUT on DECL's that don't contain it.
12222         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
12223         * tree-inline.c (remap_decl): Ditto.
12224         * tree-outof-ssa.c (create_temp): Reverse order of tests.
12225         * tree-pretty-print.c (print_declaration): Don't print
12226         DECL_REGISTER on things that don't contain it.
12227         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
12228         non-var/function decls.
12229         * tree.c (tree_contains_struct): New structure.
12230         (init_priority_for_decl): New hashtable.
12231         (tree_int_map): New structure.
12232         (tree_int_map_eq): New function.
12233         (tree_int_map_marked_p): Ditto.
12234         (tree_int_map_hash): Ditto.
12235         (tree_map): Move to tree.h.
12236         (tree_map_eq): Externalize.
12237         (tree_map_hash): Ditto.
12238         (tree_map_marked_p): Ditto.
12239         (init_ttree): Set up tree_contains_struct and call langhook.
12240         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
12241         (tree_code_size): Update for new structures.
12242         (tree_node_structure): Update for new structures.
12243         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
12244         without the field.
12245         (copy_node_stat): Copy init priority.
12246         (build_decl_stat): Ditto for visibility.
12247         (ts_enum_names): New.
12248         (tree_contains_struct_check_failed): New function.
12249         (decl_init_priority_lookup): Ditto.
12250         (decl_init_priority_insert): Ditto.
12251         * treestruct.def: New file.
12252         * tree.h (CODE_CONTAINS_STRUCT): New macro.
12253         (CONTAINS_STRUCT_CHECK): Ditto.
12254         (tree_contains_struct_check_failed): New prototype.
12255         (DECL_CHECK): Removed.
12256         (DECL_MINIMAL_CHECK): New.
12257         (DECL_COMMON_CHECK): Ditto.
12258         (DECL_WRTL_CHECK): Ditto.
12259         (DECL_NON_COMMON_CHECK): Ditto.
12260         (DECL_WITH_VIS_CHECK): Ditto.
12261         (VAR_OR_FUNCTION_DECL_P): Ditto
12262         (struct tree_decl_minimal): New structure.
12263         (struct tree_decl_common): Ditto.
12264         (struct tree_decl_with_rtl): Ditto.
12265         (struct tree_decl_with_vis): Ditto.
12266         (struct tree_decl_non_common): Ditto.
12267         (struct tree_field_decl): Ditto.
12268         (struct tree_parm_decl): Ditto.
12269         (struct tree_var_decl): Ditto.
12270         (struct tree_function_decl): Ditto.
12271         (struct tree_const_decl): Ditto.
12272         (struct tree_result_decl): Ditto.
12273         (union tree_node): Add new structures.
12274         * var-tracking.c (track_expr_p): Reverse order of tests.
12276         * doc/c-tree.texi: Add documentation on DECL node internal structure.
12278 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
12280         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
12281         * system.h: Poison FINALIZE_PIC.
12282         * doc/tm.texi (FINALIZE_PIC): Remove.
12284 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
12286         PR tree-opt/22329
12287         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
12288         to the correct type if we have a MODIFY_EXPR.
12290 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
12292         PR tree-optimization/22360
12293         * tree.c (upper_bound_in_type): Fix calculations for casting
12294         to a non-wider signed type and casting a signed value to a
12295         wider unsigned type.
12296         (lower_bound_in_type): Fix calculations for casting to a
12297         non-wider signed type.
12299         PR tree-optimization/20139
12300         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
12301         release_defs.
12302         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
12303         fold_cond_expr_cond.
12304         * tree-ssanames.c (release_defs): Assert in_ssa_p.
12305         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
12307 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
12309         PR tree-opt/22356
12310         * tree-complex.c (expand_complex_libcall): Produce
12311         REALPART_EXPR/IMAGPART_EXPR with the correct type.
12313 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
12315         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
12316         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
12317         b" assert and inserted fastpath code for this case.
12318         (bitmap_ior): Removed "a != b" assert.
12320 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
12322         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
12323         (ENDFILE_SPEC): Likewise.
12324         * config/m32r/m32r.h (ASM_SPEC): Likewise.
12326         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
12327         a large stack frame at epilogue.
12329 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
12331         * final.c: Include sdbout.h when required.
12333 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
12335         * config.gcc (*-*-darwin*): Only one target-specific header file
12336         for generic darwin.
12337         (powerpc-*-darwin*): Add version-specific header files.
12338         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
12339         * config.in: Regenerate.
12340         * configure: Regenerate.
12341         * gcc.c: Include xregex.h.
12342         (version_compare_spec_function): New.
12343         (spec_function): Add version-compare.
12344         (replace_outfile_spec_function): Reformat comment.
12345         (compare_version_strings): New.
12346         * config/darwin-c.c (version_as_macro): New.
12347         (builtin_define): New.
12348         (darwin_cpp_builtins): New.
12349         * config/darwin-protos.h (darwin_cpp_builtins): New.
12350         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
12351         (LIB_SPEC): Make unconditional, update comment.
12352         (TARGET_C99_FUNCTIONS): Define.
12353         * config/darwin.opt: Sort.
12354         (mmacosx-version-min=): New.
12355         * config/darwin7.h: Delete.
12356         * config/darwin8.h: Delete.
12357         * config/i386/darwin.h (): Call darwin_cpp_builtins.
12358         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
12359         (TARGET_C99_FUNCTIONS): Define.
12360         * config/rs6000/darwin7.h: New.
12361         * config/rs6000/darwin8.h: New.
12362         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
12363         (-mmacosx-version-min): Document.
12365 2005-07-07  Ian Lance Taylor  <ian@airs.com>
12367         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
12369 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
12371         PR middle-end/22239
12372         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
12374 2005-07-07  Khem Raj  <kraj@mvista.com>
12376         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
12377         in bytes, not words.
12379 2005-07-07  Paul Brook  <paul@codesourcery.com>
12381         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
12382         DEFAULT_FUNCTION_ARG_PADDING to upward.
12384 2005-07-07  Richard Henderson  <rth@redhat.com>
12386         * function.c (locate_and_pad_parm): Record parameter alignment in
12387         stack_alignment_needed.
12389 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
12391         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
12392         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
12393         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
12394         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
12395         (define_attr "type"): Add isync, sync, load_l, store_c.
12396         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
12397         Create scratch volatile MEM.
12398         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
12399         sync.
12400         (load_locked_<mode>): New.
12401         (store_conditional_<mode>): New.
12402         (sync_compare_and_swap<mode>): Replace with splitter.
12403         (sync_lock_test_and_set<mode>): Replace with splitter.
12404         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
12405         and UNSPECV_ISYNC.
12406         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
12407         is ics.  Attribute isync.
12408         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
12409         lwsync.
12410         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
12411         and UNSPECV_SYNC_OP.
12412         (emit_unlikely_jump): New.
12413         (emit_load_locked): New.
12414         (emit_store_conditional): New.
12415         (rs6000_split_compare_and_swap): New.
12416         (rs6000_split_lock_test_and_set): New.
12417         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
12418         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
12419         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
12420         rs6000_split_lock_test_and_set): Declare.
12421         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
12422         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
12423         store_c, isync, sync.
12425 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
12427         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
12428         filenames to gtyp-gen.h.
12429         (s-typ-gen): Use it in place of for loops.
12431 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
12433         * hooks.c (hook_bool_rtx_int_false): New function.
12434         * hooks.h (hook_bool_rtx_int_false): Declare.
12435         * target-def.h (TARGET_COMMUTATIVE_P): Define.
12436         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
12437         * target.h (struct gcc_target): Add commutative_p member.
12438         * targhooks.c (hook_bool_rtx_commutative_p): New function.
12439         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
12440         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
12441         (pa_commutative_p): New function.
12442         * jump.c (target.h): Include.
12443         (rtx_renumbered_equal_p): Use targetm.commutative_p.
12444         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
12446 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
12448         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
12449         (s390_expand_setmem): New.
12450         * config/s390/s390.c: Likewise.
12451         (print_shift_count_operand): Truncate to 12 bits instead of 6.
12452         Adapt comments.
12453         * config/s390/s390.md: ("setmem<mode>"): Accept character as
12454         general_operand.  Call new function "s390_expand_setmem".
12455         ("clrmem_long", "*clrmem_long"): Rewrite to ...
12456         ("setmem_long", "*setmem_long"): ... this.
12458 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
12460         * config/s390/s390.c: (optimization_options): Enable
12461         TARGET_MVCLE at -Os.
12462         * doc/invoke.texi: Document changes in default behaviour.
12463         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
12465 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
12467         * expr.c: (set_storage_via_setmem): Convert opchar to mode
12468         defined by back-end.
12470 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
12472         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
12473         all sets in the pattern.
12474         * config/rs6000/rs6000.md (stack_protect_testsi,
12475         stack_protect_testdi): Likewise.
12477 2005-07-06  Jeff Law  <law@redhat.com>
12479         * tree-vrp.c (simplify_using_ranges): Kill.
12480         (vrp_finalize): Remove call to simplify_using_ranges.
12481         (simplify_stmt_using_ranges): New function extracted from
12482         simplify_using_ranges.
12483         (simplify_div_or_mod_using_ranges): Likewise.
12484         (simplify_abs_using_ranges): Likewise.
12485         (simplify_cond_using_ranges): New function.
12486         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
12487         * tree-ssa-propagate.c (substitute_and_fold): Call
12488         simplify_stmt_using_ranges if we have range information.
12490 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
12492         * config/ia64/ia64.c (ia64_reorg): Check optimize before
12493         ia64_flag_schedule_isns2.
12495         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
12496         reading/writing general registers.
12497         (ia64_function_arg): Revert 2005-06-18 change.
12499 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
12501         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
12502         (legitimize_tls_address): Use gcc_unreachable instead of abort.
12504 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
12506         * function.c (expand_function_end): Revert part of 2005-06-27
12507         patch.  Do sjlj_emit_function_exit_after after return_label.
12509 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
12511         * doc/install.texi (--disable-libssp): New.
12513 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
12515         * doc/invoke.texi: Update -fforce-mem documentation.
12516         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
12517         code for -fforce-mem.
12518         * expmed.c: (store_bit_field,store_fixed_bit_field,
12519         extract_bit_field): Ditto.
12520         * expr.c: (convert_move): Ditto.
12521         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
12522         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
12523         emit_conditional_add,expand_float,expand_fix): Ditto.
12524         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
12525         (common_handle_option): Issue warning when -fforce-mem specified.
12527 2005-07-06  Paul Brook  <paul@codesourcery.com>
12529         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
12530         argument is empty.
12531         * configure: Regenerate.
12533 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
12535         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
12537 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
12539         Fix PR tree-optimization/22319
12540         Fix PR tree-optimization/22140
12541         Fix PR tree-optimization/22310
12543         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
12544         variable sized types.
12545         Use correct type for intermediate structure on *a = *b structure
12546         copies.
12548 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
12550         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
12551         Remove.
12552         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
12553         (machine_function): Move typedef to...
12554         * config/rs6000/rs6000.c (machine_function): ... here.  Add
12555         varargs_save_offset field.
12556         (rs6000_stack_t): Remove varargs_size field.
12557         (setup_incoming_varargs): Allocate varargs save area using
12558         assign_stack_local, try to make it as small as possible.
12559         Save offset from virtual_stack_vars_rtx to the save area
12560         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
12561         instead of magic 8 when fp word byte size is used.
12562         (rs6000_va_start): Use cfun->machine->varargs_save_offset
12563         instead of -RS6000_VARARGS_SIZE.
12564         (rs6000_stack_info, debug_stack_info,
12565         rs6000_initial_elimination_offset): Remove all traces of
12566         varargs_size.
12567         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
12568         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
12569         RS6000_VARARGS_AREA.
12571 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
12573         PR tree-optimization/21963
12574         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
12575         constant_multiple_of in the same way get_computation_cost_at does.
12577 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
12579         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
12580         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
12581         (gen_compare_reg): If sparc_compare_emitted is set, clear it
12582         and return its previous value.
12583         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
12584         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
12585         constants.
12586         (stack_protect_set, stack_protect_test): New expanders.
12587         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
12588         stack_protect_testdi): New insns.
12589         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
12590         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
12592 2005-07-06  Jeff Law  <law@redhat.com>
12594         * tree-ssa-dce.c (cfg_altered): New global.
12595         (tree_dce_init): Initialize cfg_altered.
12596         (remove_dead_stmt): If we remove an edge in the CFG, then set
12597         CFG_ALTERED.
12598         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
12599         the dominators.
12601 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
12603         * Makefile.in (stamp-collect-ld): Use
12604         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
12605         ./collect-ld if it already exists.
12606         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
12607         Don't remove ./nm if it already exists.
12609 2005-07-05  Devang Patel  <dpatel@apple.com>
12611         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
12612         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
12613         * tree-vectorizer.c (vect_loop_location): New.
12614         (vect_print_dump_info): Use vect_loop_location.
12615         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
12616         (vectorize_loops): Set vect_loop_location.
12617         * tree-vect-analyze.c (vect_analyze_offset_expr,
12618         vect_determin_vectorization_factor, vect_analyze_operations,
12619         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
12620         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
12621         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
12622         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
12623         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
12624         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
12625         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
12626         vect_analyze_loop): Adjust vect_print_dump_info API.
12627         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
12628         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
12629         vect_finish_stmt_generation, vectorizable_assignment,
12630         vectorizable_operation, vectorizable_store, vectorizable_load,
12631         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
12632         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
12633         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
12634         vect_transform_loop): Same.
12635         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
12636         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
12637         Same.
12639 2005-07-05  Randolph Chung  <tausq@debian.org>
12641         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
12642         * configure: Regenerate.
12643         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
12644         (pa_tls_referenced_p): Declare.
12645         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
12646         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
12647         (legitimize_tls_address): New.
12648         (hppa_legitimize_address): Handle TLS addresses.
12649         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
12650         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12651         (emit_move_sequence): Handle TLS addresses.
12652         (pa_encode_section_info): Call default handler to handle common
12653         sections.
12654         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
12655         (CONSTANT_ADDRESS_P): Reject TLS operands.
12656         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
12657         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
12658         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
12659         (UNSPEC_TLSLE): Define new constants.
12660         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
12661         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
12662         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
12663         (tie_symbolic_operand, tle_symbolic_operand): New
12665 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
12667         * aclocal.m4: Update macros for autoconf 2.59 style.
12668         * configure.ac: Likewise.
12670 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12672         * pa.c (function_value): Handle small aggregates on 32-bit targets.
12673         (function_arg): Pass small aggregates in general registers on 32-bit
12674         targets.
12675         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
12677 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
12679         * Makefile.in (final.o): Fix dependencies.
12681 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
12683         PR c/22013
12684         PR c/22098
12685         * langhooks.h (struct lang_hooks): Add expr_to_decl.
12686         * langhooks.c (lhd_expr_to_decl): New.
12687         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
12688         New.
12689         (LANG_HOOKS_INITIALIZER): Update.
12690         * tree.c (recompute_tree_invarant_for_addr_expr): Call
12691         expr_to_decl langhook.
12692         * c-tree.h (c_expr_to_decl): Declare.
12693         * c-typeck.c (c_expr_to_decl): New.
12694         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
12695         specially.
12696         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
12698 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
12700         PR c/22308
12701         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
12702         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
12704 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
12706         * Makefile.in: Adjust dependencies.
12707         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
12708         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
12709         * alias.c (rest_of_handle_cfg, pass_cfg): New.
12710         * bb-reorder.c (duplicate_computed_gotos): Make it static.
12711         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
12712         rest_of_compilation.
12714         * bb-reorder.c (gate_duplicate_computed_gotos,
12715         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
12716         rest_of_handle_reorder_blocks, pass_reorder_blocks,
12717         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
12718         pass_partition_blocks): New.
12719         * bt-load.c (gate_handle_branch_target_load_optimize,
12720         rest_of_handle_branch_target_load_optimize,
12721         pass_branch_target_load_optimize): New.
12722         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
12723         pass_jump2): New.
12724         * cfglayout.c (pass_insn_locators_initialize): New.
12725         * cfgrtl.c (pass_free_cfg): New.
12726         * combine.c (gate_handle_combine, rest_of_handle_combine,
12727         pass_combine): New.
12728         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
12729         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
12730         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
12731         * except.c (pass_set_nothrow_function_flags,
12732         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
12733         pass_rtl_eh): New.
12734         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
12735         rest_of_handle_shorten_branches, pass_shorten_branches,
12736         rest_of_clean_state, pass_clean_state): New.
12737         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
12738         rest_of_handle_remove_death_notes, pass_remove_death_notes,
12739         rest_of_handle_life, pass_life, rest_of_handle_flow2,
12740         pass_flow2): New.
12741         * function.c (pass_instantiate_virtual_regs, pass_init_function,
12742         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
12743         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
12744         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
12745         pass_gcse): New.
12746         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
12747         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
12748         pass_rtl_ifcvt, gate_handle_if_after_combine,
12749         rest_of_handle_if_after_combine, pass_if_after_combine,
12750         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
12751         pass_if_after_reload): New.
12752         * integrate.c (pass_initial_value_sets): New.
12753         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
12754         pass_purge_lineno_notes): New.
12755         * mode-switching.c (rest_of_handle_mode_switching,
12756         pass_mode_switching): New.
12757         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
12758         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
12759         pass_loop2): New.
12760         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
12761         pass_loop_optimize): New.
12762         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
12763         pass_sms): New.
12764         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
12765         pass_gcse2): New.
12766         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
12767         pass_postreload_cse): New.
12768         * profile.c (gate_handle_profiling, pass_profiling,
12769         rest_of_handle_branch_prob, pass_branch_prob): New.
12770         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
12771         pass_split_before_regstack, gate_handle_split_before_regstack,
12772         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
12773         rest_of_handle_split_all_insns, pass_split_all_insns): New.
12774         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
12775         pass_stack_regs): New.
12776         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
12777         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
12778         pass_stack_adjustments): New.
12779         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
12780         pass_regrename): New.
12781         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
12782         pass_delay_slots, gate_handle_machine_reorg,
12783         rest_of_handle_machine_reorg, pass_machine_reorg): New.
12784         * rtl.h (extern void purge_line_number_notes): New.
12785         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
12786         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
12787         pass_sched2): New.
12788         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
12789         pass_tracer): New.
12790         * value-prof.c (gate_handle_value_profile_transformations,
12791         rest_of_handle_value_profile_transformations,
12792         pass_value_profile_transformations): New.
12793         * var-tracking.c (gate_handle_var_tracking,
12794         pass_variable_tracking): New.
12795         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
12797         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
12798         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
12799         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
12800         rest_of_handle_old_regalloc, rest_of_handle_regrename,
12801         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
12802         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
12803         rest_of_handle_gcse2, rest_of_handle_regmove,
12804         rest_of_handle_tracer, rest_of_handle_if_conversion,
12805         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
12806         rest_of_handle_web, rest_of_handle_branch_prob,
12807         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
12808         rest_of_handle_jump_bypass, rest_of_handle_combine,
12809         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
12810         rest_of_handle_gcse, rest_of_handle_loop_optimize,
12811         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
12812         rest_of_handle_mode_switching, rest_of_handle_jump,
12813         rest_of_handle_eh, rest_of_handle_stack_adjustments,
12814         rest_of_handle_flow2, rest_of_handle_jump2,
12815         rest_of_handle_peephole2, rest_of_handle_postreload,
12816         rest_of_handle_shorten_branches, rest_of_clean_state,
12817         rest_of_compilation): Remove.
12819         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
12820         * passes.c (dump_flags, in_gimple_form, all_passes,
12821         all_ipa_passes, all_lowering_passes, register_one_dump_file,
12822         register_dump_files, next_pass_1, last_verified, execute_todo,
12823         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
12824         from tree-optimize.c.
12825         (init_optimization_passes): Moved from tree-optimize.c,
12826         adding the RTL optimizations.
12827         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
12828         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
12829         all_ipa_passes, all_lowering_passes, register_one_dump_file,
12830         register_dump_files, next_pass_1, last_verified, execute_todo,
12831         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
12832         init_tree_optimization_passes, ipa_passes): Delete.
12833         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
12834         the RTL dumps.
12835         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
12836         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
12837         from tree.h.
12838         (ipa_passes): Remove.
12839         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
12840         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
12841         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
12842         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
12843         (dump_info_p, dump_flag): Moved to tree-dump.h.
12845         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
12846         cgraph.c, opts.c.
12847         * passes.c (finish_optimization_passes): Use dump_begin
12848         and dump_end, TDI_end.
12849         (gate_rest_of_compilation): New.
12850         (pass_rest_of_compilation): Use it.
12851         (gate_postreload, pass_postreload): New.
12852         * toplev.c (general_init): Rename init_tree_optimization_passes.
12853         * toplev.h (init_tree_optimization_passes): Rename to
12854         init_optimizations_passes.
12855         * tree-dump.c (dump_flag): Make static.
12856         (dump_files): Remove RTL dumps.
12857         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
12858         pass_cleanup_cfg, pass_free_cfg_annotations,
12859         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
12860         pass_init_datastructures, pass_fixup_cfg): Make non-static.
12861         * tree-pretty-print.c: Include tree-pass.h.
12862         * cgraph.c: Include tree-dump.h.
12864 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
12866         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
12867         Only fall back to saying it points to readonly memory if
12868         we can't do better.
12870 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
12872         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
12873         * config/m32r/m32r.c (m32r_compute_frame_size,
12874         m32r_expand_prologue): Take current_function_profile into
12875         account whenever we reference
12876         current_function_uses_pic_offset_table.
12877         (m32r_finalize_pic): Remove.
12878         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
12880 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
12882         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
12883         instead of $<.  Don't remove ./as if it already exists.
12885 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12887         PR target/21723
12888         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
12889         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
12890         for complex modes when generating code for PA 1.0.
12891         (VALID_FP_MODE_P): New macro.
12892         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
12893         sets for all general and floating point modes.  Align wide floating
12894         point modes to even register boundaries to comply with architectural
12895         requirements.
12896         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
12897         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
12898         (VALID_FP_MODE_P): New macro.
12899         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
12900         sets for all general and floating point modes.  Align wide floating
12901         point modes to even register boundaries to comply with architectural
12902         requirements.
12904 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
12906         * tree-dump.c (dump_files): Initialize dump number for .cgraph
12907         to 0.
12909 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
12911         * tree-ssa-structalias.c: Don't include expr.h.
12913 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
12915         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
12916         comments.
12918 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
12920         Fix PR tree-optimization/22279
12922         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
12923         correct operator.
12925 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
12927         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
12929 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
12931         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
12932         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
12933         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
12934         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
12935         config/stormy16/stormy16.c, config/v850/v850.c,
12936         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
12937         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
12938         Avoid "." or "\n" at end of diagnostics and capital letters at
12939         start of diagnostics.
12940         * combine.c, cse.c: Don't translate dump file output.
12941         * toplev.c (print_version): Only translate output if going to
12942         stderr.
12944 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
12946         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
12947         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
12948         typos.
12950 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12952         * pa.c (fix_range): Fix typo in comment.
12954 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
12956         * tree-vrp.c (extract_range_from_assert): Replace
12957         fold (build (...)) with fold_build2.
12959 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12961         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
12962         gcc_gfc_char_table, init_dynamic_gfc_info): New.
12963         (format_types_orig, handle_format_attribute): Add support for
12964         format "gcc_gfc".
12966 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12968         * varasm.c (assemble_variable): Fix format specifier thinko.
12970 2005-07-03  Ira Rosen  <irar@il.ibm.com>
12972         PR tree-optimization/22029 (and 22135)
12973         * tree-pretty-print.c (dump_generic_node): Check that the node is not
12974         a phi node before calling dump_vops.
12976 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12978         * tree-dump.h (dump_string_field): Declare.
12979         * tree-dump.c: Use it instead of dump_string.
12980         (dump_string_field): Make non-static.
12982 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
12984         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
12985         up the minimal CFG stuff always when optimize > 0.  Call
12986         split_all_insns_noflow in PIC case if needed.
12988 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12989             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
12991         PR c++/18279
12992         * c-decl.c (c_write_global_declarations): Dump contents of
12993         external scope to.
12994         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
12995         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
12996         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
12997         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
12998         is enabled.
13000 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
13002         * c-common.h (GCC_DIAG_STYLE): Define.
13003         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
13004         version for format checking to 4.1.
13005         * c-format.c: Include toplev.h after c-common.h.
13006         (enum format_type): Add gcc_tdiag_format_type.
13007         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
13008         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
13009         (format_types_orig): Add gcc_tdiag.
13010         (init_dynamic_diag_info): Support gcc_tdiag formats.
13011         (handle_format_attribute): Likewise.
13012         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
13013         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
13014         version for format checking to 4.1.
13015         (warning0, warning, error, pedwarn, sorry): Use
13016         ATTRIBUTE_GCC_DIAG.
13017         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
13018         (finish_aliases_1): Do not use %qE.
13019         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
13020         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
13021         Correct format bugs.
13022         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
13023         parameter to unsigned HOST_WIDE_INT.
13024         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
13026 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
13028         PR middle-end/21742
13029         * expr.c (write_complex_part): Use adjust_address for MEM.
13030         (read_complex_part): Same.
13032 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
13034         Fix PR tree-optimization/22280
13036         * tree-sra.c (generate_element_init): Remove useless loop.
13038 2005-07-02  Richard Henderson  <rth@redhat.com>
13040         * config/alpha/alpha.c (alpha_legitimize_address): Check for
13041         TLS_MODEL_NONE.
13042         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
13044 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
13046         PR middle-end/14490
13047         * fold-const.c (fold_binary): Handle the return value of
13048         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
13049         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
13051 2005-07-02  Jeff Law  <law@redhat.com>
13053         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
13054         a eliminate type conversion which feeds an equality comparison
13055         if the original type or either operand in the comparison is a
13056         function pointer.
13058 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
13060         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
13061         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
13062         texts.
13063         * config/avr/avr.c: Do not use '`' as left quote.
13064         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
13065         Remove "." from end of diagnostics.  Make diagnostics start with
13066         lowercase letter.
13068 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
13069             Joseph S. Myers  <joseph@codesourcery.com>
13071         * toplev.c (default_tree_printer): Handle setting location with
13072         '+' flag.
13073         * c-objc.common.c (c_tree_printer): Likewise.
13074         * c-format.c (gcc_diag_flag_specs): Add '+'.
13075         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
13076         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
13077         formats.
13078         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
13079         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
13080         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
13081         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
13082         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
13083         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
13084         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
13085         format arguments where %J is used without %D.
13087 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
13089         * gcc.c (LINK_SSP_SPEC): Define.
13090         (link_ssp_spec): New variable.
13091         (LINK_COMMAND_SPEC): Add %(link_ssp).
13092         (static_specs): Add link_ssp_spec.
13093         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
13094         * configure: Rebuilt.
13095         * config.in: Rebuilt.
13097         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
13098         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
13099         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
13100         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
13101         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
13102         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
13103         -0x7008(2) instead of reading __stack_chk_guard variable.
13104         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
13105         number.
13106         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
13107         (stack_protect_set, stack_protect_test): Use *_tls* patterns
13108         if TARGET_THREAD_SSP_OFFSET is defined.
13109         (stack_tls_protect_set_si, stack_tls_protect_set_di,
13110         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
13112         Revert:
13113         2005-06-27  Richard Henderson  <rth@redhat.com>
13114         * libgcc-std.ver (GCC_4.1.0): New.
13115         * libgcc.h (__stack_chk_guard): Declare.
13116         (__stack_chk_fail, __stack_chk_fail_local): Declare.
13117         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
13118         * mklibgcc.in (lib2funcs): Add them.
13120 2005-07-01  Richard Henderson  <rth@redhat.com>
13122         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
13123         void * before struct sigcontext *.
13124         (x86_fallback_frame_state): Likewise.
13126 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
13128         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
13130 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
13132         PR tree-opt/22269
13133         * tree-ssa-reassoc.c (should_transpose): Fix which operand
13134         we check for SSA_NAME for.
13136 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
13138         Fix PR tree-optimization/22071
13140         * tree-ssa-structalias.c (offset_overlaps_with_access): New
13141         function.
13142         (get_constraint_for_component_ref): Use it.
13144 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
13146         PR other/22264
13147         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
13148         print out the last new line.
13150 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
13152         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
13153         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
13154         * config/cris/cris.c (cris_conditional_register_usage): Adjust
13155         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
13156         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
13157         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
13158         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
13159         (enum reg_class): New member CC0_REGS.
13160         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
13161         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
13162         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
13163         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
13164         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
13165         Adjust for register now described.
13167 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
13169         PR target/22262
13170         * config/i386/i386.md (stack_protect_test_si,
13171         stack_protect_test_di): Add earlyclobber for scratch 3.
13172         * config/rs6000/rs6000.md (stack_protect_testsi,
13173         stack_protect_testdi): Add earlyclobber for scratch 3,
13174         remove earlyclobber from scratch 4.
13176 Older entries for 2005 can be found in ChangeLog-2005.
13177 2005-06-30  Diego Novillo  <dnovillo@redhat.com>
13179         PR 21584
13180         PR 22219
13181         * tree-ssa-alias.c (create_name_tags): Also process
13182         non-dereferenced pointers.
13183         Remove argument 'ai'.  Update all callers.
13185 2005-06-30  Andrew Pinski  <pinskia@physics.uc.edu>
13187         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET):
13188         Set to 0 for FRAME_GROWS_DOWNWARD.
13189         (REGISTER_NAMES): Add sfp.
13191 2005-07-01  Kelley Cook  <kcook@gcc.gnu.org>
13193         * config/arm/libunwind.S, config/arm/pr-support.c,
13194         config/arm/unwind-arm.c, config/arm/unwind-arm.h,
13195         config/c4x/predicates.md, tree-object-size.c: Update FSF address.
13197 2005-06-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
13199         PR target/22260
13200         * config/sparc/sparc.c (emit_and_preserve): Add 2nd register.
13201         Preserve the 2nd register too, if present.
13202         (sparc_output_mi_thunk) <PIC case>: Preserve the PIC register too.
13203         Adjust call to emit_and_preserve.
13205 2005-06-30  Zack Weinberg  <zack@codesourcery.com>
13206             Jakub Jelinek  <jakub@redhat.com>
13208         * pretty-print.h (PP_NL_ARGMAX): New.
13209         (text_info): Add locus.
13210         (struct chunk_info): New.
13211         (output_buffer): Add formatted_obstack, chunk_obstack, and
13212         cur_chunk_array. Change obstack to a pointer.
13213         (pp_wrapping_mode_t, pp_wrapping_mode, pp_set_verbatim_wrapping): New.
13214         (struct pretty_print_info): Replace ideal_maximum_length and
13215         prefixing_rule with wrapping.
13216         (pp_line_cutoff, pp_prefixing_rule): Update to match.
13217         Update prototypes and wrapper macros throughout.
13218         * pretty-print.c (pp_formatted_text_data, pp_append_r)
13219         (pp_base_clear_output_area, pp_construct, pp_base_formatted_text)
13220         (pp_base_last_position_in_text, pp_base_newline, pp_base_character):
13221         Update for changes to pp structure.
13222         (pp_base_prepare_to_format, pp_base_format_text): Delete.
13223         (pp_base_format, pp_base_output_formatted_text): New functions.
13224         (pp_base_format_verbatim): Use pp_set_verbatim_wrapping.
13225         (pp_verbatim): Clear text.locus.
13226         (pp_printf): Likewise.  Use pp_format and pp_output_formatted_text.
13227         * c-objc-common.c (c_tree_printer): Update function signature.
13228         * diagnostic.c (diagnostic_initialize): Update for changes to
13229         pp structure.
13230         (diagnostic_report_diagnostic): Call pp_format and then
13231         pp_output_formatted_text.
13232         (verbatim): Clear text.locus.
13233         * diagnostic.h (diagnostic_prefixing_rule, diagnostic_line_cutoff):
13234         Update for changes to pp structure.
13236         * c-lang.c: No need to include c-pretty-print.h.
13237         * Makefile.in: Remove bogus line containing only a tab.
13238         (c-lang.o): Update dependencies.
13239         * toplev.c (announce_function): Don't use verbatim.
13240         (default_tree_printer): Update signature.
13242         * objc/objc-lang.c: No need to include c-pretty-print.h.
13243         * objc/Make-lang.in: Update dependencies.
13245 2005-06-29  Daniel Berlin  <dberlin@dberlin.org>
13247         * tree-complex.c (complex_variable_components): Now a hashtable.
13248         (cvc_lookup): Ditto.
13249         (cvc_insert): Ditto.
13250         (create_components): Use referenced var iterator.
13251         Initialize hashtable.   Use cvc_insert/lookup.
13252         (extract_components): Use cvc_insert/lookup.
13253         (update_complex_components): Ditto.
13254         (update_complex_components_on_edge): Ditto.
13255         * tree-dfa.c (referenced_vars): Now a hashtable.
13256         (dump_referenced_vars): Use iterator.
13257         (referenced_var_lookup): New function.
13258         (referenced_var_insert): Ditto.
13259         (add_referenced_var): Use referenced_var_insert.
13260         (mark_new_vars_to_rename): Use DECL_UID.
13261         * tree-flow-inline.h (first_htab_element): New function.
13262         (end_htab_p): Ditto.
13263         (next_htab_element): Ditto.
13264         (first_referenced_var): Ditto.
13265         (end_referenced_vars_p): Ditto.
13266         (next_referenced_var): Ditto.
13267         (is_call_clobbered): Use DECL_UID.
13268         (mark_call_clobbered): Ditto.
13269         (clear_call_clobbered): Ditto.
13270         (mark_non_addressable): Ditto.
13271         * tree-flow.h (htab_iterator): New struct.
13272         (FOR_EACH_HTAB_ELEMENT): New macro.
13273         (struct int_tree_map): New struct.
13274         (int_tree_map_hash): Prototype.
13275         (int_tree_map_eq): Ditto.
13276         (referenced_var_iterator): Ditto.
13277         (FOR_EACH_REFERENCED_VAR): New macro.
13278         (referenced_vars): Now a hashtable.
13279         * tree-into-ssa.c (symbol_marked_for_renaming): Use DECL_UID.
13280         (add_new_name_mapping): Ditto.
13281         (mark_def_sites): Ditto.
13282         (insert_phi_nodes): Use referenced_var iterator.
13283         (mark_def_site_blocks): Ditto.
13284         (mark_sym_for_renaming): Use DECL_UID.
13285         * tree-sra.c (is_sra_candidate_decl): Use DECL_UID.
13286         (lookup_element): Ditto.
13287         (find_candidates_for_sra): Use referenced_vars iterator.
13288         Use DECL_UID.
13289         * tree-ssa-alias.c (NUM_REFERENCES): New macro.
13290         (NUM_REFERENCES_CLEAR): Ditto.
13291         (NUM_REFERENCES_INC): Ditto.
13292         (NUM_REFERENCES_SET): Ditto.
13293         (alias_obstack): New bitmap obstack.
13294         (struct alias_map_d): Use bitmap, not sbitmap.
13295         (struct alias_info): Remove num_references.
13296         (init_alias_info): Use referenced_var iterator.
13297         Initialize bitmap obstack.
13298         (delete_alias_info): Use referenced_var iterator.
13299         Free bitmap obstack.
13300         (compute_points_to_and_addr_escape): Use DECL_UID.
13301         Use new NUM_REFERENCES macros.
13302         (compute_flow_sensitive_aliasing): may_aliases is now a bitmap.
13303         Use new NUM_REFERENCES macros.
13304         (group_aliases_into): Update prototype to use bitmap.
13305         (setup_pointers_and_addressables): Use referenced_vars iterator.
13306         Use DECL_UID. Use new NUM_REFERENCES macros.
13307         (add_pointed_to_var): Use DECL_UID.
13308         (dump_alias_info): Use referenced_var iterator.
13309         (add_type_alias): Ditto.
13310         (used_portions): Now a hashtable.
13311         (used_part_map_eq): New function.
13312         (used_part_map_hash): Ditto.
13313         (free_used_part_map): Ditto.
13314         (up_lookup): Ditto.
13315         (up_insert): Ditto.
13316         (get_or_create_used_part_for): Use up_lookup.
13317         (create_overlap_variables_for): Ditto.
13318         (find_used_portions): Use up_insert.
13319         Use DECL_UID.
13320         (create_structure_vars): Init used_portions hashtable, use
13321         referenced_vars iterator.
13322         * tree-ssa-live.c (create_ssa_var_map): sbitmaps became bitmaps.
13323         Use DECL_UID.
13324         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Use DECL_UID.
13325         * tree-ssa-operands.c (get_asm_expr_operands): Ditto.
13326         (note_addressable): Ditto.
13327         * tree-ssa-structalias.c (set_uids_in_ptset): Ditto.
13328         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13329         referenced_var iterator.
13330         Use DECL_UID.
13331         (delete_tree_ssa): Ditto.
13332         (int_tree_map_eq): New function.
13333         (int_tree_map_hash): Ditto.
13334         * tree-stdarg.c (find_va_list_reference): Use DECL_UID.
13335         (va_list_ptr_read): Ditto.
13336         (va_list_counter_struct_op): Ditto.
13337         (va_list_ptr_write): Ditto.
13338         (check_va_list_escapes): Ditto.
13339         (check_all_va_list_escapes): Ditto.
13340         (execute_optimize_stdarg): Ditto.
13341         * tree-tailcall.c (suitable_for_tail_opt_p): Used referenced_var
13342         iterator.
13344 2005-06-30  Andrew Pinski  <pinskia@physics.uc.edu>
13346         * config/rs6000/darwin.h (FRAME_POINTER_REGNUM): Rename to ...
13347         (HARD_FRAME_POINTER_REGNUM): this.
13349 2005-06-30  Jan Hubicka  <jh@suse.cz>
13351         * ipa-inline.c (cgraph_clone_inlined_nodes): Revert previous patch.
13353 2005-06-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13355         PR middle-end/22247
13356         * tree-ssa-structalias.c (build_constraint_graph, scc_visit,
13357         process_unification_queue, init_topo_info, topo_visit,
13358         init_scc_info, free_scc_info, perform_var_substitution,
13359         solve_graph): Use unsigned instead of uint.
13361 2005-06-30  Jakub Jelinek  <jakub@redhat.com>
13363         * function.c (gen_stack_protect_test): Add third argument.
13365 2005-06-30  J. D. Johnston  <jjohnst@us.ibm.com>
13367         * gthr-tpf.h (CE2THRCPTR): Change field offset to 16.
13369 2005-06-30  Kazu Hirata  <kazu@codesourcery.com>
13371         * config/c4x/c4x-protos.h: Remove the prototypes for those
13372         functions removed from c4x.c.  Add prototypes for those
13373         functions exported in c4x.c.
13374         * config/c4x/c4x.c (any_operand, fp_zero_operand,
13375         const_operand, stik_const_operand, not_const_operand,
13376         reg_operand, r0r1_reg_operand, r2r3_reg_operand,
13377         ext_low_reg_operand, ext_reg_operand, std_reg_operand,
13378         std_or_reg_operand, addr_reg_operand, index_reg_operand,
13379         dp_reg_operand, sp_reg_operand, st_reg_operand,
13380         rc_reg_operand, call_address_operand,
13381         symbolic_address_operand, dst_operand, src_operand,
13382         src_hi_operand, lsrc_operand, tsrc_operand,
13383         nonimmediate_src_operand, nonimmediate_lsrc_operand,
13384         reg_or_const_operand, par_ind_operand, parallel_operand):
13385         Remove.
13386         (c4x_immed_float_p, c4x_a_register, c4x_x_register,
13387         c4x_K_constant, c4x_N_constant, c4x_O_constant,
13388         c4x_S_indirect): Export.
13389         * config/c4x/c4x.h (PREDICATE_CODES): Remove.
13390         * config/c4x/c4x.md: Include predicates.md.
13391         * config/c4x/predicates.md: New.
13393 2005-06-30  Jakub Jelinek  <jakub@redhat.com>
13395         * function.c (stack_protect_epilogue): Pass label to
13396         stack_protect_test, assume it emitted also the conditional
13397         branch.
13398         * doc/md.texi (stack_protect_test): Adjust documentation.
13399         * config/i386/i386.md (stack_protect_test): Add third argument,
13400         emit beq with operands[2].
13401         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Define to
13402         flag_stack_protect != 0.
13403         * config/rs6000/rs6000.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
13404         constants.
13405         (stack_protect_set, stack_protect_test): New expanders.
13406         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
13407         stack_protect_testdi): New insns.
13408         * config/rs6000/rs6000.c (rs6000_stack_protect_fail): New function.
13409         (TARGET_STACK_PROTECT_FAIL): Define.
13410         (rs6000_generate_compare): Handle UNSPEC_SP_TEST.
13412         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Increment.
13413         (DWARF_FRAME_REGISTERS, DWARF_REG_TO_UNWIND_COLUMN): Adjust, so
13414         that addition of sfp doesn't change these.
13415         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
13416         REG_ALLOC_ORDER): Add sfp.
13417         (INT_REGNO_P): Include FRAME_POINTER_REGNUM.
13418         (FRAME_POINTER_REGNUM): Define to 113.
13419         (HARD_FRAME_POINTER_REGNUM): Define to 31.
13420         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add sfp.
13421         (STARTING_FRAME_OFFSET): Set to 0 for FRAME_GROWS_DOWNWARD.
13422         (ELIMINABLE_REGS): Never eliminate to
13423         FRAME_POINTER_REGNUM, but HARD_FRAME_POINTER_REGNUM
13424         instead.  Add eliminations from FRAME_POINTER_REGNUM.
13425         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P):
13426         Include FRAME_POINTER_REGNUM.
13427         (REGISTER_NAMES): Add sfp.
13428         * config/rs6000/rs6000.c (rs6000_reg_names): Add sfp.
13429         (alt_reg_names): Likewise.
13430         (rs6000_stack_info): Handle FRAME_GROWS_DOWNWARD.
13431         (rs6000_emit_prologue): Use HARD_FRAME_POINTER_REGNUM
13432         instead of FRAME_POINTER_REGNUM.
13433         (rs6000_initial_elimination_offset): Never eliminate to
13434         FRAME_POINTER_REGNUM, but HARD_FRAME_POINTER_REGNUM
13435         instead.  Add elimination offsets from FRAME_POINTER_REGNUM.
13437         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Only return non-zero
13438         if DEFAULT_ABI == ABI_V4.
13440 2005-06-30  Steven Bosscher  <stevenb@suse.de>
13442         * coretypes.h (tls_model): Add TLS_MODEL_NONE as 0.
13443         * tree.h (struct tree_decl): New field `tls_model'.
13444         (DECL_TLS_MODEL): New.
13445         (DECL_THREAD_LOCAL_P): Rename from DECL_THREAD_LOCAL, make it
13446         a predicate.
13447         * rtl.h (decl_default_tls_model): Add prototype for it.
13448         * varasm.c (decl_tls_model): Rewritten and renamed to ...
13449         (decl_default_tls_model): ... this.
13450         (default_encode_section_info): Use DECL_TLS_MODEL instead of
13451         decl_tls_model.
13452         (assemble_variable): Replace DECL_THREAD_LOCAL with
13453         DECL_THREAD_LOCAL_P.
13454         (default_section_type_flags_1): Likewise.
13455         (categorize_decl_for_section): Likewise.
13456         * tree.c (staticp): Likewise.
13457         (recompute_tree_invarant_for_addr_expr): Likewise.
13458         * drawf2out (loc_descriptor_from_tree_1): Likewise.
13459         * c-decl.c (diagnose_mismatched_decls): Likewise.
13460         with DECL_THREAD_LOCAL_P.
13461         (start_decl): Likewise.
13462         * print-tree.c (print_node): Likewise.  Print the TLS model.
13463         (grokdeclarator): Set the default DECL_TLS_MODEL here.
13464         * c-common.c (handle_tls_model_attribute): Rewrite to set the
13465         TLS model up based on the attribute.  Never add the attribute
13466         to the decl's attributes list.
13467         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Replace
13468         DECL_THREAD_LOCAL with DECL_THREAD_LOCAL_P.
13470 2005-06-30  Zdenek Dvorak  <dvorakz@suse.cz>
13472         PR testsuite/21967
13473         * tree-ssa-live.c (mark_all_vars_used_1): Ignore variables in
13474         TMR_ORIGINAL.
13476 2005-06-30  Bernd Schmidt  <bernd.schmidt@analog.com>
13478         * config/bfin/bfin.md (addv2hi3, subv2hi3, sminv2hi3, smaxv2hi3,
13479         mulv2hi3, negv2hi2, absv2hi2): Pattern names fixed by appending the
13480         necessary digit.
13482 2005-06-29  David Edelsohn  <edelsohn@gnu.org>
13484         * config/rs6000/rs6000.c (rs6000_file_start): Use PPC405_ERRATUM77.
13486 2005-06-29  Diego Novillo  <dnovillo@redhat.com>
13488         PR 22234
13489         * tree-ssa-copy.c (fini_copy_prop): Do not overwrite copy_of
13490         when following copy-of chains.
13492 2005-06-30  Jan Hubicka  <jh@suse.cz>
13494         * function.h (struct function): Add saved blocks/unexpanded var list.
13495         * gimple-low.c (record_vars): Insert only VAR_DECLs.
13496         * tree-inline.c (add_lexical_block): Declare; do not clear sublocks.
13497         (remap_decl): Do not declare vars.
13498         (remap_block): Do not care inserting blocks.
13499         (remap_blocks): New function.
13500         (copy_body_r): Update debug info.
13501         (expand_call_inline): Duplicate callee block tree into caller;
13502         copy all the unexpanded_var_list.
13503         (save_body): Save unexpanded_var_list and blocks.
13504         * tree-optimize.c (tree_rest_of_optimization): Restore
13505         blocks/unexpanded_var_list.
13507 2005-06-29  Richard Henderson  <rth@redhat.com>
13509         * config/ia64/ia64.c (ia64_expand_vecint_minmax): Use us_minus and
13510         plus for V4HImode UMAX.
13512 2005-06-29  Joseph S. Myers  <joseph@codesourcery.com>
13514         * c-tree.h (default_function_array_conversion): Take and return
13515         struct c_expr.
13516         * c-typeck.c (default_function_array_conversion): Split into
13517         array_to_pointer_conversion and function_to_pointer_conversion.
13518         Take and return struct c_expr.
13519         (array_to_pointer_conversion): Do not handle type qualifiers or
13520         COMPOUND_EXPRs specially.
13521         (build_function_call): Call function_to_pointer_conversion for
13522         function designators.
13523         (build_unary_op): Call array_to_pointer_conversion, not
13524         default_function_array_conversion.
13525         (digest_init, output_init_element): Likewise.
13526         * c-parser.c: All callers of default_function_array_conversion
13527         changed.
13529 2005-06-29  Ziemowit Laski  <zlaski@apple.com>
13531         * config/darwin.c (machopic_select_section): constant ObjC string
13532         objects now always have type "__builtin_ObjCString".
13534 2005-06-29  Richard Henderson  <rth@redhat.com>
13536         * config/alpha/alpha.md (vec_shl_<VEC>, vec_shr_<VEC>): New.
13538 2005-06-29  Richard Henderson  <rth@redhat.com>
13540         * tree-vect-transform.c (vect_min_worthwhile_factor): Declare.
13541         (vect_create_epilog_for_reduction): Don't use vec_shr if the
13542         operation is emulated.
13543         (vectorizable_reduction): Duplicate vect_min_worthwhile_factor
13544         tests from vectorizable_operation.
13546 2005-06-29  Caroline Tice  <ctice@apple.com>
13548         Fix PR 21956
13549         * varasm.c (assemble_start_function): Add "L" to beginning of
13550         local labels, so assembler & linker treat them as local.
13552 2005-06-29  Richard Henderson  <rth@redhat.com>
13554         * config/i386/i386.c (ix86_expand_int_vcond): Remove unsignedp
13555         argument.  Simplify canonicalization of condition.  Use unsigned
13556         saturating subtraction for QI and HImode unsigned compares.  Use
13557         bit arithmetic tricks for SImode unsigned compares.
13558         * config/i386/i386-protos.h (ix86_expand_int_vcond): Update decl.
13559         * config/i386/sse.md (SSEMODE14): New.
13560         (umaxv8hi3): Use us_minus+plus to avoid vcond.
13561         (umaxv4si3): New.
13562         (smax<SSEMODE14>3): Rename from smaxv16qi3 and macroize.
13563         (smin<SSEMODE14>3): Similarly with sminv16qi3.
13564         (umin<SSEMODE24>3): Similarly with uminv8hi3.
13566 2005-06-29  Ian Lance Taylor  <ian@airs.com>
13568         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Change
13569         GEN_INT to gen_int_for_mode when storing register size to memory.
13571 2005-06-29  Stuart Hastings  <stuart@apple.com>
13573         * config/i386/mmintrin.h: Mark vector intrinsics always_inline.
13574         * config/i386/emmintrin.h: Likewise.
13575         * config/i386/pmmintrin.h: Likewise.
13576         * config/i386/xmmintrin.h: Likewise.
13578 2005-06-29  Steve Ellcey  <sje@cup.hp.com>
13580         PR middle-end/21969
13581         * tree.h (TYPE_VECTOR_SUBPARTS): Change to shift expression.
13582         (SET_TYPE_VECTOR_SUBPARTS): New.
13583         * tree.c (make_vector_type): Replace TYPE_VECTOR_SUBPARTS with
13584         SET_TYPE_VECTOR_SUBPARTS.
13585         * tree-vect-transform.c (vect_transform_loop): Add cast.
13587 2005-06-29  Andreas Krebbel  <krebbel1@de.ibm.com>
13589         * config/s390/s390.c (s390_decompose_address): Accept invalid
13590         displacements for addresses containing frame_pointer_rtx or
13591         virtual_stack_vars_rtx.
13592         (s390_frame_info): Replaced use of STARTING_FRAME_OFFSET.
13593         (s390_initial_elimination_offset): New offset when eliminating the
13594         soft frame pointer.
13595         * config/s390/s390.h (FRAME_GROWS_DOWNWARD): Defined as 1.
13596         (STARTING_FRAME_OFFSET, STACK_DYNAMIC_OFFSET): Definitions changed.
13598 2005-06-28  Ziemowit Laski  <zlaski@apple.com>
13600         * c-common.c (flag_next_runtime): Move...
13601         * toplev.c (flag_next_runtime): ... here.
13602         * c-common.h (flag_next_runtime): Move...
13603         * flags.h (flag_next_runtime): ... here.
13604         * config/darwin-c.c: Include flags.h.
13605         * config/t-darwin (darwin-c.o): Depend on flags.h.
13607 2005-06-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13609         * config/sh/linux-unwind.h (shmedia_fallback_frame_state):
13610         Disable aliasing warning with void * cast.
13611         (sh_fallback_frame_state): Likewise.
13613 2005-06-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13615         * target.h (gcc_target): New field allocate_initial_value.
13616         * target-def.h (TARGET_ALLOCATE_INITIAL_VALUE): New macro.
13617         (TARGET_INITIALIZER): Include it.
13618         * integrate.c (allocate_initial_values): Use
13619         targetm.allocate_initial_value.
13620         * system.h: Poison ALLOCATE_INITIAL_VALUE.
13621         * config/sh/sh-protos.h (sh_pr_n_sets): Delete.
13622         * config/sh/sh.c (sh_pr_n_sets): Make it static.
13623         (sh_allocate_initila_value): New function.
13624         (TARGET_ALLOCATE_INITIAL_VALUE): Override default.
13625         * config/sh/sh.h (ALLOCATE_INITIAL_VALUE): Delete.
13626         * doc/tm.texi (TARGET_ALLOCATE_INITIAL_VALUE): Rename and
13627         update from ALLOCATE_INITIAL_VALUE.
13629 2005-06-28  Richard Henderson  <rth@redhat.com>
13631         * tree-vectorizer.c (vect_is_simple_reduction): Compare types
13632         using TYPE_MAIN_VARIANT.
13634 2005-06-28  Richard Henderson  <rth@redhat.com>
13636         * config/ia64/ia64.c (ia64_expand_vecint_compare): Decompose to EQ
13637         when using psubN.uuu.
13639 2005-06-29  Kelley Cook <kcook@gcc.gnu.org>
13641         * doc/gcc.texi: Update FSF address.
13643 2005-06-28  Eric Christopher  <echristo@redhat.com>
13645         PR c/22052
13646         PR c/21975
13647         * c-decl.c (diagnose_mismatched_decls): Define DECL_EXTERN_INLINE.
13648         Use. Fix detection of invalid extern inline redefinition.
13650 2005-06-28  Diego Novillo  <dnovillo@redhat.com>
13652         * tree-optimize.c (init_tree_optimization_passes): Fix typo.
13654 2005-06-28  Andrew Pinski  <pinskia@physics.uc.edu>
13656         * config/rs6000/rs6000.md (setmemsi): s/operand/operands/.
13658 2005-06-28  Richard Henderson  <rth@redhat.com>
13660         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use unsigned
13661         saturating subtraction for QI and HImode unsigned compares.  Use
13662         bit arithmetic tricks for SImode unsigned compares.
13663         (ia64_expand_vcondu_v2si): Remove.
13664         (ia64_expand_vecint_cmov): Don't call it.
13666 2005-06-28  Richard Henderson  <rth@redhat.com>
13668         * rtlanal.c (nonzero_bits1): Use the mode of the value for
13669         determining integral-ness for comparisons.
13671 2005-06-28  Andrew Pinski  <pinskia@physics.uc.edu>
13673         * config/rs6000/rs6000.md (setmemsi): Fix operand 2.
13675 2005-06-28  Joseph S. Myers  <joseph@codesourcery.com>
13677         * target.h (invalid_conversion, invalid_unary_op,
13678         invalid_binary_op): New hooks.
13679         * target-def.h (TARGET_INVALID_CONVERSION,
13680         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP,
13681         TARGET_INITIALIZER): Likewise.
13682         * hooks.h (hook_constcharptr_tree_tree_null,
13683         hook_constcharptr_int_tree_null,
13684         hook_constcharptr_int_tree_tree_null): New.
13685         * hooks.c (hook_constcharptr_tree_tree_null,
13686         hook_constcharptr_int_tree_null,
13687         hook_constcharptr_int_tree_tree_null): Likewise.
13688         * doc/tm.texi (TARGET_INVALID_CONVERSION,
13689         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Document.
13690         * c-convert.c (convert): Use invalid_conversion hook.
13691         * c-typeck.c (build_unary_op): Use invalid_unary_op hook.
13692         (build_binary_op): Use invalid_binary_op hook.
13693         * config/ia64/ia64-modes.def: Define RFmode.
13694         * config/ia64/ia64-protos.h (spill_xfmode_operand): Remove.
13695         (ia64_expand_movxf_movrf): New.
13696         * config/ia64/ia64.md (movxf): Move code to
13697         ia64_expand_movxf_movrf.
13698         (movrf, movrf_internal): New.
13699         * ia64.c (ia64_invalid_conversion, ia64_invalid_unary_op,
13700         ia64_invalid_binary_op, TARGET_INVALID_CONVERSION,
13701         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): New.
13702         (spill_xfmode_operand): Rename to spill_xfmode_rfmode_operand.
13703         Add mode parameter.  Make static.
13704         (ia64_expand_movxf_movrf): New, moved from ia64.md.  Handle RFmode
13705         as well as XFmode.
13706         (ia64_function_arg, ia64_function_value, ia64_register_move_cost,
13707         ia64_scalar_mode_supported_p): Handle RFmode as well as XFmode.
13708         (ia64_init_builtins): Set up __fpreg as RFmode.
13709         (ia64_mangle_fundamental_type): Mangle __fpreg as u7__fpreg.
13711 2005-06-28  Adrian Straetling  <straetling@de.ibm.com>
13713         * builtins.c: (expand_builtin_memset): Rewrite to support
13714         'set_storage_via_setmem'.
13715         * expr.c: (enum insn_code setmem_optab): Define.
13716         (enum insn_code clrmem_optab): Remove.
13717         (set_storage_via_setmem): New function.
13718         (clear_storage_via_setmem): Remove.
13719         (clear_storage): Replace call to "clear_storage_via_clrmem" with
13720         "set_storage_via_setmem".
13721         * expr.h: (set_storage_via_setmem): Declare.
13722         (CLEAR_RATIO): Redefine using HAVE_setmemM.
13723         * optabs.h: (enum insn_code setmem_optab): Declare.
13724         (enum insn_code clrmem_optab): Remove.
13725         * optabs.c: (init_optabs): Initialize setmem_optab.
13726         (enum insn_code clrmem_optab): Remove.
13727         * genopinit.c: (otabs): Likewise.
13728         * doc/md.texi: Document new standard pattern 'setmem'. Remove
13729           'clrmem'.
13730         * config/alpha/alpha.c: (alpha_expand_block_clear): Adjust
13731         'operands' ordering.
13732         * config/frv/frv.c: (frv_expand_block_clear): Likewise.
13733         * config/rs6000/rs6000.c: (expand_block_clear): Likewise.
13734         * config/alpha/alpha.md: ("clrmemqi", "clrmemdi"): Rename to "setmemM".
13735         FAIL on operands[2]!=const0_rtx. Adjust 'operands' ordering.
13736         * config/avr/avr.md: ("clrmemhi"): Likewise.
13737         * config/frv/frv.md: ("clrmemsi"): Likewise.
13738         * config/i386/i386.md: ("clrmemsi", "clrmemdi"): Likewise.
13739         * config/pa/pa.md: ("clrmemsi", "clrmemdi"): Likewise.
13740         * config/rs6000/rs6000.md: ("clrmemsi"): Likewise.
13741         * config/s390/s390.md: ("clrmem<mode>"): Likewise.
13743 2005-06-28  Paul Brook  <paul@codesourcery.com>
13745         * Makefile.in: Set and use UNWIND_H.  Install as unwind.h.
13746         * c-decl.c (finish_decl): Call default_init_unwind_resume_libfunc.
13747         * except.c (add_ehspec_entry): Generate arm eabi filter lists.
13748         (assign_filter_values): Ditto.
13749         (output_ttype): New function.
13750         (output_function_exception_table): Use output_ttype.  Generate arm
13751         eabi filter lists.
13752         (default_init_unwind_resume_libfunc): New function.
13753         * except.h (default_init_unwind_resume_libfunc): Add prototype.
13754         * optabs.c (init_optabs): Don't set unwind_resume_libfunc.
13755         * opts.c (decode_options): Use targetm.unwind_tables_default.
13756         * target-def.h (TARGET_ASM_TTYPE): Provide and use definition.
13757         (TARGET_ARM_EABI_UNWINDER, TARGET_UNWIND_TABLES_DEFAULT): Ditto.
13758         * target.h (struct gcc_target): Add asm.ttype, unwind_tables_default
13759         and arm_eabi_unwinder.
13760         * unwind-c.c: Support Arm EABI unwinder.
13761         * unwind.h: Rename ...
13762         * unwind-generic.h: ... To this.
13763         * doc/tm.texi (TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER): Document.
13764         (TARGET_UNWID_TABLES_DEFAULT): Document.
13766         * config/arm/arm-protos.h (arm_output_fn_unwind): Add prototype.
13767         * config/arm/arm.c (arm_unwind_emit, arm_output_ttype): New functions.
13768         (TARGET_UNWIND_EMIT, TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER):
13769         Define.
13770         (thumb_pushpop, thumb_output_function_prologue): Output unwinding
13771         directives.
13772         (arm_unwind_emit_stm, arm_unwind_emit_set): New functions.
13773         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS): Only define when
13774         !TARGET_UNWIND_INFO.
13775         (ARM_OUTPUT_FN_UNWIND, ARM_EABI_UNWIND_TABLES): Define.
13776         * config/arm/bpabi.h (TARGET_UNWIND_INFO): Define.
13777         * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME,
13778         ASM_DECLARE_FUNCTION_SIZE): Use ARM_OUTPUT_FN_UNWIND.
13779         * config/arm/lib1funcs.asm: Include libunwind.S.
13780         * config/arm/libgcc-bpabi.ver: Add unwinding routines.
13781         * config/arm/libunwind.S: New file.
13782         * config/arm/pr-support.c: New file.
13783         * config/arm/t-bpabi (LIB1ASMFUNCS): Add _unwind.
13784         (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
13785         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
13786         * config/arm/unwind-arm.c: New file.
13787         * config/arm/unwind-arm.h: New file.
13788         * config/i386/t-netware (USER_H): Remove unwind.h.
13789         * config/ia64/ia64.h (TARGET_UNWIND_TABLES_DEFAULT): Define.
13791 2005-06-28  DJ Delorie  <dj@redhat.com>
13793         * c-decl.c (pop_scope): Move warning control into warning call.
13794         (diagnose_mismatched_decls): Likewise.
13795         (pushdecl): Likewise.
13796         (start_decl): Likewise.
13797         (grokparms): Likewise.
13798         (start_function): Likewise.
13799         (store_parm_decls_newstyle): Likewise.
13800         (store_parm_decls_oldstyle): Likewise.
13801         (finish_function): Likewise.
13802         (declspecs_add_scspec): Likewise.
13803         * c-format.c (decode_format_attr): Likewise.
13804         (maybe_read_dollar_number): Likewise.
13805         (avoid_dollar_number): Likewise.
13806         (finish_dollar_format_checking): Likewise.
13807         (check_format_info): Likewise.
13808         (check_format_info_main): Likewise.
13809         (check_format_types): Likewise.
13810         (format_type_warning): Likewise.
13811         * c-typeck.c (function_types_compatible_p): Likewise.
13812         (build_array_ref): Likewise.
13813         (convert_arguments): Likewise.
13814         (build_c_cast): Likewise.
13815         (store_init_value): Likewise.
13816         (process_init_element): Likewise.
13817         (c_start_case): Likewise.
13818         * stor-layout.c (finalize_record_size): Likewise.
13819         * tree-cfg.c (execute_warn_function_noreturn): Likewise.
13820         * tree-inline.c (expand_call_inline): Likewise.
13822 2005-06-28  Uros Bizjak  <uros@kss-loka.si>
13824         PR target/22134
13825         * config/i386/i386.md (fist<mode>2_with_temp splitter):
13826         Clobber memory operand, not scratch register.
13828 2005-06-28  Andreas Krebbel  <krebbel1@de.ibm.com>
13830         * config/s390/s390.c (machine_function): New field has_landing_pad_p.
13831         (s390_set_has_landing_pad_p, s390_reg_clobbered_rtx,
13832          s390_regs_ever_clobbered): New functions.
13833         (s390_return_addr_rtx): Use get_hard_reg_initial_value.
13834         (s390_register_info, s390_init_frame_layout, s390_update_frame_layout):
13835         Use s390_regs_ever_clobbered.
13836         (s390_emit_prologue): Don't use r14 as temp reg if its content is used
13837         for builtin_return_address.
13838         * config/s390/s390.md ("exception_receiver"): New expander.
13839         * config/s390/s390-protos.h (s390_set_has_landing_pad_p): Prototype
13840         added.
13842 2005-06-28  Andreas Krebbel  <krebbel1@de.ibm.com>
13844         * except.c (current_function_has_exception_handlers): Function
13845         description added and if statements merged.
13847 2005-06-28  Richard Henderson  <rth@redhat.com>
13849         * config/i386/sse.md (smaxv16qi3): Fix buffer overflow.
13850         (sminv16qi3, umaxv8hi3, uminv8hi3): Likewise.
13852 2005-06-27  Richard Henderson  <rth@redhat.com>
13854         * config/ia64/ia64.c (ia64_expand_vcondu_v2si): Generate proper
13855         comparison operations.
13856         (ia64_expand_vecint_minmax): Fix size of xops.
13857         * config/ia64/vect.md (umax<VECINT>3): Fix fallback pattern typo.
13858         (vec_shl_<VECINT>, vec_shr_<VECINT>): New.
13860 2005-06-27  Richard Henderson  <rth@redhat.com>
13862         * tree-vect-transform.c (get_initial_def_for_reduction): Use correct
13863         type for DEF and INIT_VAL.  Pretend MIN/MAX need epilogue adjustment.
13865 2005-06-27  Richard Henderson  <rth@redhat.com>
13867         * config/i386/sse.md (vec_shl_<SSEMODEI>, vec_shr_<SSEMODEI>): New.
13868         (smaxv16qi3, umaxv8hi3, sminv16qi3, uminv8hi3): New.
13870 2005-06-27  Richard Henderson  <rth@redhat.com>
13872         * tree-vect-transform.c (vect_create_epilog_for_reduction): Remove
13873         duplicate little-endian adjustment.
13875 2005-06-28  Kelley Cook  <kcook@gcc.gnu.org>
13877         * doc/include/texinfo.tex: Import from upstream CVS.
13879 2005-06-28  Jan Hubicka  <jh@suse.cz>
13881         * cgraph.c (cgraph_remove_node): Do not release function bodies until
13882         full cgraph is built.
13883         * cgraph.h (cgraph_decide_inlining_incrementally): Add early argument.
13884         * cgraphunit.c (cgraph_finalize_function): Update call of
13885         cgraph_decide_inlining_incrementally.
13886         (initialize_inline_failed): Break out of ...
13887         (cgraph_analyze_function): ... here.
13888         (rebuild_cgraph_edges): New function.
13889         (pass_rebuild_cgraph_edges): New pass.
13890         * common.opt (fearly-inlining): New flag.
13891         * ipa-inline.c: Include ggc.h
13892         (cgraph_clone_inlined_nodes): Avoid re-using of original copy
13893         when cgraph is not fully built.
13894         (cgraph_decide_inlining_incrementally): Add early mode.
13895         (cgraph_early_inlining): New function.
13896         (cgraph_gate_early_inlining): Likewise.
13897         (pass_early_ipa_inline): New pass.
13898         * ipa.c (cgraph_postorder): NULLify aux pointer.
13899         * tree-inline.c (expand_call_inline): Avoid warning early.
13900         * tree-optimize.c (pass_early_local_passes): New.
13901         (execute_cleanup_cfg_pre_ipa): New.
13902         (pass_cleanup_cfg): New.
13903         (register_dump_files): Fix handling subpasses of IPA pass.
13904         (init_tree_optimization_passes): Add early passes.
13905         (execute_ipa_pass_list): Fix handling of subpasses of IPA pass.
13906         * passes.h (pass_early_tree_profile, pass_rebuild_cgraph_edges,
13907         pass_early_ipa_inline): New passes.
13908         * tree-profile.c (do_early_tree_profiling, pass_early_tree_profile): New.
13910         * invoke.texi: Document early-inlining.
13912 2005-06-28  Kelley Cook  <kcook@gcc.gnu.org>
13914         * doc/include/fdl.texi: Merge in changes from upstream.
13915         * doc/include/gpl.texi: Likewise.
13917 2005-06-27  Diego Novillo  <dnovillo@redhat.com>
13919         PR 21959
13920         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Handle type
13921         casts between unsigned and signed types with different size
13922         or precision.
13924 2005-06-28  Jan Hubicka  <jh@suse.cz>
13926         * tree-optimize.c (exercute_free_datastructures):
13927         Do not disband implicit edges; do not attempt to build insn list;
13928         do not free cfg annotations.
13929         (execute_free_cfg_annotations); Disband implicit edges here;
13930         free cfg annotations here too.
13931         (pass_free_cfg_annotations); New pass.
13932         (init_tree_optimization_passes); Add pass_free_cfg_annotations.
13933         * tree-ssa-operands.c (free_ssa_operands); Recover; export.
13934         * tree-ssa-operands.h (free_ssa_operands); declare.
13935         * tree-ssa.c (delete_tree_ssa); Free SSA operand; mark stmt modified;
13936         kill PHI nodes.
13937         * tree-ssanames.c (release_defs): Kill addresses_taken.
13939         * basic-block.h (basic_block_def): Kill rbi.
13940         (reorder_block_def): Kill; Remove next field (replaced by aux);
13941         move other fields to ...
13942         (rtl_bb_info): ... here.
13943         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
13944         copy_bb, connect_traces, add_labels_and_missing_jumps
13945         fix_up_fall_thru_edges, fix_crossing_conditional_branches,
13946         duplicate_computed_gotos, partition_hot_cold_basic-blocks):
13947         Update to new fields.
13948         * cfg.c (initialize_bb_rbi): Kill.
13949         * cfglayout.c (record_effective_endpoints, fixup_reorder_chain,
13950         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update.
13951         * cfgrtl.c (cfg_layout_create_basic_block): Do not initialize rbi.
13952         (try_redirect_by_replacing_jump): Update rbi references.
13953         (cfg_layout_split_block): Likewise.
13954         (cfg_layout_delete_block): Likewise.
13955         (cfg_layout_merge_blocks): Likewise.
13956         * function.c (thread_prologue_and_epilogue_insns): Likewise.
13957         * passes.c (rest_of_handle_sms): Likewise.
13958         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
13960 2005-06-27  David Edelsohn  <edelsohn@gnu.org>
13962         * config/rs6000/rs6000.c (rs6000_file_start): Note PPC405 erratum
13963         in verbose_asm output.
13964         * config/rs6000/rs6000.h (PPC405_ERRATUM77): Bracket with
13965         CONFIG_PPC405CR.
13966         * config.gcc (powerpc with_which): Define CONFIG_PPC405CR for
13967         405cr.
13969 2005-06-27  Jakub Jelinek  <jakub@redhat.com>
13971         * builtin-attrs.def (DEF_ATTR_FOR_INT): Add for 5 and 6.
13972         (DEF_LIST_INT_INT): Add for 4,0, 4,5, 5,0, 5,6.
13973         (ATTR_NOTHROW_NONNULL_4, ATTR_NOTHROW_NONNULL_5): Define.
13974         (ATTR_FORMAT_PRINTF_4_0, ATTR_FORMAT_PRINTF_4_5,
13975         ATTR_FORMAT_PRINTF_5_0, ATTR_FORMAT_PRINTF_5_6): Define.
13976         * builtins.c: Include tree-flow.h.
13977         (expand_builtin_mempcpy, expand_builtin_memmove): Comment fixes.
13978         (expand_builtin_object_size, expand_builtin_memory_chk,
13979         maybe_emit_chk_warning, maybe_emit_sprintf_chk_warning,
13980         compute_object_offset, compute_builtin_object_size,
13981         fold_builtin_object_size): New functions.
13982         (expand_builtin): Handle BUILT_IN_OBJECT_SIZE and BUILT_IN_*_CHK.
13983         (fold_builtin_1): Likewise.  Handle BUILT_IN_{,V}{,F}PRINTF
13984         and BUILT_IN_{,F}PRINTF_UNLOCKED.
13985         (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
13986         fold_builtin_strncpy_chk, fold_builtin_strcat_chk,
13987         fold_builtin_strncat_chk, fold_builtin_sprintf_chk,
13988         fold_builtin_snprintf_chk, fold_builtin_printf, fold_builtin_fprintf):
13989         New functions.
13990         * builtins.def (BUILT_IN_OBJECT_SIZE, BUILT_IN_MEMCPY_CHK,
13991         BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK, BUILT_IN_MEMSET_CHK,
13992         BUILT_IN_STPCPY_CHK, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK,
13993         BUILT_IN_STRNCAT_CHK, BUILT_IN_STRNCPY_CHK, BUILT_IN_SNPRINTF_CHK,
13994         BUILT_IN_SPRINTF_CHK, BUILT_IN_VSNPRINTF_CHK, BUILT_IN_VSPRINTF_CHK,
13995         BUILT_IN_FPRINTF_CHK, BUILT_IN_PRINTF_CHK, BUILT_IN_VFPRINTF_CHK,
13996         BUILT_IN_VPRINTF_CHK): New builtins.
13997         * builtin-types.def (DEF_FUNCTION_TYPE_5, DEF_FUNCTION_TYPE_VAR_4):
13998         Document.
13999         (BT_FN_SIZE_CONST_PTR_INT, BT_FN_INT_INT_CONST_STRING_VALIST_ARG,
14000         BT_FN_PTR_PTR_CONST_PTR_SIZE_SIZE, BT_FN_PTR_PTR_INT_SIZE_SIZE,
14001         BT_FN_STRING_STRING_CONST_STRING_SIZE_SIZE,
14002         BT_FN_INT_FILEPTR_INT_CONST_STRING_VALIST_ARG,
14003         BT_FN_INT_STRING_INT_SIZE_CONST_STRING_VALIST_ARG,
14004         BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VALIST_ARG,
14005         BT_FN_INT_INT_CONST_STRING_VAR, BT_FN_INT_FILEPTR_INT_CONST_STRING_VAR,
14006         BT_FN_INT_STRING_INT_SIZE_CONST_STRING_VAR,
14007         BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VAR): New types.
14008         * c-common.c (DEF_FUNCTION_TYPE_5, DEF_FUNCTION_TYPE_6,
14009         DEF_FUNCTION_TYPE_VAR_4, DEF_FUNCTION_TYPE_VAR_5): Define.
14010         * Makefile.in (OBJS-common): Add tree-object-size.o.
14011         (tree-object-size.o): Add dependencies.
14012         * tree-pass.h (pass_object_sizes): Add.
14013         * tree-optimize.c (init_tree_optimization_passes): Add
14014         pass_object_sizes.
14015         * tree-object-size.c: New file.
14016         * tree.h (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
14017         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk,
14018         compute_builtin_object_size, init_object_sizes, fini_object_sizes):
14019         New prototypes.
14020         * tree-ssa-ccp.c (get_strlen): Rename to ...
14021         (get_maxval_strlen): ...this function.  Handle also computing of maximum
14022         string length and maximum integral value.
14023         (ccp_fold_builtin): Handle BUILT_IN_*_CHK.  Use get_maxval_strlen
14024         instead of get_strlen.  Pass CALLEE and ARGLIST variables to the
14025         folding functions instead of computing them again.
14026         (execute_fold_all_builtins): Retry ccp_fold_builtin if a builtin changed
14027         into some other builtin.
14028         * doc/extend.texi (Object Size Checking): Document.
14030         * regrename.c (copy_value): Fix comment.
14032         * toplev.c (process_options): Use if (FRAME_GROWS_DOWNWARD)
14033         instead of preprocessor conditionals.
14035         * targhooks.c (default_hidden_stack_protect_fail): Fall back to
14036         default_external_stack_protect_fail if visibility is not supported
14037         or not flag_pic.
14038         * config/i386/i386.c (ix86_stack_protect_fail): New function.
14039         (TARGET_STACK_PROTECT_FAIL): Define.
14040         * config/i386/i386.md (stack_protect_si): Change CLOBBER into
14041         SET to zero.
14042         (stack_protect_di): Likewise.  Use %k2 instead of %2 to avoid
14043         invalid instruction xorl %rax, %rax.
14045 2005-06-27  Richard Henderson  <rth@redhat.com>
14047         * c-cppbuiltin.c (c_cpp_builtins): Add __SSP_ALL__ and __SSP__.
14048         * cfgexpand.c: Include params.h.
14049         (has_protected_decls, has_short_buffer): New.
14050         (expand_stack_vars): Take a predicate to determine what to expand.
14051         (defer_stack_allocation): True when flag_stack_protect on.
14052         (SPCT_HAS_LARGE_CHAR_ARRAY, SPCT_HAS_SMALL_CHAR_ARRAY): New.
14053         (SPCT_HAS_ARRAY, SPCT_HAS_AGGREGATE): New.
14054         (stack_protect_classify_type, stack_protect_decl_phase): New.
14055         (stack_protect_decl_phase_1, stack_protect_decl_phase_2): New.
14056         (add_stack_protection_conflicts, create_stack_guard): New.
14057         (expand_used_vars): Add stack protection logic.
14058         (tree_expand_cfg): Likewise.
14059         * common.opt (Wstack-protector): New.
14060         (fstack-protector, fstack-protector-all): New.
14061         * function.c: Include predict.h.
14062         (assign_parm_adjust_stack_rtl): Zap stack_parm when stack protect
14063         wants to copy the parameter into the stack frame.
14064         (stack_protect_prologue, stack_protect_epilogue): New.
14065         (expand_function_end): Call stack_protect_epilogue.  Do
14066         sjlj_emit_function_exit_after after naked_return_label.
14067         * function.h (struct function): Add stack_protect_guard.
14068         * params.def (PARAM_SSP_BUFFER_SIZE): New.
14069         * toplev.c (process_options): Disable flag_stack_protect and/or
14070         warn_stack_protect based on FRAME_GROWS_DOWNWARD.
14071         * tree.h (stack_protect_prologue): Declare.
14073         * target-def.h (TARGET_STACK_PROTECT_GUARD): New.
14074         (TARGET_STACK_PROTECT_FAIL): New.
14075         (TARGET_INITIALIZER): Add them.
14076         * target.h (struct gcc_target): Add stack_protect_guard and
14077         stack_protect_fail.
14078         * targhooks.c: Include ggc.h, gty header.
14079         (stack_chk_guard_decl, default_stack_protect_guard): New.
14080         (stack_chk_fail_decl, default_external_stack_protect_fail): New.
14081         (default_hidden_stack_protect_fail): New.
14082         * targhooks.h (default_stack_protect_guard): Declare.
14083         (default_external_stack_protect_fail): Declare.
14084         (default_hidden_stack_protect_fail): Declare.
14085         * config/i386/i386.c (TARGET_STACK_PROTECT_FAIL): New.
14086         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New.
14087         (trap): Use ud2.
14088         (conditional_trap, conditional_trap_1): Remove.
14089         (stack_protect_set, stack_protect_set_si, stack_protect_set_di): New.
14090         (stack_protect_test, stack_protect_test_si, stack_protect_test_di): New.
14091         * doc/md.texi (stack_protect_set, stack_protect_test): New.
14092         * doc/tm.texi (TARGET_STACK_PROTECT_GUARD): New.
14093         (TARGET_STACK_PROTECT_FAIL): New.
14095         * libgcc-std.ver (GCC_4.1.0): New.
14096         * libgcc.h (__stack_chk_guard): Declare.
14097         (__stack_chk_fail, __stack_chk_fail_local): Declare.
14098         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
14099         * mklibgcc.in (lib2funcs): Add them.
14101 2005-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14103         PR c/21911
14104         * c-common.c (check_function_sentinel): Pass in named argument
14105         list, skip over named arguments before looking for a sentinel.
14106         (check_function_arguments): Pass in named argument list.
14107         * c-common.h (check_function_arguments): Likewise.
14108         * c-typeck.c (build_function_call): Likewise.
14110 2005-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14112         * genautomata.c (decl_mode_check_failed,
14113         regexp_mode_check_failed): Add noreturn attribute.
14115 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
14117         * cfg.c, tree-vect-transform.c, tree.def: Fix comment typos.
14118         * doc/invoke.texi: Fix typos.
14120         * builtins.c, c-common.c, c-convert.c, c-decl.c, c-typeck.c,
14121         convert.c, lambda-code.c, predict.c, tree-cfg.c,
14122         tree-complex.c, tree-data-ref.c, tree-if-conv.c,
14123         tree-mudflap.c, tree-scalar-evolution.c, tree-ssa-ccp.c,
14124         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
14125         tree-ssa-loop-manip.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14126         tree-vect-analyze.c, tree-vect-transform.c, tree-vectorizer.c,
14127         tree.c: Use fold_buildN instead of fold (buildN (...)).
14129 2005-06-26  Gerald Pfeifer  <gerald@pfeifer.com>
14131         * doc/install.texi (Specific): Do not specify the concrete
14132         versions of GCC provided by Cygwin.  Simplify the part on
14133         building on Cygwin.
14135 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
14137         * config/arc/arc-protos.c: Remove the prototype for
14138         arc_finalize_pic.
14139         * config/arc/arc.c (arc_finalize_pic): Remove.
14140         * config/arc/arc.h (FINALIZE_PIC): Likewise.
14141         * config/bfin/bfin.h (FINALIZE_PIC): Likewise.
14142         * config/rs6000/rs6000.h (FINALIZE_PIC): Likewise.
14144 2005-06-26  Jakub Jelinek  <jakub@redhat.com>
14146         PR middle-end/17965
14147         * calls.c (expand_call, emit_library_call_value_1): Use xmalloc/free
14148         instead of alloca for really big argument sizes.
14150         PR middle-end/22028
14151         * gimplify.c (gimplify_type_sizes): Check for type == error_mark_node
14152         earlier in the function.
14154         * regrename.c (copy_value): Don't replace fixed or global
14155         regs with older regs.
14157         * defaults.h (FRAME_GROWS_DOWNWARD): Define to 0 if not defined.
14158         * function.c (get_func_frame_size): Use if (FRAME_GROWS_DOWNWARD)
14159         instead of preprocessor conditionals.
14160         (assign_stack_local_1, assign_stack_temp_for_type): Likewise.
14161         * cfgexpand.c (FRAME_GROWS_DOWNWARD): Don't redefine to 1 or 0
14162         depending on if it was or was not defined previously.
14163         * doc/rtl.texi (VIRTUAL_STACK_VARS_REGNUM): Mention that only non-zero
14164         definition of FRAME_GROWS_DOWNWARD means frame grows downward.
14165         * doc/tm.texi (FRAME_GROWS_DOWNWARD): Likewise.
14166         * config/m68hc11/m68hc11.h (FRAME_GROWS_DOWNWARD): Define to 0.  Update
14167         comment.
14168         * config/pa/pa.h (FRAME_GROWS_DOWNWARD): Likewise.
14169         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Likewise.
14170         * config/stormy16/stormy16.h (FRAME_GROWS_DOWNWARD): Define to 0.
14171         * config/c4x/c4x.h (FRAME_GROWS_DOWNWARD): Likewise.
14172         * config/sh/sh.h (FRAME_GROWS_DOWNWARD): Likewise.
14173         * config/ia64/ia64.h (FRAME_GROWS_DOWNWARD): Likewise.
14174         * config/iq2000/iq2000.h (FRAME_GROWS_DOWNWARD): Likewise.
14175         * config/pdp11/pdp11.h (FRAME_GROWS_DOWNWARD): Define to 1.  Update
14176         comment.
14177         * config/i860/i860.h (FRAME_GROWS_DOWNWARD): Likewise.
14178         * config/h8300/h8300.h (FRAME_GROWS_DOWNWARD): Likewise.
14179         * config/arc/arc.h (FRAME_GROWS_DOWNWARD): Likewise.
14180         * config/vax/vax.h (FRAME_GROWS_DOWNWARD): Likewise.
14181         * config/sparc/sparc.h (FRAME_GROWS_DOWNWARD): Likewise.
14182         * config/i386/i386.h (FRAME_GROWS_DOWNWARD): Likewise.
14183         * config/fr30/fr30.h (FRAME_GROWS_DOWNWARD): Likewise.
14184         * config/frv/frv.h (FRAME_GROWS_DOWNWARD): Likewise.
14185         * config/mn10300/mn10300.h (FRAME_GROWS_DOWNWARD): Likewise.
14186         * config/bfin/bfin.h (FRAME_GROWS_DOWNWARD): Likewise.
14187         * config/ns32k/ns32k.h (FRAME_GROWS_DOWNWARD): Likewise.
14188         * config/v850/v850.h (FRAME_GROWS_DOWNWARD): Likewise.
14189         * config/alpha/alpha.h (FRAME_GROWS_DOWNWARD): Update comment.
14190         * config/s390/s390.h (FRAME_GROWS_DOWNWARD): Likewise.
14191         * config/arm/arm.h (FRAME_GROWS_DOWNWARD): Likewise.
14192         * config/alpha/unicosmk.h (FRAME_GROWS_DOWNWARD): Define to 1.
14193         * config/cris/cris.h (FRAME_GROWS_DOWNWARD): Likewise.
14194         * config/m68k/m68k.h (FRAME_GROWS_DOWNWARD): Likewise.
14195         * config/mmix/mmix.h (FRAME_GROWS_DOWNWARD): Likewise.
14197 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
14199         PR tree-optimization/22026
14200         * tree-vrp.c (extract_range_from_binary_expr): Drop to
14201         VR_VARYING if a binary expression involving VR_ANTI_RANGE is
14202         PLUS_EXPR, MINUS_EXPR, or unsigned MULT_EXPR.
14204 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
14206         * Makefile.in (OBJS-common): Remove duplicate object file
14207         names.
14209 2005-06-25  Jan Hubicka  <jh@suse.cz>
14211         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update profile.
14212         * cfg.c (update_bb_profile_for_threading): Fix rescaling.
14214         * passes.c (rest_of_handle_branch_prob): Do not rebuild profiling info
14215         when not neecesary
14216         (rest_of_compilation): Fix conditional on branch prob pass.
14217         * predict.c (tree_estimate_probability): Enable strip_builtin_expect
14218         when not loop optimizing.
14220 2005-06-25  Bernd Schmidt  <bernd.schmidt@analog.com>
14222         * config/bfin/bfin.md (ror_one, rol_one, ashrdi3, ashldi3, lshrdi3):
14223         New patterns.
14224         (movbi): Add alternative to set CC to zero.
14225         (compare_eq, compare_ne, compare_le, compare_lt, compare_leu,
14226         compare_ltu): Now named patterns.
14228 2005-06-25  Kelley Cook  <kcook@gcc.gnu.org>
14230         * all files: Update FSF address in copyright headers.
14232 2005-06-25  Kelley Cook  <kcook@gcc.gnu.org>
14234         * gengtype.c: Update FSF address in copyright header.
14235         (create_file): Update FSF in outputed copyright header.
14237 2005-06-24  Kazu Hirata  <kazu@codesourcery.com>
14239         * cfglayout.c (block_locators_locs, line_locators_locs,
14240         line_locators_lines, file_locators_locs): Change the type to
14241         VEC(int,heap)*.
14242         (insn_locators_initialize, change_scope, insn_scope,
14243         locator_line, insn_line, locator_file): Use VEC instead of
14244         VARRAY.
14246 2005-06-24  Jason Merrill  <jason@redhat.com>
14248         * tree-nrv.c (tree_nrv): Fix to check assignments to the
14249         RESULT_DECL rather than just RETURN_EXPRs.
14250         (finalize_nrv_r): Adjust.
14252 2005-06-24  Jan Hubicka  <jh@suse.cz>
14254         * tree-optimize.c (init_tree_optimization_passes): Fix flags of
14255         all_passes and all_ipa_passes.
14257         * c-common.c: Include cgraph.h
14258         (handle_externally_visible_attribute): New function.
14259         (c_common_att): Add "externally_visible" attribute.
14260         * cgraph.c (decide_is_variable_needed): Obey externally
14261         visible flag.
14262         (cgraph_varpool_finalize_decl): Avoid redundant checking.
14263         * cgraph.h (struct cgraph_node): New flag externally_visible.
14264         (decide_is_function_needed): Obey externally visible flag.
14265         (cgraph_finalize_function): Avoid redundant checks.
14266         (cgraph_function_and_variable_visibility): Bring symbols local
14267         when asked for.
14268         * common.opt (fwhole-program): New flag.
14270         * doc/invoke.texi (-fwhole-program): Document.
14272 2005-06-24  Mark Mitchell  <mark@codesourcery.com>
14274         PR 22171
14275         * tree-ssa-operands.c (get_expr_operands): Check s_ann for NULL
14276         before use.
14278 2005-06-23  Mark Mitchell  <mark@codesourcery.com>
14280         PR 22000
14281         * tree-ssa-operands.c (get_expr_operands): Check the volatility of
14282         the FIELD_DECL and set s_ann->has_volatile_ops accordingly.
14284 2005-06-24  Jan Hubicka  <jh@suse.cz>
14286         * opts.c (decode_options): Enable unit-at-a-time by default at -O1.
14288 2005-06-23  Jeff Law  <law@redhat.com>
14290         * tree-optimize.c (init_tree_optimization_passes): Move
14291         copy prop pass to run just before VRP.
14292         * tree-vrp.c (remove_range_assertions): Remove copies created
14293         by ASSERT_EXPR removal.
14295 2005-06-23  Kazu Hirata  <kazu@codesourcery.com>
14297         PR tree-optimization/22117
14298         * tree-vrp.c (extract_range_from_binary_expr): Compute a
14299         correct range when adding two pointers.
14301 2005-06-23  Jason Merrill  <jason@redhat.com>
14303         PR c++/19317
14304         Leave the return slot target in the MODIFY_EXPR rather than making
14305         it an argument, but only use it if the CALL_EXPR has a flag set.
14306         * tree.h (CALL_EXPR_HAS_RETURN_SLOT_ADDR): Rename to
14307         CALL_EXPR_RETURN_SLOT_OPT.
14308         * calls.c (expand_call): Adjust.
14309         * tree-inline.c (expand_call_inline): Adjust.
14310         * tree-pretty-print.c (dump_generic_node): Adjust.
14312         And set the flag as appropriate.
14313         * gimplify.c (gimplify_modify_expr_rhs): Set
14314         CALL_EXPR_HAS_RETURN_SLOT_ADDR where the LHS is obviously safe.
14315         * tree-nrv.c (execute_return_slot_opt): Set
14316         CALL_EXPR_HAS_RETURN_SLOT_ADDR based on escape analysis.
14317         * tree-pass.h: Declare pass_return_slot.
14318         * tree-optimize.c (init_tree_optimization_passes): Add it.
14320 2005-06-23  David Edelsohn  <edelsohn@gnu.org>
14322         PR target/21760
14323         * config/rs6000/rs6000.h (PPC405_ERRATUM77): New.
14324         * config/rs6000/rs6000.md: Move atomic instructions to ...
14325         * config/rs6000/sync.md: Here.
14326         Change sync_compare_and_swap<mode> to define_expand.  All stwcx
14327         patterns test PPC405_ERRATUM77.
14329 2005-06-23  Jan Hubicka  <jh@suse.cz>
14331         * tree-inline.c (copy_body_r): Remap labels correctly.
14333 2005-06-22  Alan Modra  <amodra@bigpond.net.au>
14335         * config/rs6000/sysv4.h (TARGET_ASM_EXCEPTION_SECTION): Delete.
14337 2005-06-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14339         PR middle-end/20593
14340         * varasm.c (compute_reloc_for_constant): Treat VIEW_CONVER_EXPR
14341         the same as the other cast operands.
14342         (output_addressed_constants): Likewise.
14344 2005-06-21  Jeff Law  <law@redhat.com>
14346         * tree-vrp.c (extract_range_from_unary_expr): Handle type
14347         conversions better.
14349 2005-06-21  Dorit Nuzman  <dorit@il.ibm.com>
14351         * genopinit.c (vec_shl_optab, vec_shr_optab): Initialize new optabs.
14352         (reduc_plus_optab): Removed.  Replcaed with...
14353         (reduc_splus_optab, reduc_uplus_optab): Initialize new optabs.
14354         * optabs.c (optab_for_tree_code): Return reduc_splus_optab or
14355         reduc_uplus_optab instead of reduc_plus_optab.
14356         (expand_vec_shift_expr): New function.
14357         (init_optabs): Initialize new optabs. Remove initialization of
14358         reduc_plus_optab.
14359         (optab_for_tree_code): Return vec_shl_optab/vec_shr_optab
14360         for VEC_LSHIFT_EXPR/VEC_RSHIFT_EXPR.
14361         * optabs.h (OTI_reduc_plus): Removed. Replaced with...
14362         (OTI_reduc_splus, OTI_reduc_uplus): New.
14363         (reduc_plus_optab): Removed.  Replcaed with...
14364         (reduc_splus_optab, reduc_uplus_optab): New optabs.
14365         (vec_shl_optab, vec_shr_optab): New optabs.
14366         (expand_vec_shift_expr): New function declaration.
14368         * tree.def (VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR): New tree-codes.
14369         * tree-inline.c (estimate_num_insns_1): Handle new tree-codes.
14370         * expr.c (expand_expr_real_1): Handle new tree-codes.
14371         * tree-pretty-print.c (dump_generic_node, op_symbol, op_prio): Likewise.
14372         * tree-vect-generic.c (expand_vector_operations_1): Add assert.
14374         * tree-vect-transform.c (vect_create_epilog_for_reduction): Add two
14375         alternatives for generating reduction epilog code.
14376         (vectorizable_reduction): Don't fail of direct reduction support is
14377         not available.
14378         (vectorizable_target_reduction_pattern): Likewise.
14380         * config/rs6000/altivec.md (reduc_smax_v4si, reduc_smax_v4sf,
14381         reduc_umax_v4si, reduc_smin_v4si, reduc_smin_v4sf, reduc_umin_v4si,
14382         reduc_plus_v4si, reduc_plus_v4sf): Removed.
14383         (vec_shl_<mode>, vec_shr_<mode>, altivec_vsumsws_nomode,
14384         reduc_splus_<mode>, reduc_uplus_v16qi): New.
14386 2005-06-20  Daniel Berlin  <dberlin@dberlin.org>
14388         * c-typeck.c (build_function_call): Set fundecl = function again.
14389         * tree-ssa-alias.c (find_used_portions): Address taking causes the
14390         entire variable to be used.
14391         * tree-ssa-structalias.c (do_structure_copy): Fix handling of
14392         unknown size variables, and structure copies from addressof
14393         operations.  Simplify how we do *a = *b type structure copies.
14394         (init_base_vars): Add ANYTHING = &ANYTHING constraint the right
14395         way.  READONLY's address is not taken by default.
14396         INTEGER dereference should point to anything.
14397         (create_variable_info_for): It's okay for the first field to not start
14398         at 0.
14400 2005-06-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14402         config/sh/linux.h (FUNCTION_PROFILER): Constify a char*.
14404 2005-06-20  Roger Sayle  <roger@eyesopen.com>
14405             Fariborz Jahanian <fjahanian@apple.com>
14407         * combine.c (simplify_set): Simplify setting of CC register
14408         by removing redundant compare with 0 on RHS.
14410 2005-06-20  Jan Beulich  <jbeulich@novell.com>
14412         * config/i386/netware-libgcc.def: Update copyright.
14413         * config/i386/netware-libgcc.exp (__divdc3, __divsc3, __divxc3,
14414         __muldc3, __mulsc3, __mulxc3, __powidf2, __powisf2, __powixf2): Add.
14415         * config/i386/netware.c (gen_stdcall_decoration,
14416         gen_fastd_decoration): Merge into ...
14417         (gen_stdcall_or_fastcall_decoration): ... this. Adjust to match
14418         WinNT's changes.
14419         (gen_regparm_prefix): Adjust to match i386_nlm_encode_section_info.
14420         (i386_nlm_encode_section_info): Adjust to match WinNT's changes.
14421         * config/i386/t-nwld (SHLIB_LINK): Also create libgcc.imp alias of
14422         libgcc_s.imp. Use 'expr' rather than $(()) shell expressions.
14423         * gthr-nks.h (__gthread_objc_mutex_allocate): Kill another dubious
14424         use of NX_MUTEX_RECURSIVE.
14426 2005-06-19  Roger Sayle  <roger@eyesopen.com>
14428         * fold-const.c (swap_tree_comparison): Add support for unordered
14429         floating point comparisons.
14430         * tree-vrp.c (opposite_comparison): Delete.
14431         (extract_range_from_assert): Replace calls to opposite_comparison
14432         with calls to swap_tree_comparison.
14433         (register_edge_assert_for): Likewise.
14434         (vrp_evaluate_conditional): Likewise.
14436 2005-06-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14438         * integrate.c (allocate_initial_values): Update the references
14439         to global_live_at_start and global_live_at_end.
14441 2005-06-20  Jan Hubicka  <jh@suse.cz>
14443         * cfgloop.h (DLTHE_RECORD_COPY_NUMBER): New flag.
14444         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set aux flags only
14445         when asked for.
14446         * loop-unroll.c (peel_loop_completely, unroll_loop_constant_iterations,
14447         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
14448         Update call of duplicate_loop_to_header_edge.
14449         (apply_opt_in_copies): Clear out aux pointers.
14451 2005-06-19  Joseph S. Myers  <joseph@codesourcery.com>
14453         * config/i386/i386.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
14454         (ix86_mangle_fundamental_type): New.
14455         * config/ia64/ia64.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
14456         (ia64_mangle_fundamental_type): New.
14458 2005-06-19  Roger Sayle  <roger@eyesopen.com>
14460         * c-decl.c (grokdeclarator): Only check TREE_OVERFLOW on
14461         INTEGER_CST nodes.
14462         * c-typeck.c (build_c_cast): Only preserve TREE_OVERFLOW on
14463         CONSTANT_CLASS_P nodes.
14465 2005-06-19  Richard Henderson  <rth@redhat.com>
14467         * config/ia64/vect.md (vec_extractv2sf_1): Fix cut-and-paste error;
14468         the shift is always required.
14470 2005-06-19  Richard Henderson  <rth@redhat.com>
14472         * config/ia64/ia64-modes.def (V4SF): Add.
14473         * config/ia64/ia64.c (ia64_legitimate_constant_p): Handle CONST_VECTOR.
14474         * config/ia64/ia64.h (CANNOT_CHANGE_MODE_CLASS): Allow vector to
14475         integer mode changes in fp regs.
14476         * config/ia64/ia64.md (UNSPEC_VECT_EXTR): New.
14477         * config/ia64/vect.md (smaxv2sf3, sminv2sf3): Fix typos in names.
14478         (reduc_plus_v2sf, reduc_smax_v2sf, reduc_smin_v2sf): New.
14479         (vcondv2sf): Use gen_fpack
14480         (fpack): Remove * from name.
14481         (fswap, fmix_l, fmix_r, fmix_lr): New.
14482         (vec_setv2sf, vec_extractv2sf_0_le, vec_extractv2sf_0_be): New.
14483         (vec_extractv2sf_1, vec_extractv2sf): New.
14485 2005-06-19  Andreas Krebbel  <krebbel1@de.ibm.com>
14487         * combine.c (make_compound_operation): Use simplify_subreg.  Delete
14488         a optimization already done by simplify_subreg.
14490 2005-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
14492         * loop.c (scan_loop): Do not consider insns setting the frame
14493         pointer to be candidates for hoisting.
14495 2005-06-19  Uros Bizjak  <uros@kss-loka.si>
14497         * config/i386/i386.md (*cmpfp_0_sf, *cmpfp_0_df, cmpfp_0_xf):
14498         Remove instruction patterns.
14499         (*cmpfp_0): New instruction pattern. Set "unit" attribute to "i387".
14500         (*cmpfp_sf, *cmpfp_df, *cmpfp_xf, *cmpfp_u, *_cmpfp_<mode>):
14501         Set "unit" attribute to "i387".
14502         (*pushsf, *pushsf_rex64, *pushdf_nointeger, *pushdf_integer)
14503         (*pushxf_nointeger, *pushxf_integer): Set "unit" attribute to "i387"
14504         for alternative 0.
14505         (*truncdfsf_mixed, *truncdfsf_i387, *truncxfsf2_mixed)
14506         (*truncxfsf2_i387, *truncxfdf2_mixed, *truncxfdf2_i387): Set "unit"
14507         attribute to "i387" when "type" attribute equals "multi".
14508         (*floathisf2_i387, *floatsisf2_mixed, *floatsisf2_i387)
14509         (*floatdisf2_mixed, *floatdisf2_i387, *floathidf2_i387)
14510         (*floatsidf2_mixed, *floatsidf2_i387, *floatdidf2_mixed)
14511         (*floatdidf2_i387, floathixf2, floatsixf2, floatdixf2): Set "unit"
14512         attribute to "i387" when "type" attribute equals "multi".
14513         * config/i386/mmx.md (*mov<mode>_internal_rex64)
14514         (*mov<mode>_internal, *movv2sf_internal_rex64, *movv2sf_internal):
14515         Set "unit" attribute to "mmx" when "type" attribute equals "ssecvt".
14516         (mmx_pmovmskb): Correct wrong "type" and "mode" attributes.
14517         * config/i386/sse.md (sse_cvtps2pi, sse_cvttps2pi, sse_cvtpd2di)
14518         (sse_cvttpd2pi): Set "unit" attribute to "mmx".
14519         (sse2_cvtpi2pd): Split register constraints. Set "unit" attribute
14520         to "mmx" for "y" operand 1.
14522 2005-06-19  Uros Bizjak  <uros@kss-loka.si>
14524         * config/i386/i386.c (ix86_function_arg_regno_p): Add MMX_REGNO_P
14525         for TARGET_MMX.  Use MMX_REGPARM_MAX and SSE_REGPARM_MAX for MMX
14526         and SSE registers to determine if regno is valid.
14527         (ix86_function_value_regno_p): Depend FIRST_FLOAT_REG on
14528         TARGET_FLOAT_RETURNS_IN_80387 also for TARGET_64BIT. Clean up.
14530 2005-06-18  Richard Henderson  <rth@redhat.com>
14532         * tree-complex.c (init_dont_simulate_again): Clear DONT_SIMULATE_AGAIN
14533         for control-altering statements; set it again for returns.
14534         (complex_visit_stmt): Return SSA_PROP_VARYING for stmts that are
14535         not MODIFY_EXPR.
14537 2005-06-18  Richard Henderson  <rth@redhat.com>
14539         PR tree-opt/22116
14540         * tree-ssa-pre.c (create_expression_by_pieces): Set
14541         DECL_COMPLEX_GIMPLE_REG_P.
14542         (insert_into_preds_of_block): Likewise.
14544 2005-06-18  Steven Bosscher  <stevenb@suse.de>
14546         * Makefile.in: Fix tree-cfgcleanup.c dependencies.
14548 2005-06-18  Richard Henderson  <rth@redhat.com>
14550         * expr.c (store_constructor): Use store of 0 to indicate value
14551         death instead of a clobber.
14553         * config/i386/i386.c (ix86_expand_reduc_v4sf): New.
14554         * config/i386/i386-protos.h (ix86_expand_reduc_v4sf): Declare.
14555         * config/i386/sse.md (reduc_plus_v4sf): New.
14556         (reduc_smax_v4sf, reduc_smin_v4sf): New.
14558 2005-06-18  James A. Morrison  <phython@gcc.gnu.org>
14560         * fold_const (fold_binary): Fold X % (2**N) to X & (2**N - 1) for
14561         nonnegative values of X.
14563 2005-06-18  Uros Bizjak  <uros@kss-loka.si>
14565         * doc/md.texi (Standard Names): Change insn pattern name
14566         from truncM2 to btruncM2 for 'trunc' built-in description.
14567         Add rintM2 insn pattern description.
14569 2005-06-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14571         * c-decl.c (locate_old_decl): Add format attribute.
14572         (implicit_decl_warning): Likewise.
14574         * diagnostic.h (verbatim): Move ...
14575         * toplev.h (verbatim): ... here.  Add ATTRIBUTE_GCC_DIAG.
14576         * pretty-print.h (pp_verbatim): Add ATTRIBUTE_GCC_PPDIAG.
14578 2005-06-18  Roger Sayle  <roger@eyesopen.com>
14580         PR target/22083
14581         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Remove definition.
14583 2005-06-18  Dorit Nuzman  <dorit@il.ibm.com>
14585         * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): New
14586         tree-codes.
14587         * optabs.h (OTI_reduc_smax, OTI_reduc_umax, OTI_reduc_smin,
14588         OTI_reduc_umin, OTI_reduc_plus): New optabs for reduction.
14589         (reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
14590         reduc_plus_optab): New optabs for reduction.
14591         * expr.c (expand_expr_real_1): Handle new tree-codes.
14592         * tree-inline.c (estimate_num_insns_1): Handle new tree-codes.
14593         * tree-pretty-print.c (dump_generic_node, op_prio, op_symbol): Handle
14594         new tree-codes.
14595         * optabs.c (optab_for_tree_code): Handle new tree-codes.
14596         (init_optabs): Initialize new optabs.
14597         * genopinit.c (optabs): Define handlers for new optabs.
14599         * tree-vect-analyze.c (vect_analyze_operations): Fail vectorization in
14600         case of a phi that is marked as relevant. Call vectorizable_reduction.
14601         (vect_mark_relevant): Phis may be marked as relevant.
14602         (vect_mark_stmts_to_be_vectorized): The use corresponding to the
14603         reduction variable in a reduction stmt does not mark its defining phi
14604         as relevant. Update documentation accordingly.
14605         (vect_can_advance_ivs_p): Skip reduction phis.
14606         * tree-vect-transform.c (vect_get_vec_def_for_operand): Takes
14607         additional argument. Handle reduction.
14608         (vect_create_destination_var): Update call to vect_get_new_vect_var.
14609         Handle non-vector argument.
14610         (get_initial_def_for_reduction): New function.
14611         (vect_create_epilog_for_reduction): New function.
14612         (vectorizable_reduction): New function.
14613         (vect_get_new_vect_var): Handle new vect_var_kind.
14614         (vectorizable_assignment, vectorizable_operation, vectorizable_store,
14615         vectorizable_condition): Update call to vect_get_new_vect_var.
14616         (vect_transform_stmt): Call vectorizable_reduction.
14617         (vect_update_ivs_after_vectorizer): Skip reduction phis.
14618         (vect_transform_loop): Skip if stmt is both not relevant and not live.
14619         * tree-vectorizer.c (reduction_code_for_scalar_code): New function.
14620         (vect_is_simple_reduction): Was empty - added implementation.
14621         * tree-vectorizer.h (vect_scalar_var): New enum vect_var_kind value.
14622         (reduc_vec_info_type): New enum vect_def_type value.
14623         * config/rs6000/altivec.md (reduc_smax_v4si, reduc_smax_v4sf,
14624         reduc_umax_v4si, reduc_smin_v4si, reduc_umin_v4sf, reduc_smin_v4sf,
14625         reduc_plus_v4si, reduc_plus_v4sf): New define_expands.
14627         * tree-vect-analyze.c (vect_determine_vectorization_factor): Remove
14628         ENABLE_CHECKING around gcc_assert.
14629         * tree-vect-transform.c (vect_do_peeling_for_loop_bound,
14630         (vect_do_peeling_for_alignment, vect_transform_loop,
14631         vect_get_vec_def_for_operand): Likewise.
14633 2005-06-18  Joseph S. Myers  <joseph@codesourcery.com>
14635         * config/ia64/ia64.c (ia64_function_arg): Set up a PARALLEL for a
14636         big-endian unnamed __float80 value.
14638 2005-06-18  Richard Henderson  <rth@redhat.com>
14640         PR tree-opt/22103
14641         * tree-sra.c (generate_copy_inout): Handle SSA_NAME complex
14642         destinations.
14644 2005-06-17  Richard Henderson  <rth@redhat.com>
14646         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Use
14647         initialize_original_copy_tables and free_original_copy_tables.
14648         (vect_do_peeling_for_alignment): Likewise.
14650 2005-06-17  Pat Haugen  <pthaugen@us.ibm.com>
14652         * bb-reorder.c (find_traces_1_round): Use succ block frequency
14653         instead of edge frequency for calls to better_edge_p.
14655 2005-06-17  Andrew Pinski  <pinskia@physics.uc.edu>
14657         PR tree-opt/22105
14658         * tree-ssa-loop-im.c (for_each_index): Handle COMPLEX_CST.
14660 2005-06-17  Steve Ellcey  <sje@cup.hp.com>
14662         PR target/19889
14663         * config/ia64/hpux.h (FUNCTION_PROFILER): New (dummy).
14664         (PROFILE_HOOK): New.
14665         (PROFILE_BEFORE_PROLOGUE): Undef.
14666         (NO_PROFILE_COUNTERS): New.
14667         * config/ia64/ia64-protos.h (ia64_profile_hook): New.
14668         * config/ia64/ia64.c (ia64_compute_frame_size): Add ifdef.
14669         (gen_mcount_func_rtx): New.
14670         (ia64_profile_hook): New.
14671         * config/ia64/ia64.md (ip_value): New.
14673 2005-06-17  Devang Patel  <dpatel@apple.com>
14675         * config/rs6000/predicates.md (s5bit_cint_operand,
14676         u5bit_cint_operand): New.
14677         * config/rs6000/altivec.md (altivec_vspltb, altivec_vsplth,
14678         altivec_vspltisw_v4sf): Use new 5 bit constant operand predicates.
14679         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Fix signed
14680         5 bit constant check.
14682 2005-06-17  Richard Henderson  <rth@redhat.com>
14684         * local-alloc.c (update_equiv_regs): Update reg_equiv_init
14685         properly when moving an initialization insn.
14687 2005-06-17  Paolo Bonzini  <bonzini@gnu.org>
14689         * aclocal.m4 (gcc_AC_CHECK_TOOL): Do not overwrite the
14690         passed variable.
14691         * configure.ac: Regenerate.
14693 2005-06-17  Jan Hubicka  <jh@suse.cz>
14695         * tree-optimize.c (execute_ipa_pass_list): New.
14696         (ipa_passes): Use it.
14698 2005-06-16  Richard Henderson  <rth@redhat.com>
14700         PR tree-opt/22022
14701         * tree-complex.c (update_phi_components): Avoid no-op moves.
14703 2005-06-16  Joseph S. Myers  <joseph@codesourcery.com>
14705         * Makefile.in (cc1-checksum.c): Use
14706         build/genchecksum$(build_exeext), not build/genchecksum$(exeext).
14708 2005-06-16  Geoffrey Keating  <geoffk@apple.com>
14710         * gengtype.c (adjust_field_rtx_def): Don't add a skip to
14711         basic_block types.
14713         * config/t-slibgcc-darwin (SHLIB_SOVERSION): Rename from
14714         SHLIB_MINOR.
14715         (SHLIB_REVISION): Delete.
14716         (SHLIB_VERSTRING): Update to compensate.
14717         (SHLIB_SONAME): Just use one '.' in the name.
14719 2005-06-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
14721         PR tree-optimization/22018
14722         * tree-vrp.c (vrp_int_const_binop): Overhaul handling of overflow.
14724 2005-06-16  Richard Henderson  <rth@redhat.com>
14726         PR tree-opt/22035
14727         * builtins.c (fold_builtin_complex_mul): Remove.
14728         (fold_builtin_complex_div): Remove.
14729         (fold_builtin_1): Don't call them.
14730         * fold-const.c (fold_complex_add, fold_complex_mult_parts,
14731         fold_complex_mult, fold_complex_div_parts, fold_complex_div): Remove.
14732         (fold_binary): Don't call them.  Don't expand complex comparisons to
14733         elementary comparisons.
14734         * tree-complex.c (init_dont_simulate_again): Enhance search for
14735         stmts that require decomposition.
14736         (complex_visit_stmt): Handle RETURN_EXPR properly.
14737         (create_components): Handle no referenced variables properly.
14738         * tree.h (fold_complex_mult_parts): Remove.
14739         (fold_complex_div_parts): Remove.
14741 2005-06-16  Richard Guenther  <rguenth@gcc.gnu.org>
14743         * doc/extend.texi: Document sseregparm target attribute.
14744         Clarify fastcall and regparm documentation.
14745         * config/i386/i386.h: Adjust float_in_sse documentation.
14746         * config/i386/i386.c: Add new target attribute sseregparm.
14747         (ix86_handle_cdecl_attribute, ix86_handle_regparm_attribute):
14748         Merge into ...
14749         (ix86_handle_cconv_attribute): ... here.  Also handle
14750         sseregparm attribute.
14751         (ix86_comp_type_attributes): Compare sseregparm attributes.
14752         (ix86_function_sseregparm): New function, split out from ...
14753         (init_cumulative_args): ... here.  Use to decide use
14754         of SSE registers and error in case of missing support.
14755         (ix86_value_regno): Likewise.
14756         (function_arg_advance): Do not bail out for DFmode if we need
14757         to pass doubles in registers.
14758         (function_arg): Likewise.
14760 2005-06-16  Paolo Bonzini  <bonzini@gnu.org>
14761             Daniel Jacobowitz  <dan@codesourcery.com>
14762             Alan Modra <amodra.bigpond.net.au>
14764         * configure.ac (gcc_version): Set near the beginning.
14765         (as, ld, nm): Do not link in-tree tools.  Set gcc_cv_* if tools are
14766         found in the tree.  Use gcc_AC_PROG to find the tools in the system.
14767         (objdump): Do not look for it.
14768         * Makefile.in (NM_FOR_TARGET): Point to ./nm
14769         (ORIGINAL_AS_FOR_TARGET, ORIGINAL_LD_FOR_TARGET,
14770         ORIGINAL_NM_FOR_TARGET): Substitute from autoconf.
14771         (as, ld, nm): New rules.
14772         (libgcc.mk): Depend on them.
14773         * aclocal.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL,
14774         gcc_AC_BUILD_EXEEXT): New.
14775         (gcc_AC_CHECK_PROG_VER): Use gcc_AC_BUILD_EXEEXT.
14776         * configure: Regenerate.
14778 2005-06-16  Jan Hubicka  <jh@suse.cz>
14780         * basic-block.h (rtl_bb_info): Break out head_, end_,
14781         global_live_at_start, global_live_at_end from ...
14782         (basic_block_def): ... here; update all references
14783         (BB_RTL): New flag.
14784         (init_rtl_bb_info): Declare.
14785         * cfgexpand.c (expand_gimple_basic_block): Init bb info, set BB_RTL
14786         flag.
14787         * cfgrtl.c: Include ggc.h
14788         (create_basic_block_structure): Init bb info.
14789         (rtl_verify_flow_info_1): Check BB_RTL flag and rtl_bb_info pointer.
14790         (init_rtl_bb_info): New function.
14791         (rtl_merge_block, cfglayout_merge_block): Copy global_live_at_end here.
14792         * cfghooks.c (merge_block): Do not copy global_live_at_end here.
14793         * cfg.c (clear_bb_flags): Skip BB_RTL flag.
14794         (dump_flow_info): Gueard global_live_* dumping.
14796         * Makefile.in (cfg.o): Add new dependencies.
14797         * basic-block.h (reorder_block_def): Kill
14798         original/copy/duplicated/copy_number fields.
14799         (BB_DUPLICATED): New flag.
14800         (initialize_original_copy_tables, free_original_copy_tables,
14801         set_bb_original, get_bb_original, set_bb_copy, get_bb_copy): New.
14802         * cfg.c: Include hashtab.h and alloc-pool.h
14803         (bb_original, bb_copy, original_copy_bb_pool): New static vars.
14804         (htab_bb_copy_original_entry): New struct.
14805         (bb_copy_original_hash, bb_copy_original_eq): New static functions.
14806         (initialize_original_copy_tables, free_original_copy_tables,
14807         set_bb_original, get_bb_original, set_bb_copy, get_bb_copy): New
14808         global functions.
14809         * cfghooks.c (duplicate_block): Update original/copy handling.
14810         * cfglayout.c (fixup_reorder_chain): Likewise.
14811         (cfg_layout_initialize): Initialize orignal_copy tables.
14812         (cfg_layout_finalize): FInalize original_copy tables.
14813         (can_copy_bbs_p): Use BB_DUPLICATED flag.
14814         (copy_bbs): Likewise.
14815         * cfgloopmanip.c (update-single_exits_after_duplication): Likewise.
14816         (duplicate_loop_to_header_edge): Likewise; update handling of
14817         copy_number.
14818         (loop_version): Likewise.
14819         * dominance.c (get_dominated_by_region): Use BB_DUPLICATED_FLAG.
14820         * except.c (expand_resx_expr): Check that reg->resume is not set.
14821         * loop-unroll.c (unroll_loop_constant_iterations,
14822         unroll_loop_runtime_iterations, apply_opt_in_copies): Update
14823         copy/original handling.
14824         * loop-unwitch.c (unswitch_loop): Likewise.
14825         * tree-cfg.c (create_bb): Do not initialize RBI.
14826         (disband_implicit_edges): Do not kill RBI.
14827         (add_phi_args_after_copy_bb): Use new original/copy mapping.
14828         (add_phi_args_after_copy): Use BB_DUPLICATED flag.
14829         (tree_duplicate_sese_region): Update original/copy handling.
14830         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
14831         * tree-ssa-loop-manip.c (copy_phi_node_args): Likewise.
14832         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
14834 2005-06-15  Andrew Pinski  <pinskia@physics.uc.edu>
14836         PR tree-opt/21923
14837         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Conversions between
14838         integer types whos ranges are different are not useless.
14840 2005-06-15  Andrew Pinski  <pinskia@physics.uc.edu>
14842         PR tree-opt/22024
14843         * tree-ssa-reassoc.c (init_reassoc): Also give chain decl a distint
14844         rank.
14846 2005-06-15  Diego Novillo  <dnovillo@redhat.com>
14848         * tree-ssa-structalias.c (dump_solution_for_var): Reformat
14849         output.
14850         (dump_sa_points_to_info): Make extern.
14851         (debug_sa_points_to_info): New.
14852         * tree-ssa-structalias.h (TREE_SSA_STRUCTALIAS_H): Rename from
14853         TREE_ALIAS_COMMON.
14854         (dump_sa_points_to_info): Declare.
14855         (debug_sa_points_to_info): Declare.
14857 2005-06-15  Joseph S. Myers  <joseph@codesourcery.com>
14859         * c-tree.h (default_function_array_conversion): Declare.
14860         * c-typeck.c (default_function_array_conversion): Export.  Correct
14861         comment.
14862         (default_conversion): Do not call
14863         default_function_array_conversion.  Do not allow FUNCTION_TYPE.
14864         (build_function_call): Call default_function_array_conversion on
14865         the function.
14866         (convert_arguments): Do not call it on the function arguments.
14867         (build_unary_op): Do not allow ARRAY_TYPE or FUNCTION_TYPE for
14868         TRUTH_NOT_EXPR.  Call default_function_array_conversion for taking
14869         address of ARRAY_REF.
14870         (build_compound_expr): Do not call
14871         default_function_array_conversion.
14872         (build_c_cast): Do not call default_function_array_conversion.
14873         (convert_for_assignment): Do not call default_conversion.
14874         (digest_init): Call default_function_array_conversion to convert
14875         string constants and compound literals to pointers, but not
14876         otherwise.
14877         (output_init_element): Likewise.
14878         (build_asm_expr): Do not call default_function_array_conversion.
14879         (c_process_expr_stmt): Likewise.
14880         (c_objc_common_truthvalue_conversion): Likewise.  Do not allow
14881         FUNCTION_TYPE.
14882         * c-parser.c (c_parser_expression_conv): New.
14883         (c_parser_asm_operands, c_parser_expr_list): Add convert_p
14884         argument.  All callers changed.  Call
14885         default_function_array_conversion if convert_p.
14886         (c_parser_initializer, c_parser_initval): Call
14887         default_function_array_conversion except for string constants and
14888         compound literals.
14889         (c_parser_initelt): Call default_function_array_conversion for
14890         ObjC expression received.
14891         (c_parser_statement_after_labels): Call c_parser_expression_conv
14892         for return and expression statements.
14893         (c_parser_paren_condition, c_parser_for_statement,
14894         c_parser_conditional_expression): Call c_parser_expression_conv.
14895         (c_parser_expr_no_commas, c_parser_conditional_expression,
14896         c_parser_binary_expression, c_parser_cast_expression,
14897         c_parser_unary_expression): Call
14898         default_function_array_conversion.
14900 2005-06-15  Diego Novillo  <dnovillo@redhat.com>
14902         * tree-vrp.c (vrp_int_const_binop): Do not handle MAX_EXPR
14903         when the result overflows.
14905 2005-06-15  David Ung  <davidu@mips.com>
14907         * config/mips/mips.c (mips_rtx_cost_data): Add cost for 4kc, 4kp,
14908         24k and 24kx.
14910 2005-06-15  Richard Sandiford  <richard@codesourcery.com>
14912         * doc/invoke.texi (-mips16): Fix typo.
14914 2005-06-15  David Ung  <davidu@mips.com>
14916         * config/mips/mips.h (GENERATE_MIPS16E): New definition.
14917         * config/mips/mips.md (zero_extend<SHORT:mode><GPR:mode>2):
14918         Changed expand condition to exclude generating of "and" if
14919         GENERATE_MIPS16E is true.
14920         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): New pattern for
14921         matching mips16e zeb/zeh.
14922         (*extend<SHORT:mode><GPR:mode>2_mips16e): New pattern for matching
14923         mips16e seb/seh.
14924         (*extend<SHORT:mode><GPR:mode>2): Disable this pattern for
14925         GENERATE_MIPS16E.
14926         * doc/invoke.texi (MIPS Options): Add comment to -mips16
14927         indicating MIPS16e ASE is used if targetting for MIPS32 or MIPS64.
14929 2005-06-15  Diego Novillo  <dnovillo@redhat.com>
14931         PR 22018
14932         * tree-vrp.c (vrp_int_const_binop): New.
14933         (extract_range_from_binary_expr): Call it.
14934         Unify handling division and multiplication.
14936 2005-06-15  Aldy Hernandez  <aldyh@redhat.com>
14938         * c-common.h (same_scalar_type_ignoring_signedness): Protoize.
14940         * c-common.c (same_scalar_type_ignoring_signedness): New.
14942         * c-typeck.c (build_binary_op): Check compatability of vector
14943         types.  Move error report after switch.
14944         Do not clobber code[01] on *_DIV_EXPR case.
14946         * testsuite/gcc.dg/simd-1.c: Update error messages.
14947         * testsuite/gcc.dg/simd-1b.c: Re-enable tests.  Update error
14948         messages.
14949         * testsuite/gcc.dg/simd-2.c: Update error messages.
14950         * testsuite/gcc.dg/simd-4.c: New.
14952 2005-06-15  Bernd Schmidt  <bernd.schmidt@analog.com>
14954         * Makefile.in (local-alloc.o): Depend on $(GGC_H) and reload.h.
14955         * local-alloc.c: Include "ggc.h" and "reload.h".
14956         (struct equivalence): New member is_arg_equivalence.
14957         (local_alloc): Always call update_equiv_regs.
14958         (update_equiv_regs): Allocate reg_equiv_init; set reg_equiv_init_size.
14959         Detect equivalences made by stores to memory in a second pass.
14960         Return early if not optimizing.
14961         Initialize reg_equiv_init for all equivalences; treat equivalences for
14962         REG_EQUIV notes existing before this pass specially.
14963         (no_equiv): Don't clear reg_equiv_init or remove notes if the
14964         is_arg_equivalence field is set.
14965         * reload.h (reg_equiv_init, reg_equiv_init_size): Declare.
14966         * reload1.c (reg_equiv_init): No longer static.
14967         (reg_equiv_init_size): New variable.
14968         (reload): Don't allocate reg_equiv_init; don't free it when done but
14969         clear it.
14970         Restructure equivalence set up code not to set reg_equiv_init, but to
14971         clear it when we can't use an equivalence.
14972         Undo change disabling equivalences for MEM_READONLY_P memrefs.
14973         Dump equivalencing insns to dump_file.
14975 2005-06-14  Richard Sandiford  <richard@codesourcery.com>
14977         * config/mips/mips.c (machine_function): Add varargs_size field.
14978         (mips_setup_incoming_varargs): Store the amount of extra stack space
14979         there rather than in *pretend_size.  When saving registers, always
14980         expect virtual_incoming_args_rtx to point to the start of the
14981         pretend arguments.
14982         (mips_va_start): Remove alignment hack.  Handle all
14983         !EABI_FLOAT_VARARGS_P cases in the same way.
14984         (compute_frame_size): Handle varargs_size.  Remove the redundant
14985         !TARGET_OLDABI condition in the handling of pretend_args_size.
14986         (mips_initial_elimination_offset): Remove the now-redundant check
14987         of TARGET_NEWABI.
14989 2005-06-14  Jeff Law  <law@redhat.com>
14991         * tree-vrp.c (local_fold): Remove.
14992         (simplify_using_ranges): Use fold_convert, not local_fold.  Tweak
14993         DIV/MOD case slightly for readability.
14995 2005-06-14  Frank Ch. Eigler  <fche@redhat.com>
14997         PR mudflap/21023
14998         * tree-mudflap.c (mudflap_finish_file): Exclude non-public
14999         rather than static objects (!) from libmudflap registration.
15001 2005-06-14  Richard Sandiford  <richard@codesourcery.com>
15003         * opt-functions.awk (global_state_p, needs_state_p, static_var): New.
15004         (var_ref): Take the option's flags as a second parameter.  Check
15005         static_var.
15006         * optc-gen.awk: Declare local state variables.  Pass flags to var_ref.
15008 2005-06-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
15010         PR target/20301
15011         * config/sparc/sol2.h (ASM_GENERATE_INTERNAL_LABEL): Emit
15012         unsigned index numbers.
15014 2005-06-13  Geoffrey Keating  <geoffk@apple.com>
15016         * Makefile.in (install-man): Doesn't really depend on installdirs.
15017         (various rules for installing manpages): Do depend on installdirs.
15019 2005-06-14  Nathan Sidwell  <nathan@codesourcery.com>
15021         * unwind-dw2-fde-darwin.c (examine_objects): Fix aliasing in
15022         read_encoded_value_with_base call.
15023         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
15024         * unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
15025         * unwind-dw2.c (extract_cie_info): Fix aliasing in
15026         read_encoded_value call.
15027         (execute_cfa_program, uw_frame_state_for): Likewise.
15029 2005-06-13  Roger Sayle  <roger@eyesopen.com>
15031         PR rtl-optimization/22053
15032         * reg-stack.c (compensate_edge): Correct mistake in the assertion
15033         checking of EDGE_ABNORMAL_CALL edges; complex return values can
15034         result in the top two stack slots, st(0) and st(1), being live.
15036 2005-06-13  Jeff Law  <law@redhat.com>
15038         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): No longer
15039         simplify DIV, MOD or ABS expressions using VRP information.
15040         Remove WALK_DATA parameter.  Prototype and all callers updated.
15041         (eliminate_redundant_computations): Remove WALK_DATA parameter.
15042         Prototype and all callers updated.
15043         (optimize_stmt): WALK_DATA parameter is now unused.
15045         * tree-vrp.c (local_fold): New function.  Like fold, but
15046         strips useless type conversions in the result.
15047         (simplify_using_ranges): New function, largely cribbed from
15048         tree-ssa-dom.c::simplify_rhs_and_lookup_avail_expr.
15049         (vrp_finalize): Call simplify_using_ranges.
15051 2005-06-13  Mark Mitchell  <mark@codesourcery.com>
15053         * config/i386/x86-64.h (ASM_SPEC): Explicitly pass --64 to the
15054         assembler in 64-bit mode.
15056 2005-06-13  David Edelsohn  <edelsohn@gnu.org>
15058         Revert scc_operand patch.
15059         * config/rs6000/predicates.md (scc_operand): Delete.
15060         * config/rs6000/rs6000.md (scc_operand): Change to scc_eq_operand.
15062 2005-06-13  Zdenek Dvorak  <dvorakz@suse.cz>
15064         PR middle-end/21985
15065         * fold-const.c (split_address_to_core_and_offset): Always return
15066         the address of the base object.
15068 2005-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
15070         * doc/invoke.texi (Blackfin Options): Document -mlong-calls.
15072 2005-06-12  Richard Henderson  <rth@redhat.com>
15074         PR tree-opt/21994
15075         * tree-complex.c (update_complex_components_on_edge): New.
15076         (update_parameter_components): Use it.
15077         (update_phi_components): Likewise.
15078         (expand_complex_move): Likewise for is_ctrl_altering_stmt.
15080 2005-06-12  James A. Morrison  <phython@gcc.gnu.org>
15082         PR tree-optimization/14796
15083         * fold-const (fold_binary): Transform (X << C) >> C into X & (-1>>C)
15084         for unsigned types.
15086 2005-06-12  Kazu Hirata  <kazu@codesourcery.com>
15088         * cgraphunit.c, tree-ssa-loop-ivopts.c,
15089         tree-ssa-structalias.c, tree-vectorizer.c, tree-vectorizer.h,
15090         config/sparc/sparc.c: Fix comment typos.
15092 2005-06-12  Richard Earnshaw  <richard.earnshaw@arm.com>
15094         * arm/ieee754-df.s (aeabi_dcmpeq, aeabi_dcmplt, aeabi_dcmple)
15095         (aeabi_dcmpge, aeabi_dcmpgt): Maintain 8-byte stack alignment.
15096         * arm/ieee754-sf.s (aeabi_l2f, aeabi_fcmpeq, aeabi_fcmplt)
15097         (aeabi_fcmple, aeabi_fcmpge, aeabi_fcmpgt): Likewise.
15099 2005-06-12  James A. Morrison  <phython@gcc.gnu.org>
15101         PR tree-optimization/14796
15102         * fold-const.c (fold_binary): Transform (A >> C) << C into
15103         one BIT_AND_EXPR.
15104         <shift>: Transform (A OP c1) OP c2 into A OP (c1 + c2).
15106 2005-06-11  Geoffrey Keating  <geoffk@apple.com>
15108         * config/rs6000/predicates.md (reg_or_arith_cint_operand): Delete.
15109         (reg_or_add_cint_operand): Rename from reg_or_add_cint64_operand.
15110         Handle SImode.
15111         (reg_or_sub_cint_operand): Likewise.
15112         (mask_operand): Handle DImode.
15113         (mask64_operand): Delete.
15114         (and64_operand): Delete.
15115         * config/rs6000/rs6000.c (num_insns_constant): Use mask_operand
15116         instead of mask64_operand.
15117         (print_operand): Likewise.
15118         (rs6000_rtx_costs): Use mask_operand and reg_or_add_cint_operand and
15119         reg_or_sub_cint_operand instead of *64_* variants.
15120         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Use mask_operand
15121         instead of mask64_operand.
15122         * config/rs6000/rs6000.md: Use mask_operand and and_operand instead
15123         of *64_* variants.
15124         (FP): New.
15125         (add_op2): Delete.
15126         (add<mode>3): Use reg_or_add_cint_operand.
15127         (sub_op2): Delete.
15128         (sub<mode>3): Use reg_or_sub_cint_operand.
15129         (udiv<mode>3, div<mode>3, div<mode>3_no_mq, mod<mode>3,
15130         mov<mode>_internal2, mov<mode>, cmp<mode>, cmp<mode>,
15131         cmp<mode>_internal1, indirect_jump<mode>, ctr<mode>,
15132         ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
15133         ctr<mode>_internal6, save_fpregs_<mode>, return_internal_<mode>,
15134         return_and_restore_fpregs_<mode>, eh_set_lr_<mode>,
15135         various unnamed patterns): New.
15136         (udivsi3, divsi3, divsi3_no_mq, modsi3, movsi_internal2, movsi,
15137         cmpsi, cmpsi_internal1, indirect_jumpsi, ctrsi, ctrsi_internal1,
15138         ctrsi_internal2, ctrsi_internal5, ctrsi_internal6, save_fpregs_si,
15139         return_internal_si, return_and_restore_fpregs_si, eh_set_lr_si,
15140         udivdi3, divdi3, divdi3_no_mq, moddi3, movdi_internal2, movdi,
15141         cmpdi, cmpdi_internal1, indirect_jumpdi, ctrdi, ctrdi_internal1,
15142         ctrdi_internal2, ctrdi_internal5, ctrdi_internal6, save_fpregs_di,
15143         return_internal_di, return_and_restore_fpregs_di, eh_set_lr_di,
15144         movhi, movqi, cmpsf, cmpdf, cmptf, various unnamed patterns):
15145         Delete.
15147 2005-06-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15149         * rtl.h (to_rtx_code): Remove.
15150         * machmode.h (to_machine_mode): Likewise.
15151         * read-rtl.c (apply_mode_macro): Replace to_machine_mode with
15152         explicit cast.
15153         (apply_mode_maps): Likewise.
15154         (read_rtx_1): Likewise.
15155         (apply_code_macro): Replace to to_rtx_code with explicit cast.
15156         (check_code_macro): Likewise.
15157         (read_rtx_1): Likewise.
15159 2005-06-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15161         * c-typeck.c (convert_for_assignment): Avoid checking
15162         OPT_Wc___compat, as it is always true.
15164 2005-06-11  David Edelsohn  <edelsohn@gnu.org>
15166         * config/rs6000/rs6000.md (eq<mode>_compare): Restrict to Pmode.
15168 2005-06-11  Daniel Berlin  <dberlin@dberlin.org>
15170         Fix PR tree-optimization/22005
15171         Fix PR tree-optimization/22025
15173         * tree-ssa-structalias.c (struct variable_info): Add has_union
15174         member.
15175         (create_variable_info_for): Mark variables containing unions.
15176         Don't sort the field stack if notokay is true.
15177         (find_what_p_points_to): Convert variables containing unions back
15178         to their SFT's if necessary.
15180 2005-06-11  Daniel Berlin  <dberlin@dberlin.org>
15182         * lambda-code.c (replace_uses_equiv_to_x_with_y): Verify the step
15183         is an INTEGER_CST before calling int_cst_value.
15185 2005-06-10  Uros Bizjak  <uros@kss-loka.si>
15187         PR target/21981
15188         * config/i386/i386.c (ix86_function_value_regno_p): Return true
15189         for FIRST_MMX_REG if TARGET_MMX.
15190         (ix86_return_in_memory): Return 1 for MMX/3dNow vectors. Delete
15191         wrong comment.
15192         (ix86_struct_value_rtx): Emit warning for MMX ABI violations.
15193         (ix86_value_regno): Return FIRST_MMX_REG for MMX vector modes.
15195 2005-06-10  Daniel Berlin  <dberlin@dberlin.org>
15197         * lambda-code.c (replace_uses_equiv_to_x_with_y): Check step
15198         and access function against chrec_dont_know.
15200 2005-06-10  Daniel Berlin  <dberlin@dberlin.org>
15202         * lambda-code.c (replace_uses_of_x_with_y): Renamed and rewritten
15203         slightly.
15204         (exit_phi_for_loop_p): New function.
15205         (can_put_in_inner_loop): Ditto.
15206         (can_convert_to_perfect_nest): Ditto.
15207         (perfect_nestify): Create iv with right type.
15208         Rewrite statements in correct order.
15210 2005-06-10  Keith Besaw  <kbesaw@us.ibm.com>
15212         * tree-ssa-alias.c (new_type_alias): Use existing type
15213         tag if VAR has just one in its may_aliases list.
15215 2005-06-10  Fariborz Jahanian <fjahanian@apple.com>
15217         * rs6000/predicates.md (scc_operand): New.
15218         * rs6000/rs6000.md : Use scc_operand for eq:SI compares.
15220 2005-06-10  Dorit Nuzman  <dorit@il.ibm.com>
15222         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): DRs whose
15223         dependence-distance modulo VF is 0 are recorded in the
15224         SAME_ALIGN_REFs VEC in each DR.
15225         (vect_enhance_data_refs_alignment): Avoid 80 column overflow. The
15226         alignment information of DRs that are in the SAME_ALIGN_REFs VEC of the
15227         DR we want to peel for, is set to 0.
15228         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Fix printout.
15229         * tree-vectorizer.c (destroy_loop_vec_info): Free the SAME_ALIGN_REFs
15230         VEC.
15231         * tree-vectorizer.h (dr_p): New type. Defined to use the VEC API.
15232         (_stmt_vec_info): Added new field same_align_refs.
15233         (STMT_VINFO_SAME_ALIGN_REFS): New macro.
15235 2005-06-10  Nathan Sidwell  <nathan@codesourcery.com>
15237         * vec.h (VEC_safe_grow): Append MEM_STAT_INFO.
15239 2005-06-10  Alan Modra  <amodra@bigpond.net.au>
15241         * config/rs6000/linux.h (NO_PROFILE_COUNTERS): Define.
15242         * config/rs6000/linux64.h (NO_PROFILE_COUNTERS): Define as 1.
15243         * config/rs6000/rs6000.c (output_function_profiler): Obey
15244         NO_PROFILE_COUNTERS.  Handle TARGET_SECURE_PLT.  Use "bcl 20,31"
15245         for -fPIC.  Delete save_lr and substitute its value into strings.
15247 2005-06-09  Dale Johannesen  <dalej@apple.com>
15249         * config/i386/i386.c (optimization_options): Make -fno-math-errno
15250         the default on Darwin.
15251         * config/rs6000/rs6000.c (optimization_options): Ditto.
15252         * doc/invoke.texi (-fno-math-errno): Document.
15254 2005-06-09  Dale Johannesen  <dalej@apple.com>
15256         * config/rs6000/rs6000.c (TARGET_INSN_VALID_WITHIN_DOLOOP):
15257         Change to TARGET_INVALID_WITHIN_DOLOOP.
15259 2005-06-09  David Edelsohn  <edelsohn@gnu.org>
15261         * config/rs6000/rs6000.md (eq): Convert to define_insn_and_split.
15262         * config/rs6000/predicates.md (scc_eq_operand): New.
15264 2005-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
15266         * config/sh/sh.md (mextr_rl): Set buffer size properly.
15267         (*mextr_lr): Likewise.
15269 2005-06-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15271         PR c/21759
15272         * c.opt (Wc++-compat): New.
15273         * doc/invoke.texi (-Wc++-compat): Document.
15274         * c-typeck.c (convert_for_assignment): Check for implicit
15275         conversion void* -> T*.
15277 2005-06-09  Gabriel Dos Reis  <gdr@integrable-solutions.edu>
15279         * machmode.h (to_machine_mode): New.
15280         * rtl.h (to_rtx_code): Likewise.
15281         * read-rtl.c (apply_mode_macro): Convert mode to machine_mode.
15282         (print_c_condition): Convert return value of htab_find().
15283         (apply_code_macro): Add explicit cast when convertin to enums.
15284         (apply_mode_maps): Likewise.
15285         (check_code_macro): Likewise.
15286         (read_rtx_1): Likewise.
15288 2005-06-09  Richard Henderson  <rth@redhat.com>
15290         * config/ia64/ia64.c (update_set_flags): Just return for IF_THEN_ELSE.
15291         Use SCALAR_FLOAT_MODE_P.
15292         * config/ia64/vect.md (vcondv2sf): Remove code check on comparison.
15293         (fselect): Rename from fpcmp; use %F.
15294         (fpcmp): New.
15296 2005-06-09  Jan Hubicka  <jh@suse.cz>
15298         * cgraphunit.c (cgraph_create_edges): Do not walk BLOCK; finalize
15299         local statics when doing unit-at-a-time.
15300         (cgraph_varpool_assemble_pending_decls): Output debug info.
15301         * dwarf2out.c (decls_for_scope): Skip local statics.
15302         (dwarf2out_decl): Handle local statics.
15303         * passes.c (rest_of_decl_compilation): Do not differentiate
15304         local and global statics in unit-at-a-time.
15305         * tree-inline.c (remap_decls): Put local static into
15306         unexpanded_vars_list rather than introducing duplicated VAR_DECL
15307         node.
15309 2005-06-09  Daniel Berlin  <dberlin@dberlin.org>
15311         * config/rs6000/rs6000.c: (rs6000_insn_valid_within_doloop): Fix
15312         prototype.
15314 2005-06-08  Daniel Berlin  <dberlin@dberlin.org>
15316         * Makefile.in (OBJS-common): Add tree-ssa-structalias.o.
15317         * tree-flow.h (find_what_p_points_to): Add prototype.
15318         (push_fields_onto_fieldstack): Ditto.
15319         (sort_fieldstack): Ditto.
15320         * tree-optimize.c (init_tree_optimization_passes): Add
15321         pass_build_pta and pass_del_pta.
15322         * tree-pass.h (pass_build_pta): New structure.
15323         (pass_del_pta): Ditto.
15324         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Disambiguate
15325         using new alias analyzer.
15326         (push_fields_onto_fieldstack): Removed from here.
15327         (bitpos_of_field): Ditto.
15328         (fieldoff_compare): Ditto.
15329         * tree-ssa-structalias.c: New file.
15330         * tree-ssa-structalias.h: Ditto.
15332 2005-06-09  Nathan Sidwell  <nathan@codesourcery.com>
15334         * c-typeck.c (build_c_cast): Check type punning on COMPONENT_REF
15335         too.
15337 2005-06-09  Bernd Schmidt  <bernd.schmidt@analog.com>
15339         * config/bfin/bfin.c (enum bfin_builtins): Moved here from...
15340         * config/bfin/bfin.h (enum bfin_builtins): ... here.
15342 2005-06-09  Adrian Straetling  <straetling@de.ibm.com>
15344         * target.h (insn_valid_within_doloop): Rename into
15345         "invalid_within_doloop".  Change return type to "const char *".
15346         Update Comment.
15347         * targhooks.h (default_insn_valid_within_doloop): Rename into
15348         "default_invalid_within_doloop".
15349         * targhooks.c (default_insn_valid_within_doloop): Likewise.
15350         Update Comment.
15351         * target-def.h (TARGET_INSN_VALID_WITHIN_DOLOOP): Rename target hook
15352         into "TARGET_INVALID_WITHIN_DOLOOP". Default it to
15353         "default_invalid_within_doloop".
15354         * hooks.c (hook_constcharptr_rtx_null): New function.
15355         (hook_bool_rtx_true): Remove.
15356         * hooks.h (hook_constcharptr_rtx_null): Declare.
15357         (hook_bool_rtx_true): Remove.
15358         * loop-doloop.c (doloop_valid_p): Temporarily store return value of
15359         "invalid_within_doloop" and print error message if non-null.
15360         Update Comment.
15361         * doc/tm.texi: Update documentation.
15362         * config/s390/s390.c: Adjust to new hook name and new default hook.
15363         * config/rs6000/rs6000.c: (rs6000_insn_valid_within_doloop): Rename
15364         into "rs6000_invalid_within_doloop".
15365         (rs6000_invalid_within_doloop): Change return type to "static const
15366         char *" and replace return values.  Update Comment.
15368 2005-06-09  Bernd Schmidt  <bernd.schmidt@analog.com>
15370         * config/bfin/bfin.opt (mlong-calls): New.
15371         * config/bfin/predicates.md (call_insn_operand): Disallow SYMBOL_REF
15372         if TARGET_LONG_CALLS.
15374 2005-06-09  Richard Henderson  <rth@redhat.com>
15376         PR tree-opt/20610
15377         * tree.h (DECL_COMPLEX_GIMPLE_REG_P): New.
15378         (struct tree_decl): Add gimple_reg_flag.
15379         * integrate.c (copy_decl_for_inlining): Copy it.
15380         * gimplify.c (internal_get_tmp_var): Set it.
15381         (gimplify_bind_expr): Likewise.
15382         (gimplify_function_tree): Likewise.
15383         (gimplify_modify_expr_complex_part): New.
15384         (gimplify_modify_expr): Use it.
15385         * tree-gimple.c (is_gimple_reg_type): Allow complex.
15386         (is_gimple_reg): Allow complex with DECL_COMPLEX_GIMPLE_REG_P set.
15388         * tree-complex.c (complex_lattice_t): New.
15389         (complex_lattice_values, complex_variable_components): New.
15390         (some_nonzerop, find_lattice_value, is_complex_reg,
15391         init_parameter_lattice_values, init_dont_simulate_again,
15392         complex_visit_stmt, complex_visit_phi, create_components,
15393         update_complex_components, update_parameter_components,
15394         update_phi_components, update_all_vops, expand_complex_move): New.
15395         (extract_component): Handle INDIRECT_REF, COMPONENT_REF, ARRAY_REF,
15396         SSA_NAME.
15397         (update_complex_assignment): Use update_complex_components;
15398         handle updates of return_expr properly.
15399         (expand_complex_addition): Use complex lattice values.
15400         (expand_complex_multiplication): Likewise.
15401         (expand_complex_division): Likewise.
15402         (expand_complex_libcall): Use update_complex_components.
15403         (expand_complex_comparison): Use update_stmt.
15404         (expand_complex_operations_1): Use expand_complex_move, retrieve
15405         lattice values.
15406         (tree_lower_complex): Compute lattice values.
15407         (tree_lower_complex_O0): Duplicate from tree_lower_complex.
15408         (pass_lower_complex_O0): Rename from pass_lower_complex.
15409         (pass_lower_complex, gate_no_optimization): New.
15410         * tree-optimize.c (init_tree_optimization_passes): Update for
15411         complex pass changes.
15412         * tree-pass.h (pass_lower_complex_O0): Declare.
15414 2005-06-08  Dale Johannesen  <dalej@apple.com>
15416         * config/darwin.c (darwin_binds_local_p): New.
15417         * config/darwin-protos.h (darwin_binds_local_p): Declare it.
15418         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Use it for TARGET_MACHO.
15419         * config/rs6000/rs6000.c (rs6000_binds_local_p): Remove.
15420         (TARGET_BINDS_LOCAL_P): Change it to darwin_binds_local_p.
15422 2005-06-08  Aldy Hernandez  <aldyh@redhat.com>
15424         * config/rs6000/rs6000.h: Remove rs6000_long_double_size_string,
15425         rs6000_isel, rs6000_spe, rs6000_alignment_string,
15426         rs6000_sched_restricted_insns_priority_str,
15427         rs6000_sched_restricted_insns_priority, rs6000_abi_string.
15429 2005-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
15431         * tree-ssa-address.c (addr_for_mem_ref): Use LAST_VIRTUAL_REGISTER
15432         instead of FIRST_PSEUDO_REGISTER for creating pseudoregisters.
15433         * tree-ssa-loop-ivopts.c (add_cost, multiply_by_cost,
15434         multiplier_allowed_in_address_p, get_address_cost): Ditto.
15436 2005-06-08  Richard Henderson  <rth@redhat.com>
15438         * config/ia64/ia64.h (NO_PROFILE_COUNTERS): New.
15439         * config/ia64/ia64.c (ia64_output_function_profiler): Honor it.
15440         Emit out3 load right after alloc.
15442 2005-06-08  Aldy Hernandez  <aldyh@redhat.com>
15444         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15445         rs6000_explicit_options.
15447 2005-06-08  Richard Henderson  <rth@redhat.com>
15449         * config/ia64/ia64.h (FUNCTION_PROFILER): Move implementation ...
15450         * config/ia64/ia64.c (ia64_output_function_profiler): ... here; add
15451         unwind markup.
15452         * config/ia64/ia64-protos.h (ia64_output_function_profiler): Declare.
15454 2005-06-08  Joseph S. Myers  <joseph@codesourcery.com>
15456         * config/sol2-c.c (cmn_err_char_table): Allow width for %b
15457         formats.
15459 2005-06-08  James A. Morrison  <phython@gcc.gnu.org>
15461         PR target/20666
15462         * config/sparc/sparc.c (sparc_fold_builtin): New function
15463         (sparc_vis_mul8x16): New function.
15464         (sparc_handle_vis_mul8x16): New function.
15465         (TARGET_FOLD_BUILTIN): Define to sparc_fold_builtin.
15467 2005-06-08  David Edelsohn  <edelsohn@gnu.org>
15469         * config/rs6000/rs6000.md (call_indirect_nonlocal_aix32): Prefer
15470         CTR to LR.
15471         (call_indirect_nonlocal_aix64): Same.
15472         (call_value_indirect_nonlocal_aix32): Same.
15473         (call_value_indirect_nonlocal_aix64): Same.
15475         PR target/10588
15476         (eq): Use CLZ splitter for compare with zero.
15478 2005-06-08  Bernd Schmidt  <bernd.schmidt@analog.com>
15480         * config/bfin/bfin.c (bfin_return_in_memory): Simplify; return
15481         everything larger than 8 bytes in memory.
15483         * config/bfin/bfin.h (enum bfin_builtins): New.
15484         * config/bfin/bfin.md (UNSPEC_VOLATILE_CSYNC, UNSPEC_VOLATILE_SSYNC):
15485         New constants.
15486         (csync, ssync): New insn patterns.
15487         * config/bfin/bfin.c (bfin_init_builtins, bfin_expand_builtin):
15488         New functions.
15489         (def_builtin): New macro.
15490         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
15492         From Jie Zhang  <jie.zhang@analog.com>
15493         * config/bfin/bfin.h (ASM_OUTPUT_ALIGN): Gas now emulates the
15494         behavior of the native assembler in VDSP. So change accordingly.
15496 2005-06-08  Sebastian Pop  <pop@cri.ensmp.fr>
15498         * tree-data-ref.c (compute_estimated_nb_iterations,
15499         analyze_array_indexes, compute_overlap_steps_for_affine_1_2,
15500         analyze_subscript_affine_affine, find_data_references_in_loop):
15501         Fixed to use chrec_contains_undetermined to test the values of
15502         loop->estimated_nb_iterations.
15503         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
15504         Compute the estimation only when loop->estimated_nb_iterations
15505         has not yet been initialized.
15506         (convert_step_widening, scev_probably_wraps_p): Add a call to
15507         estimate_numbers_of_iterations_loop.
15508         * tree-vrp.c (execute_vrp): Don't call estimate_numbers_of_iterations.
15510 2005-06-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
15512         PR debug/21946
15513         * dwarf2out.c (add_loc_descr_op_piece): Move to the
15514         DWARF2_DEBUGGING_INFO section.
15516 2005-06-08  Richard Henderson  <rth@redhat.com>
15518         PR target/21721
15519         * config/ia64/ia64.c (emit_predicate_relation_info): Skip p0.
15521 2005-06-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
15523         PR target/21889
15524         * target.h (gcc_target) <asm_out>: New field output_dwarf_dtprel.
15525         * target-def.h (TARGET_ASM_OUTPUT_DWARF_DTPREL): New macro.
15526         (TARGET_ASM_OUT): Add it.
15527         * doc/tm.texi (Debugging Info): Document it.
15528         * dwarf2out.c (output_loc_operands) <INTERNAL_DW_OP_tls_addr>:
15529         Test it instead of ASM_OUTPUT_DWARF_DTPREL.
15530         (loc_descriptor_from_tree_1) <VAR_DECL>: Likewise.
15531         * system.h: Poison ASM_OUTPUT_DWARF_DTPREL.
15532         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Delete.
15533         * config/frv/frv.c (frv_output_dwarf_dtprel): Make static and unused.
15534         (gen_inlined_tls_plt): Remove unused variable MEM.
15535         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to frv_output_dwarf_dtprel.
15536         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15537         * config/i386/i386-protos.h (i386_output_dwarf_dtprel): Delete.
15538         * config/i386/i386.c (i386_output_dwarf_dtprel): Make static and
15539         unused.
15540         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to i386_output_dwarf_dtprel.
15541         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15542         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): Delete.
15543         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Make static and
15544         unused.
15545         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to ia64_output_dwarf_dtprel.
15546         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15547         * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Delete.
15548         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Make static and
15549         unused.
15550         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to rs6000_output_dwarf_dtprel
15551         * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15552         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): Delete.
15553         * config/s390/s390.c (s390_output_dwarf_dtprel): Make static and
15554         unused.
15555         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to s390_output_dwarf_dtprel.
15556         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15557         * config/sparc/sol2-gas.h (TARGET_SUN_TLS): Define to 0.
15558         (TARGET_GNU_TLS): Define to 1.
15559         * config/sparc/sparc-protos.h (sparc_output_dwarf_dtprel): Delete.
15560         * config/sparc/sparc.c (sparc_output_dwarf_dtprel): Make static and
15561         unused.
15562         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to sparc_output_dwarf_dtprel
15563         if TARGET_GNU_TLS only.
15564         * config/sparc/sparc.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15566         * config.gcc (sparc64-*-solaris2*): Include tm-dwarf2.h last.
15567         (sparc-*-solaris2*): Likewise on Solaris 7 and up.
15569 2005-06-07  Dale Johannesen  <dalej@apple.com>
15571         * config/i386/i386.md (movqi_1): Fix case where source
15572         is memory and destination EDI.
15574 2005-06-08  Kazu Hirata  <kazu@codesourcery.com>
15576         * config/c4x/c4x.h (PREDICATE_CODES): Remove mem_operand.
15578 2005-06-07  Eric Christopher  <echristo@redhat.com>
15580         * system.h: Poison EXTRA_CC_MODES.
15581         * config/frv/frv.h (SELECT_CC_MODE): Rewrite comment.
15582         * config/ia64/ia64.h (SELECT_CC_MODE): Ditto.
15583         * doc/md.texi (Jump Patterns): Replace reference to
15584         EXTRA_CC_MODES with machine-modes.def.
15585         * doc/rtl.texi (Machine Modes): Ditto.
15587 2005-06-07  Richard Henderson  <rth@redhat.com>
15589         * varasm.c (initialize_cold_section_name): Fix alloca buffer overflow.
15590         (assemble_start_function): Fix strcmp confusion.
15592 2005-06-07  Uros Bizjak  <uros@kss-loka.si>
15594         * config/i386/i386.h (enum ix86_entity): New.
15595         (enum ix86_stack_slot): New.
15596         (OPTIMIZE_MODE_SWITCHING): Redefine to use
15597         ix86_optimize_mode_switching[] array.
15598         (NUM_MODES_FOR_MODE_SWITCHING): Redefine for 4 entities.
15599         (MODE_NEEDED): Use ix86_mode_needed() function.
15600         (EMIT_MODE_SET): Redefine for changed emit_i387_cw_initialization ()
15601         function.
15602         (struct machine_function): Use optimize_mode_switching[] array.
15604         * config/i386/i386.c (MAX_386_STACK_LOCALS): Remove.
15605         (ix86_mode_needed): New function.
15606         (emit_i387_cw_initialization): Cleanup. Use mode to calculate
15607         correct stack positions for stored control words.
15608         (assign_386_stack_local): Use enum ix86_stack_slot. Change assert.
15609         (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR]: Change constant to
15610         SLOT_TEMP.
15611         [IX86_BUILTIN_STMXCSR]: Same.
15613         * config/i386/i386-protos.h (assign_stack_local): Change prototype.
15614         (emit_i387_cw_initialization): Change prototype.
15615         (ix86_mode_needed): New prototype.
15617         * config/i386/i386.md (i387_cw attribute): Change order of elements.
15618         (truncdfsf2, truncxfsf2, truncxfdf2, fix_trunc<mode>_fisttp_i387_1)
15619         (*fix_trunc<mode>_i387_1, lrint<mode>2, *fist<mode>2_floor_1)
15620         (*fist<mode>2_ceil_1): Change constant in call to
15621         assign_386_stack_local to SLOT_TEMP.
15622         (*fix_trunc<mode>_i387_1): Change constant in call to
15623         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
15624         Use new ix86_optimize_mode_switching[] array.
15625         (frndintxf2_floor, *fist<mode>2_floor_1): Change constants in call to
15626         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_FLOOR.
15627         Use new ix86_optimize_mode_switching[] array.
15628         (frndintxf2_ceil, *fist<mode>2_ceil_1): Change constants in call to
15629         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_CEIL.
15630         Use new ix86_optimize_mode_switching[] array.
15631         (frndintxf2_trunc): Change constants in call to
15632         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
15633         Use new ix86_optimize_mode_switching[] array.
15634         (frndintxf2_mask_pm): Change constants in call to
15635         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_MASK_PM.
15636         Use new ix86_optimize_mode_switching[] array.
15638         (define_peephole2): Change constant from 17 to FLAGS_REG;
15640 2005-06-07  Richard Henderson  <rth@redhat.com>
15642         PR rtl-opt/21528
15643         * rtlanal.c (reg_overlap_mentioned_p) <MEM>: Handle 'E' formats.
15645 2005-06-07  Dale Johannesen  <dalej@apple.com>
15647         * tree-nested.c (finalize_nesting_tree_1): Disable
15648         warn_padded around layout_type call.
15650 2005-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
15652         * tree-ssa-loop-ivopts.c (rewrite_use_outer): Unshare the expression
15653         before emiting it.
15655 2005-06-07  Eric Christopher  <echristo@redhat.com>
15657         * config/mips/predicates.md: Revert previous patch.
15659 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
15661         PR middle-end/21850
15662         * tree.c (get_unwidened): Stop at NOP_EXPR/CONVERT_EXPR that convert
15663         from vector types.
15665 2005-06-07  Diego Novillo  <dnovillo@redhat.com>
15667         * tree-ssa-threadupdate.c (struct thread_stats_d): Declare.
15668         (thread_stats): New local variable.
15669         (redirect_edges): Increment count of threaded edges.
15670         (thread_through_all_blocks): Initialize thread_stats.
15671         Display number of threaded jumps if TDF_STATS is enabled.
15673 2005-06-07  Kazu Hirata  <kazu@codesourcery.com>
15675         * sbitmap.h (sbitmap_iter_init): Consistently treat bit_num as
15676         the current bit index with no modulo.
15678 2005-06-07  Sebastian Pop  <pop@cri.ensmp.fr>
15680         PR 18403 and meta PR 21861.
15681         * Makefile.in (tree-chrec.o): Depend on CFGLOOP_H and TREE_FLOW_H.
15682         * tree-chrec.c: Include cfgloop.h and tree-flow.h.
15683         (evolution_function_is_invariant_rec_p,
15684         evolution_function_is_invariant_p): New.
15685         (chrec_convert): Use an extra parameter AT_STMT for refining the
15686         information that is passed down to convert_step.  Integrate the
15687         code that was in count_ev_in_wider_type.
15688         * tree-chrec.h (count_ev_in_wider_type): Removed.
15689         (chrec_convert): Modify its declaration.
15690         (evolution_function_is_invariant_p): Declared.
15691         (evolution_function_is_affine_p): Use evolution_function_is_invariant_p.
15692         * tree-flow.h (can_count_iv_in_wider_type): Renamed convert_step.
15693         (scev_probably_wraps_p): Declared.
15694         * tree-scalar-evolution.c (count_ev_in_wider_type): Removed.
15695         (follow_ssa_edge_in_rhs, interpret_rhs_modify_expr):
15696         Use an extra parameter AT_STMT for refining the information that is
15697         passed down to convert_step.
15698         (follow_ssa_edge_inner_loop_phi, follow_ssa_edge,
15699         analyze_scalar_evolution_1): Initialize AT_STMT with the current
15700         analyzed statement.
15701         (instantiate_parameters_1): Don't know yet how to initialize AT_STMT.
15702         * tree-ssa-loop-ivopts.c (idx_find_step): Update the use of
15703         can_count_iv_in_wider_type to use convert_step.
15704         * tree-ssa-loop-niter.c (can_count_iv_in_wider_type_bound): Move
15705         code that is independent of the loop over the known iteration
15706         bounds to convert_step_widening, the rest is moved to
15707         proved_non_wrapping_p.
15708         (scev_probably_wraps_p): New.
15709         (can_count_iv_in_wider_type): Renamed convert_step.
15710         * tree-vrp.c (adjust_range_with_scev): Take an extra AT_STMT parameter.
15711         Use scev_probably_wraps_p for computing init_is_max.
15712         (vrp_visit_assignment): Pass the current analyzed statement to
15713         adjust_range_with_scev.
15714         (execute_vrp): Call estimate_numbers_of_iterations for refining the
15715         information provided by scev analyzer.
15717 2005-06-07  Eric Christopher  <echristo@redhat.com>
15719         * config/mips/predicates.md (sleu_operand): Use
15720         IN_RANGE to specify range of operand.
15722 2005-06-07  Steven Bosscher  <stevenb@suse.de>
15724         PR tree-optimization/21847
15725         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): With
15726         -fnon-call-exceptions, also mark statements inherently
15727         necessary if they may throw.
15729 2005-06-07  Adrian Straetling  <straetling@de.ibm.com>
15731         * config/s390/s390.md: ("UNSPECV_MB", "UNSPECV_CAS"): New constants.
15732         ("type"): Add "sem" to 'type' attribute.
15733         ("memory_barrier", "*memory_barrier", "sync_compare_and_swapdi",
15734         "sync_compare_and_swapsi", "sync_compare_and_swap_ccdi",
15735         "sync_compare_and_swap_ccsi", "*sync_compare_and_swap_ccdi",
15736         "*sync_compare_and_swap_ccsi"): New patterns.
15737         * config/s390/2064.md: ("z_sem"): New insn_reservation.
15738         * config/s390/2084.md: ("x_sem"): New insn_reservation.
15739         * config/s390/s390.c: (s390_compare_emitted): New global variable.
15740         (s390_emit_compare): Do not emit comparison again after cas.
15741         * config/s390/s390.h (s390_compare_emitted): Declare.
15743 2005-06-07  Kazu Hirata  <kazu@codesourcery.com>
15745         * sbitmap.h (sbitmap_iterator, sbitmap_iter_init,
15746         sbitmap_iter_cond, sbitmap_iter_next): New.
15747         * bt-load.c, cfganal.c, combine.c, ddg.c, flow.c,
15748         modulo-sched.c, sbitmap.c, sched-rgn.c, tree-into-ssa.c,
15749         tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Update
15750         uses of EXECUTE_IF_SET_IN_SBITMAP to the new style.
15752 2005-06-07  Zdenek Dvorak  <dvorakz@suse.cz>
15754         * tree-ssa-address.c: New file.
15755         * Makefile.in (tree-ssa-address.o): Add.
15756         * expr.c (expand_expr_real_1): Do not handle REF_ORIGINAL on
15757         INDIRECT_REFs.  Handle TARGET_MEM_REFs.
15758         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REFs.
15759         * tree-flow.h (struct mem_address): New.
15760         (struct affine_tree_combination): Moved from tree-ssa-loop-ivopts.c.
15761         (create_mem_ref, addr_for_mem_ref, get_address_description,
15762         maybe_fold_tmr, multiplier_allowed_in_address_p,
15763         multiply_by_cost): Declare.
15764         * tree-mudflap.c (mf_xform_derefs_1): Handle TARGET_MEM_REFs.
15765         * tree-pretty-print.c (dump_generic_node): Ditto.
15766         * tree-ssa-loop-im.c (for_each_index): Ditto.
15767         * tree-ssa-loop-ivopts.c (may_be_unaligned_p,
15768         find_interesting_uses_address): Ditto.
15769         (rewrite_address_base, build_addr_strip_iref): Removed.
15770         (struct affine_tree_combination): Moved to tree-flow.h.
15771         (get_ref_tag, copy_ref_info): New functions.
15772         (rewrite_use_address): Produce TARGET_MEM_REFs.
15773         (tree_ssa_iv_optimize): Do not call update_ssa
15774         and rewrite_into_loop_closed_ssa.
15775         (tree_to_aff_combination): Use build_fold_addr_expr instead of
15776         build_addr_strip_iref.
15777         (unshare_aff_combination): New function.
15778         (fold_affine_sum): Removed.
15779         (get_computation_at): Use get_computation_aff.  Unshare the result.
15780         (get_computation_aff, multiplier_allowed_in_address_p): New function.
15781         (multiply_by_cost): Exported.
15782         (get_address_cost): Use multiplier_allowed_in_address_p.
15783         * tree-ssa-operands.c (get_tmr_operands): New function.
15784         (get_expr_operands): Handle TARGET_MEM_REFs.
15785         * tree.c (copy_node_stat): Copy annotations for TARGET_MEM_REFs.
15786         (build): Handle 7 arguments.
15787         (build7_stat): New function.
15788         * tree.def (TARGET_MEM_DEF): New.
15789         * tree.h (REF_ORIGINAL): Removed.
15790         (TMR_SYMBOL, TMR_BASE, TMR_INDEX, TMR_STEP, TMR_OFFSET, TMR_ORIGINAL,
15791         TMR_TAG, build7): New macros.
15792         (build7_stat, tree_mem_ref_addr, copy_mem_ref_info): Declare.
15793         * tree-ssa-ccp.c (fold_stmt_r): Call maybe_fold_tmr.
15794         * doc/c-tree.texi: Document TARGET_MEM_REF.
15795         * doc/tree-ssa.texi: Add TARGET_MEM_REF to gimple grammar.
15797 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
15799         PR debug/21946
15800         * dwarf2out.c (add_loc_descr_op_piece): New function.
15801         (multiple_reg_loc_descriptor, concat_loc_descriptor,
15802         loc_descriptor): Use it.
15803         * var-tracking.c: Include regs.h and expr.h.
15804         (emit_note_insn_var_location): Skip over pieces where offset
15805         is smaller than previous offset plus previous piece mode size.
15806         Optimize adjacent hard registers or memory locations.
15807         * Makefile.in (var-tracking.o): Depend on $(REGS_H) and $(EXPR_H).
15809 2005-06-07  Richard Guenther  <rguenth@gcc.gnu.org>
15811         * c-typeck.c (c_finish_if_stmt): Use void_type_node as type
15812         for COND_EXPR.
15813         * gimplify.c (gimplify_cond_expr): No need to fix up the
15814         type of COND_EXPRs.
15816 2005-06-07  Richard Guenther  <rguenth@gcc.gnu.org>
15818         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Fix
15819         comments.
15821 2005-06-07  Geoffrey Keating  <geoffk@apple.com>
15823         * config/rs6000/host-darwin.c (segv_handler): Widen the possible
15824         'stwux' instructions that are considered to be stack decrements.
15826         * rtlanal.c (subreg_offset_representable_p): Handle objects
15827         with holes.
15829 2005-06-06  Uros Bizjak  <uros@kss-loka.si>
15831         * mode-switching.c (optimize_mode_switching): Fix n_exprs parameter
15832         in call to pre_edge_lcm.
15834 2005-06-06  Kaz Kojima  <kkojima@gcc.gnu.org>
15836         * config/sh/linux-unwind.h (SH_DWARF_FRAME_XD0): Remove for SH5.
15837         (SH_DWARF_FRAME_PR, SH_DWARF_FRAME_GBR, SH_DWARF_FRAME_MACL)
15838         (SH_DWARF_FRAME_MACH, SH_DWARF_FRAME_PC, SH_DWARF_FRAME_FPUL):
15839         Likewise.
15840         (SH_DWARF_FRAME_FP0, SH_DWARF_FRAME_FPSCR): Define to the correct
15841         dwarf register number for SHmedia.
15842         (shmedia_fallback_frame_state): New.
15843         (MD_FALLBACK_FRAME_STATE_FOR): Define to it for SH5.
15845         * config/sh/linux.h (FUNCTION_PROFILER): Provide SHMEDIA version.
15847 2005-06-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15849         * c-lex.c (lex_string): Use XOBFINISH.
15850         * collect2.c (extract_string, dump_file): Likewise.
15851         * dbxout.c (dbxout_finish_complex_stabs): Likewise.
15852         * gcc.c (init_spec, build_search_list, convert_filename,
15853         set_collect_gcc_options, do_spec_2, do_spec_1, main): Likewise.
15854         * genpreds.c (write_predicate_subfunction): Likewise.
15855         * genflags.c (main): Likewise.
15856         * read-rtl.c (mode_attr_index, apply_macro_to_string,
15857         join_c_conditions, read_quoted_string, read_braced_string,
15858         read_rtx_1): Likewise.
15859         * stringpool.c (ggc_alloc_string): Likewise.
15860         * tlink.c (obstack_fgets, recompile_files): Likewise.
15862 2005-06-06  Jakub Jelinek  <jakub@redhat.com>
15864         * intl.h (G_): New macro.
15865         * rtl-error.c (error_for_asm, warning_for_asm): Use gmsgid
15866         instead of msgid for argument name.
15867         * tree-ssa.c (warn_uninit): Likewise.
15868         * c-parser.c (c_parser_error): Likewise.
15869         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
15870         * config/darwin-c.c (BAD): Likewise.
15871         * config/c4x/c4x-c.c (BAD): Likewise.
15872         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
15873         * c-errors.c (pedwarn_c99, pedwarn_c90): Likewise.
15874         * c-common.c (c_parse_error): Likewise.
15875         * diagnostic.c (diagnostic_set_info, verbatim, inform, warning,
15876         warning0, pedwarn, error, sorry, fatal_error, internal_error):
15877         Likewise.
15878         (fnotice): Use cmsgid instead of msgid for argument name.
15879         * gcov.c (fnotice): Likewise.
15880         * protoize.c (notice): Likewise.
15881         * final.c (output_operand_lossage): Likewise.
15882         * gcc.c (fatal, notice): Likewise.
15883         (error): Use gmsgid instead of msgid for argument name.
15884         * collect2.c (notice, fatal_perror, fatal): Use cmsgid instead
15885         of msgid for argument name.
15886         (error): Use gmsgid instead of msgid for argument name.
15887         * c-decl.c (locate_old_decl, implicit_decl_warning): Use G_()
15888         instead of N_().
15889         * c-typeck.c (readonly_error, convert_for_assignment): Likewise.
15890         * tree-inline.c (inline_forbidden_p_1): Likewise.
15891         * ABOUT-GCC-NLS: Require gettext 0.14.5 or later.  Mention the new
15892         conventions for marking translations.
15893         * doc/install.texi: Mention gettext 0.14.5 or later requirement.
15895         * tree-chrec.c (reset_evolution_in_loop): Use build3 instead of
15896         build2.
15898         * fold-const.c (operand_equal_p): Don't return 1, if element
15899         chains for 2 VECTOR_CSTs are not the same length.
15901         PR regression/21897
15902         * fold-const.c (fold_ternary) <case BIT_FIELD_REF>: Don't crash if
15903         not all VECTOR_CST elements are given.
15905         * combine.c (try_combine): Use hard_regno_nregs array instead of
15906         HARD_REGNO_NREGS macro.
15907         * config/rs6000/rs6000.c (rs6000_split_multireg_move,
15908         rs6000_register_move_cost, rs6000_memory_move_cost): Likewise.
15909         * config/ia64/ia64.c (mark_reg_gr_used_mask): Likewise.
15911 2005-06-06  Daniel Berlin  <dberlin@dberlin.org>
15913         * tree-ssa-reassoc.o: New.
15914         (OBJS-common): Add tree-ssa-reassoc.o
15915         * timevar.def: Add TV_TREE_REASSOC
15916         * tree-optimize.c (pass_reassoc): Add call.
15917         * tree-pass.h (pass_reassoc): Add.
15918         * tree-ssa-reassoc.c: New file.
15920 2005-06-06  Eric Christopher  <echristo@redhat.com>
15922         target/21927
15923         * expr.c (do_store_flag): Remove check for non-negative BRANCH_COST.
15925 2005-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15927         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard with
15928         HAVE_GAS_MAX_SKIP_P2ALIGN.
15929         (HAVE_AS_DWARF2_DEBUG_LINE): Remove.
15931 2005-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15933         * Makefile.in (mips-tfile.o): Add $(srcdir)/../include prefix to
15934         getopt.h dependency.
15935         (mips-tdump.o): Likewise.
15937 2005-06-06  Jan Hubicka  <jh@suse.cz>
15939         * predict.c (tree_predict_edge): Don't drop useless predictions;
15940         check that it is not called too late in the game.
15941         (gate_estimate_probability): New gate.
15942         (pass_profile): Gate.
15943         * tree-mudflap.c (mf_build_check_statement_for): Do not drop
15944         predictions; update CFG instead.
15945         * cfgrtl.c (rtl_verify_flow_info): Check that predcitions are consumed.
15947 2005-06-06  Jie Zhang  <jie.zhang@analog.com>
15949         * config.gcc (bfin*-uclinux*): New.
15950         * config/bfin/uclinux.h: New file.
15952 2005-06-06  Ben Elliston  <bje@au.ibm.com>
15954         * doc/md.texi (Insn Splitting): Fix some wording.
15956 2005-06-05  David Edelsohn  <edelsohn@gnu.org>
15958         * config/rs6000/rs6000.c (rs6000_emit_swdivsf): New function.
15959         (rs6000_emit_swdivdf): New function.
15960         * config/rs6000/rs6000.md (fres): New pattern.
15961         (divsf3): Add approximation through rs6000_emit_swdivsf.
15962         (fred): New pattern.
15963         (divdf3): Add approximation through rs6000_emit_swdivdf.
15964         * config/rs6000/rs6000-protos.h (rs6000_emit_swdivsf): Declare.
15965         (rs6000_emit_swdivdf): Declare.
15966         * config/rs6000/rs6000.opt (mswdiv): New option.
15967         * doc/invoke.texi (RS/6000 and PowerPC Options): Document mswdiv.
15969 2005-06-05  Zdenek Dvorak  <dvorakz@suse.cz>
15971         PR tree-optimization/21846
15972         * tree-cfg.c (replace_uses_by): Update information stored at loops.
15973         * tree-flow.h (substitute_in_loop_info): Declare.
15974         * tree-scalar-evolution.c (initialize_scalar_evolutions_analyzer):
15975         Ensure that chrec_dont_know and chrec_known have a type.
15976         * tree-ssa-loop-niter.c (substitute_in_loop_info): New function.
15978 2005-06-05  Steven Bosscher  <stevenb@suse.de>
15980         * config/i386/i386.c (x86_use_loop): Remove.
15981         * config/i386/i386.h (x86_use_loop): Remove extern decl.
15982         (TARGET_USE_LOOP): Remove.
15983         * config/i386/i386.md (doloop_end, doloop_end_internal): Remove.
15984         Also remove related define_splits.
15986 2005-06-05  Dorit Nuzman  <dorit@il.ibm.com>
15988         * tree-flow.h (stmt_ann_d): Move aux to ...
15989         (tree_ann_common_d): ... here.
15990         * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
15991         move_computations_stmt, schedule_sm): Update references to
15992         aux.
15993         * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
15994         * tree-vect-transform.c (vect_create_index_for_vector_ref): Update
15995         call to set_stmt_info.
15996         (vect_transform_loop): Likewise.
15997         * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info):
15998         Likewise.
16000         * tree-vect-analyze.c (vect_analyze_scalar_cycles): Made void instead of
16001         bool.
16002         (vect_mark_relevant): Takes two additional arguments - live_p and
16003         relevant_p. Set RELEVANT_P and LIVE_P according to these arguments.
16004         (vect_stmt_relevant_p): Differentiate between a live stmt and a
16005         relevant stmt. Return two values = live_p and relevant_p.
16006         (vect_mark_stmts_to_be_vectorized): Call vect_mark_relevant and
16007         vect_stmt_relevant_p with additional arguments. Phis are no longer
16008         put into the worklist (analyzed seperately in analyze_scalar_cycles).
16009         (vect_determine_vectorization_factor): Also check for LIVE_P, because a
16010         stmt that is marked as irrelevant and live, cause it's only used out
16011         side the loop, may need to be vectorized (e.g. reduction).
16012         (vect_analyze_operations): Examine phis. Call
16013         vectorizable_live_operation for for LIVE_P stmts. Check if
16014         need_to_vectorize.
16015         (vect_analyze_scalar_cycles): Update documentation. Don't fail
16016         vectorization - just classify the scalar cycles created by the loop
16017         phis. Call vect_is_simple_reduction.
16018         (vect_analyze_loop): Call to analyze_scalar_cycles moved earlier.
16019         * tree-vect-transform.c (vect_create_index_for_vector_ref): Update
16020         call to set_stmt_info.
16021         (vect_get_vec_def_for_operand): Code reorganized - the code that
16022         classifies the type of use was factored out to vect_is_simple_use.
16023         (vectorizable_store, vect_is_simple_cond): Call vect_is_simple_use with
16024         additional arguments.
16025         (vectorizable_assignment): Likewise. Also make sure the stmt is relevant
16026         and computes a loop_vec_def.
16027         (vectorizable_operation, vectorizable_load, vectorizable_condition):
16028         Likewise.
16029         (vectorizable_live_operation): New.
16030         (vect_transform_stmt): Handle LIVE_P stmts.
16031         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new fields
16032         STMT_VINFO_LIVE_P and STMT_VINFO_DEF_TYPE.
16033         (new_loop_vec_info, destroy_loop_vec_info): Also handle phis.
16034         (vect_is_simple_use): Determine the type of the def and return it
16035         in a new function argument. Consider vect_reduction_def and
16036         vect_induction_def, but for now these are not supported.
16037         (vect_is_simple_reduction): New. Empty for now.
16038         * tree-vectorizer.h (vect_def_type): New enum type.
16039         (_stmt_vec_info): Added new fields - live and _stmt_vec_info.
16040         (STMT_VINFO_LIVE_P, STMT_VINFO_DEF_TYPE): New accessor macros.
16041         (vect_is_simple_use): New arguments added to function declaration.
16042         (vect_is_simple_reduction): New function declaration.
16043         (vectorizable_live_operation): New function declaration.
16045         * tree-vect-analyze.c (vect_can_advance_ivs_p): Add debug printout.
16046         (vect_can_advance_ivs_p): Likewise.
16047         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Likewise.
16049 2005-06-05  Eric Christopher  <echristo@redhat.com>
16051         * config/mips/mips.c (mips_rtx_costs): Remove unused variable.
16053 2005-06-05  Hans-Peter Nilsson  <hp@bitrange.com>
16055         PR target/21914
16056         * config/mmix/mmix.md ("*movdicc_real_foldable")
16057         ("*movdfcc_real_foldable", "*bCC_foldable")
16058         ("*bCC_inverted_foldable"): Specify DImode for register being
16059         compared.
16061 2005-06-04  Roger Sayle  <roger@eyesopen.com>
16063         * reg-stack.c (struct block_info_def): Correct grammar typo.
16064         (compensate_edge): Clean-up.  Perform as little work as possible
16065         when src and dest stacks match.  Avoid modifying block_info.
16066         Reorder and simplify assertion checks.  Avoid unnecessary copying
16067         of regstack structure.
16068         (convert_regs_1): Set the done flag here...
16069         (convert_regs_2): ... instead of here.
16071 2005-06-04  Dale Johannesen  <dalej@apple.com>
16073         * config/rs6000/rs6000.c (no_global_regs_above): New.
16074         (rs6000_emit_prologue): Use it; cosmetic formatting fixes.
16075         (rs6000_emit_epilogue): Use it; cosmetic formatting fixes.
16076         (rs6000_conditional_register_usage): Don't put Darwin PIC
16077         register in global_regs.
16078         (rs6000_stack_info): Don't set lr_save_p just because Darwin
16079         PIC reg used.
16080         (rs6000_emit_prologue): Save LR in R0 around Darwin PIC setup,
16081         if not done by lr_save_p.
16082         * config/rs6000/rs6000.md (insnv1_internal1): Back out 05-18 patch.
16083         Use rotate instead of ashift.
16084         (call_indirect_nonlocal_sysv): Prefer CTR to LR.
16085         (call_value_indirect_nonlocal_sysv): Ditto.
16087 2005-06-04  Jan Hubicka  <jh@suse.cz>
16089         * cgraphunit.c (cgraph_reset_node): Break out from ...
16090         (cgraph_finalize_function): ... here.
16091         (cgraph_finalize_compilation_unit): Reset nodes where backend
16092         removed the body.
16094 2005-06-04  Richard Henderson  <rth@redhat.com>
16096         PR target/21888
16097         * config/alpha/alpha.c (alpha_align_insns): Don't insert nops
16098         until we've passed initial ldgp.
16100 2005-06-04  Daniel Berlin  <dberlin@dberlin.org>
16102         * cfgexpand.c (expand_one_var): Use DECL_HAS_VALUE_EXPR_P.
16103         * dwarf2out.c (loc_descriptor_from_tree_1): Ditto.
16104         * expr.c (expand_var): Ditto.
16105         * function.c (gimplify_parameters): Use SET_DECL_VALUE_EXPR too.
16106         * gimplify.c (gimplify_decl_expr): Ditto.
16107         (gimplify_expr): Ditto.
16108         * tree-mudflap.c (mf_decl_eligible_p): Use DECL_HAS_VALUE_EXPR_P.
16109         * tree.c (value_expr_for_decl): New.
16110         (print_value_expr_statistics): New.
16111         (init_ttree): Init value_expr_for_decl.
16112         (decl_value_expr_lookup): New.
16113         (decl_value_expr_insert): Ditto.
16114         (copy_node_stat): Copy DECL_VALUE_EXPR status.
16115         * tree.h (DECL_VALUE_EXPR): Use hashtable.
16116         (SET_DECL_VALUE_EXPR): New.
16117         (DECL_HAS_VALUE_EXPR_P): New.
16119 2005-06-04  Steven Bosscher  <stevenb@suse.de>
16121         * lcm.c: Move all mode-switching related functions from here...
16122         * mode-switching.c: ...to this new file.
16123         * doc/passes.texi: Update accordingly.
16125         * basic-block.h (label_value_list): Remove extern decl.
16126         * cfgrtl.c (label_value_list): Remove.
16127         (can_delete_label_p): Don't look at it.
16128         * cfgcleanup.c (cleanup_cfg): Don't free it.
16130         * common.opt: Don't refer to non-existing flag_alias_check.
16132 2005-06-04  David Edelsohn  <edelsohn@gnu.org>
16134         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power5.
16136 2005-06-04  Kazu Hirata  <kazu@codesourcery.com>
16138         * function.c (prologue, epilogue, sibcall_epilogue): Change
16139         their types to VEC(int,heap)*.
16140         (free_after_compilation): Free the three vectors above.
16141         (init_function_for_compilation, record_insns, contains,
16142         prologue_epilogue_contains, sibcall_epilogue_contains,
16143         reposition_prologue_and_epilogue_notes): Use VEC instead of
16144         VARRAY.  (init_function_once): Remove.
16145         * function.h: Remove the prototype for init_function_once.
16146         * toplev.c (backend_init): Don't call init_function_once.
16148 2005-06-04  Jan Hubicka  <jh@suse.cz>
16150         * predict.c (tree_predict_edge): Do not predict entry edge and
16151         single succestor edge.
16153 2005-06-04  Joseph S. Myers  <joseph@codesourcery.com>
16155         PR c/21873
16156         * c-typeck.c (push_init_level): Don't pop levels without braces if
16157         implicit == 1.
16159 2005-06-03  Sebastian Pop  <pop@cri.ensmp.fr>
16161         * tree-data-ref.c (compute_self_dependence): New function.
16162         (compute_all_dependences): Use it.
16164 2005-06-03  Geoffrey Keating  <geoffk@apple.com>
16166         * c-parser.c (c_parser_parms_declarator): Don't use chainon().
16167         (c_parser_expr_list): Don't use chainon().
16169         * config/darwin.h (LINK_SPEC): Pass -syslibroot to linker
16170         when -isysroot passed.
16172 2005-06-03  Joseph S. Myers  <joseph@codesourcery.com>
16174         PR c/21879
16175         * c-decl.c (start_function): Restore label_context_stack_se and
16176         label_context_stack_vm  if returning with an error.
16178 2005-06-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16180         * configure.ac: Check declaration for asprintf, needed by
16181         libiberty.h.
16182         * configure: Regenerate.
16183         * config.in: Likewise.
16185 2005-06-03  Diego Novillo  <dnovillo@redhat.com>
16187         * tree-ssa-dom.c (record_edge_info): Use last_basic_block to
16188         allocate info array.
16189         * tree-vrp.c (extract_range_from_unary_expr): Set resulting
16190         range to varying in cast expressions that change
16191         TYPE_PRECISION.
16193 2005-06-03  Eric Christopher  <echristo@redhat.com>
16195         * config/mips/mips.opt: Add RejectNegative to divide-breaks and
16196         divide-traps.
16198 2005-06-03  Jan Hubicka  <jh@suse.cz>
16200         * basic-block.h (remove_predictions_associated_with_edge): Declare.
16201         * cfg.c (remove_edge): Use it.
16202         * predict.c (remove_predictions_associated_with_edge): New function.
16204 2005-06-03  Pat Haugen  <pthaugen@us.ibm.com>
16206         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
16207         Clear call_realy_used_regs[r2] when ABI_AIX.
16209 2005-06-03  Richard Guenther  <rguenth@gcc.gnu.org>
16211         PR middle-end/21858
16212         * fold-const.c (fold_binary): Fix type mismatches in folding
16213         of comparisons.
16215 2005-06-03  Kazu Hirata  <kazu@codesourcery.com>
16217         * cgraph.c, cgraphunit.c, config/mips/mips.c: Fix comment
16218         typos.
16220 2005-06-03  Joseph S. Myers  <joseph@codesourcery.com>
16222         * collect2.c (maybe_unlink): Use unlink_if_ordinary.
16224 2005-06-02  Bernd Schmidt  <bernd.schmidt@analog.com>
16226         * reload1.c (reload): Revert my previous patch.
16228 2005-06-03  Nick Clifton  <nickc@redhat.com>
16230         * config/arm/semi.h (ASM_SPEC): Fix typo passing -mfloat-abi to
16231         assembler.
16233 2005-06-03  Kazu Hirata  <kazu@codesourcery.com>
16235         PR tree-optimization/21849
16236         * tree-ssa-copy.c (dump_copy_of): Call sbitmap_zero.
16238 2005-06-02  Richard Henderson  <rth@redhat.com>
16240         * Makefile.in (tree-vect-generic.o): New.
16241         (OBJS-common, GTFILES, s-gtype): Add it.
16242         * tree-complex.c (build_replicated_const, vector_inner_type,
16243         vector_last_type, vector_last_nunits, build_word_mode_vector_type,
16244         elem_op_func, tree_vec_extract, do_unop, do_binop, do_plus_minus,
16245         do_negate, expand_vector_piecewise, expand_vector_parallel,
16246         expand_vector_addition, expand_vector_operation,
16247         type_for_widest_vector_mode, expand_vector_operations_1,
16248         gate_expand_vector_operations, expand_vector_operations,
16249         pass_lower_vector_ssa): Move to tree-vect-generic.c.
16250         (tree_lower_complex): Rename from tree_lower_operations.
16251         (pass_lower_complex): Rename from pass_pre_expand.
16252         * tree-vect-generic.c: New file.
16253         * tree-pass.h (pass_lower_complex): Rename from pass_pre_expand.
16254         (pass_lower_vector): New.
16255         * tree-optimize.c (init_tree_optimization_passes): Update to match.
16257 2005-06-02  Richard Henderson  <rth@redhat.com>
16259         * modulo-sched.c (doloop_register_get): Protect against
16260         doloop_end not defined.
16262 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
16264         * config/sh/sh.c (general_movsrc_operand,
16265         general_movdst_operand, arith_reg_operand, arith_reg_dest,
16266         logical_reg_operand, int_gpr_dest, fp_arith_reg_operand,
16267         fp_arith_reg_dest, arith_operand, arith_reg_or_0_operand,
16268         xor_operand, cmp_operand, logical_operand, and_operand,
16269         fpscr_operand, fpul_operand, symbol_ref_operand,
16270         commutative_float_operator, noncommutative_float_operator,
16271         unary_float_operator, binary_float_operator,
16272         binary_logical_operator, equality_comparison_operator,
16273         greater_comparison_operator, less_comparison_operator,
16274         shift_operator, logical_operator, target_reg_operand,
16275         target_operand, mextr_bit_offset, extend_reg_operand,
16276         trunc_hi_operand, extend_reg_or_0_operand, minuend_operand,
16277         general_extend_operand, ua_address_operand,
16278         cache_address_operand, inqhi_operand, sh_rep_vec, sh_1el_vec,
16279         sh_const_vec, ua_offset, sh_register_operand, cmpsi_operand,
16280         shift_count_reg_operand, shift_count_operand,
16281         unaligned_load_operand): Move to ...
16282         * config/sh/predicates.md: ... here.
16283         * config/sh/sh.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
16284         Remove.
16286 2005-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
16288         * tree.c (build_common_builtin_nodes): Fix the return type on
16289         __builtin_memcmp.
16291 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
16293         * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Remove.
16294         (find_interesting_uses_address): Use build_fold_addr_expr instead.
16295         (strip_offset_1): Likewise.
16296         (tree_to_aff_combination): Likewise.
16298 2005-06-02  DJ Delorie  <dj@redhat.com>
16300         * convert.c (convert_to_pointer): Avoid recursion if no conversion
16301         is needed.
16303 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
16305         * tree-chrec.c (chrec_fold_plus_1): Ensure we build
16306         binary operations with the correct types.
16307         * tree-ssa-loo-ivopts.c (idx_find_step): Use sizetype
16308         for all computation.
16310 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
16312         * tree-vrp.c, config/arm/arm.md, config/arm/arm1020e.md,
16313         config/rs6000/rs6000.md: Fix comment typos.  Follow splling
16314         conventions.
16315         * doc/install.texi: Fix a typo.
16317 2005-06-02  Jan Hubicka  <jh@suse.cz>
16319         * cgraphunit.c (cgraph_function_and_variable_visibility): Extern
16320         inline functions are not local.
16322 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
16324         * gimplify.c (gimplify_ctx): Change the type of case_labels to
16325         VEC from VARRAY.
16326         (gimplify_switch_expr, gimplify_case_label_expr): Adjust uses
16327         of case_labels.
16329 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
16331         * c-typeck.c (build_indirect_ref): Build INDIRECT_REF
16332         with correct type.
16334 2005-06-02  Ulrich Weigand  <uweigand@de.ibm.com>
16336         * config/s390/s390.c (s390_add_execute): Do not handle out-of-pool
16337         execute templates.
16338         (s390_dump_pool): Likewise.
16339         (s390_mainpool_start, s390_mainpool_finish): Likewise.
16340         (s390_chunkify_start): Likewise.
16341         (s390_dump_execute): Remove.
16342         (s390_reorg): Handle out-of-pool execute templates.
16344 2005-06-02  Adrian Straetling  <straetling@de.ibm.com>
16346         * optabs.c: (expand_bool_compare_and_swap): Emit barrier after
16347           unconditional jump.
16349 2005-06-02  Jan Hubicka  <jh@suse.cz>
16351         * cgraph.c (cgraph_node): Maintain master clones.
16352         (cgraph_remove_node): Likewise.
16353         (availability_names): New static variable.
16354         (dump_cgraph_node): Dump availability.
16355         (dump_cgraph_varpool_node): Likewise.
16356         (cgraph_is_master_clone, cgraph_master_clone,
16357         cgraph_function_body_availability,
16358         cgraph_variable_initializer_availability): New functions.
16359         * cgraph.h (availability): New enum.
16360         (struct cgraph_node): Add master_clone.
16361         (cgraph_is_master_clone, cgraph_master_clone,
16362         cgraph_function_body_availability,
16363         cgraph_variable_initializer_availability): Declare.
16364         * cgraphunit.c (cgraph_expand_function): Setcgraph_function_flags_ready.
16365         (cgraph_remove_unreachable_nodes): Remove unreachable nodes.
16366         * ipa-inline.c (cgraph_decide_inlining): Do not call
16367         cgraph_remove_unreachable_nodes.
16369         * cgraphunit.c (cgraph_function_and_variable_visibility): Fix typo in
16370         previous patch.
16372 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
16374         PR 21582
16375         * tree-vrp.c (nonnull_arg_p): New.
16376         (get_value_range): Call it.
16378 2005-06-02  Eric Christopher  <echristo@redhat.com>
16380         * config/mips/mips.h (processor_type): Remove PROCESSOR_DEFAULT,
16381         add PROCESSOR_MAX.
16382         (mips_rtx_cost_data): New datatype.
16383         (MEMORY_MOVE_COST): Use data from structure.
16384         (BRANCH_COST): Ditto.
16385         (LOGICAL_OP_NON_SHORT_CIRCUIT): Define to zero.
16386         * config/mips/mips.md (cpu): Rework for processor_type changes.
16387         * config/mips/mips.c (mips_cost): New variable.
16388         (DEFAULT_COSTS): Define.
16389         (mips_rtx_cost_data): New.
16390         (mips_rtx_costs): Use. Minor formatting changes. Use COSTS_N_INSNS
16391         for NEG cost. Add support for FLOAT, UNSIGNED_FLOAT, FIX,
16392         FLOAT_EXTEND, FLOAT_TRUNCATE, and SQRT.
16393         (override_options): Set cost data.
16394         (mips_register_move_cost): Formatting changes.
16395         (bdesc_arrays): Use PROCESSOR_MAX.
16396         (mips_init_builtins): Ditto.
16398 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
16400         PR 21765
16401         * doc/invoke.texi: Document -ftree-vrp.
16403 2005-06-02  Dorit Nuzman  <dorit@il.ibm.com>
16405         PR tree-optimization/21734
16406         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop): Use the
16407         phi_result when current_def is not available.
16408         (slpeel_update_phi_nodes_for_guard1): Don't fail if current_def is not
16409         available.
16411 2005-06-02  David Edelsohn  <edelsohn@gnu.org>
16413         * config/rs6000/rs6000.c (rs6000_insn_valid_within_doloop): New.
16414         (TARGET_INSN_VALID_WITHIN_DOLOOP): Define.
16416 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
16418         * tree-vrp.c (has_assert_expr, maybe_add_assert_expr): Remove.
16420 2005-06-02  Jan Hubicka  <jh@suse.cz>
16422         * cgraph.c (dump_cgraph_node): Print new flags.
16423         (dump_cgraph_varpool_node): Likewise.
16424         (decide_variable_is_needed): Initialize externally_visible flag.
16425         * cgraph.h (cgraph_local_info): Add externally_visible flag.
16426         (cgraph_varpool_node): Likewise.
16427         (cgraph_function_flags_ready): Declare.
16428         * cgraph.c (cgraph_mark_local_functions): Rename to ...
16429         (cgraph_function_and_variable_visibility) ... this one; handle
16430         externally_visible flags.
16431         (decide_is_function_needed): Set externally_visible flag.
16432         (cgraph_finalize_function): Deal properly with early cleanups.
16433         (cgraph_optimize): Update call of
16434         cgraph_function_and_variable_visibility.
16436 2005-06-02 Steven Bosscher  <stevenb@suse.de>
16437            Mostafa Hagog <mustafa@il.ibm.com>
16439         * cfgloop.h (doloop_condition_get): Make external.
16440         * loop-doloop.c (doloop_condition_get): Generalize to make it
16441         usable in modulo-sched.c.
16442         * modulo-sched.c (doloop_register_get): Use
16443         doloop_condition_get instead of duplicating it.
16445 2005-06-02  Bernd Schmidt  <bernd.schmidt@analog.com>
16447         * reload1.c (reload): Undo 2005-04-20 change.  Make sure we detect
16448         the correct set of init_insns that need deletion.
16449         * local-alloc.c (update_equiv_regs): When substituting sole definition
16450         into sole use of a reg, delete it from liveness information.
16452 2005-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
16454         * config/sh/sh.h (TARGET_FPU_DOUBLE): Use MASK_SH4.
16456 2005-06-01  Diego Novillo  <dnovillo@redhat.com>
16458         PR 14341, PR 21332, PR 20701, PR 21029, PR 21086, PR 21090
16459         PR 21289, PR 21348, PR 21367, PR 21368, PR 21458.
16460         * fold-const.c (invert_tree_comparison): Make extern.
16461         * tree-flow.h (enum value_range_type): Move to tree-ssa-propagate.
16462         (struct value_range_def): Limewise.
16463         (get_value_range): Remove.
16464         (dump_value_range): Remove.
16465         (dump_all_value_ranges): Remove.
16466         (debug_all_value_ranges): Remove.
16467         (vrp_evaluate_conditional): Declare.
16468         * tree-ssa-propagate.c (struct prop_stats_d): Add field
16469         num_pred_folded.
16470         (substitute_and_fold): Add argument use_ranges_p.
16471         Update all callers.
16472         If use_ranges_p is true, call fold_predicate_in to fold
16473         predicates using range information.
16474         Ignore ASSERT_EXPRs.
16475         Change debugging output to only show statements that have been
16476         folded.
16477         (replace_phi_args_in): Move debugging output code from
16478         substitute and fold.
16479         (fold_predicate_in): New local function.
16480         * tree-ssa-propagate.h (enum value_range_type): Move from
16481         tree-flow.h.
16482         (struct value_range_d): Likewise.
16483         Add field 'equiv'.
16484         (value_range_t): Rename from value_range.
16485         * tree-vrp.c (found_in_subgraph): Rename from found.
16486         (get_opposite_operand): Remove.
16487         (struct assert_locus_d): Declare.
16488         (assert_locus_t): Declare.
16489         (need_assert_for): Declare.
16490         (asserts_for): Declare.
16491         (blocks_visited): Declare.
16492         (vr_value): Declare.
16493         (set_value_range): Add argument 'equiv'.
16494         Don't drop to VARYING ranges that cover all values in the
16495         type.
16496         Make deep copy of equivalence set 'equiv'.
16497         (copy_value_range): New local function.
16498         (set_value_range_to_undefined): New local function.
16499         (compare_values): Return -2 if either value has overflowed.
16500         (range_includes_zero_p): New local function.
16501         (extract_range_from_assert): Flip the predicate code if the
16502         name being asserted is on the RHS of the predicate.
16503         Avoid creating unnecessary symbolic ranges if the comparison
16504         includes another name with a known numeric range.
16505         Update the equivalnce set of the new range when asserting
16506         EQ_EXPR predicates.
16507         (extract_range_from_ssa_name): Update the equivalence set of
16508         the new range with VAR.
16509         (extract_range_from_binary_expr): Also handle TRUTH_*_EXPR.
16510         If -fwrapv is used, set the resulting range to VARYING if the
16511         operation overflows.  Otherwise, use TYPE_MIN_VALUE and
16512         TYPE_MAX_VALUE to represent -INF and +INF.
16513         Fix handling of *_DIV_EXPR.
16514         (extract_range_from_unary_expr): Handle MINUS_EXPR and
16515         ABS_EXPR properly by switching the range around if necessary.
16516         (extract_range_from_comparison): New local function.
16517         (extract_range_from_expr): Call it.
16518         (adjust_range_with_scev): Do not adjust the range if using
16519         wrapping arithmetic (-fwrapv).
16520         (dump_value_range): Also show equivalence set.
16521         Show -INF and +INF for TYPE_MIN_VALUE and TYPE_MAX_VALUE.
16522         (build_assert_expr_for): Also build ASSERT_EXPR for EQ_EXPR.
16523         (infer_value_range): Change return value to bool.
16524         Add arguments 'comp_code_p' and 'val_p'.
16525         Do not attempt to infer ranges from statements that may throw.
16526         Store the comparison code in comp_code_p.
16527         Store the other operand to be used in the predicate in val_p.
16528         (dump_asserts_for): New.
16529         (debug_asserts_for): New.
16530         (dump_all_asserts): New.
16531         (debug_all_asserts): New.
16532         (register_new_assert_for): New.
16533         (register_edge_assert_for): New.
16534         (find_conditional_asserts): New.
16535         (find_assert_locations): New.
16536         (process_assert_insertions_for): New.
16537         (process_assert_insertions): New.
16538         (insert_range_assertions): Initialize found_in_subgraph,
16539         blocks_visited, need_assert_for and asserts_for.
16540         Call find_assert_locations and process_assert_insertions.
16541         (remove_range_assertions): Add more documentation.
16542         (vrp_initialize): Change return type to void.
16543         Do not try to guess if running VRP is worth it.
16544         (compare_name_with_value): New.
16545         (compare_names): New.
16546         (vrp_evaluate_conditional): Add argument 'use_equiv_p'.  If
16547         use_equiv_p is true, call compare_names and
16548         compare_name_with_value to compare all the ranges for every
16549         name in the equivalence set of the predicate operands.
16550         Update all callers.
16551         (vrp_meet): Try harder not to derive a VARYING range.
16552         If two values meet, the resulting equivalence set is the
16553         intersection of the two equivalence sets.
16554         (vrp_visit_phi_node): Call copy_value_range to get the current
16555         range information of the LHS.
16556         (vrp_finalize): Create a value vector representing all the
16557         names that ended up with exactly one value in their range.
16558         Call substitute_and_fold.
16559         (execute_vrp): Document equivalence sets in ranges.
16560         * tree.h (SSA_NAME_VALUE_RANGE): Remove.
16561         (struct tree_ssa_name): Remove field value_range.
16562         (invert_tree_comparison): Declare.
16564 2005-06-01  Daniel Berlin  <dberlin@dberlin.org>
16566         Fix PR tree-optimization/21839
16568         * gimplify.c (zero_sized_field_decl): New function.
16569         (gimplify_init_ctor_eval): Use it.
16571 2005-06-01  Josh Conner <jconner@apple.com>
16573         PR 21478
16574         * gimplify.c (gimplify_init_constructor): Don't spill initializer
16575         to read-only memory if it's sparse.
16577 2005-06-01  Ramana Radhakrishnan  <ramana@codito.com>
16579         * doc/rtl.texi: Remove references to NOTE_INSN_SETJMP.
16580         Add documentation for REG_SETJMP
16582 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
16584         * stmt.c (expand_case): Use build_int_cst.
16585         (node_has_low_bound): Likewise, and correct type mismatch.
16586         (node_has_high_bound): Likewise.
16587         * fold-const.c (fold_binary): Ensure we build trees
16588         with the correct types - undo what STRIP_NOPS possibly did.
16590 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
16592         * tree.h (fold_indirect_ref_1): Export from fold-const.c.
16593         * fold-const.c (fold_indirect_ref_1): No longer static.
16594         * tree-inline.c (copy_body_r): Use fold_indirect_ref_1 for
16595         folding, if possible.
16597 2005-06-01  Joseph S. Myers  <joseph@codesourcery.com>
16599         * common.opt (fjump-tables): New.
16600         * doc/invoke.texi (-fno-jump-tables): Document.
16601         * stmt.c (expand_end_case_type): Do not emit jump tables unless
16602         flag_jump_tables.
16604 2005-06-01  Richard Earnshaw  <richard.earnshaw@arm.com>
16606         * arm.md (bunordered, bordered, bungt, bunlt, bunge, bunle, buneq)
16607         (bltgt, arm_buneq, arm_bltgt, sunordered, sordered, sungt, sunge)
16608         (sunlt, sunle): Enable patterns on VFP.
16610         * arm.md (attribute 'type'): Add new types - f_loads floadd, f_stores,
16611         f_stored, f_flag, f_cvt.
16612         (generic_sched): No-longer used for the arm1020e and arm1022e cores.
16613         Include arm1020e.md.
16614         * vfp.md (fmstat): New cpu unit.  Add an exclusion set between it and
16615         the ds and fmac pipelines.  Re-work all load and store patterns and
16616         all conversion patterns to use new attributes.  Adjust reservation
16617         descriptions accordingly.
16618         * arm1020e.md: New file.
16619         * t-arm: Add dependency.
16621 2005-06-01  Jan Hubicka  <jh@suse.cz>
16623         * except.c (struct eh_region): Kill unused fields.
16624         * basic-block.h (struct basic_block_def): Likewise.
16626 2005-06-01  J"orn Rennecke <joern.rennecke@st.com>
16628         PR rtl-optimization/21767
16629         * rtl.h (function_invariant_p): Re-add declaration.
16630         * reload1.c (function_invariant_p): No longer static.
16631         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL notes that
16632         might have become invalid.
16634 2005-06-01  Jakub Jelinek  <jakub@redhat.com>
16636         PR c/21536
16637         PR c/20760
16638         * gimplify.c (gimplify_decl_expr): Call gimplify_type_sizes
16639         on variable sizes types if a decl is a pointer to a VLA.
16640         (gimplify_type_sizes): Handle POINTER_TYPE and REFERENCE_TYPE.
16641         Call gimplify_type_sizes on aggregate fields.  Prevent infinite
16642         recursion.
16644         * fold-const.c (fold_ternary): Optimize BIT_FIELD_REF of VECTOR_CST.
16646         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss, _mm_set1_ps,
16647         _mm_set_ps, _mm_setr_ps): Add __extension__.
16648         * config/i386/emmintrin.h (_mm_set_sd, _mm_set1_pd, _mm_set_pd,
16649         _mm_setr_pd, _mm_setzero_pd, _mm_set_epi64x, _mm_set_epi64x,
16650         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128):
16651         Likewise.
16652         (_mm_clflush): Don't use return in void function.
16654         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128,
16655         _mm_castps_pd, _mm_castps_si128, _mm_castsi128_ps, _mm_castsi128_pd):
16656         Use __inline instead of inline.
16658 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
16660         * fold-const.c (fold_binary): Fix types in strlen vs.
16661         zero comparison folding.
16663 2005-06-01  Richard Henderson  <rth@redhat.com>
16665         * configure.ac (HAVE_AS_JSRDIRECT_RELOCS): New.
16666         * config.in, configure: Rebuild.
16667         * config/alpha/alpha.c (print_operand): Add 'j'.
16668         * alpha.md (divmodsi_internal_er_1): Use it.
16669         (divmoddi_internal_er_1): Likewise.
16671 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
16673         * system.h (TARGET_OPTIONS, TARGET_SWITCHES): Poison.
16674         * opts.h (print_filtered_help): Delete.
16675         * opts.c (handle_option, decode_options): Remove calls to
16676         set_target_switch.
16677         (print_target_help): New function.
16678         (common_option, print_help): Call print_target_help instead of
16679         display_target_options.
16680         (print_filtered_help): Make static.
16681         * toplev.h (display_target_options, set_target_switch): Delete.
16682         * toplev.c (target_switches, target_options, display_target_options)
16683         (set_target_switch): Delete.
16684         (print_switch_values): Remove handling of TARGET_SWITCHES and
16685         TARGET_OPTIONS.
16686         (default_get_pch_validity): Likewise.  Only treat target_flags
16687         specially if targetm.check_pch_target_flags is nonnull.
16688         (pch_option_mismatch): New function.
16689         (default_pch_valid_p): Use it.  Remove handling of TARGET_SWITCHES
16690         and TARGET_OPTIONS.  Only treat target_flags specially if
16691         targetm.check_pch_target_flags is nonnull.
16692         * config/ia64/ia64.c (ia64_override_options): Don't mention
16693         TARGET_OPTIONS in comment.
16694         * config/m68k/m68k-none.h (CC1_SPEC): Likewise.
16695         * doc/invoke.texi: Remove a reference to TARGET_SWITCHES.
16696         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS): Don't mention the
16697         interaction with TARGET_SWITCHES.
16698         (TARGET_@var{featurename}, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
16700 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
16702         * config/sh/sh.c (multcosts): Check sh_multcost rather than
16703         sh_multcost_str.
16704         (sh_register_move_cost): Likewise sh_gettrcost and sh_gettrcost_str.
16705         (sh_multcost_str, sh_gettrcost_str, sh_div_str, sh_divsi3_libfunc)
16706         (cut2_workaround_str): Delete.
16707         * config/sh/sh.h (SUBTARGET_OPTIONS, TARGET_OPTIONS)
16708         (TARGET_SH5_CUT2_WORKAROUND, sh_multcost_str, sh_gettrcost_str)
16709         (sh_div_str, sh_divsi3_libfunc, cut2_workaround_str): Delete.
16710         * config/sh/sh.opt (mcut2-workaround, mdiv=, mdivsi3_libfunc=)
16711         (mgettrcost=, multcost=): New options.
16713 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
16715         * opts.h (cl_option_state): New structure.
16716         (get_option_state): Declare.
16717         * opts.c (get_option_state): New function.
16718         * toplev.c (option_affects_pch_p): New function.
16719         (default_get_pch_validity): Store the state of all options for which
16720         option_affects_pch_p returns true.
16721         (default_pch_valid_p): Check the state of those options here.
16722         Only check target_flags separately if targetm.check_pch_target_Flags
16723         is nonnull or if TARGET_SWITCHES is defined.
16725 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
16727         * config/mips/mips-protos.h (mips_use_ins_ext_p): Remove parameter
16728         names.
16730 2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
16732         * modulo-sched.c (undo_generate_reg_moves ): Fix PR 21138.
16734 2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
16736         * gcse.c (compute_transp, load_killed_in_block): Use
16737         MEM_READONLY_P.
16739 2005-06-01  David.Billinghurst  <David.Billinghurst@riotinto.com>
16741         PR target/21854
16742         * config/mips/mips-protos.h: Declare mips_use_ins_ext_p
16744 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16746         * errors.h (warning, error, fatal, internal_error): Add printf
16747         attribute.
16748         * genmodes.c (make_vector_mode): Fix format arguments.
16750 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16752         * basic-block.h, bb-reorder.c, c-gimplify.c, config/darwin.c,
16753         config/rs6000/rs6000-c.c, dominance.c, gimple-low.c, gimplify.c,
16754         lambda-code.c, lambda-trans.c, tree-browser.c, tree-cfg.c,
16755         tree-chrec.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
16756         tree-if-conv.c, tree-into-ssa.c, tree-loop-linear.c,
16757         tree-mudflap.c, tree-nomudflap.c, tree-outof-ssa.c,
16758         tree-pretty-print.c, tree-scalar-evolution.c, tree-sra.c,
16759         tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
16760         tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-live.c,
16761         tree-ssa-operands.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
16762         tree-ssa-propagate.c, tree-ssa-sink.c, tree-ssa-threadupdate.c,
16763         tree-ssa-uncprop.c, tree-ssa.c, tree-vect-analyze.c,
16764         tree-vect-transform.c, tree-vectorizer.c, vec.c: Don't include
16765         errors.h and include toplev.h if necessary.
16767         * rtl.c, varray.c: If we're compiling as a GENERATOR_FILE, include
16768         errors.h otherwise include toplev.h.
16770         * Makefile.in: Update dependencies.
16772 2005-06-01  Danny Smith  <dannysmith@users.sourceforge.net>
16774         * config/i386/cygming.h (NO_PROFILE_COUNTERS): Define.
16776 2005-05-31  Geoffrey Keating  <geoffk@geoffk.org>
16778         * config/rs6000/rs6000.md (sync_boolcshort_internal): New.
16779         * config/rs6000/rs6000.c (rs6000_emit_sync): Shift count must
16780         be complemented for big-endian.  Mask for AND must be rotated,
16781         not shifted.  Handle short operands with NOT on the memory
16782         operation.
16784 2005-05-30  Daniel Berlin  <dberlin@dberlin.org>
16786         * c-objc-common.c (c_tree_printer): Check flag before hashtable.
16787         Use DECL_DEBUG_EXPR and SET_DECL_DEBUG_EXPR.
16788         * dwarf2out.c (dwarf2out_var_location): Ditto.
16789         * toplev.c (default_tree_printer): Ditto.
16790         * tree-outof-ssa.c (create_temp): Ditto.
16791         * tree-sra.c (instantiate_element): Ditto.
16792         * var-tracking.c (track_expr_p): Ditto.
16793         * tree.c (struct tree_map): New structure.
16794         (debug_expr_for_decl): New.
16795         (tree_map_eq): New function.
16796         (tree_map_hash): Ditto.
16797         (tree_map_marked_p): Ditto.
16798         (print_debug_expr_statistics): Ditto.
16799         (decl_debug_expr_lookup): Ditto.
16800         (decl_debug_expr_insert): Ditto.
16801         (dump_tree_statistics): Dump debug_expr hashtable stats.
16802         * tree.h (DECL_DEBUG_EXPR): Change
16803         (SET_DECL_DEBUG_EXPR): Add.
16805 2005-06-01  Alan Modra  <amodra@bigpond.net.au>
16807         * configure.ac: Add --enable-secureplt.
16808         (HAVE_AS_REL16): Test for R_PPC_REL16 relocs.
16809         * config.in: Regenerate.
16810         * configure: Regenerate.
16811         * config.gcc (powerpc64-*-linux*, powerpc-*-linux*): Add
16812         rs6000/secureplt.h to tm_file when enable_secureplt.
16813         * doc/invoke.texi (msecure-plt, mbss-plt): Document.
16814         * doc/install.texi: Document --enable-targets and --enable-secureplt.
16815         Correct xrefs to "Using the GNU Compiler Collection (GCC)".
16816         * config/rs6000/secureplt.h: New file.
16817         * config/rs6000/sysv4.h (TARGET_SECURE_PLT): Define.
16818         (SUBTARGET_OVERRIDE_OPTIONS): Error if -msecure-plt given without
16819         assembler support.
16820         (CC1_SECURE_PLT_DEFAULT_SPEC): Define.
16821         (CC1_SPEC): Delete duplicate mno-sdata.  Invoke cc1_secure_plt_default.
16822         (SUBTARGET_EXTRA_SPECS): Add cc1_secure_plt_default.
16823         * config/rs6000/sysv4.opt (msecure-plt, bss-plt): Add options.
16824         * config/rs6000/rs6000.h (TARGET_SECURE_PLT): Define.
16825         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Handle
16826         TARGET_SECURE_PLT got register load sequence.
16827         (rs6000_emit_prologue): Call rs6000_emit_load_toc_table when
16828         TARGET_SECURE_PLT.
16829         (rs6000_elf_declare_function_name): Don't emit toc address offset
16830         word when TARGET_SECURE_PLT.
16831         * config/rs6000/rs6000.md (elf_high, elf_low): Move past load_toc_*.
16832         (load_toc_v4_PIC_1) Enable for TARGET_SECURE_PLT.
16833         (load_toc_v4_PIC_3b, load_toc_v4_PIC_3c): New insns.
16834         (call, call_value): Mark pic_offset_table_rtx used for sysv pic and
16835         TARGET_SECURE_PLT.
16836         (call_nonlocal_sysv, call_value_nonlocal_sysv, sibcall_nonlocal_sysv,
16837         sibcall_value_nonlocal_sysv): Add 32768 offset when TARGET_SECURE_PLT
16838         and -fPIC.
16839         * config/rs6000/tramp.asm (trampoline_initial): Use "bcl 20,31".
16840         (__trampoline_setup): Likewise.  Init r30 before plt call.
16842 2005-05-31  DJ Delorie  <dj@redhat.com>
16844         * expr.c (convert_move): When a partial_int requires multiple
16845         conversion steps, make sure successive steps convert the
16846         intermediate value, not the original value.
16848         * expmed.c (expand_mult): Convert partial_int multiplies to
16849         shift/add combinations too.
16851         * genmodes.c (mode_data): Add wider_2x.
16852         (calc_wider_mode): Calculate twice-wider mode too.
16853         (emit_mode_wider): Emit twice-wider mode too.
16854         * machmode.h (mode_2xwider, GET_MODE_2XWIDER_MODE): New.
16855         * expr.c (expand_expr_real_1): Use it for expanding
16856         multiplies.
16858 2005-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
16860         PR tree-optimization/21817
16861         * tree-ssa-loop-im.c (for_each_index): Handle VECTOR_CST.
16863 2005-05-31  Pat Haugen  <pthaugen@us.ibm.com>
16865         * loop.c (loop_invariant_p, valid_initial_value_p): Revert last
16866         change.
16868 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
16870         PR middle-end/20931
16871         PR middle-end/20946
16872         * fold-const.c (fold_checksum_tree): Copy types also if
16873         TYPE_CONTAINS_PLACEHOLDER_INTERNAL is set.
16874         Don't call fold_checksum_tree for TREE_LIST's TREE_CHAIN
16875         first.
16876         Tail recurse TREE_LIST's TREE_CHAIN.
16878 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
16880         PR tree-opt/21732
16881         * tree-ssa-copy.c (dump_copy_of): Create a bitmap and don't visit a
16882         SSA_NAME twice and cause the loop to become finite.  Remove the test
16883         for val.
16885 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
16887         * tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional
16888         expression.
16890 2005-05-31  Richard Sandiford  <rsandifo@redhat.com>
16892         * doc/tm.texi (TARGET_GET_PCH_VALIDITY, TARGET_PCH_VALID_P): Tweak
16893         the documentation to make it more future-proof.
16894         (TARGET_CHECK_PCH_TARGET_FLAGS): Document this new hook.
16895         * target.h (gcc_target): Add check_pch_target_flags.
16896         * target-def.h (TARGET_CHECK_PCH_TARGET_FLAGS): New macro.
16897         (TARGET_INITIALIZER): Include it.
16898         * toplev.c (default_pch_valid_p): Use targetm.check_pch_target_flags.
16899         * config/sh/sh-protos.h (sh_pch_valid_p): Delete.
16900         * config/sh/sh.c (TARGET_PCH_VALID_P, sh_pch_valid_p): Delete.
16901         (sh_check_pch_target_flags): New function.
16902         (TARGET_CHECK_PCH_TARGET_FLAGS): Override default.
16904 2005-05-31  Richard Guenther  <rguenth@gcc.gnu.org>
16906         * fold-const.c (extract_array_ref): Handle more cases,
16907         do some useful canonicalization of the base.
16908         (fold_binary): Explicitly deal with arrays of zero-sized
16909         structures during folding of &a[i] == &a[j].
16911 2005-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
16913         * doc/install.texi (sparc-sun-solaris2*): Update note
16914         about Sun bug 4910101.
16915         (sparc-sun-solaris2.7): Document bootstrap
16916         failure with Sun WorkShop 6 99/08/18 as.
16918 2005-05-30  Pat Haugen  <pthaugen@us.ibm.com>
16920         * loop.c (loop_invariant_p, valid_initial_value_p): Use
16921         regs_invalidated_by_call instead of call_used_regs.
16923 2005-05-30  Paolo Carlini  <pcarlini@suse.de>
16925         PR middle-end/21743
16926         * builtins.def (BUILT_IN_CLOG, BUILT_IN_CLOGF, BUILT_IN_CLOGL):
16927         Enable.
16928         * doc/extend.texi: Add clog, clogf, clogl.
16930 2005-05-30  H.J. Lu  <hongjiu.lu@intel.com>
16932         PR middle-end/20303
16933         * c-pragma.c: Include "vec.h".
16934         (handle_pragma_visibility): Use VEC.
16936         * doc/invoke.texi: Remove the nested visibility push limit.
16938 2005-05-30  Roger Sayle  <roger@eyesopen.com>
16940         PR rtl-optimization/15422
16941         * reg-stack.c (starting_stack_p): New static global.
16942         (straighten_stack): Delete prototype. Change to update the stack
16943         before the current insn.
16944         (subst_stack_regs): Update call to straighten stack.
16945         (emit_swap_insn): Delete prototype.  For the first insn in a
16946         basic block, update stack_in instead of emitting a real swap.
16947         (change_stack): When changing the stack before the first insn
16948         in a basic block, update stack_in instead of emitting real code.
16949         (compensate_edges): Clear starting_stack_p during compensation.
16950         (convert_regs_1): Keep track of starting_stack_p whilst processing
16951         a basic block.
16953 2005-05-30  Kazu Hirata  <kazu@cs.umass.edu>
16955         * tree-ssa-ccp.c (const_val): Make it static.
16957 2005-05-29  Geoffrey Keating  <geoffk@apple.com>
16959         PR target/21761
16960         * config/rs6000/rs6000.md: Remove stray TARGET_32BIT from
16961         pattern involving `:P'.
16963         * Makefile.in (install-cpp): Depend on installdirs.
16965 2005-05-30  Kazu Hirata  <kazu@cs.umass.edu>
16967         * tree-outof-ssa.c (_elim_graph): Change the type of edge_list
16968         to VEC(int,heap)*.
16969         (new_elim_graph, clear_elim_graph, delete_elim_graph,
16970         elim_graph_add_edge, elim_graph_remove_succ_edge,
16971         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED): Use VEC
16972         instead of VARRAY.
16974 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
16976         * cgraphunit.c, ipa-inline.c, loop-iv.c, modulo-sched.c,
16977         opts.c, postreload-gcse.c, tree-browser.def, tree-eh.c,
16978         tree-ssa-copyrename.c, tree-vect-analyze.c: Fix typos and
16979         follow spelling conventions in error/dump messages.
16981 2005-05-29  Roger Sayle  <roger@eyesopen.com>
16982             Richard Henderson  <rth@redhat.com>
16984         * ifcvt.c (noce_emit_move_insn): Construct a SET pattern directly
16985         if the RHS isn't suitable for calling emit_move_insn.
16987 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
16989         * tree-ssa-ccp.c (ccp_fold): Return immediately after calling
16990         fold_unary and fold_binary.
16992 2005-05-29  Roger Sayle  <roger@eyesopen.com>
16994         * reg-stack.c (propagate_stack): Always copy the source stack to
16995         the destination.  This routine is now only called when this is safe.
16996         (better_edge): New function split out from convert_regs_1 to
16997         determine which of two edges is better to propagate across.
16998         (convert_regs_1): We need only search for a best edge if the
16999         stack layout hasn't been defined yet.  Use better_edge to help
17000         find beste.  No longer traverse unnecessary edges.
17002 2005-05-29  Keith Besaw  <kbesaw@us.ibm.com>
17004         * tree-ssa-alias.c (new_type_alias): New procedure to
17005         create a type memory tag for a pointer with a may-alias
17006         set determined from a variable declaration.
17007         * tree-flow.h: export declaration of new_type_alias
17008         * tree-optimize.c (init_tree_optimization_passes): document
17009         that pass_may_alias cannot be called after pass_vectorize.
17010         * tree-vect-transform (vect_create_data_ref_ptr): Call
17011         new_type_alias when an type memory tag isn't available
17012         for a reference.
17013         (vectorizable_store): Use copy_virtual_operands to update
17014         virtual defs in place (so that loop_version can be called).
17015         Call mark_for_renaming for the virtual defs in case peeling
17016         is done and virtual uses outside the loop need to be updated.
17018 2005-05-29  Dorit Naishlos  <dorit@il.ibm.com>
17020         PR tree-optimization/21639
17021         * tree-complex.c (pass_lower_vector_s): Remove TODO_ggc_collect.
17023 2005-05-29  Jan Hubicka  <jh@suse.cz>
17025         PR tree-optimization/21562
17026         * cfgexpand.c (construct_init_block): Deal properly with the case
17027         of entry edge not pointing to very first basic block.
17029 2005-05-28  Kazu Hirata  <kazu@cs.umass.edu>
17031         * tree-ssa-ccp.c (ccp_fold): Remove code that produces
17032         non-gimple min invariant.
17034         * Makefile.in (OBJS-common): Add tree-cfgcleanup.o.
17035         * tree-flow.h: Add prototypes for start_recording_case_labels
17036         and end_recording_case_labels.
17037         * tree-cfg.c (start_recording_case_labels,
17038         end_recording_case_labels): Export.
17039         (cleanup_tree_cfg_loop, modified_noreturn_calls,
17040         cleanup_control_flow, cleanup_control_expr_graph,
17041         remove_fallthru_edge, phi_alternatives_equal,
17042         tree_forwarder_block_p, has_abnormal_incoming_edge_p,
17043         remove_forwarder_block, cleanup_forwarder_blocks,
17044         remove_forwarder_block_with_phi, merge_phi_nodes,
17045         gate_merge_phi, pass_merge_phi): Move to ...
17046         * tree-cfgcleanup.c: ... here.
17048         * basic-block.h: Remove forward declaration of bb_ann_d.
17050 2005-05-28  Jan Hubicka  <jh@suse.cz>
17052         * tree-ssa-threadupdate.c: (create_edge_and_update_destination_phis):
17053         Update profile.
17054         * value-prof.c (tree_divmod_fixed_value_transform): Be more verbose in
17055         debug output.
17056         (tree_mod_subtract): Fix profile updating code.
17057         (tree_divmod_values_to_profile): Do not produce useless value profilers
17058         for divisions.
17060 2005-05-28  Kazu Hirata  <kazu@cs.umass.edu>
17062         * tree-ssa-dom.c (vrp_element_p): Define.
17063         (vrp_hash_elt): Change the type of records to
17064         VEC(vrp_element_p,heap).
17065         (vrp_free): New.
17066         (tree_ssa_dominator_optimize): Pass vrp_free to htab_create.
17067         Update uses of VRP records.
17068         (simplify_cond_and_lookup_avail_expr, record_range): Update
17069         uses of VRP records.
17071         * tree-inline.c (cfun_stack): Change the type to
17072         VEC(function_p,heap).
17073         (push_cfun, pop_cfun): Use VEC instead of VARRAY.
17075 2005-05-27  Ian Lance Taylor  <ian@airs.com>
17077         * c-decl.c (add_stmt): Add C frontend specific version.
17078         (stmts_are_full_exprs_p): Remove.
17079         * c-common.h (STMT_IS_FULL_EXPR_P): Remove.
17080         (stmts_are_full_exprs_p): Don't declare.
17081         * c-semantics.c (add_stmt): Remove.
17083 2005-05-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17085         * config/mips/mips-protos.h (mips_declare_object): Add printf
17086         attribute.
17087         * config/mips/mips.c (mips_declare_object_name): Fix format
17088         argument.
17090 2005-05-27  Roger Sayle  <roger@eyesopen.com>
17092         * reg-stack.c (compensate_edge): Remove original prototype.
17093         (propagate_stack): New function to copy the stack layout
17094         at the start of a basic block from the layout at the end of
17095         one of its predecessors.
17096         (compensate_edge): Assume that both source and destination
17097         blocks have already had their stack layouts defined.
17098         (compensate_edges): Traverse all non-entry edges in the CFG
17099         and call compensate_edge on each in turn.
17100         (convert_regs_1): Change return type to void.  Call
17101         propagate_stack instead of compensate_edge.
17102         (convert_regs_2): Change return type to void.  Update call
17103         to convert_regs_1 to ignore the (now void) return value.
17104         (convert_regs): Update calls to convert_regs_2 to ignore
17105         the (now void) return value.  After all the basic blocks have
17106         been processed, call compensate_edges to actually emit new
17107         insns.
17108         (reg_to_stack): Initialize the aux info for each basic block
17109         with FOR_EACH_BB instead of which FOR_EACH_BB_REVERSE.
17111 2005-05-28  Jan Hubicka  <jh@suse.cz>
17113         * except.c (can_throw_internal_1, can_throw_external_1): Add
17114         "is_resx" argument.
17115         (can_throw_external, can_throw_internal): Bring into sync wrt
17116         dealing resx.
17117         * except.h (can_throw_internal_1, can_throw_external_1): Update
17118         prototype.
17119         * tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
17120         Deal properly with resx.
17122 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
17124         * basic-block.h (basic_block_def): Add phi_nodes and
17125         predictions.  Remove tree_annotations.
17126         * predict.c (tree_predicted_by_p, tree_predict_edge,
17127         combine_predictions_for_bb): Adjust references to predictions.
17128         * tree-cfg.c (init_empty_tree_cfg, create_bb): Don't call
17129         create_block_annotation.
17130         (create_block_annotation, free_blocks_annotatios,
17131         clear_blocks_annotations): Remove.
17132         (dump_cfg_stats): Don't print out the memory spent on
17133         bb_ann_d.
17134         (delete_tree_cfg_annotations): Don't call free_blocks_annotations.
17135         * tree-flow-inline.h (bb_ann): Remove.
17136         (phi_nodes, set_phi_nodes): Update references to phi_nodes.
17137         * tree-flow.h (bb_ann_d): Remove.
17138         * tree-if-conv.c (process_phi_nodes): Update a reference to
17139         phi_nodes.
17140         * tree-phinodes.c (reserve_phi_args_for_new_edge,
17141         create_phi_node, remove_phi_node): Likewise.
17142         * tree-pretty-print.c (dump_generic_bb_buff): Don't call bb_ann.
17143         * tree-ssa-dom.c (threaded_blocks): New.
17144         (tree_ssa_dominator_optimize): Initialize, clear, and free
17145         threaded_blocks. Update a call to thread_through_all_blocks.
17146         (thread_across_edge): Use threaded_blocks instead of setting
17147         incoming_edge_threaded.
17148         * tree-ssa-threadupdate.c (threaded_through_all_blocks): Take
17149         a bitmap of blocks that are threaded through.
17150         * tree.h: Move the prototype of threaded_through_blocks to
17151         tree-flow.h.
17153         * domwalk.c (walk_dominator_tree, init_walk_dominator_tree,
17154         fini_walk_dominator_tree): Use VEC instead of VARRAY.
17155         * domwalk.h (dom_walk_data): Change the type of
17156         block_data_stack and free_block_data to VEC(void_p,heap)*.
17157         * tree-ssa-dse.c (dse_initialize_block_local_data,
17158         dse_optimize_stmt, dse_record_phis, dse_finalize_block): Use
17159         VEC instead of VARRAY.
17161 2005-05-27  Jan Hubicka  <jh@suse.cz>
17163         * cgraph.c: Include tree-gimple.h
17164         (cgraph_edge): Rename expr to stmt.
17165         (cgraph_create_edge): Likewise.
17166         (cgraph_clone_node): Likewise.
17167         * cgraph.h (cgraph_node): Use call_stmt instead of call_expr.
17168         * cgraphunit.c (record_call_1): Rename to ...
17169         (record_reference): ... this one; do not build edges.
17170         (cgraph_varpool_analyze_pending_decls): Call record_reference directly.
17171         (current_basic_block): Kill.
17172         (cgraph_create_edges): Rewrite to work on gimple statements nicely.
17173         (verify_cgraph_node): Likewise.
17174         * tree-inline.c (copy_body_r): Do not mess up with cgraph edges.
17175         (copy_bb): Mess up with cgraph edges here; simplify EH handling.
17176         (copy_edges_for_bb): Simplify EH handling.
17177         (expand_call_inline): Pass statement to cgraph_edge and
17178         cgraph_create_edge.
17180 2005-05-27  Richard Guenther  <rguenth@gcc.gnu.org>
17182         * tree-inline.c (copy_body_r): Manually fold *& to deal
17183         with ADDR_EXPRs with mismatched types for now.
17185         * gimplify.c (fold_indirect_ref_rhs): New function.
17186         (gimplify_modify_expr_rhs): Use it instead of pessimistic
17187         fold_indirect_ref.
17189         * fold-const.c (fold_indirect_ref_1): Add type argument;
17190         make sure the resulting expression is of this type.
17191         (build_fold_indirect_ref, fold_indirect_ref): Adjust callers.
17193 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
17195         PR tree-optimization/21658
17196         * tree-ssa-ccp.c (ccp_fold): Call fold_binary instead of
17197         fold_binary_to_constant.  Likewise, call fold_unary instead of
17198         fold_unary_to_constant.
17200 2005-05-27  Nathan Sidwell  <nathan@codesourcery.com>
17202         * vec.h: Implement integral type vector specialization.
17203         (VEC_T): Define a non-GTY structure.
17204         (VEC_T_GTY): Define a GTY structure.
17205         (VEC_TA): Rename to ...
17206         (VEC_TA_GTY): ... here.
17207         (DEF_VEC_I, DEF_VEC_ALLOC_I): New.
17208         (DEF_VEC_P, DEF_VEC_ALLOC_P): Adjust.
17209         (DEF_VEC_FUNC_P, DEF_VEC_ALLOC_FUNC_P): New, broken out of
17210         DEF_VEC_P and DEF_VEC_ALLOC_P.
17211         (DEF_VEC_O, DEF_VEC_ALLOC_O): Adjust.
17212         (DEF_VEC_FUNC_O, DEF_VEC_ALLOC_FUNC_O): New, broken out of
17213         DEF_VEC_O and DEF_VEC_ALLOC_O.
17214         * global.c: Use DEF_VEC_I, DEF_VEC_ALLOC_I.
17215         * lambda-code.c: Likewise.
17216         * tree-into-ssa.c: Likewise.
17217         * tree-ssa-live.c: Likewise.
17219 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
17221         * tree-into-ssa.c (update_ssa): Ensure that the operand cache
17222         is up-to-date.
17223         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
17224         update_stmt_if_modified before calling update_ssa.
17226 2005-05-27  Ralf Corsepius  <ralf.corsepius@rtems.org>
17228         * config/rs6000/t-rtems: Remove roe multilib variant.
17230 2005-05-26  Roger Sayle  <roger@eyesopen.com>
17232         PR tree-optimization/9814
17233         * ifcvt.c (noce_emit_move_insn): If we fail to recognize the move
17234         instruction, add the necessary clobbers by re-expanding the RTL
17235         for arithmetic operations via optab.c's expand_unop/expand_binop.
17236         (noce_try_bitop): New function to optimize bit manipulation idioms
17237         of the form "if (x & C) x = x op C" and "if (!(x & C) x = x op C".
17238         (noce_process_if_block): Call noce_try_bitop.
17240 2005-05-26  Roger Sayle  <roger@eyesopen.com>
17242         * reg-stack.c (convert_regs_entry, convert_regs_exit,
17243         convert_regs_1, convert_regs_2, convert_regs): Delete prototypes.
17244         (reg_to_stack): Move to end of the file.  Initialize the per
17245         basic block information here, instead of...
17246         (convert_regs_entry): Here.
17247         (convert_regs): Change unused return type to void.
17249 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
17251         * c-pch.c, timevar.c, timevar.h, unwind-compat.c,
17252         unwind-dw2-fde-compat.c, unwind-dw2-fde.c, config/mmix/mmix.h,
17253         config/rs6000/eabispe.h, config/rs6000/lynx.h,
17254         config/sh/elf.h, config/sh/symbian-pre.h,
17255         config/sparc/sparc-protos.h: Update copyright.
17257 2005-05-26  Mike Stump  <mrs@apple.com>
17259         * darwin.h (ASM_OUTPUT_LABELREF): Handle quoted non-lazy pointers
17260         for Objective-C++.
17262 2005-05-26  Richard Guenther  <rguenth@gcc.gnu.org>
17264         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
17265         See through ADDR_EXPR in finding place to propagate into.
17267 2005-05-26  Kazu Hirata  <kazu@cs.umass.edu>
17269         * c-common.c, c-parser.c, cfgbuild.c, cfghooks.c, cfghooks.h,
17270         cfgrtl.c, cgraphunit.c, ddg.c, expr.h, gcse.c, ggc-page.c,
17271         ggc-zone.c, gimplify.c, ipa-inline.c, longlong.h, targhooks.c,
17272         tree-flow-inline.h, tree-pass.h, tree-ssa-dse.c,
17273         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
17274         tree-ssa-operands.c, tree-vect-analyze.c,
17275         tree-vect-transform.c, tree-vectorizer.c, tree.c,
17276         config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
17277         config/frv/frv.md, config/i386/i386.c, config/i386/sse.md,
17278         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
17279         config/mcore/mcore.c, config/mips/mips.c, config/mips/mips.md,
17280         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
17281         config/rs6000/rs6000.h, config/sh/sh.c, config/sh/sh.md,
17282         config/sh/ushmedia.h, config/sparc/sparc.c,
17283         config/sparc/sparc.md, config/stormy16/stormy-abi: Fix comment
17284         typos.  Follow spelling conventions.
17285         * doc/invoke.texi, doc/tm.texi, doc/tree-ssa.texi: Fix typos.
17286         Follow spelling conventions.
17288 2005-05-26  David Ung  <davidu@mips.com>
17290         * config/mips/mips.c (mips_use_ins_ext_p): New helper function
17291         that determines whether the MIPS32/64 R2 ext/ins should be used.
17292         * config/mips/mips.h (ISA_HAS_EXT_INS): New macro.
17293         * config/mips/mips.md (extzv): Changed predicate for operand to
17294         nonimmediate_operand. Add code to generate insn patterns for
17295         extzvsi and extzvdi.
17296         (extzv<mode>): New pattern to match mips32/64 r2 ext insn.
17297         (insv): Similarly for insertion.
17298         (insv<mode>): Similarly.
17300 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
17302         * simplify-rtx.c (avoid_constant_pool_reference): Support
17303         offsetted addresses in the constant pool.
17305 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
17307         * df.h (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
17308         * df.c (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
17310 2005-05-26  Jakub Jelinek  <jakub@redhat.com>
17312         PR target/21716
17313         * reg-stack.c (swap_rtx_condition): Don't crash if %ax user was not
17314         found in the basic block and last insn in the basic block is not
17315         INSN_P.  Remove explicit unspec numbers that are no longer valid
17316         from comments.
17318 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
17320         * tree-vect-transform.c (vectorizable_operation): Try word_mode
17321         vectorization if UNITS_PER_WORD == UNITS_PER_SIMD_WORD, even
17322         if a vector mode is available.
17324 2005-05-25  Roger Sayle  <roger@eyesopen.com>
17326         PR middle-end/21709
17327         * fold-const.c (const_binop): Check for division by zero during
17328         complex division.
17330 2005-05-26  Ian Lance Taylor  <ian@airs.com>
17332         * reload1.c (verify_initial_elim_offsets): Add braces to avoid
17333         having a declaration after a statement.
17335 2005-05-26  Richard Sandiford  <rsandifo@redhat.com>
17337         * opt-functions.awk (var_type): New function.
17338         (var_set): Use CLVC_STRING if var_type returns "const char *".
17339         * opth-gen.awk: Use var_type to find out the types of variables.
17340         Don't print comments above each "extern" definition.
17341         * optc-gen.awk: Use var_type in the same way.
17342         * opts.h (cl_var_cond): Rename to...
17343         (cl_var_type): ...this.  Add CLVC_STRING.
17344         (cl_option): Make "flag_var" a "void *" pointer.  Replace "var_cond"
17345         with "var_type".
17346         * opts.c (handle_option, option_enabled): Update after above name
17347         change.  Cast flag_var before using it.  Handle CLVC_STRING.
17349         * config/alpha/alpha.h (alpha_tls_size): Delete.
17350         * config/alpha/alpha.c (alpha_tls_size, alpha_cpu_string)
17351         (alpha_tune_string, alpha_tp_string, alpha_fprm_string)
17352         (alpha_fptm_string, alpha_mlat_string): Delete.
17353         (alpha_handle_option): Don't set the above variables here.  Use the
17354         integer argument to check the validity of -mtls-size=.
17355         * config/alpha/alpha.opt (mcpu=, mtune=, mfp-rounding-mode=)
17356         (mfp-trap-mode=, mtrap-precision=, mmemory-latency=): Add Var()s.
17357         (mtls-size=): Likewise.  Convert to a UInteger and initialize the
17358         variable to 32.
17360         * config/arc/arc.c (arc_cpu_string, arc_text_string)
17361         (arc_data_string, arc_rodata_string): Delete.
17362         (arc_handle_option): Don't set the above variables here.
17363         * config/arc/arc.opt (mcpu=, mtext=, mdata=, mrodata=): Add Var()s
17364         and initialize them.
17366         * config/arm/arm.c (target_fpu_name, target_fpe_name)
17367         (target_float_abi_name, target_abi_name, structure_size_string)
17368         (arm_pic_register_string): Delete.
17369         (arm_handle_option): Don't set the above variables here, except
17370         in the handling of -mhard-float and -msoft-float.
17371         * config/arm/arm.opt (mabi=, mfloat-abi=, mfp=, mfpe=, mfpu=)
17372         (mpic-register=, mstructure-size-boundary=): Add Var()s.
17374         * config/avr/avr.c (avr_init_stack, avr_mcu_name, TARGET_HANDLE_OPTION)
17375         (avr_handle_option): Delete.
17376         * config/avr/avr.opt (mmcu=, minit-stack=): Add Var()s and initialize
17377         them.
17379         * config/bfin/bfin.c (bfin_library_id): Delete.
17380         (bfin_handle_option): Don't set it.
17381         * config/bfin/bfin.opt (mshared-library-id=): Add Var().
17383         * config/c4x/c4x.h (c4x_rpts_cycles): Delete.
17384         * config/c4x/c4x.c (c4x_rpts_cycles): Delete.
17385         (c4x_handle_option): Don't set c4x_rpts_cycles here.
17386         * config/c4x/c4x.opt (mrpts=): Add Var().
17388         * config/cris/aout.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't set
17389         cris_elinux_stacksize_str here.
17390         * config/cris/aout.opt (melinux-stacksize=): Add Var().
17391         * config/cris/cris.h (cris_max_stackframe_str, cris_cpu_str)
17392         (cris_tune_str, cris_elinux_stacksize_str): Delete.
17393         * config/cris/cris.c (cris_max_stackframe_str, cris_cpu_str)
17394         (cris_tune_str, cris_elinux_stacksize_str): Delete.
17395         (cris_handle_option): Don't set the above variables here.
17396         * config/cris/cris.opt (mcpu=, march=, mtune=, mmax-stackframe=)
17397         (max-stackframe=): Add Var()s.
17399         * config/i386/i386.h (ix86_tune_string, ix86_arch_string): Delete.
17400         * config/i386/i386.c (ix86_cmodel_string, ix86_asm_string)
17401         (ix86_tls_dialect_string, ix86_tune_string, ix86_arch_string)
17402         (ix86_fpmath_string, ix86_regparm_string, ix86_align_loops_string)
17403         (ix86_align_jumps_string, ix86_preferred_stack_boundary_string)
17404         (ix86_branch_cost_string, ix86_align_funcs_string): Delete.
17405         (ix86_handle_option): Don't set the above variables here.
17406         * config/i386/i386.opt (malign-functions=, malign-jumps=)
17407         (malign-loops=, march=, masm=, mbranch-cost=, mcmodel=, mfpmath=)
17408         (mpreferred-stack-boundary=, mregparm=, mtls-dialect=, mtune=): Add
17409         Var()s.
17411         * config/ia64/ia64.h (ia64_tls_size): Delete.
17412         * config/ia64/ia64.c (ia64_tls_size): Delete.
17413         (ia64_handle_option): Treat -mtls-size= as a UInteger option,
17414         reading the integer argument from the "value" parameter.  Don't
17415         set ia64_tls_size here.
17416         * config/ia64/ia64.opt (mtls-size=): Turn into a UInteger option.
17417         Add Var() and Init().
17419         * config/m32r/m32r.h (m32r_cache_flush_func): Delete.
17420         (m32r_cache_flush_trap): Delete.
17421         * config/m32r/m32r.c (m32r_cache_flush_func): Delete.
17422         (m32r_cache_flush_trap): Delete.
17423         (m32r_handle_option): Don't set the above variables when handling
17424         -mflush-func= and -mflush-trap=.
17425         * config/m32r/m32r.opt (-mflush-func=, -mflush-trap=): Add Var()s
17426         and Init()s.
17428         * config/mips/mips.h (mips_cache_flush_func): Delete.
17429         * config/mips/mips.c (mips_arch_string, mips_tune_string)
17430         (mips_cache_flush_func): Delete.
17431         (mips_handle_option): Don't set the above variables when handling
17432         -march=, -mtune= and -mflush-func=.
17433         * config/mips/mips.opt (march=, mflush-func=, mtune=): Add Var()s.
17435         * config/s390/s390.c (s390_arch_string): Delete.
17436         (s390_handle_option): Don't set it here.
17437         * config/s390/s390.opt (march=): Add Var().
17439         * config/sparc/sparc.h (sparc_cmodel_string): Delete.
17440         * config/sparc/sparc.c (sparc_cmodel_string): Delete.
17441         (sparc_handle_option): Don't set it here.
17442         * config/sparc/sparc.opt (mcmodel=): Add Var().
17444 2005-05-25  Roger Sayle  <roger@eyesopen.com>
17446         * convert.c (convert_to_integer) <POINTER_TYPE>: Avoid recursive
17447         call to convert_to_integer by building the NOP_EXPR directly.
17449 2005-05-25  Richard Sandiford  <rsandifo@redhat.com>
17451         * config/rs6000/rs6000.opt (mprioritize-restricted-insns=): Fix typo.
17453 2005-05-25  Daniel Berlin  <dberlin@dberlin.org>
17454             Jeff Law  <law@redhat.com>
17456         * tree-cfg.c (verify_expr, case ADDR_EXPR): Verify invariant,
17457         constant and side_effects of the ADDR_EXPR are consistent.
17459         * tree-nested.c (convert_local_reference): Set CURRENT_FUNCTION_DECL
17460         appropriately around calls to recompute_tree_invarant_for_addr_expr.
17462 2005-05-25  Ulrich Weigand  <uweigand@de.ibm.com>
17464         * config/s390/s390.c (GP_ARG_NUM_REG, FP_ARG_NUM_REG): New defines.
17465         (s390_function_arg, s390_gimplify_va_arg): Use them.
17466         (s390_register_info): Save only required subset of argument
17467         registers into save area for va_list.
17468         (s390_va_start): Initialize only required elements of va_list struct.
17469         (s390_build_builtin_va_list): Set va_list_[gf]pr_counter_field.
17471 2005-05-25  Ulrich Weigand  <uweigand@de.ibm.com>
17473         * reload1.c (verify_initial_elim_offsets): Return boolean status
17474         instead of aborting.
17475         (reload): Adapt verify_initial_elim_offsets call site.  Restart
17476         main loop if some initial elimination offsets changed.
17478 2005-05-25  Adam Nemet  <anemet@lnxw.com>
17480         * config/rs6000/lynx.h (CC1_SPEC): Use -maix-struct-return instead
17481         of -mno-svr4-struct-return.
17483 2005-05-25  Daniel Berlin  <dberlin@dberlin.org>
17485         Fix PR tree-optimization/21705
17487         * tree-ssa-pre.c (in_fre): New static variable.
17488         (create_value_expr_from): Recursively value number reference ops
17489         in argument lists.
17490         (can_value_number_call): Temporary restrict only exists for
17491         PRE, not FRE.
17493 2005-05-25  Kazu Hirata  <kazu@cs.umass.edu>
17495         * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Replace
17496         sizeof (bitmap *) with sizeof (bitmap).
17498 2005-05-25  Daniel Berlin <dberlin@dberlin.org>
17500         * lambda-code.c (perfect_nestify): Call update_stmt on the exit
17501         condition.
17503 2005-05-25  Adrian Straetling  <straetling@de.ibm.com>
17505         * config/s390/s390.c (TARGET_INSN_VALID_WITHIN_DOLOOP): Set to
17506         hook_bool_rtx_true.
17508 2005-05-25  Jan Hubicka  <jh@suse.cz>
17510         * Makefile.in (ipa-inline.o): Add COEVERAGE_H dependency.
17511         * cgraph.c (cgraph_create_node): Reset estimated_growth.
17512         * cgraph.h (cgraph_global_info): Add estimated_growth.
17513         * ipa-inline.c: Include coverage.h
17514         (max_insns, max_count): New static variables.
17515         (cgraph_estimate_size_after_inlining): Cache the result.
17516         (cgraph_estimate_growth):
17517         * passes.c (rest_of_clean_state): Kill coverage_end_function.
17518         * timevar.def (TV_INLINE_HEURISTICS): New timevar.
17519         * tree-optimize.c (init_tree_optimization_passes): Move profiling before
17520         inlining.
17521         (ipa_passes): Initialize bitmaps.
17523 2005-05-25  Adrian Straetling  <straetling@de.ibm.com>
17525         * loop-doloop.c: Include "target.h".
17526           (doloop_valid_p): Move tests to function in targhooks.c.
17527         * target.h (struct gcc_target): New target hook
17528           "insn_valid_within_doloop".
17529         * target-def.h: Define default value for "insn_valid_within_doloop".
17530           (TARGET_INITIALIZER): Insert new target hook into initializer.
17531         * targhooks.c (default_insn_valid_within_doloop): New function.
17532         * targhooks.h (default_insn_valid_within_doloop): Declare.
17533         * hooks.c (hook_bool_rtx_true): New function.
17534         * hooks.h (hook_bool_rtx_true): Declare.
17535         * doc/tm.texi: Add documentation for new target hook.
17537 2005-05-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
17539         PR target/21412
17540         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): New macro
17541         * config/sparc/sparc-protos.h (tls_symbolic_operand): Delete.
17542         (sparc_tls_referenced_p): New prototype.
17543         * config/sparc/sparc.c (tls_symbolic_operand): Delete.
17544         (sparc_expand_move): Look for TLS addresses with constant offsets.
17545         (legitimate_constant_p): Use SPARC_SYMBOL_REF_TLS_P instead of
17546         tls_symbolic_operand.
17547         (legitimate_pic_operand_p): Likewise.
17548         (legitimate_address_p): Likewise.
17549         (legitimize_address): Likewise.
17550         (sparc_tls_symbol_ref_1): New function.
17551         (sparc_tls_referenced_p): New function.
17552         * config/sparc/predicates.md (tgd_symbolic_operand): Use
17553         SYMBOL_REF_TLS_MODEL instead of tls_symbolic_operand.
17554         (tld_symbolic_operand): Likewise.
17555         (tie_symbolic_operand): Likewise.
17556         (tle_symbolic_operand): Likewise.
17558 2005-05-24  DJ Delorie  <dj@redhat.com>
17560         * common.opt (-Wattributes): New.  Default true.
17561         * doc/invoke.texi (-Wno-attributes): Document.
17563         * attribs.c (decl_attributes): Move warning control from if() to
17564         warning(OPT_*).
17565         * c-common.c (handle_packed_attribute): Likewise.
17566         (handle_nocommon_attribute): Likewise.
17567         (handle_common_attribute): Likewise.
17568         (handle_noreturn_attribute): Likewise.
17569         (handle_noinline_attribute): Likewise.
17570         (handle_always_inline_attribute): Likewise.
17571         (handle_used_attribute): Likewise.
17572         (handle_unused_attribute): Likewise.
17573         (handle_const_attribute): Likewise.
17574         (handle_transparent_union_attribute): Likewise.
17575         (handle_constructor_attribute): Likewise.
17576         (handle_destructor_attribute): Likewise.
17577         (handle_mode_attribute): Likewise.
17578         (handle_alias_attribute): Likewise.
17579         (handle_visibility_attribute): Likewise.
17580         (handle_tls_model_attribute): Likewise.
17581         (handle_malloc_attribute): Likewise.
17582         (handle_returns_twice_attribute): Likewise.
17583         (handle_pure_attribute): Likewise.
17584         (handle_deprecated_attribute): Likewise.
17585         (handle_vector_size_attribute): Likewise.
17586         (handle_nothrow_attribute): Likewise.
17587         (handle_cleanup_attribute): Likewise.
17588         (handle_warn_unused_result_attribute): Likewise.
17589         (handle_sentinel_attribute): Likewise.
17590         * c-decl.c (diagnose_mismatched_decls): Likewise.
17591         (start_decl): Likewise.
17592         (grokdeclarator): Likewise.
17593         (start_function): Likewise.
17594         * c-format.c (check_function_format): Likewise.
17595         * stor-layout.c (place_field): Likewise.
17596         (finalize_record_size): Likewise.
17597         * tree.c (handle_dll_attribute)): Likewise.
17598         * varasm.c (default_assemble_visibility): Likewise.
17599         * config/darwin.c (darwin_handle_weak_import_attribute): Likewise.
17600         (darwin_assemble_visibility): Likewise.
17601         * config/arc/arc.c (arc_handle_interrupt_attribute): Likewise.
17602         * config/arm/arm.c (arm_handle_fndecl_attribute): Likewise.
17603         (arm_handle_isr_attribute): Likewise.
17604         * config/avr/avr.c (avr_handle_progmem_attribute): Likewise.
17605         (avr_handle_fndecl_attribute): Likewise.
17606         * config/bfin/bfin.c (handle_int_attribute): Likewise.
17607         * config/c4x/c4x.c (c4x_handle_fntype_attribute): Likewise.
17608         * config/h8300/h8300.c (h8300_handle_fndecl_attribute): Likewise.
17609         (h8300_handle_eightbit_data_attribute): Likewise.
17610         (h8300_handle_tiny_data_attribute): Likewise.
17611         * config/i386/i386.c (ix86_handle_cdecl_attribute): Likewise.
17612         (ix86_handle_regparm_attribute): Likewise.
17613         (ix86_handle_struct_attribute): Likewise.
17614         * config/i386/winnt.c (ix86_handle_shared_attribute): Likewise.
17615         (i386_pe_encode_section_info): Likewise.
17616         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
17617         * config/ip2k/ip2k.c (ip2k_handle_progmem_attribute): Likewise.
17618         (ip2k_handle_fndecl_attribute): Likewise.
17619         * config/m32r/m32r.c (m32r_handle_model_attribute): Likewise.
17620         * config/m68hc11/m68hc11 (m68hc11_handle_page0_attribute): Likewise.
17621         (m68hc11_handle_fntype_attribute): Likewise.
17622         (m68hc11_encode_section_info): Likewise.
17623         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
17624         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
17625         * config/ns32k/ns32k.c (ns32k_handle_fntype_attribute): Likewise.
17626         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute): Likewise.
17627         * config/sh/sh.c (sh_handle_interrupt_handler_attribute): Likewise.
17628         (sh_handle_sp_switch_attribute): Likewise.
17629         (sh_handle_trap_exit_attribute): Likewise.
17630         * config/sh/symbian.c (sh_symbian_dllimport_p): Likewise.
17631         (sh_symbian_handle_dll_attribute): Likewise.
17632         * config/stormy16/stormy16.c (xstormy16_handle_interrupt_attribute): Likewise.
17633         (xstormy16_handle_below100_attribute): Likewise.
17634         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
17636         * c-common.c (unsigned_conversion_warning): Move warning control
17637         from if() to warning(OPT_*).
17638         (c_common_truthvalue_conversion): Likewise.
17639         (c_do_switch_warnings): Likewise.
17640         * c-decl.c (diagnose_mismatched_decls): Likewise.
17641         (diagnose_mismatched_decls): Likewise.
17642         (define_label): Likewise.
17643         (grokdeclarator): Likewise.
17644         * c-format.c (check_format_info): Likewise.
17645         * c-lex.c (interpret_integer): Likwise.
17646         (lex_string): Likewise.
17647         * c-opts.c (c_common_post_options): Likewise.
17648         * c-parser.c (c_parser_unary_expression): Likewise.
17649         * c-pragma.c (handle_pragma_redefine_extname): Likewise.
17650         (handle_pragma_extern_prefix): Likewise.
17651         * c-typeck.c (build_binary_op): Likewise.
17652         * gcse.c (is_too_expensive): Likewise.
17653         * opts.c (decode_options): Likewise.
17654         * stor-layout.c (place_field): Likewise.
17655         * tree-cfg.c (remove_bb): Likewise.
17657         * c.opt (-Wreturn-type): Add Var(warn_return_type).
17658         * flags.h (warn_return_type): Remove.
17659         * toplev.c (warn_return_type): Likewise.
17661 2005-05-24  Kelley Cook  <kcook@gcc.gnu.org>
17663         * configure.ac: Don't use gcc_AC_C_LONG_LONG.  Check for
17664         existence of long long and __int64 before determining their size.
17665         * aclocal.m4: Delete gcc_AC_C_LONG_LONG.
17666         * configure, config.h.in: Regenerate.
17668 2005-05-24  Kelley Cook  <kcook@gcc.gnu.org>
17670         * configure: Regenerate.
17672 2005-05-24  Ziemowit Laski  <zlaski@apple.com>
17674         * c-common.h (objc_comptypes): Remove prototype.
17675         (objc_compare_types): New prototype.
17676         (objc_volatilized_decl): Likewise.
17677         (objc_type_quals_match): Likewise.
17678         * c-decl.c (objc_mark_locals_volatile): Streamline by calling
17679         objc_volatilize_decl().
17680         * c-typeck.c (comp_target_types): Remove third parameter; do
17681         not call objc_comptypes().
17682         (comptypes): Remove calls to objc_comptypes().
17683         (build_function_call): Extend compatible prototype check to ObjC.
17684         (build_conditional_expr): Adjust call to comp_target_types().
17685         (convert_for_assignment): Call objc_compare_types() instead of
17686         objc_comptypes(); adjust calls to comp_target_types(); call
17687         objc_type_quals_match() before issuing qualifier mismatch
17688         warnings.
17689         (build_binary_op): Call objc_compare_types() before issuing
17690         pointer mismatch warnings; adjust calls to
17691         comp_target_types().
17692         * stub-objc.c (objc_comptypes): Remove stub.
17693         (objc_compare_types): New stub.
17694         (objc_volatilized_decl): Likewise.
17695         (objc_type_quals_match): Likewise.
17697 2005-05-24  Paolo Carlini  <pcarlini@suse.de>
17699         * config/ia64/ia64intrin.h: Define nothing for C++:
17700         overloaded builtins have been ported to C++.
17702 2005-05-24  Jeff Law  <law@redhat.com>
17704         * tree-nested.c (build_addr): New "context" argument.  Temporarily
17705         set current_function_decl around the call to build the ADDR_EXPR.
17706         (get_static_chain): Pass proper context to build_addr.
17707         (convert_nl_goto_reference): Likewise.
17708         (convert_tramp_reference): Likewise.
17709         (final_nesting_tree_1): Likewise.
17710         * tree-profile.c (tree_gen_interval_profiler): Likewise.
17711         (tree_gen_pow2_profiler): Likewise.
17712         (tree_gen_one_value_profiler): Likewise.
17713         * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Likewise.
17714         * tree.h (build_addr): Update prototype.
17716 2005-05-24  Kazu Hirata  <kazu@cs.umass.edu>
17718         * tree-flow.h (bb_ann_d): Remove has_escape_site.
17719         * tree-ssa-alias.c (compute_points_to_addr_escape): Don't
17720         write to has_escape_site.
17722 2005-05-24  Jeff Law  <law@redhat.com>
17724         * Makefile.in (tree-cfg.o): Depend on tree-ssa-propagate.h.
17725         * tree-cfg.c: Include tree-ssa-propagate.h.
17726         (replace_uses_by): Call recompute_tree_invarant_for_addr_expr as
17727         needed.
17729 2005-05-24  Nick Clifton  <nickc@redhat.com>
17731         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
17732         __NO_FPRS__ when 'f' class registers will not be available.
17734 2005-05-24  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
17736         * config/m32r/m32r.c (m32r_expand_block_move): Return 0 if
17737         nothing was done.
17738         * config/m32r/m32r.md (movmemsi): If m32r_expand_block_move did
17739         nothing then FAIL.
17740         * config/m32r/m32r/m32r-protos.h  (m32r_expand_block_move): Update
17741         prototype.
17743 2005-05-23  Jeff Law  <law@redhat.com>
17745         * tree-ssa-dom.c (cprop_into_stmt): Do not call
17746         recompute_tree_invariant_for_addr_expr here.
17747         (optimize_stmt): Call it here instead and do so if anything
17748         at all has changed in the statement and the RHS is an ADDR_EXPR.
17749         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): If
17750         needed, call recompute_tree_invariant_for_addr_expr.
17751         * tree-ssa-propagate.c (substitute_and_fold): Call
17752         recompute_tree_invariant_for_addr_expr as needed.
17754 2005-05-23  Andreas Krebbel  <krebbel1@de.ibm.com>
17756         * config/s390/s390.c (s390_optimize_prologue): Don't replace an insn
17757         saving less registers than the replacement.
17759 2005-05-23  Jan Hubicka  <jh@suse.cz>
17761         * tree-flow.h (stmt_ann_d): Kill GTY ((skip)) mark on BB.
17763 2005-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
17765         * config/sparc/sparc-protos.h (sparc_expand_move): New prototype.
17766         * config/sparc/sparc.c (sparc_expand_move): New function.
17767         (sparc_emit_set_const64): Rewrite assert condition on entry.
17768         (legitimate_constant_p) <CONST_VECTOR>: New case.
17769         (legitimize_pic_address): Use TARGET_ARCH64 to select the mode.
17770         * config/sparc/sparc.md (movqi, movhi, movsi, movdi, movV32,
17771         movV64, movtf): Use nonimmediate_operand for the first operand.
17772         Rewrite.  Only invoke sparc_expand_move.
17773         * config/sparc/predicates.md (input_operand): Reorder tests.
17775 2005-05-23  Jan Beulich  <jbeulich@novell.com>
17777         * gthr-posix.h (__gthread_recursive_mutex_init_function): Add
17778         missing return statement.
17780 2005-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
17782         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Use
17783         emit_move_insn for moves to TFmode stack slots.
17785 2005-05-21  Richard Guenther  <rguenth@gcc.gnu.org>
17787         * tree-stdarg.c (execute_optimize_stdarg): Handle references
17788         to va_list of the form &va[0].
17790 2005-05-20  Jan Hubicka  <jh@suse.cz>
17792         * Makefile.in (insn-emit.o): Add basic-block.h dependency.
17793         * genemit.c (main): Make insn-emit to include basic-block.h too.
17795 2005-05-20  Jan Hubicka  <jh@suse.cz>
17797         * cgraphunit.c (cgraph_expand_function): Force function being lowered.
17799 2005-05-19  Richard Henderson  <rth@redhat.com>
17801         * config/alpha/alpha.c (emit_unlikely_jump, emit_load_locked,
17802         emit_store_conditional): Split out from ...
17803         (alpha_split_atomic_op): ... here.
17804         (alpha_split_compare_and_swap): New; extract from .md file.
17805         (alpha_split_lock_test_and_set): Likewise.
17806         * config/alpha/alpha-protos.h: Update.
17807         * config/alpha/sync.md (sync_compare_and_swap<I48MODE>): Move
17808         split code into alpha.c.
17809         (sync_lock_test_and_set<I48MODE>): Likewise.
17811 2005-05-19  Richard Henderson  <rth@redhat.com>
17813         * unwind.h, unwind-pe.h: Revert gcc_unreachable change of 05-17.
17815 2005-05-19  Richard Henderson  <rth@redhat.com>
17817         * config/i386/sse.md (mulv4si3): Use all register inputs.
17818         (mulv2di3): Likewise.
17820 2005-05-19  Richard Guenther  <rguenth@gcc.gnu.org>
17822         * tree-ssa-loop-ivopts.c (determine_base_object): Use
17823         build_fold_addr_expr to generate trees of correct type.
17824         Use fold_buildN if possible.
17826 2005-05-19  Jan Hubicka  <jh@suse.cz>
17828         * basic-block.h (REG_BR_PROB_BASE): Define.
17829         * cgraph.c (cgraph_create_edge): Initialize loop_nest and count.
17830         (dump_cgraph_node): Dump count.
17831         (cgraph_clone_edge): Rescale counts.
17832         (cgraph_clone_node): Likewise.
17833         * cgraph.h: Include basic-block.h
17834         (cgraph_node): Add count.
17835         (cgraph_edge): Add count and loop_nest.
17836         (cgraph_node, cgraph_edge, cgraph_clone_edge, cgraph_clone_node):
17837         Update prototypes.
17838         * cgraphunit.c: Kill now redundant inlining comment.
17839         (cgraph_create_edges): Make static, maintain current basic block;
17840         fix pasto.
17841         (record_call_1): Fill in new fields.
17842         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
17843         cgraph_clone_node.
17844         (cgraph_decide_recursive_inlining): Likewise.
17845         * rtl.h (REG_BR_PROB_BASE): Kill.
17846         * tree-inline.c (copy_body_r): Update call of cgraph_clone_edge.
17847         (expand_call_inline): Update call of cgraph_create_edge.
17848         * tree-optimize.c (tree_rest_of_compilation): Likewise.
17850 2005-05-19  Nick Clifton  <nickc@redhat.com>
17852         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use the
17853         new rs6000_explicit_options structure.
17855 2005-05-19  Richard Henderson  <rth@redhat.com>
17857         PR target/21390
17858         * config/alpha/alpha.c (alpha_emit_conditional_branch): Move
17859         TFmode code swapping ...
17860         (alpha_emit_xfloating_compare): ... here.
17861         (alpha_emit_setcc): Update to match.
17862         (alpha_lookup_xfloating_lib_func): Assert TARGET_HAS_XFLOATING_LIBS.
17864 2005-05-19  Richard Henderson  <rth@redhat.com>
17866         PR target/21657
17867         * config/ia64/ia64.c (ia64_expand_tls_address): Remove extra
17868         memory indirection in local-dynamic case.
17870 2005-05-18  Jie Zhang  <jie.zhang@analog.com>
17871             Bernd Schmidt  <bernd.schmidt@analog.com>
17873         * config/bfin/bfin.c (branch_dest): Add comment why it's
17874         necessary.
17875         * config/bfin/bfin.md (attr "length" default): Change the offset of
17876         forward conditional branch of length 4 from 4096 to 4092.
17878 2005-05-19  Jan Beulich  <jbeulich@novell.com>
17880         * unwind-compat.c: Include tconfig.h and tsystem.h.
17881         * unwind-dw2-fde-compat.c: Likewise.
17883 2005-05-18  Richard Henderson  <rth@redhat.com>
17885         PR 21541
17886         * ifcvt.c (noce_process_if_block): Avoid conversion when the
17887         memory destination is readonly.
17889 2005-05-18  Richard Henderson  <rth@redhat.com>
17891         PR 21541
17892         * tree-ssa-operands.c (opf_non_specific): New.
17893         (get_asm_expr_operands): Set it.
17894         (add_call_clobber_ops, add_call_read_ops): Likewise.
17895         (add_stmt_operand): Test it instead of opf_kill_def when
17896         considering unmodifiable variables.
17898         * tree-ssa-operands.c (get_expr_operands): Fix exact test.
17900 2005-05-19  Kazu Hirata  <kazu@cs.umass.edu>
17902         * cfgexpand.c, tree-cfg.c, tree-inline.c, tree-optimize.c,
17903         tree-ssa-forwprop.c: Fix comment typos.
17904         * doc/invoke.texi: Fix a typo.
17906 2005-05-18  Richard Henderson  <rth@redhat.com>
17908         * config.gcc (powerpc-*-linux*): Include linux64.opt when
17909         including linux64.h.
17911 2005-05-18  Richard Henderson  <rth@redhat.com>
17913         * tree-cfg.c (pass_remove_useless): Revert last change.
17914         * tree-optimize.c (init_tree_optimization_passes): Initialize
17915         all_lowering_passes with PROP_gimple_any.
17917 2005-05-18  Devang Patel  <dpatel@apple.com>
17919         * config/rs6000/rs6000.md (insvsi_internal1): Subtract shift from
17920         the mask end.
17922 2005-05-18  Richard Henderson  <rth@redhat.com>
17924         * tree-ssa-forwprop.c (cfg_changed): New.
17925         (tidy_after_forward_propagate_addr): New.
17926         (forward_propagate_addr_expr): Use it, and fold_stmt_inplace.
17927         (forward_propagate_addr_into_variable_array_index): Likewise.
17928         (tree_ssa_forward_propagate_single_use_vars): Cleanup cfg if
17929         edges were removed.
17931 2005-05-18  Geoffrey Keating  <geoffk@apple.com>
17933         * dummy-checksum.c: New.
17934         * genchecksum.c: New.
17935         * c.opt (print_pch_checksum): New flag.
17936         * c-pch.c (struct c_pch_validity): Make much shorter.
17937         (no_checksum): New.
17938         (host_machine): Remove.
17939         (target_machine): Remove.
17940         (get_ident): Change PCH version number.
17941         (pch_init): When -fverbose-asm, print out the compiler fingerprint.
17942         Don't put triplets or version string in PCH validity data.
17943         Do put the compiler checksum in the validity data.
17944         (c_common_valid_pch): Don't check triplets or version string.  Do
17945         check checksum.
17946         (c_common_print_pch_checksum): New.
17947         * c-opts.c (c_common_handle_option): Add OPT_print_pch_checksum.
17948         Print fingerprint with -v.
17949         * c-common.h (c_common_print_pch_checksum): New.
17950         (executable_checksum): New.
17951         * Makefile.in (STAGEMOVESTUFF): Add cc1*-dummy, *-checksum.c.
17952         (cc1-dummy): New rule.
17953         (cc1-checksum.c): New rule.
17954         (cc1-checksum.o): New rule.
17955         (cc1): Add checksum support.
17956         (build/genchecksum): New.
17957         (build/genchecksum.o): New.
17958         (dummy-checksum.o): New.
17959         (genobjnames): Add genchecksum.o.
17960         (mostlyclean): Remove *-checksum.c.
17961         (gnucompare): Add libgcc to list of directories checked.
17962         Make comparison problems in libgcc/ and with checksum files only
17963         be warnings.
17964         * doc/invoke.texi (Precompiled Headers): Remove caution.
17965         Document that it must be the exact same binary.  Add a few
17966         known-safe flags to the list.
17968         * rs6000/predicates.md (fix_trunc_dest_operand): New.
17969         * rs6000/rs6000.md (fix_truncdfsi2): Use fix_trunc_dest_operand.
17970         Check that a memory operand is valid before trying to use it.
17972         * tree-cfg.c (pass_remove_useless): This pass works on trees.
17974 2005-05-18  Richard Guenther  <rguenth@gcc.gnu.org>
17976         * tree.c (build1_stat): Don't try to handle two-operand
17977         tree codes.
17979 2005-05-18  Richard Sandiford  <rsandifo@redhat.com>
17981         * config.gcc (sh*-*-*): Define SUPPORT_* macros to 1.
17982         * config/sh/sh.h: Update mask names throughout.
17983         (target_flags, ISIZE_BIT, DALIGN_BIT, SH1_BIT, SH2_BIT, SH3_BIT)
17984         (SH_E_BIT, HARD_SH4_BIT, FPU_SINGLE_BIT, SH4_BIT, SH4A_BIT, FMOVD_BIT)
17985         (SH5_BIT, SPACE_BIT, BIGTABLE_BIT, RELAX_BIT, USERMODE_BIT)
17986         (HITACHI_BIT, NOMACSAVE_BIT, PREFERGOT_BIT, PADSTRUCT_BIT)
17987         (LITTLE_ENDIAN_BIT, IEEE_BIT, SAVE_ALL_TR_BIT, HARD_SH2A_BIT)
17988         (HARD_SH2A_DOUBLE_BIT, INDEXED_ADDRESS_BIT, PT_FIXED_BIT)
17989         (INVALID_SYMBOLS_BIT, ADJUST_UNROLL_BIT, TARGET_DUMPISIZE)
17990         (TARGET_ALIGN_DOUBLE, TARGET_SH1, TARGET_SH2, TARGET_SH3)
17991         (TARGET_HARD_SH4, TARGET_FPU_SINGLE, TARGET_SH5, TARGET_FMOVD)
17992         (TARGET_IEEE, TARGET_SMALLCODE, TARGET_BIGTABLE, TARGET_RELAX)
17993         (TARGET_HITACHI, TARGET_NOMACSAVE, TARGET_PADSTRUCT)
17994         (TARGET_LITTLE_ENDIAN, TARGET_USERMODE, TARGET_PREFERGOT)
17995         (TARGET_SAVE_ALL_TARGET_REGS, TARGET_ALLOW_INDEXED_ADDRESS)
17996         (TARGET_PT_FIXED, TARGET_INVALID_SYMBOLS, TARGET_ADJUST_UNROLL)
17997         (TARGET_SWITCH_SH1, TARGET_SWITCH_SH2, TARGET_SWITCH_SH2E)
17998         (TARGET_SWITCH_SH2A, TARGET_SWITCH_SH2A_SINGLE_ONLY)
17999         (TARGET_SWITCH_SH2A_SINGLE, TARGET_SWITCH_SH2A_NOFPU)
18000         (TARGET_SWITCH_SH3, TARGET_SWITCH_SH3E, TARGET_SWITCH_SH4_SINGLE_ONLY)
18001         (TARGET_SWITCH_SH4_SINGLE, TARGET_SWITCH_SH4_NOFPU, TARGET_SWITCH_SH4)
18002         (TARGET_SWITCH_SH4A, TARGET_SWITCH_SH4A_SINGLE_ONLY)
18003         (TARGET_SWITCH_SH4A_SINGLE, TARGET_SWITCH_SH4A_NOFPU)
18004         (TARGET_SWITCH_SH4AL, TARGET_SWITCH_SH5_64MEDIA)
18005         (TARGET_SWITCH_SH5_64MEDIA_NOFPU, TARGET_SWITCHES_SH5_32MEDIA)
18006         (TARGET_SWITCHES_SH5_32MEDIA_NOFPU, TARGET_SWITCH_SH5_32_ANY_EXTRA)
18007         (TARGET_SWITCH_SH5_MEDIA_ANY_EXTRA, TARGET_SWITCHES)
18008         (SUBTARGET_SWITCHES): Delete.
18009         (TARGET_SH2E, TARGET_SH2A, TARGET_SH2A_SINGLE, TARGET_SH2A_DOUBLE)
18010         (TARGET_SH3E, TARGET_CACHE32, TARGET_SUPERSCALAR, TARGET_HARVARD)
18011         (TARGET_FPU_DOUBLE, TARGET_SH4A_ARCH, TARGET_SHMEDIA32)
18012         (TARGET_SHMEDIA64): Redefine using other TARGET_* macros.
18013         (TARGET_SH4): Undefine options.h definition and check MASK_SH1 as well.
18014         (SUPPORT_SH1, SUPPORT_SH2E, SUPPORT_SH4, SUPPORT_SH4_SINGLE)
18015         (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Make numeric.
18016         (SUPPORT_SH2): Define to 1 if SUPPORT_SH1.
18017         (SUPPORT_SH3): Likewise SUPPORT_SH2.
18018         (SUPPORT_SH4_NOFPU): Likewise SUPPORT_SH3.
18019         (SUPPORT_SH4A_NOFPU, SUPPORT_SH4AL, SUPPORT_SH2A_NOFPU): Likewise
18020         SUPPORT_SH4_NOFPU.
18021         (SUPPORT_SH3E): Likewise SUPPORT_SH2E.
18022         (SUPPORT_SH4_SINGLE_ONLY, SUPPORT_SH4A_SINGLE_ONLY)
18023         (SUPPORT_SH2A_SINGLE_ONLY): Likewise SUPPORT_SH3E.
18024         (SUPPORT_SH4A): Likewise SUPPORT_SH4.
18025         (SUPPORT_SH4A_SINGLE): Likewise SUPPORT_SH4_SINGLE.
18026         (SUPPORT_SH5_32MEDIA): Likewise SUPPORT_SH5_COMPACT.
18027         (SUPPORT_SH5_32MEDIA_NOFPU): Likewise SUPPORT_SH5_COMPACT_NOFPU.
18028         (SUPPORT_ANY_SH5_32MEDIA, SUPPORT_ANY_SH5_64MEDIA)
18029         (SUPPORT_ANY_SH5): New macros.
18030         (TARGET_NONE): Replace with...
18031         (MASK_ARCH): ...this new macro.
18032         * config/sh/elf.h: Update mask names
18033         * config/sh/linux.h: Likewise.
18034         * config/sh/little.h: Likewise.
18035         * config/sh/netbsd-elf.h: Likewise.
18036         * config/sh/symbian-pre.h: Likewise.
18037         * config/sh/sh.c (sh_handle_option): New function.
18038         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
18039         (calc_live_regs): Use MASK_FPU_SINGLE instead of FPU_SINGLE_BIT.
18040         (sh_target_switches, target_switches): Delete.
18041         (sh_pch_valid_p): Check for specific differences in the target_flags
18042         settings.
18043         (sh_init_cumulative_args): Use MASK_HITACHI instead of HITACHI_BIT.
18044         * config/sh/sh.opt: New file.
18046 2005-05-18  Richard Henderson  <rth@redhat.com>
18048         PR target/21632
18049         * config/ia64/ia64.c (ia64_extra_constraint) <'T'>: Use
18050         small_addr_symbolic_operand.
18052 2005-05-18  Jeff Law  <law@redhat.com>
18054         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
18055         propagate an ADDR_EXPR if the definition and use sites are
18056         in different EH regions.
18058 2005-05-18  Ian Lance Taylor  <ian@airs.com>
18060         * read-rtl.c (mode_attr_index): Use obstack_grow0, not
18061         obstack_grow.
18063 2005-05-18  Daniel Berlin  <dberlin@dberlin.org>
18065         * cfgrtl.c (purge_dead_edges): Don't remove fake edges.
18067 2005-05-18  Daniel Berlin  <dberlin@dberlin.org>
18069         Fix PR tree-optimization/21407
18071         * tree-ssa-operands.c (note_addressable): Change
18072         COMPONENT_REF handling in response to aliasing
18073         discussion.
18075 2005-05-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
18077         * config/sparc/sol2.h (TARGET_DEFAULT): Add back MASK_APP_REGS.
18078         * config/sparc/sol2-64.h (TARGET_DEFAULT): Likewise.
18079         * config/sparc/sp-elf.h (TARGET_DEFAULT): Delete.
18080         * doc/invoke.texi (SPARC options): Document that -mapp-regs is
18081         the default on Solaris too.
18083 2005-05-17  Daniel Berlin  <dberlin@dberlin.org>
18085         * tree-ssa-pre.c (find_or_generate_expression): CALL_EXPR
18086         is okay too.
18088 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
18090         * timevar.def (TV_SCEV_CONST): New timevar.
18091         * tree-optimize.c (init_tree_optimization_passes): Add
18092         pass_scev_cprop.
18093         * tree-pass.h (pass_scev_cprop): Declare.
18094         * tree-scalar-evolution.c (scev_const_prop): New function.
18095         * tree-scalar-evolution.h (scev_const_prop): Declare.
18096         * tree-ssa-loop.c (gate_scev_const_prop, pass_scev_cprop):
18097         New.
18098         * tree-cfg.c (replace_uses_by): Export.
18099         * tree-flow.h (replace_uses_by): Declare.
18101 2005-05-17  Ziemowit Laski  <zlaski@apple.com>
18102             Mike Stump  <mrs@apple.com>
18104         Yet more Objective-C++...
18106         * c-common.h (objc_finish_try_stmt): Add.
18107         (objc_build_synchronized): Add.
18108         (objc_generate_write_barrier): Add.
18109         * stub-objc.c (objc_build_synchronized): Add return value.
18110         (objc_finish_try_stmt): Likewise.
18111         (objc_generate_write_barrier): Add.
18113         * c-common.h (objc_rewrite_function_call): Add.
18114         * c-typeck.c (build_function_call): Allow objc to rewrite
18115         FUNCTION_DECLs.
18116         (build_modify_expr): Allow objc to generate write barriers.
18117         * c.opt (Wassign-intercept): Add.
18118         (Wstrict-selector-match): Add.
18119         (fobjc-call-cxx-cdtors): Add.
18120         (fobjc-direct-dispatch): Add.
18121         (fobjc-gc): Add.
18122         * dbxout.c (get_lang_number): Add Objective-C++ support.
18123         * doc/invoke.texi (-fobjc-call-cxx-cdtors): Likewise.
18124         (-Wstrict-selector-match): Likewise.
18125         (-fobjc-direct-dispatch): Likewise.
18126         (-Wassign-intercept): Likewise.
18127         (Overall Options): Likewise.
18128         * gengtype.c (get_output_file_with_visibility): Likewise.
18129         * stub-objc.c (objc_rewrite_function_call): Add.
18130         * config/darwin.h (ASM_OUTPUT_LABELREF): Improved quoting support.
18132         * c-common.c (flag_objc_exceptions): Remove.
18133         (flag_objc_sjlj_exceptions): Remove.
18134         * c-decl.c (objc_mark_locals_volatile): Don't change decls
18135         that are already ok.
18136         * c-opts.c (c_common_handle_option, case
18137         OPT_fobjc_exceptions): Remove.
18138         (case OPT_fobjc_sjlj_exceptions): Remove
18139         * c.opt (fobjc-call-cxx-cdtors): Have opt create the flag.
18140         (fobjc-exceptions): Likewise.
18141         (fobjc-sjlj-exceptions): Likewise.
18142         * config/rs6000/darwin.h (OFFS_MSGSEND_FAST): Add.
18143         (OFFS_ASSIGNIVAR_FAST): Add.
18145 2005-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
18147         * config/sparc/sparc.md (movhi): Do not test constness
18148         of operand #1 twice.
18149         (movsi): Likewise.
18150         (movdi): Unconditionally accept zero as second operand
18151         when the first is memory.
18152         (movdi_insn_sp32): Handle above case.
18153         (DImode splitter): Use predicates.
18154         (DImode splitter): Use const_zero_operand predicate.
18155         (movsf_insn): Swap 2 alternatives.
18157 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
18159         * tree-ssa-loop-ivopts.c (find_bivs, find_givs_in_stmt_scev): Apply
18160         expand_simple_operations to bases of the ivs.
18161         (tree_int_cst_sign_bit): Export.
18162         * tree-flow.h (expand_simple_operations): Declare.
18163         * tree-ssa-loop-niter.c (number_of_iterations_cond): Use
18164         tree_int_cst_sign_bit.
18165         (expand_simple_operations): Export.
18166         * tree.h (tree_int_cst_sign_bit): Declare.
18168 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
18170         * tree-cfg.c (tree_can_merge_blocks_p): Allow phi nodes in the
18171         merged block.
18172         (replace_uses_by): New function.
18173         (tree_merge_blocks): Eliminate the phi nodes in the merged block.
18174         * tree-flow.h (fold_stmt_inplace): Declare.
18175         * tree-ssa-ccp.c (fold_stmt_inplace): New function.
18176         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update dominance
18177         info after cfg cleanup.
18179 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
18181         * cfgloop.h (just_once_each_iteration_p): Declaration changed.
18182         * cfgloopanal.c (just_once_each_iteration_p): Make the loop argument
18183         const.
18185 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
18187         * ggc-page.c (ggc_alloc_stat): Record amount of memory allocated.
18188         * ggc-zone.c (ggc_alloc_zone_1): Ditto.
18189         * timevar.c (timevar_ggc_mem_total): New variable.
18190         (GGC_MEM_BOUND): New constant.
18191         (get_time): Record ggc memory status.
18192         (timevar_accumulate): Accumulate amount of ggc memory.
18193         (timevar_print): Print consumption of ggc memory.
18194         * timevar.def (TV_FIND_REFERENCED_VARS, TV_TREE_REDPHI,
18195         TV_TREE_LOOP_BOUNDS, TV_TREE_LOOP_IVCANON, TV_TREE_VECTORIZATION,
18196         TV_TREE_LINEAR_TRANSFORM): Shorten strings to fit in 22 characters.
18197         * timevar.h (struct timevar_time_def): Add ggc_mem field.
18198         (timevar_ggc_mem_total): Declare.
18200 2005-05-17  Kazu Hirata  <kazu@cs.umass.edu>
18202         * tree-into-ssa.c (update_ssa): Clean up by shortening the
18203         live range of DFS.
18205 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
18207         * config/cris/cris.md (ncond, ocode, rcond): Remove separate
18208         define_code_attr.
18209         ("b<ncond:code>", "b<ocond:code>", "b<rcond:code>")
18210         ("*b<ncond:code>_reversed", "*b<ocond:code>_reversed")
18211         ("*b<rcond:code>_reversed", "s<ncond:code>", "s<rcond:code>")
18212         ("s<ocond:code>"): Rename from respectively "b<ncond>",
18213         "b<ocond>", "b<rcond>", ("*b<ncond>_reversed",
18214         "*b<ocond>_reversed", "*b<rcond>_reversed", "s<ncond>",
18215         "s<rcond>" and "s<ocond>".
18216         ("b<ocond:code>", "*b<ocond:code>_reversed")
18217         ("*b<rcond:code>_reversed"): Remove extraneous backslashes in
18218         output statement section.
18220 2005-05-17  Roger Sayle  <roger@eyesopen.com>
18222         * c-typeck.c (common_type): Also handle BOOLEAN_TYPEs.
18224 2005-05-17  Steven Bosscher  <stevenb@suse.de>
18225             Stuart Hastings <stuart@apple.com>
18226             Jan Hubicka  <jh@suse.cz>
18227             Dale Johannesen  <dalej@apple.com>
18229         * cgraph.h (cgraph_node): Add 'lowered' state.
18230         (cgraph_lower_function): Declare.
18231         * cgraphunit.c (cgraph_finalize_function): Initialize lowered flag.
18232         (cgraph_lower_function): New function.
18233         (cgraph_create_edges): Deal with lowered function bodies.
18234         (verify_cgraph_node): Likewise.
18235         (cgraph_analyze_function): Do lowering job.
18236         (cgraph_build_static_cdtor): Likewise.
18237         * function.h (struct function): Add saved_eh and saved_cfg.
18238         * integrate.c (copy_decl_for_inlining): Kill LABEL_DECL_UID field.
18239         * tree-cfg.c (fold_cond_expr_cond): Export.
18240         * tree-flow.h (fold_cond_expr_cond): Declare.
18241         * tree-inline.c: Include basic-block, ggc, tree-flow, except.h and
18242         pointer-set.
18243         (struct_inline_data): Kill fnd, first_inlined_fn, ret_label,
18244         in_target_cleanup_p, tree_pruner, tsi; add callee, caller and
18245         callee_cfun, block, eh_region, eh_region_offset.
18246         (inlining_p): New predicate.
18247         (remap_decl): Update for new inline_data; declare newly created inline
18248         vars in low gimple way.
18249         (copy_body_r): Update for new datastructure, simplify some of handling
18250         when we are in gimple; remap LABEL_DECLs for EH; copy TREE_BLOCK;
18251         deal with RESX_EXPRs.
18252         (copy_bb): New.
18253         (copy_edges_for_bb): Likewise.
18254         (remap_decl_1): New.
18255         (copy_cfg_body): New.
18256         (copy_generic_body): Rewrite to work on low gimple.
18257         (copy_body): Turn into simple wrapper around copy_cfg_body.
18258         (setup_one_parameter): Insert new statements into given basic block.
18259         (initialize_initialized_parameters): Likewise, reorganize way things are
18260         gimplified.
18261         (declare_return_variable): Update for new inline data datastructure.
18262         (inline_forbidden_p): Work on low gimple.
18263         (estimate_num_insns): Likewise.
18264         (expand_call_inline): Work on CFG.
18265         (push_cfun, pop_cfun): New functions.
18266         (cfun_stack): New stack.
18267         (add_lexical_block): New function.
18268         (gimple_expand_calls_inline): Work on basic block.
18269         (optimize_inline_calls): Likewise.
18270         (clone_body, save_body, unsave_ewpr_now): Update for new
18271         datastructures.
18272         (declare_inline_vars): Work on block instead of bind_expr.
18273         (inlining_p): New predicate.
18274         * tree-inline.h (push_cfun, pop_cfun): Declare.
18275         * tree-optimize.c: Include except.h
18276         (all_lowering_passes): New variable.
18277         (execute_fixup_cfg, pass_fixup_cfg): New pass.
18278         (init_tree_optimization_passes): Move some to all_lowering_passes.
18279         (tree_lowering_passes): New function.
18280         (tree_rest_of_compilation): Register cfg hooks; save/unsave eh.
18281         * tree-pass.h (tree_lowering_passes): Declare
18283 2005-05-17  Nathan Sidwell  <nathan@codesourcery.com>
18285         * unwind-dw2-fde-darwin.c: Include tsystem.h.
18287 2005-05-17  Jeff Law  <law@redhat.com>
18289         * Makefile.in (tree-ssa-forwprop.o): Depend on langhooks.h.
18290         * tree-ssa-forwprop.c: Include langhooks.h.
18291         (forward_propagate_addr_expr_into_variable_array_index): New.
18292         (forward_propagate_addr_expr): New.
18293         (tree_ssa_forward_propagate_single_use_vars): Loop over all
18294         the statements in the block instead of just the last statement.
18295         Call forward_propagate_addr_expr as needed.
18296         (pass_forwprop): Update the SSA graph after forward propagation is
18297         complete.
18299 2005-05-17  Nathan Sidwell  <nathan@codesourcery.com>
18301         * unwind-dw2-fde-glibc.c (base_from_cb_data,
18302         _Unwind_IteratePhdrCallback): Use gcc_assert and gcc_unreachable as
18303         appropriate.
18304         * unwind-dw2-fde.c (__deregister_frame_info_bases,
18305         base_from_object, fde_split, end_fde_sort): Likewise.
18306         * unwind-dw2.c (_Unwind_GetGR, _Unwind_SetGR, execute_stack_op,
18307         execute_cfa_program, _Unwind_SetSpColumn, uw_update_context_1,
18308         uw_init_context_1): Likewise.
18309         * unwind.inc (_Unwind_RaiseException_Phase2, _Unwind_Resume,
18310         _Unwind_Resume_or_Rethrow): Likewise.
18311         * unwind-pe.h (__gxx_abort): Do not define.
18312         (size_of_encoded_value, base_of_encoded_value,
18313         read_encoded_value_with_base): Use gcc_unreachable.
18314         * unwind.h (_Unwind_GetTextRelBase): Likewise.
18316 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
18318         * config/arm/lib1funcs.asm (cfi_pop, cfi_push, cfi_start)
18319         (cfi_end): New macros.
18320         (RETLDM): Use cfi_pop.  Expect an eight byte stack frame.
18321         (ARM_LDIV0, THUMB_LDIV0, DIV_FUNC_END): Use CFI macros.  Create
18322         an eight byte stack frame.
18323         (__NR_tkill): Define.
18324         (__div0): Use gettid tkill on GNU/Linux.
18325         (_arm_return): Add CFI.
18326         (Lchange_\register, .Lchange_lr): Create an eight byte stack frame.
18328 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
18330         * configure.ac: Remove spaces around assignment to
18331         gcc_cv_ld_sysroot.
18332         * configure: Regenerated.
18334 2005-05-17  David Edelsohn  <edelsohn@gnu.org>
18336         * config/rs6000/aix.h (TARGET_ALTIVEC_VRSAVE): Delete.
18337         * config/rs6000/rs6000.c (rs6000_explicit_options): Add
18338         aix_struct_ret.
18339         (rs6000_override_options): Do not protect TARGET_ALTIVEC_VRSAVE.
18340         Modify aix_struct_return variable, not target_flags.
18341         (rs6000_handle_option): Do not protect TARGET_ALTIVEC_VRSAVE.
18342         (rs6000_return_in_memory): Test aix_struct_return.
18343         * config/rs6000/rs6000.opt (maix-struct-return): Convert to
18344         independent variable.  Report mxl-compat.
18346 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
18348         * config/bfin/bfin.md (eh_return): Add missing DONE.
18350 2005-05-17  Ian Lance Taylor  <ian@airs.com>
18352         * read-rtl.c (struct macro_traverse_data): Add unknown_mode_attr
18353         field.
18354         (mode_attr_index): Remove check for defined attribute.  Remove
18355         infile parameter.  Change all callers.
18356         (apply_mode_maps): Add unknown parameter.  Change caller.  Always
18357         return after finding attribute.
18358         (apply_macro_to_rtx): Add unknown_mode_attr parameter.  Change
18359         callers.
18360         (apply_macro_traverse): Set mtd->unknown_mode_attr.
18361         (read_rtx): Use mtd.unknown_mode_attr to check for an undefined
18362         attribute used for a mode.
18364 2005-05-17  Paolo Bonzini  <bonzini@gnu.org>
18366         * tree-ssa-math-opts.c: New file.
18368 2005-05-17  Paolo Bonzini  <bonzini@gnu.org>
18370         * Makefile.in: Add tree-ssa-math-opts.c.
18371         * expr.c (expand_expr_real_1) <case RDIV_EXPR>: Never emit as a*(1/b).
18372         * fold-const.c (distribute_real_division): New.
18373         (fold_binary) <case PLUS_EXPR, case MINUS_EXPR>: Use it.
18374         * tree-pass.h (pass_cse_reciprocals): New.
18375         * tree-optimize.c (init_tree_optimization_passes): Run it.
18376         * doc/passes.texi: Document the new pass.
18378 2005-05-17  Richard Guenther  <rguenth@gcc.gnu.org>
18380         PR middle-end/21595
18381         * builtins.c (fold_builtin_constant_p): Handle
18382         &"string cst"[0] as constant.
18384 2005-05-17  Richard Henderson  <rth@redhat.com>
18386         * config/i386/sse.md (mulv16qi3, mulv2di3): New.
18388 2005-05-17  Jakub Jelinek  <jakub@redhat.com>
18390         PR middle-end/21492
18391         * cfgcleanup.c (try_crossjump_to_edge): update_forwarder_flag for
18392         src2 if src2 has been split.
18394         PR tree-optimization/21610
18395         * c-typeck.c (decl_constant_value_for_broken_optimization): If not
18396         returning DECL, call unshare_expr.
18398 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
18400         * config/cris/cris.md: Unquote preparation and output statements.
18401         (BWD, WD, BW): New, mode-macros.
18402         (S, s, m, mm, nbitsm1): New, mode-attrs.
18403         (szext, shift, shiftrt, ncond, ocond, rcond): New, code-macros.
18404         (u, su, shlr, slr, ncond, ocond, rcond, rCC, oCC, roCC): New,
18405         code-attrs.
18406         ("tst<mode>"): Replace "tstqi", "tsthi" and "tstsi".
18407         ("*cmp_ext<mode>"): Replace "*cmp_extsi" and "*cmp_exthi".
18408         ("*cmp_swapext<mode>"): Replace "*cmp_swapextqi" and
18409         "*cmp_swapexthi".
18410         ("cmp<mode>"): Replace "cmphi" and "cmpqi".
18411         ("movdi"): Move misplaced head comment regarding necessity of
18412         movdi from movsi to here.
18413         ("*mov_side<mode>_biap"): Replace "*mov_sideqi_biap" and
18414         "*mov_sidehi_biap".
18415         ("*mov_side<mode>"): Replace "*mov_sideqi" and "*mov_sidehi".
18416         ("*mov_side<mode>_biap_mem", "*mov_sidehi_biap_mem"): Replace
18417         "*mov_sideqi_biap_mem".
18418         ("*mov_side<mode>_mem"): Replace "*mov_sideqi_mem" and
18419         "*mov_sidehi_mem".
18420         ("*clear_side<mode>_biap"): Replace "*clear_sidesi_biap",
18421         "*clear_sidehi_biap" and "*clear_sideqi_biap".
18422         ("*clear_side<mode>"): Replace "*clear_sidesi", "*clear_sidehi"
18423         and "*clear_sideqi".
18424         ("*ext_side<mode>si_biap"): Replace "*ext_sideqisi_biap" and
18425         "*ext_sidehisi_biap".
18426         ("*ext_side<mode>si"): Replace "*ext_sideqisi" and
18427         "*ext_sidehisi".
18428         ("reload_in<mode>"): Replace "reload_inhi" and "reload_inqi".
18429         ("reload_out<mode>"): Replace "reload_outhi" and "reload_outqi".
18430         ("extend<mode>di2"): Replace "extendhidi2" and "extendqidi2".
18431         ("extend<mode>si2"): Replace "extendhisi2" and "extendqisi2".
18432         ("zero_extend<mode>si2"): Replace "zero_extendhisi2" and
18433         "zero_extendqisi2".
18434         ("*op_side<mode>_biap"): Replace "*op_sideqi_biap",
18435         "*op_sidehi_biap" and "*op_sidesi_biap".
18436         ("*op_side<mode>"): Replace "*op_sideqi", "*op_sidehi" and
18437         "*op_sidesi".
18438         ("*op_swap_side<mode>_biap"): Replace "*op_swap_sideqi_biap",
18439         "*op_swap_sidehi_biap" and "*op_swap_sidesi_biap".
18440         ("*op_swap_side<mode>"): Replace "*op_swap_sideqi",
18441         "*op_swap_sidehi" and "*op_swap_sidesi".
18442         ("sub<mode>3"): Replace "subhi3" and "subqi3", correcting a typo
18443         in the N alternative of "subqi3".
18444         ("*extop<mode>si_side_biap"): Replace "*extopqisi_side_biap" and
18445         "*extophisi_side_biap".
18446         ("*extop<mode>si_side"): Replace "*extopqisi_side" and
18447         "*extophisi_side".
18448         ("*extop<mode>si_swap_side_biap"): Replace
18449         "*extopqisi_swap_side_biap" and "*extophisi_swap_side_biap".
18450         ("*extop<mode>si_swap_side"): Replace "*extopqisi_swap_side" and
18451         "*extophisi_swap_side".
18452         ("*extop<mode>si"): Replace "*extopqisi" and "*extophisi".
18453         ("*extop<mode>si_swap"): Replace "*extopqisi_swap" and
18454         "*extophisi_swap".
18455         ("<u>mul<s><mode>3"): Replace "umulhisi3", "umulqihi3",
18456         "mulqihi3", "mulhisi3" and "mulhisi3".
18457         ("<u>mulsidi3"): Replace "mulsidi3" and "umulsidi3".
18458         ("<su>mulsi3_highpart"): Replace "smulsi3_highpart" and
18459         "umulsi3_highpart".
18460         ("xor<mode>3"): Replace "xorhi3" and "xorqi3".
18461         ("neg<mode>2"): Replace "negsi2", "neghi2" and "negqi2".
18462         ("one_cmpl<mode>2"): Replace "one_cmplhi2" and "one_cmplqi2".
18463         ("<shlr>si3"): Replace "ashrsi3", "lshrsi3" and "ashlsi3".
18464         ("ashr<mode>3"): Replace "ashrhi3" and "ashrqi3".
18465         ("*expanded_<shlr><mode>"): Replace "*expanded_ashrhi",
18466         "*expanded_ashrqi", "*expanded_lshrhi" and "*expanded_lshrqi".
18467         ("*<shlr><mode>_lowpart"): Replace "*ashrhi_lowpart",
18468         "*ashrqi_lowpart", "*lshrhi_lowpart" and "*lshrqi_lowpart".
18469         ("lshr<mode>3"): Replace "lshrhi3" and "lshrqi3".
18470         ("ashl<mode>3"): Replace "ashlhi3" and "ashlqi3".
18471         ("*ashl<mode>_lowpart"): Replace "*ashlqi_lowpart" and
18472         "*ashlhi_lowpart".
18473         ("abs<mode>2"): Replace "abshi2" and "absqi2".
18474         ("b<ncond>"): Replace "beq", "bne", "bgtu", "bltu", "bgeu" and
18475         "bleu".
18476         ("b<ocond>"): Replace "bgt" and "ble".
18477         ("b<rcond>"): Replace "blt" and "bge".
18478         ("*b<ncond>_reversed"): Replace "*beq_reversed", "*bne_reversed",
18479         "*bgtu_reversed", "*bltu_reversed", "*bgeu_reversed" and
18480         "*bleu_reversed".
18481         ("*b<ocond>_reversed"): Replace "*bgt_reversed" and
18482         "*ble_reversed".
18483         ("*b<rcond>_reversed"): Replace "*blt_reversed" and
18484         "*blt_reversed".
18485         ("s<ncond>"): Replace "sgeu", "sltu", "seq", "sgtu", "sleu" and
18486         "sne".
18487         ("s<rcond>"): Replace "sge" and "slt".
18488         ("s<ocond>"): Replace "sgt" and "sle".
18489         ("clear.[bwd] [rx=rx+rz.S2]"): Replace split clear.d
18490         [rx=rx+rz.S2], clear.w [rx=rx+rz.S2] and clear.b [rx=rx+rz.S2].
18491         ("clear.[bwd] [rx=rx+i]"): Replace splits clear.d [rx=rx+i],
18492         clear.w [rx=rx+i] and clear.b [rx=rx+i].
18494 2005-05-17  Jakub Jelinek  <jakub@redhat.com>
18496         * varasm.c (struct constant_descriptor_tree): Add hash field.
18497         (const_desc_hash): Just return hash field.
18498         (const_desc_eq): If hash values are different, return 0 immediately.
18499         (output_constant_def): Compute hash field of temporary key, use
18500         htab_find_slot_with_hash instead of htab_find_slot.  Set hash in
18501         newly built constant descriptor.
18502         (lookup_constant_def): Compute hash field of temporary key, use
18503         htab_find_with_hash instead of htab_find.
18505 2005-05-16  Richard Henderson  <rth@redhat.com>
18507         * config/i386/sse.md (mulv4si3): New.
18509 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
18511         * config/cris/cris.h (EXTRA_CONSTRAINT_T): Remove FIXME and
18512         tests for noncanonical versions of reg+constant and
18513         reg+reg*{1,2,4}.
18515 2005-05-16  Richard Henderson  <rth@redhat.com>
18516             Steven Bosscher <stevenb@suse.de>
18518         PR tree-opt/21399
18519         * tree-eh.c (maybe_clean_or_replace_eh_stmt): Rename from
18520         maybe_clean_eh_stmt; take old stmt parameter.  Update EH
18521         region data structure to match replacement.
18522         * tree-flow.h: Update to match.
18523         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
18524         * tree-ssa-dom.c (optimize_stmt): Likewise.
18525         * tree-ssa-pre.c (eliminate): Likewise.
18526         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
18528 2005-05-16  Caroline Tice  <ctice@apple.com>
18530         * bb-reorder.c (verify_hot_cold_block_grouping): Replace
18531         internal_error with gcc_assert.
18532         * dwarf2out.c (dwarf2out_switch_text_section): Likewise.
18533         * function.h (struct function): Remove space between "*" and
18534         struct field names.
18535         * varasm.c (initialize_cold_section_name):  Add gcc_assert;
18536         modify to use alloca.
18537         (unlikely_text_section): Add check for flag_function_sections.
18538         (assemble_start_function): Move call to resolve_section, so it
18539         comes before first call to unlikely_text_section.
18540         (assemble_end_function): Add test and call to function_section
18541         if appropriate.
18543 2005-05-16  Roger Sayle  <roger@eyesopen.com>
18545         * c-common.c (c_common_truthvalue_conversion): Use fold_build2
18546         instead of build_binary_op when performing code transformations
18547         to avoid error messages about constructs not it the user's code.
18549 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
18551         * tree-ssa-pre.c: Fix a comment typo.
18553 2005-05-16  Richard Henderson  <rth@redhat.com>
18555         PR target/21556
18556         * config/ia64/ia64.md (load_dtpmod, load_ltoff_dtpmod, load_dtprel,
18557         load_dtprel64, load_dtprel22, load_dtprel_gd, load_ltoff_dtprel,
18558         add_dtprel, add_dtprel14, add_dtprel22, load_tprel, load_tprel64,
18559         load_tprel22, load_tprel_ie, load_ltoff_tprel, add_tprel, add_tprel14,
18560         add_tprel22): Remove mode from symbolic operand.
18562 2005-05-16  Richard Sandiford  <rsandifo@redhat.com>
18564         * optc-gen.awk: Include intl.h after the externally-provided files.
18566 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
18568         * tree-ssa-copy.c (copy_prop_visit_assignment): Clean up by
18569         folding a COND_EXPR_COND in a nondestructive manner.
18571 2005-05-16  Fariborz Jahanian <fjahanian@apple.com>
18573         * config/rs6000/altivec.md (altivec_vmrghb, altivec_vmrghh,
18574         altivec_vmrghw, altivec_vmrglb, altivec_vmrglh, altivec_vmrglw):
18575         New values for vec_select definitions and bitmask for element
18576         selection.
18578 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
18580         * dwarf2out.c (used_rtx_varray): Rename to used_rtx_array.
18581         Change the type to VEC(rtx,gc)*.
18582         (mem_loc_descriptor, add_const_value_attributes,
18583         dwarf2out_init): Adjust uses of used_rtx_varray.
18585         * tree-data-ref.c (compute_all_dependences): Change the type
18586         of dependence_relations to VEC(ddr_p,heap)**.
18587         (compute_data_dependences_for_loop): Change the type of
18588         allrelations to VEC(ddr_p,heap)*.
18590 2005-05-16  Richard Sandiford  <rsandifo@redhat.com>
18592         * Makefile.in (options.c): Tell optc-gen.awk to include config.h,
18593         system.h, coretypes.h and tm.h.
18594         (options.o): Update dependencies accordingly.
18595         * optc-gen.awk: Allow header_name to be a list of filenames.
18596         Handle the "Condition" flag.
18597         * opts.h (CL_DISABLED): New flag.
18598         * opts.c (handle_option): Print an error for CL_DISABLED options.
18599         * doc/options.texi: Document the "Condition" option flag.
18601 2005-05-16  Paolo Bonzini  <bonzini@gnu.org>
18603         * tree-inline.c (estimate_num_insns_1): Handle VEC_COND_EXPR.
18605 2005-05-15  Roger Sayle  <roger@eyesopen.com>
18607         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Only
18608         check for TREE_OVERFLOW on INTEGER_CST trees.
18609         * tree-chrec.c (chrec_convert): Only clear TREE_OVERFLOW on
18610         CONSTANT_CLASS_P tree nodes.
18612 2005-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18614         PR target/21551
18615         * config/ia64/ia64.c (ia64_expand_move): Don't add addend twice.
18617 2005-05-15  Daniel Berlin  <dberlin@dberlin.org>
18619         Fix PR tree-optimization/21576
18621         * tree-ssa-pre.c (expression_node_pool): New pool.
18622         (comparison_node_pool): Ditto.
18623         (list_node_pool): Ditto.
18624         (pool_copy_list): New function.
18625         (phi_translate): Handle CALL_EXPR.
18626         (valid_in_set): Ditto.
18627         (create_expression_by_pieces): Ditto.
18628         (insert_into_preds_of_block): Ditto.
18629         (insert_aux): Ditto.
18630         (compute_avail): Ditto.
18631         (create_value_expr_from): Handle TREE_LIST and CALL_EXPR.
18632         (can_value_number_call): New function.
18633         (find_leader): Update comment.
18634         (init_pre): Create new pools.
18635         (fini_pre): Free new pools.
18636         (pass_pre): Add TODO_update_ssa for the future when we are going
18637         to need vops.
18638         * tree-vn.c (expressions_equal_p): Handle TREE_LIST.
18639         (set_value_handle): Ditto.
18640         (get_value_handle): Ditto.
18642 2005-05-15  Richard Earnshaw  <richard.earnshaw@arm.com>
18644         * arm.c (thumb_unexpanded_epilogue): Delete unused variable 'mode'.
18646 2005-05-15  Andreas Jaeger  <aj@suse.de>
18648         * gcc.c (pfatal_pexecute): Remove unused local function.
18650 2005-05-15  Richard Sandiford  <rsandifo@redhat.com>
18652         * optc-gen.awk: Remove excess indentation.
18653         * opth-gen.awk: Likewise.
18655 2005-05-14  Kaz Kojima  <kkojima@gcc.gnu.org>
18657         * config/sh/sh.c (sh_output_mi_thunk): Check cfun->cfg instead
18658         of basic_block_info.  Call init_flow and find_basic_blocks
18659         before dbr_schedule if needed.
18661 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
18663         * tree-optimize.c (init_tree_optimization_passes): Move
18664         pass_cd_dce in place of the last pass_dce.
18666         PR tree-optimization/21563
18667         * tree-vrp.c (compare_value): Return boolean_false_node when
18668         SSA_NAME in "if (SSA_NAME == CST)" is strictly smaller than or
18669         strictly larger than CST.
18671 2005-05-14  Nathan Sidwell  <nathan@codesourcery.com>
18672             Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18674         * config/vax/vax.c: (print_operand_address) Use gcc_unreachable() and
18675         gcc_assert().
18676         (rev_cond_name) Likewise.
18677         (vax_float_literal) Likewise.
18678         * config/vax/vax.md: Likewise.
18680 2005-05-14  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18682         * config/vax/vax.md: define_constant VAXens AP, FP, SP and PC
18683         registers and use them (specifically the stack pointer).
18684         * config/vax/vax.h: Use above defines right here.
18686         * config/vax/vax.c: (override_options) Remove 'register' keyword.
18687         (split_quadword_operands) Likewise. (rev_cond_name) Likewise.
18688         (vax_float_literal) Likewise. (vax_rtx_costs) Remove trailing
18689         whitespace.
18690         * config/vax/vax.h: Remove 'register' keyword. Misc. whitespace fixes,
18691         mostly removal of trailing spaces...
18692         * config/vax/vax-modes.def: Remove trailing whitespace.
18694         * config/vax/elf.h: Update whitespace.
18696 2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>
18698         Revert
18699         2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
18700         * fold-const.c (fold_indirect_ref_1): Avoid removing
18701         NOP_EXPRs with type qualifiers like const.
18703 2005-05-14  Jan Hubicka  <jh@suse.cz>
18705         Patch by Richard Henderson:
18706         * tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
18707         Handle RESX expressions properly.
18709         * tree-eh.c (record_stmt_eh_region): Use add_stmt_to_eh_region.
18710         (add_stmt_to_eh_region_fn): Nest into CALL_EXPR.
18711         (remove_stmt_from_eh_region_fn): Likewise.
18713         * tree-cfg.c (execute_warn_function_return): Break out noreturn
18714         warning too..
18715         (execute_warn_function_noreturn): ... here.
18716         (pass_warn_function_noreturn): New pass.
18717         * tree-pass.h (pass_warn_function_noreturn): Declare
18718         * tree-optimize.c (init_tree_optimization_passes): Move return
18719         warnings early and add noreturn warnings at place of previous
18720         return warnings.
18722 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
18724         * tree-ssa-live.c (tpa_init, tpa_delete, tpa_compact,
18725         root_var_init, type_var_init): Use VEC instead of VARRAY.
18726         * tree-ssa-live.h (tree_partition_associator_d): Change the
18727         type of trees to VEC(tree,heap)*.
18728         (tpa_tree): Use VEC instead of VARRAY.
18730 2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>
18732         * fold-const.c (div_if_zero_remainder): New function.
18733         (try_move_mult_to_index): Use it.
18735 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
18737         * tree-eh.c (leh_tf_state): Change the type of dest_array to
18738         VEC(tree,heap)*.
18739         (maybe_record_in_goto_queue, lower_try_finally_onedest,
18740         lower_try_finally_copy, lower_try_finally_switch,
18741         lower_try_finally): Use VEC instead of VARRAY.
18743 2005-05-14  Hans-Peter Nilsson  <hp@axis.com>
18745         * config/cris/cris.h (Node: Register Classes): Remove obsoleted
18746         comment regarding defined register classes.
18747         (LEGITIMIZE_RELOAD_ADDRESS): Do not define.
18749 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
18751         * tree-optimize.c (init_tree_optimization_passes): Move
18752         pass_merge_phi before the first pass_dominator.
18754 2005-05-13  Richard Earnshaw  <richard.earnshaw@arm.com>
18756         * arm.h (INITIALIZE_TRAMPOLINE): Make the call to __clear_cache
18757         unconditional.
18759 2005-05-13  Josh Conner  <jconner@apple.com>
18761         * config/arm/arm.c (arm_size_return_regs): New.
18762         (thumb_unexpanded_epilogue): replace in-line calculation
18763         of return registers with call to arm_size_return_regs.
18764         (use_return_insn): Include test of which registers are
18765         being used to hold return values, to accommodate
18766         vector return values.
18768 2005-05-11  Aldy Hernandez  <aldyh@redhat.com>
18770         * config/rs6000/sysv4.opt (mlittle): Handle.
18772         * config/rs6000/rs6000.c (rs6000_handle_option): Set
18773         target_flags_explicit when appropriate.
18775 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
18777         PR middle-end/20714:
18778         * optabs.c (no_conflict_data): New struct.
18779         (no_conflict_move_test): New function.
18780         (emit_no_conflict_block): Use it.
18782 2005-05-13  Adam Nemet  <anemet@lnxw.com>
18784         * doc/invoke.texi (Debugging Options): Option
18785         -fdump-translation-unit only works with C++ now.
18787 2005-05-13  Hans-Peter Nilsson  <hp@axis.com>
18789         Replace calls to abort in CRIS port.
18790         * config/cris/cris.h (CRIS_ASSERT): New macro.
18791         * config/cris/cris.md ("*movsi_internal"): Use CRIS_ASSERT and
18792         internal_error instead of abort.
18793         ("movsi"): Ditto.  Unquote preparation statement section.
18794         ("call", "call_value"): Ditto, but use gcc_assert where
18795         appropriate.  Tweak comments.
18796         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Define in terms of
18797         CRIS_ASSERT.
18798         (cris_op_str): Call internal_error, not abort.
18799         (cris_print_operand): Tweak "abort" reference to "die" in comment.
18800         (cris_initial_elimination_offset): Call gcc_unreachable, not abort.
18801         (cris_notice_update_cc): Call internal_error, not abort.
18802         (cris_expand_return, cris_expand_prologue, cris_gen_movem_load)
18803         (cris_emit_movem_store, cris_asm_output_symbol_ref)
18804         (cris_output_addr_const_extra): Use CRIS_ASSERT, don't call abort.
18805         (cris_symbol, cris_got_symbol): Use CRIS_ASSERT instead of
18806         ENABLE_CHECKING-guarded abort call.
18807         (cris_split_movdx): Use CRIS_ASSERT instead of abort with test.
18808         Use internal_error at end of test-chain.
18810 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
18812         PR rtl-optimization/20769:
18813         * bt-load.c (compute_defs_uses_and_gen): Check for the blockage
18814         pattern emitted by expand_nl_goto_receiver.
18816         PR middle-end/20793:
18817         * integrate.c (allocate_initial_values): Update register liveness
18818         information.
18820 2005-05-13  Josh Conner  <jconner@apple.com>
18822         * arm.c (arm_return_in_memory): Add handling for vector return types.
18824 2005-05-13  David Ung  <davidu@mips.com>
18826         * config/mips/mips.h (processor_type): Add new PROCESSOR_4KP
18827         name.
18828         * config/mips/mips.c: Add 4km alias.
18829         * config/mips/mips.md: Add 4kp to cpu attrib and include 4k.md.
18830         * config/mips/4k.md: New file, add 4Kc/4Kp DFA pipeline
18831         description.
18833 2005-05-13  Jan Hubicka  <jh@suse.cz>
18835         * c-decl.c (finish_function): Suppress "control reaches end of
18836         non-void function" when "no return statement in function
18837         returning non-void" is issued.
18839         * tree-inline.c (copy_body_r): Simplify substituted ADDR_EXPRs.
18840         * tree-optimize.c (pass_gimple): Kill.
18841         (init_tree_optimization_passes): Kill pass_gimple.
18842         * tree-cfg.c (build_tree_cfg): Do verify_stmts to check that we are gimple.
18843         * tree-dump.c (dump_files): Rename .generic to .gimple.*
18845 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
18847         PR rtl-optimization/20756:
18848         * basic-block.h (PROP_DEAD_INSN): Define.
18849         * flow.c (propagate_one_insn): Set during mark_set_regs call
18850         for a dead insn.
18851         (mark_set_1): Emit a clobber when we are about to delete a dead insn
18852         that kills a live register.
18854 2005-05-13  Adrian Straetling  <straetling@de.ibm.com>
18856         * config/s390/s390.md: ("DBL"): New mode attribute.
18857         ("*movmem_long_64", "*movmem_long_31"): Merge to "*movmem_long".
18858         ("*clrmem_long_64", "*clrmem_long_31"): Merge to "*clrmem_long".
18859         ("*cmpmem_long_64", "*cmpmem_long_31"): Merge to "*cmpmem_long".
18861 2005-05-13  Richard Guenther  <rguenth@gcc.gnu.org>
18863         * c-format.c (check_format_arg): Handle string literals of
18864         the form &"string"[offset].
18866         * g++.dg/warn/format4.C: New testcase.
18868 2005-05-13  Kazu Hirata  <kazu@cs.umass.edu>
18870         * config/mips/3000.md, config/mips/4000.md,
18871         config/mips/4100.md, config/mips/4300.md, config/mips/4600.md,
18872         config/mips/5000.md, config/mips/7000.md, config/mips/9000.md,
18873         config/mips/generic.md, config/pdp11/pdp11.md,
18874         config/sh/crt1.asm, config/sh/lib1funcs.asm,
18875         config/sh/sh-modes.def, config/sh/sh-protos.h,
18876         config/sh/shmedia.md, config/sh/ushmedia.h: Update copyright.
18878 2005-05-13  Richard Henderson  <rth@redhat.com>
18880         * function.c (instantiate_virtual_regs_in_insn): Do not simplify
18881         addition to move unless dest is a register.  Do not skip
18882         instantiation in dest on addition simplification.
18884 2005-05-13  Hans-Peter Nilsson  <hp@axis.com>
18886         * config/cris/cris.c (cris_print_operand) <case 'H'; case
18887         CONST_INT>: Use operand_subword and HOST_WIDE_INT_PRINT_DEC for
18888         output; don't have special case for HOST_BITS_PER_WIDE_INT == 32.
18890 2005-05-13  Jan Hubicka  <jh@suse.cz>
18892         * basic-block.h (FOR_ALL_BB_FN): New macro.
18893         (init_flow): Initialize cfg structure.
18894         * function.c (allocate_struct_function): Do not initialize cfg structure.
18895         * tree-cfg.c (init_empty_tree_cfg): Break out from ...
18896         (build_tree_cfg): ... here.
18897         * tree-flow.h (init_empty_tree_cfg): Declare.
18899 2005-05-12  Steven Bosscher <stevenb@suse.de>
18901         Fix PR tree-optimization/21520
18902         * tree-ssa-pre.c (phi_translate): Use fully_constant_expression
18903         to attempt to fold constants.
18905 2005-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
18907         * config/sh/sh.c: Declare the prototype of sh_adjust_unroll_max
18908         only when TARGET_ADJUST_UNROLL_MAX is defined.
18909         (general_movsrc_operand): Use the C style comment.
18910         (ua_offset): Use prototype.
18912 2005-05-12  Zdenek Dvorak  <dvorakz@suse.cz>
18914         * tree-ssa-loop-im.c (struct mem_ref): Add field "next".
18915         (struct hmr_data, hoist_memory_reference, memref_del,
18916         struct fmrv_data): Removed.
18917         (hoist_memory_references, free_mem_ref, free_mem_refs): New functions.
18918         (gather_mem_refs, gather_mem_refs_stmt): Add new references to the
18919         list.
18920         (find_more_ref_vops): Traverse the list of memory references.
18921         (determine_lsm_loop): Work with the list of memory references instead
18922         of traversing the hashtable.
18924 2005-05-12  Steven Bosscher  <stevenb@suse.de>
18925             Stuart Hastings <stuart@apple.com>
18926             Jan Hubicka  <jh@suse.cz>
18928         * except.c  (duplicate_eh_region_1, duplicate_eh_region_2,
18929         duplicate_eh_regions): New functions, based on old
18930         implementation removed with RTL inliner.
18931         (reachable_next_level): Modify behaviour pre-inline.
18932         * except.h (duplicate_eh_regions_map, duplicate_eh_regions):
18933         Declare.
18934         * function.h (struct function): Add after_inlining flag.
18935         * tree-optimize.c (tree_rest_of_compilation): Set it.
18936         * tree-eh.c (add_stmt_to_eh_region_fn): Initialize hashtable
18937         when needed.
18938         * tree-cfg.c (label_to_block_fn): Deal with cases where
18939         label was never insterted into code.
18941 2005-05-12  Zack Weinberg  <zack@codesourcery.com>
18943         * doc/cpp.texi: Document that #sccs is a synonym for #ident.
18945 2005-05-12  Daniel Berlin  <dberlin@dberlin.org>
18947         Fix PR tree-optimization/21532
18948         * tree-ssa-pre.c (create_expression_by_pieces): stmt
18949         needs to go onto the inserted_exprs list.
18951 2005-05-12  Ian Lance Taylor  <ian@airs.com>
18953         * c-common.h (statement_code_p): Don't declare.
18954         (STATEMENT_CODE_P): Don't define.
18955         (INIT_STATEMENT_CODES): Don't define.
18956         * c-common.c (statement_code_p): Don't define.
18958 2005-05-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
18960         * config/sparc/sparc.h: Remove dead code.
18961         * config/sparc/sparc.c (sparc_compute_frame_size): Use
18962         FIRST_PARM_OFFSET for the size of the register window area.
18963         (emit_save_regs): Rename into emit_save_or_restore_regs.
18964         Add 'action' parameter.  Use 4095 as upper bound for the offset.
18965         Pass 'action' to save_or_restore_regs.
18966         (emit_restore_regs): Delete.
18967         (sparc_expand_prologue): Call emit_save_or_restore_regs.
18968         (sparc_expand_epilogue): Likewise.
18969         * config/sparc/sparc.md (mode macro P): Move.
18970         (movdi_insn_sp32_v9, movdi_insn_sp32): Swap.
18971         (mov<V32:mode> expander): Move to the top of the V32 section.
18972         (movdf_insn_sp32_v9_no_fpu, movdf_insn_sp32_v9): Swap.
18973         (movtf_insn_sp64_hq, movtf_insn_sp64): Swap.
18974         (sibcall_epilogue): Move.
18976 2005-05-12  Richard Earnshaw  <richard.earnshaw@arm.com>
18978         PR target/21501
18979         * arm.c (arm_gen_constant): Sign-extend intermediate values when
18980         synthesizing a constant of the difference of two immediates.
18982 2005-05-12  Richard Earnshaw  <richard.earnshaw@arm.com>
18984         * arm/vfp.md (negsf2_vfp): Add alternative using integer registers.
18985         (negdf2_vfp): Likewise.  Convert to define_insn_and_split and split
18986         the alternatives using integer registers into the appropriate
18987         primitives.
18989 2005-05-11 Kenneth Zadeck <zadeck@naturalbridge.com>
18991         * bitmap.c (bitmap_elmt_to_freelist, bitmap_element_allocate,
18992         bitmap_elt_clear_from, bitmap_clear): Changed freelist structure.
18993         * bitmap.h: Fixed comments.
18995 2005-05-11  Richard Henderson  <rth@redhat.com>
18997         PR target/21412
18998         * config/ia64/ia64.c (TARGET_CANNOT_FORCE_CONST_MEM): New.
18999         (ia64_cannot_force_const_mem): New.
19000         (tls_symbolic_operand_type): New.
19001         (ia64_legitimate_constant_p): New.
19002         (ia64_expand_load_address): Return true on success.  Improve
19003         checks for when we should not split.
19004         (ia64_expand_tls_address): New addend operand.  Distribute it
19005         as appropriate to the tls_kind.  Delay referencing gp.
19006         (ia64_expand_move): Split symbolic addend as necessary.  Handle
19007         tls symbols with addends.
19008         * config/ia64/ia64-protos.h: Update.
19009         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): False for r0,
19010         p0, f0, f1, and r13.
19011         (LEGITIMATE_CONSTANT_P): Move to ia64_legitimate_constant_p.
19012         * config/ia64/ia64.md (UNSPEC_DTPMOD): New.
19013         (symbolic_operand splitter): Pass everything through
19014         ia64_expand_load_address and FAIL or DONE as appropriate.
19015         (load_fptr): Only accept after reload.
19016         (load_fptr_internal1, gprel64_offset, load_gprel64, load_symptr_high,
19017         load_symptr_low, load_ltoff_dtpmod,
19018         (load_dtpmod): New.
19019         (load_dtprel): Only accept tls symbols.
19020         (load_dtprel64, load_dtprel22): Likewise.
19021         (load_tprel, load_tprel64, load_tprel22): Likewise.
19022         (load_dtprel_gd, load_ltoff_dtprel, load_tprel_ie): New.
19023         (add_dtprel): Only accept tls symbols.  Canonicalize PLUS.
19024         (add_dtprel14, add_dtprel22): Likewise.
19025         (add_tprel, add_tprel14, add_tprel22): Likewise.
19026         * config/ia64/predicates.md (small_addr_symbolic_operand): New.
19027         (any_offset_symbol_operand, aligned_offset_symbol_operand): New.
19028         (got_symbolic_operand): Check CONST offsets.
19029         (tls_symbolic_operand, ld_tls_symbolic_operand): New.
19030         (ie_tls_symbolic_operand, le_tls_symbolic_operand): New.
19031         (move_operand): Don't handle tls here.  Check CONST offsets.
19033 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
19035         * config/mips/7000.md (rm7_impy_si_mult): Just match imul and imadd.
19036         Remove hilo_operand check.
19037         (rm7_impy_si_mul): Just match imul3.  Remove hilo_operand check.
19038         * config/mips/predicates.md (hilo_operand): Delete.
19040 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
19042         * config/mips/sr71k.md, config/mips/7000.md: Reformat.
19044 2005-05-11  Kazu Hirata  <kazu@cs.umass.edu>
19046         PR tree-optimizer/18472
19047         * tree-if-conv.c (tree_if_convert_stmt,
19048         if_convertible_modify_expr_p): Don't handle GOTO_EXPR.
19050 2005-05-11  Jan Hubicka  <jh@suse.cz>
19052         * Makefile.in (tree-eh.o: Kill gt-tree-eh.h dependency.
19053         (GTFILES): add except.h.
19054         * except.c (eh_status): Add throw_stmt_table.
19055         (set_eh_throw_stmt_table, get_eh_throw_stmt_table): New functions.
19056         * except.h (add_stmt_to_eh_region_fn, remove_stmt_from_eh_region_fn,
19057         lookup_stmt_eh_region_fn): Declare.
19058         (throw_stmt_node): New structure.
19059         (set_eh_throw_stmt_table, get_eh_throw_stmt_table): New.
19060         * gengtype.c (open_base_files): Add except.h to inlines.
19061         * tree-eh.c (throw_stmt_node): Kill.
19062         (record_stmt_eh_region): Update.
19063         (add_stmt_to_eh_region_fn): Break out from ...
19064         (add_stmt_to_eh_region): ... here.
19065         (remove_stmt_from_eh_region_fn): Break out from ...
19066         (remove_stmt_from_eh_region): ... here.
19067         (lookup_stmt_eh_region_fn): Break out from ...
19068         (lookup_stmt_eh_region): ... here.
19069         (honor_protect_cleanup_actions): Use build_resx.
19070         (lower_try_finally_onedest): Likewise.
19071         (lower_try_finally_copy): Likewise.
19072         (lower_try_finally_switch): Likewise.
19073         (lower_eh_constructs): Update eh table construction.
19074         * tree.c (build_resx): New.
19075         * tree.h (build_resx): Declare.
19077 2005-05-11  H.J. Lu  <hongjiu.lu@intel.com>
19079         * libgcov.c (gcov_exit): Set prefix_length to 0 if no relocation
19080         is needed.
19082 2005-05-11  Kazu Hirata  <kazu@cs.umass.edu>
19084         * fold-const.c, libgcov.c: Fix comment typos.
19086         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove
19087         redundant code.
19089 2005-05-11  Daniel Jacobowitz  <dan@codesourcery.com>
19091         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
19092         * config/arm/arm.h (SUBTARGET_FRAME_POINTER_REQUIRED): Provide
19093         default definition.
19094         (FRAME_POINTER_REQUIRED): Use SUBTARGET_FRAME_POINTER_REQUIRED.
19096 2005-05-11  Nathan Sidwell  <nathan@codesourcery.com>
19098         PR bootstrap/21481
19099         * crtstuff.c: Include auto-host.h again, for now.
19101 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
19103         * config/mips/24k.md: Remove trailing whitespace.
19105 2005-05-11  David Ung  <davidu@mips.com>
19107         * config/mips/mips.md (type): Add imul3.
19108         (length, hazard, may_clobber_hilo): Check for imul3.
19109         (mulsi3_mult3, muldi3_mult3, *muls, <su>mulsi3_highpart_mulhi_internal)
19110         (*<su>mulsi3_highpart_neg_mulhi_internal): Set attr to imul3.
19111         * config/mips/24k.md (r24k_int_mul3): Enable this reservation
19112         for a 3 operand mul and its bypasses.
19113         * config/mips/3000.md (r3k_imul): Add imul3 to reservations.
19114         * config/mips/4000.md (r4k_imul): Likewise.
19115         * config/mips/4100.md (r4100_imul_si, r4100_imul_di): Likewise.
19116         * config/mips/4130.md (vr4130_class, vr4130_mulsi)
19117         (vr4130_muldi): Likewise.
19118         * config/mips/4300.md (r4300_imul_si, r4300_imul_di): Likewise.
19119         * config/mips/4600.md (r4600_imul, r4650_imul): Likewise.
19120         * config/mips/5000.md (r5k_imul_si, r5k_imul_di): Likewise.
19121         * config/mips/5400.md (ir_vr54_imul_si, ir_vr54_imul_di)
19122         (ir_vr54_imadd_si): Likewise.
19123         * config/mips/5500.md (ir_vr55_imul_si, ir_vr55_imul_di): Likewise.
19124         * config/mips/7000.md (rm7_impy_si_mult, rm7_impy_si_mul)
19125         (rm7_impy_di): Likewise.
19126         * config/mips/9000.md (rm9k_mulsi, rm9k_muldi): Likewise.
19127         * config/mips/generic.md (generic_imul): Likewise.
19128         * config/mips/sb1.md (ir_sb1_mulsi, ir_sb1_muldi): Likewise.
19129         * config/mips/sr71k.md (ir_sr70_imul_si, ir_sr70_imul_di): Likewise.
19131 2005-05-11  J"orn Rennecke <joern.rennecke@st.com>
19133         PR middle-end/20371:
19134         * tree.h (record_layout_info_s): New member prev_packed.
19135         * stor-layout.c (update_alignment_for_field): Fix comment about
19136         KNOWN_ALIGN.  For MS bitfields, if we start a new run, make sure
19137         we start it properly aligned.
19138         (place_field): At the beginning of a record, pass 0 as KNOWN_ALIGN
19139         to update_alignment_for_field, and recompute it afterwards using
19140         the alignment of the record.
19141         When a packed bitfield precedes an MS bitfield, don't add padding
19142         at the end of the packed bitfield on behalf of the base type of
19143         the packed bit field.
19144         Don't adjust rli->bitpos at the end
19145         of an MS bitfield run if we already adjusted bitpos/offset for an
19146         alignment as large or larger than the bitfield type size.
19147         Take possible record alignment > BIGGEST_ALIGNMENT into account
19148         when calculating actual_align.
19149         Only put packed buit fields into rli->prev_field if they end up
19150         suitably aligned.
19151         Also set rli->remaining_in_alignment when we re-set rli->prev_field.
19152         Update rli->remaining_in_alignment when we have already started a
19153         run of bit fields and we process a packed bit field.
19155 2005-05-11  Sebastian Pop  <pop@cri.ensmp.fr>
19157         * tree-data-ref.c (find_data_references_in_loop): Give up when
19158         the body of the loop contains a CALL_EXPR or an ASM_EXPR: they
19159         may embed arbitrary side effects.
19160         Remove the assumption that GIMPLE form contains a single array
19161         access per statement.
19162         When the statement contains virtual operands, fail if it is not
19163         a MODIFY_EXPR or a CALL_EXPR.
19164         Return after the dont know node is inserted.
19166 2005-05-11  Richard Earnshaw  <richard.earnshaw@arm.com>
19168         * arm.md (negsf2, negdf2): Permit these expands when compiling for VFP.
19170 2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
19172         PR middle-end/19807
19173         PR tree-optimization/19639
19174         * fold-const.c (try_move_mult_to_index): Handle INTEGER_CST
19175         and generic summands for char* as s * delta, too, folding &a[i]
19176         CODE x to &a[i CODE x/s].  Use tree_int_cst_equal
19177         for comparison of steps.  Convert types for index addition.
19178         (fold_binary): Adjust the callers to always dispatch to
19179         try_move_mult_to_index.
19180         * tree-ssa-propagate.c (set_rhs): Avoid setting rhs to
19181         expr with non-gimple ARRAY_REF offset.
19183 2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
19185         * fold-const.c (fold_indirect_ref_1): Avoid removing
19186         NOP_EXPRs with type qualifiers like const.
19188 2005-05-11  Richard Henderson  <rth@redhat.com>
19190         PR c/21502
19191         * c-decl.c (finish_decl): Propagate the completed array type of
19192         a global variable into the binding.
19194 2005-05-10  Matt Kraai  <kraai@ftbfs.org>
19196         * Makefile.in (gtype-desc.o, build/genautomata.o)
19197         (build/varray.o): Depend on $(VARRAY_H).
19199 2005-05-10  Diego Novillo  <dnovillo@redhat.com>
19201         * tree-optimize.c (init_tree_optimization_passes): Re-organize
19202         optimization passes to do an initial batch of scalar cleanups.
19204 2005-05-10  Ian Lance Taylor  <ian@airs.com>
19206         * read-rtl.c (struct macro_traverse_data): Define.
19207         (map_attr_string): New static function, broken out of
19208         apply_macro_to_string.
19209         (mode_attr_index, apply_mode_maps): New static functions.
19210         (apply_macro_to_string): Call map_attr_string.
19211         (apply_macro_to_rtx): Add mode_maps and infile parameters.  Change
19212         all callers.
19213         (apply_macro_traverse): Expect data to point to a struct
19214         macro_traverse_data.
19215         (read_rtx): Add mode_maps local variable.  Use mode_traverse_data
19216         to pass data through htab_traverse.
19217         (read_rtx_1): Add mode_maps parameter.  Change all callers.
19218         Handle mode names which are attribute strings.
19219         * doc/md.texi (Substitutions): Rename from String Substitutions.
19220         Change references.  Document using attributes as modes.
19222 2005-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
19224         * tree-cfg.c (tree_duplicate_sese_region): Update profile.
19225         * tree-optimize.c (init_tree_optimization_passes) Swap
19226         pass_ch and pass_profile.
19227         * tree-ssa-loop-ch.c (copy_loop_headers): Do not update profile
19228         here.  Remove rewrite_into_loop_closed_ssa call.
19230 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
19232         * config/s390/s390.c: (s390_const_double_ok_for_constraint_p): New
19233         function.
19234         (legitimate_reload_constant_p): Add check for const double zero.
19235         * config/s390/s390.md: Add comment for constraint letter 'G'.
19236         ("*movdf_64", "*movdf_31", "movsf"): Add constraint and proper
19237         attributes for new case.
19238         * config/s390/s390.h: (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Define it as
19239         s390_const_double_ok_for_constraint_p.
19240         * config/s390/s390-protos.h (s390_const_double_ok_for_constraint_p):
19241         Add prototype.
19243 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
19245         PR tree-optimization/21170
19246         * tree-ssa-dom.c, tree-ssa-threadupdate.c: Replace
19247         rewrite_ssa_into_ssa in comments with update_ssa.
19249 2005-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
19251         * tree-ssa-loop-im.c: Include hashtab.h.
19252         (struct mem_ref_loc): New.
19253         (struct mem_ref): Describe the set of references with the same
19254         shape.
19255         (max_stmt_uid, get_stmt_uid, record_mem_ref, free_mem_refs,
19256         maybe_queue_var, fem_single_reachable_address,
19257         for_each_memref, single_reachable_address,
19258         is_call_clobbered_ref, determine_lsm_reg): Removed.
19259         (record_mem_ref_loc, free_mem_ref_locs, determine_lsm_ref,
19260         hoist_memory_reference, memref_hash, memref_eq, memref_del,
19261         gather_mem_refs_stmt, gather_mem_refs, find_more_ref_vops):
19262         New functions.
19263         (rewrite_mem_refs, schedule_sm): Use mem_ref_loc list.
19264         (determine_lsm_loop): Rewritten.
19265         (determine_lsm): Do not set stmt uids.
19267 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
19269         * config/s390/s390.md: Add comment lines for 'f' and 't' constraint
19270         letters.
19272 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
19274         * config/s390/s390.md: ("anddi3","andsi3","andhi3","andqi3"): Merge.
19275         ("iordi3", "iorsi3", "iorhi3", "iorqi3"): Merge.
19276         ("xordi3", "xorsi3", "xorhi3", "xorqi3"): Merge.
19278 2005-05-10  Jeff Law  <law@redhat.com>
19280         * tree-ssa-dom.c (dom_opt_finalize_block): Do not call
19281         thread_across_edge for any abnormal edges.
19283 2005-05-10  Richard Henderson  <rth@redhat.com>
19285         * config/ia64/ia64.c (ia64_expand_atomic_op): New.
19286         * config/ia64/ia64-protos.h: Declare it.
19287         * config/ia64/sync.md (I124MODE, FETCHOP, fetchop_name): New.
19288         (sync_add<I48MODE>, sync_old_add<I48MODE>): Remove.
19289         (sync_<FETCHOP><IMODE>, sync_nand<IMODE>): New.
19290         (sync_old_<FETCHOP><IMODE>, sync_old_nand<IMODE>): New.
19291         (sync_new_<FETCHOP><IMODE>, sync_new_nand<IMODE>): New.
19292         (cmpxchg_rel_<I124MODE>): Split from cmpxchg_acq_<IMODE>.  Zero
19293         extend result; use release semantics.
19294         (cmpxchg_rel_di): Rename from cmpxchg_acq_<IMODE>; use release.
19295         (sync_val_compare_and_swap_<IMODE>): Update to match.
19297 2005-05-10  Richard Henderson  <rth@redhat.com>
19299         * optabs.c (expand_compare_and_swap_loop): Don't clobber old value
19300         before comparing it for success.
19302 2005-05-10  Richard Henderson  <rth@redhat.com>
19304         * config/ia64/sync.md (sync_add<I48MODE>): Fix arguments for
19305         no return value pattern.
19307 2005-05-10  Grigory Zagorodnev  <grigory.zagorodnev@intel.com>
19308             H.J. Lu  <hongjiu.lu@intel.com>
19310         * libgcov.c (create_file_directory): New function. Create
19311         directory for the given file name.
19312         (gcov_max_filename): New static var. Keeps size of the longest
19313         file name.
19314         (gcov_exit): Always try to create directory for output
19315         file. Relocate each filename basing on environment vars.
19316         (__gcov_init): Remember the longest file name.
19317         * tsystem.h: include filenames.h to get IS_DIR_SEPARATOR
19318         * doc/gcov.texi (Cross-profiling): New node documenting
19319         cross-profiling management.
19320         * doc/invoke.texi (-fprofile-arcs): Add xref to cross-profiling.
19322 2005-05-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
19324         * config/sparc/sparc.c (mem_min_alignment): Do not rely
19325         on MEM_ALIGN if TARGET_UNALIGNED_DOUBLES.
19327 2005-05-10  Bob Wilson  <bob.wilson@acm.org>
19329         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Rearrange special
19330         case code to avoid one move instruction.
19331         (__umodsi3, __modsi3): Merge duplicated code sequences.
19333 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
19335         * config/mips/24k.md, config/sh/divtab.c, config/sh/sh.c,
19336         config/sh/sh.md, config/sh/superh.h: Fix comment typos.
19337         * doc/invoke.texi: Fix typos.
19339         * tree-data-ref.c (analyze_array_indexes, analyze_array,
19340         init_data_ref, access_functions_are_affine_or_constant_p,
19341         free_data_refs): Use VEC instead of VARRAY.
19342         * tree-data-ref.h (data_reference): Change the type of
19343         access_fns to VEC(tree,gc)*.
19344         (DR_ACCESS_FN, DR_NUM_DIMENSIONS): Use VEC instead of VARRAY.
19346 2005-05-10  Gabor Loki <loki@gcc.gnu.org>
19348         PR c/17913
19349         * c-typeck.c (build_conditional_expr): Remove reducing cond_expr.
19350         * fold-const.c (fold): Expand the condition of reducing cond_expr.
19351         (contains_label_1, contains_label_p): New functions for checking
19352         labels in a sub-tree.
19354 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
19356         PR c/21342
19357         * c-decl.c (pushdecl): When there is a declaration in the current
19358         scope and the declarations are external linkage, check for
19359         compatibility with the type in the external scope and update the
19360         type in the external scope with the composite type information.
19361         Do not form a composite type of the new type and the visible type
19362         if they are incompatible.
19364 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
19366         * crtstuff.c: Revert part of 2005-05-08 Change.
19367         (IN_LIBGCC2): Define.
19369 2005-05-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
19371         * config/sparc/sparc.c (fp_sethi_p): Test !SPARC_SIMM13_P and
19372         remove redundant test.
19373         (fp_mov_p): Accept 0.
19374         (fp_high_losum_p): Remove redundant test.
19375         * config/sparc/predicates.md (const_high_operand): Explicitly test
19376         (not small_int_operand).
19377         (fp_const_high_losum_operand): New.
19378         * config/sparc/sparc.md (movsi_insn): Do not emit 'clr'.  Reorder.
19379         (movdi_insn_sp32_v9): Use canonical predicates.
19380         (movdi_insn_sp32): Test !TARGET_V9 instead of !TARGET_ARCH64.
19381         (movdi_insn_sp64_novis): Delete.
19382         (movdi_insn_sp64_vis): Rename into movdi_insn_sp64.
19383         (movsf_insn_novis): Delete.
19384         (movsf_insn_vis): Rename into movsf_insn.
19385         (movsf_no_f_insn): Rename into movsf_insn_no_fpu.
19386         (movsf_lo_sum): Use fp_const_high_losum_operand.
19387         (movsf_high): Likewise.
19388         (movsf_high_losum splitter): Likewise.
19389         (mov<V32:mode> expander): Use register_or_zero_operand.
19390         (mov<V64:mode> expander): Likewise.
19391         (movdf_insn_sp32): Use register_or_zero_operand.
19392         (movdf_no_e_insn_sp32): Use register_or_zero_operand.
19393         Rename into movdf_insn_sp32_no_fpu.
19394         (movdf_no_e_insn_v9_sp32): Use register_or_zero_operand.
19395         Rename into movdf_insn_sp32_v9_no_fpu.
19396         (movdf_insn_v9only_novis): Delete.
19397         (movdf_insn_v9only_vis): Rename into movdf_insn_sp32_v9.
19398         (movdf_insn_sp64_novis): Delete.
19399         (movdf_insn_sp64_vis): Rename into movdf_insn_sp64.
19400         (movdf_no_e_insn_sp64): Use register_or_zero_operand.
19401         Rename into movdf_insn_sp64_no_fpu.
19402         (movtf expander): Use register_or_zero_operand.
19403         (movtf_insn_sp32): Delete.
19404         (movtf_insn_vis_sp32): Use register_or_zero_operand.
19405         Rename into movtf_insn_sp32.
19406         (movtf_no_e_insn_sp32): Use register_or_zero_operand.
19407         Rename into movtf_insn_sp32_no_fpu.
19408         (movtf_insn_hq_sp64): Delete.
19409         (movtf_insn_hq_vis_sp64): Use register_or_zero_operand.
19410         Rename into movtf_insn_sp64_hq.
19411         (movtf_insn_sp64): Delete.
19412         (movtf_insn_vis_sp64): Use register_or_zero_operand.
19413         Rename into movtf_insn_sp64.
19414         (movtf_no_e_insn_sp64): Use register_or_zero_operand.
19415         Rename into movtf_insn_sp64_no_fpu.
19417 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
19419         * config/stormy16/stormy16.c (xstormy16_emit_cbranch): Use
19420         gcc_assert and gcc_unreachable as appropriate.
19421         (xstormy16_split_cbranch, xstormy16_output_cbranch_hi,
19422         xstormy16_output_cbranch_si, xstormy16_split_move,
19423         xstormy16_initial_elimination_offset,
19424         xstormy16_encode_section_info, xstormy16_print_operand_address,
19425         xstormy16_expand_call, xstormy16_expand_arith,
19426         xstormy16_output_shift, xstormy16_init_builtins): Likewise.
19428 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
19430         * tree-outof-ssa.c (_elim_graph): Change the type of nodes and
19431         const_copies to VEC(tree,heap)*.
19432         (new_elim_graph, delete_elim_graph, elim_graph_size,
19433         elim_graph_add_node, eliminate_build, eliminate_phi): Use VEC
19434         instead of VARRAY.
19436 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
19438         PR other/21052
19439         * doc/extend.texi (Type Attributes): Correct example syntax.
19441 2005-05-09  Joseph S. Myers  <joseph@codesourcery.com>
19443         PR c/21160
19444         * doc/invoke.texi (-Wuninitialized): Update documentation.
19446 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
19448         * arm.c (const_ok_for_arm): Use a faster algorithm.
19450 2005-05-09  David Edelsohn  <edelsohn@gnu.org>
19452         PR target/21477
19453         * config/rs6000/rs6000.md (add_op2): New.
19454         (add<mode>3): Use it.
19456 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
19458         * arm.c (arm_gen_constant): Add new heuristic for generating
19459         constant integers that can be expressed as the difference of two
19460         valid immediates.
19462 2005-05-09  Roger Sayle  <roger@eyesopen.com>
19464         * c-tree.h (parser_build_unary_op): New prototype.
19465         * c-typeck.c (parser_build_unary_op): New function to construct
19466         a unary operation in the C parser.
19467         * c-parser.c (c_parser_unary_expression): Use the new function
19468         parser_build_unary_op when appropriate.
19470 2005-05-09  Mark Mitchell  <mark@codesourcery.com>
19472         PR 18655
19473         * dwarf2out.c (output_call_frame_info): Use DWARF2_FRAME_REG_OUT
19474         before outputting DWARF_FRAME_RETURN_COLUMN.
19476 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19478         * config/s390/s390.c: (s390_branch_condition_mask,
19479         s390_branch_condition_mnemonic, s390_extra_constraint_str,
19480         s390_const_ok_for_constraint_p, s390_expand_plus_operand,
19481         legitimize_pic_address, s390_emit_tls_call_insn,
19482         legitimize_tls_address, legitimize_tls_address,
19483         s390_expand_addcc, print_shift_count_operand, print_operand,
19484         addr_generation_dependency_p, annotate_constant_pool_refs,
19485         s390_split_branches, find_constant_pool_ref,
19486         replace_constant_pool_ref, s390_add_constant, s390_find_constant,
19487         s390_find_execute, s390_mainpool_start, s390_chunkify_start,
19488         s390_output_pool_entry, s390_function_value,
19489         s390_call_saved_register_used, s390_emit_call): Replace
19490         conditional aborts by gcc_assert and unconditional by gcc_unreachable.
19491         (s390_select_ccmode, s390_match_ccmode_set, s390_extract_part,
19492         s390_cannot_force_const_mem, s390_output_dwarf_dtprel,
19493         get_some_local_dynamic_name, s390_function_arg_size,
19494         s390_function_arg_advance, s390_function_arg,
19495         s390_expand_builtin, s390_gen_rtx_const_DI): Replace abort in
19496         default case by gcc_unreachable.
19497         * config/s390/s390.md: ("*cjump_31", "*icjump_31", "*jump31"): Replace
19498         conditional abort by gcc_assert.
19499         ("doloop_si31"): Replace abort in last else by gcc_unreachable.
19500         ("main_pool", "pool"): Replace unconditional abort by gcc_unreachable.
19502 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19504         * config/s390/s390.c: (s390_decompose_address,
19505         tls_symbolic_operand, legitimate_pic_operand_p,
19506         legitimate_constant_p, legitimate_reload_constant_p,
19507         s390_expand_plus_operand, legitimate_address_p,
19508         legitimate_la_operand_p, ): Remove 'register' from signature.
19509         (symbolic_reference_mentioned_p,
19510         tls_symbolic_reference_mentioned_p): Remove 'register' from local
19511         variable declarations.
19512         (legitimize_address): Remove 'register' from
19513         signature and local variable declarations.
19515 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19517         * config/s390/s390-protos.h: (s390_match_ccmode,
19518         s390_match_ccmode_set, reg_used_in_mem_p,
19519         symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
19520         legitimate_la_operand_p, preferred_la_operand_p,
19521         s390_short_displacement, addr_generation_dependency_p,
19522         legitimate_reload_constant_p, legitimate_address_p): Change return type
19523         into 'bool'.
19524         (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'.
19525         * config/s390/s390.c: (s390_match_ccmode,
19526         symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
19527         legitimate_reload_constant_p): Change return type into 'bool'.
19528         (preferred_la_operand_p,legitimate_la_operand_p, legitimate_address_p):
19529         Likewise.  Additionally adapted comment.
19530         (s390_extra_constraint_p): Change Comment to reflect 'int' return type.
19531         (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'.
19532         (s390_decompose_address): Change the type of the internal flags
19533         "pointer", "base_ptr", "indx_ptr", and the return value into 'bool'.
19534         (struct s390_address): Change type of "pointer" into bool.
19535         * config/s390/s390.md: ("*tmdi_reg", "*tmsi_reg", "tm<mode>_full"):
19536         Adapt calls for 's390_tm_ccmode' to the new signature.
19538 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19540         * config/s390/s390.c: (s390_match_ccmode_set,
19541         s390_branch_condition_mnemonic, s390_short_displacement,
19542         s390_decompose_address, get_thread_pointer, legitimize_tls_address,
19543         print_shift_count_operand, get_some_local_dynamic_name,
19544         get_some_local_dynamic_name_1, reg_used_in_mem_p,
19545         addr_generation_dependency_p, s390_split_branches,
19546         annotate_constant_pool_refs, find_constant_pool_ref,
19547         replace_constant_pool_ref, find_ltrel_base, replace_ltrel_base,
19548         s390_optimize_prologue, find_unused_clobbered_reg, s390_frame_area,
19549         s390_register_info, s390_frame_info, s390_init_frame_layout,
19550         s390_update_frame_layout, save_fpr, restore_fpr, save_gprs,
19551         restore_gprs, s390_function_arg_size, s390_function_arg_float,
19552         s390_init_machine_status, s390_assemble_integer, s390_handle_option,
19553         s390_encode_section_info, s390_cannot_force_const_mem,
19554         s390_delegitimize_address, s390_return_in_memory, s390_init_builtins,
19555         s390_expand_builtin, s390_output_mi_thunk, s390_safe_attr_type,
19556         s390_adjust_priority, s390_issue_rate,
19557         s390_first_cycle_multipass_dfa_lookahead, s390_cannot_copy_insn_p,
19558         s390_rtx_costs, s390_address_cost, s390_reorg, s390_valid_pointer_mode,
19559         s390_build_builtin_va_list, s390_gimplify_va_arg,
19560         s390_function_ok_for_sibcall, s390_call_saved_register_used,
19561         s390_pass_by_reference, s390_fixed_condition_code_regs,
19562         s390_cc_modes_compatible s390_mainpool_start,, s390_mainpool_finish,
19563         s390_mainpool_cancel, s390_chunkify_start, s390_chunkify_finish,
19564         s390_chunkify_cancel, s390_start_pool, s390_end_pool,
19565         s390_add_pool_insn, s390_find_pool, s390_add_constant,
19566         s390_find_constant, s390_add_execute, s390_find_execute,
19567         s390_execute_label, s390_execute_target, s390_dump_pool,
19568         s390_dump_execute, s390_alloc_pool, s390_free_pool): Remove prototypes.
19569         Move target macro definitions to the end of the file.  Move several
19570         functions within the file to assure correct compiling.
19572 2005-05-09  Steven Bosscher  <stevenb@suse.de>
19574         * calls.c (purge_reg_equiv_notes): Remove, fold into...
19575         (fixup_tail_calls): ...here.  Only look at insns between the
19576         start of the function and the FUNCTION_BEG insn note.
19578         * gcse.c (one_cprop_pass): Fix typos in dumps.
19580         * tree-ssa-operands.h (FOR_EACH_PHI_ARG): Fix typos.
19582 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19584         * config/s390/s390.h: Move xxx_REGNUM definitions to s390.md.
19585         * config/s390/s390.md: ("SIBCALL_REGNUM", "BASE_REGNUM",
19586         "RETURN_REGNUM", "CC_REGNUM", "TP_REGNUM"): New constants.
19587         Replace every occurrence of '(reg:<MODE> 33)' by '(reg:<MODE>
19588         CC_REGNUM)'.
19589         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Replace
19590         '(reg:<MODE> 36)' by '(reg:<MODE> TP_REGNUM)'.
19591         ("*sibcall_br", "*sibcall_value_br"): Replace '(reg:DI 1)' by '(reg:DI
19592         REG_SC)'.
19594 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19596         * config/s390/s390.md: ("gf") New mode attribute.
19597         ("fixuns_truncdfdi2", "fixuns_truncdfsi2", "fixuns_truncsfdi2",
19598         "fixuns_truncsfsi2"): Merge.
19599         ("fix_truncdfdi2", "fix_truncsfdi2"): Merge.
19600         ("fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee", "fix_truncsfdi2_ieee",
19601         "fix_truncsfsi2_ieee"): Merge.
19603 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19605         * config/s390/s390.md: ("FPR") New mode macro.
19606         ("de", "dee"): New mode attributes.
19607         ("cmpdf", "cmpsf"): Merge.
19608         ("*cmpdf_ccs_0", "*cmpsf_ccs_0"): Merge.
19609         ("*cmpdf_ccs_0_ibm", "*cmpdf_ccs_0_ibm"): Merge.
19610         ("*cmpdf_ccs", "*cmpsf_ccs"): Merge.
19611         ("*cmpdf_ccs_ibm", "*cmpsf_ccs_ibm"): Merge.
19612         ("floatdidf2", "floatdisf2"): Merge.
19613         ("adddf3", "addsf3"): Merge.
19614         ("*adddf3", "*addsf3"): Merge.
19615         ("*adddf3_cc", "*addsf3_cc"): Merge.
19616         ("*adddf3_cconly", "*addsf3_cconly"): Merge.
19617         ("*adddf3_ibm", "*addsf3_ibm"): Merge.
19618         ("subdf3", "subsf3"): Merge.
19619         ("*subdf3", "*subsf3"): Merge.
19620         ("*subdf3_cc", "*subsf3_cc"): Merge.
19621         ("*subdf3_cconly", "*subsf3_cconly"): Merge.
19622         ("*subdf3_ibm", "*subsf3_ibm"): Merge.
19623         ("muldf3", "mulsf3"): Merge.
19624         ("*muldf3", "*mulsf3" "): Merge.
19625         ("*muldf3_ibm", "*mulsf3_ibm"): Merge.
19626         ("*fmadddf", "*fmaddsf"): Merge.
19627         ("*fmsubdf", "*fmsubsf"): Merge.
19628         ("divdf3", "divsf3"): Merge.
19629         ("*divdf3", "*divsf3"): Merge.
19630         ("*divdf3_ibm", "*divsf3_ibm"): Merge.
19631         ("negdf2", "negsf2"): Merge.
19632         ("*negdf2_cc", "*negsf2_cc"): Merge.
19633         ("*negdf2_cconly", "*negsf2_cconly"): Merge.
19634         ("*negdf2", "*negsf2"): Merge.
19635         ("*negdf2_ibm", "*negsf2_ibm"): Merge.
19636         ("absdf2", "abssf2"): Merge.
19637         ("*absdf2_cc", "*abssf2_cc"): Merge.
19638         ("*absdf2_cconly", "*abssf2_cconly"): Merge.
19639         ("*absdf2", "*abssf2"): Merge.
19640         ("*absdf2_ibm", "*abssf2_ibm"): Merge.
19641         ("*negabsdf2_cc", "*negabssf2_cc"): Merge.
19642         ("*negabsdf2_cconly", "*negabssf2_cconly"): Merge.
19643         ("*negabsdf2", "*negabssf2"): Merge.
19644         ("sqrtdf2", "sqrtsf2"): Merge.
19646 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19648         * config/s390/s390.c: (s390_adjust_priority): Adapt to changed
19649         attribute names.
19650         * config/s390/2084.md: ("x_fsimpd", "x_fsimps", "x_fdivd", "x_fdivs",
19651         "x_floadd", "x_floads", "x_fstored", "x_fstores"): Rename to
19652         ("x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
19653         "x_floadsf", "x_fstoredf", "x_fstoresf") and replace 'type'
19654         attribute names.
19655         * config/s390/s390.md: ("type"): Rename "fsimpd, fsimps, floadd, floads,
19656         fstored, fstores, fmuld, fmuls, fdivd, fdivs, fsqrtd, fsqrts" to
19657         "fsimpdf, fsimpsf, floaddf, floadsf, fstoredf, fstoresf, fmuldf,
19658         fmulsf, fdivdf, fdivsf, fsqrtdf, fsqrtsf".
19659         ("*cmpdf_ccs_0", "*cmpdf_css_0_ibm", "*cmpdf_ccs",
19660         "*cmpdf_ccs_ibm", "*cmpsf_ccs_0", "*cmpsf_css_0_ibm",
19661         "*cmpsf_ccs", "*cmpsf_ccs_ibm", "*movdi_64", "*movdi_31",
19662         "*movsi_zarch", "*movsi_esa", "*movdf_64", "*movdf_31", "movsf",
19663         "*muldf3", "*muldf3_ibm", "*fmadddf", "*fmsubdf", "*mulsf3",
19664         "mulsf3_ibm", "*fmaddsf", "fmsubsf", "*divdf3", "*divdf3_ibm",
19665         "*negdf2_cc", "*negdf2_cconly", "*negdf2", "*negdf2_ibm",
19666         "*negsf2_cc", "*negsf2_cconly", "*negsf2", "*absdf2_cc",
19667         "*absdf2_cconly", "*absdf2", "*absdf2_ibm", "*abssf2_cc",
19668         "*abssf2_cconly", "*abssf2", "*abssf2_ibm", "*negabsdf2_cc",
19669         "*negabsdf2_cconly", "*negabsdf2", "*negabssf2_cc",
19670         "*negabssf2_cconly", "*negabssf2", "sqrtdf2", "sqrtsf2"): Rename
19671         'type' value.
19672         ("*divsf3"): Additionally rename second pattern to
19673         "*divsf3_ibm".
19674         ("truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
19675         "*adddf3", "*adddf3_cc", "*adddf3_cconly", "*adddf3_ibm",
19676         "*addsf3", "*addsf3_cc", "*addsf3_cconly", "*subdf3",
19677         "subdf3_cc", "*subdf3_cconly", "*subdf3_ibm", "*subsf3",
19678         "subsf3_cc", "*subsf3_cconly", "*subsf3_ibm"): Merge identical
19679         'type values' and rename 'type' value.
19680         ("*addsf3"): Additionally rename second pattern to
19681         "*addsf3_ibm".
19683 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19685         * config/s390/s390.md: ("SHIFT"): New mode macro.
19686         ("lr", "shift"): New mode attributes.
19687         ("ashldi3", "lshrdi3"): Merge.
19688         ("*ashldi3_31", "*lshrdi3"_31): Merge.
19689         ("*ashldi3_64", "*lshrdi3"_64): Merge.
19690         ("ashlsi3", "lshrsi3"): Merge.
19692 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19694         * config/s390/s390.md: ("DSI", "SCOND"): New mode
19695         macros.
19696         ("E", "g"): New mode attributes.
19697         ("*adddi3_alc_cc", "*addsi3_alc_cc"): Merge.
19698         ("*adddi3_alc", "*addsi3_alc"): Merge.
19699         ("*subdi3_slb_cc", "*subsi3_slb_cc"): Merge.
19700         ("*subdi3_slb", "*subsi3_slb"): Merge.
19701         ("adddicc", "addsicc"): Merge.
19702         ("*sconddi", "*scondsi"): Merge.
19703         ("*sconddi_neg", "*scondsi_neg"): Merge.
19704         ("sltu", "sgtu", "sleu", "sgeu"): Merge.
19705         ("negdi2", "negsi2"): Extract expander pattern from
19706         "negsi2" and merge with "negdi2".
19707         ("*negdi2"): Merge with instruction pattern of "negsi2".
19708         ("*negdi2_cc", "*negsi2_cc"): Merge.
19709         ("*negdi2_cconly", "*negsi2_cconly"): Merge.
19710         ("rotldi3", "rotlsi3"): Merge.
19712 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19714         * config/s390/s390.md: ("hc"): New mode attribute.
19715         ("extendhidi2", "extendqidi2"): Merge.
19716         ("*extendhidi2", "*extendqidi2"): Merge.
19717         ("extendhisi2", "extendqisi2"): Merge.
19718         ("zero_extendhidi2", "zero_extendqidi2"): Merge.
19719         ("*zero_extendhidi2", "*zero_extendqidi2"): Merge.
19720         Merged 2 define_split.
19721         ("*zero_extendhisi2", "*zero_extendqisi2"): Merge.
19722         ("*zero_extendhisi2_64", "*zero_extendqisi2_64"): Merge.
19724 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19726         * config/s390/s390.md: ("COMPARE"): New mode macro.
19727         ("beq", "bne", "bgt", "bgtu", "blt", "bltu", "bge", "bgeu",
19728         "ble", "bleu", "bunordered", "bordered", "buneq", "bunlt",
19729         "bungt", "bunle", "bunge", "bltgt"): Merge.
19731 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19733         * config/s390/s390.md: ("INT"): New mode macro.
19734         ("one_cmpldi2", "one_cmplsi2", "one_cmplhi2", "one_cmplqi2"):
19735         Merge.
19737 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19739         * config/s390/s390.md: ("GPR", "P"): New mode macros.
19740         ("cmpdi", "cmpsi"): Merge.
19741         ("strlendi", "strlensi"): Merge.
19742         ("*strlendi", "*strlensi"): Merge.
19743         ("movmemdi", "movmemsi"): Merge.
19744         ("clrmemdi", "clrmemsi"): Merge.
19746 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19748         * config/s390/s390.md: ("HQI"): New mode macro.
19749         ("icm_lo", "icm_hi", "max_uint"): New mode attributes.
19750         ("*tmhi_full", "*tmqi_full"): Merge.
19751         ("*tsthiCCT", "*tstqiCCT"): Merge.
19752         ("*tsthi", "*tstqi"): Merge.
19753         ("*tsthi_cconly", "tstqi_cconly"): Merge.
19754         ("*sethighhisi", "*sethighqisi"): Merge.
19756 2005-05-09  Kazu Hirata  <kazu@cs.umass.edu>
19758         * crtstuff.c, integrate.h, tree-scalar-evolution.h,
19759         config/alpha/unicosmk.h, config/arc/arc.md,
19760         config/arm/bpabi.h, config/arm/coff.h, config/arm/elf.h,
19761         config/arm/ieee754-df.S, config/arm/ieee754-sf.S,
19762         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
19763         config/arm/semi.h, config/arm/uclinux-elf.h,
19764         config/arm/wince-pe.h, config/fr30/fr30.c,
19765         config/rs6000/altivec.h: Update copyright.
19767 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
19769         * config/pdp11/pdp11.c (pdp11_output_function_prologue): Use
19770         gcc_assert and gcc_unreachable as appropriate.
19771         (pdp11_output_function_epilogue, output_move_double,
19772         output_move_quad, print_operand_address, output_jump,
19773         output_addr_const_pdp11): Likewise.
19774         * config/pdp11/pdp11.h (FUNCTION_PROFILER,
19775         ASM_OUTPUT_ALIGN): Likewise.
19776         * config/pdp11/pdp11.md: Likewise.
19777         (extendhisi2, subhi3, subqi3): Likewise.
19779 2005-05-09  David Edelsohn  <edelsohn@gnu.org>
19781         PR middle-end/21237
19782         * dojump.c (do_jump, MINUS_EXPR): Build NE_EXPR and fall through
19783         to NE_EXPR case.
19785 2005-05-09  Kazu Hirata  <kazu@cs.umass.edu>
19787         * config/ia64/ia64.c: Fix a comment typo.
19789 2005-05-09  Richard Earnshaw  <rearnsha@arm.com>
19791         PR target/21397
19792         * arm.c (ARM_OPT_SET_CPU, ARM_OPT_SET_ARCH, ARM_OPT_SET_TUNE): Define.
19793         (arm_override_options): Use them instead of manifest constants.  Don't
19794         allow -march to override the -mtune setting.
19796 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
19798         * config/iq2000/iq2000.c (abort_with_insn): Use fancy_abort.
19799         (gen_int_relational): Use gcc_unreachable and gcc_assert as necessary.
19800         (function_arg_advance, function_arg, save_restore_insns,
19801         iq2000_expand_prologue, iq2000_output_conditional_branch,
19802         expand_one_builtin, print_operand):
19803         * config/iq2000/iq2000.md (tablejump): Likewise.
19805 2005-05-09  David Ung  <davidu@mips.com>
19807         * config/mips/mips.h (processor_type): Add names for the 24K.
19808         * config/mips/mips.c (mips_cpu_info_table): Add names for the 24K
19809         processor family.
19810         * config/mips/mips.md (cnv_mode): New attribute for recording the
19811         conversion types of float convert insns.
19812         (cpu): Add 24k and 24kx.
19813         (include): Include 24k.md file.
19814         (truncdfsf2, extendsfdf2, fix_truncdfsi2_insn, fix_truncdfsi2_macro)
19815         (fix_truncdfdi2, fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2)
19816         (floatdisf2): Setup cnv_mode.
19817         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): Changed mode to SF and
19818         setup cnv_mode.
19819         * config/mips/24k.md: New file, contains 24k DFA pipeline
19820         description.
19822 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
19824         * config/sh/sh.c (print_operand_address): Use gcc_assert and
19825         gcc_unreachable as appropriate.
19826         (print_operand, prepare_move_operands, prepare_scc_operands,
19827         output_movedouble, output_branch, shift_insns_rtx, gen_shifty_op,
19828         gen_shl_and, shl_sext_kind, gen_datalabel_ref, dump_table,
19829         fixup_mova, gen_far_branch, sh_reorg, split_branches,
19830         final_prescan_insn, output_stack_adjust, sh_expand_epilogue,
19831         sh_set_return_address, sh_setup_incoming_varargs,
19832         initial_elimination_offset, sh_pch_valid_p, get_free_reg,
19833         sh_expand_builtin, sh_output_mi_thunk, extract_sfunc_addr,
19834         check_use_sfunc_addr): Likewise.
19835         * config/sh/netbsd-elf.h (FUNCTION_PROFILER): Likewise.
19836         * config/sh/sh.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
19837         * config/sh/symbian.c (sh_symbian_mark_dllexport,
19838         sh_symbian_mark_dllimport): Likewise.
19839         * config/sh/sh.md: Likewise.
19840         (movdicc, call_pop, call_value_pop, casesi_worker_1,
19841         casesi_worker_2, casesi_shift_media, casesi_load_media,
19842         return_media): Likewise.
19844 2005-05-08  Roger Sayle  <roger@eyesopen.com>
19846         PR inline-asm/8788
19847         * stmt.c (expand_asm_operands): Avoid calling force_reg on BLKmode
19848         operands.
19850 2005-05-08  Richard Henderson  <rth@redhat.com>
19852         * config/alpha/alpha.c (adjust_address): Fix typo last change.
19854 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
19856         * config/m68hc11/m68hc11.h (REG_VALID_P): A regno must be >= 0
19857         and -1 can happen in reg_renumber when no hard register is assigned.
19859 2005-05-08  Steven Bosscher  <stevenb@suse.de>
19860             Kazu Hirata  <kazu@cs.umass.edu>
19862         PR tree-optimization/14841, tree-optimization/15838
19863         * tree-ssa-ccp.c (fold_const_aggregate_ref): New.
19864         (evaluate_stmt): Call it.
19866 2005-05-08  Jakub Jelinek  <jakub@redhat.com>
19868         * config/ia64/ia64.c (ia64_override_options): Don't set
19869         ia64_flag_var_tracking and clear flag_var_tracking here...
19870         (ia64_file_start): ... but here.
19872 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
19874         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use gcc_assert
19875         and gcc_unreachable as appropriate.
19876         (expand_prologue, expand_epilogue, m68hc11_gen_lowpart,
19877         m68hc11_gen_highpart, print_operand, print_operand_address,
19878         m68hc11_expand_compare, m68hc11_expand_compare_and_branch,
19879         m68hc11_gen_movhi): Likewise.
19880         * config/m68hc11/m68hc11.h (HARD_X_REGNUM): Reword comment.
19881         * config/m68hc11/m68hc11.md: Reword comment.
19883 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
19885         PR target/21281
19886         * config/m68hc11/predicates.md (splitable_operand): An immediate is
19887         allowed.
19889 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
19891         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Do not allow
19892         the 68HC12 address indirect addressing mode as it is not supported by
19893         bset and bclr.
19894         * config/m68hc11/m68hc11-protos.h
19895         (m68hc11_valid_addressing_p): Declare.
19896         (m68hc11_add_mode): Declare.
19897         * config/m68hc11/m68hc11.c (m68hc11_valid_addressing_p): Rename from
19898         register_indirect_p and export it.
19899         (m68hc11_z_replacement): Use emit_insn_after when adding the save Z
19900         instruction so that it is part of the good BB.
19901         (m68hc11_gen_movhi): Fix invalid generation of indexed indirect
19902         addressing with movw.
19903         (m68hc11_gen_movqi): Use pula and pulb instead of lda and ldb for
19904         68HC12.
19905         * config/m68hc11/m68hc11.h (ADDR_STRICT, ADDR_INCDEC, ADDR_INDEXED,
19906         ADDR_OFFSET, ADDR_INDIRECT, ADDR__CONST): Moved from m68hc11.c.
19907         * config/m68hc11/m68hc11.md ("movhi_const0"): Use this pattern only
19908         for 68HC11.
19909         ("*movhi_68hc12"): Handle movhi_const0.
19910         ("*subhi3", "subqi3"): Use general_operand for operand 1.
19911         ("*subhi3_zext"): Likewise.
19913 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
19915         PR target/19051
19916         * config/m68hc11/m68hc11.md ("mulqi3"): Use general_operand for
19917         operand 1 and fix constraints.
19918         ("mulqihi3"): Use general_operand for operand 2.
19920 2005-05-08  Julian Brown  <julian@codesourcery.com>
19921             H.J. Lu  <hongjiu.lu@intel.com>
19922             Paul Brook  <paul@codesourcery.com>
19924         * configure.ac: Set ld_vers_major, ld_vers_minor and ld_vers_patch for
19925         GNU linker. Support linker version x.x.x.x.x. Require GNU linker
19926         20050308/2.16.0 or newer for comdat group.
19927         * configure: Regenerated.
19928         * config.in: Regenerated.
19929         * varasm.c (default_function_rodata_section): Put .rodata section in
19930         COMDAT group when necessary.
19931         (default_elf_asm_named_section): Rename HAVE_GAS_COMDAT_GROUP to
19932         HAVE_COMDAT_GROUP.
19933         (default_unique_section_1): Don't use .gnu.linkonce when COMDAT is
19934         available.
19936 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
19938         * tree-dfa.c (referenced_vars, add_referenced_var): Use VEC
19939         instead of VARRAY.
19940         * tree-flow.h (num_referenced_var, referenced_var): Likewise.
19941         * tree-into-ssa.c (mark_def_site_blocks): Likewise.
19942         * tree-ssa.c (init_tree_ssa, delete_tree_ssa): Likewise.
19943         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
19945 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
19947         PR target/16925
19948         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Handle split of
19949         64-bit constants on 64-bit hosts.
19950         (m68hc11_split_logical): Simplify.
19951         (m68hc11_split_move): Likewise.
19953 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
19954             Paolo Bonzini  <bonzini@gnu.org>
19956         * Makefile.in (cs-tconfig.h): Pass USED_FOR_TARGET to mkconfig.sh
19957         * aclocal.m4 (GCC_TARGET_TEMPLATE, AH_TEMPLATE): New.
19958         * configure.ac (enable_checking): Fix typos in runtime_checking.
19959         (ENABLE_RUNTIME_CHECKING): Mark as target template.
19960         (xm_file): Prepend auto-host.h
19961         (HAVE_GAS_HIDDEN, HAVE_LD_EH_FRAME_HDR): Mark as target template.
19962         * mkconfig.sh: Do not automatically define USED_FOR_TARGET in
19963         tconfig.h.
19964         * crtstuff.c: Do not include auto-host.h.
19965         (IN_LIBGCC2): Do not define.
19966         * gcov-io.h: Include tconfig.h, not auto-host.h.
19967         * libgcc2.c: Do not include auto-host.h.
19968         (abort): Do not undefine.
19969         * libgcov.c: Remove unneeded comment about config.h.
19970         * unwind-dw2-fde-glibc.c: Do not inlude auto-host.h.
19971         * config.in, configure: Regenerated.
19973 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
19974             Falk Hueffner  <falk@debian.org>
19976         * config/alpha/alpha.c (tls_symbolic_operand_1): Use gcc_assert
19977         and gcc_unreachable as appropriate.
19978         (get_aligned_mem, get_unaligned_address,
19979         alpha_emit_set_long_const, alpha_emit_conditional_branch,
19980         alpha_emit_setcc, alpha_emit_conditional_move,
19981         alpha_lookup_xfloating_lib_func, alpha_compute_xfloating_mode_arg,
19982         alpha_emit_xfloating_libcall, alpha_split_tfmode_pair,
19983         alpha_expand_unaligned_load, alpha_expand_block_move,
19984         alpha_expand_zap_mask, get_trap_mode_suffix,
19985         get_round_mode_suffix, get_some_local_dynamic_name,
19986         print_operand_address, function_arg, alpha_return_in_memory,
19987         function_value, alpha_expand_builtin,
19988         alpha_initial_elimination_offset, alpha_expand_epilogue,
19989         summarize_insn, alpha_handle_trap_shadows, alphaev5_insn_pipe,
19990         alphaev5_next_group, alpha_align_insns,
19991         unicosmk_initial_elimination_offset, unicosmk_unique_section,
19992         unicosmk_ssib_name): Likewise.
19993         * config/alpha/alpha.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
19994         * config/alpha/unicosmk.h (TRAMPOLINE_TEMPLATE,
19995         ASM_OUTPUT_ADDR_DIFF_ELT, ASM_OUTPUT_ADDR_DIFF_VEC): Likewise.
19996         * config/alpha/vms.h (INITIAL_ELIMINATION_OFFSET,
19997         ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
19998         * config/alpha/alpha.md (*divmodsi_internal_er,
19999         *divmoddi_internal_er, ashldi3, *insxl, sibcall, call_osf,
20000         call_nt, call_umk, call_vms, call_value, sibcall_value,
20001         call_value_osf, call_value_nt, call_value_vms, call_value_umk,
20002         *call_vms_1, *movmemdi_1, *clrmemdi_1, *call_value_vms_1): Likewise.
20003         * config/alpha/predicates.md (input_operand): Likewise.
20005 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
20007         * config/frv/frv.c (frv_default_flags_for_cpu): Use gcc_assert and
20008         gcc_unreachable, as appropriate.
20009         (frv_function_prologue, frv_alloc_temp_reg,
20010         frv_initial_elimination_offset, frv_expand_block_move,
20011         frv_expand_block_clear, frv_print_operand_jump_hint,
20012         frv_legitimize_tls_address, unspec_got_name, frv_emit_move,
20013         frv_emit_movsi, frv_split_cond_move, frv_split_minmax,
20014         frv_ifcvt_modify_insn, frv_ifcvt_modify_final,
20015         frv_adjust_field_align, frv_insn_unit, frv_cond_flags,
20016         frv_sort_insn_group, frv_reorder_packet, frv_matching_accg_mode,
20017         frv_in_small_data_p, frv_asm_out_constructor,
20018         frv_asm_out_destructor, frv_output_dwarf_dtprel): Likewise.
20019         * config/frv/frv.md (reload_incc_fp, *cond_exec_si_binary1,
20020         *cond_exec_si_binary2, *cond_exec_si_divide, *cond_exec_si_unary1,
20021         *cond_exec_sf_conv, *cond_exec_sf_add, call, sibcall, call_value,
20022         sibcall_value, casesi): Likewise.
20024         * config/mn10300/mn10300.c (print_operand): Use gcc_assert and
20025         gcc_unreachable as appropriate.
20026         (print_operand_address, mn10300_print_reg_list, expand_prologue,
20027         expand_epilogue, notice_update_cc, initial_offset,
20028         mn10300_address_cost_1): Likewise.
20029         * config/mn10300/mn10300.md: Likewise.
20030         (absdf2, abssf2, negdf2, negsf2): Likewise.
20032 2005-05-08  Richard Sandiford  <rsandifo@redhat.com>
20034         PR target/21416
20035         * config/mips/mips.c (mips_emit_compare): Don't reverse UNGE and UNGT
20036         comparisons.
20037         * config/mips/mips.md (swapped_fcond): New code macro and attribute.
20038         (sgt_<mode>, sge_<mode>): Generalize to all members of swapped_fcond,
20039         including sunge_<mode> and sungt_<mode>.
20041 2005-05-08  Richard Sandiford  <rsandifo@redhat.com>
20043         * integrate.h (get_hard_reg_initial_val): Change type of register
20044         parameter from int to unsigned int.
20045         (has_hard_reg_initial_val): Likewise.
20046         * integrate.c (get_hard_reg_initial_val): Likewise.
20047         (has_hard_reg_initial_val): Likewise.  Remove cast to unsigned int.
20049 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
20051         * except.c (eh_status): Change the type of ttype_data to
20052         VEC(tree,gc)*.
20053         (add_ttypes_entry, assign_filter_values,
20054         output_function_exception_table): Use VEC instead of VARRAY.
20056 2005-05-07  David Edelsohn  <edelsohn@gnu.org>
20058         * config/rs6000/rs6000.md (popcount<mode>2): Fix non-C90 constant.
20060 2005-05-07  Paul Brook  <paul@codesourcery.com>
20062         * Makefile.in: Fix dependencies.
20063         (GCOV_IO_H, VARRAY_H): Set.
20065 2005-05-07  Anthony Green  <green@redhat.com>
20067         PR bootstrap/21403
20068         * configure.ac (STMP_FIXPROTO): Fix [ ] consumption problem in
20069         x$STMP_FIXPROTO test.
20070         * configure: Rebuilt.
20072 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
20074         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define
20075         inappropriate feature test macros if flag_iso.
20077 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
20079         * config/ia64/hpux.h (NO_IMPLICIT_EXTERN_C): Define.
20081 2005-05-07  Hans-Peter Nilsson  <hp@axis.com>
20083         PR target/21441
20084         * config/cris/cris.md ("*movdi_insn", "*mov_sidesisf_biap")
20085         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
20086         Handle moved operand being in special register.
20087         ("smulsi3_highpart", "umulsi3_highpart"): Change .error into
20088         presumed working insn.
20089         (mover2side): Add FIXME.
20091 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
20093         * integrate.c (get_func_hard_reg_initial_val): Delete.
20094         (has_func_hard_reg_initial_val): Delete.
20095         (get_hard_reg_initial_val): Inline the old implementation of
20096         get_func_hard_reg_initial_val.  Use has_hard_reg_initial_val
20097         instead of has_func_hard_reg_initial_val to test for an existing
20098         pseudo.  Only create an rtx if a new initial value entry is needed.
20099         (has_hard_reg_initial_val): Scan the initial value list directly.
20100         Don't create an rtx.
20102 2005-05-07  David Edelsohn  <edelsohn@gnu.org>
20104         * config.gcc ({powerpc,rs6000}-ibm-aix*): Remove rs6000/aix.opt
20105         from extra_options.
20106         * config.in (HAVE_AS_POPCNTB): New.
20107         * configure.ac (HAVE_AS_MFCRF): Add .machine "pwr5" to AIX test.
20108         (HAVE_AS_POPCNTB): New.
20109         * configure: Regenerated.
20110         * config/rs6000/aix.h (TARGET_XL_COMPAT): Delete.
20111         * config/rs6000/rs6000.c (rs6000_override_options, power5): Add
20112         MASK_POPCNTB.  Uncomment rs6000_sched_restricted_insns_priority
20113         and rs6000_sched_costly_dep.
20114         * config/rs6000/rs6000.h (TARGET_POPCNTB): New.
20115         (TARGET_XL_COMPAT): Delete.
20116         * config/rs6000/rs6000.md (UNSPEC_POPCNTB): New.
20117         (popcount<mode>2): New.
20118         (popcntb<mode>2): New.
20119         * config/rs6000/rs6000.opt (mpopcntb): New.
20121         * opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask
20122         if variable name exists.
20124 2005-05-07  Matt Kraai  <kraai@ftbfs.org>
20126         * Makefile.in (c-gimplify.o): Depend on $(RTL_H) instead of rtl.h.
20128 2005-05-07  Richard Henderson  <rth@redhat.com>
20130         PR target/21412
20131         * config/rs6000/rs6000.c (rs6000_emit_move): Look for tls addresses
20132         with constant offsets.
20134 2005-05-07  Nathan Sidwell  <nathan@codesourcery.com>
20136         * config/v850/v850.c (print_operand): Use gcc_assert and
20137         gcc_unreachable, as appropriate.
20138         (print_operand_address, v850_handle_data_area_attribute,
20139         v850_encode_data_area, construct_restore_jr, construct_save_jarl,
20140         v850_insert_attributes, construct_prepare_instruction): Likewise.
20141         * config/v850/v850.h (INITIAL_ELIMINATION_OFFSET): Likewise.
20142         * config/v850/v850.md (movsicc, *sasf_1): Likewise.
20144 2005-05-07  Kazu Hirata  <kazu@cs.umass.edu>
20146         * tree-ssa-loop-ivcanon.c, config/i386/i386.c,
20147         config/rs6000/rs6000.h: Fix comment typos.
20149 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
20151         * doc/invoke.texi: Remove documentation for MIPS' -mint64 option.
20152         * config/mips/mips.c (TARGET_SCALAR_MODE_SUPPORTED_P): Delete.
20153         (mips_scalar_mode_supported_p): Delete.
20155 2005-05-06  Eric Christopher  <echristo@redhat.com>
20157         * config/mips/mips.opt: Remove -mint64 option.
20158         * config/mips/mips.c (override_options): Remove -mint64
20159         handling.
20160         * config/mips/mips.h (INT_TYPE_SIZE): Define to 32.
20161         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove
20162         64-bit integer handling.
20163         * doc/invoke.texi (Option Summary): Remove -mint64 for
20164         mips.
20166 2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>
20168         PR tree-optimization/19401
20169         * tree-flow.h (tree_unroll_loops_completely): Declaration changed.
20170         * tree-ssa-loop-ivcanon.c (enum unroll_level): New.
20171         (estimated_unrolled_size): New function.
20172         (try_unroll_loop_completely, canonicalize_loop_induction_variables,
20173         tree_unroll_loops_completely): Always unroll loops if the code size
20174         does not increase.
20175         * tree-ssa-loop.c (tree_complete_unroll): Indicate whether all
20176         loops should be unrolled completely.
20177         (gate_tree_complete_unroll): Run complete unrolling unconditionally.
20179 2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>
20181         PR rtl-optimization/21254
20182         * loop-iv.c (iv_number_of_iterations): Simplify infiniteness
20183         assumptions for loops that otherwise do not roll.
20184         (find_simple_exit): Prefer # of iterations that is guaranteed
20185         not to be infinite.
20186         * loop-unroll.c (decide_peel_once_rolling,
20187         decide_peel_completely): Check whether the loop is infinite.
20189 2005-05-06  Pat Haugen  <pthaugen@us.ibm.com>
20191         * config/rs6000/sysv4.opt: Fix typo.
20193 2005-05-06  Denis Vlasenko  <vda@port.imtp.ilyichevsk.odessa.ua>
20194             Jakub Jelinek  <jakub@redhat.com>
20196         PR target/21329
20197         * config/i386/i386.c (ix86_expand_movmem): Don't use rep; movsb
20198         for -Os if (movsl;)*(movsw;)?(movsb;)? sequence is shorter.
20199         Don't use rep; movs{l,q} if the repetition count is really small,
20200         instead use a sequence of movs{l,q} instructions.
20202 2005-05-06  Jeff Law  <law@redhat.com>
20204         PR tree-optimization/21380
20205         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
20206         thread through a block with no preds.
20208 2005-05-06  Kazu Hirata  <kazu@cs.umass.edu>
20210         * tree-ssa-operands.c (clobbered_v_may_defs, clobbered_vuses,
20211         ro_call_vuse, fini_ssa_operands, add_call_clobber_ops,
20212         add_call_read_ops): Use VEC instead of VARRAY.
20214 2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
20216         * config/mcore/mcore.c (mcore_print_operand_address): Use
20217         gcc_assert and gcc_unreachable as appropriate.
20218         (mcore_print_operand, mcore_gen_compare_reg, mcore_output_call,
20219         mcore_output_andn, output_inline_const, mcore_output_move,
20220         mcore_output_movedouble, mcore_expand_block_move,
20221         layout_mcore_frame, mcore_initial_elimination_offset,
20222         mcore_expand_prolog, mcore_mark_dllexport,
20223         mcore_mark_dllimport): Likewise.
20224         * config/mcore/mcore.h (switch_to_section): Likewise.
20225         * config/mcore/mcore.md: Likewise.
20227 2005-05-06  Aldy Hernandez  <aldyh@redhat.com>
20229         * config/rs6000/linux64.h: Remove MASK_PROFILE_KERNEL, and
20230         TARGET_PROFILE_KERNEL.
20232         * config/rs6000/rs6000.c (output_profile_hook): Add comment to
20233         TARGET_PROFILE_KERNEL use.
20235 2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
20237         * config/m32r/m32r.c (m32r_encode_section_info): Use gcc_assert
20238         and gcc_unreachable, as appropriate.
20239         (gen_compare, gen_split_move_double, m32r_setup_incoming_varargs,
20240         m32r_expand_prologue, m32r_output_function_epilogue,
20241         m32r_legitimize_pic_address, m32r_print_operand_address,
20242         emit_cond_move, m32r_function_symbol,
20243         m32r_output_block_move): Likewise.
20244         * config/m32r/m32r.h (INITIAL_ELIMINATION_OFFSET): Likewise.
20245         * config/m32r/m32r.md ( *movsi_insn, *zero_branch_insn,
20246         *rev_zero_branch_insn): Likewise.
20248 2005-05-06  Jakub Jelinek  <jakub@redhat.com>
20250         PR c++/20961
20251         * varasm.c (merge_weak): Remove NEWDECL from WEAK_DECLS chain
20252         if both NEWDECL and OLDDECL are already weak.
20254 2005-05-06  Richard Sandiford  <rsandifo@redhat.com>
20256         * config/rs6000/sysv4.h (EXTRA_SUBTARGET_SWITCHES): Delete.
20258 2005-05-05  J"orn Rennecke  <joern.rennecke@st.com>
20259             Kaz Kojima  <kkojima@gcc.gnu.org>
20261         * config/sh/sh.c (sh_builtin_saveregs): Use copy_to_mode_reg
20262         and plus_constant.
20264 2005-05-05  Aldy Hernandez  <aldyh@redhat.com>
20265             David Edelsohn  <edelsohn@gnu.org>
20267         * config.gcc: Add .opt magic for the rs6000 ports.
20269         * doc/invoke.texi: Document -mabi= option properly.  Document
20270         -misel and -mno-sel.  Document -mspe and -mno-spe.  Document
20271         -mvrsave and -mno-vrsave.  Document deprecation of -mspe= and
20272         -misel=.
20274         * config/rs6000/aix.h: Remove XL_COMPAT stuff.  Remove
20275         SUBTARGET_SWITCHES and SUBSUBTARGET_SWITCHES.  Define
20276         TARGET_XL_COMPAT.
20278         * config/rs6000/aix.opt: New.
20279         * config/rs6000/aix41.opt: New.
20280         * config/rs6000/aix64.opt: New.
20281         * config/rs6000/darwin.opt: New.
20282         * config/rs6000/linux64.opt: New.
20283         * config/rs6000/rs6000.opt: New.
20284         * config/rs6000/sysv4.opt: New.
20286         * config/rs6000/sysv4.h: Delete definitions of MASK_* and
20287         associated TARGET_*.  Remove SUBTARGET_OPTIONS,
20288         SUBTARGET_SWITCHES.
20289         Define TARGET_USES_SYSV4_OPT.
20290         * config/rs6000/aix41.h: Remove SUBSUBTARGET_SWITCHES.
20291         * config/rs6000/aix43.h: Remove SUBSUBTARGET_SWITCHES.  Define
20292         TARGET_USES_AIX64_OPT.
20293         * config/rs6000/aix51.h: Same.
20294         * config/rs6000/aix52.h: Same.
20295         * config/rs6000/darwin.h: Remove SUBTARGET_SWITCHES,
20296         MASK_MACHO_DYNAMIC_NO_PIC, TARGET_MACHO_DYNAMIC_NO_PIC.
20297         Use TARGET_ALTIVEC_VRSAVE instead of rs6000_altivec_vrsave.
20298         Define TARGET_DYNAMIC_NO_PIC as TARGET_MACHO_DYNAMIC_NO_PIC.
20299         * config/rs6000/linux64.h: Use
20300         rs6000_explicit_options.  Remove EXTRA_SUBTARGET_SWITCHES.
20302         * config/rs6000/rs6000.c: Remove definitions of
20303         rs6000_sched_restricted_insns_priority,
20304         rs6000_long_double_size_string, rs6000_altivec_vrsave,
20305         rs6000_altivec_vrsave_string, rs6000_isel, rs6000_spe,
20306         rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
20307         rs6000_abi_string, rs6000_warn_altivec_long, rs6000_longcall,
20308         rs6000_alignment_string.  Define rs6000_explicit_options.
20309         (rs6000_parse_abi_options): Remove.
20310         (rs6000_parse_alignment_option): Remove.
20311         (rs6000_parse_float_gprs_option): Remove.
20312         (rs6000_handle_option): New.  Define TARGET_HANDLE_OPTION.  Define
20313         TARGET_DEFAULT_TARGET_FLAGS.
20314         (rs6000_override_options): Revamp to use new .opt machinery.
20316         * config/rs6000/rs6000.h: Remove old MASK_* and TARGET_* in favor
20317         of new .opt machinery.  Remove target_flags.  Redefine
20318         TARGET_MFCRF and TARGET_POWERPC64.  Remove TARGET_SWITCHES,
20319         SUBTARGET_SWITCHES, TARGET_OPTIONS, SUBTARGET_OPTIONS,
20320         rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
20321         rs6000_altivec_vrsave_string, rs6000_altivec_vrsave,
20322         rs6000_longcall_switch, rs6000_default_long_calls,
20323         rs6000_sched_costly_dep_str, rs6000_sched_costly_dep,
20324         rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch, and
20325         TARGET_ALTIVEC_VRSAVE.
20327 2005-05-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
20329         * config.gcc (hppa1.1-*-rtems*): Remove.
20330         * config/pa/rtems.h: Remove.
20332 2005-05-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
20334         * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
20335         Exclude roe/603e multilib variants.
20337 2005-05-04  Denis Chertykov  <denisc@overta.ru>
20339         PR target/21284
20340         * config/avr/avr.c (avr_output_addr_vec_elt): Use special section
20341         for output.
20343 2005-05-05  Richard Sandiford  <rsandifo@redhat.com>
20345         * config.gcc (arm*-wince-pe*, arm-*-pe*, strongarm-*-pe): Add
20346         arm/pe.opt to $extra_options.
20347         * config/arm/arm.h (target_flags, target_fpu_name, target_fpe_name)
20348         (target_float_abi_name, target_float_switch, target_abi_name)
20349         (ARM_FLAG_APCS_FRAME, ARM_FLAG_POKE, ARM_FLAG_FPE, ARM_FLAG_APCS_STACK)
20350         (ARM_FLAG_APCS_FLOAT, ARM_FLAG_APCS_REENT, ARM_FLAG_BIG_END)
20351         (ARM_FLAG_INTERWORK, ARM_FLAG_LITTLE_WORDS, ARM_FLAG_NO_SCHED_PRO)
20352         (ARM_FLAG_ABORT_NORETURN, ARM_FLAG_SINGLE_PIC_BASE)
20353         (ARM_FLAG_LONG_CALLS, ARM_FLAG_THUMB, THUMB_FLAG_BACKTRACE)
20354         (THUMB_FLAG_LEAF_BACKTRACE, THUMB_FLAG_CALLEE_SUPER_INTERWORKING)
20355         (THUMB_FLAG_CALLER_SUPER_INTERWORKING, CIRRUS_FIX_INVALID_INSNS)
20356         (TARGET_APCS_FRAME, TARGET_POKE_FUNCTION_NAME, TARGET_FPE)
20357         (TARGET_APCS_STACK, TARGET_APCS_FLOAT, TARGET_APCS_REENT)
20358         (TARGET_BIG_END, TARGET_INTERWORK, TARGET_LITTLE_WORDS)
20359         (TARGET_NO_SCHED_PRO, TARGET_ABORT_NORETURN, TARGET_SINGLE_PIC_BASE)
20360         (TARGET_LONG_CALLS, TARGET_THUMB, TARGET_CALLER_INTERWORKING)
20361         (TARGET_CIRRUS_FIX_INVALID_INSNS, SUBTARGET_SWITCHES, TARGET_SWITCHES)
20362         (TARGET_OPTIONS, arm_cpu_select, arm_select,  structure_size_string)
20363         (arm_pic_register_string): Delete.
20364         (TARGET_BACKTRACE): Redefine using TARGET_TPCS_LEAF_FRAME and
20365         TARGET_TPCS_FRAME.
20366         (TARGET_DEFAULT, CONDITIONAL_REGISTER_USAGE): Update mask names.
20367         * config/arm/coff.h (TARGET_DEFAULT): Likewise.
20368         * config/arm/elf.h (TARGET_DEFAULT): Likewise.
20369         * config/arm/netbsd-elf.h (TARGET_DEFAULT): Likewise.
20370         * config/arm/netbsd.h (TARGET_DEFAULT): Likewise.
20371         * config/arm/semi.h (TARGET_DEFAULT): Likewise.
20372         * config/arm/uclinux-elf.h (TARGET_DEFAULT): Likewise.
20373         * config/arm/wince-pe.h (TARGET_DEFAULT): Likewise.
20374         * config/arm/pe.h (TARGET_DEFAULT): Likewise.
20375         (TARGET_FLAG_NOP_FUN, TARGET_NOP_FUN_DLLIMPORT): Delete.
20376         (SUBTARGET_SWITCHES): Delete.
20377         * config/arm/arm.c (target_float_switch): Delete.
20378         (arm_cpu_select): Moved from config/arm/arm.h.
20379         (target_fpu_name, target_fpe_name, target_float_abi_name)
20380         (target_abi_name, structure_size_string, arm_pic_register_string)
20381         (arm_select): Make static.
20382         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
20383         (arm_handle_option): New function.
20384         (arm_override_options): Update target_flags checks for new mask names.
20385         Remove target_float_switch code.
20386         (arm_expand_prologue, thumb_expand_prologue): Check
20387         !TARGET_SCHED_PROLOG instead of TARGET_NO_SCHED_PRO.
20388         * config/arm/arm.opt, config/arm/pe.opt: New files.
20390 2005-05-05  Nathan Sidwell  <nathan@codesourcery.com>
20392         * config/arc/arc.c (get_arc_condition_code): Use gcc_assert &
20393         gcc_unreachable as appropriate.
20394         (arc_double_limm_p, arc_setup_incoming_varargs,
20395         arc_compute_function_type, arc_output_function_prologue,
20396         arc_output_function_epilogue, arc_eligible_for_epilogue_delay,
20397         output_shift, arc_print_operand, arc_print_operand_address,
20398         arc_final_prescan_insn): Likewise.
20399         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
20401 2005-05-04  Geoffrey Keating  <geoffk@apple.com>
20403         * config/rs6000/rs6000.md (P): Use TARGET_*BIT rather than
20404         comparing Pmode.
20405         (SDI): New.
20406         (cmp): Delete.
20407         (wd): New.
20408         (add<mode>3, add<mode>3_internal1, add<mode>3_internal2,
20409         add<mode>3_internal3, one_cmpl<mode>2, sub<mode>3, neg<mode>2,
20410         clz<mode>2, ctz<mode>2, ffs<mode>2): New.
20411         (addsi3, addsi3_internal1, addsi3_internal2, addsi3_internal3,
20412         (one_cmplsi2, subsi3, negsi2, clzsi2, ctzsi2, ffssi2): Remove.
20413         (adddi3, adddi3_internal1, adddi3_internal2, adddi3_internal3,
20414         (one_cmpldi2, subdi3, negdi2, clzdi2, ctzdi2, ffsdi2): Remove.
20415         (sync_compare_and_swap<mode>): Use <wd> rather than <cmp>.
20417 2005-05-05  Paul Brook  <paul@codesourcery.com>
20419         * Makefile.in: Replace dependencies on basic-block.h, c-pragma.h,
20420         cfgloop.h, diagnostic.h, insn-attr.h, langhooks-def.h, params.h,
20421         regs.h, system.h, tree-dump.h, tree-gimple.h, tree-scalar-evolution.h
20422         and tree-data-ref.h with *_H variables.
20424 2005-05-05  Kelley Cook  <kcook@gcc.gnu.org>
20426         * config/m32r/xm-m32r.h, config/m32r/xm-linux.h: Delete files.
20428 2005-05-05  Kelley Cook  <kcook@gcc.gnu.org>
20430         * system.h: Poison BYTEORDER and HOST_WORDS_BIG_ENDIAN.
20432 2005-05-04  Gerald Pfeifer  <gerald@pfeifer.com>
20434         * doc/contrib.texi (Contributors): Add Mostafa Hagog and Ayal Zaks.
20436 2005-05-04 Fariborz Jahanian <fjahanian@apple.com>
20438         * config/rs6000/rs6000.c (rs6000_emit_prologue): Emit
20439         setting of vrsave register for current function after
20440         call to save_world is emitted.
20442 2005-05-05  Hans-Peter Nilsson  <hp@bitrange.com>
20444         * config/mmix/predicates.md: New file.
20445         * config/mmix/mmix.c (mmix_symbolic_or_address_operand)
20446         (mmix_reg_or_constant_operand, mmix_reg_cc_operand)
20447         (mmix_foldable_comparison_operator, mmix_comparison_operator)
20448         (mmix_reg_or_0_operand, mmix_reg_or_8bit_operand): Remove.
20449         * config/mmix/mmix.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
20450         Don't define.
20451         * config/mmix/mmix.md: Include predicates.md.
20452         ("call", "call_value"): Force address to register if it isn't a
20453         mmix_symbolic_or_address_operand.
20455 2005-05-04  Andrew MacLeod  <amacleod@redhat.com>
20457         * tree-flow-inline.h (op_iter_init_use, op_iter_init_def): Assert that
20458         the flags are of appropriate types.
20459         (num_ssa_operands): Generalize using the generic interface.
20460         * tree-ssa-dce.c (remove_dead_stmt): Don't ask for kills on a DEF
20461         iterator.
20463 2005-05-04  Richard Sandiford  <rsandifo@redhat.com>
20465         * protoize.c (version_flag, quiet_flag, nochange_flag, nosave_flag)
20466         (keep_flag, local_flag, global_flag, cplusplus_flag): Make extern.
20468 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
20470         * tree-outof-ssa.c (edge_leader, stmt_list,
20471         analyze_edges_for_bb): Use VEC instead of VARRAY.
20472         (init_analayze_edges_for_bb, fini_analayze_edges_for_bb): New.
20473         (perform_edge_inserts): Call init_analayze_edges_for_bb and
20474         fini_analayze_edges_for_bb.
20476 2005-05-04  James E Wilson  <wilson@specifixinc.com>
20478         PR driver/21112
20479         * gcc.c (process_command): In the second argv scan loop, ignore
20480         Xassembler and Xpreprocessor, along with their argument.
20482 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
20484         * tree-flow-inline.h, tree-ssa-operands.c,
20485         tree-ssa-operands.h, tree-ssa-opfinalize.h:
20486         Likewise. tree-vn.c: Fix comment typos.
20487         * doc/passes.texi, doc/tree-ssa.texi: Fix typos.
20489 2005-05-04  Paolo Bonzini  <bonzini@gnu.org>
20491         * doc/tm.texi (Target Hooks): Document
20492         TARGET_RESOLVE_OVERLOADED_BUILTIN.
20494 2005-05-04  Paul Brook  <paul@codesourcery.com>
20496         * Makefile.in: Change dependencies on target.h to $(TARGET_H).
20498 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
20500         * dwarf2out.c (incomplete_types, retry_incomplete_types,
20501         gen_struct_or_union_type_die, dwarf2out_init): Use VEC instead
20502         of VARRAY.
20504         * loop-unroll.c (var_to_expand, analyze_insn_to_expand_var,
20505         get_expansion, expand_var_during_unrolling,
20506         insert_var_expansion_initialization,
20507         combine_var_copies_in_loop_exit, release_var_copies): Use VEC
20508         instead of VARRAY.
20510         * tree-ssa-loop-ivopts.c (rewrite_address_base): Don't call
20511         update_stmt.
20513 2005-05-03  Andrew Pinski  <pinskia@physics.uc.edu>
20515         PR middle-end/15618
20516         * fold-const.c (fold_widened_comparison): Treat BOOLEAN_TYPE
20517         the same as INTEGER_TYPE.
20518         (fold_binary): Fold "bool_var != 0" to bool_var.
20519         Fold "bool_var == 1" to bool_var.
20521 2005-05-03  Richard Henderson  <rth@redhat.com>
20523         PR middle-end/21318
20524         * function.c (instantiate_virtual_regs_in_insn): Use the mode
20525         from recog_data instead of insn_data.
20527 2005-05-03  DJ Delorie  <dj@redhat.com>
20529         * common.opt (fdiagnostics-show-option): No variable is needed.
20530         * diagnostic.h (diagnostic_context): Add show_option_requested flag.
20531         * diagnostic.c (diagnostic_initialize): Initialize show_option_requested.
20532         (diagnostic_report_diagnostic): Test for enabled diagnostics here.
20533         Save and restore original message format.  Use flag in context
20534         instead of global.
20535         (warning): Don't test for enabled warnings here.
20536         * opts.c (common_handle_option): Handle -fdiagnostics-show-option
20537         here.
20539 2005-05-04  Kelley Cook  <kcook@gcc.gnu.org>
20541         * config/m32r/xm-m32r.h: Don't define HOST_WORDS_BIG_ENDIAN.
20542         * config/m32r/xm-linux.h: Don't undefine HOST_WORDS_BIG_ENDIAN.
20543         * mips-tfile.c: Use WORDS_BIG_ENDIAN instead of HOST_WORDS_BIG_ENDIAN.
20544         * aclocal.m4: Don't include accross.m4.
20545         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
20546         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
20547         * configure, config.in: Regenerate.
20549 2005-05-04  Jakub Jelinek  <jakub@redhat.com>
20551         PR middle-end/21265
20552         * expr.h (enum block_op_methods): Add BLOCK_OP_TAILCALL.
20553         (clear_storage): Add argument.
20554         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall):
20555         Add tailcall argument, set CALL_EXPR_TAILCALL of the CALL_EXPR to
20556         tailcall.
20557         (emit_block_move): Handle BLOCK_OP_TAILCALL method.
20558         (clear_storage): Add method argument, handle BLOCK_OP_TAILCALL.
20559         (store_expr, store_constructor): Adjust callers.
20560         * builtins.c (expand_builtin_memcpy): Pass BLOCK_OP_TAILCALL
20561         to emit_block_move if CALL_EXPR_TAILCALL (exp).
20562         (expand_builtin_memmove): Add ORIG_EXP argument, copy
20563         CALL_EXPR_TAILCALL from ORIG_EXP to the new CALL_EXPR.
20564         (expand_builtin_bcopy): Replace ARGLIST and TYPE arguments
20565         with EXP.  Pass EXP to expand_builtin_memmove.
20566         (expand_builtin_memset): Add ORIG_EXP argument, pass
20567         BLOCK_OP_TAILCALL to clear_storage if CALL_EXPR_TAILCALL (orig_exp).
20568         (expand_builtin_bzero): Replace ARGLIST argument with EXP.
20569         Pass EXP to expand_builtin_memset.
20570         (expand_builtin_strcmp): Copy CALL_EXPR_TAILCALL from EXP to
20571         the new CALL_EXPR.
20572         (expand_builtin_strncmp): Likewise.
20573         (expand_builtin_printf): Replace ARGLIST argument with EXP.
20574         Copy CALL_EXPR_TAILCALL from EXP to the new CALL_EXPR.
20575         (expand_builtin_fprintf): Likewise.
20576         (expand_builtin): Adjust calls to
20577         expand_builtin_{memmove,bcopy,memset,bzero,{,f}printf}.
20579         * config/i386/i386.c (ix86_expand_vector_set): Fix setting 3rd and 4th
20580         item in V4SF mode.
20582         PR rtl-optimization/21239
20583         * combine.c (combine_simplify_rtx) <case VEC_SELECT>: Fix a typo.
20585 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
20587         * tree-flow.h (tree_ann_common_d): Move aux to ...
20588         (stmt_ann_d): ... here.
20589         * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
20590         move_computations_stmt, schedule_sm): Update references to
20591         aux.
20592         * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
20594         * tree-cfg.c (remove_bb): Remove a redundant call to
20595         set_bb_for_stmt.
20596         * tree-if-conv.c (replace_phi_with_cond_modify_expr):
20597         Likewise.
20599 2005-05-03  Richard Henderson  <rth@redhat.com>
20601         * config/rs6000/rs6000.c: Remove conflict markers.
20603         * cfg.c (dump_flow_info): Use max_reg_num, not max_regno.
20605 2005-05-03  James E Wilson  <wilson@specifixinc.com>
20607         * dwarf2out.c (lookup_filename): Call maybe_emit_file.
20609 2005-05-03  DJ Delorie  <dj@redhat.com>
20611         * c-decl.c (store_parm_decls_oldstyle): Let diagnostic machinery
20612         decide if the warning will be printed.
20613         * calls.c (expand_call): Likewise.
20614         * function.c (init-function_start): Likewise.
20616         * common.opt (-fdiagnostics-show-option): New.
20617         * opts.c (option_enabled): Accept the option index instead of a
20618         pointer to the option descriptor.
20619         * opts.h (option_enabled): Likewise.
20620         * toplev.c (print_switch_values): Pass option index, not option
20621         descriptor.
20622         * diagnostic.h (diagnostic_info): Add option_index.
20623         * diagnostic.c: Include opts.h.
20624         (diagnostic_set_info): Initialize option_index.
20625         (diagnostic_report_diagnostic): Amend option name if appropriate.
20626         (warning): Check to see if the specified warning is enabled.
20627         Store option index.
20628         * doc/invoke.texi (-fdiagnostics-show-options): Document.
20630 2005-05-03  Richard Henderson  <rth@redhat.com>
20632         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix ALL_REGS and
20633         SPEC_OR_GEN_REGS definitions.
20635 2005-05-03  Alexandre Oliva  <aoliva@redhat.com>
20637         PR target/16888
20638         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Clear reg names
20639         for unavailable registers.
20641 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
20643         * tree-cfg.c (tree_forwarder_block_p): Fix a typo.
20645         * cfglayout.c (block_locators_blocks,
20646         insn_locators_initialize, insn_scope): Use VEC instead of
20647         VARRAY.
20649         * tree-mudflap.c (deferred_static_decls, mudflap_enqueue_decl,
20650         mudflap_finish_file, mudflap_finish_file): Use VEC instead of
20651         VARRAY.
20653 2005-05-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
20655         * config/sparc/predicates.md (const_compl_high_operand): New.
20656         * config/sparc/sparc.c (sparc_emit_set_safe_HIGH64): Rename into
20657         gen_safe_HIGH64.
20658         (sparc_emit_set_const64_quick1): Adjust for above change.
20659         (sparc_emit_set_const64_quick2): Likewise.
20660         (sparc_emit_set_const64_longway): Likewise.
20661         (sparc_emit_set_const64): Likewise.
20662         * config/sparc/sparc.md (movhi_const64_special, movsi_const64_special,
20663         movdi_const64_special): Delete.
20664         (logical constant splitters): Use const_compl_high_operand.
20666 2005-05-03  Richard Guenther  <rguenth@gcc.gnu.org>
20668         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Use STRIP_TYPE_NOPS
20669         rather than STRIP_NOPS.
20671 2005-05-03  Jakub Jelinek  <jakub@redhat.com>
20673         PR rtl-optimization/21330
20674         * loop-unswitch.c (may_unswitch_on): Set *cinsn only when
20675         returning non-NULL.
20676         (unswitch_single_loop): Clear cinsn when retrying.
20678         PR target/21297
20679         * config/i386/i386.c (legitimize_address): When canonicalizing
20680         ASHIFT into MULT, multiply by 1 << shift_count instead of
20681         1 << log2 (shift_count).
20683 2005-05-03  Andrew MacLeod  <amacleod@redhat.com>
20685         * lambda-code.c (gcc_loop_to_lambda_loop,
20686         lambda_loopnest_to_gcc_loopnest, phi_loop_edge_uses_def,
20687         stmt_is_bumper_for_loop, perfect_nest_p, replace_uses_of_x_with_y): Use
20688         generic operand interface.
20689         * tree-data-ref.c (find_data_references_in_loop): Use generic interface.
20690         * tree-dfa.c (collect_dfa_stats_r, mark_new_vars_to_rename): Use
20691         generic operand interface.
20692         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
20693         link_imm_use, link_imm_use_stmt, relink_imm_use, relink_imm_use_stmt,
20694         next_safe_imm_use, has_zero_uses, has_single_use, single_imm_use,
20695         num_imm_uses): Use ssa_use_operand_t.
20696         (get_def_ops, get_use_ops, get_v_may_def_ops, get_vuse_ops,
20697         get_v_must_def_ops): Delete.
20698         (get_def_from_ptr, get_phi_result_ptr): Get def directly now.
20699         (get_use_op_ptr, get_def_op_ptr, get_v_may_def_result_ptr,
20700         get_v_may_def_op_ptr, get_vuse_op_ptr, get_v_must_def_result_ptr,
20701         get_v_must_def_kill_ptr): Delete.
20702         (delink_stmt_imm_use): Move and use new operand interface.
20703         (op_iter_next_use, op_iter_next_def, op_iter_next_tree, op_iter_init,
20704         op_iter_next_tree): Use new operand implementation.
20705         (clear_and_done_ssa_iter): New.  Initialize a blank operand iterator.
20706         (op_iter_init_use, op_iter_init_def, op_iter_init_tree): Add iterator
20707         type check.
20708         (op_iter_next_mustdef, op_iter_next_maydef,
20709         op_iter_next_must_and_may_def): Delete. Replace with...
20710         (op_iter_next_maymustdef): New.  Combine must and may next operations.
20711         (op_iter_init_maydef, op_iter_init_mustdef,
20712         op_iter_init_must_and_may_def): Use new interface.
20713         (single_ssa_tree_operand ): New.  Process single operands only as trees.
20714         (single_ssa_use_operand): New.  Process single operands only as uses.
20715         (single_ssa_def_operand): New.  Process single operands only as defs.
20716         (zero_ssa_operands): New.  Return TRUE if there are zero operands of the
20717         specified types.
20718         (num_ssa_operands): New.  Count the number of specified operands.
20719         (compare_ssa_operands_equal): New.  Compare two statements' operands.
20720         (single_phi_def): New.  Return true if PHI has one def of the specified
20721         operand type.
20722         (op_iter_init_phiuse): New.  Initialize the iterator for PHI arguments.
20723         (op_iter_init_phidef): New.  Initialize the iterator for the PHI def.
20724         * tree-flow.h (struct immediate_use_iterator_d): Use ssa_use_operand_t.
20725         (struct stmt_ann_d): Operands field no longer require GTY().
20726         (vn_compute, vn_lookup_or_add, vn_add, vn_lookup): Change prototype.
20727         * tree-into-ssa.c (mark_def_sites): Use SSA_OP_VMUSTKILL.
20728         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
20729         dump_replaceable_exprs, rewrite_trees): Use generic interface.
20730         * tree-phinodes.c (make_phi_node, release_phi_node, resize_phi_node):
20731         Use use_operand_p instead of ssa_imm_use_t *.
20732         * tree-pretty-print.c (dump_vops): check if operands are active before
20733         dumping virtual operands.
20734         * tree-sra.c (sra_walk_function): Use ZERO_SSA_OPERANDS.
20735         * tree-ssa-ccp.c (likely_value): Use ZERO_SSA_OPERANDS.
20736         (ccp_fold): Use new interface.
20737         (ccp_visit_stmt): Remove unused variables and code.
20738         (convert_to_gimple_builtin): Insert statements before calling
20739         mark_new_vars_to_rename.
20740         * tree-ssa-copy.c (stmt_may_generate_copy): Use ZERO_SSA_OPERANDS.
20741         (copy_prop_visit_cond_stmt): Use generic interface.
20742         * tree-ssa-dom.c (struct expr_hash_elt): Use stmt pointer, not the
20743         annotation in table.
20744         (thread_across_edge): Use generic interface.
20745         (initialize_hash_element): Initialzie with stmt, not annotation.
20746         (eliminate_redundant_computations): Use generic interface.
20747         (record_equivalences_from_stmt): Pass stmt, not annotation.
20748         (avail_expr_hash, real_avail_expr_hash, avail_expr_eq): Use generic
20749         interface.
20750         * tree-ssa-dse.c (dse_optimize_stmt): Use ZERO_SSA_OPERANDS.
20751         * tree-ssa-loop-ivopts.c (find_invariants_stmt,
20752         find_interesting_uses_stmt, protect_loop_closed_ssa_form_use): Use
20753         generic operand interface.
20754         * tree-ssa-loop-niter.c (chain_of_csts_start, get_val_for): Use generic
20755         interface.
20756         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Use Generic operand
20757         Interface.
20758         * tree-ssa-operands.c (struct opbuild_list_d): New.  Operand build type.
20759         (build_defs, build_uses, build_v_may_defs, build_vuses,
20760         build_v_must_defs): Change type to struct opbuild_list_d.
20761         (ops_active): New.  Operands active boolean.
20762         (operand_memory, operand_memory_index): New.  Operand memory managers.
20763         (allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
20764         allocate_vuse_optype, allocate_v_must_def_optype): Delete.
20765         (free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs):
20766         Change from functions to static variable list heads.
20767         (opbuild_initialize_virtual): New.  Initialize a virtual build list.
20768         (opbuild_initialize_real): New.  Initialize a virtual build list.
20769         (opbuild_free): New.  Free a build list.
20770         (opbuild_num_elems): New.  Number of items in a list.
20771         (opbuild_append_real): New.  Add a real (tree *) operand.
20772         (opbuild_append_virtual): New.  Add and sort a virtual (tree) operand.
20773         (opbuild_first): New.  Return first element index in a list.
20774         (opbuild_next): New.  Return next element in a list.
20775         (opbuild_elem_real): New.  Return real element.
20776         (opbuild_elem_virtual): New.  Return virtual element.
20777         (opbuild_elem_uid): New.  Return UID of virtual element.
20778         (opbuild_clear): New.  Reset an operand list.
20779         (opbuild_remove_elem): New.  Remove an element form a list.
20780         (ssa_operands_active): New.  Return true if operand cache is active.
20781         (init_ssa_operands, fini_ssa_operands): Initialize new implementation.
20782         (ssa_operand_alloc): New.  Allocate memory from an operand chunk.
20783         (correct_use_link): Use use_operand_p.
20784         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_defs,
20785         finalize_ssa_vuses, finalize_ssa_v_must_defs): New implmentation.
20786         (cleanup_v_may_defs): Use new implmentation.
20787         (finalize_ssa_stmt_operands, start_ssa_stmt_operands): New
20788         implementation.
20789         (append_def, append_use, append_v_may_def, append_vuse,
20790         append_v_must_def): Call opbuild_append routine instead of using varray.
20791         (build_ssa_operands): Simplify to simply use stmt, don't maintain a
20792         global parse_old_ops variable.
20793         (free_ssa_operands): New implementation.
20794         (update_stmt_operands): Move.  Change argument to build_ssa_operands.
20795         (copy_virtual_operands): Move. New generic implementation.
20796         (create_ssa_artficial_load_stmt): Move. New implementation.
20797         (swap_tree_operands): Update for new implementation.
20798         (get_expr_operands): Add stmt parameter to calls to swap_tree_operands.
20799         (add_call_clobber_ops, add_call_read_ops): Initialize opbuild list
20800         rather than a varray.
20801         (verify_imm_links): Use use_operand_p.
20802         (dump_immediate_uses_for): If the immediate use variable is a virtual
20803         variable, show the virtual ops in the stmt.
20804         * tree-ssa-operands.h (def_operand_p): No longer a structure.
20805         (NULL_DEF_OPERAND_P): Now a #define.
20806         (def_optype_d, use_optype_d, v_def_use_operand_type, v_may_def_optype_d,
20807         vuse_operand_type, vuse_optype_d, v_must_def_optype_d): Delete.
20808         (def_optype_d, use_optype_d, maydef_optype_d, vuse_optype_d,
20809         mustdef_optype_d): New.  Use Linked list representation.
20810         (SSA_OPERAND_MEMORY_SIZE): New.  Size of operand memory chunk.
20811         (struct ssa_operand_memory_d): New.  Allocated Chunk node.
20812         (struct stmt_operands_d): Change to new pointers that are not GTY.
20813         (STMT_USE_OPS, NUM_USES, SET_USE_OP, STMT_DEF_OPS, NUM_DEFS, SET_DEF_OP,
20814         STMT_V_MAY_DEF_OPS, NUM_V_MAY_DEFS, SET_V_MAY_DEF_RESULT,
20815         SET_V_MAY_DEF_OP, STMT_VUSE_OPS, NUM_VUSES, SET_VUSE_OP,
20816         STMT_V_MUST_DEF_OPS, NUM_V_MUST_DEFS, SET_V_MUST_DEF_RESULT,
20817         SET_V_MUST_DEF_KILL): Delete.
20818         (V_MAY_DEF_OPS, V_MAY_DEF_RESULT_PTR, V_MAY_DEF_RESULT,
20819         V_MAY_DEF_OP_PTR, V_MAY_DEF_OP): Rename to MAYDEF_*.
20820         (V_MUST_DEF_OPS, V_MUST_DEF_RESULT_PTR, V_MUST_DEF_RESULT,
20821         V_MUST_DEF_KILL_PTR, V_MUST_DEF_KILL): Rename to MUSTDEF_*.
20822         (enum ssa_op_iter_type): Operand iterator typechecking values.
20823         (struct ssa_operand_iterator_d): Use linked lists of operands.
20824         (SSA_OP_VMUSTDEFKILL): Rename to SSA_OP_VMUSTKILL.
20825         (FOR_EACH_SSA_MAYDEF_OPERAND, FOR_EACH_SSA_MUSTDEF_OPERAND,
20826         FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): Use op_iter_next_maymustdef.
20827         (FOR_EACH_PHI_ARG): New.  Iterate over PHI arguments.
20828         (FOR_EACH_PHI_OR_STMT_USE): New.  Iterate over PHI or stmt uses.
20829         (FOR_EACH_PHI_OR_STMT_DEF): New.  Iterate over PHI or stmt defs.
20830         (SINGLE_SSA_TREE_OPERAND, SINGLE_SSA_USE_OPERAND,
20831         SINGLE_SSA_DEF_OPERAND, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): New.
20832         * tree-ssa-opfinalize.h: New.  Function templates for expansion.
20833         (FINALIZE_ALLOC): Expands into alloc_def, alloc_use, alloc_maydef,
20834         alloc_vuse, and alloc_mustdef.
20835         (FINALIZE_FUNC): Expands into finalize_ssa_def_ops,
20836         finalize_ssa_use_ops, finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
20837         and finalize_ssa_v_must_def_ops.
20838         * tree-ssa-pre.c (add_to_sets): Pass tree to vn_add.
20839         (create_value_expr_from): Use stmt not vuse_optype as a parameter. Pass
20840         stmt around.
20841         (compute_avail): Use generic iterator interface.
20842         * tree-ssa-propagate.c (first_vdef): Use generic operand interface.
20843         (stmt_makes_single_load, stmt_makes_single_store): Use
20844         ZERO_SSA_OPERANDS.
20845         * tree-ssa-sink.c (is_hidden_global_store): Use ZERO_SSA_OPERANDS.
20846         (statement_sink_location): Use generic interface.
20847         * tree-ssa.c (verify_ssa): Use %p in fprintf.  Use generic interface.
20848         (delete_tree_ssa): Don't call release_defs.  Call release_ssa_name and
20849         reset the immediate use link nodes.
20850         (stmt_references_memory_p): Use ZERO_SSA_OPERANDS.
20851         * tree-ssanames.c (make_ssa_name): Use use_operand_p.
20852         * tree-tailcall.c (find_tail_calls): Use ZERO_SSA_OPERANDS.
20853         (eliminate_tail_call): Use generic operand interface.
20854         * tree-vect-analyze.c (vect_analyze_data_refs): Use ZERO_SSA_OPERANDS.
20855         (vect_mark_relevant, vect_mark_stmts_to_be_vectorized): Use generic
20856         interface.
20857         * tree-vect-transform.c (update_vuses_to_preheader): Use generic
20858         interface.
20859         * tree-vectorizer.c (rename_variables_in_bb): Use generic interface.
20860         * tree-vn.c (struct val_expr_pair_d): Cache statment pointer instead of
20861         vuse_optype.
20862         (vn_compute, val_expr_pair_hash, vn_add, vn_lookup, vn_lookup_or_add):
20863         Use statement pointer instead of vuse_optype.  Use generic interface.
20864         * tree-vrp.c (maybe_add_assert_expr): Use generic interface.
20865         (stmt_interesting_for_vrp, vrp_visit_stmt): Use ZERO_SSA_OPERANDS.
20866         * tree.h (struct ssa_imm_use_d): Renamed to ssa_use_operand_d.
20867         (tree_ssa_name, phi_arg_d): Use ssa_use_operand_d.
20868         * doc/tree-ssa.texi: Update documentation for operand interface.
20870 2005-05-03  Nathan Sidwell  <nathan@codesourcery.com>
20872         * config/darwin.c (machopic_define_symbol): Use gcc_assert or
20873         gcc_unreachable as appropriate.
20874         (machopic_function_base_name, machopic_indirect_data_reference,
20875         machopic_legitimize_pic_address, darwin_non_lazy_pcrel): Likewise.
20876         * config/host-darwin.c (darwin_gt_pch_use_address): Likewise
20877         * config/rs6000/altivec.md (*mov<mode>_internal,
20878         build_vector_mask_for_load): Likewise.
20879         * config/rs6000/darwin.md (movdf_low_si, movdf_low_di,
20880         *call_nonlocal_darwin64, *call_value_nonlocal_darwin64,
20881         *sibcall_symbolic_64, *sibcall_value_symbolic_64): Likewise.
20882         * config/rs6000/predicates.md (easy_fp_constant,
20883         logical_operand): Likewise.
20884         * config/rs6000/rs6000.c (spe_expand_predicate_builtin,
20885         compute_save_world_info, rs6000_emit_prologue,
20886         rs6000_output_mi_thunk): Reword comments to avoid 'abort'.
20887         * config/rs6000/host-darwin.c (segv_handler): Use fancy_abort
20888         directly.
20890 2005-05-03  Uros Bizjak  <uros@kss-loka.si>
20892         PR middle-end/21282
20893         * convert.c (convert_to_integer): Convert ceil and floor in
20894         c99 mode only.
20896 2005-04-29  Geoffrey Keating  <geoffk@apple.com>
20898         PR target/20813
20899         * config/rs6000/rs6000.md (floatsidf2_internal): Merge to create
20900         define_insn_and_split.  Split only when memory operand is
20901         offsettable.  Use adjust_address rather than plus_constant.
20902         (floatunssidf2_internal): Likewise.
20903         (fix_truncdfsi2_internal): Split only when memory operand is
20904         offsettable.  Use adjust_address rather than plus_constant.
20905         (fix_trunctfsi2_internal): Likewise.
20906         (floatsidf2_internal): Likewise.
20908 2005-05-02  Diego Novillo  <dnovillo@redhat.com>
20910         * tree-vrp.c (set_value_range_to_nonnull): Declare inline.
20911         (set_value_range_to_null): Likewise.
20912         (set_value_range_to_varying): New function.  Use it in all
20913         call sites that used to call set_value_range (vr, VR_VARYING, ...).
20914         (extract_range_from_assert): If the integral type has a
20915         super-type, and LIMIT is not within MIN and MAX values of that
20916         type, set the resulting range to VR_VARYING.
20918 2005-05-02  Hans-Peter Nilsson  <hp@bitrange.com>
20920         * config/mmix/mmix.opt: New file.
20921         * config/mmix/mmix.h: Move options-related comments to mmix.opt.
20922         (mmix_cc1_ignored_option): Don't declare.
20923         (TARGET_OPTIONS, TARGET_MASK_LIBFUNCS, TARGET_MASK_ABI_GNU)
20924         (TARGET_MASK_FCMP_EPSILON, TARGET_MASK_ZERO_EXTEND)
20925         (TARGET_MASK_KNUTH_DIVISION, TARGET_MASK_TOPLEVEL_SYMBOLS)
20926         (TARGET_MASK_BRANCH_PREDICT, TARGET_MASK_USE_RETURN_INSN)
20927         (TARGET_MASK_BASE_ADDRESSES, TARGET_LIBFUNC, TARGET_ABI_GNU,
20928         (TARGET_FCMP_EPSILON, TARGET_ZERO_EXTEND, TARGET_KNUTH_DIVISION)
20929         (TARGET_TOPLEVEL_SYMBOLS, TARGET_BRANCH_PREDICT)
20930         (TARGET_BASE_ADDRESSES, TARGET_USE_RETURN_INSN, TARGET_SWITCHES):
20931         Don't define.
20932         (TARGET_DEFAULT): Change TARGET_MASK_... to MASK_...
20933         * config/mmix/mmix.c (mmix_cc1_ignored_option): Remove.
20934         (TARGET_DEFAULT_TARGET_FLAGS): Override default.
20936 2005-05-02  Joseph S. Myers  <joseph@codesourcery.com>
20938         PR c/15698
20939         * c-tree.h (C_DECL_BUILTIN_PROTOTYPE): New.
20940         * c-decl.c (current_function_prototype_built_in,
20941         current_function_prototype_arg_types): New.
20942         (merge_decls): Keep source location of prototype followed by
20943         nonprototype declaration.  Update C_DECL_BUILTIN_PROTOTYPE.
20944         (builtin_function): Set C_DECL_BUILTIN_PROTOTYPE.
20945         (start_function): Always set current_function_prototype_locus,
20946         current_function_prototype_built_in and
20947         current_function_prototype_arg_types.  Check for external
20948         prototype whether or not visible for external function and set
20949         current_function_prototype_arg_types accordingly.
20950         (store_parm_decls_oldstyle): Use
20951         current_function_prototype_arg_types for checking old-style
20952         definition against prototype.  Give warnings only if
20953         current_function_prototype_built_in).
20955 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
20957         * ggc.h (ggc_alloc_zone_pass_stat): New macro.
20958         (ggc_alloc_zone_stat): Don't define.
20959         * ggc-zone.c (ggc_alloc_typed_stat, ggc_alloc_stat): Use
20960         ggc_alloc_zone_pass_stat.
20961         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Likewise.
20962         * tree.c (make_node_stat, copy_node_stat, make_tree_binfo_stat)
20963         (make_tree_vec_stat, tree_cons_stat, build1_stat): Likewise.
20965 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
20967         * calls.c (expand_call): Handle current_function_pretend_args_size
20968         when checking for sibcalls.
20970 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
20972         PR tree-optimization/21294
20973         * tree-vrp.c (vrp_expr_computes_nonzero): New.
20974         (extract_range_from_expr): Call vrp_expr_computes_nonzero.
20976 2005-05-02  Janis Johnson  <janis187@us.ibm.com>
20978         PR 19985
20979         * gcov-io.h: Declare gcov external functions hidden.
20981 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
20983         * tree-ssa-uncprop.c (equiv_hash_elt, remove_equivalence,
20984         record_equiv, tree_ssa_uncprop, uncprop_into_successor_phis):
20985         Use VEC instead of VARRAY.
20986         (equiv_free): New.
20988         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Factor
20989         out common code.
20991 2005-05-02  Paolo Bonzini  <bonzini@gnu.org>
20993         * c-common.c (resolve_overloaded_builtin): Forward to target
20994         hook for BUILT_IN_MD built-ins.
20995         * c-typeck.c (finish_call_expr): Call resolve_overloaded_builtin
20996         for all types of built-in.
20997         * target-def.h (TARGET_RESOLVE_OVERLOADED_BUILTIN): New.  Use it
20998         in the definition of the target hooks struct.
20999         * target.h (struct gcc_target): Add resolve_overloaded_builtin.
21000         * config/rs6000/altivec.h: Rewritten.
21001         * config/rs6000/rs6000-c.c (struct altivec_builtin_types,
21002         altivec_resolve_overloaded_builtin, altivec_build_resolved_builtin,
21003         rs6000_builtin_type, rs6000_builtin_type_compatible,
21004         altivec_overloaded_builtins, rs6000_builtin_type,
21005         rs6000_builtin_type_compatible): New.
21006         * config/rs6000/rs6000.c (rs6000_builtin_types, rs6000_builtin_decls):
21007         New.
21008         (def_builtin): Turn into a function.  Check for duplicates and store
21009         the builtin into rs6000_builtin_decls.
21010         (bdesc_3arg, bdesc_dst, bdesc_altivec_preds, bdesc_2arg,
21011         bdesc_1arg): Add overloaded builtins.
21012         (altivec_expand_builtin): Check for unresolved overloaded builtins,
21013         do not support ALTIVEC_COMPILETIME_ERROR.
21014         (rs6000_init_builtins): Add opaque 128-bit vector, and internal
21015         nodes to represent front-end types.
21016         (altivec_init_builtins, rs6000_common_init_builtins): Create builtins
21017         with opaque arguments and/or return values.
21018         * config/rs6000/rs6000.h (enum rs6000_builtins): Remove
21019         ALTIVEC_COMPILETIME_ERROR and add Altivec overloaded builtins.
21020         (rs6000_builtin_type_index): New.
21021         (is_ev64_opaque_type): Rename to...
21022         (rs6000_is_opaque_type): ... this.
21023         (rs6000_cpu_cpp_builtins): Install the resolve_overloaded_builtin
21024         target hook.
21026 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
21028         * function.c (reorder_blocks, reorder_blocks_1): Use VEC
21029         instead of VARRAY.
21031 2005-05-02  Nathan Sidwell  <nathan@codesourcery.com>
21032             Bernd Schmidt  <bernd.schmidt@analog.com>
21034         * config/bfin/bfin.c (emit_link_insn, effective_address_32bit_p,
21035         print_address_operand, print_operand, legitimize_pic_address,
21036         asm_conditional_branch, bfin_gen_compare, output_push_multiple,
21037         output_pop_multiple): Use gcc_assert or gcc_unreachable as
21038         appropriate.
21039         * config/bfin/bfin.md (movsf splitter, beq, bne): Likewise.
21041 2005-05-02  Dorit Naishlos  <dorit@il.ibm.com>
21043         * doc/passes.texi: Document vectorization pass.
21045 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
21047         * tree-scalar-evolution.c (get_exit_conditions_rec,
21048         select_loops_exit_conditions,
21049         number_of_iterations_for_all_loops,
21050         analyze_scalar_evolution_for_all_loop_phi_nodes,
21051         scev_analysis): Use VEC instead of VARRAY.
21053 2005-05-02  Michael Matz  <matz@suse.de>
21055         PR c++/19542
21056         * c-common.c (c_common_nodes_and_builtins): Create global null_node.
21057         (warn_strict_null_sentinel): Define.
21058         (check_function_sentinel): Check for null_node as valid sentinel too.
21059         * c-common.h (c_tree_index): Added CTI_NULL.
21060         (null_node) Define global_tree[CTI_NULL].
21061         (warn_strict_null_sentinel): Declare.
21062         * c-opts.c: (c_common_handle_option): Handle -Wstrict-null-sentinel.
21063         * c.opt: (Wstrict-null-sentinel): New C++ option.
21064         * doc/invoke.texi (C++ Options): Document -Wstrict-null-sentinel.
21066 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
21068         * gimplify.c (gimplify_compound_lval): Use VEC instead of
21069         VARRAY.
21071         * global.c (calculate_reg_pav): Use VEC instead of VARRAY.
21073         * dwarf2out.c (decl_scope_table, push_decl_scope,
21074         pop_decl_scope, scope_die_for, dwarf2out_init): Use VEC
21075         instead of VARRAY.
21077 2005-05-01  Mark Mitchell  <mark@codesourcery.com>
21079         PR C++/14391
21080         * c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1
21081         if !flag_weak.
21082         * doc/cpp.texi (__DEPRECATED): Document.
21083         (__EXCEPTIONS): Likewise.
21084         (__GXX_WEAK__): Likewise.
21086         * function.c (INVOKE__main): Do not define.
21087         (expand_main_function): Check HAS_INIT_SECTION when determining
21088         whether or not to call __main.
21090 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
21092         * tree-ssa-loop-ivopts.c: Fix a comment typo.
21094 2005-01-05  Paul Brook  <paul@codesourcery.com>
21096         * config/arm/arm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define.
21097         (INITIALIZE_TRAMPOLINE): Use it.
21098         * config/arm/linux-gas.h (INITIALIZE_TRAMPOLINE): Remove.
21099         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Remove.
21100         * config/arm/netbsd-elf.h (INITIALIZE_TRAMPOLINE): Remove.
21102 2005-05-01  Gerald Pfeifer  <gerald@pfeifer.com>
21104         * doc/install.texi (Specific): Omit dots in the @anchors names
21105         for i?86-*-sco3.2v5*, i?86-*-solaris2.10, and sparc-sun-solaris2.7.
21106         Omit underscores for x86_64-*-* and the "all ELF targets" entry.
21108 2005-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
21110         PR tree-optimization/18316
21111         PR tree-optimization/19126
21112         * tree.c (build_int_cst_type): Avoid shift by size of type.
21113         * tree-scalar-evolution.c (simple_iv): Add allow_nonconstant_step
21114         argument.
21115         * tree-scalar-evolution.h (simple_iv): Declaration changed.
21116         * tree-ssa-loop-ivopts.c (struct iv_cand): Add depends_on
21117         field.
21118         (dump_cand): Dump depends_on information.
21119         (determine_biv_step): Add argument to simple_iv call.
21120         (contains_abnormal_ssa_name_p): Handle case expr == NULL.
21121         (find_bivs, find_givs_in_stmt_scev): Do not require step to be a
21122         constant.
21123         (add_candidate_1): Record depends_on for candidates.
21124         (tree_int_cst_sign_bit, constant_multiple_of): New functions.
21125         (get_computation_at, get_computation_cost_at, may_eliminate_iv):
21126         Handle ivs with nonconstant step.
21127         (iv_ca_set_remove_invariants, iv_ca_set_add_invariants): New functions.
21128         (iv_ca_set_no_cp, iv_ca_set_cp): Handle cand->depends_on.
21129         (create_new_iv): Unshare the step before passing it to create_iv.
21130         (free_loop_data): Free cand->depends_on.
21131         (build_addr_strip_iref): New function.
21132         (find_interesting_uses_address): Use build_addr_strip_iref.
21133         (strip_offset_1): Split the recursive part from strip_offset.
21134         Strip constant offset component_refs and array_refs.
21135         (strip_offset): Split the recursive part to strip_offset_1.
21136         (add_address_candidates): Removed.
21137         (add_derived_ivs_candidates): Do not use add_address_candidates.
21138         (add_iv_value_candidates): Add candidates with stripped constant
21139         offset.  Consider all candidates with initial value 0 important.
21140         (struct affine_tree_combination): New.
21141         (aff_combination_const, aff_combination_elt, aff_combination_scale,
21142         aff_combination_add_elt, aff_combination_add,
21143         tree_to_aff_combination, add_elt_to_tree, aff_combination_to_tree,
21144         fold_affine_sum): New functions.
21145         (get_computation_at): Use fold_affine_sum.
21146         * tree-ssa-loop-manip.c (create_iv): Handle ivs with nonconstant step.
21147         * tree-ssa-loop-niter.c (number_of_iterations_exit): Add argument
21148         to simple_iv call.
21150 2005-04-30  Michael Matz  <matz@suse.de>
21152         * config/i386/i386.md (movmemsi): Also active when
21153         TARGET_INLINE_ALL_STRINGOPS.
21155 2005-04-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
21157         PR bootstrap/20633
21158         * config/freebsd-spec.h (FBSD_CPP_SPEC): Add %(cpp_arch).
21160 2005-04-30  Paul Brook  <paul@codesourcery.com>
21162         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Always use .thumb_set in
21163         thumb mode.
21164         * config/arm/ieee754-df.S: Use __INTERWORKING_STUBS__.
21165         * config/arm/ieee754-sf.S: Ditto.
21166         * config/arm/lib1funcs.asm: Define and use __INTERWORKING_STUBS__.
21167         (FUNC_ALIAS): Use .thumb_set for thumb routines.
21169 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
21171         * tree-ssanames.c: Fix a comment typo.
21172         * doc/options.texi: Fix a typo.
21174 2005-04-30  Nathan Sidwell  <nathan@codesourcery.com>
21176         * config/h8300/h8300.c (byte_reg): Use gcc_assert and
21177         gcc_unreachable as appropriate.
21178         (split_adds_subs, cond_string, print_operand,
21179         h8300_initial_elimination_offset, h8300_classify_operand,
21180         h8300_unary_length, h8300_short_immediate_length,
21181         h8300_bitfield_length, h8300_binary_length,
21182         h8300_insn_length_from_table, compute_mov_length, output_plussi,
21183         compute_plussi_length, compute_plussi_cc, output_logical_op,
21184         compute_logical_op_length, compute_logical_op_cc,
21185         output_h8sx_shift, get_shift_alg, h8300_shift_needs_scratch_p,
21186         output_a_shift, compute_a_shift_length, compute_a_shift_cc,
21187         output_a_rotate, compute_a_rotate_length, fix_bit_operand,
21188         h8300_regs_ok_for_stm): Likewise.
21189         * config/h8300/h8300.md (*movsi_h8300, *movsf_h8300,
21190         monitor_prologue): Likewise.
21192 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
21194         * loop-invariant.c (invariants, create_new_invariant,
21195         get_inv_cost, best_gain_for_invariant,
21196         find_invariants_to_move, move_invariants,
21197         init_inv_motion_data, free_inv_motion_data): Use VEC instead
21198         of VARRAY.
21200 2005-04-29  Richard Henderson  <rth@redhat.com>
21202         * function.c (instantiate_decls): Remove valid_only argument.
21203         (instantiate_decls_1, instantiate_decl): Likewise.
21204         (instantiate_virtual_regs_1): Delete.
21205         (instantiate_virtual_regs_lossage): Delete.
21206         (instantiate_virtual_regs_in_rtx): New.
21207         (safe_insn_predicate): New.
21208         (instantiate_virtual_regs_in_insn): New.
21209         (instantiate_virtual_regs): Update to match all that.  Only run
21210         instantiate_decls once.
21212 2005-04-29  Richard Henderson  <rth@redhat.com>
21213             Daniel Jacobowitz  <dan@codesourcery.com>
21215         * gengtype.c (write_func_for_structure): Split out ...
21216         (output_type_enum): ... new function.  Fix thinko accessing
21217         TYPE_PARAM_STRUCT data.
21219 2005-04-29  Tom Tromey  <tromey@redhat.com>
21221         * tree.c (build_block): Removed unused 'tags' argument.
21222         * tree.h (build_block): Removed argument.
21224 2005-04-29  Michael Matz  <matz@suse.de>
21226         PR rtl-optimization/21144
21227         * postreload.c (reload_cse_move2add): Check for VOIDmode.
21229 2005-04-29  Bob Wilson  <bob.wilson@acm.org>
21231         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable
21232         flag_reorder_blocks.
21234 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
21236         PR tree-optimization/21030
21237         * tree-vrp.c (adjust_range_with_scev): Do not create invalid
21238         ranges where VR->MAX is smaller than VR->MIN.
21240 2005-04-29  Devang Patel  <dpatel@apple.com>
21242         PR tree-optimization/21272
21243         PR tree-optimization/21266
21244         * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.
21246 2005-04-29  Kazu Hirata  <kazu@cs.umass.edu>
21248         * tree-flow-inline.h: Fix a comment typo.
21249         * doc/tree-ssa.texi: Fix a typo.
21251         * tree-flow-inline.h, tree-ssa-operands.c: Fix comment typos.
21253 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
21255         * config/fr30/fr30.c (fr30_expand_prologue): Use gcc_assert and
21256         gcc_unreachable as appropriate.
21257         (fr30_expand_epilogue, fr30_setup_incoming_varargs,
21258         fr30_print_operand, fr30_move_double): Likewise.
21259         * config/fr30/fr30.md (*movsi_internal, *movsf_internal): Likewise.
21261 2005-04-29  Mark Mitchell  <mark@codesourcery.com>
21263         * config/arm/arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a
21264         definition has already been provided.
21265         (ARM_EABI_DTORS_SECTION_OP): Likewise.
21266         * config/arm/symbian.h (ARM_EABI_CTORS_SECTION_OP): Define.
21267         (ARM_EABI_DTORS_SECTION_OP): Likewise.
21269 2005-04-29  Jim Tison  <jtison@us.ibm.com>
21271         * config/s390/s390.md ("prologue_tpf", "epilogue_tpf"): Alter
21272         trace hooks calls to improve performance.
21274 2005-04-29  Julian Brown  <julian@codesourcery.com>
21275             Mark Mitchell  <mark@codesourcery.com>
21276             Paul Brook  <paul@codesourcery.com>
21278         * crtstuff.c: Handle targets that use .init_array.
21279         * function.c (HAS_INIT_SECTION): Do not define. Instead, make sure
21280         that INVOKE__main is set correctly.
21281         (expand_main_function): Test INVOKE__main.
21282         * libgcc2.c: Do not define __main when using .init_array.
21283         * config/arm/arm.c (arm_elf_asm_constructor): New function.
21284         * config/arm/arm.h (CTORS_SECTION_ASM_OP): Define, with specialized
21285         libgcc version.
21286         (DTORS_SECTION_ASM_OP): Likewise.
21287         (CTOR_LIST_BEGIN): Define specially when in libgcc.
21288         (CTOR_LIST_END): Likewise.
21289         (DTOR_LIST_BEGIN): Likewise.
21290         (DTOR_LIST_END): Likewise.
21291         * config/arm/bpapi.h (INIT_SECTION_ASM_OP): Do not define it.
21292         (FINI_SECTION_ASM_OP): Likewise.
21293         (INIT_ARRAY_SECTION_ASM_OP): Define.
21294         (FINI_ARRAY_SECTION_ASM_OP): Likewise.
21295         * config/arm/elf.h (TARGET_ASM_CONSTRUCTOR): Define.
21296         (SUPPORTS_INIT_PRIORITY): Evaluate to false for EABI based targets.
21297         * doc/tm.texi (INIT_ARRAY_SECTION_ASM_OP): Document.
21298         (FINI_ARRAY_SECTION_ASM_OP): Likewise.
21300 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
21302         * config/m68k/m68k.c (m68k_initial_elimination_offset): Use
21303         gcc_assert and gcc_unreachable as appropriate.
21304         (output_dbcc_and_branch, output_scc_di, legitimize_pic_address,
21305         const_int_cost, output_move_const_into_data_reg,
21306         output_move_qimode, output_move_double, find_addr_reg,
21307         print_operand, print_operand_address): Likewise.
21308         * config/m68k/m68k.md (adddi3, subdi3, negsf2, negdf2, abssf2,
21309         absdf2, sordered, sunordered, suneq, sunge, sungt, sunle, sunlt,
21310         sltgt, bordered, bunordered, buneq, bunge, bungt, bunle, bunlt,
21311         bltgt, *bordered_rev, *bunordered_rev, *buneq_rev, *bunge_rev,
21312         *bunle_rev, *bunlt_rev, *bltgt_rev, negxf2, absxf2,
21313         conditional_trap): Likewise.
21314         * config/m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Remove unreachable code.
21316 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
21318         * config/xtensa/xtensa.c (gen_int_relational): Use gcc_assert and
21319         gcc_unreachable as appropriate.
21320         (gen_conditional_move, xtensa_split_operand_pair,
21321         xtensa_split_operand_pair, xtensa_copy_incoming_a7,
21322         xtensa_copy_incoming_a7, xtensa_copy_incoming_a7,
21323         xtensa_copy_incoming_a7, xtensa_output_literal,
21324         xtensa_output_literal, xtensa_output_literal): Likewise.
21325         * config/xtensa/xtensa.h (INITIAL_ELIMINATION_OFFSET): Likewise.
21326         * config/xtensa/xtensa.md (*btrue, *bfalse, *ubtrue, *ubfalse,
21327         *bittrue, *bitfalse, *masktrue, *maskfalse, movsicc_internal0,
21328         movsicc_internal1, movsfcc_internal0,
21329         movsfcc_internal1): Likewise.
21331 2005-04-28  James E Wilson  <wilson@specifixinc.com>
21333         * config/i386/i386.h (HI_REGISTER_NAMES): Fix typos in comment.
21334         (ADDITIONAL_REGISTER_NAMES): Delete obsolete mmx register entries.
21336 2005-04-28  DJ Delorie  <dj@redhat.com>
21338         * opt-functions.awk (var_set): Emit proper initializer for
21339         non-target bitfields.
21341 2005-04-28  Devang Patel  <dpatel@apple.com>
21343         * dbxout.c (have_used_extensions): Remove.
21344         (dbxout_type_fileds, dbxout_type, dbxout_symbol): Remove use of
21345         have_used_extensions.
21347 2005-04-28  James E Wilson  <wilson@specifixinc.com>
21349         * doc/install.texi: Update -enable-languages info.  Correct path to
21350         html docs.
21352 2005-04-28  DJ Delorie  <dj@redhat.com>
21354         * optc-gen.awk (END): Make sure no variable is defined more
21355         than once.
21356         * opth-gen.awk (END): Allocate bits on a per-variable basis.
21357         Allow for bitfield variables other than target_flags.
21358         * doc/options.text (Mask): Document that you may specify a
21359         variable other than target_flags.
21361 2005-04-28  Martin Koegler <mkoegler@auto.tuwien.ac.at>
21363         PR rtl-optimization/18877
21364         * reload.c (decompose) <case REG, case SUBREG>: Handle pseudo reg
21365         number in val.start.
21367 2005-04-28  David Edelsohn  <edelsohn@gnu.org>
21369         PR target/20813
21370         * config/rs6000/aix43.h (SUBSUBTARGET_SWITCHES, aix64): Add
21371         MASK_PPC_GFXOPT.
21372         * config/rs6000/aix51.h (SUBSUBTARGET_SWITCHES, aix64): Same.
21373         * config/rs6000/aix52.h (SUBSUBTARGET_SWITCHES, aix64): Same.
21374         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES, 64): Same.
21376 2005-04-28  Richard Earnshaw  <richard.earnshaw@arm.com>
21378         * arm.c (legitimize_pic_address): Fix sense of assertion test for
21379         creating pseudos when the base offset is too large.
21381 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
21383         * global.c (earlyclobber_regclass): Change the type to
21384         VEC(int,heap).
21385         (check_earlyclobber): Update uses of earlyclobber_regclass.
21386         (mark_reg_use_for_earlyclobber): Likewise.
21387         (calculate_local_reg_bb_info): Allocate and free
21388         earlyclobber_regclass using the VEC API.
21390 2005-04-28  Nathan Sidwell  <nathan@codesourcery.com>
21392         * tree-ssa-alias.c (push_fields_onto_fieldstack): Remove bogus
21393         assert.
21395 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
21397         * modulo-sched.c, tree-stdarg.c: Use targetm.foo instead of
21398         (*targetm.foo).
21400         * config.gcc: Obsolete c4x-* and tic4x-*.
21402         * tree.h (edge_def): Remove.
21404         * bt-load.c, cfgexpand.c, dwarf2out.c, emit-rtl.c, expr.c,
21405         function.c, global.c, lcm.c, loop-invariant.c, optabs.c,
21406         reorg.c, resource.c, tree-ssa-loop-ivopts.c, value-prof.c: Use
21407         JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P
21408         where appropriate.
21410         * attribs.c, c-pragma.c, caller-save.c, cfghooks.h,
21411         coverage.c, cselib.h, domwalk.c, domwalk.h, errors.c,
21412         errors.h, gcov-dump.c, gcov-io.c, gcov-io.h, gen-protos.c,
21413         genattrtab.h, genextract.c, gthr-win32.h, insn-notes.def,
21414         integrate.c, lambda-mat.c, lambda.h, libgcov.c, local-alloc.c,
21415         machmode.def, mips-tfile.c, params.c, pretty-print.c,
21416         print-rtl.c, protoize.c, regmove.c, sched-vis.c, tree-chrec.h,
21417         tree-data-ref.h, vec.h, config/darwin-c.c, config/sol2-c.c,
21418         config/sol2.c, config/arm/arm-cores.def, config/arm/cirrus.md,
21419         config/arm/symbian.h, config/c4x/c4x.c, config/c4x/c4x.h,
21420         config/i386/cygming.h, config/i386/djgpp.h,
21421         config/i386/lynx.h, config/i386/netware.c,
21422         config/i386/winnt.c, config/ia64/ia64-c.c,
21423         config/iq2000/iq2000.c, config/m32r/little.h,
21424         config/m68k/m68k-protos.h, config/m68k/m68k.h,
21425         config/m68k/m68k.md, config/mcore/mcore.c,
21426         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.md,
21427         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
21428         config/mn10300/mn10300.h, config/ns32k/netbsd.h,
21429         config/ns32k/ns32k.c, config/ns32k/ns32k.h,
21430         config/pa/pa-hpux11.h, config/pdp11/pdp11.c,
21431         config/pdp11/pdp11.h, config/rs6000/darwin.h,
21432         config/rs6000/default64.h, config/rs6000/rs6000-c.c,
21433         config/s390/2064.md, config/s390/2084.md,
21434         config/s390/s390-modes.def, config/s390/s390-protos.h,
21435         config/s390/tpf.h, config/sh/sh.h, config/sh/symbian.c,
21436         config/stormy16/stormy16.c, config/vax/vax-protos.h,
21437         config/vax/vax.c, config/vax/vax.h,
21438         config/xtensa/lib1funcs.asm, config/xtensa/xtensa.md: Update
21439         copyright.
21441 2005-04-28  Joseph S. Myers  <joseph@codesourcery.com>
21443         * c-typeck.c (build_compound_expr): Correct logic in last change.
21445 2005-04-27  James E. Wilson  <wilson@specifixinc.com>
21447         * config/ia64/ia64.c (update_set_flags): Delete ppred and pcond
21448         parameters.  Replace conditional move code with assert checking for
21449         ar.lc.  Delete obsolete comments.
21450         (set_src_needs_barrier): Delete cond parameter, and code using it.
21451         (rtx_needs_barrier): Delete initialization of cond.  Fix typo in
21452         assert checking for PR_REGS.  Fix calls to update_set_flags and
21453         set_src_needs_barrier.
21454         (group_barrier_needed): Renamed from group_barrier_needed_p.  Fix all
21455         callers.  Rewrite explanatory comment before the function.
21456         (safe_group_barrier_needed): Renamed from safe_group_barrier_needed_p.
21457         Fix all callers.
21459 2005-04-27  Mike Stump  <mrs@apple.com>
21461         * doc/cpp.texi: gcc now implements universal character names.
21463 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
21465         PR c/21159
21466         * c-typeck.c (build_compound_expr): Don't warn for left-hand side
21467         being a compound expression whose right-hand side is cast to void.
21469 2005-04-27  Caroline Tice  <ctice@apple.com>
21471         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
21472         Remove targetm.have_named_sections test.
21473         (fix_edges_for_rarely_executed_code): Likewise.
21474         (insert_section_boundary_note): Likewise.
21475         (reorder_basic_blocks): Check partitioning flag before calling
21476         verify_hot_cold_block_grouping.
21477         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
21478         the function struct rather than global variables.
21479         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
21480         (COLD_END_LABEL): Likewise
21481         (cold_text_section_label): New static global variable.
21482         (cold_end_label): Likewise.
21483         (dwarf2out_switch_text_section): Get hot/cold section labels from
21484         the function struct rather than global variables; test to make sure
21485         cfun is defined.
21486         (output_aranges): Use cold_text_section_label and cold_end_label;
21487         check partitioning flag before putting out delta.
21488         (output_ranges): Remove incorrect code attempting to use
21489         hot/cold labels.
21490         (output_line_info): Get cold section label from function struct; test
21491         to make sure cfun is defined.
21492         (add_location_or_const_value_attribute): Likewise.
21493         (dwarf2out_var_location): Likewise.
21494         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
21495         write out cold_text_section_label if partition flag is set.
21496         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
21497         * function.h (struct function): Add new fields to point to hot/cold
21498         section labels: hot_section_label, cold_section_label,
21499         hot_section_end_label and cold_section_end_label; also add new field
21500         for cold text section name, unlikely_text_section_name.
21501         * opts.c (decode_options): Turn off partitioning flag if
21502         !targetm.have_named_sections.
21503         * output.h (hot_section_label): Remove.
21504         (hot_section_end_label): Remove.
21505         (cold_section_end_label): Remove.
21506         (unlikely_section_label): Remove.
21507         (unlikely_text_section_name): Remove.
21508         * passes.c (rest_of_handle_final): Remove extra blank line.
21509         * varasm.c (unlikely_section_label): Remove.
21510         (hot_section_label): Remove.
21511         (hot_section_end_label): Remove.
21512         (cold_section_end_label): Remove.
21513         (unlikely_text_section_name): Remove.
21514         (initialize_cold_section_name): Modify to call
21515         targetm.strip_name_encoding; to store cold section name in current
21516         function struct, if it exists; and to only use the decl_section_name
21517         if flag_named_sections is true.
21518         (unlikely_text_section): Modify to get section name out of current
21519         function struct, if there is one; otherwise build it from
21520         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
21521         (in_unlikely_text_section): Likewise.
21522         (named_section): Modify to get/put cold section name in current function
21523         struct, if there is one.
21524         (function_section): Change 'bool unlikely' to 'int reloc'; check
21525         targetm.have_named_sections before calling named_section.
21526         (current_function_section): Likewise.
21527         (assemble_start_function): Modify to get/put unlikely_text_section_name
21528         in current function struct; modify to get hot/cold section labels
21529         from function struct; initialize labels using
21530         ASM_GENERATE_INTERNAL_LABEL;
21531         test partitioning flag before writing out hot section label.
21532         (assemble_end_function): Test partitioning flag before writing out
21533         hot/cold section labels.
21534         (default_section_type_flags_1): Get cold text section name from
21535         function struct if there is one; Set flags correctly for
21536         cold text section if there is not a current function struct.
21538 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
21540         * tree-ssa-propagate.c (set_rhs): Revert last change.
21542 2005-04-27  Steve Ellcey  <sje@cup.hp.com>
21544         * explow.c (convert_memory_address): Add gcc_assert.
21546 2005-04-27  Mark Mitchell  <mark@codesourcery.com>
21548         * configure.ac: Check for ld --sysroot support.
21549         * gcc.c: Document %R specifier for specs.
21550         (SYSROOT_SPEC): New macro.
21551         (sysroot_spec): New variable.
21552         (static_specs): Add sysroot_spec.
21553         (main): Pass the sysroot spec to the linker if appropriate.
21554         * configure: Regenerated.
21555         * config.in: Likewise.
21557 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
21559         * fold-const.c (fold_binary): Use build_fold_addr_expr
21560         for address calculation and INDIRECT_REF handling.
21562 2005-04-27  Andrew Haley  <aph@redhat.com>
21564         * postreload-gcse.c (hash_scan_set): Remove bogus assertion.
21566 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
21568         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Reserve arm frame
21569         pointer when thumb backtracing is on.
21571         * config/fp-bit.c (abort): Revert change.
21573 2005-04-27  Ian Lance Taylor  <ian@airs.com>
21575         * c-semantics.c (add_stmt): Don't test STATEMENT_CODE_P.
21577 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
21579         * tree-ssa-dce.c: Fix a comment typo.
21581 2005-04-27  David S. Miller  <davem@davemloft.net>
21583         * explow.c (allocate_dynamic_stack_space SETJMP_VIA_SAVE_AREA):
21584         Kill setjmpless_size.  current_function_calls_setjmp is completely
21585         computed when we are called, so just use the optimized size value
21586         instead of using REG_SAVE_AREA notes.
21587         (optimize_save_area_alloca): Delete....
21588         * rtl.h (optimize_save_area_alloca): Likewise...
21589         * passes.c (rest_of_compilation): and don't call it any more.
21590         * reg-notes.def (SAVE_AREA): Delete.
21592 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
21594         * config/fp-bit.c (abort): Add noreturn attribute.
21596         * config/avr/avr.c (avr_naked_function_p): Use gcc_assert and
21597         gcc_unreachable as appropriate.
21598         (ptrreg_to_str, cond_string, avr_normalize_condition): Likewise.
21599         * config/avr/avr.h (ASM_OUTPUT_REG_PUSH,
21600         ASM_OUTPUT_REG_POP): Likewise.
21602 2005-04-27  Paolo Bonzini  <bonzini@gnu.org>
21604         * tree-complex.c (expand_vector_operations_1): Do not build
21605         VIEW_CONVERT_EXPR's for the lhs.
21607 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
21609         * config/pa/pa.h (PRINT_OPERAND_ADDRESS): Use gcc_assert, remove
21610         unnecessary noncanonical RTL handling.
21611         * config/pa/pa64-linux.h (INITIAL_ELIMINATION_OFFSET): Use
21612         gcc_assert and gcc_unreachable.
21614         * config/arm/arm.h (ARM_PRINT_OPERAND_ADDRESS): Use gcc_assert and
21615         gcc_unreachable as appropriate.
21616         (THUMB_PRINT_OPERAND_ADDRESS): Likewise.
21617         * config/arm/arm.c (arm_override_options, arm_compute_func_type,
21618         use_return_insn, const_ok_for_op, arm_gen_constant,
21619         arm_canonicalize_comparison, legitimize_pic_address,
21620         thumb_find_work_register, arm_load_pic_register, arm_rtx_costs_1,
21621         arm_cirrus_insn_p, cirrus_reorg, minmax_code,
21622         load_multiple_sequence, emit_ldm_seq, store_multiple_sequence,
21623         emit_stm_seq, arm_gen_movmemqi, arm_select_dominance_cc_mode,
21624         arm_select_cc_mode, arm_reload_in_hi, arm_reload_out_hi,
21625         move_minipool_fix_forward_ref, move_minipool_fix_backward_ref,
21626         dump_minipool, create_fix_barrier, push_minipool_fix, arm_reorg,
21627         fp_immediate_constant, fp_const_from_val, vfp_output_fstmx,
21628         output_call, output_mov_long_double_fpa_from_arm,
21629         output_mov_long_double_arm_from_fpa,
21630         output_mov_double_fpa_from_arm, output_mov_double_arm_from_fpa,
21631         output_move_double, arithmetic_instr, shift_op, int_log2,
21632         output_return_instruction, arm_output_function_prologue,
21633         arm_output_epilogue, arm_output_function_epilogue,
21634         emit_multi_reg_push, arm_get_frame_offsets,
21635         arm_compute_initial_elimination_offset, arm_expand_prologue,
21636         arm_print_operand, arm_assemble_integer, get_arm_condition_code,
21637         arm_final_prescan_insn, arm_init_iwmmxt_builtins,
21638         arm_expand_binop_builtin, thumb_pushpop, thumb_far_jump_used_p,
21639         thumb_compute_initial_elimination_offset,
21640         thumb_output_function_prologue, thumb_load_double_from_address,
21641         thumb_output_move_mem_multiple, thumb_reload_out_hi,
21642         arm_emit_vector_const, arm_dbx_register_number): Likewise.
21643         * config/arm/pe.c (arm_mark_dllexport, arm_mark_dllimport): Likewise.
21644         * config/arm/arm.md (thumb_extendhisi2,
21645         *thumb_extendhisi2_insn_v6, *thumb_extendqisi2,
21646         *thumb_extendqisi2_v6, movhi, *thumb_movhi_insn,
21647         thumb_movhi_clobber, movqi, *arm_buneq, *arm_bltgt,
21648         *arm_buneq_reversed, *arm_bltgt_reversed, suneq, sltgt): Likewise.
21649         * config/arm/cirrus.md (*cirrus_arm_movdi,
21650         *cirrus_movdf_hard_insn): Likewise.
21651         * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
21653 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
21655         * tree-flow.h (ssa_names): Change the type to VEC(tree,gc).
21656         (num_ssa_names): Use VEC_length.
21657         (ssa_names): Use VEC_index.
21658         * tree-ssanames.c (ssa_names): Change the type to
21659         VEC(tree,gc).
21660         (init_ssanames, fini_ssa_names, make_ssanames,
21661         release_ssa_name): Update uses of ssa_names.
21663         * dojump.c, emit-rtl.c, expmed.c, expr.c, stmt.c, stor-layout.c:
21664         Use fold_buildN instead of fold (buildN (...)).
21666 2005-04-27  Devang Patel <dpatel@apple.com>
21668         * dbxout.c (dbxout_type): Check use_gnu_debug_info_extensions.
21670 2005-04-27  Matt Thomas <matt@3am-software.com>
21671             Jan-Benedict Glaw <jbglaw@microdata-pos.de>
21673         * config/vax/vax.c (vax_rtx_costs): Whitespace cleanup.
21674         (vax_output_mi_thunk): Ditto.
21675         (vax_notice_cc_update): Ditto.
21676         (INDEX_REGISTER_P): Add trailing \.
21677         (BASE_REGISTER_P): Add trailing \.
21678         (legitimate_address_p): Whitespace cleanup.  Remove trailing \.
21680 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
21682         * tree-ssa-propagate.c (set_rhs): Check operand of
21683         ADDR_EXPR for gimpliness, too.
21685 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
21687         * tree-ssa-pre.c: Fix a comment typo.
21689 2005-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
21691         PR tree-optimization/21171
21692         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not
21693         record address uses if the reference is volatile.
21695 2005-04-27  Paolo Bonzini  <bonzini@gnu.org>
21697         * tree-complex.c (expand_vector_operation): New, extracted from
21698         expand_vector_operations_1.
21699         (tree_vec_extract): Build a NOP_EXPR.
21700         (expand_vec_parallel): Do not care about returning the correct type.
21701         (expand_vector_operations_1): Call expand_vector_operation.
21702         Build the VIEW_CONVERT_EXPR on the left side of MODIFY_EXPRs.
21704         * tree-complex.c (gate_expand_vector_operations): New.
21705         (pass_lower_vector_ssa): Use it.
21706         * tree-optimize.c (init_tree_optimization_passes): Include
21707         pass_lower_vector_ssa.
21708         * tree-vect-transform.c (vect_min_worthwhile_factor): New.
21709         (vectorizable_operation): Use it.
21710         * tree-vectorizer.c (get_vectype_for_scalar_type): Accept
21711         integer modes for the vector type.
21713         * defaults.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
21714         * tree-vect-analyze.c (vect_enhance_data_refs_alignment):
21715         Do not cope with UNITS_PER_SIMD_WORD == 0.
21716         * tree-vectorizer.c (get_vectype_for_scalar_type): Check
21717         if the scalar type is not bigger than UNITS_PER_SIMD_WORD.
21718         (vectorize_loops): Do not check that UNITS_PER_SIMD_WORD > 0.
21719         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
21720         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
21721         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
21722         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
21724         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): Remove.
21725         * config/bfin/bfin.h (UNITS_PER_SIMD_WORD): Remove.
21726         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): Remove.
21728         * doc/tm.texi (UNITS_PER_WORD): Rephrase more accurately.
21729         (UNITS_PER_SIMD_WORD): New.
21731 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
21733         * config/ia64/ia64.c (ia64_encode_addr_area): Use gcc_assert and
21734         gcc_unreachable as appropriate.
21735         (ia64_expand_load_address, ia64_expand_tls_address,
21736         ia64_split_tmode, ia64_split_tmode_move, ia64_expand_compare,
21737         ia64_expand_vecint_compare, ia64_expand_vecint_minmax,
21738         next_scratch_gr_reg, ia64_initial_elimination_offset,
21739         ia64_expand_prologue, ia64_expand_epilogue,
21740         ia64_output_dwarf_dtprel, ia64_print_operand,
21741         ia64_register_move_cost, first_instruction, rws_access_regno,
21742         update_set_flags, rtx_needs_barrier, group_barrier_needed_p,
21743         ia64_sched_init, ia64_variable_issue,
21744         ia64_first_cycle_multipass_dfs_lookahead_guard,
21745         ia64_dfa_new_cycle, issue_nops_and_insn, get_template, bundling,
21746         ia64_st_address_bypass_p, ia64_ld_address_bypass_p, process_set,
21747         process_for_unwind_directive, ia64_hpux_file_end): Likewise.
21748         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
21749         * config/ia64/ia64.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
21750         * config/ia64/predicates.md (got_symbolic_operand,
21751         sdata_symbolic_operand): Likewise.
21752         * config/ia64/vect.md (vcondv2sf): Likewise.
21754 2005-04-27  Matt Thomas <matt@3am-software.com>
21756         * config/vax/vax.c (legitimate_constant_address_p): New.  Formerly
21757         CONSTANT_ADDRESS_P in config/vax/vax.h
21758         (legitimate_constant_p): Added.  Formerly CONSTANT_P in vax.h.
21759         (INDEX_REGISTER_P): New.
21760         (BASE_REGISTER_P): New.
21761         (indirectable_constant_address_p): New.  Adapted from
21762         INDIRECTABLE_CONSTANT_ADDRESS_P in vax.h. Use SYMBOL_REF_LOCAL_P.
21763         (indirectable_address_p): New.  Adapted from
21764         INDIRECTABLE_ADDRESS_P in vax.h.
21765         (nonindexed_address_p): New.  Adapted from
21766         GO_IF_NONINDEXED_ADDRESS in vax.h.
21767         (index_temp_p): New.  Adapted from INDEX_TERM_P in vax.h.
21768         (reg_plus_index_p): New.  Adapted from GO_IF_REG_PLUS_INDEX in vax.h.
21769         (legitimate_address_p): New.  Adapted from
21770         GO_IF_LEGITIMATE_ADDRESS in vax.h.
21771         (vax_mode_dependent_address_p): New.  Adapted from
21772         GO_IF_MODE_DEPENDENT_ADDRESS in vax.h.
21773         * config/vax/vax.h (CONSTANT_ADDRESS_P): Use
21774         legitimate_constant_address_p.
21775         (CONSTANT_P): Use legitimate_constant_p.
21776         (INDIRECTABLE_CONSTANT_ADDRESS_P): Removed.
21777         (INDIRECTABLE_ADDRESS_P): Removed.
21778         (GO_IF_NONINDEXED_ADDRESS): Removed.
21779         (INDEX_TEMP_P): Removed.
21780         (GO_IF_REG_PLUS_INDEX): Removed.
21781         (GO_IF_LEGITIMATE_ADDRESS): Use legitimate_address_p. Two
21782         definitions, depending on whether REG_OK_STRICT is defined.
21783         (GO_IF_MODE_DEPENDENT_ADDRESS): Use vax_mode_dependent_address_p.
21784         Two definitions, depending on whether REG_OK_STRICT is defined.
21785         * config/vax/vax-protos.h (legitimate_constant_address_p): Prototype
21786         added.
21787         (legitimate_constant_p): Prototype added.
21788         (legitimate_address_p): Prototype added.
21789         (vax_mode_dependent_address_p): Prototype added.
21791 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
21793         * tree.h (phi_arg_d): Expand a comment in phi_arg_d.
21795 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
21797         PR c/21213
21798         * c-decl.c (finish_struct): Don't dereference NULL TYPE_FIELDS of
21799         transparent union.
21801 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
21803         PR c/20740
21804         * c-format.c (init_dynamic_asm_fprintf_info): Give errors, not
21805         assertion failures, if __gcc_host_wide_int__ is not properly
21806         defined.
21807         (init_dynamic_diag_info): Give errors, not assertion failures, if
21808         location_t, tree or __gcc_host_wide_int__ are not properly
21809         defined.
21811 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
21813         * tree-ssa-loop-ivopts.c (ivopts_data, decl_rtl_to_reset,
21814         n_iv_uses, iv_use, n_iv_cands, iv_cand,
21815         tree_ssa_iv_optimize_init, record_use, add_candidate_1,
21816         prepare_decl_rtl, free_loop_data,
21817         tree_ssa_iv_optimize_finalize): Use the VEC API instead of
21818         VARRAY.
21820         * tree.h (tree_phi_node): Add a comment about the order of PHI
21821         arguments.
21823 2005-04-26  Paul Brook  <paul@codesourcery.com>
21825         * config/arm/arm.md (thumb_mulsi3): Use two-operand assembly form.
21827 2005-04-26  Nathan Sidwell  <nathan@codesourcery.com>
21829         * config/mips.mips.c (mips_legitimize_tls_address): Use
21830         gcc_unreachable.
21832         * config/mmix/mmix.c (mmix_assemble_integer): Use gcc_assert.
21833         * config/mmix/crti.asm (_init): Reword comment to avoid 'abort'.
21834         * config/mmix/mmix.md (nonlocal_goto_receiver): Likewise.
21836         * config/sparc/sparc.h (enum reg_class): Reword comment to avoid
21837         'abort'.
21839 2005-04-26  Jeff Law  <law@redhat.com>
21841         * tree-flow-inline.h (op_iter_next_must_and_may_def): New.
21842         (op_iter_init_must_and_may_def): Likewise.
21843         (unmodifiable_var_p): Move to a later point in the file.
21844         * tree-ssa-operands.h (FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): New.
21845         * tree-ssa-dse.c (need_imm_uses_for): Remove, no longer needed.
21846         (dse_record_phis): Directly check for virtual operands rather than
21847         using need_imm_uses_for.
21848         (dse_optimize_stmt): Handle V_MUST_DEF operands.  Handle case where
21849         store has multiple V_{MAY,MUST}_DEF operands.
21851 2005-04-26  Andrew MacLeod  <amacleod@redhat.com>
21853         * tree-cfg.c (bsi_replace): Delink immediate uses for the original
21854         stmt.
21856 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
21858         * tree-cfg.c (lv_adjust_loop_header_phi): Speed up moving a
21859         call to find_edge outside a loop to go through a PHI chain.
21861 2005-04-26  Richard Guenther  <rguenth@gcc.gnu.org>
21863         PR tree-optimization/17598
21864         * fold-const.c (fold_binary): Fold comparisons of addresses
21865         of COMPONENT_REFs which reference the same field to
21866         comparisons of the addresses of the base objects.
21868 2005-04-26  Julian Brown  <julian@codesourcery.com>
21870         * config/arm/arm.c (arm_return_in_msb): New function.
21871         (arm_must_pass_in_stack): New function.
21872         (TARGET_RETURN_IN_MSB): Define target hook.
21873         (TARGET_MUST_PASS_IN_STACK): Define target hook.
21874         (arm_function_value): Pad small aggregate return.
21875         (arm_pad_arg_upward): New function.
21876         (arm_pad_reg_upward): New function.
21877         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Include complex values.
21878         (FUNCTION_ARG_PADDING): Define macro.
21879         (BLOCK_REG_PADDING): Define macro.
21880         (PAD_VARARGS_DOWN): Correct padding for AAPCS.
21881         * config/arm/arm-protos.h (arm_pad_arg_upward): Declare function.
21882         (arm_pad_reg_upward): Declare function.
21884 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
21886         * basic-block.h (ei_cond): New.
21887         (FOR_EACH_EDGE): Call ei_cond.
21889         PR tree-optimization/21047
21890         * fold-const.c (fold_binary): Abort on ASSERT_EXPR.
21891         (fold): Don't handle ASSERT_EXPR.
21893 2005-04-25  Roger Sayle  <roger@eyesopen.com>
21895         * sched-deps.c (sched_analyze_1): On STACK_REGS targets, x87, treat
21896         all writes to any stack register as a read/write dependency on
21897         FIRST_STACK_REG.
21898         (sched_analyze_2): Likewise, for reads from any stack register.
21900 2005-04-25  Richard Henderson  <rth@redhat.com>
21902         * final.c (output_addr_const): Revert 2005-04-09 change.
21904 2005-04-25  Mike Stump  <mrs@apple.com>
21906         * config/darwin.c (darwin_encode_section_info): Always set
21907         MACHO_SYMBOL_STATIC for all ! TREE_PUBLIC symbols.
21909 2005-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21911         * collect2.c, gcc.c, gcov-dump.c, gcov.c, gen-protos.c,
21912         gensupport.c, protoize.c, toplev.c: Replace calls to
21913         `unlock_stream' with `unlock_std_streams'.
21915 2005-04-25  Devang Patel <dpatel@apple.com>
21917         * dbxout.c (dbxout_type): Emit attribute vector.
21919 2005-04-05  Paul Brook  <paul@codesourcery.com>
21921         * target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
21922         * target.h (struct gcc_target): Add cxx.use_aeabi_atexit.
21923         * config/arm/arm.c (arm_cxx_atexit_name): New function.
21924         (TARGET_CXX_USE_AEABI_ATEXIT): New macro.
21925         * cp/decl.c (get_atexit_node): Reorder arguments for __aeabi_atexit.
21926         (register_dtor_fn): Likewise.
21927         * doc/tm.texi: Document TARGET_CXX_USE_AEABI_ATEXIT.
21929 2005-04-25  Ian Lance Taylor  <ian@airs.com>
21931         * c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
21932         * c-common.h (EXPR_STMT_EXPR): Don't define.
21933         (c_common_stmt_codes): Don't define.
21934         * c-dump.c (c_dump_tree): Remove EXPR_STMT case.
21935         * c-gimplify.c (gimplify_expr_stmt): Remove.
21936         (c_gimplify_expr): Remove EXPR_STMT case.
21937         * c-objc-common.c (c_objc_common_init): Remove stmt_codes and call
21938         to INIT_STATEMENT_CODES.
21939         * c-pretty-print.c (pp_c_statement): Just call dump_generic_node.
21941 2005-04-25  Jan Hubicka  <jh@suse.cz>
21943         * tree-cfg.c (tree_duplicate_bb): Duplicate EH region too.
21945         * except.c: Include diagnostic.h
21946         (dump_eh_tree, verify_eh_tree): New functions.
21947         * except.h (verify_eh_tree, dump_eh_tree, verify_eh_edges): Declare.
21948         * tree-cfg.c (tree_verify_flow_info): verify eh edges.
21949         (dump_function_to_file): dump eh tree.
21950         * tree-eh.c (mark_eh_edge): New function.
21951         (mark_eh_edge_found_error): New static variable.
21952         (verify_eh_edges): New function.
21954 2005-04-25  Nathan Sidwell  <nathan@codesourcery.com>
21956         * tree-ssa-alias.c (fieldoff_t): Remove.
21957         (fieldoff_s): typedef the structure itself.  Create a vector of
21958         objects.
21959         (push_fields_onto_fieldstack): Return count of fields pushed.
21960         Remove peeling of first field.  Adjust.
21961         (fieldoff_compare): Adjust.
21962         (create_overlap_variables_for): Adjust.
21964 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
21966         * doc/invoke.texi (Blackfin Options): Avoid empty @opindex line.
21968 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
21970         PR bootstrap/21215
21971         * doc/install.texi: Document correct assembler and linker to use
21972         on i?86-*-solaris2.10.
21974 2005-04-25  Steven Bosscher  <stevenb@suse.de>
21976         Fix PR tree-optimization/21173
21978         * tree-ssa-pre.c (create_expression_by_pieces): Simplify code.
21979         Unshare expression we pass to force_gimple_operand.
21981 2005-04-25  J"orn Rennecke <joern.rennecke@st.com>
21982             Stephen Clarke <stevec@superh.com>
21983             Roger Sayle <roger@eyesopen.com>
21985         PR rtl-optimization/20413
21986         * cfgrtl.c (redirect_edge_and_branch): Use Pmode instead of
21987         VOIDmode for LABEL_REF.
21988         * final.c (shorten_branches): Likewise.
21989         * jump.c (mark_all_labels, redirect_exp_1): Likewise.
21990         * loop.c (reg_dead_after_loop): Likewise.
21991         * varasm.c (decode_addr_const): Likewise.
21992         * doc/rtl.texi: Document mode requirement for LABEL_REF.
21994 2005-04-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
21996         * config.gcc (avr-*-*): Remove redundant "case".
21998 2005-04-25  Kazu Hirata  <kazu@cs.umass.edu>
22000         * tree-vect-analyze.c (vect_mark_relevant): Take
22001         VEC(tree,heap) instead of varray_type as an argument.
22002         (vect_mark_stmts_to_be_vectorized): Change the type of
22003         worklist to VEC(tree,heap).  Adjust uses of worklist.
22005 2005-04-24  Devang Patel  <dpatel@apple.com>
22007         *  config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
22009 2005-04-24  Ian Lance Taylor  <ian@airs.com>
22011         * c-semantics.c (build_stmt): Remove test of specific tree codes
22012         for TREE_SIDE_EFFECTS handling.
22014 2005-04-24  Per Bothner  <per@bothner.com>
22016         * c-opts.c (finish_options): Make the line-number of the <built-in>
22017         location 0, as assumed elsewhere, rather than 1.
22019 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
22021         * tree-ssa-uncprop.c (equiv_stack): Change the type o
22022         VEC(tree,heap).
22023         (tree_ssa_uncprop, uncprop_finalize_block,
22024         uncprop_initialize_block): Update uses of equiv_stack.
22026 2005-04-24  Richard Henderson  <rth@redhat.com>
22028         PR rtl-opt/21163
22029         * simplify-rtx.c (simplify_binary_operation) <IOR>: Check
22030         for SCALAR_INT_MODE_P instead of not MODE_CC before returning
22031         constm1_rtx.
22032         <AND, LSHIFTRT, UMIN>: Use CONST0_RTX.
22033         <UDIV, UMOD>: Use CONST0_RTX and CONST1_RTX.
22034         <DIV, MOD>: Likewise.
22036 2005-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22038         * collect2.c (main): Unlock the stdio streams.
22039         * gcc.c (main): Likewise.
22040         * gcov-dump.c (main): Likewise.
22041         * gcov.c (main): Likewise.
22042         * gen-protos.c (main): Likewise.
22043         * gensupport.c (init_md_reader_args_cb): Likewise.
22044         * protoize.c (main): Likewise.
22045         * toplev.c (general_init): Likewise.
22047 2005-04-24  Jakub Jelinek  <jakub@redhat.com>
22049         PR middle-end/20991
22050         * cgraph.h (cgraph_local_info): Add vtable_method field.
22051         * varasm.c (mark_decl_referenced): If cgraph_global_info_ready
22052         and node is vtable_method, finalized and not reachable, don't do
22053         anything.
22055 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
22057         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use
22058         COMPARISON_CLASS_P.
22059         * tree-ssa-pre.c (create_value_expr_from): Use
22060         CONSTANT_CLASS_P and REFERENCE_CLASS_P.
22061         * tree-ssa-propagate.c (stmt_makes_single_load,
22062         stmt_makes_single_store): Use REFERENCE_CLASS_P.
22063         * tree-vect-transform.c (vect_is_simple_cond): Use
22064         COMPARISON_CLASS_P.
22065         * tree-vrp.c (extract_range_from_assert,
22066         build_assert_expr_for, fp_predicate, has_assert_expr): Use
22067         COMPARISON_CLASS_P.
22069         * tree-ssa-live.c (build_tree_conflict_graph): Change the type
22070         of tpa_to_clear to VEC(int,heap).  Update uses of
22071         tpa_to_clear.  Free tpa_to_clear at the end.
22073 2005-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
22075         * tree.h (TREE_THIS_VOLATILE): Document the effect on a
22076         function decl.
22078 2005-04-24  Nathan Sidwell  <nathan@codesourcery.com>
22080         * config/rs6000/rs6000.c (rs6000_override_options): Use gcc_assert
22081         and gcc_unreachable as appropriate.
22082         (num_insns_constant, output_vec_const_move,
22083         build_mask64_2_operands, rs6000_output_dwarf_dtprel,
22084         rs6000_emit_set_const, rs6000_emit_move,
22085         spe_build_register_parallel, function_arg,
22086         rs6000_move_block_from_reg, altivec_expand_predicate_builtin,
22087         spe_expand_predicate_builtin, spe_expand_evsel_builtin,
22088         rs6000_expand_builtin, spe_init_builtins, altivec_init_builtins,
22089         rs6000_common_init_builtins, expand_block_clear,
22090         expand_block_move, validate_condition_mode, ccr_bit, extract_MB,
22091         extract_ME, rs6000_get_some_local_dynamic_name,
22092         rs6000_output_function_entry, print_operand,
22093         print_operand_address, rs6000_generate_compare, rs6000_emit_sCOND,
22094         output_cbranch, output_e500_flip_gt_bit,
22095         rs6000_emit_vector_compare, rs6000_emit_vector_compare,
22096         rs6000_emit_cmove, rs6000_emit_minmax, rs6000_split_multireg_move,
22097         compute_save_world_info, rs6000_stack_info,
22098         rs6000_emit_load_toc_table, rs6000_frame_related,
22099         spe_synthesize_frame_save, rs6000_emit_epilogue,
22100         rs6000_output_function_epilogue, rs6000_hash_constant, output_toc,
22101         output_function_profiler, rs6000_trampoline_size,
22102         rs6000_initialize_trampoline, find_addr_reg,
22103         rs6000_machopic_legitimize_pic_address,
22104         rs6000_initial_elimination_offset,
22105         rs6000_dbx_register_number): Likewise.
22106         * config/rs6000/rs6000.md (*fix_truncdfsi2_internal,
22107         *movdf_hardfloat32, *movdf_softfloat32, *fix_trunctfsi2_internal,
22108         *movti_power, *movti_string, call, call_value, sibcall,
22109         sibcall_value): Likewise.
22110         * config/rs6000/spe.md (*movdf_e500_double,
22111         *movv2si_internal): Likewise.
22112         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Remove 'abort'
22113         from comment.
22115 2005-04-24  Richard Henderson  <rth@redhat.com>
22117         PR target/21101
22118         * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Move guts to ...
22119         * config/i386/i386.c (ix86_cannot_change_mode_class): ... here.
22120         Deny modes smaller than 4 bytes.
22121         * config/i386/i386-protos.h: Update.
22123 2005-04-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
22125         * config.gcc (h8300-*-rtems*): Add h8300-*-rtemscoff*.
22126         Switch h8300-*-rtems* to ELF.
22128 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
22130         * vec.h (VEC_safe_grow): Replace grow with safe_grow.
22132 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
22134         * ipa-inline.c, tree-ssa-operands.h: Fix comment typos.
22136 2005-04-23  Richard Guenther  <rguenth@gcc.gnu.org>
22138         PR middle-end/21082
22139         * fold-const.c: Fold &a[i]-&a[j] to i-j.
22141 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
22143         * tree-ssa-loop-niter.c (tree_simplify_using_condition): Expand simple
22144         definitions of ssa names in condition.  Split recusive part to ...
22145         (tree_simplify_using_condition_1): New function.
22146         (expand_simple_operations): New function.
22148 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
22150         * tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
22151         (find_interesting_uses_cond): Do not use integer_zerop and
22152         integer_nonzerop to check for integer constants.
22153         (set_use_iv_cost): Record the value field.
22154         (determine_use_iv_cost_generic, determine_use_iv_cost_address,
22155         determine_use_iv_cost_outer): Set the value field of the cost pair.
22156         (may_eliminate_iv): Do not return the comparison code.
22157         (iv_elimination_compare): New function.
22158         (determine_use_iv_cost_condition): Set the value field.  Record
22159         noneliminable invariants correctly.
22160         (rewrite_use_compare, rewrite_use_outer): Use the value field.
22162 2005-04-23  DJ Delorie  <dj@redhat.com>
22164         * diagnostic.c (warning): Accept parameter to classify warning option.
22165         (warning0): New, for when a pointer to an error() like function is needed.
22166         * errors.c (warning): Likewise.
22167         * errors.h (warning, warning0): Adjust prototypes.
22168         * toplev.h (warning, warning0): Likewise.
22170         * attribs.c, builtins.c, c-common.c, c-decl.c, c-format.c,
22171         c-gimplify.c, c-lex.c, c-objc-common.c, c-opts.c, c-parser.c,
22172         c-pragma.c, c-typeck.c, calls.c, cgraph.c, coverage.c, emit-rtl.c,
22173         fold-const.c, fortran/trans-decl.c, function.c, gcse.c,
22174         genautomata.c, haifa-sched.c, opts.c, passes.c, regclass.c,
22175         reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
22176         tree-dump.c, tree-inline.c, tree-mudflap.c, tree-optimize.c,
22177         tree-ssa.c, tree.c, varasm.c: Adjust warning() callers.
22179         * config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
22180         config/avr/avr.c, config/bfin/bfin.c, config/c4x/c4x-c.c,
22181         config/c4x/c4x.c, config/cris/cris.c, config/darwin-c.c,
22182         config/darwin.c, config/darwin.h, config/h8300/h8300.c,
22183         config/i386/cygming.h, config/i386/djgpp.h, config/i386/i386.c,
22184         config/i386/winnt.c, config/ia64/ia64-c.c, config/ia64/ia64.c,
22185         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
22186         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.c,
22187         config/mmix/mmix.c, config/ns32k/ns32k.c, config/pa/pa-hpux11.h,
22188         config/pa/pa.c, config/rs6000/aix43.h, config/rs6000/aix51.h,
22189         config/rs6000/aix52.h, config/rs6000/darwin.h,
22190         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
22191         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
22192         config/sh/symbian.c, config/sol2-c.c, config/sol2.c,
22193         config/stormy16/stormy16.c, config/v850/v850-c.c,
22194         config/v850/v850.c, config/xtensa/xtensa.c: Adjust warning()
22195         callers.
22197 2005-04-23  Richard Henderson  <rth@redhat.com>
22199         PR rtl-opt/21102
22200         * simplify-rtx.c (simplify_binary_operation): Fix mode check before
22201         performing some integral scalar simplifications.
22203 2005-04-23  Richard Henderson  <rth@redhat.com>
22205         PR target/21099
22206         * config/i386/i386.c (ix86_split_to_parts): Use proper mode when
22207         simplifying CONST_VECTOR.
22209 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
22211         * tree-ssa-live.c (live_worklist): Take a stack allocated on
22212         heap as an argument.  Update uses of stack.
22213         (calculate_live_on_entry): Allocate stack on heap.
22215         * tree-ssa-live.c (build_tree_conflict_graph): Allocate
22216         partition_link and tpa_nodes on heap.
22218         * tree-ssa-dce.c (worklist): Change to VEC(tree,heap).
22219         (mark_stmt_necessary, propagate_necessity,
22220         mark_really_necessary_kill_operand_phis): Update uses of
22221         worklist.
22222         (tree_dce_init): Allocate worklist using VEC_alloc.
22223         (tree_dce_done): Free worklist using VEC_free.
22225 2005-04-23  Mike Stump  <mrs@apple.com>
22227         * config/darwin.c (machopic_indirection_name): Don't use
22228         quotes needlessly.
22229         (darwin_emit_unwind_label): Use user_label_prefix instead of
22230         "_".
22232 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
22234         * final.c, ipa-inline.c, varasm.c: Fix comment typos.
22236 2005-04-23  Hans-Peter Nilsson  <hp@axis.com>
22238         * config.gcc <cris-*>: Specify .opt files.
22239         * config/cris/cris.opt, config/cris/elf.opt, config/cris/aout.opt,
22240         config/cris/linux.opt: New files.
22241         * config/cris/aout.h (CRIS_SUBTARGET_SWITCHES)
22242         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
22243         (TARGET_ELF): Override to 0.
22244         (CRIS_SUBTARGET_HANDLE_OPTION): Override to handle -melinux and
22245         -melinux-stacksize=N.
22246         * config/cris/cris.c: (cris_handle_option): New function.
22247         (TARGET_DEFAULT_TARGET_FLAGS): Override.
22248         (TARGET_HANDLE_OPTION): Override to cris_handle_option.
22249         (cris_override_options): Use MASK_*, not TARGET_MASK_*.
22250         * config/cris/cris.h (TARGET_MASK_SVINTO, TARGET_SVINTO,
22251         (TARGET_MASK_CCINIT, TARGET_CCINIT, TARGET_MASK_PDEBUG)
22252         (TARGET_PDEBUG, TARGET_MASK_SIDE_EFFECT_PREFIXES)
22253         (TARGET_SIDE_EFFECT_PREFIXES, TARGET_MASK_EXPAND_MUL)
22254         (TARGET_EXPAND_MUL, TARGET_MASK_STACK_ALIGN, TARGET_STACK_ALIGN)
22255         (TARGET_MASK_CONST_ALIGN, TARGET_CONST_ALIGN)
22256         (TARGET_MASK_DATA_ALIGN, TARGET_DATA_ALIGN)
22257         (TARGET_MASK_PROLOGUE_EPILOGUE, TARGET_PROLOGUE_EPILOGUE)
22258         (TARGET_MASK_ETRAX4_ADD, TARGET_ETRAX4_ADD)
22259         (TARGET_MASK_ALIGN_BY_32, TARGET_ALIGN_BY_32, TARGET_MASK_ELF)
22260         (TARGET_ELF, TARGET_MASK_LINUX, TARGET_LINUX)
22261         (TARGET_MASK_AVOID_GOTPLT, TARGET_AVOID_GOTPLT)
22262         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG, TARGET_SWITCHES)
22263         (CRIS_SUBTARGET_SWITCHES, TARGET_OPTIONS)
22264         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
22265         (TARGET_LINUX): Define 0.
22266         (TARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
22267         (CRIS_SUBTARGET_DEFAULT): Define to 0, not TARGET_MASK_ELF.
22268         (CRIS_SUBTARGET_DEFAULT): New empty default macro.
22269         * config/cris/linux.h (CRIS_SUBTARGET_SWITCHES): Don't define.
22270         (TARGET_LINUX): Override to 1.
22271         (CRIS_SUBTARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
22273 2005-04-23  Nathan Sidwell  <nathan@codesourcery.com>
22275         * haifa-sched.c (schedule_block): Fix thinko in previous
22276         assertification patch.
22278 2005-04-23  Richard Sandiford  <rsandifo@redhat.com>
22280         * config.gcc (hppa[12]*-*-hpux10*): Add pa/pa-hpux.opt to
22281         $extra_options.  Also add pa/pa-hpux1010.opt for hpux10.[1-9]*.
22282         (hppa*64*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
22283         pa/pa-hpux.opt, pa/pa-hpux1010.opt and pa/pa64-hpux.opt to
22284         $extra_options.  Also add pa/pa-hpux1111.opt for hpux11.[1-9]*.
22285         (hppa[12]*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
22286         pa/pa-hpux.opt to $extra_options.  Also add pa/pa-hpux1111.opt
22287         for hpux11.[1-9]*.
22288         * config/pa/pa.h (architecture_type, rtx_def, pa_arch_string, pa_arch)
22289         (pa_fixed_range_string, pa_cpu_string, pa_unix_string, target_flags)
22290         (MASK_PA_11, MASK_DISABLE_FPREGS, TARGET_DISABLE_FPREGS)
22291         (MASK_NO_SPACE_REGS, TARGET_NO_SPACE_REGS, MASK_JUMP_IN_DELAY)
22292         (TARGET_JUMP_IN_DELAY, MASK_DISABLE_INDEXING, TARGET_DISABLE_INDEXING)
22293         (MASK_PORTABLE_RUNTIME, TARGET_PORTABLE_RUNTIME, MASK_GAS, TARGET_GAS)
22294         (MASK_SOFT_FLOAT, TARGET_SOFT_FLOAT, MASK_LONG_LOAD_STORE)
22295         (TARGET_LONG_LOAD_STORE, MASK_FAST_INDIRECT_CALLS)
22296         (TARGET_FAST_INDIRECT_CALLS, MASK_BIG_SWITCH, TARGET_BIG_SWITCH)
22297         (MASK_PA_20, MASK_SIO, TARGET_SIO, MASK_GNU_LD, TARGET_GNU_LD)
22298         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_PA_11, TARGET_PA_20)
22299         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS)
22300         (SUBTARGET_OPTIONS): Delete.
22301         (TARGET_PA_10): Redefine in terms of TARGET_PA_11 and TARGET_PA_20.
22302         (TARGET_SCHED_DEFAULT): Define to a PROCESSOR_* enum (PROCESSOR_8000)
22303         instead of a string.
22304         * config/pa/pa.c (pa_arch, pa_arch_string, pa_fixed_range_string)
22305         (pa_cpu_string, pa_unix_string): Delete.
22306         (pa_cpu): Initialize to TARGET_SCHED_DEFAULT.
22307         (flag_pa_unix): Initialize based on TARGET_HPUX_11_11 and
22308         TARGET_HPUX_10_10.
22309         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
22310         (pa_handle_option): New function.
22311         (override_options): Remove handling of -march=, -mfixed-range=,
22312         -mschedule= and -munix=.
22313         * config/pa/pa-hpux.h (SUBTARGET_SWITCHES): Delete.
22314         * config/pa/pa-hpux1010.h (SUBTARGET_OPTIONS): Delete.
22315         * config/pa/pa-hpux10.h (SUBTARGET_OPTIONS): Delete.
22316         * config/pa/pa-hpux1111.h (SUBTARGET_OPTIONS): Delete.
22317         * config/pa/pa-hpux11.h (SUBTARGET_OPTIONS): Delete.
22318         * config/pa/pa64-hpux.h (SUBTARGET_SWITCHES): Delete.
22319         * config/pa/pa64-start.h (TARGET_PA_11, TARGET_PA_20): #undef before
22320         redefining.
22321         * config/pa/pa.opt: New file.
22322         * config/pa/pa-hpux.opt: New file.
22323         * config/pa/pa-hpux1010.opt: New file.
22324         * config/pa/pa-hpux1111.opt: New file.
22325         * config/pa/pa64-hpux.opt: New file.
22327 2005-04-22  David S. Miller  <davem@davemloft.net>
22329         * rtl.h (CONST_DOUBLE): Fix comment, a CONST_DOUBLE holds an
22330         integer when it's mode is VOIDmode not DImode.
22332 2005-04-22  Geoffrey Keating  <geoffk@apple.com>
22334         * config/rs6000/rs6000.md (sync_add<mode>_internal,
22335         sync_addshort_internal, sync_sub<mode>_internal, sync_andsi_internal,
22336         sync_anddi_internal, sync_boolsi_internal, sync_booldi_internal,
22337         sync_boolc<mode>_internal, sync_boolc<mode>_internal2,
22338         sync_boolcc<mode>_internal, sync_lock_test_and_set<mode>): Use
22339         "bne- $-xxx" rather than local labels.
22340         (sync_lock_release<mode>): Add second operand.
22341         (lwsync): Use .long rather than a more meaningful opcode.
22342         * doc/md.texi (Standard Names): Add description of second
22343         parameter to sync_lock_test_and_set.
22345 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
22347         PR tree-optimization/21088
22348         * fold-const.c (fold_unary, fold_binary, fold_ternary):
22349         Export.
22350         * tree-vrp.c (compare_values): Use fold_binary to compare
22351         pointers.  Use boolean_type_node as the type of a comparison
22352         expression being folded.
22353         * tree.h: Add prototypes for fold_unary, fold_binary,
22354         fold_ternary.
22356         * tree-ssa-dom.c: Fix formatting.
22358 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
22360         * Makefile.in (tree-into-ssa.o): Add dependency on PARAMS_H.
22361         * lambda-code.c (perfect_nestify): Mark virtual operands in
22362         the moved statement for renaming.
22363         * params.def (PARAM_MIN_VIRTUAL_MAPPINGS): Define.
22364         (PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
22365         * params.h (MIN_VIRTUAL_MAPPINGS): Define.
22366         (VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
22367         * tree-flow.h (struct var_ann_d): Update comments.
22368         (rewrite_to_new_ssa_names_bb, rewrite_to_new_ssa_names,
22369         allocate_ssa_names, find_phi_node_for, dump_tree_ssa,
22370         debug_tree_ssa, debug_def_blocks, dump_tree_ssa_stats,
22371         debug_tree_ssa_stats, rewrite_ssa_into_ssa,
22372         dump_repl_tbl, debug_repl_tbl, dump_names_replaced_by,
22373         debug_names_replaced_by): Remove declarations.
22374         (delete_update_ssa, get_current_def, set_current_def): Declare.
22375         (rewrite_into_loop_closed_ssa): Add new argument.  Update
22376         all callers.
22377         * tree-into-ssa.c: Include params.h.
22378         (old_virtual_ssa_names): Remove.  Update all users.
22379         (need_to_replace_names_p): Remove.  Update all users.
22380         (struct update_ssa_stats_d): Declare.
22381         (update_ssa_stats): New local.
22382         (dump_tree_ssa, debug_tree_ssa, debug_def_blocks,
22383         dump_tree_ssa_stats, debug_tree_ssa_stats,
22384         dump_update_ssa, debug_update_ssa,
22385         dump_names_replaced_by, debug_names_replaced_by): Declare.
22386         (get_current_def, set current_def): Make extern.
22387         (is_old_name, is_new_name): Protect against references
22388         past the end of the sets.
22389         (add_new_name_mapping): Assert that OLD and NEW are
22390         different SSA names for the same symbol.
22391         When adding a virtual mapping, update stats for virtual
22392         mapping heuristic.
22393         (insert_phi_nodes_for): If UPDATE_P is true, create the
22394         LHS of the new PHI by duplicating SSA name VAR.
22395         (insert_phi_nodes_1): Remove.  Update all users.
22396         (insert_phi_nodes): Remove second argument.  Update all
22397         users.
22398         (maybe_replace_use, maybe_replace_def): New.
22399         (rewrite_update_stmt): Call them.
22400         (mark_def_interesting): Remove calls to is_gimple_reg.
22401         (prepare_phi_args_for_update): Remove.  Update all users.
22402         (prepare_block_for_update): Only process virtual operands
22403         and GIMPLE registers in normal form.
22404         (prepare_use_sites_for): New.
22405         (prepare_names_to_update): Rename from prepare_def_sites.
22406         Call prepare_use_sites_for.
22407         (dump_update_ssa): Rename from dump_repl_tbl.
22408         Update all users.
22409         Show statistics for virtual mapping heuristic.
22410         (debug_update_ssa): Rename from debug_debug_repl_tbl.
22411         (init_update_ssa): Initialize UPDATE_SSA_STATS.
22412         (delete_update_ssa): Make extern.
22413         (mark_set_for_renaming): If the set is empty, do nothing.
22414         (release_ssa_name_after_update_ssa): Update comment.
22415         (insert_updated_phi_nodes_for): Do not remove existing
22416         PHI nodes for symbols.
22417         (switch_virtuals_to_full_rewrite_p): New.
22418         (switch_virtuals_to_full_rewrite): New.
22419         (update_ssa): Call them.
22420         Clear REWRITE_THIS_STMT and REGISTER_DEFS_IN_THIS_STMT
22421         for every statement before updating.
22422         If all the names in NEW_SSA_NAMES have been marked for
22423         removal, do nothing.
22424         Only start at the top of the CFG if there are symbols in
22425         SYMS_TO_RENAME.
22426         (ssa_rewrite_finalize_block): Remove.
22427         (ssa_register_new_def): Remove.
22428         (ssa_rewrite_stmt): Remove.
22429         (ssa_rewrite_phi_arguments): Remove.
22430         (ssa_rewrite_initialize_block): Remove.
22431         (ssa_mark_def_sites): Remove.
22432         (ssa_mark_def_sites_initialize_block): Remove.
22433         (ssa_mark_phi_uses): Remove.
22434         (rewrite_ssa_into_ssa): Remove.
22435         * tree-phinodes.c (find_phi_node_for): Remove.
22436         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
22437         Call update_ssa.
22438         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops):
22439         Remove calls to verify_dominators and
22440         verify_loop_structure.
22441         (tree_unswitch_single_loop): Call update_ssa.
22442         * tree-ssa.c (verify_ssa): Assert that need_ssa_update_p
22443         returns false.
22444         Call verify_stmts.
22445         (delete_tree_ssa): Assert that need_ssa_update_p returns
22446         false.
22447         * tree-vect-transform.c (vect_transform_loop): Call update_ssa.
22448         * tree-vectorizer.c (allocate_new_names, rename_def_op,
22449         free_new_names): Remove.  Update all users.
22450         (rename_use_op): Call get_current_def.
22451         (rename_variables_in_bb): Do not handle any real or
22452         virtual definition.
22453         (slpeel_update_phis_for_duplicate_loop): Call
22454         get_current_def and set_current_def instead of using
22455         SSA_NAME_AUX.
22456         (slpeel_update_phi_nodes_for_guard2): Reformat comments.
22457         (slpeel_can_duplicate_loop_p): Call need_ssa_update_p,
22458         ssa_names_to_replace and delete_update_ssa.
22459         * doc/invoke.texi: Document --param min-virtual-mappings
22460         and --param virtual-mappings-ratio.
22462 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
22464         * tree-cfg.c (tree_duplicate_bb): Call create_new_def_for
22465         for newly created PHI nodes.
22466         Call create_new_def_for for every new V_MAY_DEF and
22467         V_MUST_DEF on the copied statement.
22468         (struct ssa_name_map_entry): Remove.
22469         (ssa_name_map_entry_hash): Remove.
22470         (ssa_name_map_entry_eq): Remove.
22471         (allocate_ssa_names): Remove.
22472         (rewrite_to_new_ssa_names_def): Remove.
22473         (rewrite_to_new_ssa_names_use): Remove.
22474         (rewrite_to_new_ssa_names_bb): Remove.
22475         (rewrite_to_new_ssa_names): Remove.
22476         (tree_duplicate_sese_region): Remove variables ver,
22477         definitions, phi, ssa_name_map and bi.
22478         Call need_ssa_update_p instead of any_marked_for_rewrite_p.
22479         Call update_ssa.
22480         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
22481         update_ssa instead of rewrite_ssa_into_ssa.
22482         * tree-ssa-loop-manip.c (add_exit_phis_edge): Call
22483         create_new_def_for.
22484         (find_uses_to_rename_use): Add argument 'need_phis'.
22485         (find_uses_to_rename_stmt): Do not scan virtual operands.
22486         (find_uses_to_rename): Only scan PHI nodes for
22487         non-virtual names.
22488         (rewrite_into_loop_closed_ssa): Call update_ssa.
22489         (check_loop_closed_ssa_use): Ignore virtual operands.
22490         (check_loop_closed_ssa_stmt): Likewise.
22491         (verify_loop_closed_ssa): Do nothing if CURRENT_LOOPS is
22492         NULL.
22493         (rename_variables, set_phi_def_stmts): Remove.
22494         (tree_duplicate_loop_to_header_edge): Reformat comment.
22495         Remove variables BB, I and DEFINITIONS.
22496         Call need_ssa_update_p.
22497         Call update_ssa.
22498         (lv_adjust_loop_header_phi): Reformat comment.
22499         * tree-ssanames.c (ssa_names_to_rewrite): Remove.
22500         (marked_for_rewrite_p, any_marked_for_rewrite_p,
22501         mark_for_rewrite, unmark_all_for_rewrite,
22502         marked_ssa_names): Remove.  Update all users.
22503         (release_ssa_name): If VAR has been registered for SSA
22504         updating, do nothing.
22505         * tree-vrp.c (new_ssa_names, old_ssa_names): Remove.
22506         (build_assert_expr_for): Call register_new_name_mapping.
22507         (insert_range_assertions): Update call to update_ssa.
22508         * tree.h (mark_for_rewrite, unmark_all_for_rewrite,
22509         marked_for_rewrite_p, any_marked_for_rewrite_p,
22510         marked_ssa_names): Remove.
22512 2005-04-22  Jeff Law  <law@redhat.com>
22514         * tree-ssa-dom.c (block_defs_stack): Remove, no longer needed.
22515         (restore_currdefs_to_original_value): Likewise.
22516         (register_definitions_for_stmt): Likewise.
22517         (tree_ssa_dominator_optimize): No longer initialize CURRENT_DEF
22518         for each variable.  Do not allocate/free block_defs_stack either.
22519         Do not iterate if we just thread jumps.  Only iterate if the
22520         tree_cleanup_cfg does useful work (temporary).
22521         (dom_opt_initialize_block): No longer push a marker on
22522         BLOCK_DEFS_STACK.
22523         (dom_opt_finalize_block): Removal call to restore currdefs.
22524         Relax restrictions for recording edge equivalences.
22525         (record_equivalences_from_phis): No longer need to track
22526         CURRENT_DEF.
22527         (optimize_stmt): Similarly.
22528         (thread_across_edge): Simplify by removing the requirement that
22529         statements in the block we are threading through must be nops.
22530         (initialize_hash_element): Handle GOTO_EXPR.
22532 2005-04-22  David S. Miller  <davem@davemloft.net>
22534         * sched-vis.c (print_value): Use CONST_DOUBLE_LOW and
22535         CONST_DOUBLE_HIGH.
22536         * config/sparc/sparc.c (sparc_rtx_costs): Likewise, and
22537         fix check on CONST_DOUBLE mode.  It should be VOIDmode
22538         when it is representing an integer.
22540 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
22542         * builtins.c (gimplify_va_arg_expr): Reword comments to avoid
22543         'abort'. Use gcc_assert and gcc_unreachable as appropriate.
22544         * c-format.c (get_constant, decode_format_attr, get_flag_spec,
22545         find_char_info_specifier_index,
22546         find_length_info_modifier_index): Likewise.
22547         * c-typeck.c (composite_type, pop_init_level): Likewise.
22548         * combine.c (cant_combine_insn_p, try_combine): Likewise.
22549         * cse.c (cse_insn): Likewise
22550         * dominance.c (calc_dfs_tree): Likewise
22551         dwarf2out.c (loc_descriptor_from_tree_1,
22552         add_abstract_origin_attribute, force_decl_die,
22553         force_type_die): Likewise
22554         emit-rtl.c (operand_subword_force): Likewise
22555         explow.c (hard_function_value): Likewise
22556         expmed.c (store_bit_field, expand_divmod,
22557         emit_store_flag_force): Likewise
22558         expr.c (emit_move_multi_word, store_expr,
22559         expand_expr_real_1): Likewise
22560         final.c (this_is_asm_operands, shorten_branches, final_scan_insn,
22561         output_operand): Likewise
22562         flow.c (recompute_reg_usage): Likewise
22563         * function.c (assign_stack_temp_for_type, assign_temp,
22564         handle_epilogue_set): Likewise
22565         * genextract.c (main): Likewise
22566         * gimplify.c (mostly_copy_tree_r, gimplify_return_expr,
22567         gimplify_modify_expr_rhs, gimplify_expr): Likewise
22568         * haifa-sched.c (ready_lastpos, ready_remove_first, ready_element,
22569         ready_remove, rm_line_notes, rm_other_notes,
22570         schedule_block): Likewise
22571         mips-tfile.c (copy_object, out_of_bounds): Likewise
22573 2005-04-22 David Edelsohn  <edelsohn@gnu.org>
22575         PR target/20813
22576         * config/rs6000/default64.h (TARGET_DEFAULT): Add MASK_PPC_GFXOPT.
22577         * config/rs6000/rs6000.c (processor_target_table): Rename rs64a to
22578         rs64.  Add MASK_PPC_GFXOPT to powerpc64 and rs64.
22579         (rs6000_init_libfuncs): Set TFmode optabs to xlq names if
22580         TARGET_XL_COMPAT.
22581         * doc/invoke.texi (PowerPC options): Change rs64a to rs64.
22583 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
22585         * lambda-code.c: Define VEC(int,heap), VEC(lambda_loop,heap).
22586         (gcc_tree_to_linear_expression): Convert to heap allocated
22587         vectors.
22588         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
22589         lbv_to_gcc_expression, lle_to_gcc_expression,
22590         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
22591         perfect_nestify): Likewise.
22592         lambda.h (gcc_loopnest_to_lambda_loopnest,
22593         lambda_loopnest_to_gcc_loopnest): Likewise.
22594         tree-loop-linear.c (linear_transform_loops): Likewise.
22596 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
22598         * config/sparc/predicates.md (arith_double_operand): Use
22599         trunc_int_for_mode if HOST_BITS_PER_WIDE_INT >=64.
22600         * config/sparc/sparc.md (movqi, movhi, movsi, movqi): Use gen_int_mode.
22601         (DImode, DFmode constant splitters): Likewise.  Remove code for
22602         TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT < 64.
22603         (logical constant splitters): Use const_int_operand predicate.
22604         (lshrsi3_extend): Remove code for TARGET_ARCH64 &&
22605         HOST_BITS_PER_WIDE_INT < 64.
22607 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
22609         * config/pa/pa.c (legitimize_pic_address): Use gcc_assert and
22610         gcc_unreachable as appropriate.
22611         (force_mode, emit_move_sequence, singlemove_string,
22612         output_move_double, output_fp_move_double, find_addr_reg,
22613         output_block_move, output_block_clear, output_and,
22614         output_64bit_and, output_ior, output_64bit_ior, store_reg_modify,
22615         pa_adjust_cost, pa_issue_rate, print_operand,
22616         output_global_address, output_arg_descriptor, output_cbranch,
22617         output_lbranch, output_bb, output_bvb, output_dbra, output_movb,
22618         output_call): Likewise.
22619         * config/pa/pa.md (call, call_value, sibcall, sibcall_value,
22620         prefetch, prefetch_cc, prefetch_nocc): Likewise.
22622 2005-04-22  Zdenek Dvorak  <dvorakz@suse.cz>
22624         * Makefile.in (LIBGCOV): Add _gcov_interval_profiler,
22625         _gcov_pow2_profiler and _gcov_one_value_profiler.
22626         (tree-profile.o): Add GGC_H and gt-tree-profile.h dependency.
22627         (GTFILES): Add $(srcdir)/tree-profile.c.
22628         * gcov-io.h (__gcov_interval_profiler, __gcov_pow2_profiler,
22629         __gcov_one_value_profiler): Declare.
22630         * gimplify.c (force_gimple_operand): Check whether the statements
22631         should be produced in ssa form.
22632         (force_gimple_operand_bsi): New function.
22633         * libgcov.c (__gcov_interval_profiler, __gcov_pow2_profiler,
22634         __gcov_one_value_profiler): New functions.
22635         * rtl-profile.c (rtl_gen_pow2_profiler): Only measure whether
22636         the profiled value is a power of two or not.
22637         * tree-cfg.c (tree_block_ends_with_condjump_p): Handle empty blocks.
22638         * tree-flow.h (in_ssa_p): Declare.
22639         (force_gimple_operand_bsi): Declare.
22640         * tree-into-ssa.c (in_ssa_p): New variable.
22641         (rewrite_into_ssa): Set in_ssa_p.
22642         * tree-outof-ssa.c (rewrite_out_of_ssa): Set in_ssa_p.
22643         * tree-profile.c: Include ggc.h and gt-tree-profile.h.
22644         (gcov_type_node, tree_interval_profiler_fn, tree_pow2_profiler_fn,
22645         tree_one_value_profiler_fn): New variables.
22646         (tree_init_edge_profiler): Initialize the profiler function decls.
22647         (tree_gen_edge_profiler): Use global gcov_type_node.
22648         (prepare_instrumented_value): New function.
22649         (tree_gen_interval_profiler, tree_gen_interval_profiler,
22650         tree_gen_one_value_profiler): Call the library functions instead of
22651         creating instrumentation code.
22652         * tree.c (build_fn_decl): New function.
22653         * tree.h (build_fn_decl): Declare.
22654         * value-prof.c (rtl_divmod_values_to_profile,
22655         rtl_find_values_to_profile, rtl_mod_pow2_value_transform,
22656         tree_mod_pow2_value_transform, tree_find_values_to_profile):
22657         Do not handle may_be_other and precise values of exponents at pow2
22658         profiler.
22659         (tree_mod_subtract_transform): Reflect that value field of
22660         histogram has changed meaning.
22661         (tree_divmod_values_to_profile): Record the values correctly.
22662         (tree_values_to_profile): Update comment.
22663         * value-prof.h (struct histogram_value_t): Remove pow2 data.
22665 2005-04-22  Joseph S. Myers  <joseph@codesourcery.com>
22667         * varasm.c (do_assemble_alias): Return early if TREE_ASM_WRITTEN
22668         (decl).
22670 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
22672         * config/i386/i386.md (length_immediate): Use gcc_assert or
22673         gcc_unreachable, as appropriate.
22674         (*movsi_1, *movqi_1, reload_outqi, *movdi_1_rex64, *pushsf,
22675         *pushsf_rex64, *truncxfsf2_mixed, *truncxfsf2_i387,
22676         *truncxfdf2_mixed, *truncxfdf2_i387, *adddi_1_rex64,
22677         *adddi_2_rex64, *adddi_3_rex64, *adddi_4_rex64, *adddi_5_rex64,
22678         *addsi_1, addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
22679         *addsi_3_zext, *addsi_4, *addsi_5, *addhi_1_lea, *addhi_1,
22680         *addhi_2, *addhi_3, *addhi_4, *addhi_5, *addqi_1_lea, *addqi_1,
22681         *addqi_1_slp, *addqi_2, *addqi_3, *addqi_4, *addqi_5, addqi_ext_1,
22682         *addqi_ext_1_rex64, *anddi_1_rex64, *andsi_1, *andhi_1,
22683         *ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashlsi3_1, *ashlsi3_1_zext,
22684         *ashlsi3_cmp, *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1,
22685         *ashlhi3_cmp, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
22686         pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64,
22687         pro_epilogue_adjust_stack_rex64_2, prefetch, *prefetch_sse,
22688         *prefetch_sse_rex): Likewise.
22689         * config/i386/predicates.md (x86_64_immediate_operand,
22690         x86_64_zext_immediate_operand, symbolic_operand,
22691         no_seg_address_operand, aligned_operand,
22692         memory_displacement_operand): Likewise.
22693         * config/i386/sse.md (*mov<mode>_internal,
22694         *movv2df_internal): Likewise.
22696 2005-04-22  Jan Hubicka  <jh@suse.cz>
22698         * Makefile.in (ipa.o, ipa-inline.o): New files.
22699         * cgraph.h (cgraph_remove_unreachable_nodes, cgraph_postorder,
22700         cgraph_decide_inlining_incrementally, cgraph_clone_inlined_nodes,
22701         cgraph_mark_inline_edge, cgraph_default_inline_p): Declare.
22702         * cgraphunit.c (cgraph_default_inline_p,
22703         cgraph_decide_inlining_incrementally,  ncalls_inlined,
22704         nfunctions_inlined, initial_insns, overall_insns,
22705         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
22706         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
22707         cgraph_mark_inline, cgraph_check_inline_limits,
22708         cgraph_default_inline_p, cgraph_recursive_inlining_p,
22709         update_callee_keys, lookup_recursive_calls,
22710         cgraph_decide_recursive_inlining, cgraph_set_inline_failed,
22711         cgraph_decide_inlining_of_small_functions, cgraph_decide_inlining,
22712         cgraph_decide_inlining_incrementally, cgraph_gate_inlining,
22713         pass_ipa_inline): Move to ipa-inline.c
22714         (cgraph_postorder, cgraph_remove_unreachable_nodes): Move to ipa.c
22715         * ipa.c: New file.
22716         * ipa-inline.c: New file.
22718 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
22720         * doc/invoke.texi (SPARC options): Document that -mapp-regs
22721         is turned off by default on Solaris.
22723 2005-04-21  Roger Sayle  <roger@eyesopen.com>
22725         * c-common.h (objc_build_method_signature): Update prototype.
22726         * stub-objc.c (objc_build_method_signature): Update the stub
22727         implementation to accept and ignore additional parameter.
22728         * c-parser.c (c_parser_objc_method_decl): Reorgnize to pass
22729         the value of ellipsis to objc_build_method_signature instead
22730         of setting TREE_OVERFLOW on the parms TREE_LIST node.
22732 2005-04-21  Geoffrey Keating  <geoffk@apple.com>
22734         * config/rs6000/rs6000-protos.h (rs6000_emit_sync): New.
22735         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Use
22736         gen_rtx_* not gen_rtx_fmt_*.
22737         (rs6000_emit_vector_select): Likewise.
22738         (rs6000_emit_sync): New.
22739         * config/rs6000/rs6000.md (GPR, INT, INT1): New mode macros.
22740         (larx, stcx, cmp): New mode substitutions.
22741         (UNSPEC_SYNC, UNSPEC_SYNC_OP, UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC,
22742         UNSPEC_ISYNC): New constants.
22743         (rlwinm): Give name.
22744         (memory_barrier, isync, lwsync): New insns.
22745         (sync_compare_and_swap<mode>, sync_lock_test_and_set<mode>): New insn.
22746         (sync_lock_release<mode>): New expander.
22747         (sync_add<mode>, sync_sub<mode>, sync_ior<mode>, sync_and<mode>,
22748         sync_xor<mode>, sync_nand<mode>, sync_old_add<mode>,
22749         sync_old_sub<mode>, sync_old_ior<mode>, sync_old_and<mode>,
22750         sync_old_xor<mode>, sync_old_nand<mode>, sync_new_add<mode>,
22751         sync_new_sub<mode>, sync_new_ior<mode>, sync_new_and<mode>,
22752         sync_new_xor<mode>, sync_new_nand<mode>): New expanders.
22753         (sync_add<mode>_internal, sync_addshort_internal,
22754         sync_sub<mode>_internal, sync_andsi_internal, sync_anddi_internal,
22755         sync_boolsi_internal, sync_booldi_internal, sync_boolc<mode>_internal,
22756         sync_boolc<mode>_internal2, sync_boolcc<mode>_internal): New insns.
22758         * doc/md.texi (Standard Names): sync_compare_and_swap's operand 0
22759         is the memory before, not after, the operation.  Clarify
22760         barrier requirements.
22762 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
22764         * cfghooks.h (struct cfg_hooks): Reword comments to avoid 'abort'.
22765         * lambda.h (lambda_vector_min_nz): Likewise.
22766         * langhooks.h (struct lang_hooks_for_types,
22767         struct lang_hooks): Likewise.
22768         * output.h (assemble_integer, this_is_asm_operands): Likewise.
22769         * tree.h: Likewise.
22770         * vec.h: Likewise.
22771         * tree-flow-inline.h (relink_imm_use): Use gcc_assert.
22773         * optabs.c (prepare_cmp_insn, emit_cmp_and_jump_insns): Reword
22774         comments to avoid 'abort'.  Use gcc_assert as necessary.
22775         * opts.c (common_handle_option): Likewise.
22776         * pretty-print.c (pp_base_format_text): Likewise.
22777         * print-rtl.c (print_rtx): Likewise.
22778         * read-rtl.c (read_rtx_filename, read_rtx_1): Likewise.
22779         * regmove.c (try_auto_increment): Likewise.
22780         * reload.c (find_valid_class, find_reloads_toplev,
22781         find_equiv_reg): Likewise.
22782         * reload1.c (reload, forget_old_reloads_1, function_invariant_p,
22783         merge_assigned_reloads): Likewise.
22784         * tree-inline.c (inline_forbidden_p_1,
22785         estimate_num_insns_1): Likewise.
22786         * tree-optimize.c (execute_todo): Likewise.
22787         * tree-outof-ssa.c (eliminate_phi): Likewise.
22788         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
22789         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Likewise.
22790         * tree-ssa-operands.c (parse_ssa_operands,
22791         get_indirect_ref_operands, create_ssa_artficial_load_stmt): Likewise.
22792         * tree-ssa-pre.c (find_or_generate_expression): Likewise.
22793         * tree-ssanames.c (release_ssa_name): Likewise.
22794         * tree.c (int_bit_position, int_byte_position, tree_low_cst,
22795         walk_tree): Likewise.
22797         * tree-ssa-operands.c (verify_abort): Fold into ..
22798         (verify_imm_links): ... here.
22800 2005-04-21  Richard Henderson  <rth@redhat.com>
22802         * config/alpha/sync.md (sync_new_nand<I48MODE>): Fix constraints
22803         on non-memory operand for previous inversion.
22805 2005-04-21  Devang Patel  <dpatel@apple.com>
22807         PR optimization/20994
22808         * tree-if-conv.c (find_phi_replacement_condition): Avoid generating
22809         x = !(a == b) : p , q;.
22810         (pass_if_conversion): Verify stmts and flow.
22812 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
22814         * optabs.c (gen_conditional_trap): Restore #define.
22816         * alias.c (true_dependence): Remove 'abort' from comments. Use
22817         gcc_assert and gcc_unreachable as appropriate.
22818         (canon_true_dependence): Likewise.
22819         * bb-reorder.c (connect_traces): Likewise.
22820         * c-common.c (c_add_case_label): Likewise.
22821         * c-decl.c (finish_function): Likewise.
22822         * caller-save.c (insert_restore, insert_save): Likewise.
22823         * cfg.c (update_bb_profile_for_threading): Likewise.
22824         * cfganal.c (flow_active_insn_p): Likewise.
22825         * cfgexpand.c (add_reg_br_prob_note): Likewise.
22826         * cfgrtl.c (rtl_redirect_edge_and_branch_force, rtl_split_edge,
22827         cfg_layout_merge_blocks): Likewise.
22828         * ifcvt.c (cond_exec_process_insns, merge_if_block,
22829         find_if_block): Likewise.
22830         * integrate.c (allocate_initial_values): Likewise.
22831         * jump.c (reverse_condition, reverse_condition_maybe_unordered,
22832         swap_condition, unsigned_condition, signed_condition,
22833         mark_jump_label, invert_jump_1, rtx_renumbered_equal_p,
22834         reg_or_subregno): Likewise.
22835         * lambda-code.c (lambda_compute_auxillary_space,
22836         lambda_transform_legal_p): Likewise.
22837         * lambda-mat.c (lambda_matrix_inverse_hard): Likewise.
22838         * langhooks.c (lhd_set_decl_assembler_name, lhd_type_promotes_to,
22839         lhd_incomplete_type_error, lhd_expand_expr,
22840         lhd_types_compatible_p, lhd_tree_size): Likewise.
22841         * lcm.c (create_pre_exit, optimize_mode_switching): Likewise.
22842         * local-alloc.c (update_equiv_regs): Likewise.
22843         * loop-unroll.c (peel_loop_completely
22844         unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
22845         peel_loop_simple, unroll_loop_stupid,
22846         analyze_iv_to_split_insn): Likewise.
22847         * loop.c (gen_prefetch, find_and_verify_loops,
22848         basic_induction_var): Likewise.
22849         * modulo-sched.c (normalize_sched_times, check_nodes_order): Likewise.
22850         * value-prof.c (tree_find_values_to_profile): Likewise.
22851         * varasm.c (named_section, default_assemble_integer,
22852         decode_addr_const): Likewise.
22854 2005-04-21 Alan Modra  <amodra@bigpond.net.au>
22855            Fariborz Jahanian <fjahanian@apple.com>
22857         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Fix size of
22858         portion of argument passed in fpr.
22859         * expr.c (emit_push_insn): Fix computation of 'offset' used to
22860         decide on partial argument save on stack.
22862 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
22864         * config/sparc/predicates.md, config/sparc/sparc.md: Fix
22865         comment typos.
22867 2005-04-21  Jan Hubicka  <jh@suse.cz>
22869         * cgraphunit.c: Include tree-pass.h
22870         (cgraph_decide_recursive_inlining,
22871         cgraph_decide_inlining_of_small_function, cgraph_set_inline_failed,
22872         cgraph_decide_inlining): Dump goes to dump_file.
22873         (cgraph_optimize): Call ipa passes instead of inliner.
22874         (cgraph_gate_inlining, pass_ipa_inline): New.
22875         * tree-optimize.c (all_ipa_passes): New static variable.
22876         (register_one_dump_file): Dead with IPA passes.
22877         (register_dump_files): Likewise.
22878         (init_tree_optimization_passes): Initialize IPA passes.
22879         (execute_todo): Do cgraph dump when asked to, do not dump function body
22880         for IPA pass.
22881         * tree-pass.h (TODO_dump_cgraph): New macro.
22882         (ipa_passes): Declare.
22883         * Makefile.in (cgraphunit.o): Add dependency on cgraphunit.h
22885 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
22887         * config/i386/i386.c (type_natural_mode): Use gcc_unreachable and
22888         gcc_assert instead of abort.
22889         (classify_argument, examine_argument, construct_container,
22890         contains_128bit_aligned_vector_p, ix86_check_movabs,
22891         standard_80387_constant_opcode, standard_80387_constant_rtx,
22892         ix86_initial_elimination_offset, ix86_compute_frame_layout,
22893         pro_epilogue_adjust_stack, ix86_expand_epilogue,
22894         ix86_address_cost, legitimate_address_p, legitimize_pic_address,
22895         legitimize_tls_address, output_pic_addr_const,
22896         i386_output_dwarf_dtprel, put_condition_code, print_reg,
22897         get_some_local_dynamic_name, print_operand, print_operand_address,
22898         output_387_binary_op, emit_i387_cw_initialization,
22899         output_fix_trunc, output_fp_compare, ix86_output_addr_vec_elt,
22900         ix86_expand_clear, ix86_expand_binary_operator,
22901         ix86_expand_unary_operator, ix86_match_ccmode, ix86_cc_mode,
22902         ix86_cc_modes_compatible, ix86_fp_comparison_codes,
22903         ix86_fp_comparison_arithmetics_cost, ix86_expand_fp_compare,
22904         ix86_expand_branch, ix86_expand_setcc,
22905         ix86_expand_carry_flag_compare, ix86_expand_fp_movcc,
22906         ix86_expand_int_addcc, ix86_split_to_parts, ix86_split_long_move,
22907         ix86_expand_movmem, ix86_expand_call, assign_386_stack_local,
22908         memory_address_length, ix86_attr_length_immediate_default,
22909         ix86_attr_length_address_default, ix86_agi_dependant,
22910         x86_initialize_trampoline, ix86_init_mmx_sse_builtins,
22911         ix86_expand_binop_builtin, ix86_force_to_memory,
22912         ix86_secondary_memory_needed, ix86_avoid_jump_misspredicts,
22913         x86_emit_floatuns): Likewise.
22914         * config/i386/netware.c (gen_regparm_prefix,
22915         i386_nlm_strip_name_encoding): Likewise.
22916         * config/i386/winnt.c (i386_pe_mark_dllexport): Likewise.
22918 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
22920         * optabs.c (gen_condiational_trap): Remove #define.
22921         (add_equal_note): Assertify. Remove explicit indirection from
22922         call via function pointer.
22923         (expand_ternary_op, expand_simple_binop, expand_binop,
22924         expand_twoval_unop, expand_twoval_binop,
22925         expand_twoval_binop_libfunc, expand_simple_unop expand_unop,
22926         emit_unop_insn,  emit_no_conflict_block,  prepare_cmp_insn,
22927         prepare_operand emit_cmp_and_jump_insn_1, emit_cmp_and_jump_insns,
22928         prepare_float_lib_cmp, emit_conditional_move,
22929         emit_conditional_add, gen_add2_insn, gen_add3_insn,
22930         have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn,
22931         expand_float, expand_fix, debug_optab_libfuncs, gen_cond_trap,
22932         vector_compare_rtx, expand_vec_cond_expr): Likewise.
22934 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
22936         * vec.h: Update API to separate allocation mechanism from type.
22937         (VEC_safe_grow): New.
22938         * vec.c (calculate_allocation): New.
22939         (vec_gc_o_reserve, vec_heap_o_reserve): Adjust.
22940         (vec_gc_free, vec_heap_free): Remove.
22941         * gengtype-lex.l (DEF_VEC_): Process mult-argument macros.  Adjust.
22942         (VEC): Likewise.
22943         (mangle_macro_name): New.
22944         (struct macro_def): New.
22945         (struct macro): Add multiple argument values.
22946         (macro_expans_end): New.
22947         (push_macro_expansion): Chain on new macro. Process multiple
22948         args, create follow on expansion. Return follow on argument.
22949         (macro_input): Deal with multiple arguments.
22951         * tree.h: Define VEC(tree,heap) and VEC(tree,gc).
22952         (struct tree_binfo): Adjust.
22953         * basic-block.h: Define VEC(edge,gc).
22954         (struct edge_def): Adjust.
22955         (struct basic_block_def, struct edge_iterator): Likewise.
22956         (ei_container, ei_start_1, ei_last_1): Likewise.
22957         * cfg.c (connect_src, connect_dest): Likewise.
22958         * cfgrtl.c (force_nonfallthru_and_redirect)
22959         * dbxout.c (dbxout_type)
22960         * dwarf2out.c (gen_member_die)
22961         * lambda-code.c: Define VEC(int,gc), VEC(lambda_loop,gc).
22962         (gcc_tree_to_linear_expression): Adjust.
22963         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
22964         lbv_to_gcc_expression, lle_to_gcc_expression,
22965         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
22966         perfect_nestify): Likewise.
22967         * lambda.h (gcc_loopnest_to_lambda_loopnest,
22968         lambda_loopnest_to_gcc_loopnest): Adjust prototypes.
22969         * profile.c (instrument_values): Adjust.
22970         * tree-cfg.c (modified_noreturn_calls): Adjust.
22971         (remove_fallthru_edge): Likewise.
22972         * tree-dump.c (dequeue_and_dump): Adjust.
22973         * tree-flow-inline.h (mark_stmt_modified): Adjust.
22974         * tree-flow.h (modified_noreturn_calls): Adjust.
22975         (tree_on_heap): Remove. (yay!)
22976         (register_new_def): Adjust.
22977         * tree-into-ssa.c: Define VEC(int,heap).
22978         (block_defs_stack): Adjust.
22979         (find_idf, insert_phi_nodes, register_new_def,
22980         rewrite_initialize_block, rewrite_finalize_block,
22981         register_new_update_single, rewrite_update_init_block,
22982         rewrite_update_fini_block, rewrite_blocks,
22983         ssa_rewrite_finalize_block, ssa_register_new_def,
22984         ssa_rewrite_initialize_block, rewrite_ssa_into_ssa): Likewise.
22985         * tree-loop-linear.c (linear_transform_loops): Adjust.
22986         * tree-ssa-alias.c: Define VEC(fieldoff_t,heap).
22987         (push_fields_onto_fieldstack, create_overlap_variables_for): Adjust.
22988         * tree-ssa-dom.c (avail_exprs_stack, block_defs_stack,
22989         stmts_to_rescan, const_and_copies_stack, nonzero_vars_stack,
22990         vrp_variables_stack): Adjust declarations.
22991         (tree_ssa_dominator_optimize): Adjust.
22992         (dom_opt_initialize_block, remove_local_expressions_from_table,
22993         restore_nonzero_vars_to_original_value,
22994         restore_vars_to_original_value,
22995         restore_currdefs_to_original_value, dom_opt_finalize_block,
22996         record_var_is_nonzero, record_cond, record_const_or_copy_1,
22997         optimize_stmt, update_rhs_and_lookup_avail_expr,
22998         lookup_avail_expr, record_range): Likewise.
22999         * tree-ssa-pre.c: Define VEC(basic_block,heap).
23000         (compute_antic_aux): Adjust.
23001         (inserted_exprs, create_expression_by_pieces,
23002         insert_into_preds_of_block, eliminate, mark_operand_necessary,
23003         remove_dead_inserted_code, fini_pre): Likewise.
23004         * tree-ssa-propagate.c (interesting_ssa_edges): Adjust.
23005         (varying_ssa_edges, add_ssa_edge, process_ssa_edge_worklist.
23006         ssa_prop_init): Likewise.
23007         * tree-ssa.c: Define VEC(bitmap,heap).
23008         (verify_name_tags): Adjust.
23009         * value-prof.c (rtl_divmod_values_to_profile): Adjust.
23010         (insn_prefetch_values_to_profile, rtl_find_values_to_profile,
23011         tree_divmod_values_to_profile, tree_find_values_to_profile,
23012         value_profile_transformations): Likewise.
23013         * value-prof.h: Define VEC(histogram_value,heap).
23014         * varasm.c: Remove alias_pair pointer typedef, define
23015         VEC(alias_pair,gc).
23016         (finish_aliases_1, finish_aliases_2, assemble_alias): Adjust.
23018         * config/pa/pa.c (typedef extern_symbol): Typedef the structure,
23019         not a pointer to it.  Create an object vector.
23020         (extern_symbols): Turn into an object vector.
23021         (pa_hpux_asm_output_external, pa_hpux_file_end): Adjust.
23023 2005-04-21  Sebastian Pop  <pop@cri.ensmp.fr>
23025         PR/20742
23026         * Makefile.in (tree-chrec.o): Depend on params.h.
23027         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): New parameter with
23028         default value 20.
23029         * tree-chrec.c: Depend on params.h.  Replace build with buildN,
23030         and fold build with fold_buildN.
23031         (chrec_fold_plus_1): Fail with a chrec_don_know when the size of
23032         the expression exceeds PARAM_SCEV_MAX_EXPR_SIZE.
23033         (tree_contains_chrecs): Compute an estimation of the size of the
23034         given expression.
23035         * tree-chrec.h (tree_contains_chrecs): Modify its declaration.
23036         (tree_does_not_contain_chrecs): Update the use of tree_contains_chrecs.
23037         * tree-scalar-evolution.c (simple_iv): Ditto.
23038         * doc/invoke.texi (scev-max-expr-size): Documented.
23040 2005-04-21  Richard Sandiford  <rsandifo@redhat.com>
23042         * config.gcc (*-*-darwin*): Add darwin.opt to $extra_options.
23043         (i[34567]86-pc-msdosdjgpp*): Likewise i386/djgpp.opt.
23044         (i[34567]86-*-lynxos*, powerpc-*-lynxos*): Likewise lynx.opt.
23045         (i[34567]86-*-sco3.2v5*): Likewise i386/sco5.opt.
23046         (i[34567]86-*-pe, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
23047         (i[34567]86-*-uwin*): Likewise i386/cygming.opt.
23048         * config/darwin.h (darwin_one_byte_bool, darwin_fix_and_continue)
23049         (darwin_fix_and_continue_switch, SUBTARGET_OPTIONS): Delete.
23050         * config/darwin.c (darwin_one_byte_bool, darwin_fix_and_continue)
23051         (darwin_fix_and_continue_switch): Delete.
23052         * config/lynx.h (SUBTARGET_OS_LYNX_SWITCHES): Delete.
23053         (SUBTARGET_SWITCHES): Delete.
23054         * config/i386/i386.h (target_flags, MASK_80387, MASK_RTD)
23055         (MASK_ALIGN_DOUBLE, MASK_SVR3_SHLIB, MASK_IEEE_FP, MASK_FLOAT_RETURNS)
23056         (MASK_NO_FANCY_MATH_387, MASK_OMIT_LEAF_FRAME_POINTER)
23057         (MASK_STACK_PROBE, MASK_NO_ALIGN_STROPS, MASK_INLINE_ALL_STROPS)
23058         (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS, MASK_MMX)
23059         (MASK_SSE, MASK_SSE2, MASK_SSE3, MASK_3DNOW, MASK_3DNOW_A)
23060         (MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT)
23061         (MASK_TLS_DIRECT_SEG_REFS, MASK_NO_RED_ZONE, TARGET_80387)
23062         (TARGET_RTD, TARGET_ALIGN_DOUBLE, TARGET_PUSH_ARGS)
23063         (TARGET_ACCUMULATE_OUTGOING_ARGS, TARGET_SVR3_SHLIB, TARGET_IEEE_FP)
23064         (TARGET_128BIT_LONG_DOUBLE, TARGET_NO_FANCY_MATH_387)
23065         (TARGET_USE_FANCY_MATH_387, TARGET_OMIT_LEAF_FRAME_POINTER)
23066         (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Delete.
23067         (TARGET_FLOAT_RETURNS_IN_80387): Make an alias of TARGET_FLOAT_RETURNS.
23068         (TARGET_64BIT): Undef before redefining.
23069         (TARGET_TLS_DIRECT_SEG_REFS, TARGET_STACK_PROBE)
23070         (TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS, TARGET_SSE)
23071         (TARGET_SSE2, TARGET_SSE3, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A)
23072         (TARGET_RED_ZONE, TARGET_USE_MS_BITFIELD_LAYOUT, TARGET_SWITCHES)
23073         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS)
23074         (ix86_fpmath_string, ix86_tls_dialect_string, ix86_cmodel_string)
23075         (ix86_asm_string, ix86_regparm, ix86_regparm_string)
23076         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
23077         (ix86_debug_arg_string, ix86_debug_addr_string)
23078         (ix86_align_loops_string, ix86_align_jumps_string)
23079         (ix86_align_funcs_string): Delete.
23080         * config/i386/cygming.h (MASK_NOP_FUN_DLLIMPORT)
23081         (TARGET_NOP_FUN_DLLIMPORT, SUBTARGET_SWITCHES): Delete.
23082         * config/i386/djgpp.h (MASK_BNU210, SUBTARGET_SWITCHES): Delete.
23083         (SUBTARGET_OVERRIDE_OPTIONS): Check TARGET_BNU210.
23084         * config/i386/lynx.h (SUBTARGET_SWITCHES): Delete.
23085         * config/i386/sco5.h (MASK_COFF, TARGET_ELF)
23086         (SUBTARGET_SWITCHES): Delete.
23087         * config/i386/i386.c (ix86_debug_arg_string): Delete.
23088         (ix86_debug_addr_string): Delete.
23089         (ix86_cmodel_string, ix86_asm_string, ix86_tls_dialect_string)
23090         (ix86_fpmath_string, ix86_regparm_string, ix86_regparm)
23091         (ix86_align_loops_string, ix86_align_jumps_string)
23092         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
23093         (ix86_align_funcs_string): Make static.
23094         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
23095         (ix86_handle_option): New function.
23096         (TARGET_USE_MS_BITFIELD_LAYOUT): Delete.
23097         (ix86_ms_bitfield_layout_p): Check TARGET_MS_BITFIELD_LAYOUT.
23098         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove handling
23099         of darwin_fix_and_continue_switch.
23100         (darwin_one_byte_bool): Delete.
23101         * config/rs6000/lynx.h (EXTRA_SUBTARGET_SWITCHES): Delete.
23102         * config/rs6000/rs6000.c (rs6000_override_options): Update assignment
23103         to darwin_one_byte_bool.
23104         * config/darwin.opt, config/lynx.opt, config/i386/cygming.opt,
23105         * config/i386/djgpp.opt, config/i386/i386.opt,
23106         * config/i386/sco5.opt: New files.
23108 2005-04-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
23110         * config/sparc/sparc.c (reg_or_0_operand, const1_operand,
23111         fp_zero_operand, fp_register_operand, intreg_operand,
23112         fcc_reg_operand, fcc0_reg_operand, icc_or_fcc_reg_operand,
23113         call_operand, call_operand_address, tgd_symbolic_operand,
23114         tld_symbolic_operand, tie_symbolic_operand, tle_symbolic_operand,
23115         symbolic_operand, symbolic_memory_operand, label_ref_operand,
23116         sp64_medium_pic_operand, data_segment_operand,
23117         text_segment_operand, splittable_symbolic_memory_operand,
23118         reg_or_nonsymb_mem_operand, splittable_immediate_memory_operand,
23119         eq_or_neq, normal_comp_operator, noov_compare_op,
23120         noov_compare64_op, v9_regcmp_op, extend_op, cc_arithop,
23121         cc_arithopn, arith_operand, arith_4096_operand, arith_add_operand,
23122         const64_operand, const64_high_operand, arith11_operand,
23123         arith10_operand, arith_double_operand, arith_double_4096_operand,
23124         arith_double_add_operand, arith11_double_operand,
23125         arith10_double_operand, small_int, small_int_or_double,
23126         uns_small_int, uns_arith_operand, clobbered_register,
23127         input_operand, compare_operand): Delete.
23128         (sparc_emit_set_const32): Use predicates in assertion.  Remove special
23129         code for TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT != 64.
23130         (sparc_emit_set_const64): Call gcc_unreachable if H_B_P_W_I == 32.
23131         (GEN_HIGHINT64, GEN_INT64): Delete.
23132         (sparc_emit_set_safe_HIGH64, gen_safe_SET64, gen_safe_OR64,
23133         gen_safe_XOR64): Adjust for above deletion.
23134         (sparc_emit_set_const64): Support only H_B_P_W_I == 64 and CONST_INTs.
23135         Use 'unsigned HOST_WIDE_INT' instead of 'long' for bitmask.
23136         (legitimate_constant_p): Use const_zero_operand instead.
23137         (sparc_extra_constraint_check): Likewise.
23138         * config/sparc/sparc.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'O'.
23139         (PREFERRED_RELOAD_CLASS): Use const_zero_operand.
23140         (PREDICATE_CODES): Delete.
23141         * config/sparc/sparc.md: Include predicates.md.
23142         (All patterns): Adjust for new predicate names.
23143         (cmpdi, cmpdi_sp64): Use arith_operand predicate.
23144         (movhi_const64_special, movsi_const64_special): Add 'K' constraint.
23145         (movdi): Use general_operand predicate.
23146         (movdi_sp64_dbl): Delete.
23147         (movdi_const64_special): Add 'N' constraint.
23148         (movdicc): Use arith10_operand predicate.
23149         (movdi_cc_sp64, movdi_cc_sp64_trunc): Use arith11_operand predicate.
23150         (movdi_cc_reg_sp64): Use arith10_operand predicate.
23151         (movdi_cc_reg_sp64_trunc): Delete.
23152         (cmp_zero_extract, cmp_zero_extract_sp64): Use small_int_operand.
23153         (adddi3_sp64, cmp_ccx_plus, cmp_ccx_plus_set): Use arith_operand.
23154         (subdi3_sp32): Delete.
23155         (subdi3_insn_sp32): Change to define_insn_and_split.
23156         (subdi3_sp64, cmp_minus_ccx, cmp_minus_ccx_set): Use arith_operand.
23157         (muldi3, muldi3_sp64, muldi3_v8plus): Likewise.
23158         (smulsi3_highpart_v8plus, const_smulsi3_highpart_v8plus,
23159         umulsi3_highpart_v8plus, const_umulsi3_highpart_v8plus): Use
23160         small_int_operand predicate.
23161         (divdi3, udivdi3): Use arith_operand predicate.
23162         (udivsi3, udivsi3_sp32, udivsi3_sp64): Use nonimmediate_operand.
23163         (and<V64I>3_sp64, ior<V64I>3_sp64, xor<V64I:mode>3_sp64,
23164         xor_not_<V64I:mode>_sp64) : Use arith_operand predicate.
23165         (xordi3_sp64_dbl): Delete.
23166         (cmp_ccx_arith_op, cmp_ccx_arith_op_set, cmp_ccx_xor_not,
23167         cmp_ccx_xor_not_set, cmp_ccx_arith_op_not, cmp_ccx_arith_op_not_set,
23168         cmp_ccx_neg, cmp_ccx_set_neg, one_cmpl<V64I>2_sp64, cmp_ccx_not,
23169         cmp_ccx_set_not): Use arith_operand predicate.
23170         (ashrsi3_extend2, lshrsi3_extend2 et al.): Use small_int_operand.
23171         * config/sparc/predicates.md: New file.
23173 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
23175         PR tree-optimization/14846
23176         * fold-const.c (fold_single_bit_test_into_sign_test): New,
23177         split out from ...
23178         (fold_single_bit_test): ... here.
23179         (fold_binary): Call fold_single_bit_test_into_sign_test
23180         instead of fold_single_bit_test.
23182 2005-04-20  James E Wilson  <wilson@specifixinc.com>
23184         PR c++/20805
23185         * dwarf2out.c (gen_variable_die): Don't emit a specification if this
23186         is another declaration.
23188 2005-04-21  Hans-Peter Nilsson  <hp@axis.com>
23190         * config/cris/predicates.md: New file.
23191         * config/cris/cris-protos.h (cris_store_multiple_op_p)
23192         (cris_movem_load_rest_p): Declare.
23193         * config/cris/cris.c (cris_store_multiple_op): Return bool, not int.
23194         (cris_movem_load_rest_p): Ditto.  Globalize.
23195         (cris_bdap_operand, cris_bdap_biap_operand,
23196         cris_orthogonal_operator, cris_commutative_orth_op,
23197         cris_operand_extend_operator,
23198         cris_additive_operand_extend_operator, cris_extend_operator,
23199         cris_plus_or_bound_operator, cris_mem_op,
23200         cris_general_operand_or_symbol,
23201         cris_general_operand_or_gotless_symbol,
23202         cris_general_operand_or_plt_symbol, cris_mem_call_operand,
23203         cris_load_multiple_op): Remove predicate functions.
23204         (cris_symbol, cris_gotless_symbol) <case UNSPEC>: Return 0, don't
23205         abort, for UNSPECs other than CRIS_UNSPEC_PLT.
23206         * config/cris/cris.h (PREDICATE_CODES): Don't define.
23207         * config/cris/cris.md: Include predicates.md.
23208         ("call", "call_value"): Generate CONSTs of Pmode, not VOIDmode.
23210 2005-04-20  Ian Lance Taylor  <ian@airs.com>
23212         * c-common.def: Remove STMT_EXPR (moved to cp/cp-tree.def).
23213         * c-common.h (STMT_EXPR_STMT): Don't define.
23214         (STMT_EXPR_NO_SCOPE): Don't define.
23215         * c-dump.c (c_dump_tree): Don't handle STMT_EXPR.
23216         * c-pretty-print.c (pp_c_primary_expression): Likewise.
23217         (pp_c_expression): Likewise.
23219 2005-04-20  Richard Henderson  <rth@redhat.com>
23221         PR target/21100
23222         * config/i386/mmx.md (push<MMXMODE>1): Fix predicate thinko.
23224 2005-04-20  Jeff Law  <law@redhat.com>
23226         * reload1.c (reload): Ignore equivalences between pseudos and
23227         read only memory.
23229 2005-04-20  Joseph S. Myers  <joseph@codesourcery.com>
23231         PR c/12913
23232         * c-tree.h (struct c_label_list): Update comment.
23233         (struct c_label_context): Rename to struct c_label_context_se.
23234         (label_context_stack): Rename to label_context_stack_se.
23235         (C_DECL_UNJUMPABLE_VM, C_DECL_UNDEFINABLE_VM, struct
23236         c_label_context_vm, label_context_stack_vm, c_begin_vm_scope,
23237         c_end_vm_scope): New.
23238         (C_DECL_DECLARED_BUILTIN, C_DECL_USED): Use FUNCTION_DECL_CHECK.
23239         * c-decl.c (pop_scope): Call c_end_vm_scope.
23240         (pushdecl): Call c_begin_vm_scope for variably modified
23241         declarations.
23242         (define_label): Check for jumping into scope of identifier with
23243         variably modified type.  Push label on stack for those defined at
23244         current context of identifiers with variably modified type.
23245         (start_function): Create stack level for context of identifiers
23246         with variably modified type.
23247         (finish_function): Pop stack level for context of identifiers with
23248         variably modified type.
23249         * c-typeck.c (label_context_stack): Rename to
23250         label_context_stack_se.
23251         (label_context_stack_vm, c_begin_vm_scope, c_end_vm_scope): New.
23252         (c_finish_goto_label): Check for jumping into scope of identifier
23253         with variably modified type.  Push label on stack for those jumped
23254         to from current context of identifiers with variably modified
23255         type.
23256         (struct c_switch): Add blocked_vm.
23257         (c_start_case): Initialize blocked_vm.
23258         (do_case): Check blocked_vm.
23259         (c_finish_case): Add comment.
23260         (c_begin_stmt_expr, c_finish_stmt_expr): Update for renamed
23261         variable label_context_stack.
23263 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
23265         * tree-ssa-phiopt.c (tree_ssa_phi_opt): Update calls to
23266         conditional_replacement, value_replacement, abs_replacement,
23267         minmax_replacement.
23268         (replace_phi_edge_with_variable): Remove argument BB.
23269         (conditional_replacement, value_replacement,
23270         minmax_replacement, abs_replacement): Remove argument PHI_BB.
23271         Update a call to replace_phi_edge_with_variable.
23273         * tree-ssa-phiopt.c: Fix comments.
23275 2005-04-20  Michael Matz  <matz@suse.de>
23277         PR20973
23278         * reload.c (push_reload, find_dummy_reload): Check for uninitialized
23279         pseudos.
23281 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
23283         * tree-ssa-phiopt.c: Fix comment typos.
23285         PR tree-optimization/21116
23286         * tree-ssa-phiopt.c: Fix a typo.
23288 2005-04-19  Richard Henderson  <rth@redhat.com>
23290         * builtins.c (expand_builtin_sync_operation): Revert last change.
23291         * optabs.c (expand_bool_compare_and_swap): Compare vs old value,
23292         not vs new value.
23293         (expand_compare_and_swap_loop): Likewise.
23294         (expand_sync_operation): Remove fallback from NAND to AND; invert
23295         memory operand when expanding from cmpxchg.
23296         (expand_sync_fetch_operation): Likewise.
23297         * doc/extend.texi (Atomic Builtins): Fix docs for nand and
23298         compare-and-swap.
23300         * config/alpha/alpha.c (alpha_split_atomic_op): Invert memory operand
23301         when implementing NAND.  Fix double-add for AFTER.
23302         * config/alpha/sync.md (sync_nand<I48MODE>): Invert memory operand.
23303         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
23304         (sync_compare_and_swap<I48MODE>): Fix compare vs zero.  Return old
23305         memory value.
23306         (sync_lock_test_and_set<I48MODE>): Remove extra label and last
23307         memory barrier.
23309         * config/i386/sync.md (sync_compare_and_swap<IMODE>): Fix pattern
23310         to return old memory value.
23311         (sync_compare_and_swap_cc<IMODE>): Likewise.
23313         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Early
23314         return pre-reload.  Don't consider output or anti dependencies.
23315         * config/ia64/sync.md (IMODE): New.
23316         (modesuffix): Add QI and HI.
23317         (memory_barrier): Simplify expansion.
23318         (sync_compare_and_swap<IMODE>): Use IMODE, not I48MODE.
23319         (cmpxchg_acq_<IMODE>): Likewise.
23320         (sync_lock_test_and_set<IMODE>): Likewise.
23321         (sync_lock_release<IMODE>): Likewise.
23323 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
23325         * fold-const.c (fold_binary): Fold ~(X ^ Y) to ~X ^ Y or X ^ ~Y if
23326         ~X or ~Y simplify.
23328 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
23330         * fold-const (fold_binary): Fold ~X ^ ~ Y to X ^ Y.
23332 2005-04-20  Michael Pogue  <michael.pogue@sun.com>
23333             Joseph S. Myers  <joseph@codesourcery.com>
23335         * c.opt (Wint-to-pointer-cast, Wpointer-to-int-cast): New options.
23336         * c-typeck.c (build_c_cast): Check these options.
23337         * doc/invoke.texi: Document these options.
23339 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
23341         * tree-ssa-phiopt.c: Update a comment about the pass.
23343 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
23345         * tree-ssa-phiopt.c, config/arm/arm.c, config/fr30/fr30.md,
23346         config/mcore/mcore.c: Fix comment typos.
23348 2005-04-19  Daniel Jacobowitz  <dan@codesourcery.com>
23350         * Makefile.in (libgcc.mk): Pass GCC_FOR_TARGET.
23351         * mklibgcc.in: Use $GCC_FOR_TARGET instead of ./xgcc.
23353 2005-04-19  Paul Brook  <paul@codesourcery.com>
23355         * config/arm/arm.c (arm_init_libfuncs): Clear mod optabs.
23357 2005-04-19  Andrew Haley  <aph@redhat.com>
23359         PR java/21022
23360         * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before
23361         looking at a field's bitpos.
23363 2005-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23365         * system.h (fopen, fdopen, freopen): Define these to the unlocked
23366         libiberty functions.
23368 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
23370         PR tree-optimization/21096
23371         * tree-ssa-copy.c (fini_copy_prop): Free cached_last_copy_of.
23373 2005-04-19  Alan Modra  <amodra@bigpond.net.au>
23375         PR target/21098
23376         * config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
23377         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.
23379 2005-04-19  Alexandre Oliva  <aoliva@redhat.com>
23381         * tree-cfg.c (dump_function_to_file): Use cfun info only if it
23382         refers to the function being dumped.
23384 2005-04-18  Daniel Jacobowitz  <dan@codesourcery.com>
23386         * varasm.c (assemble_start_function): Remove reset of in_section.
23388 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
23390         PR tree-optimization/21085
23391         * fold-const (fold_binary): Don't change X % -C to X % C if C has
23392         overflowed.
23394 2005-04-19  Ben Elliston  <bje@au.ibm.com>
23396         * doc/invoke.texi (Optimize Options): Refer to the correct
23397         optimisation flag -ftree-dominator-opts, not -ftree-dom.
23399 2005-04-18  Christopher Jaillet <christophe.jaillet@wanadoo.fr>
23401         * config/rs6000/rs6000.c (machopic_output_stub): Increase
23402         alloca argument to be big enough.
23404 2005-04-18  Alexandre Oliva  <aoliva@redhat.com>
23406         PR middle-end/21049
23407         * tree-cfg.c (dump_function_to_file): Do not crash if cfun or
23408         cfun->cfg are NULL.
23410 2005-04-18  Tom Tromey  <tromey@redhat.com>
23412         * cgraphunit.c (cgraph_finalize_compilation_unit): Fix a comment
23413         typo.
23415 2005-04-18  Richard Henderson  <rth@redhat.com>
23417         * config/alpha/alpha.c (alpha_split_atomic_op): New.
23418         (alphaev5_insn_pipe): Add LD_L, ST_C, MB types.
23419         (alphaev4_insn_pipe): Likewise.  Correct IST and LDSYM pipes.
23420         * config/alpha/alpha-protos.h: Update.
23421         * config/alpha/alpha.md (UNSPECV_MB, UNSPECV_LL, UNSPECV_SC): New.
23422         (UNSPECV_ATOMIC, UNSPECV_CMPXCHG, UNSPECV_XCHG): New.
23423         (attr type): Add ld_l, st_c, mb.
23424         (andsi_internal, andnotsi3, iorsi_internal, one_cmplsi_internal,
23425         iornotsi3, xorsi_internal, xornotsi3): New.
23426         * config/alpha/ev4.md (ev4_ld): Add ld_l.
23427         (ev4_ist_c, ev4_mb): New.
23428         * config/alpha/ev5.md (ev5_st): Add st_c, mb.
23429         (ev5_ld_l): New.
23430         * config/alpha/ev6.md (ev6_ild): Add ld_l.
23431         (ev6_ist): Add st_c.
23432         (ev6_mb): New.
23433         * config/alpha/sync.md: New file.
23435 2005-04-18  Richard Henderson  <rth@redhat.com>
23437         * builtins.c (expand_builtin_sync_operation): Fold nand to and
23438         for constants.
23440         * optabs.c (expand_sync_operation): Fix typo expanding nand to and.
23442 2005-04-18  Devang Patel  <dpatel@apple.com>
23444         * config/rs6000/atlivec.md (mulv4si3): New pattern.
23446 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
23448         PR tree-optimization/20922
23449         * fold-const.c (fold_binary): Fold X - c > X and X + c < X to false.
23450         Fold X + c >= X and fold X - c <= X to true.
23452 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
23454         * config/ia64/unwind-ia64.c (emergency_reg_state_free): Make an
23455         unsigned int.
23456         (emergency_labeled_state_free): Likewise.
23458 2005-04-18  Nick Clifton  <nickc@redhat.com>
23460         * config/h8300/h8300.md (jump): Remove prescan parameter from
23461         calls to final_scan_insn.
23463         * config/arc/arc.c (arc_output_function_epilogue): Remove prescan
23464         parameter from calls to final_scan_insn.
23466         * config.gcc (m68hc12): Use the m68hc11.opt file for target
23467         specific options.
23468         (v850e, v850e1): Use the v850.opt file for target specific
23469         options.
23471 2005-04-18  Kazu Hirata  <kazu@cs.umass.edu>
23473         PR tree-optimization/21001
23474         * tree-optimize.c (init_tree_optimization_passes): Move the
23475         first pass_forwprop immediately before pass_vrp.
23477 2005-04-17  Ian Lance Taylor  <ian@airs.com>
23479         * c-common.def (SIZEOF_EXPR, ARROW_EXPR, ALIGNOF_EXPR): Remove.
23480         * c-common.c (c_sizeof_or_alignof_type): Change second parameter
23481         from enum tree_code op to bool is_sizeof.
23482         * c-common.h (c_sizeof_or_alignof_type): Update declaration.
23483         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
23484         * c-pretty-print.c (pp_c_postfix_expression): Remove ARROW_EXPR
23485         case.
23486         (pp_c_unary_expression): Remove SIZEOF_EXPR and ALIGNOF_EXPR
23487         cases.
23488         (pp_c_expression): Remove ARROW_EXPR, SIZEOF_EXPR, and
23489         ALIGNOF_EXPR cases.
23491 2005-04-17  Ian Lance Taylor  <ian@airs.com>
23493         * system.h: Poison DONT_ACCESS_GBLS_AFTER_EPILOGUE.
23495 2005-04-17  Richard Henderson  <rth@redhat.com>
23497         * config/alpha/alpha.c (va_list_skip_additions): Only define if
23498         TARGET_ABI_OSF.
23499         (TARGET_STDARG_OPTIMIZE_HOOK): Likewise.
23500         (alpha_stdarg_optimize_hook): Likewise.  Allow for one more round
23501         of indirection through ssa names while looking for the gpr counter
23502         field.
23503         (alpha_setup_incoming_varargs) <TARGET_ABI_OSF>: Make use of the
23504         saved va_list_gpr_size and va_list_fpr_size.
23506 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
23508         * tree-vrp.c (compare_values): Check that VAL1 and VAL2 are
23509         both pointers or both integers.
23511         * tree-vrp.c (maybe_add_assert_expr): Don't assert
23512         ASSERT_EXPRs for single-use variable.
23514         * tree-into-ssa.c: Fix a comment typo.
23516 2005-04-17  Richard Sandiford  <rsandifo@redhat.com>
23518         * config/mips/iris6.h (DRIVER_SELF_SPECS): Check -march as well as
23519         -mipsN before forcing a default of -mips2.
23521 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
23523         * predict.h (IS_TAKEN): Remove.
23524         * rtl.h (NOTE_PREDICTION): Likewise.
23526         * modulo-sched.c (CFG_HOOKS): Remove.
23528         * c-parser.c (N_C_TTYPES): Remove.
23530         * tree-flow-inline.h (get_stmt_operands): Remove.
23531         * lambda-code.c, tree-ssa-loop-unswitch.c,
23532         tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa-propagate.c,
23533         tree-ssa-sink.c, tree-ssa.c, tree-tailcall.c,
23534         tree-vect-transform.c, tree-vectorizer.c, tree-vrp.c): Remove
23535         calls to get_stmt_operands.
23536         * doc/tree-ssa.texi: Don't mention get_stmt_operands.
23538 2005-04-17  Richard Henderson  <rth@redhat.com>
23540         PR target/20375
23541         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Advance a copy
23542         of CUMULATIVE_ARGS past the last named argument.
23543         (alpha_va_start): Expect pretend_args_size only if strictly less than
23544         6 named arguments.
23546 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
23548         PR middle-end/21024
23549         * builtins.c (expand_builtin_strcat): Convert the result of
23550         strlen to the right type.
23551         * fold-const.c (fold_binary) <PLUS_EXPR>: Use fold_convert to
23552         avoid creating type mismatches.
23553         <GE_EXPR>: Pass op0 and op1 to fold_build2 to avoid creating
23554         type mismatches.
23556         * c-lex.c (WCHAR_TYPE_SIZE, WCHAR_BYTES): Remove.
23558 2005-04-16  Richard Henderson  <rth@redhat.com>
23560         PR target/21051
23561         * builtins.c (expand_builtin) <BUILT_IN_BOOL_COMPARE_AND_SWAP_*>:
23562         Use the mode of boolean_type_node when the user doesn't provide one.
23563         * config/ia64/sync.md (sync_lock_release<I48MODE>): Use operand 1.
23565 2005-04-16  Alexandre Oliva  <aoliva@redhat.com>
23567         PR target/20126
23568         * loop.c (loop_givs_rescan): Handle non-replaceable (plus (reg)
23569         (const)).
23571         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Fix typo in
23572         comment.
23574 2005-04-16  Roger Sayle  <roger@eyesopen.com>
23575             Steven Bosscher  <stevenb@suse.de>
23577         * fold-const.c (fold_binary_to_constant): Delete obsolete comment.
23578         (fold_unary_to_constant): Likewise.
23580 2005-04-16  Kazu Hirata  <kazu@cs.umass.edu>
23582         * basic-block.h: Adjust the value of PROP_SCAN_DEAD_STORES,
23583         PROP_ASM_SCAN.
23585 2005-04-16  Gerald Pfeifer  <gerald@pfeifer.com>
23587         * doc/install.texi (Specific): Avoid using asterisks in @anchor
23588         names related to target triplets.
23589         Remove i?86-*-esix from platform directory.
23590         Remove powerpc-*-eabiaix from platform directory.
23592 2005-04-16  Joseph S. Myers  <joseph@codesourcery.com>
23594         PR middle-end/20491
23595         * config/ia64/ia64.c (rtx_needs_barrier): Recurse instead of
23596         falling through from SUBREG case to REG.
23598 2005-04-15  Roger Sayle  <roger@eyesopen.com>
23600         * fold-const.c (fold_relational_hi_lo): Delete function and prototype.
23601         (fold_binary): Update comment mentioning fold_relational_hi_lo.
23602         (fold_binary_to_constant): Simplify using fold_binary.
23603         (fold_unary_to_constant): Likewise, simplify using fold_unary.
23605 2005-04-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
23607         * gthr-posix.c (pthread_cancel): Define.
23608         (pthread_mutexattr_init): Likewise.
23609         (pthread_mutexattr_settype): Likewise.
23610         (pthread_mutexattr_destroy): Likewise.
23612 2005-04-15  David S. Miller  <davem@davemloft.net>
23614         PR target/20673
23615         * config/sparc/sparc.h (sparc_hard_reg_printed): Mark as GTY(()).
23617 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
23619         PR tree-optimization/21031
23620         * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): New.
23621         (forward_propagate_into_cond_1): Call it.  Forward propagate
23622         integer-integer casts into COND_EXPRs.
23624 2005-04-15  Dave Korn  <dave.korn@artimi.com>
23626         * gcc.c (default_compilers): Clarify obscure error message when
23627         reading from standard input.
23629 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
23631         * basic-block.h (PROP_EQUAL_NOTES): Remove.
23632         * flow.c (propagate_one_insn): Don't use PROP_EQUAL_NOTES.
23634         * tree-ssa-alias.c (init_alias_info): Remove a call to
23635         get_stmt_operands.
23637 2005-04-15  Andrew MacLeod  <amacleod@redhat.com>
23639         * tree-vect-analyze.c (vect_stmt_relevant_p): Process immediate uses
23640         of non-virtual PHI nodes like we use to.
23642 2005-05-15  Paolo Bonzini  <bonzini@gnu.org>
23644         * genattrtab.c (ATTR_EQ_ATTR_P): Remove.
23645         (attr_copy_rtx): Do not use it.
23647 2005-04-15  Andrew Macleod  <amacleod@redhat.com>
23649         * doc/tree-ssa.texi: Grammer/abbreviation updates.
23651 2005-04-15  Diego Novillo  <dnovillo@redhat.com>
23653         * tree-vect-transform.c (vectorizable_store): Mark necessary
23654         objects in the vectorized store needing renaming.  Update the
23655         SSA graph for V_MAY_DEF operands in the original store.
23657 2005-04-14  Daniel Berlin <dberlin@dberlin.org>
23659         * tree-ssa-pre.c (compute_avail): It's okay to have
23660         TREE_INVARIANT's here, and value number the resulting expressions.
23661         (create_expression_by_pieces): Make sure operands that were
23662         min_invariant when we started, stay that way.
23664 2005-04-15  David Edelsohn  <edelsohn@gnu.org>
23666         * doc/install.texi (*-ibm-aix*): Add comment about system limits.
23668 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
23670         PR tree-optimization/20936.
23671         * tree-ssa-ccp.c (visit_assignment): Fix a typo.
23673 2005-04-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
23675         * doc/invoke.texi: Fix typos.
23676         * doc/md.texi: Likewise.
23677         * doc/rtl.texi: Likewise.
23678         * doc/sourcebuild.texi: Likewise.
23679         * doc/tm.texi: Likewise.
23681 2005-04-15  Uros Bizjak  <uros@kss-loka.si>
23683         PR tree-optimization/21004
23684         * convert.c (convert_to_integer): Convert ceilf, ceill, floorf
23685         and floorl in c99 mode only.
23686         * builtins.c (expand_builtin_int_roundingfn): Assert that
23687         fallback_fndecl is not NULL_TREE.
23689 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
23691         * cfgrtl.c (purge_all_dead_edge): Remove an unused argument.
23692         * basic-block.h: Update the prototype for
23693         purge_all_dead_edges.
23694         * cfgexpand.c (tree_expand_cfg): Update a call to
23695         purge_all_dead_edges.
23696         * combine.c (combine_instructions): Likewise.
23697         * passes.c (rest_of_handle_old_regalloc, rest_of_handle_cse,
23698         rest_of_handle_cse2, rest_of_handle_gcse,
23699         rest_of_handle_postreload): likewise.
23701 2005-04-15  Alexandre Oliva  <aoliva@redhat.com>
23703         PR middle-end/20739
23704         * gimplify.c (gimplify_addr_expr): Compensate for removal of
23705         e.g. cv-qualification conversions.
23707 2005-04-14  Mike Stump  <mrs@apple.com>
23709         * config/darwin-c.c (framework_construct_pathname): We must
23710         find all headers of a framework in the first instance of it
23711         found in the seach path.
23713 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
23715         PR tree-optimization/21021
23716         * tree-vrp.c (compare_values): Work around a bug in the front
23717         end that produces a comparison of mismatched types.
23719 2005-04-14  Richard Henderson  <rth@redhat.com>
23721         * config/ia64/ia64.h (enum fetchop_code): Remove.
23722         (enum ia64_builtins): Move ...
23723         * config/ia64/ia64.c (enum ia64_builtins): ... here.  Remove all
23724         members except BSP and FLUSHRS.
23725         (ia64_init_builtins): Remove __sync builtins.
23726         (ia64_expand_builtin): Likewise.
23727         (ia64_expand_fetch_and_op, ia64_expand_op_and_fetch): Remove.
23728         (ia64_expand_compare_and_swap, ia64_expand_lock_test_and_set): Remove.
23729         (ia64_expand_lock_release): Remove.
23730         * config/ia64/ia64.md (mf): Move to sync.md.
23731         (mf_internal, fetchadd_acq_si, fetchadd_acq_di, cmpxchg_acq_si,
23732         cmpxchg_acq_di, xchgsi, xchgdi): Likewise.
23733         * config/ia64/sync.md: New file.
23734         (memory_barrier): Rename from mf.
23735         (fetchadd_acq_<I48MODE>): Macroize from _si/_di patterns.
23736         (cmpxchg_acq_<I48MODE>): Likewise.
23737         (sync_lock_test_and_set<I48MODE>): Likewise.
23739         * config/ia64/ia64intrin.h: Define nothing for C; limit #defines
23740         to c++.  Remove __sync* declarations.  s/_si/_4/.  s/_di/_8/.
23742 2005-04-14  Richard Henderson  <rth@redhat.com>
23744         * config/i386/i386.c (x86_cmpxchg, x86_xadd): New.
23745         (ix86_compare_emitted): New.
23746         (ix86_expand_compare): Use ix86_compare_emitted if set.
23747         (ix86_expand_setcc): Only emit REG_EQUAL if both ix86_compare_op0
23748         and ix86_compare_op0 are set.
23749         * config/i386/i386.h (x86_cmpxchg, x86_xadd): Declare.
23750         (TARGET_CMPXCHG, TARGET_XADD): New.
23751         (ix86_compare_emitted): Declare.
23752         * config/i386/i386.md: Include sync.md
23753         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2): New.
23754         (UNSPECV_XCHG, UNSPECV_LOCK): New.
23755         * config/i386/sync.md: New file.
23757 2005-04-14  Richard Henderson  <rth@redhat.com>
23759         PR middle-end/14311
23760         * builtin-types.def (BT_BOOL, BT_VOLATILE_PTR, BT_I1, BT_I2,
23761         BT_I4, BT_I8, BT_FN_VOID_VPTR, BT_FN_I1_VPTR_I1, BT_FN_I2_VPTR_I2,
23762         BT_FN_I4_VPTR_I4, BT_FN_I8_VPTR_I8, BT_FN_BOOL_VPTR_I1_I1,
23763         BT_FN_BOOL_VPTR_I2_I2, BT_FN_BOOL_VPTR_I4_I4, BT_FN_BOOL_VPTR_I8_I8,
23764         BT_FN_I1_VPTR_I1_I1, BT_FN_I2_VPTR_I2_I2, BT_FN_I4_VPTR_I4_I4,
23765         BT_FN_I8_VPTR_I8_I8): New.
23766         * builtins.def (DEF_SYNC_BUILTIN): New.
23767         (BUILT_IN_FETCH_AND_ADD_N, BUILT_IN_FETCH_AND_ADD_1,
23768         BUILT_IN_FETCH_AND_ADD_2, BUILT_IN_FETCH_AND_ADD_4,
23769         BUILT_IN_FETCH_AND_ADD_8, BUILT_IN_FETCH_AND_SUB_N,
23770         BUILT_IN_FETCH_AND_SUB_1, BUILT_IN_FETCH_AND_SUB_2,
23771         BUILT_IN_FETCH_AND_SUB_4, BUILT_IN_FETCH_AND_SUB_8,
23772         BUILT_IN_FETCH_AND_OR_N, BUILT_IN_FETCH_AND_OR_1,
23773         BUILT_IN_FETCH_AND_OR_2, BUILT_IN_FETCH_AND_OR_4,
23774         BUILT_IN_FETCH_AND_OR_8, BUILT_IN_FETCH_AND_AND_N,
23775         BUILT_IN_FETCH_AND_AND_1, BUILT_IN_FETCH_AND_AND_2,
23776         BUILT_IN_FETCH_AND_AND_4, BUILT_IN_FETCH_AND_AND_8,
23777         BUILT_IN_FETCH_AND_XOR_N, BUILT_IN_FETCH_AND_XOR_1,
23778         BUILT_IN_FETCH_AND_XOR_2, BUILT_IN_FETCH_AND_XOR_4,
23779         BUILT_IN_FETCH_AND_XOR_8, BUILT_IN_FETCH_AND_NAND_N,
23780         BUILT_IN_FETCH_AND_NAND_1, BUILT_IN_FETCH_AND_NAND_2,
23781         BUILT_IN_FETCH_AND_NAND_4, BUILT_IN_FETCH_AND_NAND_8,
23782         BUILT_IN_ADD_AND_FETCH_N, BUILT_IN_ADD_AND_FETCH_1,
23783         BUILT_IN_ADD_AND_FETCH_2, BUILT_IN_ADD_AND_FETCH_4,
23784         BUILT_IN_ADD_AND_FETCH_8, BUILT_IN_SUB_AND_FETCH_N,
23785         BUILT_IN_SUB_AND_FETCH_1, BUILT_IN_SUB_AND_FETCH_2,
23786         BUILT_IN_SUB_AND_FETCH_4, BUILT_IN_SUB_AND_FETCH_8,
23787         BUILT_IN_OR_AND_FETCH_N, BUILT_IN_OR_AND_FETCH_1,
23788         BUILT_IN_OR_AND_FETCH_2, BUILT_IN_OR_AND_FETCH_4,
23789         BUILT_IN_OR_AND_FETCH_8, BUILT_IN_AND_AND_FETCH_N,
23790         BUILT_IN_AND_AND_FETCH_1, BUILT_IN_AND_AND_FETCH_2,
23791         BUILT_IN_AND_AND_FETCH_4, BUILT_IN_AND_AND_FETCH_8,
23792         BUILT_IN_XOR_AND_FETCH_N, BUILT_IN_XOR_AND_FETCH_1,
23793         BUILT_IN_XOR_AND_FETCH_2, BUILT_IN_XOR_AND_FETCH_4,
23794         BUILT_IN_XOR_AND_FETCH_8, BUILT_IN_NAND_AND_FETCH_N,
23795         BUILT_IN_NAND_AND_FETCH_1, BUILT_IN_NAND_AND_FETCH_2,
23796         BUILT_IN_NAND_AND_FETCH_4, BUILT_IN_NAND_AND_FETCH_8,
23797         BUILT_IN_BOOL_COMPARE_AND_SWAP_N, BUILT_IN_BOOL_COMPARE_AND_SWAP_1,
23798         BUILT_IN_BOOL_COMPARE_AND_SWAP_2, BUILT_IN_BOOL_COMPARE_AND_SWAP_4,
23799         BUILT_IN_BOOL_COMPARE_AND_SWAP_8, BUILT_IN_VAL_COMPARE_AND_SWAP_N,
23800         BUILT_IN_VAL_COMPARE_AND_SWAP_1, BUILT_IN_VAL_COMPARE_AND_SWAP_2,
23801         BUILT_IN_VAL_COMPARE_AND_SWAP_4, BUILT_IN_VAL_COMPARE_AND_SWAP_8,
23802         BUILT_IN_LOCK_TEST_AND_SET_N, BUILT_IN_LOCK_TEST_AND_SET_1,
23803         BUILT_IN_LOCK_TEST_AND_SET_2, BUILT_IN_LOCK_TEST_AND_SET_4,
23804         BUILT_IN_LOCK_TEST_AND_SET_8, BUILT_IN_LOCK_RELEASE_N,
23805         BUILT_IN_LOCK_RELEASE_1, BUILT_IN_LOCK_RELEASE_2,
23806         BUILT_IN_LOCK_RELEASE_4, BUILT_IN_LOCK_RELEASE_8,
23807         BUILT_IN_SYNCHRONIZE: New.
23808         * builtins.c (called_as_built_in): Rewrite from CALLED_AS_BUILT_IN
23809         as a function.  Accept __sync_ as a prefix as well.
23810         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
23811         expand_builtin_lock_test_and_set, expand_builtin_synchronize,
23812         expand_builtin_lock_release): New.
23813         (expand_builtin): Call them.
23814         * c-common.c (DEF_BUILTIN): Don't require __builtin_ prefix if
23815         neither BOTH_P nor FALLBACK_P are defined.
23816         (builtin_type_for_size): New.
23817         (sync_resolve_size, sync_resolve_params, sync_resolve_return): New.
23818         (resolve_overloaded_builtin): New.
23819         * c-common.h (resolve_overloaded_builtin): Declare.
23820         (builtin_type_for_size): Declare.
23821         * c-typeck.c (build_function_call): Invoke resolve_overloaded_builtin.
23822         * expr.c (sync_add_optab, sync_sub_optab, sync_ior_optab,
23823         sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab,
23824         sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab,
23825         sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab,
23826         sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab,
23827         sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap,
23828         sync_compare_and_swap_cc, sync_lock_test_and_set,
23829         sync_lock_release): New.
23830         * optabs.h: Declare them.
23831         * expr.h (expand_val_compare_and_swap, expand_bool_compare_and_swap,
23832         expand_sync_operation, expand_sync_fetch_operation,
23833         expand_sync_lock_test_and_set): Declare.
23834         * genopinit.c (optabs): Add sync optabs.
23835         * optabs.c (init_optabs): Initialize sync optabs.
23836         (expand_val_compare_and_swap_1, expand_val_compare_and_swap,
23837         expand_bool_compare_and_swap, expand_compare_and_swap_loop,
23838         expand_sync_operation, expand_sync_fetch_operation,
23839         expand_sync_lock_test_and_set): New.
23840         * doc/extend.texi (Atomic Builtins): New section
23841         * doc/md.texi (Standard Names): Add sync patterns.
23843 2005-04-14  Alexandre Oliva  <aoliva@redhat.com>
23845         * tree-eh.c (lower_try_finally_copy): Generate new code in
23846         response to goto_queue entries as if the queue was sorted by
23847         index, not pointers.
23848         (lower_try_finally_switch): Likewise.
23850 2005-04-14  Richard Henderson  <rth@redhat.com>
23852         * config/i386/i386.c (ix86_expand_sse_cmp): Split out from ...
23853         (ix86_expand_sse_movcc): ... here.  Take cmp as a pre-computed
23854         register.
23855         (ix86_expand_fp_movcc): Update to match.
23856         (ix86_expand_fp_vcond, ix86_expand_int_vcond): New.
23857         * config/i386/i386-protos.h: Update.
23858         * config/i386/sse.md (vcondv4sf, vcondv2df): New.
23859         (vcond<SSEMODE124>, vcondu<SSEMODE12>): New.
23861 2005-04-14  Joseph S. Myers  <joseph@codesourcery.com>
23863         * doc/cpp.texi, doc/install.texi: Change references to GCC 3.5 to
23864         refer to 4.0.
23866 2005-04-14  Julian Brown  <julian@codesourcery.com>
23868         * Revert elfos.h part of my patch from 2005-04-13 for causing libstdc++
23869         link failures on ppc64 Linux.
23871 2005-04-14  Andreas Krebbel  <krebbel1@de.ibm.com>
23873         * config.gcc: Set cpu_type for s390.
23875 2005-04-14  Daniel Berlin  <dberlin@dberlin.org>
23877         Fix PR tree-optimization/20963
23878         * tree-ssa-pre.c (compute_avail): Remove special case for
23879         TREE_INVARIANT.
23880         (create_expression_by_pieces): Add value numbers for forced out
23881         statements.
23883 2005-04-14  Hans-Peter Nilsson  <hp@axis.com>
23885         * config/cris/cris.md: Replace references to (reg:SI 16) with
23886         (reg:SI CRIS_SRP_REGNUM).
23888 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
23890         PR tree-optimization/20657
23891         * tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
23892         create an appropriate range from it.
23894 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
23896         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST_FLOOR> and
23897         <UNSPEC_FIST_CEIL> case.
23899         * config/i386/i386.md (UNSPEC_FIST_FLOOR, UNSPEC_FIST_CEIL): New.
23900         (*fist<mode>2_floor_1, fistdi2_floor, fistdi2_floor_with_temp)
23901         (fist<mode>2_floor, fist<mode>2_floor_with_temp): New isns patterns
23902         to implement lfloor and llfloor built-ins as x87 intrinsic function.
23903         (fistdi2_floor, fist<mode>2_floor splitters): New splitters.
23904         (lfloor<mode>2): New expanders.
23905         (*fist<mode>2_ceil_1, fistdi2_ceil, fistdi2_ceil_with_temp)
23906         (fist<mode>2_ceil, fist<mode>2_ceil_with_temp): New isns patterns
23907         to implement lceil and llceil built-ins as x87 intrinsic function.
23908         (fistdi2_ceil, fist<mode>2_ceil splitters): New splitters.
23909         (lceil<mode>2): New expanders.
23911 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
23913         * convert.c (convert_to_integer): Convert (long int)trunc{,f,l},
23914         and (long long int)ceil{,f,l} into FIX_TRUNC_EXPR.
23916 2005-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
23918         PR target/20927
23919         * config/s390/s390-modes.def: Define TFmode.
23921 2005-04-13  Richard Sandiford  <rsandifo@redhat.com>
23923         * config/mips/mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
23924         (JUMP_TABLES_IN_TEXT_SECTION): Define.
23925         * config/mips/mips.c (mips16_insn_length): Remove reference to
23926         JUMP_TABLES_IN_TEXT_SECTION.
23928 2005-04-13 Fariborz Jahanian <fjahanian@apple.com>
23930         * simplify-rtx.c (simplify_binary_operation_1): Return
23931         scalar or vector of constant 0, depending on the xor's
23932         mode.
23934 2005-04-13  Dale Johannesen  <dalej@apple.com>
23936         * objc/Make-lang.in (objc-lang.o): Depend on tree-gimple.h.
23937         (objc-act.o): Ditto.
23938         * objc/objc-act.c (objc_gimplify_expr): New.
23939         (objc_get_callee_fndecl): New.
23940         * objc/objc-act.h: Include tree-gimple.h.  Declare new functions.
23941         * objc/objc-lang.c (LANG_HOOKS_GIMPLIFY_EXPR): Define.
23942         (LANG_HOOKS_GET_CALLEE_FNDECL): Define.
23944 2005-04-13  Devang Patel  <dpatel@apple.com>
23946         * tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
23947         temp variables.
23949 2005-04-13  Hans-Peter Nilsson  <hp@axis.com>
23951         CRIS prologue as RTL.
23952         * config/cris/cris-protos.h (cris_emit_movem_store)
23953         (cris_expand_prologue): Prototype.
23954         * config/cris/cris.c (struct machine_function): New member
23955         stdarg_regs.
23956         (cfa_label_num, cris_target_asm_function_prologue): Remove.
23957         (TARGET_ASM_FUNCTION_PROLOGUE): Don't override.
23958         (cris_general_operand_or_gotless_symbol): Accept CRIS_UNSPEC_GOT.
23959         (cris_load_multiple_op, cris_return_address_on_stack)
23960         (cris_return_address_on_stack_for_return): ISO-Cify.
23961         (cris_store_multiple_op): New predicate function.
23962         (cris_expand_prologue, cris_emit_movem_store): New functions.
23963         (cris_print_operand) <case 'O'>: Handle modifications other than
23964         post-increment.
23965         (cris_symbol, cris_got_symbol): Return 0 for CRIS_UNSPEC_GOT.
23966         (cris_gotless_symbol): Return 1 for CRIS_UNSPEC_GOT.
23967         (cris_gen_movem_load): Rearrange slightly to make local variable
23968         src a parameter, removing osrc.
23969         (cris_setup_incoming_varargs): Set machine_function member
23970         stdarg_regs to correspond to the number of registers that need to
23971         be saved.
23972         * config/cris/cris.h (EXTRA_CONSTRAINT_S): Accept
23973         CRIS_UNSPEC_GOT.
23974         (PREDICATE_CODES): Add cris_store_multiple_op.  Make
23975         cris_general_operand_or_gotless_symbol accept UNSPEC.
23976         * config/cris/cris.md (CRIS_UNSPEC_GOT): New constant.
23977         ("*movsi_internal") <alternative 8>: Handle CRIS_UNSPEC_GOT.
23978         ("*cris_store_multiple"): New pattern.  Tweak common comment above
23979         this and "*cris_load_multiple".
23980         ("prologue"): New define_expand.
23982         * config/cris/cris.md ("epilogue"): Conditionalize on
23983         TARGET_PROLOGUE_EPILOGUE.
23985 2005-04-13  Steve Ellcey  <sje@cup.hp.com>
23987         PR target/20924
23988         * config/ia64/ia64.md (divsf3_internal_lat): Generate frcpa with
23989         fpsr 0 instead of fpsr 1.
23990         (divsf3_internal_thr): Ditto.
23991         (divdf3_internal_lat): Ditto.
23992         (divdf3_internal_thr): Ditto.
23993         (divxf3_internal_lat): Ditto.
23994         (divxf3_internal_thr): Ditto.
23996 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
23998         PR tree-optimization/20913
23999         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.
24001         PR tree-optimization/20702
24002         * tree-vrp.c (maybe_add_assert_expr): Recurse into
24003         dominator children that haven't been walked into.
24005 2005-04-13  Julian Brown  <julian@codesourcery.com>
24007         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from
24008         being used for symbols with vague linkage when HAVE_GAS_COMDAT_GROUP
24009         is true.
24011 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
24013         * basic-block.h, tree-ssa-uncprop.c, varasm.c,
24014         config/i386/sse.md: Fix comment typos.
24016         * genattrtab.c (NULL_ATTR): Remove.
24017         * ifcvt.c (NULL_EDGE): Likewise.
24019         * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
24021         * rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
24022         NOTE_PREDICT): Remove.
24024 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
24026         * configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
24027         * configure: Regenerate.
24028         * config.in: Likewise.
24029         * system.h: Declare vsnprintf if not already declared.
24031 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
24033         * optc-gen.awk: Handle stand-alone Mask records.
24034         * opth-gen.awk: Likewise.
24035         * doc/options.texi (Option file format): Document them.
24036         * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
24037         sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
24038         (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
24039         * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
24040         MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
24041         MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
24042         MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
24043         MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
24044         MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
24045         (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
24046         TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
24047         TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
24048         TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
24049         TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
24050         TARGET_LONG_DOUBLE_128): Likewise.
24051         (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
24052         (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
24053         * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
24054         * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
24055         * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
24056         * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
24057         * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
24058         * config/sparc/sparc.c (fpu_option_set): New global.
24059         (sparc_handle_option): New function.
24060         (sparc_override_options): Test fpu_option_set.
24061         (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
24062         (TARGET_HANDLE_OPTION): Set to sparc_handle_option.
24063         * config/sparc/sparc.opt: New file.
24064         * config/sparc/little-endian.opt: Likewise.
24065         * config/sparc/long-double-switch.opt: Likewise.
24067 2005-04-13  Bernd Schmidt  <bernd.schmidt@analog.com>
24069         * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
24070         (bfin_handle_options): Set it if -mshared-library-id= is seen.
24071         * config/bfin/bfin.opt (mshared-library-id=): Lose
24072         Var(bfin_lib_id_given).
24074 2005-04-13  Matt Thomas  <matt@3am-software.com>
24076         * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
24077         defining.
24079 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
24081         * rtl.h (CLEAR_RTX_FLAGS): Remove.
24083         * cgraphunit.c (INSNS_PER_CALL): Remove.
24085         * tree-ssa-forwprop.c (vars,
24086         record_single_argument_cond_exprs,
24087         substitute_single_use_vars): Remove.
24088         (forward_propagate_into_cond_1, forward_propagate_into_cond):
24089         New.
24090         (tree_ssa_forward_propagate_single_use_vars): Call
24091         forward_propagate_into_cond for each COND_EXPR.
24093         * tree-inline.c (INSNS_PER_STMT): Remove.
24095 2005-04-12  Richard Henderson  <rth@redhat.com>
24097         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
24098         (ix86_expand_sse_fp_minmax): ... from ...
24099         (ix86_expand_fp_movcc): ... here.
24100         (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
24101         * config/i386/i386-protos.h: Update.
24102         * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
24103         (sse_setccsf, sse_setccdf): Allow before reload.
24104         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
24105         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
24106         (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
24107         * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
24108         (anddf3, nanddf3, iordf3, xordf3): New.
24110 2005-04-12  Jeff Law  <law@redhat.com>
24112         * Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
24113         (tree-ssa-uncprop.o): Add dependencies.
24114         * tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
24115         * tree-flow.h (remove_useless_stmts): Remove prototype.
24116         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
24117         remove_useless_stmts.
24118         * timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
24119         * tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
24120         * tree-pass.h (pass_uncprop): Declare.
24121         * tree-ssa-uncprop.c: New file.
24123 2005-04-12  James E. Wilson  <wilson@specifixinc.com>
24125         PR target/20670
24126         * unwind-ia64.c (uw_intall_context): Add missing load of r27.
24128 2005-04-12  Caroline Tice  <ctice@apple.com>
24130         Temporary fix for partitioning problems.
24131         * passes.c (rest_of_handle_final): Remove code that
24132         frees unlikely_text_section_name,
24133         * varasm.c (assemble_start_function): Test for partitioning
24134         flag before writing out section labels.
24135         (assemble_end_function): Test for partitioning flag before
24136         writing out section labels.
24138 2005-04-12  Steven Bosscher  <stevenb@suse.de>
24139             Stuart Hastings <stuart@apple.com>
24140             Jan Hubicka  <jh@suse.cz>
24142         * Makefile.in: Add function.h to BASIC_BLOCK_H.  Remove all
24143         references to gt-tree-cfg.h.
24144         * basic-block.h (struct basic_block_def): Don't skip rbi
24145         for garbage collection.
24146         (struct reorder_block_def): Make GTY-able.
24147         (struct control_flow_graph): New structure.
24148         (n_edges, n_basic_blocks, last_basic_block, basic_block_info,
24149         BASIC_BLOCK, EXIT_BLOCK_PTR, ENTRY_BLOCK_PTR): No longer vars,
24150         but instead defines to the control_flow_graph for cfun.
24151         (label_to_block_map): New define, points to the label map of
24152         the control_flow_graph for cfun.
24153         (n_edges_for_function, n_basic_blocks_for_function,
24154         last_basic_block_for_function, basic_block_info_for_function,
24155         EXIT_BLOCK_PTR_FOR_FUNCTION, ENTRY_BLOCK_PTR_FOR_FUNCTION,
24156         basic_block_info_for_function, label_to_block_map_for_function):
24157         Counterparts for the above, taking a struct function as an extra
24158         argument.
24159         (alloc_rbi_pool, free_rbi_pool): Remove prototypes.
24160         * cfg.c: (n_edges, n_basic_blocks, last_basic_block,
24161         basic_block_info, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Remove.
24162         (alloc_rbi_pool, free_rbi_pool): Remove.
24163         (initialize_bb_rbi): Use ggc_alloc_cleared instead of pool_alloc.
24164         * cfglayout.c: (cfg_layout_initialize): Don't allocate the rbi pool
24165         here...
24166         (cfg_layout_finalize) ... and don't free it here.
24167         * cfgrtl.c (cfg_layout_delete_block): Zero out rbi so it gets
24168         garbage collected.
24169         * flow.c (free_basic_block_vars): Set label_to_block_map and
24170         n_edges to zero too.
24171         * function.h (struct function): Add cfg field.
24172         * function.c (allocate_struct_function): Allocate the cfg.
24173         * tree-cfg.c (label_to_block_map): Remove.
24174         (build_tree_cfg): Don't allocate the rbi pool here...
24175         (delete_tree_cfg_annotations): ...and don't free it here.
24176         Also don't nullify label_to_block_map for cfun.
24178 2005-04-12  Caroline Tice  <ctice@apple.com>
24180         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
24181         Revert my patch from April 9.
24182         (fix_edges_for_rarely_executed_code): Revert my patch from April 9.
24183         (reorder_basic_blocks): Revert my patch from April 9.
24184         (insert_section_boundary_note): Revert my patch from April 9.
24185         * dbxout.c (dbxout_function_end): Revert my patch from April 9.
24186         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): Revert my patch from April 9.
24187         (COLD_END_LABEL): Revert my patch from April 9.
24188         (cold_text_section_label): Revert my patch from April 9.
24189         (cold_end_label): Revert my patch from April 9.
24190         (dwarf2out_switch_text_section): Revert my patch from April 9.
24191         (output_aranges): Revert my patch from April 9.
24192         (output_ranges): Revert my patch from April 9.
24193         (output_line_info): Revert my patch from April 9.
24194         (add_location_or_const_value_attribute): Revert my patch from April 9.
24195         (dwarf2out_var_location): Revert my patch from April 9.
24196         (dwarf2out_init): Revert my patch from April 9.
24197         (dwarf2out_finish): Revert my patch from April 9.
24198         * function.h (struct function): Revert my patch from April 9.
24199         * opts.c (decode_options): Revert my patch from April 9.
24200         * output.h (unlikely_section_label, hot_section_label,
24201         hot_section_end_label, cold_section_end_label,
24202         unlikely_text_section_name): Revert my patch from April 9.
24203         * passes.c (rest_of_handle_final): Revert my patch from April 9.
24204         * varasm.c (unlikely_section_label, hot_section_label,
24205         hot_section_end_label, cold_section_end_label,
24206         unlikely_text_section_name): Revert my patch from April 9.
24207         (initialize_cold_section_name): Revert my patch from April 9.
24208         (unlikely_text_section): Revert my patch from April 9.
24209         (in_unlikely_text_section): Revert my patch from April 9.
24210         (named_section): Revert my patch from April 9.
24211         (function_section): Revert my patch from April 9.
24212         (current_function_section): Revert my patch from April 9.
24213         (assemble_start_function): Revert my patch from April 9.
24214         (assemble_end_function): Revert my patch from April 9.
24215         (default_section_type_flags_1): Revert my patch from April 9.
24217 2005-04-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
24219         * config/sparc/sparc.h (APPLY_RESULT_SIZE): Set to 24 in 64-bit mode.
24220         * config/sparc/sparc.md (untyped_call): Save the registers manually.
24222         * config/sparc/sparc.c (legitimate_address_p): Use TARGET_ARCH32.
24224 2005-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
24226         PR middle-end/20917
24227         * config/s390/s390.md ("*set_tp"): Use SET in pattern.
24228         ("set_tp_64", "set_tp_31"): Adapt expanded pattern.
24230 2005-04-12  Richard Henderson  <rth@redhat.com>
24232         * config/i386/i386.md (UNSPEC_FIX, UNSPEC_MOVA, UNSPEC_SHUFFLE,
24233         UNSPEC_PSHUFLW, UNSPEC_PSHUFHW, UNSPEC_ADDSUB, UNSPEC_HADD,
24234         UNSPEC_HSUB, UNSPEC_MOVSHDUP, UNSPEC_MOVSLDUP, UNSPEC_MOVDDUP): Remove.
24235         (UNSPEC_*, UNSPECV_*): Renumber.
24237 2005-04-12  Frank Ch. Eigler  <fche@redhat.com>
24239         PR mudflap/19266
24240         From Richard Henderson <rth@redhat.com>:
24241         * tree-mudflap.c (mf_build_check_statement_for): Correct block
24242         splitting logic.
24244 2005-04-12  Dorit Naishlos  <dorit@il.ibm.com>
24246         * tree-cfg.c (tree_verify_flow_info): Use LABEL_EXPR_LABEL.
24248 2005-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
24250         * config/bfin/bfin.c (bfin_library_id_string): Remove.
24251         (bfin_library_id): New variable.
24252         (bfin_expand_prologue): Use bfin_library_id and bfin_lib_id_given
24253         instead of bfin_library_id_string.
24254         (bfin_handle_option): New function.
24255         (override_options): Remove most code to deal with shared library IDs,
24256         just check they aren't used without -mid-shared-library.
24257         (TARGET_HANDLE_OPTION): Define.
24258         * config/bfin/bfin.h (TARGET_OPTIONS): Delete macro.
24259         * config/bfin/bfin.opt (mshared-library-id=): New.
24261 2005-04-12  Kazu Hirata  <kazu@cs.umass.edu>
24263         * tree-vect-transform.c: Fix comment typos.
24265 2005-04-12 Mostafa Hagog <mustafa@il.ibm.com>
24267         * postreload-gcse.c (eliminate_partially_redundant_load): Don't
24268         split critical edges when not possible/profitable.
24270 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
24272         * config/ns32k/ns32k.h (target_flags, MASK_32081, MASK_RTD)
24273         (MASK_REGPARM, MASK_32532, MASK_32332, MASK_NO_SB, MASK_NO_BITFIELD)
24274         (MASK_HIMEM, MASK_32381, MASK_MULT_ADD, MASK_SRC, MASK_IEEE_COMPARE)
24275         (TARGET_32081, TARGET_32381, TARGET_MULT_ADD, TARGET_RTD)
24276         (TARGET_REGPARM, TARGET_32532, TARGET_32332, TARGET_SB, TARGET_HIMEM)
24277         (TARGET_BITFIELD, TARGET_IEEE_COMPARE, TARGET_SWITCHES): Delete.
24278         (OVERRIDE_OPTIONS): Clear MASK_SB instead of setting MASK_NO_SB.
24279         * config/ns32k/netbsd.h (TARGET_DEFAULT): Remove MASK_NO_SB and
24280         MASK_NO_BITFIELD.
24281         * config/ns32k/ns32k.c (ns32k_handle_option): New function.
24282         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
24283         * config/ns32k/ns32k.opt: New file.
24285 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
24287         * config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.
24288         * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020)
24289         (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY)
24290         (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200)
24291         (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x)
24292         (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881)
24293         (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT)
24294         (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL)
24295         (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD)
24296         (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY)
24297         (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES)
24298         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete.
24299         (MASK_COLDFIRE): Formatting fixes.
24300         (TARGET_COLDFIRE): Turn into a boolean value for consistency.
24301         * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete.
24302         * config/m68k/m68k.c (m68k_library_id_string): Initialize to
24303         "_current_shared_library_a5_offset_".
24304         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
24305         (MASK_ALL_CPU_BITS): New macro.
24306         (m68k_handle_option): New function.
24307         (override_options): Remove handling of m68k_library_id_string.
24308         * config/m68k/m68k.opt: New file.
24309         * config/m68k/ieee.opt: New file.
24311 2005-04-11  Mark Mitchell  <mark@codesourcery.com>
24313         * target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
24314         (TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
24315         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
24316         (TARGET_CXX): Adjust accordingly.
24317         * target.h (struct gcc_target): Remove epxort_class_data.  Add
24318         determine_class_data_visibility and class_data_always_comdat.
24319         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
24320         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
24321         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
24322         * config/arm/arm.c (arm_cxx_export_class_data): Remove.
24323         (arm_cxx_determine_class_data_visibility): New.
24324         (arm_cxx_class_data_always_comdat): Likewise.
24325         (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
24326         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
24327         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
24328         * config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
24329         * config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
24330         Define.
24332 2005-04-11  Devang Patel  <dpatel@apple.com>
24334         * tree-data-ref.c (build_classic_dist_vector,
24335         compute_subscript_distance): Make externally visible.
24336         * tree-data-ref.h (build_classic_dist_vector,
24337         compute_subscript_distance): Same.
24338         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
24339         Check distance vector against vectorization factor.
24340         (vect_analyze_loop): Determine vectorizaion factor before
24341         analyzing data dependences.
24342         * tree-vectorizer.c (loops_num): Make it externally visible and
24343         rename ...
24344         * tree-vectorizer.c (vect_loops_num): ... new name.
24345         * tree-vectorizer.h  (vect_loops_num): New.
24347 2005-04-11  Devang Patel  <dpatel@apple.com>
24349         * tree-vect-analyze.c (vect_analyze_operations): Check
24350         vectorizable codition.
24351         * tree-vect-transform.c (vect_is_simple_cond): New function.
24352         (vectorizable_condition): New function.
24353         (vect_transform_stmt): Handle condition_vec_info_type.
24354         * tree-vectorizer.h (enum stmt_vec_info_type): Add
24355         condition_vec_info_type.
24356         (vectorizable_condition): New.
24358 2005-04-11  Geoffrey Keating  <geoffk@apple.com>
24360         * config/i386/i386.h (TARGET_FPMATH_DEFAULT): New.
24361         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT): New.
24362         * config/i386/i386.c (override_options): Use TARGET_FPMATH_DEFAULT.
24364         * config/i386/darwin.h (ASM_SPEC): Use -arch i386 not -arch i686.
24365         (SUBTARGET_EXTRA_SPECS): Always 'i386'.
24367         * dwarf2out.c (output_line_info): Don't try to dereference
24368         a NULL current_function_decl.
24370         * config/t-slibgcc-darwin: Don't put shared libraries in
24371         directories other than $(slibdir).
24372         * config/rs6000/darwin.h: Find -m64 libgcc under the name the
24373         OS uses for it.
24375 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
24377         PR tree-optimization/20933
24378         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Move
24379         logic to reject aliases between read-only and writable
24380         variables ...
24381         (may_alias_p): ... here.
24382         (get_tmt_for): Do not associate read-only tags to pointers
24383         whose pointed-to type is not read-only.
24384         * tree-ssa.c (verify_ssa): Check that memory stores have at
24385         least one V_MAY_DEF or V_MUST_DEF.
24387 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24389         PR/17092
24390         * configure.ac (gcc_UNLOCKED_FUNCS): New.
24391         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
24392         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
24393         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
24394         _unlocked function.
24395         (fwrite_unlocked): Fix prototype.
24397         * configure, config.in: Regenerate.
24399 2005-04-11  David Edelsohn  <edelsohn@gnu.org>
24401         * tree-ssa-loop-im.c: Include real.h.
24402         (determine_invariantness_stmt): If real division divisor is
24403         invariant and flag_unsafe_math_optimizations enabled, generate
24404         invariant reciprocal for hoisting.
24405         * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
24407 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
24409         Fix PR tree-optimization/20926
24411         * tree-ssa-alias.c (add_type_alias): Handle subvars.
24413 2005-04-11  Devang Patel  <dpatel@apple.com>
24415         * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
24416         operand ordering.
24418 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
24420         * fold-const.c (fold_binary_op_with_conditional_arg):
24421         use fold_buildN instead of "fold (buildN" in some
24422         non obvious places.
24423         (fold_unary): Likewise.
24424         (fold_binary): Likewise.
24426 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
24428         Fix PR tree-optimization/20612
24429         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
24430         handling
24431         (perfect_nestify): preheaderbb is *not* part of loop of the
24432         old destination.
24434 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
24436         * tree-ssa-alias.c (may_alias_p): If the variable
24437         is a global variable and the pointer is parameter
24438         and -fargument-noalias-global is used, then
24439         the pointer cannot alias the variable.
24441 2005-04-11  James A. Morrison  <phython@gcc.gnu.org>
24443         * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
24444         * config/sparc/sparc.h: Likewise.
24445         * config/sparc/sparc.md: Likewise.
24447 2005-04-11  Kazu Hirata  <kazu@cs.umass.edu>
24449         * tree-vrp.c (maybe_add_assert_expr): Move a comment.
24451         * tree-vrp.c: Fix a comment typo.
24453 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
24455         PR tree-optimization/20920
24456         * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
24457         SSA_NAME flows through an abnormal edge.
24458         * tree-vrp.c (infer_value_range): Ignore SSA names that flow
24459         through abnormal edges.
24460         (maybe_add_assert_expr): Likewise.
24462 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
24464         * config/s390/s390.h (s390_tune_string, s390_arch_string)
24465         (s390_warn_framesize_string, s390_warn_dynamicstack_string)
24466         (s390_stack_size_string, s390_stack_guard_string, target_flags)
24467         (MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
24468         (MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
24469         (MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
24470         (TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
24471         (TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
24472         (TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
24473         (TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
24474         * config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
24475         (TARGET_HANDLE_OPTION): Likewise.
24476         (s390_tune): Initialize to PROCESSOR_max.
24477         (s390_arch_string): Make static.
24478         (s390_tune_string, s390_warn_framesize_string): Delete.
24479         (s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
24480         (s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
24481         (s390_handle_arch_option, s390_handle_option): New functions.
24482         (override_options): Remove parsing of option strings.
24483         * config/s390/s390.opt: New file.
24485 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
24487         * tree-complex.c (expand_vector_operations): Call
24488         update_stmt_if_modified.
24490 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
24492         * tree-vect-analyze (vect_determine_vectorization_factor):
24493         Do not use GET_MODE_NUNITS.
24494         * tree-vect-transform.c (vect_get_vec_def_for_operand,
24495         (vectorizable_load, vect_transform_loop): Likewise.
24497 2005-04-11  Uros Bizjak  <uros@kss-loka.si>
24499         * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL)
24500         (BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
24501         * optabs.h (enum optab_index): Add new OTI_lceil.
24502         (lceil_optab): Define corresponding macro.
24503         * optabs.c (init_optabs): Initialize lceil_optab.
24504         * genopinit.c (optabs): Implement lceil_optab using lceilsi2
24505         and lceildi2 patterns.
24506         * builtins.c (expand_builtin_int_roundingfn): Handle
24507         BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
24508         (fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
24509         BUILT_IN_LLCEIL{,F,L}.
24510         (fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
24511         BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
24512         (mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
24513         (expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
24514         BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
24515         * convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
24516         into lceil built-in function and (long long int)ceil{,f,l} into
24517         llceil built-in function.
24518         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
24519         BUILT_IN_LLCEIL.
24521 2005-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24523         * pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
24524         zero.
24526 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
24528         * config/arm/arm.c: Fix a comment typo.
24529         * doc/tree-ssa.texi: Fix a typo.
24531 2005-04-10  Steven Bosscher  <stevenb@suse.de>
24533         * cselib.c (clear_table): Rename to cselib_clear_table.
24534         * cselib.h (cselib_clear_table): Add prototype.
24535         * gcse.c (gcse_main): Make 'f' argument unused.
24536         (alloc_gcse_mem): Do not walk the insn chain, walk the contents
24537         of each basic block instead.
24538         (compute_sets, compute_hash_table_work): Likewise.
24539         (constprop_register): Change int 'alter_jumps' argument to bool.
24540         (do_local_cprop): Likewise.
24541         (local_cprop_pass): Likewise.  Also walk basic blocks instead of
24542         the insn chain.  Explicitly clear the cselib tables after finishing
24543         one basic block.  Make sure there are no unterminated libcall blocks.
24544         Update compute_sets call.
24545         (cprop): Walk basic blocks instead of the insn chain.
24546         (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
24547         Likewise.
24548         (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
24549         one_cprop_pass calls.
24551 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
24553         * combine.c (combine_simplify_rtx): Remove a transformation that
24554         relies on an invalid assumption about rtl sign-extension semantics.
24556 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
24558         * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
24559         to build_int_cst_wide.
24561 2005-04-09  Alexandre Oliva  <aoliva@redhat.com>
24563         PR target/20126
24564         * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
24565         set the original address pseudo to the correct value before the
24566         original insn, if possible, and leave the insn alone, otherwise
24567         create a new pseudo, set it and replace it in the insn.
24568         * recog.c (validate_change_maybe_volatile): New.
24569         * recog.h (validate_change_maybe_volatile): Declare.
24571 2005-04-09  Caroline Tice  <ctice@apple.com>
24573         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
24574         Remove targetm.have_named_sections test.
24575         (fix_edges_for_rarely_executed_code): Likewise.
24576         (insert_section_boundary_note): Likewise.
24577         (reorder_basic_blocks): Check partitioning flag before calling
24578         verify_hot_cold_block_grouping.
24579         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
24580         the function struct rather than global variables.
24581         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
24582         (COLD_END_LABEL): Likewise
24583         (cold_text_section_label): New static global variable.
24584         (cold_end_label): Likewise.
24585         (dwarf2out_switch_text_section): Get hot/cold section labels from
24586         the function struct rather than global variables.
24587         (output_aranges): Use cold_text_section_label and cold_end_label;
24588         check partitioning flag before putting out delta.
24589         (output_ranges): Remove incorrect code attempting to use
24590         hot/cold labels.
24591         (output_line_info): Get cold section label from function struct.
24592         (add_location_or_const_value_attribute): Likewise.
24593         (get_subprogram_die): Get hot/cold section labels from function struct.
24594         (dwarf2out_var_location): Likewise.
24595         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
24596         write out cold_text_section_label if partition flag is set.
24597         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
24598         * function.h (struct function): Add new fields to point to hot/cold
24599         section labels: hot_section_label, cold_section_label,
24600         hot_section_end_label and cold_section_end_label; also add new field
24601         for cold text section name, unlikely_text_section_name.
24602         * opts.c (decode_options): Turn off partitioning flag if
24603         !targetm.have_named_sections.
24604         * output.h (hot_section_label): Remove.
24605         (hot_section_end_label): Remove.
24606         (cold_section_end_label): Remove.
24607         (unlikely_section_label): Remove.
24608         (unlikely_text_section_name): Remove.
24609         * passes.c (rest_of_handle_final): Remove code that frees
24610         unlikely_text_section_name.
24611         * varasm.c (unlikely_section_label): Remove.
24612         (hot_section_label): Remove.
24613         (hot_section_end_label): Remove.
24614         (cold_section_end_label): Remove.
24615         (unlikely_text_section_name): Remove.
24616         (initialize_cold_section_name): Modify to call
24617         targetm.strip_name_encoding; to store cold section name in current
24618         function struct, if it exists; and to only use the decl_section_name
24619         if flag_named_sections is true.
24620         (unlikely_text_section): Modify to get section name out of current
24621         function struct, if there is one; otherwise build it from
24622         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
24623         (in_unlikely_text_section): Likewise.
24624         (named_section): Modify to get/put cold section name in current function
24625         struct, if there is one.
24626         (function_section): Change 'bool unlikely' to 'int reloc'; check
24627         targetm.have_named_sections before calling named_section.
24628         (current_function_section): Likewise.
24629         (assemble_start_function): Modify to get/put unlikely_text_section_name
24630         in current function struct; modify to get hot/cold section labels
24631         from function struct; initialize labels using
24632         ASM_GENERATE_INTERNAL_LABEL;
24633         test partitioning flag before writing out hot section label.
24634         (assemble_end_function): Test partitioning flag before writing out
24635         hot/cold section labels.
24636         (default_section_type_flags_1): Modify to use array instead of
24637          char* for unlikely_text_section_name; set flags correctly for
24638          cold text section if there is not a current function decl.
24640 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
24642         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
24643         and TI_VA_LIST_FPR_COUNTER_FIELD.
24644         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
24645         * tree-pass.h (pass_stdarg): Add.
24646         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
24647         * tree-stdarg.c: New file.
24648         * tree-stdarg.h: New file.
24649         * Makefile.in (OBJS-common): Add tree-stdarg.o.
24650         (tree-stdarg.o): Add dependencies.
24651         * function.h (struct function): Add va_list_gpr_size and
24652         va_list_fpr_size fields.
24653         * function.c (allocate_struct_function): Initialize them.
24654         * target.h (struct gcc_target): Add stdarg_optimize_hook.
24655         * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
24656         (TARGET_INITIALIZER): Add it.
24658         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
24659         va_list_{g,f}pr_counter_field.
24660         (ix86_setup_incoming_varargs): Don't do anything if reg_save
24661         area will not be used.  Only save registers that tree-stdarg.c
24662         detected they need saving.
24663         (ix86_va_start): Don't set up fields that won't be used.
24665         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
24666         va_list_{g,f}pr_counter_field.
24667         (setup_incoming_varargs): Don't do anything if reg_save
24668         area will not be used.  Only save registers that tree-stdarg.c
24669         detected they need saving.
24670         (rs6000_va_start): Don't set up fields that won't be used.
24672         * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
24673         (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
24674         (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
24675         (TARGET_STDARG_OPTIMIZE_HOOK): Define.
24677 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
24679         PR target/20795
24680         * config/i386/i386.c (construct_container): Pass empty aligned
24681         struct, union or class in memory.
24683 2005-04-09  Kazu Hirata  <kazu@cs.umass.edu>
24685         * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
24686         tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
24687         config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
24688         config/rs6000/predicates.md: Fix comment typos.
24690         * sched-int.h (haifa_insn_data): Remove blockage and units.
24691         (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
24692         ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
24693         MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
24695 2005-04-09  Jan Hubicka  <jh@suse.cz>
24696             Steven Bosscher  <stevenb@suse.de>
24698         * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
24699         * cfgloop.c (get_loop_exit_edges): Likewise.
24700         * cfgloopmanip.c (fix_irreducible_loops): Likewise.
24701         (unloop): Likewise.
24702         * loop-unroll.c (analyze_insns_in_loop): Likewise.
24703         * tree-cfg.c (dump_cfg_status): Likewise.
24705 2005-04-09  David Edelsohn  <edelsohn@gnu.org>
24707         * config/rs6000/predicates.md (altivec_register_operand): Remove
24708         redundant match_code test.
24709         (gpc_reg_operand): Same.
24710         (cc_reg_operand): Same.
24711         (cc_reg_not_cr0_operand): Same.
24713 2005-04-09  Jan Hubicka  <jh@suse.cz>
24715         Forgotten hunk from my last merge patch:
24716         * final.c (output_addr_const): Do not call mark_referenced.
24718 2005-04-09  Andrew MacLeod  <amacleod@redhat.com>
24720         * doc/tree-ssa.texi: Add immediate use documentation.
24722 2005-04-09  Richard Earnshaw <richard.earnshaw@arm.com>
24724         * arm.c (FL_WBUF): Define.
24725         (arm_tune_strongarm): Renamed from arm_is_strong.  All uses changed.
24726         (arm_is_6_or_7): Delete.
24727         (arm_tune_wbuf): New.
24728         (arm_override_options): Set arm_tune_wbuf.
24729         * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
24730         (arm_is_6_or_7): Delete declaration.
24731         (arm_tune_wbuf): New declartion.
24732         * arm.md (is_strongarm): Derive from arm_tune_strongarm.
24733         (model_wbuf): Derive from arm_tune_wbuf.
24734         * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
24735         (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
24736         (arm740t): Mark CPUs as having a write buffer.
24738 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
24740         * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
24741         of 'const_double_operand' in operand 2 constraints.  Update enable
24742         condition.
24744 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
24746         * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
24747         (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
24748         * optabs.h (enum optab_index): Add new OTI_lfloor.
24749         (lfloor_optab): Define corresponding macro.
24750         * optabs.c (init_optabs): Initialize lfloor_optab.
24751         * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
24752         and lfloordi2 patterns.
24753         * builtins.c (expand_builtin_int_roundingfn): New prototype.
24754         (expand_builtin_int_roundingfn): New function.
24755         (fold_builtin_int_roundingfn): New prototype.
24756         (fold_builtin_int_roundingfn): New function, renamed from
24757         fold_builtin_lround.
24758         Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
24759         BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
24760         (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
24761         BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
24762         (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
24763         (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
24764         BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
24765         * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
24766         into lfloor built-in function and (long long int)floor{,f,l} into
24767         llfloor built-in function.
24768         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
24769         BUILT_IN_LLFLOOR.
24771 2005-04-08  Ian Lance Taylor  <ian@airs.com>
24773         * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
24774         CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
24775         * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
24776         (DO_COND, DO_BODY): Likewise.
24777         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
24778         (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
24779         (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
24780         BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
24781         (build_continue_stmt, build_break_stmt): Don't declare.
24782         (c_do_switch_warnings): Update declaration.
24783         * c-gimplify.c (enum bc_t): Remove.
24784         (struct c_gimplify_ctx, ctxp): Remove.
24785         (push_context, pop_context): Remove static functions.
24786         (c_genericize): Don't call push_context or pop_context.
24787         (begin_bc_block, finish_bc_block): Remove static functions.
24788         (build_bc_goto): Likewise.
24789         (gimplify_c_loop): Likewise.
24790         (gimplify_for_stmt, gimplify_while_stmt): Likewise.
24791         (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
24792         (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
24793         DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
24794         * c-common.c (c_do_switch_warnings): Rename from
24795         c_do_switch_warnings_1.
24796         (c_do_switch_warnings) [old version]: Remove.
24797         (c_do_switch_expr_warnings): Remove.
24798         * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
24799         function instead of c_do_switch_expr_warnings.
24800         * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
24801         CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
24802         * c-pretty-print.c (pp_c_statement): Likewise.
24803         * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
24805 2005-04-08  Devang Patel  <dpatel@apple.com>
24807         * tree-if-conv.c (find_phi_replacement_condition): New parameter, loop.
24808         While selecting replacement condition pay attention to loop header.
24810 2005-04-08  Diego Novillo  <dnovillo@redhat.com>
24812         Merge from tree-cleanup-branch: VRP, store CCP, store
24813             copy-prop, incremental SSA updating of FUD chains and
24814             newly exposed symbols.
24816         * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
24817         (OBJS-common): Add tree-vrp.o.
24818         (tree-vrp.o): New rule.
24819         * basic-block.h (nearest_common_dominator_for_set): Declare.
24820         * common.opt (ftree-store-ccp): New flag.
24821         (ftree-copy-prop): New flag.
24822         (ftree-vrp): New flag.
24823         (ftree-store-copy-prop): New flag.
24824         * dominance.c (nearest_common_dominator_for_set): New.
24825         * domwalk.c (walk_dominator_tree): Only traverse
24826         statements in blocks marked in walk_data->interesting_blocks.
24827         * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
24828         * fold-const.c (fold): Handle ASSERT_EXPR.
24829         * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
24830         Set flag_tree_store_ccp, flag_tree_store_copy_prop and
24831         flag_tree_vrp at -O2.
24832         * timevar.def (TV_TREE_VRP): Define.
24833         (TV_TREE_COPY_PROP): Define.
24834         (TV_TREE_STORE_COPY_PROP): Define.
24835         (TV_TREE_SSA_INCREMENTAL): Define.
24836         (TV_TREE_STORE_CCP): Define.
24837         * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
24838         to kill_redundant_phi_nodes from comment.
24839         (verify_expr): Handle ASSERT_EXPR.
24840         * tree-dfa.c (mark_new_vars_to_rename): Remove second
24841         argument.  Update all users.
24842         (mark_call_clobbered_vars_to_rename): Remove.  Update all
24843         users.
24844         * tree-flow-inline.h (unmodifiable_var_p): New.
24845         * tree-flow.h (enum value_range_type): Declare.
24846         (struct value_range_def): Declare.
24847         (value_range): Declare.
24848         (remove_all_phi_nodes_for): Remove.  Update all users.
24849         (find_phi_node_for): Declare.
24850         (add_type_alias): Declare.
24851         (count_uses_and_derefs): Declare.
24852         (kill_redundant_phi_nodes): Remove.
24853         (rewrite_into_ssa): Remove.
24854         (rewrite_def_def_chains): Remove.
24855         (update_ssa, register_new_name_mapping, create_new_def_for,
24856         need_ssa_update_p, name_registered_for_update_p,
24857         release_ssa_name_after_update_ssa, dump_repl_tbl,
24858         debug_repl_tbl, dump_names_replaced_by,
24859         debug_names_replaced_by, mark_sym_for_renaming,
24860         mark_set_for_renaming, get_current_def, set_current_def,
24861         get_value_range, dump_value_range, debug_value_range,
24862         dump_all_value_ranges, debug_all_value_ranges,
24863         expr_computes_nonzero, loop_depth_of_name,
24864         unmodifiable_var_p): Declare.
24865         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
24866         ASSERT_EXPR.
24867         * tree-into-ssa.c (block_defs_stack): Update comment.
24868         (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
24869         syms_to_rename, names_to_release, repl_tbl,
24870         need_to_initialize_update_ssa_p, need_to_update_vops_p,
24871         need_to_replace_names_p): New locals.
24872         (NAME_SETS_GROWTH_FACTOR): Define.
24873         (struct repl_map_d): Declare.
24874         (struct mark_def_sites_global_data): Add field
24875         interesting_blocks.
24876         (enum rewrite_mode): Declare.
24877         (REGISTER_DEFS_IN_THIS_STMT): Define.
24878         (compute_global_livein): Use last_basic_block instead of
24879         n_basic_blocks.
24880         (set_def_block): Remove last argument.  Update all callers.
24881         (prepare_use_operand_for_rename): Remove.  Update all callers.
24882         (prepare_def_operand_for_rename): Remove.  Update all callers.
24883         (symbol_marked_for_renaming): New.
24884         (is_old_name): New.
24885         (is_new_name): New.
24886         (repl_map_hash): New.
24887         (repl_map_eq): New.
24888         (repl_map_free): New.
24889         (names_replaced_by): New.
24890         (add_to_repl_tbl): New.
24891         (add_new_name_mapping): New.
24892         (mark_def_sites): Assume that all the operands in the
24893         statement are in normal form.
24894         (find_idf): Assert that the block in the stack is valid.
24895         (get_default_def_for): New.
24896         (insert_phi_nodes_for): Add new argument 'update_p'.
24897         Add documentation.
24898         If update_p is true, add a new mapping between the LHS of
24899         each new PHI and the name that it replaces.
24900         (insert_phi_nodes_1): Only call find_idf if needed.
24901         (get_reaching_def): Call get_default_def_for.
24902         (rewrite_operand): Remove.
24903         (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
24904         and REWRITE_THIS_STMT are false.
24905         Assume that all the operands in the statement are in
24906         normal form.
24907         (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
24908         (rewrite_virtual_phi_arguments): Remove.
24909         (invalidate_name_tags): Remove.
24910         (register_new_update_single, register_new_update_set,
24911         rewrite_update_init_block, replace_use,
24912         rewrite_update_fini_block, rewrite_update_stmt,
24913         rewrite_update_phi_arguments): New.
24914         rewrite_blocks): Remove argument 'fix_virtual_phis'.
24915         Add arguments 'entry', 'what' and 'blocks'.
24916         Initialize the dominator walker according to 'what' and
24917         'blocks'.
24918         Start the dominator walk at 'entry'.
24919         (mark_def_site_blocks): Add argument 'interesting_blocks'.
24920         Use it to configure the dominator walker.
24921         (rewrite_into_ssa): Remove argument 'all'.
24922         Make internal.
24923         (rewrite_all_into_ssa): Remove.
24924         (rewrite_def_def_chains): Remove.
24925         (mark_def_interesting, mark_use_interesting,
24926         prepare_phi_args_for_update, prepare_block_for_update,
24927         prepare_def_site_for, prepare_def_sites,
24928         dump_names_replaced_by, debug_names_replaced_by,
24929         dump_repl_tbl, debug_repl_tbl, init_update_ssa,
24930         delete_update_ssa, create_new_def_for,
24931         register_new_name_mapping, mark_sym_for_renaming,
24932         mark_set_for_renaming, need_ssa_update_p,
24933         name_registered_for_update_p, ssa_names_to_replace,
24934         release_ssa_name_after_update_ssa,
24935         insert_updated_phi_nodes_for, update_ssa): New.
24936         * tree-loop-linear.c (linear_transform_loops): Call
24937         update_ssa instead of rewrite_into_ssa.
24938         * tree-optimize.c (vars_to_rename): Remove.
24939         Update all users.
24940         (init_tree_optimization_passes): Replace
24941         pass_redundant_phi with pass_copy_prop.
24942         Add pass_vrp.
24943         Replace pass_ccp with pass_store_ccp.
24944         Add pass_store_copy_prop after pass_store_ccp.
24945         (execute_todo): If the TODO_ flags don't include updating
24946         the SSA form, assert that it does not need to be updated.
24947         Call update_ssa instead of rewrite_into_ssa and
24948         rewrite_def_def_chains.
24949         If TODO_verify_loops is set, call verify_loop_closed_ssa.
24950         (tree_rest_of_compilation):
24951         * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
24952         TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
24953         TODO_cleanup_cfg): Renumber.
24954         (TODO_verify_loops, TODO_update_ssa,
24955         TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
24956         TODO_update_ssa_only_virtuals): Define.
24957         (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
24958         Declare.
24959         * tree-phinodes.c (make_phi_node): Update documentation.
24960         (remove_all_phi_nodes_for): Remove.
24961         (find_phi_node_for): New.
24962         * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
24963         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
24964         (interpret_rhs_modify_expr): Likewise.
24965         * tree-sra.c (decide_instantiations): Mark all symbols in
24966         SRA_CANDIDATES for renaming.
24967         (mark_all_v_defs_1): Rename from mark_all_v_defs.
24968         (mark_all_v_defs): New function.  Update all users to call it
24969         with the whole list of scalarized statements, not just the
24970         first one.
24971         * tree-ssa-alias.c (count_ptr_derefs): Make extern.
24972         (compute_flow_insensitive_aliasing): If the tag is
24973         unmodifiable and the variable isn't or vice-versa, don't
24974         make them alias of each other.
24975         (setup_pointers_and_addressables): If the type tag for
24976         VAR is about to change, mark the old one for renaming.
24977         (add_type_alias): New.
24978         * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
24979         (ccp_lattice_t): Rename from latticevalue.
24980         (value): Remove.  Update all users.
24981         (const_val): New local variable.
24982         (do_store_ccp): New local variable.
24983         (dump_lattice_value): Handle UNINITIALIZED.
24984         (debug_lattice_value): New.
24985         (get_default_value): Re-write.
24986         (set_lattice_value): Re-write.
24987         (def_to_varying): Remove.  Update all users.
24988         (likely_value): Return VARYING for statements that make
24989         stores when STORE_CCP is false.
24990         Return VARYING for any statement other than MODIFY_EXPR,
24991         COND_EXPR and SWITCH_EXPR.
24992         (ccp_initialize): Re-write.
24993         (replace_uses_in, replace_vuse_in, substitute_and_fold):
24994         Move to tree-ssa-propagate.c.
24995         (ccp_lattice_meet): Handle memory stores when
24996         DO_STORE_CCP is true.
24997         (ccp_visit_phi_node): Likewise.
24998         (ccp_fold): Likewise.
24999         (evaluate_stmt): Likewise.
25000         (visit_assignment): Likewise.
25001         (ccp_visit_stmt): Likewise.
25002         (execute_ssa_ccp): Add argument 'store_ccp'.  Copy it
25003         into DO_STORE_CCP.
25004         (do_ssa_ccp): New.
25005         (pass_ccp): Use it.
25006         (do_ssa_store_ccp): New.
25007         (gate_store_ccp): New.
25008         (pass_store_ccp): Declare.
25009         * tree-ssa-copy.c: Include tree-ssa-propagate.h.
25010         (may_propagate_copy): Reformat.
25011         Don't abort if ORIG is a virtual and DEST isn't.
25012         If NEW does not have alias information but DEST does,
25013         copy it.
25014         (copy_of, cached_last_copy_of, do_store_copy_prop, enum
25015         copy_prop_kind, which_copy_prop): Declare.
25016         (stmt_may_generate_copy, get_copy_of_val,
25017         get_last_copy_of, set_copy_of_val, dump_copy_of,
25018         copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
25019         copy_prop_visit_stmt, copy_prop_visit_phi_node,
25020         init_copy_prop, fini_copy_prop, execute_copy_prop,
25021         gate_copy_prop, do_copy_prop, gate_store_copy_prop,
25022         store_copy_prop): New.
25023         (pass_copy_prop, pass_store_copy_prop): Declare.
25024         * tree-ssa-dom.c (struct opt_stats_d): Add fields
25025         'num_const_prop' and 'num_copy_prop'.
25026         (cprop_operand): Update them.
25027         (dump_dominator_optimization_stats): Dump them.
25028         (tree_ssa_dominator_optimize): Call update_ssa instead of
25029         rewrite_into_ssa.
25030         (loop_depth_of_name): Declare extern.
25031         (simplify_cond_and_lookup_avail_expr): Guard against NULL
25032         values for LOW or HIGH.
25033         (cprop_into_successor_phis): Only propagate if NEW != ORIG.
25034         (record_equivalences_from_stmt): Call expr_computes_nonzero.
25035         (cprop_operand): Only propagate if VAL != OP.
25036         * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
25037         statement for renaming.
25038         * tree-ssa-loop-im.c (move_computations): Call update_ssa.
25039         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
25040         add_type_alias if necessary.
25041         Call mark_new_vars_to_rename.
25042         (tree_ssa_iv_optimize): If new symbols need to be renamed,
25043         mark every statement updated, call update_ssa and
25044         rewrite_into_loop_closed_ssa.
25045         * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
25046         from LIVEIN if VAR is a virtual.
25047         * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
25048         * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
25049         (get_call_expr_operands): Reformat statement.
25050         (add_stmt_operand): Don't create V_MAY_DEFs for read-only
25051         symbols.
25052         * tree-ssa-propagate.c (ssa_prop_init): Initialize
25053         SSA_NAME_VALUE for every name.
25054         (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
25055         get_value_loaded_by): New.
25056         (replace_uses_in, replace_vuses_in, replace_phi_args_in,
25057         substitute_and_fold): Move from tree-ssa-ccp.c.
25058         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
25059         first_vdef, stmt_makes_single_load, stmt_makes_single_store,
25060         get_value_loaded_by, replace_uses_in, substitute_and_fold):
25061         Declare.
25062         * tree-ssa.c (verify_use): Fix error message.
25063         (propagate_into_addr, replace_immediate_uses, get_eq_name,
25064         check_phi_redundancy, kill_redundant_phi_nodes,
25065         pass_redundant_phi): Remove.  Update all users.
25066         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
25067         add_type_alias, if necessary.
25068         * tree-vectorizer.h (struct _stmt_vect_info): Update
25069         documentation for field 'memtag'.
25070         * tree-vrp.c: New file.
25071         * tree.def (ASSERT_EXPR): Define.
25072         * tree.h (ASSERT_EXPR_VAR): Define.
25073         (ASSERT_EXPR_COND): Define.
25074         (SSA_NAME_VALUE_RANGE): Define.
25075         (struct tree_ssa_name): Add field 'value_range'.
25076         (PHI_REWRITTEN): Remove.
25077         (struct tree_phi_node): Remove field 'rewritten'.
25078         * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
25079         -ftree-store-copy-prop): Document.
25080         * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
25081         Document usage of update_ssa.
25083 2005-04-08  David Edelsohn  <edelsohn@gnu.org>
25085         PR target/20814
25086         * config/rs6000/predicates.md (altivec_register_operand): Accept
25087         SUBREG.
25088         (and64_operand): Do not limit CONST_INT to mask64_operand.
25089         (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
25090         (and_operand): Do not limit CONST_INT to mask_operand.
25092 2005-04-09  Hans-Peter Nilsson  <hp@axis.com>
25094         PR rtl-optimization/20466
25095         * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
25096         for overlap of the address of each list member.
25097         (mark_set_1): Call invalidate_mems_from_set for MEMs too.
25099 2005-04-08  Mike Stump  <mrs@apple.com>
25101         * config/darwin.c (indirect_data): Fix typo in strncmp logic.
25103         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
25104         instead of 4.
25106 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
25108         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
25110         * function.c (push_function_context_to): Don't set
25111         contains_functions.
25112         * function.h (function): Remove contains_functions.
25113         (current_function_contains_functions): Remove.
25115         * function.h (function): Remove instrument_entry_exit.
25116         (current_function_instrument_entry_exit): Remove.
25118         * function.h (nonlocal_labels): Remove.
25120         * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
25122         * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
25123         (check_attr_value, write_attr_get, write_expr_attr_cache,
25124         find_attr, make_internal_attr): Don't reference negative_ok or
25125         unsigned_p.
25126         * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
25127         ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
25128         (ATTR_STATIC): Adjust the value.
25130         * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
25132 2005-04-08  Ulrich Weigand  <uweigand@de.ibm.com>
25134         * config/s390/tpf.h (ASM_SPEC): Define.
25136 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
25138         * tree-flow.h: Remove the prototype for
25139         redirect_immediate_uses.
25140         (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
25142 2005-04-08  Richard Earnshaw  <richard.earnshaw@arm.com>
25144         * arm.c (arm_const_double_by_parts): New function.
25145         * arm-protos.h (arm_const_double_by_parts): Add prototype.
25146         * arm.md (define_split for 64-bit constants): Add another one.
25148 2005-04-08  Andrew MacLeod  <amacleod@redhat.com>
25150         * tree-ssa-operands.c (correct_use_link): Remove linear scan.
25152 2005-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25154         * system.h: Revert last change.
25156 2005-04-08  Richard Sandiford  <rsandifo@redhat.com>
25158         * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
25159         (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
25160         (TARGET_SWITCHES): Delete.
25161         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
25162         * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
25163         TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
25164         * config/xtensa/xtensa.opt: New file.
25166 2005-04-08  Ben Elliston  <bje@au.ibm.com>
25168         * config/fp-bit.c: Include L_mul_tf in #endif comment.
25169         * config/fp-bit.h: Tidy comments.
25171 2005-04-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25173         * system.h: Poison PARAMS.
25175 2005-04-07  Richard Sandiford  <rsandifo@redhat.com>
25177         * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
25178         (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
25179         (TARGET_SWITCHES): Delete.
25180         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
25181         * config/vax/vax.opt: New file.
25183 2005-04-07  Daniel Berlin  <dberlin@dberlin.org>
25185         * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
25187 2005-04-07  Ian Lance Taylor  <ian@airs.com>
25189         * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
25190         define.
25191         * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
25192         * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
25193         Likewise.
25195 2005-04-07  Kazu Hirata  <kazu@cs.umass.edu>
25197         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
25198         all immediate uses in PHI nodes.
25200 2005-04-07  Richard Earnshaw  <richard.earnshaw@arm.com>
25202         * arm.c (arm_const_double_inline_cost): Handle any constant by
25203         using gen_lowpart and gen_highpart_mode.
25204         (note_invalid_constants): All constants in an RTX with a constraint
25205         that permits memory are now pushed to the constant pool.
25206         (output_move_double): Delete code to handle reg to reg and
25207         constant to reg moves.
25208         (const_double_needs_minipool, output_mov_immediate): Delete.
25209         * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
25210         CONST_INT and CONST_VECTOR.
25211         * arm.md (ANY64): New mode macro.
25212         (arm_movdi): Split reg-reg and const-reg moves.  Simplify constraints.
25213         (movdf_soft_insn): Split reg-reg and const-reg moves.
25214         (split patterns for 64-bit constant and register moves): New.
25215         * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
25216         (cirrus_movdf_hard_insn): Likewise.
25217         * fpa.md (movdf_fpa): Likewise.
25218         * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
25219         (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
25220         constraints.
25221         (movv2si_internal_2): Likewise.
25222         * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
25223         (movdf_vfp): Likewise.
25224         * arm-protos.h (output_mov_immediate): Delete prototype.
25226 2005-04-07  Joseph S. Myers  <joseph@codesourcery.com>
25228         PR target/20093
25229         * simplify-rtx.c (simplify_unary_operation_1): Check
25230         SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
25232 2005-04-06  James E Wilson  <wilson@specifixinc.com>
25234         PR target/20717
25235         * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
25236         ADDR_EXPR.
25238 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
25240         * coverage.h (GCOV_TYPE_NODE): Delete.
25241         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
25242         (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
25243         * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
25244         (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
25245         * value-prof.c (tree_divmod_fixed_value_transform): Delete.
25247 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
25249         PR other/20792
25250         * Makefile.in (gcc.pot): Remove options.c dependency.
25251         * optc-gen.awk: Don't quote help strings with N_().
25253 2005-04-06  James A. Morrison  <phython@gcc.gnu.org>
25255         * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
25256         the function returns a pointer type.
25258 2005-04-06  Daniel Berlin  <dberlin@dberlin.org>
25260         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
25261         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
25262         * doc/invoke.texi: Documnet salias-max-implicit-fields.
25263         * tree-ssa-alias.c (struct used_part): Add implicit_uses and
25264         explicit_uses members.
25265         (get_or_create_used_part_for): Initialize new fields.
25266         (fieldoff_compare): New function.
25267         (create_overlap_variables_for): Count number of fields, use
25268         heuristic to determine whether to create subvars for vars with
25269         only implicit uses.
25270         Sort the field list by offset and avoid creating duplicate SFT's.
25272 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
25274         * c.opt (-F): Remove trailing whitespace from help string.
25275         (-finput-charset): Use a tab to separate the switch name and help
25276         string.
25277         * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
25278         (-ftree-vectorizer-verbose): Likewise.
25280 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
25282         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
25283         a PHI argument where a use occurs instead of all PHI arguments.
25285 2005-04-06  Joseph S. Myers  <joseph@codesourcery.com>
25287         * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
25288         scope.
25290 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
25292         * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
25293         tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
25294         config/bfin/bfin.h: Fix comment typos.
25296 2005-04-06  Ranjit Mathew  <rmathew@hotmail.com>
25298         * doc/install.texi: Update the URL for Jacks.
25299         * doc/sourcebuild.texi: Likewise.
25301 2005-04-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
25303         PR target/17245
25304         * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
25305         Revert 2004-10-08 patch.  Reject TFmode LO_SUM in 32-bit mode.
25307 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
25309         * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
25311 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
25313         * config/v850/v850-protos.h (override_options): Delete.
25314         * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
25315         (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
25316         (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
25317         (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
25318         (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
25319         (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
25320         (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
25321         (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
25322         (OVERRIDE_OPTIONS): Delete.
25323         (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
25324         (small_memory_info): Remove the value field.
25325         (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
25326         TARGET_NO_APP_REGS.
25327         * config/v850/v850.c (small_memory): Remove the value field.
25328         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
25329         (override_options): Delete.
25330         (v850_handle_memory_option, v850_handle_option): New functions.
25331         * config/v850/v850.opt: New file.
25333 2005-04-06  Geoffrey Keating  <geoffk@apple.com>
25335         * config.host: Add a section for generic hosts, and a subsection
25336         for Darwin.  Add a case for x86-darwin.  Update ppc-darwin case.
25337         * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
25338         * config/host-darwin.h: New.
25339         * config/x-darwin: New.
25340         * config/i386/host-i386-darwin.c: New.
25341         * config/i386/x-darwin: New.
25342         * config/rs6000/host-darwin.c: Include host-darwin.h.
25343         (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
25344         (darwin_rs6000_gt_pch_use_address): Likewise.
25345         * config/rs6000/x-darwin: Change name of .o built, update
25346         dependencies for changes to rs6000/host-darwin.c.
25348 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
25350         PR target/17824
25351         * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
25353 2005-04-06  Dorit Naishlos  <dorit@il.ibm.com>
25355         * tree-vect-analyze.c (vect_analyze_loop_form): Call
25356         split_loop_exit_edge instead of loop_split_edge_with.
25358 2005-04-06  Paolo Bonzini  <bonzini@gnu.org>
25360         * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
25361         UNSPEC_SET_VSCR): New constants, used throughout.
25362         (*andc3_v4sf): New.
25363         (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
25364         Replace with...
25365         (altivec_vspltis<VI_char>): ... this pattern, using
25366         a QImode const_int_operand for the immediate.
25367         (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
25368         define_expands.
25370 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
25372         PR target/17822
25373         * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
25375 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
25377         * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
25379 2005-04-06  Ben Elliston  <bje@au.ibm.com>
25381         * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
25382         DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
25383         macros as living in "this file" and not gcc.h.
25385 2005-04-06  Ben Elliston  <bje@au.ibm.com>
25387         * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
25388         -ftree-live_range_split.  Perhaps renamed at some point?
25390 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
25392         PR target/20625
25393         * tree-ssa-loop-ivopts.c (generic_type_for): New function.
25394         (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
25396 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
25398         * tree-flow.h (number_of_iterations_cond): Declaration removed.
25399         * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
25400         (number_of_iterations_special): New function.
25401         (number_of_iterations_exit): Use number_of_iterations_special.
25402         Use simplify_using_outer_evolutions only at -O3.
25403         (number_of_iterations_cond, tree_simplify_using_condition,
25404         simplify_using_initial_conditions, loop_niter_by_eval,
25405         compare_trees, can_count_iv_in_wider_type_bound,
25406         simplify_using_outer_evolutions): Use fold_build.
25408 2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
25410         * doc/install.texi (Configuration): Document --with-java-home.
25412 2005-04-05  Richard Henderson  <rth@redhat.com>
25414         PR target/20342
25415         PR target/20447
25416         * config/i386/i386.c (print_operand): Handle vector zeros.
25417         (ix86_split_to_parts): Handle CONST_VECTOR.
25418         (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
25419         (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
25420         what modes to tie for MMX and SSE registers.
25421         * config/i386/i386.h (MMX_REG_MODE_P): Remove.
25422         * config/i386/i386.md: Extend move 0 -> xor peephole to apply
25423         to vector modes as well.
25424         * config/i386/predicates.md (const0_operand): Handle VOIDmode
25425         properly as an input mode.
25427 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
25429         * tree-ssa-operands.c (verify_abort): Use %p for pointers.
25431 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
25433         * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
25435 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
25437         * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
25438         and local functions, set sse_nregs to 8 and float_in_sse.
25439         (function_arg_advance, function_arg): If float_in_sse, pass
25440         SFmode and DFmode arguments in SSE registers.
25441         * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
25443         * config/i386/i386.c (ix86_value_regno): Only optimize local functions
25444         of -funit-at-a-time.
25446 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
25448         * config/i386/i386-protos.h (ix86_function_value): Accept two
25449         arguments, like the target macro.
25450         * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
25451         * config/i386/i386.c (ix86_function_value): Accept the second
25452         argument of the target macro.
25453         (ix86_function_ok_for_sibcall): Pass a function pointer to
25454         ix86_function_value.
25455         (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
25456         call to ix86_value_regno).
25457         (ix86_value_regno): Add support for returning floating point values
25458         in SSE registers.
25460 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
25462         PR tree-optimization/20076
25463         * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
25464         that call __builtin_return or __builtin_apply_args.
25466 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
25468         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
25469         Use immediate use iterator.
25470         (stmt_is_bumper_for_loop): Use immediate use iterator.
25471         * predict.c (strip_builtin_expect): Use update_stmt.
25472         * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
25473         on all elements of a STATEMENT_LIST.
25474         (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
25475         (bsi_remove): Remove imm_use links and mark the stmt as modified.
25476         (bsi_replace): Mark stmt as modified and the update it.
25477         * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
25478         (expand_complex_libcal): Call update_stmt.
25479         (expand_complex_comparison): Call mark_stmt_modified.
25480         (expand_complex_operations_1): Call update_stmt_if_modified.
25481         (expand_vector_operations_1): Call mark_stmt_modified.
25482         * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
25483         compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
25484         add_immediate_use, redirect_immediate_use,
25485         redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
25486         dump_immediate_uses_for, debug_immediate_uses_for): Delete.
25487         (mark_new_vars_to_rename): Call update_stmt.
25488         * tree-dump.c (dump_option_value_in): Add "stmtaddr".
25489         * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.
25490         Ignore PHI nodes.
25491         (unmodify_stmt): Delete.
25492         (update_stmt): New.  Force an update of a stmt.
25493         (update_stmt_if_modified): update a stmt if it is out of date.
25494         (get_stmt_operands): Verify stmt is NOT modified.
25495         (stmt_modified_p): Update comment.
25496         (delink_imm_use): Remove a use node from its immuse list.
25497         (link_imm_use_to_list): Link a use node to a specific list.
25498         (link_imm_use): Link a node to the correct list.
25499         (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
25500         it in the correct list, if appropriate.
25501         (link_imm_use_stmt): Link a use node, and set the stmt pointer.
25502         (relink_imm_use): Link a use node in place of another node in a list.
25503         (relink_imm_use_stmt): LInk a node in place of another node, and set
25504         the stmt pointer.
25505         (end_safe_imm_use_traverse): New.  Terminate a safe immuse iterator.
25506         (end_safe_imm_use_p): New.  Check for the end of a safe immuse iterator.
25507         (first_safe_imm_use): New.  Initialize a safe immuse iterator.
25508         (next_safe_imm_use): New.  Proceed to next safe immuse iterator value.
25509         (end_readonly_imm_use_p): New.  Check for end of a fast immuse iterator.
25510         (first_readonly_imm_use): New.  Initialize a fast immuse iterator.
25511         (next_readonly_imm_use): New.  Get the next fast immuse iterator value.
25512         (has_zero_uses): New.  Return true if there are no uses of a var.
25513         (has_single_use): New.  Return true if there is only a single use of a
25514         variable.
25515         (single_imm_use): New.  Return the simgle immediate use.
25516         (num_imm_uses): New.  Return the number of immediate uses.
25517         (get_v_must_def_ops): Use is now a pointer.
25518         (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
25519         get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of
25520         the use node.
25521         (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
25522         (delink_stmt_imm_use): Delink all immuses from a stmt.
25523         (phi_arg_index_from_use): New.  Return a phi arg index for a use.
25524         * tree-flow.h (struct dataflow_d): Delete.
25525         (immediate_use_iterator_d): New.  Immediate use iterator struct.
25526         (FOR_EACH_IMM_USE_FAST): New.  Macro for read only immuse iteration.
25527         (FOR_EACH_IMM_USE_SAFE): New.  Macro for write-safe immuse iteration.
25528         (BREAK_FROM_SAFE_IMM_USE): New.  Macro for earlyu exit from write-safe
25529         iteration.
25530         (struct stmt_ann_d): Remove dataflow_t from struct.
25531         * tree-if-conv.c (tree_if_conversion).  Don't call free_df.
25532         (if_convertible_phi_p): Use FAST immuse iterator.
25533         (if_convertible_loop_p): Don't call compute_immediate_uses.
25534         (replace_phi_with_cond_modify_expr): Call update_stmt.
25535         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call
25536         update_stmt_if_modified.
25537         (rewrite_all_into_ssa): Initialize ssa operands.
25538         * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
25539         compute_immediate_uses.
25540         * tree-optimize.c (execute_todo): Call verify_ssa whenever the
25541         ssa_property is available.
25542         (execute_one_pass): Change parameters passed to execute_todo.
25543         * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
25544         (remove_ssa_form): Call fini_ssa_operands.
25545         (insert_backedge_copies): Delete call to modify_stmt.
25546         * tree-phinodes.c (make_phi_node): Initialize use nodes.
25547         (release_phi_node): Delink any use nodes before releasing.
25548         (resize_phi_node): Relink any use nodes.
25549         (remove_phi_arg_num): Delink the use node.
25550         (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
25551         (remove_all_phi_nodes_for): Release phi node first.
25552         * tree-pretty-print.c (dump_generic_node): Print stmt address.
25553         * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
25554         (scalarize_use, scalarize_copy): Call update_stmt.
25555         * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
25556         (compute_points_to_and_addr_escape): Call mark_stmt_modified.
25557         * tree-ssa-cpp.c (need_imm_uses_for): Delete.
25558         (ccp_initialize): Remove call to compute_immediate_uses.
25559         (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
25560         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified
25561         stmts.
25562         (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
25563         (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
25564         (eliminate_redundant_computations): Call mark_stmt_modified.
25565         (cprop_operand): Call mark_stmt_modified.
25566         (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
25567         * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
25568         (dse_optimize_stmt): Use new immuse interface.
25569         (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
25570         * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
25571         (substitute_single_use_vars): Use new immuse interface.
25572         (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
25573         and compute_immediate_uses.
25574         * tree-ssa-loop-im.c (single_reachable_address): Use new immuse
25575         interface.
25576         (rewrite_mem_refs): Call update_stmt.
25577         (determine_lsm): Remove call to compute_imm_uses and free_df.
25578         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
25579         (try_unroll_loop_completely): Call update_stmt.
25580         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
25581         (rewrite_use_compare): Call update_stmt.
25582         (compute_phi_arg_on_exit): Insert each stmt before trying to process.
25583         (rewrite_use) : Call update_stmt.
25584         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
25585         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call
25586         update_stmt.
25587         * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
25588         (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
25589         (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
25590         use nodes.
25591         (initialize_vuse_operand): New.  Initialize a vuse operand.
25592         (initialize_v_may_def_operand): New.  Initialize a maydef operand.
25593         (initialize_v_must_def_operand): New.  Initialize a mustdef operand.
25594         (finalize_ssa_defs): Use stmt parameter.
25595         (correct_use_link): Ensure a use node is in the correct list, and has
25596         the correct stmt pointer.
25597         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
25598         finalize_ssa_v_must_defs): Also initialize use nodes.
25599         (finalize_ssa_stmt_operands): Pass extra stmt operands.
25600         (build_ssa_operands): Seperate parsing from final operand construction.
25601         (parse_ssa_operands): New.  Parse entry point for operand building.
25602         (swap_tree_operands): New.  Swap 2 tree operands.
25603         (update_stmt_operands): Ranamed from get_stmt_operands.  Always builds
25604         operands.
25605         (get_expr_operands): Call swap_tree_operands when needed.
25606         (copy_virtual_operands): Use initialize routines for virtual use ops.
25607         (create_ssa_artficial_load_stmt): Add extra stmt parameter.
25608         (verify_abort): New.  Issue imm_use error.
25609         (verify_imm_links): New Verify imm_use links for a var.
25610         (dump_immediate_uses_for): New.  Dump imm_uses for a var to file.
25611         (dump_immediate_uses): New.  Dump imm_uses for all vars to file.
25612         (debug_immediate_uses): New.  Dump imm_uses for all vars to stderr.
25613         (debug_immediate_uses_for): New.  Dump imm_uses for a var to stderr.
25614         * tree-ssa-operands.h (struct use_operand_ptr): Delete.
25615         (NULL_USE_OPERAND_P) Define.
25616         (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
25617         use node.
25618         (struct vuse_operand_type): New struct.
25619         (SET_USE): Call set_ssa_use_from_ptr.
25620         (USE_STMT): Define.
25621         (PHI_ARG_INDEX_FROM_USE): Define.
25622         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi
25623         argument via SET_USE, not PHI_ARG_DEF_TREE.
25624         * tree-ssa-pre.c (eliminate): Call update_stmt.
25625         * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators.  Don't
25626         call free_df.
25627         * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
25628         (nearest_common_dominator_of_uses): Use imm_use iterator.
25629         (statement_sink_location): Use imm_use iterator and interface.
25630         (execute_sink_code): Don't call compute_immediate_uses or free-df.
25631         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
25632         PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
25633         * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
25634         (verify_ssa): Ensure no stmt is marked modify after optimization pass
25635         if new parameter is true.
25636         (init_tree_ssa): Don't initialize operand cache here.
25637         (delete_tree_ssa): Don't destroy operand cache here.
25638         (propagate_into_addr): Pass in a use pointer, return true if anything
25639         was changed.
25640         (replace_immediate_uses): Use imm_use iterator, call update_stmt.
25641         (check_phi_redundancy): Use imm_use iterator.
25642         (kill_redundant_phi_nodes): Don't call compute_immediate_uses or
25643         free_df.
25644         * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
25645         (release_ssa_name): Delink node and all elements in its imm_use list.
25646         * tree-tailcall.c (adjust_return_value): Call update_stmt.
25647         * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
25648         * tree-vectorizer.c (need_imm_uses_for): Delete.
25649         (vectorize_loops): Dont call compute_immediate_uses or free_df.
25650         * tree.h (struct ssa_imm_use_d): Define.
25651         (SSA_NAME_IMM_USE_NODE): Define.
25652         (struct tree_ssa_name): Add imm_use node.
25653         (PHI_DF): Delete.
25654         (PHI_ARG_IMM_USE_NODE): Define.
25655         (struct phi_arg_d): Add imm_use node.
25656         (struct tree_phi_node): Remove struct dataflow_d element.
25657         (TDF_STMTADDR): Define.
25659 2005-04-05  Dale Johannesen  <dalej@apple.com>
25661         * doc/invoke.texi (Optimization Options): Remove
25662         duplicate -fcse-follow-jumps.  Add -fweb.
25663         (-ftree-lim): Fix spelling (-ftree-loop-im, invariants).
25664         (-fivcanon): Fix spelling (-ftree-loop-ivcanon).
25666 2005-04-05  Per Bothner  <per@bothner.com>
25668         * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
25669         to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
25670         (warn_uninit): Get EXPR_LOCUS from context now instead.
25671         This fixes a USE_MAPPED_LOCATION testsuite failure.
25673         * tree-ssa.c (warn_uninitialized_var): Remove useless local.
25675 2005-04-05  Per Bothner  <per@bothner.com>
25677         * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
25678         of the artification 'return 0' in main() to BUILTINS_LOCATION.
25679         * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
25680         before warning.
25682 2005-04-05  Devang Patel  <dpatel@apple.com>
25684         * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
25685         (lhsr<mode>3): ... new name.
25686         (altivec_vsra<VI_char>): Rename to ..
25687         (ashr<mode>3): ... new name.
25688         * config/rs6000/rs6000.c (builtin_description): Rename shift
25689         operations.
25691 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
25693         * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
25694         gen_lowpart_for_combine.
25695         * cse.c (gen_lowpart_if_possible): Move...
25696         * rtlhooks.c (gen_lowpart_if_possible): ... here.  Also try
25697         gen_lowpart_SUBREG.
25698         (gen_lowpart_no_emit_general): Use it.
25700 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
25702         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
25703         overriding.
25705 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
25707         * system.h: Fix typo.
25709 2005-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
25711         * config/bfin/bfin-modes.def: New file.
25712         * config/bfin/bfin-protos.h: New file.
25713         * config/bfin/bfin.c: New file.
25714         * config/bfin/bfin.h: New file.
25715         * config/bfin/bfin.md: New file.
25716         * config/bfin/bfin.opt: New file.
25717         * config/bfin/crti.s: New file.
25718         * config/bfin/crtn.s: New file.
25719         * config/bfin/elf.h: New file.
25720         * config/bfin/lib1funcs.asm: New file.
25721         * config/bfin/predicates.md: New file.
25722         * config/bfin/t-bfin: New file.
25723         * config/bfin/t-bfin-elf: New file.
25724         * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
25725         Document new attributes.
25726         (interrupt, interrupt_handler, saveall): Update documentation for
25727         these attributes.
25728         * doc/install.texi (Specific): Add entry for the Blackfin.
25729         * doc/invoke.texi (Blackfin Options): New section.
25730         * doc/md.texi (Blackfin family): New section to document constraints.
25731         * config.gcc: Add bfin*-* and bfin*-elf configurations.
25733 2005-04-05  Olivier Hainque  <hainque@adacore.com>
25735         * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
25736         match what the system unwinder expects.
25737         * config/mips/mips.c (mips_frame_set): If we're saving the return
25738         address register and the dwarf return address column number differs
25739         from the hard register number, adjust the note reg to refer to the
25740         former.
25742 2005-04-05  Richard Sandiford  <rsandifo@redhat.com>
25744         * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
25745         * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
25746         (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
25747         (processor_type): New enum.
25748         (mn10300_processor): New variable.
25749         (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
25750         (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
25751         * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
25752         (PROCESSOR_DEFAULT): New macro.
25753         * config/mn10300/mn10300.c (mn10300_processor): New variable.
25754         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
25755         (mn10300_handle_option, mn10300_override_options): New functions.
25756         * config/mn10300/mn10300.opt: New file.
25758 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
25759             Sebastian Pop <sebastian.pop@cri.ensmp.fr>
25761         PR tree-optimization/19903
25762         * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
25763         that don't fit in their type after conversion.
25765 2005-04-05  Uros Bizjak <uros@kss-loka.si>
25767         PR target/20421
25768         * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
25769         (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
25770         Allocate local stack slots here.  Set ix86_optimize_mode_switching.
25771         flag here. Implement using define_insn_and_split.
25772         (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
25773         (frndintxf2_mask_pm_i387): New insn patterns.
25774         (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
25775         Do not set ix86_optimize_mode_switching flag.
25776         (ceilsf2, ceildf2, ceilxf2): Same.
25777         (btruncsf2, btruncdf2, btruncxf2): Same.
25778         (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
25780 2005-04-05  Ian Lance Taylor  <ian@airs.com>
25782         PR debug/9963
25783         * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
25784         i386_pe_record_external_function.
25785         (i386_pe_record_external_function): Update declaration.
25786         * config/i386/winnt.c (struct extern_list): Add decl field.
25787         (i386_pe_record_external_function): Add decl parameter.
25788         (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
25789         identifier.
25790         * config/i386/i386-protos.h (i386_pe_record_external_function):
25791         Update declaration.
25793 2005-04-05  Kazu Hirata  <kazu@cs.umass.edu>
25795         * config/m68k/m68k-protos.h: Add a prototype for
25796         valid_dbcc_comparison_p_2.
25797         * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
25798         extend_operator, const_uint32_operand, const_sint32_operand,
25799         general_src_operand, nonimmediate_src_operand,
25800         memory_src_operand, post_inc_operand, pre_dec_operand,
25801         pcrel_address): Move to predicates to predicates.md.
25802         * config/m68k/m68k.h (PREDICATE_CODES): Remove.
25803         * config/m68k/m68k.md: Include predicates.md.
25804         * config/m68k/predicates.md: New.
25806 2005-04-04  Roger Sayle  <roger@eyesopen.com>
25808         * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
25810         * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
25812 2005-04-04  Ian Lance Taylor  <ian@airs.com>
25814         * c-typeck.c (struct c_switch): Rename switch_stmt field to
25815         switch_expr.
25816         (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
25817         (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
25818         (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
25819         Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
25820         * c-common.c (c_do_switch_warnings_1): New static function broken
25821         out of c_do_switch_warnings.
25822         (c_do_switch_warnings): Call c_do_switch_warnings_1.
25823         (c_do_switch_expr_warnings): New function.
25824         * c-common.h (c_do_switch_expr_warnings): Declare.
25826 2005-04-04  David Edelsohn  <edelsohn@gnu.org>
25827             Daniel Jacobowitz  <dan@codesourcery.com>
25829         * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
25830         trapping divide.
25831         * rtlanal.c (may_trap_p): Same.
25833 2005-04-04  Dale Johannesen  <dalej@apple.com>
25835         * ChangeLog: remove reference to ChangeLog.12.
25837 2005-04-05  Hans-Peter Nilsson  <hp@axis.com>
25839         CRIS epilogue as RTL.
25840         * config/cris/cris.md: Change all 0 in unspec 0 to
25841         CRIS_UNSPEC_PLT.
25842         (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
25843         ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
25844         patterns.
25845         ("return"): Change to define_expand.  Call cris_expand_return for
25846         actual expansion.
25847         ("*return_expanded"): New pattern.
25848         ("epilogue"): New define_expand.
25849         * config/cris/cris.h (PREDICATE_CODES): Add
25850         cris_load_multiple_op.
25851         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
25852         type.
25853         (enum cris_retinsn_type): New.
25854         (struct machine_function): New member return_type.
25855         (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
25856         (cris_target_asm_function_epilogue): Remove, moving RTLified
25857         contents to...
25858         (cris_expand_epilogue): New function.
25859         (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
25860         (cris_gen_movem_load, cris_load_multiple_op)
25861         (cris_return_address_on_stack_for_return, cris_expand_return): New
25862         functions.
25863         (cris_target_asm_function_prologue)
25864         (cris_initial_frame_pointer_offset): Call
25865         cris_reg_saved_in_regsave_area instead of complicated expression.
25866         Call cris_return_address_on_stack instead of an expression.
25867         (cris_print_operand) <case 'o', case 'O'>: New cases.
25868         (cris_return_address_on_stack): Change return-type to bool.
25869         (cris_simple_epilogue): Ditto.  Return false if registers are
25870         saved.
25871         * config/cris/cris-protos.h (cris_simple_epilogue)
25872         (cris_return_address_on_stack): Adjust prototype return type.
25873         (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
25874         (cris_return_address_on_stack_for_return): New prototypes.
25876 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
25878         * config/frv/frv.h (PREDICATE_CODES): Add CONST to
25879         gpr_or_int12_operand.
25881         * config/frv/frv-protos.h: Add a prototype to
25882         frv_legitimate_memory_operand and frv_const_unspec_p.
25883         (frv_unspec): Move from frv.c.
25884         * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
25885         (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
25886         (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
25887         gpr_or_fpr_operand, gpr_or_int12_operand,
25888         gpr_fpr_or_int12_operand, fpr_or_int6_operand,
25889         gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
25890         int6_operand, int5_operand, uint5_operand, uint4_operand,
25891         uint1_operand, int_2word_operand, uint16_operand,
25892         upper_int16_operand, integer_register_operand,
25893         gpr_no_subreg_operand, fpr_operand, even_reg_operand,
25894         odd_reg_operand, even_gpr_operand, odd_gpr_operand,
25895         quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
25896         dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
25897         move_destination_operand, movcc_fp_destination_operand,
25898         frv_function_symbol_referenced_p, move_source_operand,
25899         condexec_dest_operand, condexec_source_operand,
25900         reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
25901         const_unspec_operand, gpr_or_memory_operand,
25902         gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
25903         icc_operand, fcc_operand, cc_operand, icr_operand,
25904         fcr_operand, cr_operand, call_operand, sibcall_operand,
25905         symbolic_operand, relational_operator,
25906         integer_relational_operator, float_relational_operator,
25907         ccr_eqne_operator, minmax_operator,
25908         condexec_si_binary_operator, condexec_si_media_operator,
25909         condexec_si_divide_operator, condexec_si_unary_operator,
25910         condexec_sf_conv_operator, condexec_sf_add_operator,
25911         condexec_memory_operand, intop_compare_operator, acc_operand,
25912         even_acc_operand, quad_acc_operand, accg_operand: Move to
25913         predicates.md.
25914         * config/frv/frv.h (PREDICATE_CODES): Remove.
25915         * config/frv/frv.md: Include predicates.md.
25916         * config/frv/predicates.md: New.
25918 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
25920         PR target/19537
25921         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
25922         * tree-ssa-loop-ivopts.c: Include langhooks.h.
25923         (add_standard_iv_candidates_for_size): New function, extracting code
25924         from add_standard_iv_candidates and parameterizing it by type size.
25925         (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
25927 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
25929         * system.h (GCOV_SIZE_TYPE): Unposion.
25930         * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
25931         (GCOV_TYPE_SIZE): ...this new macro.
25932         * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
25933         * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
25934         (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
25935         (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
25936         (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
25937         instead of unsigned_intSI_type_node.
25938         * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
25939         (rtl_gen_one_value_profiler_no_edge_manipulation)
25940         (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
25941         * value-prof.c: Include coverage.h.
25943 2005-04-02  Daniel Berlin  <dberlin@dberlin.org>
25944             Diego Novillo <dnovillo@redhat.com>
25946         Fix PR tree-optimization/20703
25947         Fix PR tree-optimization/20725
25949         * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
25950         (create_expression_by_pieces): Ditto.
25951         (valid_in_set): Ditto. Also handle tcc_declaration.
25952         (find_or_generate_expression): Handle comparison class.
25953         (insert_into_preds_of_block): Ditto.
25954         (insert_aux): Ditto.
25955         (create_value_expr_from): Handle comparison class, recursively
25956         handle reference nodes.
25957         (compute_avail): Handle comparison classes, rewrite a little cleaner.
25958         (execute_pre): Fix spacing.
25959         (do_fre): Renamed to execute_fre.
25961 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
25963         * doc/invoke.texi (SPARC options): Document that
25964         -mlittle-endian is not supported on Linux either.
25966 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
25968         PR target/4198
25969         PR target/12027
25970         * config.gcc (Obsolete configurations): Remove
25971         sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
25972         (sparclite-*-coff*): Delete.
25973         (sparclite-*-elf*): Likewise.
25974         (sparc86x-*-elf*): Likewise.
25975         (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
25976         * config/sparc/lite.h: Delete.
25977         * config/sparc/litecoff.h: Likewise.
25978         * config/sparc/liteelf.h: Likewise.
25979         * config/sparc/sp86x-elf.h: Likewise.
25980         * config/sparc/t-sparclite: Likewise.
25981         * config/sparc/t-sp86x: Likewise.
25983 2005-04-04  Adrian Straetling  <straetling@de.ibm.com>
25985         * config/s390/s390-protos.h: (s390_comparison,
25986         s390_alc_comparison, s390_slb_comparison, const0_operand,
25987         consttable_operand, larl_operand, s_operand,
25988         shift_count_operand, bras_sym_operand, load_multiple_operation,
25989         store_multiple_operation, s390_plus_operand): Remove prototypes.
25990         (s390_legitimate_address_without_index_p): New prototype.
25991         * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
25992         to s390.h.
25993         (s390_comparison, s390_alc_comparison, s390_slb_comparison,
25994         const0_operand, consttable_operand, larl_operand, s_operand,
25995         shift_count_operand, bras_sym_operand, load_multiple_operation,
25996         store_multiple_operation, s390_plus_operand): Move to
25997         predicates.md.
25998         (check_mode): Remove.
25999         (s390_branch_condition_mask): Remove 'static'. Move prototype to
26000         s390-protos.h.
26001         (s390_legitimate_address_without_index_p): New.
26002         * config/s390/s390.h (PREDICATE_CODES): Remove.
26003         * config/s390/s390.md: Include predicates.md.
26004         * config/s390/predicates.md: New.
26006 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
26008         PR target/20446
26009         * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
26010         * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
26011         (NEED_INDICATE_EXEC_STACK): Define to 1.
26012         * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
26013         (NEED_INDICATE_EXEC_STACK): Define to 1.
26014         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
26015         (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
26016         (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
26017         (pic_helper_emitted_p): New global.
26018         (emit_pic_helper): New function extracted from...
26019         (load_pic_register): ...here.  Add 'delay_pic_helper' parameter.
26020         Do not call emit_pic_helper if delay_pic_helper is true.
26021         (sparc_expand_prologue): Pass 'false' to load_pic_register.
26022         (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
26023         (sparc_file_end): New function.
26025 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
26027         * config/mcore/mcore-protos.h: Remove the prototypes for
26028         mcore_arith_reg_operand, mcore_general_movsrc_operand,
26029         mcore_general_movdst_operand, mcore_reload_operand,
26030         mcore_arith_J_operand, mcore_arith_K_operand,
26031         mcore_arith_K_operand_not_0, mcore_arith_M_operand,
26032         mcore_arith_K_S_operand, mcore_arith_imm_operand,
26033         mcore_arith_any_imm_operand, mcore_arith_O_operand,
26034         mcore_literal_K_operand, mcore_addsub_operand,
26035         mcore_compare_operand, mcore_load_multiple_operation,
26036         mcore_store_multiple_operation, mcore_call_address_operand.
26037         Add a prototype for const_ok_for_mcore.
26038         * config/mcore/mcore.c (mcore_call_address_operand,
26039         mcore_general_movsrc_operand, mcore_general_movdst_operand,
26040         mcore_arith_reg_operand, mcore_reload_operand,
26041         mcore_arith_J_operand, mcore_arith_K_operand,
26042         mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
26043         mcore_arith_M_operand, mcore_arith_imm_operand,
26044         mcore_arith_any_imm_operand, mcore_arith_O_operand,
26045         mcore_literal_K_operand, mcore_addsub_operand,
26046         mcore_compare_operand, mcore_load_multiple_operation,
26047         mcore_store_multiple_operation): Move to predicates.md.
26048         (const_ok_for_mcore): Export.
26049         * config/mcore/mcore.h (PREDICATE_CODES): Remove.
26050         * config/mcore/mcore.md: Include predicates.md.
26051         * config/mcore/predicates.md: New.
26053         * config/mcore/predicates.md: Fix a comment typo.
26055 2005-04-04  Andreas Krebbel  <krebbel1@de.ibm.com>
26056             Adrian Straetling  <straetling@de.ibm.com>
26058         * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
26059         * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
26060         * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
26061         attribute.
26062         ("imul"): Removed from "type" attribute.
26063         ("*muldi3_sign", "muldi3"): Changed type to imuldi.
26064         ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
26065         Changed type to imulsi.
26066         ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
26068 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
26070         * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
26071         (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
26072         (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
26073         (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
26074         (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
26075         (TARGET_SWITCHES, mcore_stack_increment_string)
26076         (TARGET_OPTIONS): Delete.
26077         (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
26078         than *_BIT constants.
26079         (TARGET_8ALIGN): #undef old definition before redefining to 1.
26080         * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
26081         (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
26082         (mcore_override_options): Delete mcore_stack_increment code.
26083         Change use of M340_BIT to MASK_M340.
26084         * config/mcore/mcore.opt: New file.
26086 2005-04-04  Ian Lance Taylor  <ian@airs.com>
26088         * config/arm/arm.c (replace_symbols_in_block): Remove static
26089         function.
26091 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
26093         * config/fr30/fr30-protos.h: Remove the prototypes for
26094         stack_add_operand, add_immediate_operand,
26095         high_register_operand, low_register_operand, call_operand,
26096         di_operand, and nonimmediate_di_operand.
26097         * config/fr30/fr30.c (stack_add_operand,
26098         add_immediate_operand, high_register_operand,
26099         low_register_operand, call_operand, di_operand,
26100         nonimmediate_di_operand): Move to predicates.md.
26101         * config/fr30/fr30.h (PREDICATE_CODES): Remove.
26102         * config/fr30/fr30.md: Include predicates.md.
26103         * config/fr30/predicates.md: New.
26105         * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
26106         LABEL_REF to mcore_general_movsrc_operand.  Add SYMBOL_REF to
26107         mcore_call_address_operand.
26109         * config/sh/sh.h (PREDICATE_CODES): Add CONST to
26110         general_movsrc_operand.
26112 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
26114         * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
26115         after freeing.
26117 2005-04-04  Richard Earnshaw  <richard.earnshaw@arm.com>
26119         PR target/14812
26120         * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
26121         a negated value.
26123 2005-04-04  Richard Henderson  <rth@redhat.com>
26124             Jakub Jelinek  <jakub@redhat.com>
26126         PR rtl-optimization/16104
26127         * fold-const.c (fold_unary): Fix folding of vector conversions.
26129 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
26131         * config.gcc (xstormy16-*-elf): Set extra_options.
26132         * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
26133         * config/stormy16/stormy16.opt: New file.
26135 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
26137         * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
26138         (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
26139         (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
26140         (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
26141         (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
26142         (TARGET_UNIX_ASM): Delete.
26143         (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
26144         * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
26145         * config/pdp11/pdp11.c (pdp11_handle_option): New function.
26146         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
26147         * config/pdp11/pdp11.opt: New file.
26149 2005-04-03  Roger Sayle  <roger@eyesopen.com>
26150             Alexandre Oliva  <aoliva@redhat.com>
26152         PR c++/19199
26153         * fold-const.c (non_lvalue): Split tests into...
26154         (maybe_lvalue_p): New function.
26155         (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
26156         C++ front-end prior to lowering into gimple form.
26158 2005-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26160         * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
26161         BUILT_IN_STRNCASECMP): New.
26162         * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
26163         and strndup.
26165 2005-04-03  Richard Earnshaw  <richard.earnshaw@arm.com>
26167         PR target/14812
26168         * arm.md (addsi3_compare0_for_combiner): Delete.
26169         (addsi3_compare0_scratch_for_combiner): Delete.
26170         (cmpsi_neg_shiftsi): Delete.
26171         (compare_negsi_si): New pattern.
26172         (cmpsi_negshiftsi_si): New pattern.
26173         (negated_cbranchsi4): Restrict to equality_operator.
26175         * arm.md (movhi_insn_arch4): delete trailing white space from assembler
26176         template.
26178 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
26180         * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
26181         Fix comment typos.
26183         * doc/install.texi: Fix a typo.
26185 2005-04-03  Steven Bosscher  <stevenb@suse.de>
26187         PR middle-end/20648
26188         * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
26189         a computed goto if the edge to the computed goto block has
26190         incoming abnormal edges.  Clarify how the function works.
26192 2005-04-03  Nathan Sidwell  <nathan@codesourcery.com>
26194         * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
26195         * passes.c (open_dump_file, rest_of_handle_final): Likewise.
26196         * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
26197         hash_scan_set, reg_set_between_after_reload_p,
26198         reg_used_between_after_reload_p, get_avail_load_store_reg,
26199         eliminate_partially_redundant_load): Likewise.
26200         * postreload.c (reload_cse_simplify_set,
26201         reload_combine_note_use): Likewise.
26202         * predict.c (predict_insn, expected_value_to_br_prob,
26203         propagate_freq, expensive_function_p): Likewise.
26204         * print-rtl.c (print_rtx): Likewise.
26205         * profile.c (instrument_edges, instrument_values,
26206         compute_branch_probabilities, branch_prob, union_groups,
26207         tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
26208         * protoize.c (in_system_include_dir, file_could_be_converted,
26209         file_normally_convertible, gen_aux_info_file, seek_to_line,
26210         do_cleaning): Likewise.
26211         * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
26212         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
26213         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
26215 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
26217         * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
26218         * modulo-sched.c (undo_replace_buff_elem): New structure.
26219         (kernel_number_of_cycles, ps_unschedule_node,
26220         undo_generate_reg_moves,free_undo_replace_buff,
26221         undo_permute_partial_schedule,  loop_single_full_bb_p,
26222         SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
26223         build_loops_structure, get_sched_window): New.
26224         (generate_reg_moves): Return undo_replace_buff_elem and other
26225         fixes.
26226         (generate_prolog_epilog): Remove old loop versioning.
26227         (sms_schedule): Use loop information and loop_version.
26228         (sms_schedule_by_order): Split part of it to get_sched_window.
26229         * passes.c (rest_of_handle_sms): call cfg_layout_initialize
26230         cfg_layout_finalize and free_dominance_info before/after SMS.
26232 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
26234         * cfghooks.c (lv_flush_pending_stmts,
26235         cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
26236         lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
26237         * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
26238         lv_add_condition_to_bb,
26239         lv_adjust_loop_header_phi, extract_cond_bb_edges,
26240         flush_pending_stmts): New in cfg_hooks structure.
26241         (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
26242         extract_cond_bb_edges, lv_adjust_loop_header_phi,
26243         lv_add_condition_to_bb): New declarations.
26244         * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
26245         bool.
26246         (loop_version): Declare.
26247         * cfgloopmanip.c (cfghooks.h): Include.
26248         (duplicate_loop_to_header_edge): Change return type to bool.
26249         (loop_version, lv_adjust_loop_entry_edge): Move here.
26250         * cfgrtl.c (cfgloop.h): Include.
26251         (rtl_verify_flow_info_1): Fix.
26252         (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
26253         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
26254         initialization.
26255         * tree-cfg.c (tree_lv_adjust_loop_header_phi,
26256         tree_lv_add_condition_to_bb): New.
26257         (tree_cfg_hooks): Add new hooks to initialization.
26258         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
26259         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
26261 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
26263         * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
26264         xstormy16_below100_or_register,
26265         xstormy16_splittable_below100_or_register, and
26266         nonimmediate_nonstack_operand.
26268         * config/stormy16/stormy16-protos.h: Remove the prototypes for
26269         xstormy16_ineqsi_operator, equality_operator,
26270         inequality_operator, shift_operator,
26271         xstormy16_below100_operand, xstormy16_below100_or_register,
26272         xstormy16_splittable_below100_or_register,
26273         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
26274         * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
26275         equality_operator, inequality_operator,
26276         xstormy16_below100_operand, xstormy16_below100_or_register,
26277         xstormy16_splittable_below100_or_register,
26278         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
26279         nonimmediate_nonstack_operand, shift_operator): Move to
26280         predicates.md.
26281         * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
26282         * config/stormy16/stormy16.md: Include predicates.md.
26283         * config/stormy16/predicates.md: New.
26285 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
26287         * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
26288         small_int, large_int, reg_or_0_operand, simple_memory_operand,
26289         equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
26290         move_operand, power_of_2_operand): Move to predicates.md.
26291         * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
26292         PREDICATE_CODE): Remove.
26293         * config/iq2000/iq2000.md: Include predicates.md.
26294         * config/iq2000/predicates.md: New.
26296 2005-04-02  Richard Sandiford  <rsandifo@redhat.com>
26298         * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
26299         (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
26300         (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
26301         (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
26302         (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
26303         (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
26304         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
26305         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
26306         (TARGET_M68HC11): Delete.
26307         (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
26308         * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
26309         * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
26310         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
26311         (nb_soft_regs): Delete.
26312         (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
26313         (m68hc11_override_options): Remove the code that caters for MASK_M6811
26314         and MASK_M6812 being set simultaneously.  Change the code that sets
26315         the default m68hc11_soft_reg_count to use integers instead of strings.
26316         (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
26317         m68hc11_soft_reg_count (which now has an int type) as the number
26318         of soft registers.
26319         * config/m68hc11/m68hc11.opt: New file.
26321 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
26323         * config/fr30/fr30.h (PREDICATE_CODES): Remove
26324         fp_displacement_operand, sp_displacement_operand.
26326         * config/m68hc11/m68hc11-protos.h: Add a prototype for
26327         m68hcc_auto_inc_p.
26328         Remove the prototypes for tst_operand, cmp_operand,
26329         stack_register_operand, d_register_operand,
26330         hard_addr_reg_operand, splitable_operand,
26331         m68hc11_logical_operator, m68hc11_arith_operator,
26332         m68hc11_non_shift_operator, m68hc11_shift_operator,
26333         m68hc11_unary_operator, m68hc11_eq_compare_operator,
26334         non_push_operand, hard_reg_operand, and
26335         reg_or_some_mem_operand.
26336         * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
26337         extern.
26338         (tst_operand, cmp_operand, non_push_operand,
26339         splitable_operand, reg_or_some_mem_operand,
26340         stack_register_operand, d_register_operand,
26341         hard_addr_reg_operand, hard_reg_operand,
26342         m68hc11_eq_compare_operator, m68hc11_logical_operator,
26343         m68hc11_arith_operator, m68hc11_non_shift_operator,
26344         m68hc11_shift_operator, m68hc11_unary_operator): Move to
26345         predicates.md.
26346         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
26347         * config/m68hc11/m68hc11.md: Include predicates.md.
26348         * config/m68hc11/predicates.md: New.
26350 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
26352         PR debug/19345
26353         * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
26354         change checked in along with 2005-03-03's patch for debug/20253.
26355         * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
26356         (remap_decl): Insert type decl in map earlier.
26358 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
26360         PR tree-optimization/20640
26361         * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
26362         post-dominator if it has phi nodes.
26363         (eliminate_unnecessary_stmts): Remove dead phis in all blocks
26364         before dead statements.
26366 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
26368         PR middle-end/20491
26369         * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
26371 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
26373         PR rtl-optimization/20290
26374         * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
26375         in every iteration if the entry point is the exit test.
26377 2005-04-02  Hans-Peter Nilsson  <hp@axis.com>
26379         * config/cris/cris.md (attribute "length"): Define.
26381 2005-04-02  Geoffrey Keating  <geoffk@apple.com>
26383         * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
26384         (word_offset_memref_operand): New.
26385         * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
26386         (indexed_or_indirect_operand): Delete.
26387         * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
26388         (indexed_or_indirect_operand): Delete.
26390         * config/rs6000/t-darwin8: Comment out ppc64 multilib.
26392         PR 20650
26393         * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
26394         a register.
26396         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
26397         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
26399 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26401         * config/vax/vax.md: Spellcheck, fix whitespace.
26403 2005-04-01  Ian Lance Taylor  <ian@airs.com>
26405         * gcc.c: Don't include <sys/resource.h> or declare getrusage.
26406         (rus, prus): Remove static variables.
26407         (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
26408         (process_command): Permit report_times and use_pipes together.
26410 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
26412         * c-decl.c (validate_proto_after_old_defn): Look at
26413         TYPE_MAIN_VARIANT of argument types.
26415 2005-04-01  Paul Brook  <paul@codesourcery.com>
26417         * config/arm/arm.c (thumb_call_via_label): Include space for SP.
26418         (arm_output_function_epilogue): Allow call_via_SP.
26419         (thumb_call_via_reg, arm_file_end): Ditto.
26420         * config/arm/arm.h (struct machine_function): Include space for SP.
26421         (thumb_call_via_label): Update declaration.
26423 2005-04-01  Ian Lance Taylor  <ian@airs.com>
26425         * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
26426         doing a peephole optimization, once again put any notes in the
26427         proper position.
26429 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26431         * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
26433 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
26435         * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
26436         (block_alloc, find_free_reg): Likewise.
26437         * loop-doloop.c (doloop_modify): Likewise.
26438         * loop-invariant.c (record_use): Likewise.
26439         * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
26440         get_iv_value, canon_condition, eliminate_implied_condition,
26441         eliminate_implied_condition, simplify_using_initial_values,
26442         shorten_into_mode, canonicalize_iv_subregs,
26443         iv_number_of_iterations): Likewise.
26444         * loop-unroll.c (expand_var_during_unrolling): Likewise.
26445         * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
26446         unswitch_loop): Likewise.
26447         * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
26448         move_movables, replace_call_address, find_and_verify_loops,
26449         rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
26450         record_giv, final_giv_value, general_induction_var,
26451         simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
26452         loop_giv_dump): Likewise.
26454         * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
26455         GCOV_CHECK_WRITING): Remove.
26456         (gcov_position, gcov_rewrite): Use gcc_assert.
26457         * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
26458         gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
26459         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
26460         gcc_assert.
26462 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26464         * tree-inline.c: Fix a typo.
26466 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
26468         * configure.ac (enable-checking): Explicitly set all variables for
26469         collective switch values.  Alphabetize variables. Rename
26470         ac_checking_valgrind to ac_valgrind_checking.  Allow 'none' as
26471         synonym for 'no'.
26472         * doc/install.texi (enable-checking): Update documentation.
26473         * configure: Rebuilt.
26475 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26477         * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
26478         possible.
26480 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
26482         * arm.c (adjacent_mem_locations): Reject volatile memory refs.
26483         Also reject cases where this pattern will cause load delay stalls
26484         unless optimizing for size and it will produce a shorter sequence.
26485         * arm.md (arith_adjacent_mem): Make better use of ldm addressing
26486         variants to avoid pre-adjusting the base when possible.
26488 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
26490         * arm.md (minmax_arithsi): Reject all eliminable registers, not just
26491         the frame and argument pointers.
26492         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
26493         (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
26494         (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
26495         (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
26496         (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
26497         (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
26499 2005-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
26501         * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
26502         with entry for selectany attribute.
26503         * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
26504         Declare.
26505         * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
26506         (i386_pe_asm_named_section): Handle sections generated by
26507         selectany attribute.
26508         * doc/extend.texi (selectany): Document attribute.
26510 2005-04-01  Paolo Bonzini  <bonzini@gnu.org>
26511             Jan Hubicka  <jh@suse.cz>
26513         * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
26514         to fix addresses involving EBP and ESP.
26515         (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
26516         for SUBREGed registers.
26517         (legitimate_address_p): Accept SUBREGed registers.
26519 2005-04-01  Jakub Jelinek  <jakub@redhat.com>
26521         PR c++/19406
26522         * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
26523         (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
26524         for FIELD_DECLs.
26526 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26528         * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
26530 2005-04-01  James E Wilson  <wilson@specifixinc.com>
26532         PR c++/20505
26533         * dwarf2out.c (rtl_for_decl_init): New function.
26534         (rtl_for_decl_location): Extracted from here.
26535         (tree_add_const_value_attribute): Call rtl_for_decl_init and
26536         add_const_value_attribute.  Delete initializer_constant_valid_p call.
26538 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26540         * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
26541         lambda-code.c, loop.c, machmode.def, mips-tfile.c,
26542         modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
26543         tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
26544         config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
26545         config/i386/i386.md, config/rs6000/predicates.md,
26546         config/rs6000/rs6000.c, config/s390/fixdfdi.h,
26547         config/s390/s390.c, config/stormy16/stormy16.c,
26548         config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
26549         typos.
26551 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
26553         PR c/17855
26554         * gimplify.c (gimplify_expr): Create a temporary for lvalue
26555         COND_EXPR and CALL_EXPR.
26557 2005-03-31  Vladimir Makarov  <vmakarov@redhat.com>
26559         PR target/20632
26560         * genautomata.c (first_cycle_unit_presence): Check all alternative
26561         states for unit presence.
26563         * doc/md.texi: Remove remark about impossibility to query unit
26564         presence in non nondeterministic automaton state.
26566         * config/ia64/ia64.c (get_template): Change order of unit querying.
26568 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
26570         * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
26571         obsolete comment.
26573 2005-03-31  Zdenek Dvorak  <dvorakz@suse.cz>
26575         * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
26576         flag for edges outside any loops.
26578 2005-03-31  Janis Johnson  <janis187@us.ibm.com>
26580         * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
26582 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
26584         * tree-ssa-alias.c: Follow spelling conventions.
26585         * doc/tree-ssa.texi: Fix a typo.
26587 2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
26589         * postreload-gcse.c: Include target.h.
26590         (gcse_after_reload_main): Return early if we cannot modify jumps.
26591         * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
26593 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
26595         * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
26596         expensive operations.
26598 2005-03-31  Ian Lance Taylor  <ian@airs.com>
26600         * collect2.c (lderrout): New variable.
26601         (collect_exit): Dump ldout to stdout.  Dump and unlink lderrout,
26602         if it is set, to stderr.
26603         (handler): Unlink lderrout if it is set.
26604         (dump_file): Add "to" parameter.  Change all callers.
26605         (main): Initialize lderrout.
26606         (collect_execute): Add errname parameter.  Change all callers.
26607         Rename redir parameter to outname.  Never pass
26608         PEX_STDERR_TO_STDOUT to pex_run.
26609         * collect2.h (collect_execute, dump_file): Update declarations.
26610         * tlink.c (tlink_execute): Add errname parameter.  Change all
26611         callers.
26612         (do_tlink): Check lderrout as well as ldout.
26614 2005-03-31  Caroline Tice  <ctice@apple.com>
26616         * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
26617         (bb-reorder.o): Add errors.h to list of requirements.
26618         (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
26619         profiledbootstrap flags.
26620         * bb-reorder.c (errors.h): Add new include.
26621         (struct bbro_basic_block_data_def): Add new field, in_trace.
26622         (add_unlikely_executed_notes): Remove function.
26623         (mark_bb_for_unlikely_executed_section): Remove function.
26624         (insert_section_boundary_note): New function.
26625         (verify_hot_cold_block_grouping): New function.
26626         (push_to_next_round_p): Remove variables and tests that push all
26627         cold blocks to last round.
26628         (find_traces): Remove code that added extra round of trace finding
26629         when doing partitioning.
26630         (find_traces_1_round) : Remove variable last_round;  add code to
26631         update new struct field, in_trace; correct trace_length where it was
26632         incorrect before (after call to copy_bb); change code that pushed all
26633         cold blocks to last round. Instead verify that all blocks going into
26634         a trace belong in the same partition.
26635         (connect_traces): Modify to connect the traces in two passes, if the
26636         function contains both hot and cold blocks.  The first pass connects
26637         all the traces for blocks in the partition that the first block in
26638         the function belongs to; the second pass connnects all the traces
26639         containing blocks that belong in the other partition.
26640         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
26641         code that automatically put the first block in a function into the
26642         hot partition if the function had any hot blocks.
26643         (fix_crossing_unconditional_branches): Check number of succ edges
26644         before attempting to get one.
26645         (fix_edges_for_rarely_executed_code): Update comment describing
26646         function.
26647         (reorder_basic_blocks): Add code to initialize new field (in_trace);
26648         remove call to add_unlikely_executed_notes; add call to
26649         verify_hot_cold_block_grouping.
26650         (duplicate_computed_gotos): Don't change computed goto if it's a
26651         crossing edge.
26652         (partition_hot_cold_basic_blocks): Update function comment.
26653         * cfgcleanup.c (try_simplify_condjump): Remove redundacy from
26654         condition.
26655         (try_forward_edges): Likewise.
26656         (merge_blocks_move_predecessor_nojumps): Likewise.
26657         (merge_blocks_move_successor_nojumps): Likewise.
26658         (merge_blocks_move): Likewise.
26659         (try_crossjump_bb): Likewise.
26660         * cfglayout.c (update_unlikely_executed_notes): Remove function.
26661         (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
26662         notes to cold bb's; remove call to update_unlikely_executed_notes.
26663         (duplicate_insn_chain): change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
26664         NOTE_INSN_SWITCH_TEXT_SECTIONS.
26665         * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
26666         function declaration.
26667         * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
26668         from consideration.
26669         (rtl_can_merge_blocks): Remove redundancy from condition.
26670         (try_redirect_by_replacing_jump): Likewise.
26671         (force_nonfallthru_and_redirect): Remove code for adding
26672         UNLIKELY_EXECUTED_CODE notes to cold bb's.
26673         (commit_one_edge_insertion): Likewise.
26674         (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
26675         * dbxout.c (FORCE_TEXT): Replace function_section with
26676         current_function_section.
26677         (struct dbx_debug_h): Add do_nothing function for new debug_hooks
26678         function, switch_text_section.
26679         (struct xcoff_debug): Likewise.
26680         (dbxout_function_end): Add code to put out label diffs for both
26681         hot and cold sections.
26682         * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
26683         for new debug_hooks funciton, switch_text_section..
26684         * debug.h (struct gcc_debug_hooks): Add new function to debug_hooks,
26685         switch_text_section.
26686         * dwarf2out.c (struct dw_fde_struct): Add five new fields:
26687         dw_fde_hot_section_label, dw_fde_hot_section_end_label,
26688         dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and
26689         dw_fde_switched_sections.
26690         (output_call_frame_info): Add test to see if function switches text
26691         sections in the middle; if so, use appropriate extra hot and cold
26692         section labels to compute size deltas for the hot and cold sections.
26693         (dwarf2out_begin_prologue): Add code to initialize new fields in
26694         dw_fde_struct.
26695         (dwarf2out_switch_text_section): New function (invoked through
26696         debug_hook); updates new fields in dw_fde_struct appropriately and
26697         increments separate_line_info_table_in_use.
26698         (dwarf2_debug_hooks): Initialize switch_text_section function to be
26699         dwarf2out_switch_text_section.
26700         (struct var_loc_node): Add new field, section_label.
26701         (output_aranges): Add code to check whether in hot or cold section and
26702         use the appropriate label in calculating deltas.
26703         (output_ranges): Likewise.
26704         (output_line_info): Add code to check which section we're in and
26705         use appropriate hot/cold label.
26706         (add_location_or_constant_value_attribute): Likewise.
26707         (gen_subprogam_die): Modify arange attributes to use correct labels.
26708         (dwarf2out_begin_block): Change call to function_section into call to
26709         current_function_section.
26710         (dwarf2out_end_block): Likewise.
26711         (dwarf2out_source_line): Likewise.
26712         (dwarf2out_var_location): Add code to check whether in hot or cold
26713         section and use the appropriate label.
26714         * except.c (output_function_exception_table): Change call to
26715         function_section into call to current_function_section.
26716         * final.c (profile_function): Likewise.
26717         (scan_ahead_for_unlikely_executed_note): Remove function.
26718         (final_scan_insn): Remove calls to
26719         scan_ahead_for_unlikely_executed_note, and related code for switching
26720         to cold section, except for the single time
26721         NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered;  add calls to
26722         debug_hooks->switch_text_sections; replace appropriate calls to
26723         function_section with calls to current_function_section.
26724         * ifcvt.c (find_if_case_1): Remove redundancy from condition, add
26725         test_bb to condition.
26726         (find_if_case_2): Likewise.
26727         * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
26728         NOTE_INSN_SWITCH_TEXT_SECTIONS.  Update comment appropriately.
26729         * opts.c (decode_options): Change warning about hot/cold partitioning
26730         with exceptionss to inform (so as not to cause bootstrap failures);
26731         remove warning about partitioning with DWARF debug info.
26732         * output.h (current_function_section): Add new function decl.
26733         (insert_section_boundary_note): Likewise.
26734         (enum in_section): Move this declaration here from varasm.c.
26735         (unlikely_section_label): Likewise.
26736         (unlikely_text_section_name): Likewise.
26737         (last_text_section_name): New global variable.
26738         (last_text_section): Likewise.
26739         (hot_section_label): Likewise.
26740         (hot_section_end_label): Likewise.
26741         (cold_section_end_label): Likewise.
26742         * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
26743         * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
26744         to NOTE_INSN_SWITCH_TEXT_SECTIONS.
26745         * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note
26746         insn from consideration.
26747         * sdbout.c (sdb_debug_hooks): Add do_nothing for new function,
26748         switch_text_section.
26749         * varasm.c (basic-block.h): Add new include.
26750         (unlikely_section_label_printed): Remove global variable.
26751         (unlikely_section_label): Make global variable not be static any more.
26752         (unlikely_text_section_name): Likewise.
26753         (hot_section_end_label): New global variable (not static)
26754         (first_function_block_is_cold): Likewise.
26755         (hot_section_label): Likewise.
26756         (cold_section_end_label): Likewise..
26757         (last_text_section): New global variable, not static.
26758         (last_text_section_name): New global variable, not static.
26759         (initialize_cold_section_name): New function.
26760         (enum in_section): Move declaration to output.h.
26761         (text_section): Update last_text_section.
26762         (unlikely_text_section): Replace code to determine cold section name
26763         with call to initialize_cold_section_name; Add code to update
26764         last_text_section; remove code for printing out label.
26765         (named_section_real): Add code to update last_text_section and
26766         last_text_section_name as appropriate.
26767         (function_section): Change test for 'unlikely' to depend on
26768         first_function_block_is_cold (moved old test to
26769         current_function_section).
26770         (current_function_section): New function.
26771         (assemble_start_function): Move code that frees
26772         unlikely_text_section_name; initialize hot_section_end_label;
26773         print hot and cold section labels at the start of the function;
26774         set first_function_block_is_cold, if appropriate; initialize l
26775         ast_text_section; add call to insert_section_boundary_note.
26776         (assemble_end_function): Add code to write out hot and cold section
26777         end labels.
26778         *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
26779         switch_text_section.
26780         * config/darwin.c (machopic_select_section): Replace incorrect
26781         function in base_funs; update reloc for cold sections if necessary.
26782         * config/darwin.h (SECTION_FUNCTION): Add code to update
26783         last_text_section if appropriate.
26784         (text_unlikely_section): Remove.
26785         * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
26786         * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
26787         * config/xtensa/xtensa.c (override_options): Turn off hot/cold
26788         partitioning for this architecture.
26790 2005-03-31  Olivier Hainque  <hainque@adacore.com>
26792         * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
26793         defined and non-zero.
26795 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
26797         PR c++/18644
26798         * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
26799         semantics.
26801 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
26803         PR target/20611
26804         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
26805         label operand.  Remove (use (unspec..)).  Don't emit a label on
26806         the offset word.
26807         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
26808         generate inline label for load_toc_v4_PIC_1b.
26809         (rs6000_emit_load_toc_table): Likewise.
26811 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
26813         * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
26814         ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
26816 2005-03-29  Devang Patel  <dpatel@apple.com>
26818         * tree-sra.c (decide_block_copy): Disable scalarization of
26819         sub-elements.
26821 2005-03-30  Stuart Hastings  <stuart@apple.com>
26822             Dale Johannesen  <dalej@apple.com>
26824         * Makefile.in (print-tree.o): Depend on tree-iterator.h.
26825         * print-tree.c (print_node): Add case STATEMENT_LIST.
26827 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
26829         * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
26830         (powerpc64-*-linux*): Use it.  Rearrange tm_file assignment.
26831         (powerpc-*-linux*): Build a biarch compiler when --enable-targets
26832         is given with "powerpc64*" or "all", or when --with-cpu chooses
26833         a 64-bit cpu.
26835 2005-03-30  James E. Wilson  <wilson@specifixinc.com>
26837         PR debug/20268
26838         * dwarf2out.c (add_high_low_attributes): New function, extracted from
26839         gen_lexical_block_die.
26840         (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
26842 2005-03-31  Jan Hubicka  <jh@suse.cz>
26844         2004-11-02  Jan Hubicka  <jh@suse.cz>
26846         * cgraph.c (cgraph_varpool_node_name): New function.
26847         (dump_cgraph_varpool_node): New function.
26848         (dump_varpool): New function.
26849         * cgraphunit.c (cgraph_optimize): Dump varpool.
26851         2004-10-16  Jan Hubicka  <jh@suse.cz>
26853         * cgraph.c (decide_is_variable_needed): New function.
26854         (cgraph_varpool_finalize_decl): Use it.
26855         * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
26856         unit-at-a-time.
26857         * final.c (output_addr_const): Do not call mark_referenced.
26858         * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
26859         always go via cgraph.
26860         * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
26861         (check_global_declarations): Ifdef out code clearing DECL_RTL.
26862         * tree-optimize.c (execute_inline): Mark functions called.
26863         * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
26865         2004-10-11  Jan Hubicka  <jh@suse.cz>
26867         * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
26868         (cgraph_varpool_last_needed_node): New static variable.
26869         (enqueue_needed_varpool_node): Break out from ...; add items to the
26870         end of queue; update first pointers.
26871         (cgraph_varpool_mark_needed_node): ... here.
26872         (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
26873         (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
26874         * cgraph.h (cgraph_varpool_node): Add analyzed field.
26875         (cgraph_varpool_first_unanalyzed_node): Declare.
26876         * cgraphunit.c: Include output.h.
26877         (cgraph_varpool_analyze_pending_decls): New function.
26878         (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
26879         for errors, analyze pending decls.
26880         (cgraph_finalize_compilation_unit): Only analyze decls.
26881         (cgraph_optimize): Assemble the decls after expanding.
26883 2005-03-30  Daniel Berlin  <dberlin@dberlin.org>
26885         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
26886         subvars get marked properly in tags for grouping.
26887         (add_pointed_to_var): Mark only actual pointed to
26888         variables/subvars in addresses needed.
26889         (create_overlap_variables_for): Clear call clobbered on original
26890         variable.
26891         * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
26892         addresable vars with subvars into list.
26893         * tree-ssa.c (verify_ssa_name): Verify original is not used where
26894         subvar should be.
26896 2005-03-30  Richard Henderson  <rth@redhat.com>
26898         * cgraph.h (struct cgraph_node): Add alias.
26899         * varasm.c (assemble_alias): Set it.
26900         * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
26901         avoid calling cgraph_expand_function.
26903 2005-03-30  Tom Tromey  <tromey@redhat.com>
26905         * tree.def (FILE_TYPE): Removed.
26906         * typeclass.h (enum type_class): Removed file_type_class.
26907         * dwarf2out.c (is_base_type): Updated.
26908         (gen_type_die): Likewise.
26909         * dbxout.c (dbxout_type): Updated.
26910         * builtins.c (type_to_class): Updated.
26911         * tree.c (type_contains_placeholder_1): Updated.
26912         * config/sparc/sparc.c (sparc_type_code): Updated.
26913         * config/ia64/ia64.c (hfa_element_mode): Updated.
26914         * expr.c (count_type_elements): Updated.
26915         * stor-layout.c (layout_type): Updated.
26916         * tree-inline.c (remap_type): Updated.
26917         * tree-pretty-print.c (dump_generic_node): Updated.
26919 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
26921         * builtins.c (expand_builtin_powi): Fix mode of
26922         2nd argument to match int.
26923         * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
26924         2nd argument type to int.
26925         * libgcc2.c: Change prototype of __powi* functions to use
26926         int.
26928 2005-03-30  Dale Johannesen  <dalej@apple.com>
26930         PR middle-end/19225
26931         * calls.c (expand_call): Flush pending deferrals before
26932         throwing call.
26934 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
26936         PR c/772
26937         PR c/17913
26938         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
26939         C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
26940         c_label_context, label_context_stack): New.
26941         * c-decl.c (define_label): Check for jumps into statement
26942         expressions.  Add label to list of defined labels.
26943         (start_function): Push context on label_context_stack.
26944         (finish_function): Pop context from label_context_stack.
26945         * c-typeck.c (label_context_stack): New.
26946         (c_finish_goto_label): Check for jumps into statement
26947         expressions.  Add label to list of jumped to labels.
26948         (struct c_switch): Add blocked_stmt_expr.
26949         (c_start_case): Initialize it.
26950         (do_case): Check it.
26951         (c_finish_case): Verify !blocked_stmt_expr.
26952         (c_begin_stmt_expr): Push context on label_context_stack.
26953         Increment blocked_stmt_expr.  Mark labels jumped to from outside
26954         as undefinable.
26955         (c_finish_stmt_expr): December blocked_stmt_expr.  Mark labels
26956         defined in the statement expression and no longer jumpable to.
26957         Mark labels jumped to from just outside the statement expression
26958         as again definable.  Pop context from label_context_stack.
26959         * doc/extend.texi (Statement Exprs): Update.
26961 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
26963         PR c/20368
26964         * c-decl.c (start_function): Check for old_decl being
26965         error_mark_node.
26967 2005-03-30  Ian Lance Taylor  <ian@airs.com>
26969         * final.c (final): Remove prescan parameter.  Change all callers.
26970         (final_scan_insn): Remove prescan parameter.  Change all callers.
26972 2005-03-30  Kazu Hirata  <kazu@cs.umass.edu>
26974         * tree-vectorizer.c: Fix comment typos.
26976 2005-03-30  Sebastian Pop  <pop@cri.ensmp.fr>
26978         * tree-scalar-evolution.c (instantiate_parameters_1): Return
26979         as soon as a chrec_dont_know is detected.
26981 2005-03-31  Danny Smith  <dannysmith@users.sourceforge.net>
26983         Merge from csl-arm-branch.
26984         2004-02-12  Mark Mitchell  <mark@codesourcery.com>
26986         * tlink.c (recompile_files): Do not assume that "rename" can
26987         overwrite an existing file.
26989 2005-03-31  Paolo Bonzini  <bonzini@gnu.org>
26991         * configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
26992         * configure: Regenerate.
26994 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
26996         * doc/install.texi: Update binutils requirement for powerpc*-linux.
26998         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
27000         * calls.c (struct arg_data): Update "partial" comment.
27001         (load_register_parameters): Update "nregs" comment.
27003 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
27005         * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
27006         (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
27007         (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
27008         (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
27009         (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
27010         (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
27011         than target_flags & 0.
27012         * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
27013         (iq2000_arch, iq2000_parse_cpu): Delete.
27014         (TARGET_HANDLE_OPTION): Override default.
27015         (iq2000_handle_option): New function.
27016         (override_options): Remove -march= and -mcpu= handling.
27017         * config/iq2000/iq2000.opt: New file.
27019 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
27021         * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
27022         * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
27023         (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
27024         (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
27025         (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
27026         (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
27027         (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
27028         (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
27029         (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
27030         (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
27031         (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
27032         (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
27033         (c4x_rpts_cycles_string, c4x_cpu_version_string)
27034         (TARGET_OPTIONS): Delete.
27035         (c4x_rpts_cycles, c4x_cpu_version): Declare.
27036         (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
27037         (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
27038         * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
27039         (c4x_cpu_version_string): Delete.
27040         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
27041         (c4x_handle_option): New function.  Map -m3x and -m4x options to the
27042         equivalent -mcpu= option.
27043         (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
27044         Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
27045         TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
27046         or clearing the appropriate MASK_* bit.
27047         (c4x_file_start): Use c4x_cpu_version.
27048         * config/c4x/c4x.opt: New file.
27050 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
27052         * doc/options.texi: Document the new MaskExists flag.
27053         * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
27054         if the option has the MaskExists flag.
27056 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
27058         * opt-functions.awk (flag_set_p, test_flag): New functions.
27059         (switch_flags): Use them.
27060         * opth-gen.awk: Use flag_set_p to check for flags.
27061         * optc-gen.awk: Likewise.  Use opt_args to check for Init(...) flags.
27063 2005-03-30  Ian Lance Taylor  <ian@airs.com>
27065         * config.host (i[34567]86-*-mingw32*): Don't set
27066         host_can_use_collect2 to no.
27068 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
27070         PR target/20203
27071         * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
27072         Remove convert_memory_address call duplicating that in memory_address.
27074 2005-03-29  Richard Henderson  <rth@redhat.com>
27076         PR c/20519
27077         * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
27078         (build_compound_literal): Likewise.  Propagate decl type into the
27079         initializer.
27080         (finish_decl): Likewise.  Use new return value from complete_array_type
27081         for zero sized arrays.
27082         (complete_array_type): Move ...
27083         * c-common.c (complete_array_type): ... here.  Change first argument
27084         to pointer-to-type-node.  Consistently use sizetype for the index
27085         except for zero sized arrays.  Detect zero sized arrays for pedantic
27086         mode diagnostics.  Create a new type node instead of modifying the
27087         old node in place.
27088         * c-tree.h (complete_array_type): Move decl ...
27089         * c-common.h (complete_array_type): ... here.
27091 2005-03-29  Richard Henderson  <rth@redhat.com>
27093         PR tree-opt/19108
27094         * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
27096 2005-03-29  Kazu Hirata  <kazu@cs.umass.edu>
27098         * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
27099         debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
27100         rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
27101         tree-profile.c, tsystem.h, value-prof.h: Update copyright.
27103 2005-03-29  Eric Christopher  <echristo@redhat.com>
27105         * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
27106         truthvalue conversion removal.
27108 2005-03-29  Ian Lance Taylor  <ian@airs.com>
27110         PR bootstrap/14316
27111         * collect2.c: Never include <vfork.h>.
27112         (VFORK_STRING, vfork): Don't define.
27113         (pid): Remove global variable.
27114         (handler): Call raise instead of kill (getpid(), ...).
27115         (collect_wait): Add pex parameter.  Change all callers.  Use
27116         pex_get_status rather than pwait.
27117         (do_wait): Add pex parameter.  Change all callers.
27118         (collect_execute): Return struct pex_obj * rather than void.  Use
27119         pex routines rather than pexecute.
27120         (fork_execute): Get pex_obj from collect_execute, and pass it to
27121         do_wait.
27122         (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
27123         Only declare quit_handler if SIGQUIT is defined.
27124         (scan_libraries): Likewise.
27125         * collect2.h (collect_execute): Update declaration.
27126         (collect_wait): Update declaration.
27127         * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
27128         pass it to collect_wait.
27130 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
27132         PR c/20672
27133         * c-parser.c (c_parser_compound_statement_nostart): Give error
27134         message for EOF instead of just setting parser->error.
27136 2005-03-29  Dorit Naishlos  <dorit@il.ibm.com>
27138         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
27139         (slpeel_update_phi_nodes_for_guard1): New function.
27140         (slpeel_update_phi_nodes_for_guard2): New function.
27141         (slpeel_tree_peel_loop_to_edge): Call above new functions instead
27142         of slpeel_update_phi_nodes_for_guard.
27143         (vectorize_loops): Remove call to loop_closed_rewrite.
27144         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
27145         assertion.
27147 2005-03-29  Richard Sandiford  <rsandifo@redhat.com>
27149         * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
27150         (TARGET_LITTLE_ENDIAN): New macro.
27151         * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
27152         (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
27153         (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
27154         (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
27155         (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
27156         (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
27157         (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
27158         (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
27159         (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
27160         (TARGET_OPTIONS): Delete.
27161         (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
27162         (CACHE_FLUSH_TRAP): Turn into an integer.
27163         (TARGET_LITTLE_ENDIAN): Define to 0 by default.
27164         (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
27165         -mflush-trap is in use.
27166         * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
27167         (m32r_cache_flush_trap_string): Delete.
27168         (m32r_model) Initialize to M32R_MODEL_DEFAULT.
27169         (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
27170         (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
27171         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
27172         (m32r_handle_option): New function.  Move -mflush-trap=, -mflush-func=,
27173         -mmodel= and -msdata= handling from...
27174         (m32r_init): ...here.
27175         * config/m32r/m32r.opt: New file.
27177 2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
27179         * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
27180         (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
27181         * tree-vect-analyze.c (vect_object_analysis): additional parm
27182         pass back a "struct ptr_info_def *" with the points-to info.
27183         (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
27184         statement using info returned from vect_object_analysis.
27185         * tree-vect-transform.c (update_vuses_to_preheader): New function.
27186         (vect_create_data_ref_ptr): Remove updates to vars_to_rename
27187         for virtual uses and defs when creating a replacement vector
27188         reference.  Call duplicate_ssa_name_ptr_info to define points-to
27189         info for vector pointer replacement using STMT_VINFO_PTR_INFO.
27190         (vectorizable_store): copy_virtual_operands and update
27191         definition statements.
27192         (vectorizable_load): copy_virtual_operands.  Remove call to
27193         mark_call_clobbered_vars_to_rename for call to "const" builtin.
27194         * tree-vectorizer.c (vectorize_loops): Remove calls to
27195         rewrite_into_ssa and bitmap_clear (vars_to_rename).
27196         (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
27197         * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
27198         define macro STMT_VINFO_PTR_INFO for use in accessing.
27199         * tree.h add export of duplicate_ssa_name_ptr_info.
27200         * rs6000.c (altivec_init_builtins): Declare builtin function
27201         __builtin_altivec_mask_for_load to be "const".
27203 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
27205         PR middle-end/20622
27206         * cgraph.h (struct cgraph_varpool_node): Add alias field.
27207         * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
27208         assemble_variable on aliases.
27209         * varasm.c (assemble_alias): Set node->alias.
27210         * toplev.c (wrapup_global_declarations): Don't call
27211         rest_of_decl_compilation on aliases again.
27213 2005-03-29  Paul Brook  <paul@codesourcery.com>
27215         * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
27216         * config/arm/arm.c (arm_dbx_register_number): New function.
27217         * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
27219 2005-03-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
27221         PR middle-end/20263
27222         * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
27223         the DECL_NAME, not the DECL_ASSEMBLER_NAME.
27225 2005-03-29  Dale Johannesen <dalej@apple.com>
27227         * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
27228         $(TREE_H) and $(COVERAGE_H).
27229         * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
27230         * opts.c (common_handle_option): Enable tree-based value transforms.
27231         * toplev.c (process_options): Ditto.
27232         * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
27233         refers to references to this type.
27234         * tree-flow.h: (struct stmt_ann_d): Add histograms field.
27235         * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
27236         for may_be_more, may_be_less.
27237         (rtl_gen_pow2_profiler): Adjust.
27238         (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
27239         (rtl_gen_one_value_profiler): Adjust.
27240         (rtl_gen_const_delta_profiler): Adjust.
27241         * tree-profile.c (tree_gen_interval_profiler): Implement.
27242         (tree_gen_pow2_profiler): Ditto.
27243         (tree_gen_one_value_profiler): Ditto.
27244         (tree_profiling): New.
27245         (pass_tree_profile): Reference it.
27246         * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
27247         tree.h, gcov-io.h.
27248         (insn_divmod_values_to_profile): Rename to
27249         rtl_divmod_values_to_profile. Adjust.
27250         (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
27251         (insn_prefetch_values_to_profile): Adjust.
27252         (rtl_value_profile_transformations): Adjust.
27253         (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
27254         (gen_mod_pow2): Rename to rtl_mod_pow2.
27255         (gen_mod_subtract): Rename to rtl_mod_subtract.
27256         (divmod_fixed_value_transform): Rename to
27257         rtl_divmod_fixed_value_transform.
27258         (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
27259         (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
27260         (rtl_find_values_to_profile): Adjust.
27261         (tree_value_profile_transformations): Implement.
27262         (tree_divmod_values_to_profile): New.
27263         (tree_values_to_profile): New.
27264         (tree_divmod_fixed_value): New.
27265         (tree_mod_pow2): New.
27266         (tree_mod_subtract): New.
27267         (tree_divmod_fixed_value_transform): New.
27268         (tree_mod_pow2_value_transform): New.
27269         (tree_mod_subtract_transform): New.
27270         (tree_find_values_to_profile): Implement.
27271         * profile.c (instrument_values): Free histograms.
27272         (compute_value_histograms): Adjust. Implement tree version.
27274 2005-03-29  Uros Bizjak  <uros@kss-loka.si>
27276         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
27277         * config/i386/i386.c (output_fix_trunc): Add new round_mode
27278         variable.  Output "fldcw" depending on round_mode.
27279         * config/i386/i386.md (UNSPEC_FIST): New.
27280         (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
27281         New isns patterns to implement lrint and llrint built-ins as x87
27282         intrinsic function.
27283         (fistdi2, fist<mode>2 splitters): New splitters.
27284         (lrint<mode>2): New expanders.
27286 2005-03-28  Ian Lance Taylor  <ian@airs.com>
27288         * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
27289         0 when calling final_scan_insn.
27291 2005-03-28  Jan Hubicka  <jh@suse.cz>
27293         PR middle-end/20635
27294         * varasm.c (mark_decl_referenced): Do not mark extern inline functions
27295         as needed.
27297         * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
27298         types where possible.
27300 2005-03-26  Per Bothner  <per@bothner.com>
27302         Make -f[no-]show-column also control non-cpp diagnostics.
27303         * c.opt (fshow-column): Move option from here ...
27304         * common.opt (fshow-column): ... to here.
27305         * diagnostic.c (diagnostic_build_prefix): Only print column number
27306         if flag_show_column.
27308 2005-03-27  Steven Bosscher  <stevenb@suse.de>
27310         * vax-protos.h (vax_output_int_move, vax_output_int_add,
27311         vax_output_conditional_branch): New prototypes.
27312         * vax.c (vax_output_int_move, vax_output_int_add): New functions,
27313         extracted from vax.md mov and add patterns.
27314         (vax_output_conditional_branch): New function to output conditional
27315         branch instructions.
27316         * vax.md: Use mode macros for arithmetic and mov patterns.
27317         Use code macros for the jump patterns.
27319 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
27321         * Makefile.in (libbackend.o): Depend on version files;
27322         add custom generation command.
27324 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
27326         PR target/20636
27327         * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
27328         sure that we have a REG before getting its REGNO.
27330 2005-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27332         * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
27333         * builtins.def (BUILT_IN_STRNDUP): New.
27335 2005-03-25  Pat Haugen  <pthaugen@us.ibm.com>
27337         PR tree-optimization/20470
27338         * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
27339         ABS(x-y).
27341 2005-03-25  Mike Stump  <mrs@apple.com>
27343         * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
27344         sized objects.
27346 2005-03-25  Geoffrey Keating  <geoffk@apple.com>
27348         * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
27349         Use our own structure definitions.
27351         * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
27352         (fix_truncdfsi2): Allow registers or memory as destination.
27353         When TARGET_PPC_GFXOPT, generate simplified pattern.
27354         (fix_truncdfsi2_internal): Use define_insn_and_split.
27355         (fix_truncdfsi2_internal_gfxopt): New.
27356         (fctiwz): Don't confuse register allocation by giving it no choices.
27357         (stfiwx): New.
27358         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
27359         (EXTRA_MEMORY_CONSTRAINT): Likewise.
27360         * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
27361         * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
27363 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
27365         * dominance.c (free_dominance_info): Speed up by freeing et
27366         data structures without maintaining other nodes.
27367         * et-forest.c (et_free_tree_force): New.
27368         * et-forest.h: Add a prototype for et_free_tree_force.
27370         * tree.c (get_set_constructor_bits,
27371         get_set_constructor_bytes): Remove.
27372         * tree.h: Remove the corresponding prototypes.
27374 2005-03-25  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
27376         PR target/15491
27377         * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
27378         (vax_rtx_costs): Return false when passed unsupported rtx's.  Handle
27379         FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE.  Fix costs for POST_INC,
27380         PRE_DEC, NEG and NOT.
27382 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
27384         * fold-const.c: Convert uses of fold (build (...)) to
27385         fold_buildN.
27387 2005-03-25  Zdenek Dvorak  <dvorakz@suse.cz>
27389         PR rtl-optimization/20249
27390         * cse.c (insert_regs): Do not record equivalence of registers in
27391         different modes.
27393 2005-03-24  Kazu Hirata  <kazu@cs.umass.edu>
27395         * emit-rtl.c (reverse_comparison): Remove.
27396         * rtl.h: Remove the corresponding prototype.
27398 2005-03-24  James E Wilson  <wilson@specifixinc.com>
27400         * doc/install.texi (--enable-altivec): Delete docs.
27402 2005-03-24  David Edelsohn  <edelsohn@gnu.org>
27404         * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
27405         SFmode and DFmode before reload when
27406         flag_unsafe_math_optimizations not enabled.
27408 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
27410         * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
27412         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
27413         MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
27415 2005-03-24  Nathan Sidwell  <nathan@codesourcery.com>
27417         * configure.ac (enable-checking): Add 'runtime' option.
27418         * doc/install.texi (enable-checking): Document 'runtime' checking.
27419         * tsystem.h (gcc_assert, gcc_unreachable): Define.
27420         * config.in: Regenerated.
27421         * configure: Regenerated.
27423 2005-03-23  Uros Bizjak  <uros@kss-loka.si>
27425         * optabs.h (enum optab_index): Remove OTI_llrint.
27426         (llrint_optab): Remove macro.
27427         * optabs.c (init_optabs): Remove llrint_optab initialization.
27428         * genopinit.c (optabs): Remove llrint_optab implementation.
27429         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
27430         using lrint_optab.
27432 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
27434         PR rtl-optimization/20532
27435         * simplify-rtx.c (simplify_binary_operation_1): Protect from
27436         overflow when adding coefficients for PLUS or MINUS.
27437         (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
27438         two as multiplier.
27440 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
27442         * langhooks.h (truthvalue_conversion): Remove.
27443         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
27444         LANG_HOOKS_TRUTHVALUE_CONVERSION.
27445         * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
27446         * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
27447         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
27449 2005-03-23  Kazu Hirata  <kazu@cs.umass.edu>
27451         * params.def: Fix a typo.
27452         * config/mips/mips.c: Follow the spelling convensions.
27453         * doc/invoke.texi: Fix typos.
27455 2005-03-23  Daniel Berlin  <dberlin@dberlin.org>
27457         Fix PR tree-optimization/20601
27459         * tree-ssa-pre.c (insert_aux): Add missing condition to
27460         constification.
27462 2005-03-23  Ian Lance Taylor  <ian@airs.com>
27464         * final.c (final_scan_insn): Don't remove no-op instructions.
27465         * reload1.c (reload): Remove simple no-op instructions even when
27466         not optimizing.
27468 2005-03-23  Dorit Naishlos  <dorit@il.ib.com>
27470         PR tree-optimization/20501
27471         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
27472         reporting that peeling for alignment is applied moved to...
27473         * (vect_analyze_data_refs_alignment): Here.
27475 2005-03-23  Ian Lance Taylor  <ian@airs.com>
27477         * reorg.c (dbr_schedule): Remove #if 0 code to call final.
27479 2005-03-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
27481         * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
27482         Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
27484 2005-03-23  Hans-Peter Nilsson  <hp@axis.com>
27486         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
27487         imply that this is called once, independent of asms in code.
27488         Adjust to now being pased output and input lists.  Mention helper
27489         function decl_overlaps_hard_reg_set_p.
27490         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
27491         hook_tree_tree_identity and to take three trees, returning third.
27492         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
27493         prototype.
27494         * stmt.c: include hard-reg-set.h before tree.h.
27495         (decl_overlaps_hard_reg_set_p): New function, broken out from...
27496         (decl_conflicts_with_clobbers_p): Call
27497         decl_overlaps_hard_reg_set_p.
27498         (expand_asm_operands): Pass output and input lists in call to
27499         targetm.md_asm_clobbers.
27500         * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
27501         hook_tree_tree_tree_tree_3rd_identity.
27502         * target.h (struct gcc_target.md_asm_clobbers): Take three tree
27503         parameters.
27504         * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
27505         * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
27506         parameters, first two unused.
27507         * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
27508         parameters.  Only add MOF to clobbers if there's no 'h' mentioned
27509         in constraint letters and MOF is not mentioned as a asm-declared
27510         register in neither of the input and output lists.
27512 2005-03-23  DJ Delorie  <dj@redhat.com>
27514         * optabs.c (expand_binop): Make sure the first subword's result
27515         gets stored.
27517 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
27519         * c-common.c (c_common_truthvalue_conversion): Adjust comment.
27520         Call c_common_truthvalue_conversion rather than
27521         lang_hooks.truthvalue_conversion.
27522         * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
27523         * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
27524         c-typeck.c.
27525         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
27526         c_common_truthvalue_conversion.
27527         * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
27528         c_parser_conditional_expression, c_parser_binary_expression): Call
27529         c_objc_common_truthvalue_conversion.
27530         * c-typeck.c (build_unary_op): Call
27531         c_objc_common_truthvalue_conversion.
27532         (build_conditional_expr): Do not call
27533         lang_hooks.truthvalue_conversion.
27534         (build_binary_op): Call c_common_truthvalue_conversion.
27535         (c_objc_common_truthvalue_conversion): Moved from
27536         c-objc-common.c.  Call default_function_array_conversion instead
27537         of default_conversion.
27539 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
27541         * c-common.h (default_conversion): Remove.
27542         (perform_integral_promotions): Add.
27543         * c-tree.h (default_conversion): Add.
27544         * c-typeck.c (perform_integral_promotions): New, split out from
27545         default_conversion.
27546         * c-common.c (check_case_value): Use perform_integral_promotions,
27547         not default_conversion.
27548         (c_add_case_label): Don't continue processing case label after
27549         found to be pointer.
27551 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
27553         * gcc.c (do_spec_1): Do not add a -L path for a directory in
27554         the prefix list if we have already added a multilib directory
27555         based on that path.
27556         (main): Do not add MD_EXEC_PREFIX to the list of directories to
27557         search with -L.
27559 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
27561         * reload1.c (indirect_symref_ok, reload_obstack): Make them
27562         static.
27563         * reload.h: Remove the prototype for indirect_symref_ok.
27565         * reload1.c (indirect_symref_ok): Make it global.
27566         * reload.h: Add a prototype for indirect_symref_ok.
27568 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
27570         * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
27571         ashlhi3 expander.
27573 2005-03-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
27575         * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
27577 2005-03-22  Daniel Berlin  <dberlin@dberlin.org>
27579         * c-opts.c (c_common_parse_file): Only start/end main source file
27580         if debug hooks says the writer wants it.
27581         * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
27582         member.
27583         (xcoff_debug_hooks): Ditto.
27584         * debug.c (do_nothing_hooks): Ditto.
27585         * debug.h (gcc_debug_hooks): Ditto.
27586         * dwarf2out.c (dwarf2_debug_hooks): Ditto.
27587         * sdbout.c (sdb_debug_hooks): Ditto.
27588         * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
27590 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
27592         * doc/extend.texi: Deprecate C++ min/max operators.
27594 2005-03-22  Zdenek Dvorak  <dvorakz@suse.cz>
27596         * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
27597         artificial original candidates.
27599 2005-03-22  Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
27600             Jan Hubicka  <jh@suse.cz>
27601             Steven Bosscher <stevenb@suse.de>
27603         * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
27604         call cost based on argument sizes.
27605         (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
27606         inlining.
27607         * params.def: (max-inline-inssn-single): Set to 450.
27608         (max-inline-insns-auto): Set to 90.
27609         (max-inline-insns-recursive): Set to 450
27610         (max-inline-insns-recursive-auto): Set to 450.
27611         (large-function-insns): Set to 2700.
27612         (inline-call-cost): New parameter.
27613         * tree-inline.c (estimate_move_cost): New function.
27614         (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
27615         for non-gimple-regs, set cost to 0 for gimple-regs.  Compute call size
27616         based on arguments.
27617         * tree-inline.h (estimate_move_cost): Declare.
27618         * invoke.texi: (max-inline-inssn-single): Change default to 450.
27619         (max-inline-insns-auto): Change default to 90.
27620         (max-inline-insns-recursive): Change default to 450
27621         (max-inline-insns-recursive-auto): Change default to 450.
27622         (large-function-insns): Change default to 2700.
27623         (inline-call-cost): Document new parameter.
27625 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
27627         * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
27628         (TARGET_DEFAULT): Delete.
27629         * config/i860/i860.opt: New file.
27631 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
27633         * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
27634         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
27635         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
27636         (frv_sched_lookahead): Delete.
27637         * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
27638         (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
27639         (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
27640         (MASK_LIBPIC, MASK_ACC_4,  MASK_PACK, MASK_LONG_CALLS)
27641         (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
27642         (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
27643         (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
27644         (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
27645         (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
27646         (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
27647         (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
27648         (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
27649         (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
27650         (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
27651         (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
27652         (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
27653         (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
27654         (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
27655         (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
27656         (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
27657         (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
27658         (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
27659         * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
27660         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
27661         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
27662         (frv_sched_lookahead): Delete.
27663         (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
27664         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
27665         (frv_handle_option): New function.  Move -mcpu= handling from...
27666         (frv_override_options): ...here.  Remove handling of other
27667         TARGET_OPTIONS.
27668         (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
27669         TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
27670         (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
27671         and TARGET_NO_MULTI_CE.
27672         (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
27673         !TARGET_VLIW_BRANCH.
27674         * config/frv/frv.opt: New file.
27676 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
27678         * fold-const.c (fold_ternary): Take decomposed arguments of
27679         CALL_EXPR.
27680         (fold): Update a call to fold_ternary.
27682         * fold-const.c (fold_build1, fold_build2, fold_build3): New.
27683         * tree.h: Add corresponding prototypes.
27685 2005-03-22  Jakub Jelinek  <jakub@redhat.com>
27687         PR target/20561
27688         * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
27689         between jump table and its label.
27690         * final.c (shorten_branches): Handle notes in between ADDR_VEC
27691         resp. ADDR_DIFF_VEC and the label preceeding it.
27692         (final_scan_insn): Likewise.  Ensure ADDR_VEC resp. ADDR_DIFF_VEC
27693         is emitted in the right section.
27695 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
27697         * fold-const.c (fold_unary, fold_binary): Update comments
27698         about arguments.
27700 2005-03-22  Hans-Peter Nilsson  <hp@axis.com>
27702         PR rtl-optimization/20527
27703         * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
27704         REG_INC note, test that the register also isn't mentioned in PRED
27705         or SUCC.
27707 2005-03-22  Ben Elliston  <bje@au.ibm.com>
27709         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
27710         and definition.
27712 2005-03-21  Mike Stump  <mrs@apple.com>
27714         * varasm.c (default_assemble_visibility): Remove extra ().
27716 2005-03-21  Roger Sayle  <roger@eyesopen.com>
27718         PR middle-end/20557
27719         * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
27720         to determine whether a block can be duplicated, rather than test
27721         whether the block contains noncopyable insns ourselves.
27723 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
27725         * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
27726         predicates.
27728 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
27730         * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
27732 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
27734         * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
27735         (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
27736         * config/fr30/fr30.opt: New file.
27738 2005-03-18  Daniel Berlin  <dberlin@dberlin.org>
27740         Fix PR tree-optimization/20542
27742         * tree-flow-inline.h (overlap_subvar): Move to here.
27743         * tree-ssa-operands.c: From here.
27744         * tree-flow.h (overlap_subvar): Declare.
27745         * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
27746         * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
27747         for variables with subvars.
27749 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
27751         PR middle-end/20177
27752         * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
27753         * modulo-sched.c (const_iteration_count): Return on NULL
27754         pre-header.
27755         (print_node_sched_params): Return on NULL dump_file.
27756         (generate_reg_moves): Handle reg-anti dependencies and disregard
27757         closing branch when generating register moves.
27758         (sms_schedule): Mark the SMSed block dirty.
27759         * passes.c (rest_of_handle_sms): Call update_life_info for all
27760         basic-blocks.
27761         * testsuite/gcc.dg/20050321-1.c: New test.
27763 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
27765         * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
27766         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
27767         movqi_internal): Likewise.
27769 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
27771         * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
27772         xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
27773         xtensa_b4const): Delete prototypes.
27774         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
27775         xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
27776         (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
27777         xtensa_extra_constraint): New prototypes.
27778         (add_operand, arith_operand, nonimmed_operand, mem_operand,
27779         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
27780         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
27781         move_operand, const_float_1_operand, fpmem_offset_operand,
27782         branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
27783         * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
27784         (xtensa_b4const_or_zero): ...this.  Change return type to bool and
27785         argument type to HOST_WIDE_INT.
27786         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
27787         xtensa_mask_immediate): Likewise.
27788         (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
27789         Likewise.  Also make these functions static.
27790         (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
27791         (xtensa_const_ok_for_letter_p): New.
27792         (add_operand, arith_operand, nonimmed_operand, mem_operand,
27793         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
27794         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
27795         move_operand, const_float_1_operand, fpmem_offset_operand,
27796         branch_operator, ubranch_operator, boolean_operator): Move to
27797         predicates.md.
27798         (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
27799         (xtensa_mem_offset): Change return type to bool.
27800         (xtensa_extra_constraint): New.
27801         (gen_int_relational): Update type of const_range_p function pointer.
27802         Use xtensa_b4const_or_zero.
27803         * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
27804         xtensa_const_ok_for_letter_p.  Update comments.
27805         (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
27806         (PREDICATE_CODES): Delete.
27807         * config/xtensa/xtensa.md: Include predicates.md.
27808         * config/xtensa/predicates.md: New file.
27810 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
27812         * config/v850/v850-protos.h: Remove the prototypes for
27813         reg_or_int9_operand, reg_or_const_operand,
27814         pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
27815         reg_or_0_operand, reg_or_int5_operand, call_address_operand,
27816         movsi_source_operand, power_of_two_operand,
27817         not_power_of_two_operand, special_symbolref_operand,
27818         pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
27819         register_is_ok_for_epilogue.
27820         * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
27821         reg_or_int9_operand, reg_or_const_operand,
27822         call_address_operand, special_symbolref_operand,
27823         movsi_source_operand, power_of_two_operand,
27824         not_power_of_two_operand, register_is_ok_for_epilogue,
27825         pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
27826         pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
27827         predicates.md.
27828         * config/v850/v850.h (PREDICATE_CODES): Remove.
27829         * config/v850/v850.md: Include predicates.md.
27830         * config/v850/predicates.md: New.
27832 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
27834         * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
27835         (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
27836         (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
27837         (itoolsdir, itoolsdatadir): Move definition above new first use.
27838         (install-itoolsdirs): New rule.
27839         (install-mkheaders): Depend on install-itoolsdirs, not
27840         install-include-dir.
27842 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
27844         * tree-into-ssa.c: Remove obsolete comments.
27846 2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>
27848         * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
27849         unrolling if -fpeel-loops is specified, too.
27850         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
27851         Remove superfluous check for flag_unroll_loops.
27853 2005-03-21  Uros Bizjak  <uros@kss-loka.si>
27855         * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
27856         (lrint_optab, llrint_optab): Define corresponding macros.
27857         * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
27858         * genopinit.c (optabs): Implement lrint_optab using lrintsi2
27859         pattern and llrint_optab using llrintdi2 patterns.
27860         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
27861         using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
27862         (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
27863         BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
27864         flag_unsafe_math_optimizations is set.
27866 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
27868         * combine.c (combine_simplify_rtx, simplify_if_then_else,
27869         simplify_logical, if_then_else_cond, known_cond,
27870         simplify_comparison): Adjust calls to reverse_comparison.
27871         Don't use combine_reversed_comparison_code).
27872         (combine_reversed_comparison_code): Remove.
27873         (reversed_comparison): Using reversed_comparison_code, move it...
27874         * jump.c (reversed_comparison): ... here.
27875         * rtl.h (reversed_comparison): Add prototype.
27877 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
27879         * builtins.c (fold_builtin): Take decomposed arguments of
27880         CALL_EXPR.
27881         * fold-const.c (fold_ternary): Update a call to fold_builtin.
27882         * gimplify.c (gimplify_call_expr): Likewise.
27883         * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
27884         * tree.h: Update the prototype of fold_builtin.
27886 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
27888         * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
27889         * rtlhooks.c (gen_lowpart_no_emit_general): New.
27890         * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
27891         (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
27892         * simplify-rtx.c (simplify_binary_operation_1): Use it.
27894 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
27896         * builtins.c (fold_builtin_1): Take decomposed arguments of
27897         CALL_EXPR.
27898         (fold_builtin): Update a call to fold_builtin_1.
27900 2005-03-21  Nathan Sidwell  <nathan@codesourcery.com>
27902         PR other/20564
27903         * gcov.c (output_lines): Only output function block summary when
27904         outputting branch information.
27905         * doc/gcov.texi: Document format of preamble and additional block
27906         information lines.
27908 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
27910         * libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
27911         (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make
27912         the defaults false if BITS_PER_UNIT != 8.
27913         (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI)
27914         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather
27915         than BITS_PER_UNIT != 8.
27916         (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi)
27917         (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi)
27918         (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove
27919         #undefs.
27920         * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI)
27921         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE.
27923 2005-03-20  Roger Sayle  <roger@eyesopen.com>
27925         PR middle-end/20539
27926         * fold-const.c (fold_binary): Fix type mismatch between
27927         TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types.
27928         (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue
27929         for non-truth-valued expressions.
27931         * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK
27932         and FUNCTION_DECL in the main switch.
27933         <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
27934         TRUTH_XOR_EXPR>: When changing the result type of these tree nodes,
27935         we also need to convert their operands to match.
27936         <TRUTH_NOT_EXPR>: Likewise.
27938 2005-03-21  Joseph S. Myers  <joseph@codesourcery.com>
27940         * c-common.c (lvalue_or_else): Replace by lvalue_error; only give
27941         diagnostic without checking whether an lvalue.
27942         * c-common.h (lvalue_p): Remove.
27943         (enum lvalue_use): Update comment.
27944         (lvalue_or_else): Replace by lvalue_error.
27945         * c-typeck.c (lvalue_p): Make static.
27946         (lvalue_or_else): New.  Call lvalue_error.
27948 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
27950         * config/rs6000/rs6000.c (rs6000_parm_start): New function.
27951         (function_arg_advance): Use rs6000_parm_start.
27952         (function_arg, rs6000_arg_partial_bytes): Likewise.
27954 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
27956         * c-common.c (check_case_value): Adjust comment about stripping
27957         NOPs.
27958         (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
27959         * c-typeck.c (default_conversion, convert_arguments,
27960         build_modify_expr, convert_for_assignment, store_init_value,
27961         digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
27962         manually.  Remove inaccurate comments.
27964 2005-03-20  Roger Sayle  <roger@eyesopen.com>
27965             Joseph S. Myers  <joseph@codesourcery.com>
27967         * varasm.c (do_assemble_alias): Restore comment describing function.
27968         Annotate the target parameter as potentially unused.
27970 2005-03-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
27972         PR target/18551
27973         * config/avr/avr.c (avr_output_function_prologue): Do not use
27974         current_function_name() in a label, use a local label instead.
27976 2005-03-20  David Edelsohn  <edelsohn@gnu.org>
27978         * config/rs6000/rs6000.c (rs6000_generate_compare): Test
27979         flag_finite_math_only, not flag_unsafe_math_optimizations.
27981 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
27983         * builtins.c (fold_builtin_1): Update a call to
27984         targetm.fold_builtin.
27985         * hooks.c (hook_tree_tree_bool_null): Rename to
27986         hook_tree_tree_tree_bool_null.  Take one more argument of type
27987         tree.
27988         * hooks.h: Update the prototype of hook_tree_tree_bool_null.
27989         * target-def.h (TARGET_FOLD_BUILTIN): Define it as
27990         hook_tree_tree_tree_bool_null.
27991         * target.h (gcc_target): Update the prototype of fold_builtin.
27992         * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
27993         arguments of CALL_EXPR.
27994         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update.  Mention the
27995         new prototype.
27997 2005-03-20  Jan Hubicka  <jh@suse.cz>
27999         * cgraph.h (cgraph_node): Add prev_clone pointer.
28000         * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
28001         (cgraph_clone_node): Produce doubly linked chain.
28003 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
28005         * c-common.c (handle_aligned_attribute, check_function_sentinel,
28006         get_nonnull_operand, handle_sentinel_attribute,
28007         check_function_arguments_recurse): Do not strip NOPS from
28008         INTEGER_CSTs.
28009         * c-decl.c (check_bitfield_type_and_width, build_enumerator):
28010         Likewise.
28011         * c-format.c (get_constant): Likewise.
28012         * c-parser.c (c_parser_postfix_expression): Likewise.
28013         * c-typeck.c (set_init_index): Likewise.
28014         (convert_arguments): Don't check for NOP_EXPR containing integer
28015         constant.
28017 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
28019         * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
28020         fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
28021         Take decomposed arguments of CALL_EXPR.
28022         (fold_builtin_1): Update calls to the functions mentioned
28023         above.
28025 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
28027         * c-decl.c (check_bitfield_type_and_width): Require bit-field
28028         width to have integer type.
28029         (build_enumerator): Require enumerator value to have integer type.
28031 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
28033         * doc/extend.texi (__builtin_inf): Move statement about INFINITY
28034         to __builtin_inff.
28036 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
28038         * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
28039         std=iso9899:199x): Correct descriptions.
28041 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
28043         * config.gcc: Consistently use solaris2.1[0-9]* instead of
28044         solaris2.1[0-9].
28046 2005-03-19  Kazu Hirata  <kazu@cs.umass.edu>
28048         * builtins.c (fold_builtin_memcpy): Take decomposed arguments
28049         of CALL_EXPR.
28050         (expand_builtin_memcpy, fold_builtin_1): Update calls to
28051         fold_builtin_memcpy.
28053         * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
28054         arguments of CALL_EXPR.
28055         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
28056         fold_builtin_found, fold_builtin_1): Update calls to
28057         fold_trunc_transparent_mathfn.
28059 2005-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28061         PR middle-end/20493
28062         * fold-const.c (fold_widened_comparison): Don't optimize casts of
28063         function pointers on targets that require function pointer
28064         canonicalization.
28065         (fold_sign_changed_comparison): Likewise.
28067 2005-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
28069         * combine.c (try_combine): When changing the mode of a hard reg, make
28070         sure that doing so is valid.
28072 2005-03-19  Richard Sandiford  <rsandifo@redhat.com>
28074         * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
28075         (TARGET_HANDLE_OPTION): Override default.
28076         (avr_handle_option): New function.
28077         * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
28078         (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
28079         (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
28080         (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
28081         (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
28082         (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
28083         (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
28084         (TARGET_OPTIONS): Delete.
28085         * config/avr/avr.opt: New file.
28087 2005-03-18  2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28089         * config/m32r/m32r-protos.h: Remove the prototypes for
28090         call_address_operand, symbolic_operand, seth_add3_operand,
28091         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
28092         reg_or_uint16_operand, reg_or_cmp_int16_operand,
28093         two_insn_const_operand, move_src_operand,
28094         move_double_src_operand, move_dest_operand,
28095         eqne_comparison_operator, signed_comparison_operator,
28096         large_insn_p, conditional_move_operand, carry_compare_operand,
28097         m32r_block_immediate_operand, extend_operand,
28098         reg_or_eq_int16_operand, int8_operand, and
28099         reg_or_zero_operand.
28100         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
28101         seth_add3_operand, int8_operand, cmp_int16_operand,
28102         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
28103         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
28104         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
28105         move_double_src_operand, move_dest_operand,
28106         eqne_comparison_operator, signed_comparison_operator,
28107         extend_operand, small_insn_p, large_insn_p,
28108         conditional_move_operand, carry_compare_operand,
28109         m32r_block_immediate_operand): Move to predicates.md.
28110         (MAX_MOVE_BYTES): Move to m32r.h.
28111         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
28112         * config/m32r/m32r.md: Include predicates.md.
28113         * config/m32r/predicates.md: New.
28115 2005-03-18  James E Wilson  <wilson@specifixinc.com>
28117         PR c++/19769
28118         * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
28119         origin.
28121 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28123         * config/mn10300/mn10300-protos.h: Remove the prototypes for
28124         call_address_operand, const_8bit_operand.
28125         * config/mn10300/mn10300.c (call_address_operand,
28126         const_8bit_operand, const_1f_operand): Move to predicates.md.
28127         * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
28128         * config/mn10300/mn10300.md: Include predicates.md.
28129         * config/mn10300/predicates.md: New.
28131 2005-03-18  Joseph S. Myers  <joseph@codesourcery.com>
28133         * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
28134         declarations in diagnostics and %E for identifiers, not %s.
28136 2005-03-18  Jan Hubicka  <jh@suse.cz>
28137             Dale Johannesen  <dalej@apple.com>
28139         * basic-block.h (scale_bbs_frequencies_int,
28140         scale_bbs_frequencies_gcov_type): Declare.
28141         * cfg.c (RDIV): New macro.
28142         (update_bb_frequency_for_threading): Fix.
28143         * basic-block.h (scale_bbs_frequencies_int,
28144         scale_bbs_frequencies_gcov_type): New.
28145         * cfgloopmanip.c (scale_bbs_frequencies): Kill.
28146         (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
28147         scale_bbs_frequencies_int.
28148         * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
28150 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28152         * config/m32r/m32r-protos.h: Remove the prototypes for
28153         call_address_operand, symbolic_operand, seth_add3_operand,
28154         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
28155         reg_or_uint16_operand, reg_or_cmp_int16_operand,
28156         two_insn_const_operand, move_src_operand,
28157         move_double_src_operand, move_dest_operand,
28158         eqne_comparison_operator, signed_comparison_operator,
28159         large_insn_p, conditional_move_operand, carry_compare_operand,
28160         m32r_block_immediate_operand, extend_operand,
28161         reg_or_eq_int16_operand, int8_operand, and
28162         reg_or_zero_operand.
28163         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
28164         seth_add3_operand, int8_operand, cmp_int16_operand,
28165         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
28166         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
28167         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
28168         move_double_src_operand, move_dest_operand,
28169         eqne_comparison_operator, signed_comparison_operator,
28170         extend_operand, small_insn_p, large_insn_p,
28171         conditional_move_operand, carry_compare_operand,
28172         m32r_block_immediate_operand): Move to predicates.md.
28173         (MAX_MOVE_BYTES): Move to m32r.h.
28174         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
28175         * config/m32r/m32r.md: Include predicates.md.
28176         * config/m32r/predicates.md: New.
28178         * config/pa/pa-protos.h: Add prototypes for magic_milli and
28179         shadd_constant_p.
28180         * config/pa/pa.c (reg_or_0_operand, call_operand_address,
28181         symbolic_operand, symbolic_memory_operand,
28182         reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
28183         indexed_memory_operand, move_dest_operand, move_src_operand,
28184         prefetch_cc_operand, prefetch_nocc_operand,
28185         reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
28186         arith_operand, arith11_operand, pre_cint_operand,
28187         post_cint_operan, arith_double_operand, ireg_or_int5_operand,
28188         ireg_operand, int5_operand, uint5_operand, int11_operand,
28189         uint32_operand, arith5_operand, and_operand, ior_operand,
28190         lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
28191         pc_or_label_operand, div_operand, plus_xor_ior_operator,
28192         shadd_operand, movb_comparison_operator,
28193         cmpib_comparison_operator): Move to predicates.md.
28194         (magic_milli, shadd_constant_p): Make it extern.
28195         * config/pa/pa.h (PREDICATE_CODES): Remove.
28196         * config/pa/pa.md: Include predicates.md.
28197         * config/pa/predicates.md: New.
28199         * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
28200         predicate.
28202 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28204         * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
28205         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
28206         config/alpha/freebsd.h, config/alpha/linux.h,
28207         config/alpha/netbsd.h, config/alpha/osf5.h,
28208         config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
28209         config/h8300/h8300-protos.h, config/h8300/h8300.c,
28210         config/h8300/h8300.h, config/ia64/unwind-ia64.c,
28211         doc/cppopts.texi: Update copyright.
28213 2005-03-18  Jan Hubicka  <jh@suse.cz>
28215         PR middle-end/20225
28216         * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
28217         too late.
28218         * varasm.c (find_decl_and_mark_needed): Mark needed only when not
28219         called too late.
28221 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28223         * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
28224         VEC_safe_push.
28226 2005-03-18  Paolo Bonzini  <bonzini@gnu.org>
28228         * combine.c (gen_binary): Remove.
28229         (known_cond, simplify_shift_const, find_split_point,
28230         combine_simplify_rtx, simplify_if_then_else, simplify_set,
28231         simplify_logical, expand_field_assignment, extract_left_shift,
28232         force_to_mode, if_then_else_cond, apply_distributive_law,
28233         simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
28234         simplify_comparison, reversed_comparison): Replace with
28235         simplify_gen_binary, simplify_gen_relational or
28236         distribute_and_simplify_rtx.
28237         (distribute_and_simplify_rtx): New function.
28239 2005-03-18  Alexey Neyman  <alex.neyman@auriga.ru>
28240             Paolo Bonzini  <gcc.gnu.org>
28242         * calls.c (setjmp_call_p, special_function_p): Update comments
28243         at the head of the functions.
28245 2005-03-18  Jan Hubicka  <jh@suse.cz>
28247         * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
28249         * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
28250         function body should be released; do not proactively release function
28251         bodies in non-unit-at-a-time mode.
28253 2005-03-18  Ralf Corsepius  <ralf.corsepius@rtems.org>
28255         * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
28256         mno-fp-ret-in-387 multilib variants.
28258 2005-03-18  Richard Sandiford  <rsandifo@redhat.com>
28260         * common.opt (m): Remove.
28261         * opts.c (handle_option): Pass 'm' options to set_target_switch if
28262         table lookup fails.
28263         (common_handle_option): Remove OPT_m case.
28265 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28267         * builtins.c (fold_builtin_bitop): Take decomposed arguments
28268         of CALL_EXPR.
28269         (fold_builtin_1): Update a call to fold_builtin_bitop.
28271         * builtins.c (fold_builtin_signbit): Take decomposed arguments
28272         of CALL_EXPR.
28273         (fold_builtin_1): Update a call to fold_builtin_signbit.
28275 2005-03-17  Dorit Naishlos  <dorit@il.ibm.com>
28277         PR tree-optimization/20474
28278         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
28279         size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
28281 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
28283         * config/h8300/h8300-protos.h: Remove prototypes for
28284         general_operand_src, general_operand_dst, single_one_operand,
28285         single_zero_operand, call_insn_operand,
28286         two_insn_adds_subs_operand, small_call_insn_operand,
28287         jump_address_operand, bit_operand, bit_memory_operand,
28288         stack_pointer_operand, const_int_gt_2_operand,
28289         const_int_ge_8_operand, const_int_qi_operand,
28290         const_int_hi_operand, incdec_operand, bit_operator,
28291         nshift_operator, eqne_operator, gtle_operator,
28292         gtuleu_operator, iorxor_operator.
28293         Add prototypes for h8sx_shift_type h8sx_classify_shift and
28294         h8300_ldm_stm_parallel.
28295         * config/h8300/h8300.c (h8sx_shift_type,): Move to
28296         h8300-protos.h.
28297         (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
28298         SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
28299         (h8300_ldm_stm_parallel): Make it extern.
28300         (h8300_ldm_parallel, h8300_stm_parallel,
28301         h8300_return_parallel, general_operand_src,
28302         general_operand_dst, h8300_dst_operand, h8300_src_operand,
28303         nibble_operand, reg_or_nibble_operand, single_one_operand,
28304         single_zero_operand, call_insn_operand,
28305         two_insn_adds_subs_operand, small_call_insn_operand,
28306         jump_address_operand, bit_operand, bit_memory_operand,
28307         stack_pointer_operand, const_int_gt_2_operand,
28308         const_int_ge_8_operand, const_int_qi_operand,
28309         const_int_hi_operand, incdec_operand, eqne_operator,
28310         gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
28311         h8sx_binary_memory_operator, h8sx_unary_memory_operator,
28312         h8sx_unary_shift_operator, h8sx_binary_shift_operator,
28313         nshift_operator): Move to predicates.md.
28314         * config/h8300/h8300.h (PREDICATE_CODES): Remove.
28315         * config/h8300/h8300.md: Include predicates.md.
28316         * config/h8300/predicates.md: New.
28318 2005-03-17  Richard Henderson  <rth@redhat.com>
28320         * config.gcc (ia64*-*-hpux*): Add extra_options.
28321         * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
28322         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
28323         * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
28324         (ia64_tls_size_string, ia64_tune_string): Remove.
28325         (ia64_tune): Init to PROCESSOR_ITANIUM2.
28326         (TARGET_DEFAULT_TARGET_FLAGS): New.
28327         (TARGET_HANDLE_OPTION): New.
28328         (ia64_override_options): Move options parsing ...
28329         (ia64_handle_option): ... here.  New.
28330         * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
28331         MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
28332         MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
28333         MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
28334         MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
28335         MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
28336         MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
28337         TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
28338         TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
28339         TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
28340         TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
28341         TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
28342         TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
28343         TARGET_EARLY_STOP_BITS): Remove.
28344         (TARGET_ILP32): Default false.
28345         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
28346         (enum ia64_inline_type): New.
28347         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
28348         * config/ia64/ia64.md: Update for new definitions of
28349         TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
28350         * config/ia64/ia64.opt: New file.
28351         * config/ia64/ilp32.opt: New file.
28353 2005-03-17  H.J. Lu  <hongjiu.lu@intel.com>
28355         PR target/18380
28356         * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
28358 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
28360         * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
28361         instead of MASK_H8300S.
28362         * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
28363         MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
28364         MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
28365         MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
28366         TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
28367         TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
28368         TARGET_SWITCHES): Remove.
28369         (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
28370         TARGET_H8300SX.
28371         * config/h8300/h8300.opt: New.
28373         * config/alpha/alpha.opt, config/arc/arc.opt,
28374         config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
28375         notices.
28377 2005-03-17  Ian Lance Taylor  <ian@airs.com>
28379         * gmon.c: Remove.
28381 2005-03-17  Richard Sandiford  <rsandifo@redhat.com>
28383         * config/arc/arc.c (arc_cpu_string): Make static.  Default to "base"
28384         (arc_text_string, arc_data_string, arc_rodata_string): Make static.
28385         (TARGET_HANDLE_OPTION): Override default.
28386         (arc_handle_option): New function.
28387         (arc_init): Remove code to set arch_cpu_string.
28388         * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
28389         (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
28390         (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
28391         (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
28392         (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
28393         (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
28394         (arc_rodata_string, TARGET_OPTIONS): Delete.
28395         * config/arc/arc.opt: New file.
28397 2005-03-17  Richard Henderson  <rth@redhat.com>
28399         * doc/extend.texi (Weak Pragmas): New section.
28400         (attribute alias): Clarify that target must be in the same
28401         translation unit.
28403 2005-03-17  Richard Henderson  <rth@redhat.com>
28405         * config/alpha/alpha.opt: New file.
28406         * config/alpha/alpha.c (alpha_tune): New.  Rename all existing uses
28407         of alpha_cpu.
28408         (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
28409         alpha_fprm_string, alpha_fptm_string): Make static.
28410         (alpha_tls_size_string): Remove.
28411         (alpha_handle_option): New.
28412         (override_options): Update for alpha_cpu/alpha_tune split.
28413         (alpha_file_start): Likewise.
28414         (TARGET_DEFAULT_TARGET_FLAGS): New.
28415         (TARGET_HANDLE_OPTION): New.
28416         * config/alpha/alpha.h (alpha_tune): Declare.
28417         (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
28418         MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
28419         MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
28420         TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
28421         TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
28422         TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
28423         MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
28424         MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
28425         TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
28426         TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
28427         (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
28428         (TARGET_DEFAULT): Remove MASK_FP.
28429         (TARGET_FP): Redefined based on TARGET_SOFT_FP.
28430         (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
28431         (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
28432         alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
28433         alpha_tls_size_string): Remove.
28434         * config/alpha/alpha.md (prefetch): Use alpha_cpu.
28435         (attribute tune): Rename from attribute cpu.
28436         * config/alpha/ev4.md: Update to match.
28437         * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
28438         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
28439         * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
28440         * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
28441         * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
28442         * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
28444 2005-03-16  James E. Wilson  <wilson@specifixinc.com>
28446         * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
28447         and return without creating new state if before_nops_num is nonzero.
28448         * config/ia64/ia64.md (first_insn): New attribute.
28449         (alloc): Set it to yes.
28451 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
28453         * tree-vectorizer.c (new_vec_stmt_info): Initialize
28454         STMT_VINFO_SUBVARS to NULL.
28455         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
28457 2005-03-16 Dale Johannesen  <dalej@apple.com>
28459         * rtlanal.c (find_first_parameter_load): Rewrite to
28460         return actual first param load or the call if none,
28461         instead of first in block, when not all loads exist.
28463 2005-03-16  Roger Sayle  <roger@eyesopen.com>
28465         * optabs.c (expand_copysign_absneg): Make static.
28466         * optabs.h (expand_copysign_absneg): Delete prototype.
28467         * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
28469 2005-03-16  Richard Henderson  <rth@redhat.com>
28471         PR middle-end/15700
28472         * varasm.c (struct alias_pair): Rename from struct output_def_pair.
28473         (alias_pairs): Rename from output_defs.
28474         (find_decl_and_mark_needed): Split out from assemble_alias.
28475         (do_assemble_alias): New.
28476         (assemble_output_def): Remove.
28477         (finish_aliases_1, finish_aliases_2): New.
28478         (process_pending_assemble_output_defs): Remove.
28479         (assemble_alias): Defer aliases for which we don't yet have a
28480         non-external decl for the target symbol.
28481         * passes.c (rest_of_decl_compilation): Register variables with cgraph.
28482         * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
28483         * toplev.c (compile_file): Use finish_aliases_2 instead of
28484         process_pending_assemble_output_defs.
28485         * tree.h (finish_aliases_1, finish_aliases_2): Declare.
28486         (process_pending_assemble_output_defs): Remove.
28488 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
28490         Fix PR tree-optimization/20489
28492         * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
28493         for empty structures.
28495 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
28497         Fix PR tree-optimization/20490
28499         * tree-ssa-pre.c (create_expression_by_pieces): Use
28500         force_gimple_operand on result of fold.
28502 2005-03-16  Andrew Pinski  <pinskia@physics.uc.edu>
28504         * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
28505         of closing parenthesis.
28507 2005-03-16  Kazu Hirata  <kazu@cs.umass.edu>
28509         * builtins.c (expand_movstr): Update a call to
28510         fold_builtin_strcpy.
28511         (expand_builtin_strncpy): Update a call to
28512         fold_builtin_strncpy.
28513         (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
28514         arguments of CALL_EXPR.
28515         (fold_builtin_1): Update calls to fold_builtin_strcpy and
28516         fold_builtin_strncpy.
28517         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
28518         * tree.h: Update the prototypes of fold_builtin_strcpy and
28519         fold_builtin_strncpy.
28521 2005-03-16  Steven Bosscher  <stevenb@suse.de>
28522             Dorit Naishlos  <dorit@il.ibm.com>
28524         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
28525         UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
28526         error.
28528 2005-03-16  Steven Bosscher  <stevenb@suse.de>
28530         * tree-inline.c (walk_type_fields, walk_tree,
28531         walk_tree_without_duplicates): Move from here...
28532         * tree.c: ...to here.
28534 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
28536         * BASE-VER, DATESTAMP, DEV-PHASE: New files.
28537         * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
28538         (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
28539         (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
28540         (version): Define using $(BASEVER_c).
28541         (Makefile, config.status, build/gcov-iov.o): No longer depends on
28542         version.c.
28543         (version.o): Depend on version files; add custom generation command.
28544         (prefix.o): Define BASEVER on command line.
28545         (s-iov): Depend on version files; adjust command.
28546         (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
28547         Add gcc-vers.texi.
28548         (gcc-vers.texi): New rule.
28549         (doc/%.info, doc/%.dvi): Add -I . to command line.
28550         (doc/gccinstall.dvi): Likewise.
28551         (PACKAGE): Delete.  All uses replaced with "gcc".
28552         * aclocal.m4: Do not include gcc-version.m4.
28553         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
28554         Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
28555         Set is_release based on contents of DEV-PHASE.
28556         Set gcc_version based on contents of BASE-VER.
28557         Define WIN32_REGISTRY_KEY only if the user overrode the default.
28558         * config.in, configure: Regenerate.
28559         * gccbug.in: Determine version of GCC in use at runtime.
28560         * gcov-iov.c: Get version number and development phase from
28561         command line, not by including version.c.
28562         * intl.c: Replace all uses of PACKAGE with "gcc".
28563         * libada-mk.in: Delete unused "gcc_version" variable.
28564         * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
28565         * version.c: (VERSUFFIX): New hook for redistributors; adjust
28566         commentary to match.
28567         (version_string): Put together from pieces.
28568         * config/alpha/x-vms: Do not use $(gcc_version).
28569         * config/i386/t-nwld: Likewise.
28570         * doc/include/gcc-common.texi: Include gcc-vers.texi for
28571         version-GCC and DEVELOPMENT.
28573 2005-03-15  Roger Sayle  <roger@eyesopen.com>
28575         PR tree-optimization/17454
28576         * tree.c (tree_size): Add case for TREE_BINFO.
28577         * fold-const.c (fold_checksum_tree): Only clear the overloaded
28578         field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
28580 2005-03-15  Roger Sayle  <roger@eyesopen.com>
28582         * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
28583         op1 whilst expanding the signed widenening multiply variant.
28585 2005-03-15  Richard Sandiford  <rsandifo@redhat.com>
28587         * toplev.c (display_target_options): Avoid unused variable warning if
28588         TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
28589         * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
28590         (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
28591         (mips_isa): Initialize to MIPS_ABI_DEFAULT.
28592         (mips_isa_info): New variable.
28593         (mips_parse_cpu): Remove the first argument and leave the caller
28594         to report errors.
28595         (TARGET_HANDLE_OPTION): Override default.
28596         (mips_handle_option): New function.  Move option validation code from...
28597         (override_options): ...here.  Update calls to mips_parse_cpu.
28598         * config/mips/mips.h (mips_arch_string, mips_tune_string)
28599         (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
28600         (SUBTARGET_TARGET_OPTIONS): Delete.
28601         * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
28602         (mno-flush-func, mtune=): New options.
28604 2005-03-15  Roger Sayle  <roger@eyesopen.com>
28605             Richard Henderson  <rth@redhat.com>
28607         * real.c (c4x_single_format, c4x_extended_format): Provide values
28608         for signbit_ro for c4x's single and extended floating point formats.
28609         * optabs.c (expand_copysign): Use the floating point format's
28610         signbit_ro for expanding via expand_copysign_absneg, and it's
28611         signbit_rw field for expanding via expand_copysign_bit.
28613 2005-03-15  Dorit Naishlos  <dorit@il.ibm.com>
28615         * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
28616         known_alignment_for_access_p.
28617         (known_alignment_for_access_p): New.
28618         (do_peeling_for_alignment): Field made int instead of bool and renamed
28619         to peeling_for_alignment.
28620         (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
28621         * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
28622         functionality used to be in vect_analyze_operations.
28623         (vect_analyze_operations): Code to determine vectorization factor was
28624         moved to vect_determine_vectorization_factor.
28625         (vect_enhance_data_refs_alignment): Update to correct alignment when it
28626         is known instead of -1.  Set LOOP_PEELING_FOR_ALIGNMENT to peeling
28627         factor.
28628         (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
28629         be part of vect_analyze_operations).
28630         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
28631         creating the guard condition, as the number of iterations may be
28632         constant.
28633         (slpeel_tree_peel_loop_to_edge): Use new name of
28634         LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
28635         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
28636         alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
28637         (vect_do_peeling_for_alignment): Use fold.
28638         (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
28640         (vect_update_inits_of_dr): Renamed to
28641         vect_update_init_of_dr.
28642         (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
28643         (vectorizable_store): Fix assertion to use == instead of =.
28645 2005-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
28647         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
28648         call_used_regs for wCG registers.
28650 2005-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
28652         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
28653         for non-offsettable memory references to cope with outstanding reload
28654         replacements, take 2.
28656 2005-03-15  Uros Bizjak  <uros@kss-loka.si>
28658         PR target/18668
28659         * config/i386/i386.h (x86_fisttp): New.
28660         (TARGET_FISTTP): New macro.
28661         * config/i386/i386.c (x86_fisttp): Set for NOCONA.
28662         (output_fix_trunc): Add fisttp parameter.  Generate fisttp x87
28663         instruction when fisttp flag is set.
28664         * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
28666         * config/i386/i386.md (type attribute): Add fisttp.
28667         (unit attribute): Set to i387 for fisttp type.
28668         (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
28669         (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
28670         TARGET_FISTTP.
28671         (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
28672         Generate fisttp patterns for TARGET_FISTTP. Implement using mode
28673         macros.
28674         (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
28675         patterns for TARGET_FISTTP.  Enable patterns for
28676         (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
28677         (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
28678         fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
28679         implement fisttp x87 insn.
28680         (fix_trunc*_i387_fisttp splitters): New patterns.
28681         (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
28682         Rename to *fix_trunc<mode>_i387_1.  Implement using mode macros.
28683         Disable patterns for TARGET_FISTTP.  Add comment about FLAGS_REG
28684         clobber.
28685         (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
28686         Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
28687         Implement using mode macros. Disable patterns for TARGET_FISTTP.
28688         (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
28689         fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
28690         fix_trunc<mode>_i387_with_temp. Implement using mode macros.
28691         Disable patterns for TARGET_FISTTP.
28692         (fix_trunc*_i387 splitters): Implement usign mode macros.
28693         (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
28694         fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
28695         (fix_trunx*_sse peephole2s): Implement using mode macros.
28697 2005-03-15  J"orn Rennecke <joern.rennecke@st.com>
28699         PR rtl-optimization/20291
28700         * combine.c (try_combine): If splitting fails, re-try with
28701         original combined pattern, i.e. before clobber stripping.
28703 2005-03-14  Eric Christopher  <echristo@redhat.com>
28705         * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
28706         STACK_GROWS_DOWNWARD.
28708 2005-03-14  Roger Sayle  <roger@eyesopen.com>
28710         * real.h (struct real_format): Split the signbit field into two
28711         two fields, signbit_ro and signbit_rw.
28712         * real.c (ieee_single_format, mips_single_format, ieee_double_format,
28713         mips_double_format, ieee_extended_motorola_format,
28714         ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
28715         ieee_extended_intel_128_format, ibm_extended_format,
28716         mips_extended_format, ieee_quad_format, mips_quad_format,
28717         vax_f_format, vax_d_format, vax_g_format, i370_single_format,
28718         i370_double_format, c4x_single_format, c4x_extended_format,
28719         real_internal_format): Update initializers for new field.
28720         * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
28721         real_format structure.
28722         * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
28723         field of the real_format structure.
28725 2005-03-14  Daniel Berlin <dberlin@dberlin.org>
28727         Fix PR tree-optimization/20458
28729         * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
28730         DECL_EXTERNAL on STRUCT_FIELD tags.
28731         (clear_call_clobbered): Ditto.
28732         * tree-ssa-operands.c (note_addressable): Make sure the original
28733         variable doesn't slip into the addressable list if we have
28734         subvars.
28735         * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
28736         tags too.
28738 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
28740         * doc/cppopts.texi (-fexec-charset): Add concept index entry.
28741         (-fwide-exec-charset): Likewise.
28742         (-finput-charset): Likewise.
28743         * doc/invoke.texi (Warning Options): Document -Wnormalized=.
28744         * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
28745         * c.opt (Wnormalized): New.
28747 2005-03-14  Devang Patel  <dpatel@apple.com>
28749         * doc/invoke.texi: Add reference to Visibility document.
28751 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
28753         * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
28754         MASK_SPLIT_ADDRESSES.
28755         * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
28756         (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
28757         (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
28758         (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
28759         (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
28760         (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
28761         (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
28762         (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
28763         (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
28764         (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
28765         (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
28766         (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
28767         (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
28768         (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
28769         (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
28770         (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
28771         (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
28772         (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
28773         (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
28774         (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
28775         (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
28776         (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
28777         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
28778         (TARGET_EXPLICIT_RELOCS): Delete.
28779         (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
28780         (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
28781         * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
28782         (override_options): Set MASK_LONG64 if -mint64 is given and no
28783         -mlongXX option is.  Complain about -mint64 -mlong32.
28784         (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
28785         MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
28786         * config/mips/mips.opt: New file.
28788 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
28790         * config.gcc (extra_options): New variable for listing option files.
28791         Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
28792         * configure.ac (extra_opt_files): New AC_SUBST variable.
28793         (tm_file_list, tm_include_list): Include options.h first.
28794         * configure: Regenerate.
28795         * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
28796         (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
28797         (s-options-h): New rule.
28798         (options.h): Depend on it.
28799         (TEXI_GCCINT_FILES): Add options.texi.
28800         * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
28801         * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
28802         * target.h (gcc_target): Add default_target_flags and handle_option.
28803         * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
28804         (TARGET_HANDLE_OPTION): New macros.
28805         (TARGET_INITIALIZER): Include them.
28806         * opt-functions.awk (opt_args, nth_arg): New functions.
28807         (switch_flags): Handle the "Target" flag.
28808         (var_args): Delete.
28809         (var_name): Use opt_args and nth_arg.
28810         (var_set, var_ref): Likewise.  Handle "Mask" and "InverseMask".
28811         * opth-gen.awk: Declare target_flags.  Declare MASK_* and TARGET_*
28812         macros for the "Mask" and "InverseMask" options.
28813         * opts.h (cl_var_cond): New enum.
28814         (cl_option): Replace the "has_set_value" and "set_value" fields with
28815         "var_cond" and "var_value".
28816         (CL_TARGET): New macro.
28817         (option_enabled, print_filtered_help): Declare.
28818         (decode_options): Move definition.
28819         * opts.c (handle_option): Search for the original option before
28820         removing any "no-" prefix.  Handle CL_TARGET.  Adjust for the new
28821         var_cond and var_value fields.  Use targetm.handle_option to handle
28822         target options.
28823         (decode_options): Set target_flags to targetm.default_target_flags.
28824         (print_filtered_help): Make global.  Handle CL_TARGET.
28825         (option_enabled): New function.
28826         * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
28827         (display_target_options, set_target_switch, print_switch_values)
28828         (default_pch_valid_p): Guard uses of target_switches with
28829         #ifdef TARGET_SWITCHES.  Also...
28830         (display_target_options): Display the CL_TARGET entries in cl_options.
28831         (set_target_option): Don't complain about the "" option when
28832         TARGET_SWITCHES is undefined.
28833         (print_switch_values): Use option_enabled.
28834         (default_pch_valid_p): Check cl_options[] when looking for something
28835         that has changed the value of target_flags.
28836         * c.opt: Remove documentation from top of file.
28837         * doc/gccint.texi: Add an "Options" chapter.  Include options.texi.
28838         * doc/sourecebuild.texi: Refer to the new options documentation
28839         instead of c.opt.  Document machine-specific .opt files.
28840         * doc/tm.texi (target_flags): Say that this variable is declared
28841         by options.h.
28842         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
28843         (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
28844         an alternative.
28845         * doc/options.texi: New file.
28847 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
28849         PR middle-end/18628
28850         * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
28851         register.
28853 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
28855         PR c++/20280
28856         * gimplify.c (gimplify_cond_expr): Add fallback argument.  Use a
28857         temporary variable of pointer type if an lvalues is required.
28858         (gimplify_modify_expr_rhs): Request an rvalue from it.
28859         (gimplify_expr): Pass fallback on.
28861 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
28863         * cfgbuild.c: Update comments.
28865 2005-03-14  Roger Sayle  <roger@eyesopen.com>
28867         PR rtl-optimization/17236
28868         * optabs.c (expand_doubleword_mult): New helper function split out
28869         from expand_binop.  Permute the order in which instructions are
28870         emitted to minimize the number of simultaneously live registers.
28871         (expand_binop): Call expand_doubleword_mult to synthesize a double
28872         word multiplication.
28874 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
28876         * basic-block.h: Update the prototypes of cached_make_edge and
28877         rtl_make_eh_edge.
28878         * cfg.c (cached_make_edge): Take edge_cache representing one
28879         row of the adjacency matrix of edges.
28880         * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
28881         (make_edges): Initialize edge_cache to represent one row of
28882         the adjacency matrix of edges.
28884 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
28886         * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
28887         New functions.
28888         (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
28889         Remove unused removed_phis variable.
28890         (conditional_replacement): Use build1/build2.
28891         (abs_replacement): Use last_and_only_stmt and build1/build2.
28893 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
28895         * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
28896         ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
28897         * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
28898         (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
28899         * c-common.c (handle_novops_attribute): New function.
28900         (c_common_attribute_table): Add "no vops" entry.
28901         * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
28902         * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
28903         * tree-ssa-operands.c (get_call_expr_operands): Do not
28904         create virtual operands for calls with ECF_NOVOPS flag.
28905         * tree.h (DECL_IS_NOVOPS): New macro.
28906         (struct tree_decl): Add novops_flag.
28907         (ECF_NOVOPS): New constant.
28909 2005-03-14  Uros Bizjak  <uros@kss-loka.si>
28911         PR target/17688
28912         * config/i386/i386.c (x86_use_himode_fiop): New.
28913         (x86_use_simode_fiop): Rename from x86_use_fiop.
28914         * config/i386/i386.h (x86_use_himode_fiop): Declare.
28915         (TARGET_USE_HIMODE_FIOP): New.
28916         (x86_use_simode_fiop): Rename from x86_use_fiop.
28917         (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
28919         * config/i386/i386.md (X87MODEI12): New mode macro define.
28920         (*cmpfp_<mode>): Rename from *cmpfp_si.  Use X87MODEI12 mode macro
28921         to implement x87 FP compare with HImode input operands.
28922         (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
28923         Use X87MODEI12 mode macro to handle HImode input operands.
28924         (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
28925         *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
28926         Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
28927         *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
28928         macro to implement x87 operators with HImode input operands.
28929         (fop splitters): Use X87MODEI12 mode macro to handle HImode
28930         input operands.
28932 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
28934         * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
28935         integer_zerop.
28936         * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
28937         constants invariant.
28939 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
28941         * basic-block.h (BB_VISITED): Removed.
28942         * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
28944 2005-03-14  Falk Hueffner  <falk@debian.org>
28946         PR bootstrap/20424
28947         * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
28949 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
28951         * ggc-zone.c: Fix comment typos.
28953         * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
28954         stringpool.c, config/mips/mips-protos.h: Update copyright.
28956 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
28958         * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
28959         throughout with its typedef, "rtx".
28960         * config/rs6000/rs6000.c: Likewise.  Formatting fixes.
28961         (rs6000_tls_symbol_ref_1): Remove inline keyword.
28962         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting.  Reorder
28963         regs in comment to match code.
28965 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
28967         * except.c (check_handled): Make it static.
28968         * except.h: Remove the corresponding prototype.
28970         * function.c (get_func_frame_size): Make it static.
28971         * function.h: Remove the corresponding type.
28973         * regclass.c (reg_class_superclasses, reg_class_subclasses):
28974         Make them static.
28975         * hard-reg-set.h: Remove the corresponding declarations.
28977         * tree-cfg.c (verify_stmts): Check that
28978         bb_for_stmt (stmt) == bb for every PHI node and statement.
28980 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
28982         * config.gcc: Remove excess indentation.
28983         (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
28985 2005-03-13  Roger Sayle  <roger@eyesopen.com>
28987         PR middle-end/19331
28988         * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
28989         * fold-const.c (fold_sign_changed_comparison): Likewise.
28990         (fold_binary): Optimize comparisons against widened operands if
28991         the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
28993 2005-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
28995         * config/sparc/sparc.c (struct_value_alias_set): New global variable.
28996         (sparc_override_options): Initialize it.
28997         (sparc_struct_value_rtx): Set it on the MEM to be returned.
28999 2005-03-13  David Edelsohn  <edelsohn@gnu.org>
29001         * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
29002         (reg_or_none500mem_operand): New predicate.
29003         (zero_reg_mem_operand): New predicate.
29004         * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
29005         to reg_or_none500mem_operand.
29006         (extendsfdf2_fpr): Add MEM alternative.
29007         (extenddftf2_internal): Change operand2 predicate to
29008         zero_reg_mem_operand.
29010 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
29012         * ggc-zone.c: Rewritten.
29014         * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
29015         if there are none.
29016         * configure.ac: Define GGC_ZONE for --with-gc=zone.
29017         * config.in: Regenerated.
29018         * configure: Regenerated.
29019         * gengtype.c (write_types_process_field, write_func_for_structure):
29020         Pass new argument to gt_pch_note_object.
29021         * ggc-common.c (struct ptr_data): Add TYPE.
29022         (gt_pch_note_object): Take TYPE argument and save it.
29023         (call_count): Update call to ggc_pch_count_object.
29024         (call_alloc): Update call to ggc_pch_alloc_object.
29025         (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
29026         file.
29027         * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
29028         * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
29029         (ggc_alloc_zone_stat): Delete.
29030         (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
29031         * ggc.h (gt_pch_note_object, ggc_pch_count_object)
29032         (ggc_pch_alloc_object): Update prototypes.
29033         (garbage_zone): Delete.
29034         (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
29035         GGC_ZONE conditional.  Update.  Change tree_zone and rtl_zone into
29036         pointers.
29037         (tree_id_zone): New variable.
29038         (ggc_alloc_cleared_zone): Remove unused.
29039         (ggc_alloc_zone): Define.
29040         (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
29041         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
29042         ggc_alloc_zone_stat.
29043         * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
29044         * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
29045         (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
29046         (make_node_stat): Likewise.  Use tree_id_zone.
29048 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
29049             Joseph S. Myers  <joseph@codesourcery.com>
29051         * configure.ac: Check for MIPS TLS.
29052         * configure: Regenerated.
29053         * config/mips/mips-protos.h (enum mips_symbol_type): Add
29054         SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
29055         SYMBOL_GOTTPREL, and SYMBOL_TPREL.
29056         * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
29057         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
29058         (mips_classify_symbol, mips_symbolic_constant_p)
29059         (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
29060         (mips_tls_operand_p, mips_call_tls_get_addr)
29061         (mips_legitimize_tls_address, mips_cannot_force_const_mem)
29062         (mips_tls_symbol_ref_1): New functions.
29063         (mips_legitimize_address, mips_legitimize_const_move): Call
29064         mips_legitimize_tls_address.
29065         (override_options): Handle V1_REG and TLS symbols.  Disable TLS
29066         for MIPS16.
29067         * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
29068         (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
29069         (mips_char_to_class): Document V1_REG.
29070         (HAVE_AS_TLS): Provide default.
29071         * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
29072         constants.
29073         (load_got<mode>): Renamed from *load_got<mode>.  Allow when
29074         !TARGET_ABICALLS.
29075         (tls_get_tp_<mode>): New instruction.
29077 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
29079         * configure.ac: Update checks for target tools.
29080         * configure: Regenerated.
29082 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
29084         * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
29086 2005-03-13  Roger Sayle  <roger@eyesopen.com>
29088         * expmed.c (expand_mult): Use synthetic multiplication sequences for
29089         more classes of DImode multiplication by constant.  Allow both
29090         multiplication by small negative constants (by performing a
29091         multiplication by a positive constant and negating the result) and
29092         multiplications by large powers of two, by using a left shift.
29094 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
29096         * tree-into-ssa.c (find_idf): Speed up by putting the indexes
29097         of basic blocks into work_stack.
29099         * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
29100         config/mips/vr.h: Update copyright.
29102         * c-decl.c (c_init_decl_processing): Remove useless calls to
29103         build_function_type.
29105         * builtins.c (fold_trunc_transparent_mathfn,
29106         fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
29107         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
29108         fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
29109         fold_builtin_strcpy, fold_builtin_strncpy,
29110         fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
29111         TREE_TYPE (exp).
29113         * builtins.c (expand_builtin_mathfn_3): Remove local variable
29114         before_call.
29116         * lambda-code.c (lambda_compute_auxillary_space): Remove local
29117         variable determinant.
29119         * tree-cfg.c (group_case_labels): Remove local variable type.
29121         * tree-ssa-live.c (build_tree_conflict_graph): Remove local
29122         variable ann.
29124         * tree-ssa-phiopt.c (value_replacement): Remove local variable
29125         result.
29127 2005-03-13  Andy Hutchinson  <HutchinsonAndy@netscape.net>
29129         PR target/18251
29130         * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
29131         (*movmemqi_insn): Delete.
29132         (*movmemhi): Delete.
29134 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
29136         * builtins.c (fold_builtin_classify): Take decomposed
29137         arguments of CALL_EXPR.
29138         (fold_builtin_1): Update a call to fold_builtin_classify.
29140 2005-03-13  Joseph S. Myers  <joseph@codesourcery.com>
29142         PR c/20402
29143         * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
29144         through into call to parser_xref_tag after parse error.
29145         (c_parser_struct_declaration): Consistently return NULL_TREE on
29146         error.
29148 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
29150         * tree-flow-inline.h (ref_contains_array_ref): New function.
29151         (lookup_subvars_for_var): Ditto.
29152         (get_subvars_for_var): Ditto.
29153         (var_can_have_subvars): Ditto.
29155         * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
29156         (struct subvar): New type.
29158         * tree-dfa.c (okay_component_ref_for_subvars): New function.
29160         * tree-optimize.c (init_tree_optimization_passes): Call
29161         pass_create_structure_vars.
29163         * tree-ssa-alias.c: Include vec.h.
29164         (init_alias_info): Don't auto-clear call clobbered on struct-field
29165         tags.
29166         (compute_flow_insensitive_aliasing): Handle subvars.
29167         (group_aliases): Handle STRUCT_FIELD aliases.
29168         (setup_pointers_and_addressables): Ditto.
29169         Don't mark variables non-addressable if they still have
29170         addressable subvars.
29171         Also mark subvars addressable when the real variable is marked
29172         addressable.
29173         (add_pointed_to_var): Try to prune the pointed-to set by only
29174         pointing to subvars when possible.
29175         Otherwise, make sure we set addresses_needed and pt_vars to
29176         properly include subvars.
29177         (bitpos_of_field): New function.
29178         (push_fields_onto_fieldstack): Ditto.
29179         (get_or_create_used_part_for): Ditto.
29180         (create_overlap_variables_for): Ditto.
29181         (find_used_portions): Ditto.
29182         (create_structure_vars): Ditto.
29183         (pass_create_structure_vars): New structure.
29185         * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
29186         (get_expr_operands): Handle subvars.  Also try to turn
29187         COMPONENT_REF accesses into must-defs now that we can accurately
29188         portray it.
29189         (note_addressable): Try to only mark as addressable those subvars
29190         we know a COMPONENT_REF touches.
29191         (overlap_subvar): New function.
29193         * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
29194         Handle subvar storing.
29195         (vect_address_analysis): Update caller of vect_object_analysis.
29197         * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
29199         * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
29200         (STMT_VINFO_SUBVARS): New macro.
29202         * common.opts: add flag_tree_salias.
29204         * opts.c (decode_options): flag_tree_salias defaults to on.
29206         * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
29208         * doc/tree-ssa.texi: Document structural alias analysis.
29210 2005-03-12  Steven Bosscher  <stevenb@suse.de>
29212         * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
29213         * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
29214         * tree-ssa-operands.c (get_expr_operands): Likewise.
29215         (get_expr_operands): Likewise for ERROR_MARK.
29217 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
29219         * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
29220         var.
29222         * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
29223         removed_phis.
29225         * tree-ssa-pre.c (compute_avail): Remove local variable val.
29226         (mark_operand_necessary): Remove local variable ver.
29228         * tree-vect-transform.c (vect_get_new_vect_var): Remove local
29229         variable prefix_len.
29231         * value-prof.c (mod_subtract_transform): Remove local variable
29232         value.
29234         * builtins.c (fold_builtin_exponent): Take decomposed
29235         arguments of CALL_EXPR.
29236         (fold_builtin_1): Update a call to fold_builtin_exponent.
29238         * builtins.c (fold_builtin_logarithm): Take decomposed
29239         arguments of CALL_EXPR.
29240         (fold_builtin_1): Update a call to fold_builtin_logarithm.
29242         * c-decl.c (c_init_decl_processing): Remove local variables
29243         ptr_ftype_void and ptr_ftype_ptr.
29245         * gimplify.c (gimplify_expr): Remove local variables r0 and
29246         r1.
29248         * reg-stack.c (move_for_stack_reg): Remove local variable
29249         push_insn.
29250         (compare_for_stack_reg): Remove local variable flags_user.
29251         (convert_regs_1): Remove local variable deleted.
29253         * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
29254         variable new_cond.
29255         (combine_blocks): Remove local variables exits and new_e.
29257         * tree-inline.c (expand_call_inline): Remove local variable
29258         decl.
29260         * tree-ssa-live.c (create_ssa_var_map,
29261         calculate_live_on_entry): Remove local variable snn.
29263 2005-03-12  Geoffrey Keating  <geoffk@apple.com>
29265         * c-lex.c (c_lex_with_flags): Add parameter to call to
29266         cpp_spell_token.
29268 2005-03-11  Per Bothner  <per@bothner.com>
29270         * c-tree.h (struct c_declarator): New id_loc field.
29271         * c-pragma.h (c_lex_with_flags): Take position reference.
29272         * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
29273         iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
29274         (c_lex): Pass dummy location to c_lex_with_flags.
29275         * c-parser.c (c_lex_one_token): Set c_token's location using
29276         c_lex_with_flags, instead of input_location, which might be "ahead".
29277         (c_parser_direct_declarator): Set declarator's id_loc from
29278         c_token's id_loc.
29279         * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
29280         declarator's id_loc, rather than probably-imprecise input_location.
29281         (build_id_declarator): Initialize c_declarator's id_loc field.
29283 2005-03-11  Roger Sayle  <roger@eyesopen.com>
29285         PR middle-end/20419
29286         * builtins.c (expand_builtin_signbit): Force the signbit's word
29287         into an integer register to avoid SUBREGs of floating point modes.
29289 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
29291         * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
29292         target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
29293         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
29294         config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
29296 2005-03-11  David Edelsohn  <edelsohn@gnu.org>
29298         PR rtl-optimization/20306
29299         * expr.c (emit_move_complex): Set try_int false if mode is
29300         MODE_COMPLEX_FLOAT and mov_optab exists for inner mode.  Only try
29301         emit_block_move if try_int is true.
29303 2005-03-11  Richard Henderson  <rth@redhat.com>
29305         PR target/20415
29306         * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
29307         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
29308         to match.
29310 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
29312         * config/mips/mips.h (mips_fix_vr4130_string): Declare.
29313         (TARGET_FIX_VR4130): New macro.
29314         (TARGET_OPTIONS): Add -mfix-vr4130.
29315         (ISA_HAS_MACCHI): New macro.
29316         (ASM_SPEC): Add -mfix-vr4130.
29317         * config/mips/mips.c (mips_fix_vr4130_string): New variable.
29318         (override_options): Handle mips_fix_vr4130_string.
29319         (mips_avoid_hazards): Clear all_noreorder_p
29320         if we're working around VR4130 errata and the macc alternatives
29321         are not available.
29322         * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
29323         (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
29324         * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
29325         (MULTILIB_DEFAULTS): Remove leading "march=".
29326         (DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
29327         if no architecture option is given.
29328         * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
29329         VR4130 multilibs.
29330         (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
29331         * doc/invoke.texi: Document -mfix-vr4130.
29333 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
29335         * config/mips/mips.c (override_options): Only warn about -mint64
29336         deprecation if TARGET_INT64.
29338 2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29340         * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
29341         ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
29342         ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
29343         are non-specific regarding the nonnull parameter positions.
29344         (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
29345         ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
29346         ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
29347         ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
29349         * builtins.def: Use the non-specific "nonnull" attibute lists.
29351 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
29353         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
29354         single_pred_edge, single_succ, single_pred): Improve comments.
29356 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
29358         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
29359         single_pred_edge, single_succ, single_pred): New inline functions.
29360         * bb-reorder.c (rotate_loop, find_traces_1_round,
29361         add_labels_and_missing_jumps, fix_up_fall_thru_edges,
29362         duplicate_computed_gotos): Use the single_succ/pred functions.
29363         * cfganal.c (forwarder_block_p): Ditto.
29364         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
29365         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
29366         outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
29367         merge_seq_blocks): Ditto.
29368         * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
29369         * cfglayout.c (fixup_reorder_chain): Ditto.
29370         * cfgloop.c (mark_single_exit_loops, update_latch_info,
29371         canonicalize_loop_headers, verify_loop_structure): Ditto.
29372         * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
29373         mfb_update_loops, create_preheader, force_single_succ_latches,
29374         create_loop_notes): Ditto.
29375         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
29376         force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
29377         commit_one_edge_insertion, purge_dead_edges,
29378         cfg_layout_can_merge_blocks_p): Ditto.
29379         * except.c (sjlj_emit_function_enter): Ditto.
29380         * flow.c (init_propagate_block_info): Ditto.
29381         * function.c (thread_prologue_and_epilogue_insns): Ditto.
29382         * gcse.c (find_implicit_sets, bypass_conditional_jumps,
29383         insert_insn_end_bb): Ditto.
29384         * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
29385         find_if_case_2): Ditto.
29386         * lambda-code.c (perfect_nestify): Ditto.
29387         * lcm.c (optimize_mode_switching): Ditto.
29388         * loop-doloop.c (doloop_modify): Ditto.
29389         * loop-init.c (loop_optimizer_init): Ditto.
29390         * loop-iv.c (simplify_using_initial_values): Ditto.
29391         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
29392         * loop-unswitch.c (unswitch_loop): Ditto.
29393         * modulo-sched.c (generate_prolog_epilog): Ditto.
29394         * predict.c (combine_predictions_for_insn, estimate_probability,
29395         tree_estimate_probability, last_basic_block_p,
29396         estimate_bb_frequencies): Ditto.
29397         * profile.c (branch_prob): Ditto.
29398         * regrename.c (copyprop_hardreg_forward): Ditto.
29399         * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
29400         * tracer.c (layout_superblocks): Ditto.
29401         * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
29402         cfg_remove_useless_stmts_bb, cleanup_control_flow,
29403         cleanup_control_expr_graph, disband_implicit_edges,
29404         tree_find_edge_insert_loc, bsi_commit_edge_inserts,
29405         tree_verify_flow_info, tree_make_forwarder_block,
29406         tree_forwarder_block_p, remove_forwarder_block,
29407         remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
29408         * tree-if-conv.c (tree_if_conversion): Ditto.
29409         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
29410         * tree-ssa-dce.c (remove_dead_stmt): Ditto.
29411         * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
29412         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
29413         copy_loop_headers): Ditto.
29414         * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
29415         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
29416         * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
29417         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
29418         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
29419         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
29420         * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
29421         * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
29422         * tree-ssa-threadupdate.c (redirect_edges): Ditto.
29423         * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
29424         eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
29425         * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
29426         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
29427         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
29428         slpeel_add_loop_guard): Ditto.
29430 2005-03-11  James A. Morrison  <phython@gcc.gnu.org>
29432         PR tree-optimization/15784
29433         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
29434         and -1 - A to ~A.
29436         * stmt.c (expand_case): Don't change index_type.  Convert minval
29437         to the proper type.
29439         PR tree-optimization/20130
29440         * fold-const.c (fold): Fold x * -1 into -x.
29442 2005-03-11  Kaz Kojima  <kkojima@gcc.gnu.org>
29444         PR rtl-optimization/20331
29445         * rtlanal.c (modified_between_p): Check its address first for MEM.
29446         (modified_in_p): Likewise.
29448 2005-03-11  Joseph S. Myers  <joseph@codesourcery.com>
29450         * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
29452 2005-03-10  Steven Bosscher  <stevenb@suse.de>
29454         * expr.c (expand_expr_real_1): If possible, use a conditional
29455         move for expanding MIN_EXPR and MAX_EXPR.
29456         Use temp for moving around rtx-en.
29458 2005-03-10  Andrew Pinski  <pinskia@physics.uc.edu>
29460         PR rtl-opt/20412
29461         * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
29462         correct mode.
29464 2005-03-10  Roger Sayle  <roger@eyesopen.com>
29466         * builtins.c (expand_builtin_signbit): Extend to handle floating
29467         point modes wider than the largest integer type, using the
29468         operand_subword_force function to obtain the signbit's word.
29470 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
29472         PR target/20322
29473         * combine.c (try_combine): If recog_for_combine added CLOBBERs
29474         to NEWI2PAT, fail to combine if they are used by NEWPAT.
29476 2005-03-10  Aldy Hernandez  <aldyh@redhat.com>
29478         * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
29480 2005-03-10  Kazu Hirata  <kazu@cs.umass.edu>
29482         * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
29483         type void.
29484         (perform_edge_inserts): Unconditionally call
29485         free_dominator_info.
29487         * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
29489 2005-03-10  Bob Wilson  <bob.wilson@acm.org>
29491         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
29493 2005-03-10  Nathan Sidwell  <nathan@codesourcery.com>
29495         * bitmap.c (bitmap_copy): Remove manual loop unrolling.
29497         * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
29498         gcc_unreachable.
29499         (rtl_register_value_prof_hooks,
29500         tree_value_profile_transformations,
29501         tree_register_value_prof_hooks): Likewise.
29502         * var-tracking.c (stack_adjust_offset_pre_post,
29503         variable_htab_free, variable_union, dataflow_set_different_2,
29504         count_uses, variable_was_changed, set_frame_base_location,
29505         set_variable_part, emit_note_insn_var_location, vt_emit_notes,
29506         vt_add_function_parameters): Likewise.
29507         * varasm.c (named_section_real, named_section, make_decl_rtl,
29508         asm_emit_uninitialised, assemble_integer, decode_addr_const,
29509         const_hash_1, compare_constant, copy_constant, force_const_mem,
29510         output_constant_pool_2, output_constant_pool_1, output_constant,
29511         output_constructor, make_decl_one_only, decl_tls_model,
29512         default_no_named_section, default_elf_select_section_1,
29513         default_unique_section_1): Likewise.
29514         * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
29515         * vmsdbgout.c (addr_const_to_string): Likewise.
29517         PR c++/20375
29518         * function.c (struct assign_parm_data_one): Remove last_named
29519         field.
29520         (assign_parm_find_data_types): Don't determine last_named.
29521         Reorder named_parm determination.
29522         (assign_parms): Only setup varargs on the last non-varadic
29523         parameter.
29525 2005-03-10  Kazuhiro Inaoka  <inaoka.lazuhiro@renesas.com>
29527         * config/m32r/m32r.md (load_sda_base_32): New pattern.  Loads
29528         sda base address on medium model.
29530 2005-03-10  Zdenek Dvorak  <dvorakz@suse.cz>
29532         * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
29533         * cfgloop.c (flow_loop_nodes_find): Export.
29534         * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
29535         Declare.
29536         * cfgloopmanip.c (fix_loop_structure): New function.
29537         * predict.c (predict_loops): Clean up the loops information.
29538         * tree-cfg.c (cleanup_tree_cfg_loop): New function.
29539         (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
29540         loop structure.
29541         * tree-flow.h (cleanup_tree_cfg_loop): Declare.
29542         (rewrite_into_loop_closed_ssa): Declaration changed.
29543         * tree-loop-linear.c (linear_transform_loops): Add argument to
29544         rewrite_into_loop_closed_ssa call.
29545         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
29546         * tree-ssa-loop-im.c (move_computations): Ditto.
29547         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
29548         * tree-vectorizer.c (vectorize_loops): Ditto.
29549         * tree-optimize.c: Include cfgloop.h.
29550         (execute_todo): Choose whether to call cleanup_tree_cfg or
29551         cleanup_tree_cfg_loop.
29552         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
29553         (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
29554         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
29555         cleanup_tree_cfg_loop call.
29556         * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
29557         (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
29558         work on part of cfg.
29560 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
29562         PR inline-asm/20314
29563         * gimplify.c (gimplify_asm_expr): Handle input/output constraints
29564         with multiple alternatives.
29566         * stmt.c (parse_output_constraint): Fix a typo.
29568 2005-03-09  Bob Wilson  <bob.wilson@acm.org>
29570         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
29571         assembly directive instead of deprecated "no-generics".
29573 2005-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
29575         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
29576         for non-offsettable memory references to cope with outstanding reload
29577         replacements.
29578         * config/s390/s390.md ("reload_outti"): Call find_replacement to
29579         avoid losing outstanding address reloads.
29580         ("reload_outdi", "reload_outdf"): Likewise.
29582 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29584         * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
29585         code.  Add more cbrt transformations.
29587 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29589         * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
29591 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
29593         * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
29594         NULL_TREE when a given tree is not simplified.
29595         (fold): Return the original tree when any of the functions
29596         mentioned above NULL_TREE.
29598         * fold-const.c (fold_unary, fold_binary): Take decomposed
29599         arguments, code, type, op0, and op1 in case of fold_binary.
29600         (fold): Update calls to fold_unary and fold_binary.
29602 2005-03-09  Roger Sayle  <roger@eyesopen.com>
29604         * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
29605         a fndecl and an arglist instead of a CALL_EXPR, exp.
29607 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
29609         * cfglayout.c (fixup_reorder_chain): Remove old_bb.
29611         * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
29613         * expr.c (expand_assignment): Remove orig_to_rtx.
29615         * fold-const.c (int_const_binop): Remove no_overflow.
29617         * ifcvt.c (noce_emit_move_insn): Remove inmode.
29619         * loop-iv.c (get_biv_step_1): Remove lhs.
29621         * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
29623         * real.c (real_nan): Remove neg.
29625         * function.c (thread_prologue_and_epilogue_insns): Remove i
29626         and newinsn.
29628         * tree-data-ref.c (array_base_name_differ_p): Remove ta and
29629         tb.
29631         * tree-eh.c (tree_could_trap_p): Remove idx.
29633         * tree-into-ssa.c (ann): Remove ann.
29635         * tree-outof-ssa.c (num_nodes): Remove num_nodes.
29637         * tree-sra.c (decide_block_copy): Remove inst_count.
29639         * tree-ssa-alias.c (may_alias_p): Remove v_ann.
29641         * tree-ssa-loop-im.c (lhs): Remove.
29643         * cfgbuild.c (state, STATE, SET_STATE,
29644         BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
29645         make_edges.
29646         (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
29647         (find_basic_blocks): Set the state of each basic block to
29648         BLOCK_NEW.
29650 2005-03-08  Jeff Law  <law@redhat.com>
29652         * tree-cfg.c (cleanup_control_flow): If removal of a computed
29653         goto results in the removal of edges in the CFG, then we need
29654         to recompute dominators.
29656 2005-03-09  Ben Elliston  <bje@au.ibm.com>
29658         * c-common.c (c_do_switch_warnings): Comment fix.
29660 2005-03-08  Julian Brown  <julian@codesourcery.com>
29662         * Patch from 2005-03-08 reverted for causing regressions and
29663         ppc-darwin bootstrap failure.
29665 2005-03-08  Fariborz Jahanian <fjahanian@apple.com>
29667         * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
29668         Define the real function for ppc-darwin.
29669         * c-typeck.c (convert_arguments): Check for target-specific
29670         invalid argument call to unprototyped function.
29671         * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
29672         New Macro.
29673         * target.h (invalid_arg_for_unprototyped_fn): New field
29674         in struct calls.
29675         * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
29676         default target hook.
29677         * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
29678         Declare.
29680 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
29682         * c-typeck.c (constructor_stack, constructor_range_stack,
29683         initializer_stack): Make them static.
29685         * cfg.c (rbi_pool): Make it static.
29687         * gimple-low.c (lower_stmt_body): Make it static.
29688         * tree-flow.h: Remove the corresponding prototype.  Don't
29689         declare lower_data.
29691         * sched-deps.c (cache_size): Make it static.
29693         * stor-layout.c (lang_adjust_rli): Make it static.
29695 2005-03-08  Julian Brown  <julian@codesourcery.com>
29697         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
29698         from being used for symbols with vague linkage when
29699         HAVE_GAS_COMDAT_GROUP is true.
29701 2005-03-08  J"orn Rennecke <joern.rennecke@st.com>
29703         * jump.c (invert_jump_1): Don't call redirect_jump_1 with
29704         nlabel == JUMP_LABEL (jump).
29706 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
29708         * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
29709         gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
29710         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
29711         tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
29713 2005-03-08  Alexey Neyman  <alex.neyman@auriga.ru>
29715         PR c/14411
29716         * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
29717         * c-common.c (handle_returns_twice): New function.
29718         (c_common_attribute_table): Declare eturns_twice' attribute.
29719         * doc/extend.texi: Document eturns_twice' attribute.
29720         * tree.h (DECL_IS_RETURNS_TWICE): New macro.
29721         (struct tree_decl): Add returns_twice_flag.
29723 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
29725         * tree-ssa-phiopt.c: Fix a comment typo.
29727         * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
29728         loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
29729         config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
29730         copyright.
29732 2005-03-08  Richard Henderson  <rth@redhat.com>
29734         * config/alpha/alpha.c (code_for_builtin): Replace special-case
29735         builtin codes with ctzdi2, clzdi2, popcountdi2.
29736         (struct alpha_builtin_def): Add is_const.
29737         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
29738         (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
29739         (alpha_init_builtins): Init them.  Set nothrow and const attributes
29740         on builtins.
29741         (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
29742         alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
29743         alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
29744         alpha_fold_vector_minmax, alpha_fold_builtin_perr,
29745         alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
29746         alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
29747         alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
29748         alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
29749         (TARGET_FOLD_BUILTIN): New.
29750         * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
29751         (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
29752         (ffsdi2): Use ctz.
29753         (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
29755 2005-03-08  Ira Rosen  <irar@il.ibm.com>
29757         PR tree-optimization/20122
29758         * tree-vect-analyze.c (vect_object_analysis): Analyze initial
29759         condition of access function instead of base.
29761 2005-03-07  Jeff Law  <law@redhat.com>
29762             Steven Bosscher  <stevenb@suse.de>
29764         * tree-cfg.c (find_taken_edge_computed_goto): New function.
29765         (find_taken_edge): Call find_taken_edge_computed_goto as
29766         appropriate.  Allow any gimple invariant rather than just
29767         INTEGER_CST for VAL.
29768         (cleanup_control_flow): Cleanup a computed goto which has turned
29769         into a simple goto.
29770         (tree_merge_blocks): If block B has any forced labels, move
29771         them to the start of block A.
29772         * tree-ssa-dom.c (thread_across_edge): Allow threading across
29773         computed gotos as well.
29774         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
29775         removal of unnecessary computed gotos too.
29776         (lookup_redirection_data): Fix type of INSERT argument.  Callers
29777         updated.
29779 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
29781         * tree-ssa-phiopt.c: Update copyright.  Fix indentations.
29782         Remove trailing spaces.
29784         * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
29785         unshare_all_trees): Make them static.
29786         * tree-gimple.h: Remove the corresponding prototypes.
29788         * diagnostic.h: Remove unused prototype
29789         debug_output_buffer.
29790         * modulo-sched.c: Remove unused prototype
29791         set_row_column_for_ps.
29793         * tree-ssa-phiopt.c (tree_ssa_phiopt,
29794         replace_phi_edge_with_variable): Remove unused variable i.
29796 2005-03-07  Per Bothner  <per@bothner.com>
29798         * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
29800 2005-03-06  Andrew Pinski  <pinskia@physics.uc.edu>
29802         PR tree-opt/17671
29803         * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
29804         bbs on the COND_EXPR instead of the PHI_NODEs.
29805         (candidate_bb_for_phi_optimization): Remove.
29806         (replace_phi_with_stmt): Rename to ...
29807         (replace_phi_edge_with_variable): this and change so that we
29808         replace the phi argument instead of removing the PHI.
29809         (conditional_replacement): Change so we deal with PHI with more
29810         than two arguments.
29811         (value_replacement): Likewise.
29812         (abs_replacement): Likewise.
29814 2005-03-07  Aldy Hernandez  <aldyh@redhat.com>
29816         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
29817         output_e500_flip_gt_bit.
29819         * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
29820         as bit 31.
29821         (rs6000_generate_compare): Fix logic to look at the correct bits.
29822         (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
29823         Look at GT bit.
29824         (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
29825         gen_e500_flip_gt_bit.  Rename gen_move_from_CR_eq_bit to
29826         gen_move_from_CR_gt_bit.
29828         * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
29829         ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
29830         (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
29832         * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
29833         (E500_CR_IOR_COMPARE): New constant.
29835 2005-03-08  Earl Chew <earl_chew@agilent.com>
29836             David Billinghurst <David.Billinghurst@riotinto.com>
29838         * config/i386/host-cygwin.c: New file to support precompiled
29839         headers on cygwin
29840         * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
29841         * config.host: Use above files for cygwin host.
29843 2005-03-07  David Edelsohn  <edelsohn@gnu.org>
29845         * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
29846         ordering ops from earlier change.
29848 2005-03-07  Per Bothner  <per@bothner.com>
29850         Various fixes to allow us to again build if --enable-mapped-location:
29851         * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
29852         unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
29853         * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
29854         local variable loc. Change logic appropriately.
29855         * tree-vect-transform.c (vect_finish_stmt_generation): Use
29856         EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
29857         * c-parser.c (c_parser_for_statement): Initialize loc variable.
29858         * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
29859         DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
29861 2005-03-07  Richard Sandiford  <rsandifo@redhat.com>
29863         PR rtl-optimization/19683
29864         * reload1.c (choose_reload_regs): Pass the number of bits, not the
29865         number of bytes, to smallest_int_for_mode.  Fix arguments to
29866         REG_CANNOT_CHANGE_MODE_P.
29868 2005-03-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
29870         * reorg.c (relax_delay_slots): Check that the jump is
29871         conditional before trying to invert it.
29873 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
29875         * bb-reorder.c (max_entry_frequency, max_entry_frequency):
29876         Make them static.
29878         * calls (stack_arg_under_construction): Make it static.
29880         * flow.c (regs_live_at_setjmp): Make it static.
29881         * flow.h: Remove the corresponding prototype.
29883         * reload1.c (reload_startobj, reload_firstobj,
29884         something_needs_operands_changed, reload_inherited,
29885         reload_inheritance_insn, reload_override_in,
29886         reload_spill_index): Make them static.
29888         * recog.c (verify_changes): Make it static.
29889         * recog.h: Remove the corresponding prototype.
29891         * cfgbuild.c (find_sub_basic_blocks): Remove.
29892         * basic-block.h: Remove the corresponding prototype.
29893         * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
29894         in comments.
29895         * doc/cfg.texi: Don't mention find_sub_basic_blocks.
29897         * tree-ssa-operands.c (check_build_stmt): Remove.
29899         * stor-layout.c (set_alignment): Remove.
29900         * tree.h: Remove the corresponding prototype.
29902         * tree-ssa-pre.c (has_abnormal_preds): Make it static.
29904         * tree-ssa-dce.c (control_dependence_map,
29905         visited_control_parents): Make them static.
29907         * cfghooks.c (verify_flow_info): Remove local variable
29908         num_bb_notes.
29910         * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
29911         last_bb_seen.
29913         * loop-unswitch.c (unswitch_loop): Remove local variable src.
29915 2005-03-07  David Billinghurst <David.Billinghurst@riotinto.com>
29917         * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
29919 2005-03-07  Joseph S. Myers  <joseph@codesourcery.com>
29921         * config/ia64/hpux.h (LINK_SPEC): Add -z.
29922         * config/ia64/ia64.c (ia64_function_value): Return a REG not a
29923         PARALLEL for an empty structure.
29925 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
29927         * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
29929         * fold-const.c (fold_binary): Unroll the very first "for"
29930         loop.
29932 2005-03-06  David Edelsohn  <edelsohn@gnu.org>
29934         * config/rs6000/predicates.md (branch_comparison_operator): Remove
29935         redundant match_code test.
29936         (scc_comparison_operator): Swap match_operand and match_code
29937         tests.
29938         (branch_positive_comparison_operator): Same.
29939         (trap_comparison_operator): Use comparison_operator and swap with
29940         match_code test.
29942 2005-03-06  Marek Michalkiewicz  <marekm@amelek.gda.pl>
29944         PR target/20288
29945         * config/avr/avr.c (print_operand): Add 'p' and 'r'.
29946         (out_movhi_r_mr): Read low byte of volatile MEM first.
29947         (out_movhi_mr_r): Write high byte of volatile MEM first.
29949 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
29951         * cselib.c (reg_values, reg_values_size): Make them static.
29953         * cse.c (cse_reg_info_table): Make it static.
29955         * fold-const.c (fold_unary): Use build1 instead of copy_node.
29957 2005-03-06  Zdenek Dvorak  <dvorakz@suse.cz>
29959         * cse.c (find_best_addr): Use canon_for_address.
29961 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
29963         * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
29964         (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
29965         SUBREG and MEM, respectively.
29967         * fold-const.c (fold_binary): Use code instead of t.
29969         * fold-const.c (optimize_minmax_comparison): Take decomposed
29970         arguments code, type, op0, and op1 instead of t.
29971         (fold_binary): Update a call to optimize_minmax_comparison.
29973         * fold-const.c (fold_range_test): Take decomposed arguments
29974         code, type, op0, and op1 instead of t.
29975         (fold_binary): Update a call to fold_range_test.
29977         * fold-const.c (fold_binary_op_with_conditional_arg): Take
29978         decomposed arguments code, type, op0, and op1 instead of t.
29979         (fold_binary): Update a call to fold_range_test.
29981 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
29983         * fold-const.c (fold_binary): Avoid directly using the original
29984         expression t as much as possible.
29986 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
29988         * c-semantics.c (build_stmt): Use TYPE_P instead of
29989         IS_NON_TYPE_CODE_CLASS.
29990         * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
29991         (NON_TYPE_CHECK): Use TYPE_P instead of
29992         IS_NON_TYPE_CODE_CLASS.
29994         * fold-const.c (fold): Remove handling of binary expressions.
29996 2005-03-05  James A. Morrison  <phython@gcc.gnu.org>
29998         * doc/c-tree.texi: Wrap comments in @r{}.
29999         * doc/cpp.texi: Likewise.
30000         * doc/cppinternals.texi: Likewise.
30001         * doc/extend.texi: Likewise.
30002         * doc/md.texi: Likewise.
30003         * doc/objc.texi: Likewise.
30004         * doc/sourcebuild.texi: Likewise.
30005         * doc/tm.texi: Likewise.
30006         * doc/tree-ssa.texi
30008 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
30010         * predict.c (apply_return_prediction): Standardize PHI chain
30011         walking.
30012         * tree-ssa.c (ssa_redirect_edge): Likewise.
30014         * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
30015         gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
30016         Update copyright.
30018         * tree-phinodes.c (remove_phi_node): Drop the last argument.
30019         * tree-flow.h: Adjust the prototype for remove_phi_node.
30020         * lambda-code.c (perfect_nestify): Adjust a call to
30021         remove_phi_node.
30022         * tree-cfg.c
30023         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
30024         * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
30025         Likewise.
30026         * tree-ssa-dce.c (remove_dead_phis): Likewise.
30027         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
30028         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
30029         * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
30031         * combine.c (simplify_and_const_int): Use gen_int_mode instead
30032         of GEN_INT (trunc_int_for_mode (...)).
30033         * loop-iv.c (iv_number_of_iterations): Likewise.
30034         * postreload.c (reload_cse_move2add): Likewise.
30035         * simplify-rtx.c (simplify_const_unary_operation,
30036         simplify_const_binary_operation): Likewise.
30037         * stor-layout.c (get_mode_bounds): Likewise.
30039         * fold-const.c (fold_binary): New.
30040         (fold): Call fold_binary on binary expressions.
30042 2005-03-05  Richard Sandiford  <rsandifo@redhat.com>
30044         * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
30045         * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
30046         (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
30047         (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
30048         (ASM_SPEC): Pass down -msym32 and -mno-sym32.
30050 2005-03-04  Devang Patel  <dpatel@apple.com>
30052         PR tree-optimization/18815
30053         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
30054         loops with zero exit edges.
30056 2005-03-04  Devang Patel  <dpatel@apple.com>
30058         * doc/invoke.texi: Remove reference to webpage that does not exist.
30060 2005-03-04  John David Anglin  <dave.danglin@nrc-cnrc.gc.ca>
30061             Joseph S. Myers  <joseph@codesourcery.com>
30063         PR c++/19797
30064         * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
30065         (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
30066         * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
30067         * pa.c (get_plabel): Change argument to symbol_ref.  Call
30068         maybe_get_identifier instead of get_identifier.
30069         (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
30070         (struct deferred_plabel): Replace name field with symbol field.
30071         (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
30072         ASM_OUTPUT_EXTERNAL_REAL is defined.
30073         (output_global_address): Use output_addr_const for output of all
30074         symbol_refs.
30075         (output_deferred_plabels): Use symbol_ref instead of name for address
30076         output.
30077         * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
30078         ASM_OUTPUT_SYMBOL_REF): New macros.
30079         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw.  Update
30080         comment.
30081         (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
30082         label.
30084 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
30086         * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
30087         *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
30089 2005-03-04  Jeff Law  <law@redhat.com>
30091         * basic-block.h (rediscover_loops_after_threading): Declare.
30092         * tree-ssa-dom.c: Include cfgloop.h.
30093         (tree_ssa_dominator_optimize): Discover loops and some basic
30094         properties.  Remove forwarder blocks recreated by loop header
30095         canonicalization.  Also mark backedges in the CFG.
30096         * tree-ssa-threadupdate.c: Include cfgloop.h
30097         (rediscover_loops_after_threading): Define.
30098         (struct local_info): New field, JUMP_THREADED.
30099         (prune_undesirable_thread_requests): New function.
30100         (redirect_edges): Clear EDGE_ABNORMAL.  If edges were threaded
30101         then record that fact for the callers of redirct_edges.
30102         (thread_block): If BB has incoming backedges, then call
30103         prune_undesirable_thraed_requests.  Note when we are
30104         going to have to rediscover loop information.  Return a
30105         boolean indicating if any jumps were threaded.
30106         (thread_through_all_blocks): Bubble up boolean indicating
30107         if any jumps were threaded.
30108         * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
30109         (tree-ssa-threadupdate.o): Similarly.
30111 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
30113         * fold-const.c (fold_ternary): Unroll the "for" loop to
30114         extract operands.
30116 2005-03-04  Andrew Haley  <aph@redhat.com>
30118         * unwind-dw2-fde-glibc.c (struct
30119         unw_eh_callback_data.check_cache): New field.
30120         (frame_hdr_cache): New.
30121         (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
30122         Cache frame header info.
30124 2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
30126         * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
30127         (print_c_condition): Declare.
30128         * read-rtl.c (ptr_loc): New structure.
30129         (ptr_locs, ptr_loc_obstack, joined_conditions)
30130         (joined_conditions_obstack): New variables.
30131         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
30132         (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
30133         (join_c_conditions, print_c_condition): New functions.
30134         (apply_macro_to_string): Associate the new string with the same
30135         source location as the old one.
30136         (add_condition_to_string): Use join_c_conditions.
30137         (read_string): Use set_rtx_ptr_loc to record a filename and line
30138         number for the string.
30139         (read_rtx): Initialize the new variables above.
30140         * genattrtab.c (write_test_expr, write_attr_value): Use
30141         print_c_condition.
30142         * genconditions.c (write_header): Don't define MAYBE_EVAL.  Move its
30143         comment above the GCC_VERSION check.
30144         (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
30145         Inline the definition of MAYBE_EVAL.
30146         * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
30147         * genoutput.c (process_template): Likewise.
30148         * genpreds.c (write_predicate_subfunction): Likewise.
30149         (write_predicate_expr): Use print_c_condition.
30150         * genrecog.c (write_cond): Likewise.
30151         * gensupport.c (process_rtx): Use join_c_conditions to join the
30152         conditions of a define_insn_and_split.  Record a source location
30153         for the string after the "&&".
30154         (alter_test_for_insn): Use join_c_conditions.
30156 2005-03-04  Andrew Pinski  <pinskia@physics.uc.edu>
30158         Revert for now:
30159         2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
30160         PR tree-optimization/15784
30161         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
30162         and -1 - A to ~A.
30164 2005-03-04  Ben Elliston  <bje@au.ibm.com>
30166         * gcc.c (option_map): Add --coverage.
30167         (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
30168         (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
30169         * config/darwin.h: Pass -lgcov for `coverage'.
30170         * doc/invoke.texi (Debugging Options): Document --coverage.
30172 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
30174         * gcse.c (bypass_block): Use find_edge wherever possible.
30176 2005-03-03  Daniel Berlin <dberlin@dbrelin.org>
30178         Fix PR debug/20253
30180         * c-opts.c (c_common_parse_file): Call start_source_file
30181         and end_source_file at the approriate times.
30183         * dwarf2out.c (dwarf2out_finish): Don't auto-end
30184         the main file, it will be done for us now.
30186 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
30188         * fold-const.c (fold_ternary): New.
30189         (fold): Call fold_ternary on ternary expressions.  Remove
30190         handling of ternary expressions.
30192 2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
30194         PR tree-optimization/15784
30195         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
30196         and -1 - A to ~A.
30198 2005-03-03  David Edelsohn  <edelsohn@gnu.org>
30200         * config/rs6000/predicates.md (branch_comparison_operator):
30201         Convert from C block to conditional format.
30203 2005-03-03  Jan Hubicka  <jh@suse.cz>
30205         * tree-dfa.c (add_referenced_var): Don't walk initializer of external
30206         and non-constant public variables.
30208 2005-03-03  Kazu Hirata  <kazu@cs.umass.edu>
30210         * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
30211         with LABEL_EXPR.
30213         * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
30214         EDGE_I.
30216         * tree-phinodes.c (remove_phi_node): Clean up by factoring out
30217         calls to release_ssa_name and release_phi_node.
30219         * fold-const.c (fold): Remove handling of unary expressions.
30221         * fold-const.c (fold_unary): Avoid directly using the original
30222         expression t as much as possible.
30224 2005-03-03  Roger Sayle  <roger@eyesopen.com>
30225             Andrew Pinski  <pinskia@physics.uc.edu>
30227         * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
30228         RETURN rtx, and not a LABEL_REF containing a NULL pointer.
30230 2005-03-03  Hans-Peter Nilsson  <hp@axis.com>
30232         Describe special registers SRP and MOF as allocatable registers.
30233         * config/cris/cris.c (cris_md_asm_clobbers): New function.
30234         (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
30235         (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
30236         TARGET_HAS_MUL_INSNS.
30237         (cris_print_operand) <case 'd'>: New case.
30238         <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
30239         * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
30240         define.
30241         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
30242         (REG_ALLOC_ORDER): Update for MOF.
30243         (enum reg_class): New members MOF_REGS, GENERAL_REGS and
30244         SPECIAL_REGS.
30245         (GENERAL_REGS): No longer a define of ALL_REGS.
30246         (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
30247         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
30248         Adjust accordingly.
30249         (CRIS_SPECIAL_REGS_CONTENTS): New macro.
30250         (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
30251         (SECONDARY_RELOAD_CLASS): Define.
30252         (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
30253         (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
30254         (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
30255         (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
30256         (REGISTER_MOVE_COST): Define.
30257         (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
30258         * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
30259         (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
30260         (CRIS_MOF_REGNUM): New define_constants.
30261         ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
30262         special registers.
30263         ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
30264         New patterns.
30265         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
30266         ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
30267         Adjust for MOF being properly described as a register.
30268         (indir_to_reg_split): Name this split.  Conditionalize on the
30269         destination register being a general register.
30270         (movei): Conditionalize on on operands 0 and 1 having the same
30271         register class.
30273 2005-03-03  Alan Modra  <amodra@bigpond.net.au>
30275         PR target/20277
30276         * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
30277         -mcpu to override any other explicitly given flags.
30279 2005-03-02  J"orn Rennecke <joern.rennecke@st.com>
30281         * recog.c (verify_changes, confirm_change_group): New functions,
30282         broken out of apply_change_group.
30283         (apply_change_group): Use them.
30284         * recog.h (verify_change, confirm_change_group): Declare.
30285         * rtl.h (redirect_jump_2): Declare.
30286         * jump.c (redirect_exp, invert_exp): Delete.
30287         (invert_exp_1): Take second parameter.  Return value.  Changed caller.
30288         (redirect_jump_2): New function, broken out of redirect_jump.
30289         (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
30290         (invert_jump): Use invert_jump_1 and redirect_jump_2.
30291         * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
30293 2005-03-02  Geoffrey Keating  <geoffk@apple.com>
30295         * varasm.c (named_section): Use xstrdup rather than doing it by
30296         hand.
30298         * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
30300 2005-03-02  Devang Patel  <dpatel@apple.com>
30302         Undo PR tree-optimization/18815 fix.
30304 2005-03-02  Devang Patel  <dpatel@apple.com>
30306         PR tree-optimization/18815
30307         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
30308         loops with zero exit edges.
30310 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
30312         * cfg.c (connect_src, connect_dest, disconnect_src,
30313         disconnct_dest): New.
30314         (unchecked_make_edge, remove_edge, redirect_edge_succ,
30315         redirect_edge_pred): Use the new functions.
30317         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
30318         free_dominance_info only when needed.
30320 2005-03-02  David Edelsohn  <edelsohn@gnu.org>
30322         PR target/20276
30323         * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
30324         (reg_or_sub_cint64_operand): Same.
30326 2005-03-02  Jeff Law  <law@redhat.com>
30328         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
30329         CFG_ALTERED in the main DOM iteration loop.
30331 2005-03-02  Mark Mitchell  <mark@codesourcery.com>
30333         PR c++/19916
30334         * varasm.c (initializer_constant_valid_p): Allow conversions
30335         between OFFSET_TYPEs.  Tidy.
30337 2005-03-02  Hans-Peter Nilsson  <hp@axis.com>
30339         * config/cris/cris.md ("return"): Remove epilogue delay list
30340         sanity check.
30342 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
30344         * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
30345         for Thumb.
30346         * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
30348 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
30350         * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
30351         loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
30352         config/m68k/m68k.c, config/mips/mips.h,
30353         config/rs6000/rs6000-protos.h, doc/contrib.texi,
30354         doc/include/gcc-common.texi: Update copyright.
30356         PR middle-end/18029 and PR middle-end/18030
30357         * expr.c (optimize_bitfield_assignment_op): Add a special case
30358         to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
30360         * fold-const.c (fold_unary): New.
30361         (fold): Call fold_unary on unary expressions.
30363 2005-03-02  Richard Guenther  <rguenth@gcc.gnu.org>
30365         * cgraph.h (struct cgraph_edge): Add prev_caller and
30366         prev_callee fields.
30367         (cgraph_node_remove_callees): Export.
30368         * cgraph.c (cgraph_create_edge): Initialize prev_caller
30369         and prev_callee.
30370         (cgraph_edge_remove_callee): New function.
30371         (cgraph_edge_remove_caller): Likewise.
30372         (cgraph_remove_edge): Use.
30373         (cgraph_redirect_edge_callee): Likewise.
30374         (cgraph_node_remove_callees): New function.
30375         (cgraph_node_remove_callers): Likewise.
30376         (cgraph_remove_node): Use.
30377         * tree-optimize.c (tree_rest_of_compilation): Use
30378         cgraph_node_remove_callees instead of manual loop.
30379         * cgraphunit.c (cgraph_finalize_function): Likewise.
30380         (cgraph_expand_function): Likewise.
30381         (cgraph_remove_unreachable_nodes): Likewise.
30383 2005-03-02  Joseph S. Myers  <joseph@codesourcery.com>
30385         PR c/8927
30386         * c-tree.h (undeclared_variable, build_external_ref): Add extra
30387         argument.
30388         * c-decl.c (undeclared_variable): Take location as argument.
30389         * c-typeck.c (build_external_ref): Likewise.
30390         * c-parser.c (c_parser_postfix_expression): Pass location of
30391         identifier to build_external_ref.
30393 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
30395         * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
30396         CCEQ mode for branch_positive_comparison_operator test.
30397         * config/rs6000/predicates (branch_comparison_operator): Revert to
30398         define_predicate.
30399         (scc_comparison_operator): Same.
30400         (branch_positive_comparison_operator): Same.
30402 2005-03-01  Hans-Peter Nilsson  <hp@axis.com>
30404         * config/cris/cris.c (cris_eligible_for_epilogue_delay)
30405         (cris_delay_slots_for_epilogue): Remove.
30406         (save_last): Move into cris_target_asm_function_epilogue.
30407         (cris_target_asm_function_epilogue): Remove tests for file being
30408         NULL.
30409         * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
30410         (cris_delay_slots_for_epilogue): Remove prototypes.
30411         * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
30412         (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
30414 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
30416         * config/rs6000/predicates.md (branch_comparison_operator): Change
30417         to define_special_predicate.
30418         (scc_comparison_operator): Same.
30419         (branch_positive_comparison_operator): Same.
30421 2005-03-01  Daniel Berlin <dberlin@dberlin.org>
30423         * Makefile.in (tree-ssa-sink.o): New.
30424         (OBJS-common): Add tree-ssa-sink.o.
30425         * common.opt: Add -ftree-sink
30426         * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
30427         * timevar.def (TV_TREE_SINK): new timevar.
30428         * tree-flow.h (is_hidden_global_store): Prototype.
30429         * tree-optimize.c (init_tree_optimization_passes): Add
30430         pass_sink_code.
30431         * tree-pass.h (pass_sink_code): New.
30432         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
30433         for non-obvious global store store to is_hidden_global_store, and
30434         call that new function.
30435         * tree-ssa-sink.c: New file.
30436         * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
30437         * doc/passes.texi: Document forward store motion.
30438         * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
30439         * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
30440         * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
30441         * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
30443 2005-03-01  Per Bothner  <per@bothner.com>
30445         * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
30446         and we have a non-zero column-number, add it to the message.
30447         Also factor out the diagnostic_kind_text.
30449 2005-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
30451         * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
30452         flow_loop_pre_header_scan, flow_loop_pre_header_find,
30453         flow_loop_scan): Removed.
30454         (flow_loop_dump): Do not dump removed fields.
30455         (flow_loop_free): Do not free removed fields.
30456         (flow_loops_find): Flags argument removed.  Do not call flow_loop_scan.
30457         (loop_exit_edge_p): New function.
30458         * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
30459         num_pre_header_edges, entry_edges, num_entries, exit_edges,
30460         num_exits, exits_doms.
30461         (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
30462         LOOP_EDGES, LOOP_ALL): Removed.
30463         (flow_loop_scan): Declaration removed.
30464         (loop_exit_edge_p, mark_loop_exit_edges): Declare.
30465         * cfgloopmanip.c (create_loop_notes): Do not pass flags to
30466         flow_loops_find.
30467         * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
30468         (if_convert): Call flow_loops_find and flow_loops_free
30469         when calling mark_loop_exit_edges.
30470         * cfgloopanal.c (mark_loop_exit_edges): Moved from
30471         ifcvt.c.  Removed the flow_loops_find, flow_loops_free and
30472         free_dominance_info calls.
30473         * loop-init.c (flow_loops_find): Ditto.
30474         * passes.c (rest_of_handle_branch_prob): Ditto.
30475         * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
30476         * loop-unroll.c (analyze_insns_in_loop): Do not use
30477         EDGE_LOOP_EXIT.
30478         * predict.c (predict_loops): Do not call flow_loop_scan.
30479         Use get_loop_exit_edges.
30480         (tree_estimate_probability): Do not pass flags to flow_loops_find.
30481         * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
30482         Do not use EDGE_LOOP_EXIT.
30483         (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
30484         to bb_with_exit_edge_p.
30485         (if_convertible_loop_p): Do not call flow_loop_scan.  Use
30486         loop->single_exit.  Do not use EDGE_LOOP_EXIT.  Pass loop
30487         to bb_with_exit_edge_p.
30488         (combine_blocks): Pass loop to bb_with_exit_edge_p.  Do not use
30489         EDGE_LOOP_EXIT.
30490         * tree-loop-linear.c (linear_transform_loops): Do not call
30491         flow_loop_scan.  Use loop->single_exit.
30492         * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
30493         (vect_analyze_loop_form): Do not call flow_loop_scan.
30494         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
30495         loop->single_exit.
30496         (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
30497         loop->single_exit.
30498         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
30499         slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
30500         slpeel_tree_duplicate_loop_to_edge_cfg,
30501         slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
30502         Use loop_preheader_edge and loop->single_exit.  Do not call
30503         flow_loop_scan.
30505 2005-03-01  Nick Clifton  <nickc@redhat.com>
30507         * config/arm/arm.c (thumb_find_work_register): Check all of the
30508         argument registers to see if they are free, and a couple of
30509         special cases where the last argument register but can be proved
30510         to be available during the function's prologue.
30511         (print_multi_reg, arm_compute_save_reg0_reg12_mask,
30512         output_return_instruction, emit_multi_reg_push, thumb_pushpop,
30513         thumb_unexpanded_epilogue): Use unsigned long as the type for the
30514         register bit-mask.
30515         (thumb_compute_save_reg_mask): Likewise.  Also use
30516         thumb_find_work_register() to ensure that there is agreement about
30517         which work register is going to be used in the prologue.
30518         (thumb_output_function_prologue): Use unsigned long as the type
30519         for the register bit-mask.  Also delay pushing the link register if
30520         other high registers are going to be pushed.
30521         (thumb_compute_save_reg_mask, emit_multi_reg_push,
30522         print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
30523         redundant prototypes.
30525 2005-02-28  John David Anglin  <dave.anglin#nrc-cnrc.gc.ca>
30527         PR target/19819
30528         * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
30529         and after reload in REG+REG indexed addresses without REG_POINTER
30530         set in the base and not set in the index.
30532 2005-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
30534         * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
30535         Don't undefine here.
30536         (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
30537         (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
30538         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
30539         (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
30540         LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
30541         Delete.
30542         * config.gcc (sh*-*-linux*): Use config/linux.h.
30544 2005-02-28  Dale Johannesen  <dalej@apple.com>
30545             Stan Shebs  <shebs@apple.com>
30547         Rewrite of 64-bit Darwin structure-by-value pass/return.
30548         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
30549         intoffset, use_stack, named.
30550         * config/rs6000/rs6000.c (rs6000_darwin64_function_arg): Remove.
30551         (rs6000_darwin64_record_arg_advance_flush): New.
30552         (rs6000_darwin64_record_arg_advance_recurse): New.
30553         (rs6000_darwin64_record_arg_flush): New.
30554         (rs6000_darwin64_record_arg_recurse): New.
30555         (rs6000_darwin64_record_arg): New.
30556         (rs6000_return_in_memory): Remove AGGREGATE_TYPE_P check.
30557         (function_arg_boundary): Handle 128-bit aligned structs.
30558         (function_arg_advance): Rewrite darwin64 struct handling.
30559         (function_arg): Call rs6000_darwin64_record_arg.
30560         (function_arg_partial_nregs): Handle darwin64 structs.
30561         (rs6000_darwin64_function_value): Remove.
30562         (rs6000_function_value): Call rs6000_darwin64_record_arg.
30564 2005-02-28  Roger Sayle  <roger@eyesopen.com>
30566         PR tree-optimization/20216
30567         * tree-chrec.c (tree_fold_factorial): Delete.
30568         (tree_fold_binomial): Change argument list to take a return type
30569         and change the type of K to unsigned int.  Rewrite to avoid explicit
30570         evaluation of factorials, and (recursively) calling fold to perform
30571         compile-time arithmetic.  Return NULL on (internal) overflow.
30572         (chrec_evaluate): Change type of K to an unsigned int.  Avoid
30573         calling tree_fold_binomial unnecessarily.  Return chrec_dont_know
30574         if any intermediate calculation overflows.
30575         (chrec_apply): Update call to chrec_evaluate.
30577 2005-02-28  James E Wilson  <wilson@specifixinc.com>
30579         * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
30581 2005-02-28  Joseph S. Myers  <joseph@codesourcery.com>
30583         PR c/20245
30584         * c-parser.c (c_parser_compound_statement): Return error_mark_node
30585         instead of NULL_TREE on error.
30587 2005-02-28  David Edelsohn  <edelsohn@gnu.org>
30589         * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
30590         (EASY_VECTOR_15_ADD_SELF): Remove.
30591         (num_insns_constant_wide): Not static.
30592         (validate_condition_mode): Not static.
30593         (toc_relative_expr_p): Not static.
30594         (legitimate_indirect_address_p): Not static.
30595         (macho_lo_sum_memory_operand): Not static.
30596         (invalid_e500_subreg): Not static.
30597         (easy_vector_same): Not static.
30598         (easy_vector_splat_const): Not static.
30599         (RS6000_SYMBOL_REF_TLS_P): Remove.
30600         (any_operand): Delete.
30601         (any_parallel_operand): Delete.
30602         (count_register_operand): Delete.
30603         (altivec_register_operand): Delete.
30604         (xer_operand): Delete.
30605         (s8bit_cint_operand): Delete.
30606         (short_cint_operand): Delete.
30607         (u_short_cint_operand): Delete.
30608         (non_short_cint_operand): Delete.
30609         (exact_log2_cint_operand): Delete.
30610         (gpc_reg_operand): Delete.
30611         (cc_reg_operand): Delete.
30612         (cc_reg_not_cr0_operand): Delete.
30613         (reg_or_short_operand): Delete.
30614         (reg_or_neg_short_operand): Delete.
30615         (reg_or_aligned_short_operand): Delete.
30616         (reg_or_u_short_operand): Delete.
30617         (reg_or_cint_operand): Delete.
30618         (reg_or_arith_cint_operand): Delete.
30619         (reg_or_add_cint64_operand): Delete.
30620         (reg_or_sub_cint64_operand): Delete.
30621         (reg_or_logical_cint_operand): Delete.
30622         (got_operand): Delete.
30623         (got_no_const_operand): Delete.
30624         (easy_fp_constant): Delete.
30625         (easy_vector_constant): Delete.
30626         (easy_vector_constant_add_self): Delete.
30627         (zero_constant): Delete.
30628         (zero_fp_constant): Delete.
30629         (volatile_mem_operand): Delete.
30630         (offsettable_mem_operand): Delete.
30631         (mem_or_easy_const_operand): Delete.
30632         (add_operand): Delete.
30633         (non_add_cint_operand): Delete.
30634         (logical_operand): Delete.
30635         (non_logical_cint_operand): Delete.
30636         (mask_operand): Delete.
30637         (mask_operand_wrap): Delete.
30638         (mask64_operand): Delete.
30639         (mask64_2_operand): Delete.
30640         (and64_operand): Delete.
30641         (and64_2_operand): Delete.
30642         (and_operand): Delete.
30643         (reg_or_mem_operand): Delete.
30644         (lwa_operand): Delete.
30645         (symbol_ref_operand): Delete.
30646         (call_operand): Delete.
30647         (current_file_function_operand): Delete.
30648         (input_operand): Delete.
30649         (rs6000_nonimmediate_operand): Delete.
30650         (rs6000_tls_symbol_ref): Delete.
30651         (save_world_operation): Delete.
30652         (restore_world_operation): Delete.
30653         (load_multiple_operation): Delete.
30654         (store_multiple_operation): Delete.
30655         (vrsave_operation): Delete.
30656         (mfcr_operation): Delete.
30657         (mtcrf_operation): Delete.
30658         (lmw_operation): Delete.
30659         (stmw_operation): Delete.
30660         (branch_comparison_operator): Delete.
30661         (branch_positive_comparison_operator): Delete.
30662         (scc_comparison_operator): Delete.
30663         (trap_comparison_operator): Delete.
30664         (boolean_operator): Delete.
30665         (boolean_or_operator): Delete.
30666         (min_max_operator): Delete.
30667         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
30668         (EASY_VECTOR_15): Moved to here.
30669         (EASY_VECTOR_15_ADD_SELF): Move to here.
30670         (PREDICATE_CODES): Delete.
30671         * config/rs6000/rs6000-protos.h: Delete predicate functions.
30672         Declare functions no longer static.
30673         * config/rs6000/predicates.md: New.
30674         * config/rs6000/rs6000.md: Include predicates.md
30676 2005-02-28  Kazu Hirata  <kazu@cs.umass.edu>
30678         * calls.c (emit_call_1): Don't use  REG_ALWAYS_RETURN.
30679         (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
30680         REG_ALWAYS_RETURN.
30681         * cfgrtl.c (need_fake_edge_p): Likewise.
30682         * combine.c (distribute_notes): Likewise.
30683         * emit-rtl.c (try_split): Likewise.
30684         * recog.c (peephole2_opimize): Likewise.
30685         * reg-notes.def (ALWAYS_RETURN): Remove.
30686         * rtl.h (LCT_ALWAYS_RETURN): Remove.
30687         * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
30688         * tree.h (ECF_ALWAYS_RETURN): Remove.
30690 2005-02-28  Roger Sayle  <roger@eyesopen.com>
30692         PR middle-end/19874
30693         * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
30694         between different machine modes is never a "useless" conversion.
30696 2005-02-28  Geert Bosch  <bosch@gnat.com>
30698         PR ada/15977
30699         * doc/contrib.texi: List contributors for Ada front end
30701 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
30703         * simplify-rtx.c (simplify_unary_operation_1,
30704         simplify_const_unary_operation): New, extracted from...
30705         (simplify_unary_operation): ... this one.
30706         (simplify_binary_operation_1,
30707         simplify_const_binary_operation): New, extracted from...
30708         (simplify_binary_operation): ... this one.
30709         * rtl.h (simplify_const_unary_operation,
30710         simplify_const_binary_operation): Add prototypes.
30712 2005-02-28  Julian Brown  <julian@codesourcery.com>
30714         * config/elfos.h: Revert my patch from 2005-02-25 since it broke
30715         building libjava and caused PR regression/20228.
30717 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
30719         PR bootstrap/17383
30720         * Makefile.in (host_subdir): New.
30721         (build_objdir): New.  Replace ../$(build_subdir) with it throughout.
30722         * configure: Regenerate.
30724 2005-02-27  Zack Weinberg  <zack@codesourcery.com>
30726         * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
30727         * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
30728         installation directory first.
30730 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
30732         PR target/19065.
30733         * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
30734         not including (reg). Do not check for reg being CRIS_PC_REGNUM.
30735         (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
30736         * config/cris/cris.md: Tweak comments referring to Q.
30737         ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
30738         ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
30739         ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
30740         ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
30741         ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
30742         Insert spaces in constraints to align alternatives vertically for
30743         readability.
30744         ("cmphi"): Ditto.  Add separate alternative for operand 0 "r",
30745         operand 1: "M".
30747 2005-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30749         PR rtl-optimization/17728
30750         * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
30751         operand 0 from general_operand to move_dest_operand.
30753 2005-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30755         * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
30756         instead of trying to save and restore TREE_SYMBOL_REFERENCED.
30757         * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
30758         (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
30760 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
30762         * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
30763         * configure: Regenerate.
30764         * libada-mk.in: Remove CC; rename
30765         cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
30767 2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>
30769         PR tree-opt/20188
30770         * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
30771         for the lhs, also walk over the tree.  Likewise for rhs.
30773 2005-02-26  Zdenek Dvorak  <dvorakz@suse.cz>
30775         * tree-ssa-dom.c (simple_iv_increment_p): New function.
30776         (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
30777         Do not propagate value of iv before increment over the increment.
30779 2005-02-25  Joseph S. Myers  <joseph@codesourcery.com>
30781         * c-parser.c: New file.
30782         * c-parse.in: Remove.
30783         * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
30784         Remove.
30785         (c-parser.o): Add dependencies.
30786         (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
30787         maintainer-clean, TAGS): Update.
30788         * c-config-lang.in (gtfiles): Update.
30789         * gengtype-lex.l: Don't handle "@@".
30790         * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
30791         objc_build_synchronized, objc_begin_try_stmt,
30792         objc_begin_catch_clause, objc_finish_catch_clause,
30793         objc_build_finally_clause, objc_finish_try_stmt): New.
30794         * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
30795         type_seen_p.
30796         (c_parse_init): Update comment.
30797         * c-decl.c (c_init_decl_processing): Update comment.
30798         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
30799         declspecs_add_scspec, declspecs_add_attrs): Initialize and update
30800         new c_declspecs members.
30802 2005-02-25  Julian Brown  <julian@codesourcery.com>
30804         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
30805         from being used for symbols with vague linkage when
30806         HAVE_GAS_COMDAT_GROUP is true.
30808 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
30810         * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
30812 2005-02-25  Steve Ellcey  <sje@cup.hp.com>
30814         PR target/19930
30815         * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
30816         (LIBGCC2_HAS_DF_MODE): New.
30817         (LIBGCC2_HAS_XF_MODE): New.
30818         (LIBGCC2_HAS_TF_MODE): New.
30819         * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
30820         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
30821         * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
30822         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
30823         (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
30824         * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
30825         and add _fixtfdi, _fixunstfdi, _floatditf
30826         * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
30827         L_fixunstfdi, L_floatditf.
30828         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
30829         (LIBGCC2_HAS_TF_MODE): Define.
30831 2005-02-25  Diego Novillo  <dnovillo@redhat.com>
30833         PR tree-optimization/20204
30834         * tree-into-ssa.c (insert_phi_nodes_for): Do not use
30835         REWRITE_THIS_STMT markers on PHI nodes.
30836         (rewrite_initialize_block): Likewise.
30838 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
30840         * version.c (version_string): Update to 4.1.
30842 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
30844         * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
30845         Clarify that the alternative way doesn't work in GNU C++.
30847 2005-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
30849         PR tree-optimization/19937
30850         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
30851         to the type of the induction variable.
30853 2005-02-25  Kaz Kojima  <kkojima@gcc.gnu.org>
30855         PR rtl-optimization/20117
30856         * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
30857         the block including noncopyable insn.
30859 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
30861         * cse.c (delete_trivially_dead_insns): Speed up by minimizing
30862         calls to find_reg_note.
30864 2005-02-24  Richard Henderson  <rth@redhat.com>
30866         PR tree-opt/20127
30867         * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
30868         the type.
30870 2005-02-24  Fariborz Jahanian <fjahanian@apple.com>
30872         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
30873         vector types if to use base reg for misaligned non-word ld/std.
30875 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
30877         PR target/14619
30878         * config/cris/cris.c (cris_target_asm_function_prologue): Create
30879         dwarf2 label manually and put it after, not before the prologue.
30881 2005-02-24  David Edelsohn  <edelsohn@gnu.org>
30883         PR target/19019
30884         * reload.c (operands_match_p): Only increment register number for
30885         SCALAR_INT_MODE_P modes in multiple hard registers.
30887         * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
30888         Fix formatting.
30890 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
30892         * ChangeLog.5: Fix log message typo(s).
30893         * ChangeLog.7: Likewise.
30894         * ChangeLog.tree-ssa: Likewise.
30895         * cfgexpand.c: Fix comment typo(s).
30896         * conflict.c: Likewise.
30897         * defaults.h: Likewise.
30898         * dwarf2out.c: Likewise.
30899         * gcse.c: Likewise.
30900         * ggc-page.c: Likewise.
30901         * tree-eh.c: Likewise.
30902         * tree-ssa-dom.c: Likewise.
30904 2005-02-24  Jakub Jelinek  <jakub@redhat.com>
30906         PR target/19019
30907         * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
30908         * config/rs6000/darwin-ldouble.c: Only use the .symver directives
30909         if SHARED is defined.
30911         PR target/20196
30912         * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
30913         allow splitting only if operands 0 and 3 don't overlap.
30915 2005-02-24  Richard Henderson  <rth@redhat.com>
30917         PR middle-end/19953
30918         * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
30919         (fold_builtin_1): Call them.
30920         * fold-const.c (fold_complex_mult_parts): Split out from ...
30921         (fold_complex_mult): ... here.  Fix typo in both imaginary case.
30922         (fold_complex_div_parts, fold_complex_div): New.
30923         (fold): Use them.
30924         * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
30926 2005-02-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30928         * tree-ssa-ccp.c (visit_assignment): Verify that result of
30929         VIEW_CONVERT_EXPR is_gimple_min_invariant.
30931         * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
30932         (print_node): Likewise.
30933         Print TYPE_SIZES_GIMPLIFIED.
30935 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
30937         * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
30938         ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
30939         operands as commutative in constraints.
30941 2005-02-24  Diego Novillo  <dnovillo@redhat.com>
30943         * tree-into-ssa.c: Re-organize internal functions.
30945 2005-02-24  Richard Henderson  <rth@redhat.com>
30947         PR middle-end/18902
30948         * c-opts.c (c_common_post_options): Set flag_complex_method to 2
30949         for c99.
30950         * common.opt (fcx-limited-range): New.
30951         * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
30952         * toplev.c (flag_complex_method): Initialize to 1.
30953         (process_options): Set flag_complex_method to 0 if
30954         flag_cx_limited_range.
30955         * doc/invoke.texi (-fcx-limited-range): New.
30957 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
30959         * cse.c (delete_trivially_dead_insns): Speed up by using
30960         NEXT_INSN and PREV_INSN directly instead of next_real_insn and
30961         prev_real_insn.
30963 2005-02-24  Andrea Tarani  <andrea.tarani@gilbarco.com>
30965         * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
30966         functions when -mid-shared-library is being used.
30968 2005-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
30970         * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
30971         (LINK_LIBGCC_SPECIAL_1): Don't mention it.
30972         * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
30973         * system.h: Poison LINK_LIBGCC_SPECIAL.
30975 2005-02-23  James E Wilson  <wilson@specifixinc.com>
30977         * gengtype.c (note_insn_name): Make 1 element larger.
30979 2005-02-23  Roger Sayle  <roger@eyesopen.com>
30981         PR target/20018
30982         PR rtl-optimization/20097
30983         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
30984         BImode SUBREGs of SImode registers which confuse the ia64 backend.
30986 2005-02-23  David Edelsohn  <edelsohn@gnu.org>
30988         * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
30989         * t-aix52 (SHLIB_INSTALL): Same.
30991 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
30993         * genpreds.c: Update copyright.
30995 2005-02-23  Michael Beach  <michaelb@ieee.org>
30997         PR target/20159
30998         * config/sparc/t-elf (startup files): Assemble with CPP.
31000 2005-02-23  Paolo Bonzini  <bonzini@gnu.org>
31002         * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
31003         (write_predicate_expr): Likewise.
31005 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
31007         PR tree-optimization/20100
31008         PR tree-optimization/20115
31009         * tree-optimize.c (init_tree_optimization_passes): Remove
31010         pass_maybe_create_global_var.
31011         * tree-pass.h (pass_maybe_create_global_var): Remove.
31012         * tree-ssa-alias.c (aliases_computed_p): Declare.
31013         (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
31014         (count_calls_and_maybe_create_global_var): Remove.
31015         (pass_maybe_create_global_var): Remove.
31016         (init_alias_info): Do not declare aliases_computed_p.
31017         (maybe_create_global_var): If the function contains no
31018         call-clobbered variables and a mix of pure/const and regular
31019         function calls, create .GLOBAL_VAR.
31020         Mark all call-clobbered variables for renaming.
31021         (merge_pointed_to_info): Update comment.
31022         (add_pointed_to_var): Likewise.
31023         (is_escape_site): Likewise.
31024         Accept struct alias_info * instead of size_t *.
31025         Update all users.
31026         Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
31027         as necessary.
31028         * tree-ssa-operands.c (get_call_expr_operands): If
31029         ALIASES_COMPUTED_P is false, do not add call-clobbering
31030         operands.
31031         * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
31032         (delete_tree_ssa): Likewise.
31034 2005-02-22  James E Wilson  <wilson@specifixinc.com>
31036         * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
31037         (do_compile): Do call it here.
31039 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
31041         PR rtl-optimization/20017.
31042         * passes.c (rest_of_handle_combine, rest_of_handle_cse,
31043         rest_of_handle_cse2, rest_of_handle_gcse): Call
31044         delete_dead_jumptables immediately before calling cleanup_cfg.
31046 2005-02-22  Devang Patel  <dpatel@apple.com>
31048         PR 19952
31049         * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
31050         all labels
31052 2005-02-22  David Edelsohn  <edelsohn@gnu.org>
31054         * config/rs6000/aix.h (WINT_TYPE): Define.
31056 2005-02-22  Stan Shebs  <shebs@apple.com>
31058         * config/rs6000/rs6000.c (rs6000_override_options): Default to
31059         natural alignment for 64-bit Darwin.
31060         (rs6000_parse_alignment_option): Warn about uses of -malign-power
31061         on 64-bit Darwin.
31062         * doc/invoke.texi: Document this.
31064 2005-02-22  DJ Delorie  <dj@redhat.com>
31066         * c-common.c (c_common_type_for_mode): Pass the mode's precision
31067         to make_[un]signed_type, not the mode itself.
31069 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
31071         * cfg.c (cached_make_edge): Call make_edge if edge cache is
31072         not available.  Use tail calls wherever possible.
31073         (make_edge): Call unchecked_make_edge to create an edge.
31075         * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
31076         (coalesce_ssa_name): Don't check for
31077         SSANORM_USE_COALESCE_LIST.
31078         (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
31080 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
31082         * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
31083         (rewrite_into_ssa): ... here.
31085 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
31087         PR tree-optimization/19786
31088         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
31089         tag to another's may-alias bitmap when adding to the other's list.
31091 2005-02-21  DJ Delorie  <dj@redhat.com>
31093         * tree-ssa-loop-ivopts.c (computation_cost): Start register
31094         numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
31095         registers in unsupported ways.
31096         * expmed.c (init_expmed): Likewise.
31098 2005-02-21  Stan Cox  <scox@redhat.com>
31100         * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
31102 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
31104         * tree-cfg.c (fold_cond_expr_cond): New.
31105         (make_edges): Call fold_cond_expr_cond.
31106         (find_taken_edge): Accept nothing but INTEGER_CST.
31107         (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
31108         and 1.
31109         (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
31111         * flow.c (delete_dead_jumptables): Speed up by scanning insns
31112         that do not belong to any basic block.
31114 2005-02-21  Jeff Law  <law@redhat.com>
31116         * cfganal.c (find_unreachable_blocks): Manually CSE load of
31117         e->dest.
31119 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
31121         * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
31122         (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
31123         Adjust their definitions.
31124         (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
31125         (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
31127         * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
31128         genautomata.c, langhooks.c, langhooks.h, system.h,
31129         config/arm/lib1funcs.asm: Update copyright.
31131 2005-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
31133         * dbxout.c (dbxout_function_end): Emit Lscope label always.
31135 2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>
31137         PR bootstrap/13770
31138         * doc/install.texi: Document --with-gc.
31140 2005-02-21  Paolo Bonzini  <bonzini@gnu.org>
31142         * simplify-rtx.c (simplify_unary_operation): Add a missing
31143         "break" statement.
31145 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
31147         PR tree-optimization/18663
31148         * tree-ssa-dom.c (extract_range_from_cond): Return 0
31149         if the type has variable bounds.
31151 2005-02-20  Kazu Hirata  <kazu@cs.umass.edu>
31153         * gcse.c: Remove an obsolete comment.
31155         * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
31157 2005-02-20  Hans-Peter Nilsson  <hp@axis.com>
31159         * doc/extend.texi (Function Attributes) <Attribute const>: The
31160         attribute "pure" is below this text, not above.
31162 2005-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31164         * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
31165         (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
31166         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
31168 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
31170         PR 18785
31171         * langhooks.h (struct lang_hooks): Add to_target_charset.
31172         * langhooks.c (lhd_to_target_charset): New function.
31173         * langhooks-def.h: Declare lhd_to_target_charset.
31174         (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
31175         (LANG_HOOKS_INITIALIZER): Update.
31176         * c-common.c (c_common_to_target_charset): New function.
31177         * c-common.h: Declare it.
31178         * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
31179         c_common_to_target_charset.
31181         * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
31182         (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
31183         Delete definitions.
31184         * system.h: Poison them.
31185         * doc/tm.texi: Don't discuss them.
31186         * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
31187         * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
31188         (pp_c_char): Do not attempt to generate letter escapes for
31189         newline, tab, etc.
31190         * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
31191         * config/mips/mips.c (mips_output_ascii): Likewise.
31193 2005-02-20  Dorit Naishlos  <dorit@il.ibm.com>
31195         PR tree-optimization/19951
31196         * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
31197         is abnormal.
31199 2005-02-19  Steven Bosscher  <stevenb@suse.de>
31201         PR middle-end/19698
31202         * function.h (struct function): New field `max_loop_depth'.
31203         * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
31204         (flow_loops_find): Reset the max loop depth count before finding loops.
31205         * flow.c (MAX_LIVENESS_ROUNDS): New constant.
31206         (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
31207         (calculate_global_regs_live): Make sure the loop will terminate
31208         when the initial sets are not empty.
31210 2005-02-19  Zack Weinberg  <zack@codesourcery.com>
31212         * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
31213         object inside.
31214         * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
31216 2005-02-19  Richard Sandiford  <rsandifo@redhat.com>
31218         PR other/19525
31219         * doc/invoke.texi: Remove documentation of %M spec.
31220         * gcc.c: Likewise.
31221         (init_spec): Remove %M suffix from -lgcc_s.
31222         (do_spec_1): Remove 'M' case.
31223         * mklibgcc.in: Remove SHLIB_MULTILIB handling.  Expect SHLIB_LINK
31224         to put shared libraries in the multilib directory.  Remove the
31225         shlib_so_soname substitution variable.  Don't add a multilib encoding
31226         to shlib_base_name.  Set shlib_slibdir_qual to the full pathname
31227         reported by -print-multi-os-directory.  Pass @multilib_dir@ to
31228         SHLIB_INSTALL as well as SHLIB_LINK.
31229         * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
31230         (SHLIB_NAME): Delete.
31231         (SHLIB_DIR): New macro.
31232         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
31233         (SHLIB_INSTALL): Adjust accordingly.
31234         * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
31235         * config/t-slibgcc-sld: Likewise.
31236         * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
31237         (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
31238         (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
31239         in $(SHLIB_DIR).
31240         (SHLIBUNWIND_INSTALL): Adjust accordingly.
31241         * config/i386/t-nwld (SHLIB_SONAME): Delete.
31242         (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
31243         Use @shlib_base_name@ instead of @shlib_so_name@.
31244         * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
31245         and @shlib_base_name@.so in @multilib_dir@.
31246         (SHLIB_INSTALL): Adjust accordingly.  Add @shlib_slibdir_qual@
31247         to the install path.
31248         * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
31249         (SHLIB_LINK): Remove previous workaround.
31250         * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
31251         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
31252         (SHLIB_INSTALL): Adjust accordingly.  Add $(SHLIB_SLIBDIR_QUAL) to
31253         the install path.
31254         * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
31255         @multilib_dir@.  Use @multilib_dir@ to check for threading libraries.
31256         (SHLIB_INSTALL): Adjust accordingly.
31257         (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
31258         * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
31259         * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
31260         config/t-slibgcc-elf-ver.
31262 2005-02-19  Zdenek Dvorak  <dvorakz@suse.cz>
31263             Jakub Jelinek  <jakub@redhat.com>
31265         PR tree-optimization/19828
31266         * tree-ssa-loop-im.c: Add a TODO comment.
31267         (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
31268         without side-effects.
31270 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
31272         * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
31273         call fold_convert.
31275 2005-02-18  James E. Wilson  <wilson@specifixinc.com>
31277         * doc/invoke.texi (IA-64 Options): Delete -mb-step.
31278         * config/ia64/ia64.c (last_group, group_idx): Delete variables.
31279         (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
31280         functions.
31281         (ia64_reorg): Delete fixup_errata call.
31282         * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
31283         (TARGET_SWITCHES): Delete -mb-step entry.
31285 2005-02-19  Jakub Jelinek  <jakub@redhat.com>
31287         PR c/20043
31288         * c-typeck.c (composite_type): Handle quals in transparent unions.
31289         (type_lists_compatible_p): Likewise.
31291 2005-02-18  Stan Shebs  <shebs@apple.com>
31293         * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
31294         expressions in the .literal8 section.
31296 2005-02-18  Geoffrey Keating  <geoffk@apple.com>
31298         * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
31300 2005-02-18  Roger Sayle  <roger@eyesopen.com>
31302         * fold-const.c (constant_boolean_node): Always create values of the
31303         specified type, don't bother calling truthvalue_conversion.
31305 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
31307         * except.c (output_function_exception_table): Call
31308         assemble_external_libcall (eh_personality_libfunc).
31310 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
31312         PR target/19886
31313         * config/ia64/ia64.h (struct machine_function): Add state_num.
31314         * config/ia64/ia64.c (process_epilogue,
31315         process_for_unwind_directive): Use new unwind state numbers each
31316         time rather than state 1.
31318 2005-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
31320         PR target/20054
31321         * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
31322         before the "*llgt_didi" pattern.
31324 2005-02-18  Jason Merrill  <jason@redhat.com>
31326         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
31328 2005-02-18  Richard Earnshaw  <rearnsha@arm.com>
31330         * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
31331         (div0): Use it in place of ARM_FUNC_ALIAS.
31332         (lshrdi3, ashrdi3, ashlrdi3): Likewise.
31334 2005-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
31336         PR middle-end/20030
31337         * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
31338         access, the lower bound of the array type if it exists.
31340 2005-02-18  Alexandre Oliva  <aoliva@redhat.com>
31342         PR c++/20008
31343         * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
31344         cases that are out-of-range for the index type.
31346 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
31348         * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
31349         (estimate_case_costs): Don't call convert.
31350         * expmed.c (expand_shift): Likewise.
31351         (make_tree): Call fold_convert instead of convert.
31353 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
31355         PR c++/19813
31356         * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
31357         that ref to be marked MEM_READONLY_P doesn't have base that needs
31358         constructing.
31360 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
31362         * genautomata.c (output_get_cpu_unit_code_func,
31363         output_cpu_unit_reservation_p): Don't generate old-style function
31364         definitions.
31366 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
31368         PR c++/20023
31369         PR tree-optimization/20009
31370         * convert.c (convert_to_integer): Revert 2005-02-16 change.
31372         PR tree-optimization/18947
31373         * cgraphunit.c (cgraph_finalize_function): When redefining an extern
31374         inline, remove all nodes that are inlined into the extern inline
31375         being redefined.
31377 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
31379         * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
31380         loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
31381         tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
31382         config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
31383         Update copyright.
31385 2005-02-17  Roger Sayle  <roger@eyesopen.com>
31387         PR tree-optimization/19917
31388         * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
31389         to be potentially trapping.
31391 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
31393         * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
31395 2005-02-17  Andreas Krebbel  <krebbel1@de.ibm.com>
31397         * builtins.c (expand_builtin_return_addr): Remove tem parameter.
31398         tem becomes a local variable which is set to the value of the
31399         back end defined INITIAL_FRAME_ADDRESS macro.
31400         (expand_builtin_frame_address): Omit the base parameter to
31401         expand_builtin_return_addr.
31402         (expand_builtin_profile_func): Likewise.
31403         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
31404         (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
31405         * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
31407 2005-02-17  Jakub Jelinek  <jakub@redhat.com>
31409         * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
31410         s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
31411         * config/frv/frv.c (frv_function_epilogue): Likewise.
31413 2005-02-17  Daniel Berlin  <dberlin@dberlin.org>
31415         * lambda-code (perfect_nestify): Remove mark/unmark
31416         for rewriting hack.
31417         * tree-loop-linear.c (linear_transform_loops): Add
31418         rewrite_into_ssa call so that ssa is correct for
31419         rewriting into loop closed.
31421 2005-02-17  Nathan Sidwell  <nathan@codesourcery.com>
31423         * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
31424         * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
31425         BITMAP_FREE.
31426         * bt-load.c (btr_def_live_range, combine_btr_defs,
31427         migrate_btr_def, migrate_btr_defs): Likewise.
31428         * cfgcleanup.c (thread_jump): Likewise.
31429         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
31430         * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
31431         df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
31432         df_rd_local_compute, df_reg_info_compute): Likewise.
31433         * dominance.c (init_dom_info, free_dom_info): Likewise.
31434         * flow.c (init_propagate_block_info,
31435         free_propagate_block_info): Likewise.
31436         * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
31437         * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
31438         modify_reg_pav): Likewise.
31439         * loop-invariant.c (find_defs, find_invariant_insn,
31440         find_invariants, free_inv_motion_data): Likewise.
31441         * predict.c (tree_predict_by_opcode,
31442         estimate_bb_frequencies): Likewise.
31443         * stmt.c (expand_case): Likewise.
31444         * tree-cfg.c (tree_duplicate_sese_region): Likewise.
31445         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
31446         * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
31447         * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
31448         get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
31449         rewrite_ssa_into_ssa): Likewise.
31450         * tree-optimize.c (tree_rest_of_compilation): Likewise.
31451         * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
31452         analyze_edges_for_bb, perform_edge_inserts): Likewise.
31453         * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
31454         * tree-sra.c (tree_sra): Likewise.
31455         * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
31456         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
31457         * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
31458         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
31459         * tree-ssa-dse.c (tree_ssa_dse): Likewise.
31460         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
31461         Likewise.
31462         * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
31463         calculate_live_on_entry, calculate_live_on_exit,
31464         build_tree_conflict_graph): Likewise.
31465         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
31466         record_important_candidates, set_use_iv_cost, find_depends,
31467         determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
31468         tree_ssa_iv_optimize_finalize): Likewise.
31469         * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
31470         find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
31471         tree_duplicate_loop_to_header_edge): Likewise.
31472         * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
31473         * tree-ssa.c (verify_flow_insensitive_alias_info,
31474         verify_name_tags, verify_ssa, init_tree_ssa,
31475         delete_tree_ssa): Likewise.
31476         * tree-ssanames.c (marked_ssa_names, init_ssanames,
31477         fini_ssanames): Likewise.
31478         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
31480 2005-02-17  Ralf Corsepius  <ralf.corsepius@rtems.org>
31482         * config/rs6000/t-rtems: Completely reworked.
31484 2005-02-17  Ira Rosen  <irar@il.ibm.com>
31486         * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
31488 2005-02-17  Ira Rosen  <irar@il.ibm.com>
31490         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
31491         POINTER_TYPE_P when checking that type is a pointer.
31492         (vect_get_memtag): Remove.
31493         (vect_address_analysis): Use POINTER_TYPE_P. Call
31494         vect_object_analysis with dummy parameter for memtag.
31495         (vect_object_analysis): Extract memtag (functionality that
31496         used to be in vect_get_memtag and moved here). Fix printings.
31497         (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
31498         with correct parameters. Remove call to vect_get_memtag.
31500 2005-02-17  Dorit Naishlos  <dorit@il.ibm.com>
31502         * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
31503         (tree-vectorizer.o): Added missing dependencies.
31505         * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
31506         decleration.
31507         (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
31508         declaration in tree-vectorizer.c, now has an extern declaration in
31509         tree-vectorizer.h).
31510         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
31511         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
31512         get_vectype_for_scalar_type, vect_is_simple_use,
31513         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
31514         vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
31515         new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
31516         vectorizable_store, vectorizable_operation, vectorizable_assignment,
31517         vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
31518         find_loop_location): Likewise.
31520         * tree-vectorizer.c (langhooks.h): #include removed.
31521         (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
31522         moved to tree-vectorized.h.
31523         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
31524         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
31525         get_vectype_for_scalar_type, vect_is_simple_use,
31526         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
31527         vect_supportable_dr_alignment, new_loop_vec_info,
31528         destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
31529         vect_set_verbosity_level, find_loop_location): Likewise.
31531         (vect_analyze_loop): Function externalized. Declaration moved to
31532         tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
31533         (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
31534         (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
31535         vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
31536         vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
31537         vect_enhance_data_refs_alignment, vect_analyze_operations,
31538         exist_non_indexing_operands_for_use_p, vect_mark_relevant,
31539         vect_stmt_relevant_p, vect_get_loop_niters,
31540         vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
31541         vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
31542         vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
31543         vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
31544         vect_get_memtag): Likewise.
31546         (vectorizable_load): Function externalized. Declaration moved to
31547         tree-vectorized.h. Function definition moved to tree-vect-transform.c.
31548         (vectorizable_store, vectorizable_operation, vectorizable_assignment,
31549         vect_transform_loop): Likewise.
31550         (vect_transform_stmt): Moved to tree-vect-transform.c.
31551         (vect_align_data_ref, vect_create_destination_var,
31552         vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
31553         vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
31554         vect_get_vec_def_for_operand, vect_init_vector,
31555         vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
31556         vect_build_loop_niters, vect_update_ivs_after_vectorizer,
31557         vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
31558         vect_update_inits_of_drs, vect_do_peeling_for_alignment,
31559         vect_do_peeling_for_loop_bound): Likewise.
31561         * tree-vect-analyze.c: New file.
31562         * tree-vect-transform.c: New file.
31564 2005-02-17  Jason Merrill  <jason@redhat.com>
31566         PR mudflap/19319, c++/19317
31567         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
31568         slot explicit.
31570 2005-02-17  Gerald Pfeifer  <gerald@pfeifer.com>
31572         * doc/install.texi (Specific): Update link for Darwin-specific
31573         tool binary site.
31575 2005-02-16  James A. Morrison  <phython@gcc.gnu.org>
31577         * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
31578         constant_boolean_node.
31580 2005-02-16  David Edelsohn  <edelsohn@gnu.org>
31582         PR target/19019
31583         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
31584         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
31586 2005-02-16  Richard Henderson  <rth@redhat.com>
31588         PR 19920
31589         * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
31590         with W_TYPE_SIZE.
31591         (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
31592         replace uses with Wtype_MAXp1_F.
31593         (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
31594         L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
31595         L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
31596         L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
31597         and HAVE_TFMODE as appropriate.
31598         (__fixunssfDI): Provide an implementation that doesn't need DFmode.
31599         (__floatdisf): Likewise.
31600         * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
31601         (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
31602         (Wtype_MAXp1_F): New.
31603         (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
31604         __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
31606 2005-02-16  Richard Earnshaw  <rearnsha@arm.com>
31608         * PR target/19162
31609         * arm.c (arm_apply_result_size): New function.
31610         * arm.h (APPLY_RESULT_SIZE): Define.
31611         * arm-protos.h (arm_apply_result_size): Add prototype.
31612         * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
31613         (movxf): New expand.
31614         (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
31615         (call_value_symbol): Remove predicate for operand 0.
31616         (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
31617         (untyped_call): Rework to correclty return values for any type.
31618         (untyped_return): New expand.
31619         * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
31621 2005-02-16  Stan Shebs  <shebs@apple.com>
31623         * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
31624         * config/rs6000/t-darwin8: New, for 64-bit multilib.
31626 2005-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
31628         * doc/install.texi (sparc-sun-solaris2*): Document required GMP
31629         configure settings on Solaris 7 and later.
31631 2005-02-16  Diego Novillo  <dnovillo@redhat.com>
31633         PR tree-optimization/19865
31634         * tree-optimize.c (init_tree_optimization_passes): Run
31635         pass_may_alias after pass_sra.
31637 2005-02-16  Richard Henderson  <rth@redhat.com>
31638             Stuart Hastings  <stuart@apple.com>
31640         PR debug/19521
31641         * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
31642         Do nothing if debug info suppressed for this function.
31643         (dbxout_begin_function): Early exit if debug info suppressed for
31644         this function.
31646 2005-02-16  Kazu Hirata  <kazu@cs.umass.edu>
31648         PR target/20007
31649         * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
31650         find_basic_blocks.
31651         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
31653         PR tree-optimization/19967
31654         * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
31655         expand_builtin_strchr, expand_builtin_strrchr): Take a new
31656         argument TYPE.  Adjust calls to fold_builtin_XXX.
31657         (expand_builtin, fold_builtin_1): Adjust calls to
31658         expand_builtin_XXX.
31659         (fold_builtin_strchr, fold_builtin_strpbrk,
31660         fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
31661         result to a requested type TYPE.
31663 2005-02-16  Jakub Jelinek  <jakub@redhat.com>
31665         PR middle-end/19857
31666         * fold-const.c (fold): Don't optimize (T)(x & cst) to
31667         (T)x & (T)cst if (T)cst overflows.
31668         * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
31669         TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
31671 2005-02-15  Jeff Law  <law@redhat.com>
31673         * gcse.c (blocks_with_calls): New bitmap.
31674         (alloc_gcse_mem): Allocate it.
31675         (free_gcse_mem): Free it.
31676         (clear_modifY_mem_tables): Clear it.
31677         (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
31678         when we encounter CALL_INSNs.
31679         (compute_transp, case MEM): Handle blocks with calls separate
31680         from blocks without calls.  Use bitmap iterators rather than
31681         FOR_EACH_BB.
31683 2005-02-15  Peter O'Gorman  <peter@pogma.com>
31685         PR bootstrap/18810
31686         * mklibgcc.in (vis_hide): Use a temporary object file, not
31687         -o /dev/null.
31689 2005-02-15  Andy Hutchinson  <HutchinsonAndy@netscape.net>
31691         PR target/19924
31692         * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
31693         access optimization.
31695 2005-02-15  David Edelsohn  <edelsohn@gnu.org>
31696             Alan Modra  <amodra@bigpond.net.au>
31698         PR target/19019
31699         * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
31700         (_xlqsub): Rename to __gcc_qsub.
31701         (_xlqmul): Rename to __gcc_qmul.
31702         (_xlqdiv): Rename to __gcc_qdiv.
31703         Provide versioned symbol aliases with old names.
31704         * config/rs6000/libgcc-ppc64.ver: Rename symbols.
31705         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
31706         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
31707         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
31708         * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
31710 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
31712         * fold-const.c (fold): Fold -(~A) to A + 1.  Fold ~(-A) to A - 1.
31713         Fold ~(A - 1) and ~(A + -1) to -A.
31715 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
31717         PR pch/14940
31718         PR target/19300
31719         * config/host-linux.c (linux_gt_pch_use_address): Copy from
31720         config/pa/pa-host.c:pa_gt_pch_use_address.
31722 2005-02-15  Daniel Berlin  <dberlin@dberlin.org>
31724         * tree-vn.c (get_value_handle): Make sure that given an
31725         is_gimple_min_invariant expression, we always return it.
31727 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
31729         * passes.c (rest_of_handle_gcse): Fix a comment.
31731 2005-02-15  Jeff Law  <law@redhat.com>
31733         * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
31734         bitmap.
31735         (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
31736         (canon_list_insert, record_last_mem_set_info): Similarly.
31737         (clear_modify_mem_tables): Similarly.
31739 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
31741         * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
31742         tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
31743         config/mips/mips.md, config/rs6000/aix.h,
31744         config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
31746 2005-02-15  Richard Henderson  <rth@redhat.com>
31748         * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
31749         call to be best_edge.
31751 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
31753         * basic-block.h: Adjust the prototype for find_basic_blocks.
31754         * cfgbuild.c (find_basic_blocks): Remove unused arguments.
31755         * passes.c (rest_of_handle_loop_optimize): Adjust the call to
31756         find_basic_blocks.
31758         * flow.c (recompute_reg_usage): Remove all arguments.
31759         * passes.c (rest_of_compilation): Adjust the call to
31760         recompute_reg_usage.
31761         * rtl.h: Adjust the prototype for recompute_reg_usage.
31763 2005-02-14  Daniel Berlin  <dberlin@dberlin.org>
31765         * tree-dump.c (dump_files): Update to reflect new member
31766         of dump_file_info.
31767         (dump_register): Add new argument.
31768         Set glob name.
31769         (dump_switch_p_1): Check against glob name if doglob was passed.
31770         (dump_switch_p): Check against regular first, then glob if
31771         we didn't have any hits on the dump name.
31772         * tree-optimize.c (register_one_dump_file):
31773         Pass in glob name as well.
31774         * tree-pass.h (struct dump_file_info): Add glob
31775         member.
31777 2005-02-14  Joseph S. Myers  <joseph@codesourcery.com>
31779         PR preprocessor/16323
31780         * doc/invoke.texi: Document that -Wendif-labels is on by default.
31782 2005-02-14  David Edelsohn  <edelsohn@gnu.org>
31784         PR target/19019
31785         * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
31786         (trunctfdf2_internal1): New.
31787         (trunctfdf2_internal2): Renamed from trunctfdf2.
31789 2005-02-14  Diego Novillo  <dnovillo@redhat.com>
31791         PR tree-optimization/19853
31792         * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
31794 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
31796         * passes.c (rest_of_handle_loop_optimize): Remove calls to
31797         delete_dead_jumptables and cleanup_cfg.
31799 2005-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
31801         * reload.c (find_reloads): Swap address_reloaded flags when
31802         swapping commutative operands.
31804 2005-02-14  Sebastian Pop  <pop@cri.ensmp.fr>
31806         * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
31807         Use standard_iv_increment_position for computing the bsi position
31808         for create_iv.
31809         * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
31810         the bsi position.
31812 2005-02-13  Zdenek Dvorak  <dvorakz@suse.cz>
31814         PR target/17428
31815         * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
31816         life range of hard registers.
31817         * value-prof.c (insn_prefetch_values_to_profile): Only
31818         scan normal insns.
31820         * value-prof.c (rtl_find_values_to_profile): Do not look for values to
31821         profile in libcalls.
31823 2005-02-13  Nathan Sidwell  <nathan@codesourcery.com>
31825         * bitmap.h (bitmap_and_compl_into): Return bool.
31826         * bitmap.c (bitmap_and_compl_into): Return changed flag.
31828 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
31830         PR tree-optimization/19944
31831         * fold-const.c (fold): Re-add ABS_EXPR folding.
31833 2005-02-13  David Edelsohn  <edelsohn@gnu.org>
31835         PR target/19019
31836         * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
31837         {TARGET,MASK}_XL_COMPAT.
31838         (SUBTARGET_SWITCHES): Rename xl-call to xl-compat.  Use
31839         MASK_XL_COMPAT.
31840         * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
31841         * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
31842         TARGET_XL_COMPAT.
31843         (rs6000_arg_partial_bytes): Same.
31844         (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
31845         and XL compatibility enabled.
31846         * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
31847         * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
31848         test to final condition.
31849         (cmptf_internal2): New.
31850         * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
31851         xl-compat.  Add TFmode information to description.
31853 2005-02-13  Kazu Hirata  <kazu@cs.umass.edu>
31855         * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
31857 2005-02-13  Jason Merrill  <jason@redhat.com>
31859         PR c++/16405
31860         * fold-const.c (fold_indirect_ref_1): Split out from...
31861         (build_fold_indirect_ref): Here.
31862         (fold_indirect_ref): New fn.
31863         * tree.h: Declare it.
31864         * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
31865         (gimplify_modify_expr_rhs): Likewise.
31866         (gimplify_expr): Likewise.
31868 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
31870         PR tree-optimization/14303
31871         PR tree-optimization/15784
31872         * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
31873         Fold ABS_EXPR<x> < 0 to false.  Fold ABS_EXPR<x> == 0 to x == 0 and
31874         ABS_EXPR<x> != 0 to x != 0.
31876 2005-02-12  Kazu Hirata  <kazu@cs.umass.edu>
31878         * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
31879         simplify-rtx.c, tree-ssa-live.h: Fix comment typos.  Follow
31880         spelling conventions.
31882         * passes.c (rest_of_handle_gcse): Don't run cse_main and
31883         delete_trivially_dead_insns too many times.
31885         * passes.c (rest_of_handle_gcse): Remove dead assignments to
31886         tem and tem2.
31888 2005-02-12  Ira Rosen  <irar@il.ibm.com>
31890         * tree-vectorizer.c (vect_get_base_and_offset): Remove.
31891         (vect_is_simple_iv_evolution): Remove redundant parameter
31892         and step check.
31893         (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
31894         without last parameter.
31895         (vect_analyze_pointer_ref_access): Get access_fn as parameter.
31896         Return pointer step. Call vect_is_simple_iv_evolution without
31897         last parameter. Check only that the step is multiple of size
31898         type. Remove stmt_vinfo updates.
31899         (vect_get_memtag_and_dr): Remove.
31900         (vect_get_memtag): New function.
31901         (vect_address_analysis): New function.
31902         (vect_object_analysis): New function.
31903         (vect_analyze_data_refs): Call vect_object_analysis and
31904         vect_get_memtag. Update stmt_vinfo fields.
31906 2005-02-12  Ira Rosen  <irar@il.ibm.com>
31908         * tree-data-ref.c (array_base_name_differ_p): Check that the bases
31909         exist and are objects. Remove checks for pointer.
31910         * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
31911         STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
31912         (vect_create_data_ref_ptr): Likewise.
31913         (vect_base_addr_differ_p): New function.
31914         (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
31915         (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
31916         Don't set the DR_BASE_NAME field of data-ref.
31917         (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
31919 2005-02-12  Uros Bizjak  <uros@kss-loka.si>
31921         * optabs.h (enum optab_index): Add new OTI_ldexp.
31922         (ldexp_optab): Define corresponding macro.
31923         * optabs.c (init_optabs): Initialize ldexp_optab.
31924         * genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
31925         patterns.
31926         * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
31927         using ldexp_optab.
31928         (expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
31929         expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
31931         * config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
31932         to implement ldexpf, ldexp and ldexpl built-ins as inline x87
31933         intrinsics.
31935 2005-02-12  Ira Rosen  <irar@il.ibm.com>
31937         * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
31938         to base_address.
31939         * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
31940         stmt_vec_info.
31941         (vect_get_base_and_offset): Always return an address.
31942         (vect_create_addr_base_for_vector_ref): Remove treatment for
31943         different data reference types.
31944         (vect_compute_data_ref_alignment): Rename base to base_address in
31945         stmt_vec_info. Get the object in order to force its alignment.
31946         (vect_get_memtag_and_dr): Rename base to base_address in
31947         stmt_vec_info. Extract the object for memtag analysis.
31949 2005-02-12  Hans-Peter Nilsson  <hp@axis.com>
31951         PR regression/19898.
31952         * config/cris/cris.c (cris_notice_update_cc): When testing if insn
31953         changes cc_status, use apply modified_in_p to part of cc_status
31954         and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
31955         body.
31957 2005-02-11  Richard Henderson  <rth@redhat.com>
31959         * tree-complex.c (expand_complex_libcall): New.
31960         (expand_complex_multiplication): Use it for c99 compliance.
31961         (expand_complex_division): Likewise.
31962         * fold-const.c (fold_complex_add, fold_complex_mult): New.
31963         (fold): Call them.
31964         * builtins.c (built_in_names): Remove const.
31965         * tree.c (build_common_builtin_nodes): Build complex arithmetic
31966         builtins.
31967         * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
31968         (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
31969         (built_in_names): Remove const.
31970         * c-common.c (c_common_type_for_mode): Handle complex modes.
31971         * flags.h, toplev.c (flag_complex_method): Rename from
31972         flag_complex_divide_method.
31973         * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
31974         __mulsc3, __muldc3, __mulxc3, __multc3): New.
31975         * libgcc2.h: Declare them.
31976         * libgcc-std.ver: Export them.
31977         * mklibgcc.in (lib2funcs): Build them.
31979 2005-02-11  Steven Bosscher  <stevenb@suse.de>
31981         PR tree-optimization/19876
31982         Partially revert my change from 2005-01-14
31983         * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
31984         (compute_antic): ...and remove the loop here.
31986 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
31988         PR middle-end/19858
31989         * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
31990         is number of inner's bits, avoid creating a BIT_FIELD_REF.
31992         * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
31993         crtend.o if -pie.  Use %{x:a;:b} spec syntax.
31995 2005-02-11  Daniel Jacobowitz  <dan@codesourcery.com>
31997         * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
31998         offsets for the big-endian 32-bit case.
32000 2005-02-11  Joseph S. Myers  <joseph@codesourcery.com>
32002         * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
32004 2005-02-11  Dale Johannesen  <dalej@apple.com>
32006         * cselib.c (cselib_process_insn): Clear out regs where
32007         HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
32008         * reload.c (find_equiv_reg): Ditto.
32010 2005-02-11  Ian Lance Taylor  <ian@airs.com>
32012         * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
32013         with no elements.
32015         * tree.c (build_function_type_list): Work correctly if there are
32016         no arguments.
32018 2005-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
32020         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
32021         "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
32022         ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
32023         TARGET_ZARCH instead of TARGET_64BIT.
32025 2005-02-11  Ralf Corsepius  <ralf.corsepius@rtems.org>
32027         * config/rs6000/t-rtems:
32028         (MULTILIB_OPTIONS): Remove mcpu=602.
32029         (MUTLILIB_DIRNAMES): Remove m602.
32030         (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
32031         Let mcpu=602 match mcpu=603.
32032         (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
32034 2005-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32036         * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
32037         signal trampolines.
32039 2005-02-10  David Daney  <ddaney@avtrex.com>
32041         * config/alpha/linux-unwind.h: Add exception clause to copyright.
32042         * config/i386/linux-unwind.h: Likewise.
32043         * config/ia64/linux-unwind.h: Likewise.
32044         * config/mips/linux-unwind.h: Likewise.
32045         * config/pa/linux-unwind.h: Likewise.
32046         * config/rs6000/linux-unwind.h: Likewise.
32047         * config/s390/linux-unwind.h: Likewise.
32048         * config/sh/linux-unwind.h: Likewise.
32049         * config/sparc/linux-unwind.h: Likewise.
32051 2005-02-10  Steven Bosscher  <stevenb@suse.de>
32053         PR tree-optimization/17549
32054         * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
32055         TER to replace a DEF with its expression if the DEF and the
32056         rhs of the expression we replace into have the same root
32057         variable.
32059 2005-02-10  Richard Sandiford  <rsandifo@redhat.com>
32061         * config/mips/mips.md: Fix the placement of the match_scratch in the
32062         lea64 peephole2.
32064 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
32066         * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
32067         Fix comment typos.
32069 2005-02-10  Zdenek Dvorak  <dvorakz@suse.cz>
32071         * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
32072         (strip_offset): Handle addresses.
32073         (add_address_candidates): Use strip_offset.
32074         (difference_cost): Reflect strip_offset change.
32075         (force_var_cost, difference_cost): Strip nops.
32077 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
32079         * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
32081         * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
32082         tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
32083         config/cris/cris-protos.h, config/cris/cris.c: Update
32084         copyright.
32086 2005-02-10  Jeff Law  <law@redhat.com>
32088         * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
32089         (lookup_avail_expr): Similarly.
32091 2005-02-10  Richard Guenther  <rguenth@gcc.gnu.org>
32093         * builtins.c (fold_builtin_powi): New function.
32094         (fold_builtin_1): Call it.
32096 2005-02-10  Steven Bosscher  <stevenb@suse.de>
32098         PR documentation/19309
32099         * doc/cpp.texi: The __GNUC__ and related predefined macros
32100         are also defined for the "standalone" cpp.
32101         Some non-GCC compilers may also define __GNUC__.
32103 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
32105         PR c/19342
32106         * c-typeck.c (common_type): New routine.  Old common_type renamed
32107         to...
32108         (c_common_type): ...this.
32109         (build_conditional_expr, build_binary_op): Use c_common_type instead
32110         of common_type.
32112 2005-02-10  Steven Bosscher  <stevenb@suse.de>
32114         * doc/md.texi: Replace @samp{length} with @code{length}.
32116 2005-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
32118         PR tree-optimization/18687
32119         * tree-flow.h (find_loop_niter): Declare.
32120         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
32121         Try using scev even for loops with more than one exit.
32122         * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
32123         (struct ivopts_data): Added niters field.
32124         (struct nfe_cache_elt): New.
32125         (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
32126         functions.
32127         (tree_ssa_iv_optimize_init): Initialize niters cache.
32128         (determine_number_of_iterations): Removed.
32129         (find_induction_variables): Do not call determine_number_of_iterations.
32130         Access niters for single exit through niter_for_single_dom_exit.
32131         (add_iv_outer_candidates): Access niters for single exit through
32132         niter_for_single_dom_exit.
32133         (may_eliminate_iv): Take data argument.  Use niter_for_exit.  Do not use
32134         number_of_iterations_cond.
32135         (iv_period): New function.
32136         (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
32137         (may_replace_final_value): Take data argument.  Use
32138         niter_for_single_dom_exit.
32139         (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
32140         (rewrite_use_compare): Pass data to may_eliminate_iv.
32141         (rewrite_use_outer): Pass data to may_replace_final_value.
32142         (free_loop_data): Clean up the niters cache.
32143         (tree_ssa_iv_optimize_finalize): Free the niters cache.
32144         (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
32145         * tree-ssa-loop-niter.c (find_loop_niter): New function.
32146         (find_loop_niter_by_eval): Use tree_int_cst_lt.
32147         (num_ending_zeros): Moved to tree.c.
32148         * tree.h (num_ending_zeros): Declare.
32149         * tree.c (num_ending_zeros): Moved from tree.c.
32151 2005-02-09  Richard Henderson  <rth@redhat.com>
32153         * builtins.c (DEF_BUILTIN): Add COND argument.
32154         * tree.h (DEF_BUILTIN): Likewise.
32155         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
32156         DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
32157         match.
32158         (DEF_BUILTIN_STUB): New.
32159         (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
32160         BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
32161         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
32162         * c-common.c (DEF_BUILTIN): Add COND argument.
32163         * tree.c (local_define_builtin): New.
32164         (build_common_builtin_nodes): New.
32166 2005-02-09  Roger Sayle  <roger@eyesopen.com>
32168         * fold-const.c (fold_strip_sign_ops): New function to simplify a
32169         floating point expression ignoring the sign of the result.
32170         (fold) <ABS_EXPR>: Use it to simplify fabs(x).
32171         (fold) <MULT_EXPR>: Use it to simplify x*x.
32172         * tree.h (fold_strip_sign_ops): Prototype here.
32173         * builtins.c (fold_builtin_copysign): Take an additional FNDECL
32174         argument.  Use fold_strip_sign_ops to simplify the first argument.
32175         (fold_builtin_pow): Use fold_strip_sign_ops to simplify the
32176         first argument when the second argument is an even integer
32177         constant, but only with -funsafe_math_optimizations.
32178         (fold_builtin_1): Update call to fold_builtin_copysign.
32180 2005-02-09  Ian Lance Taylor  <ian@airs.com>
32182         PR middle-end/19583
32183         * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
32184         just check whether EH_FILTER_FAILURE falls through.
32186 2005-02-09  Andreas Krebbel  <krebbel1@de.ibm.com>
32188         * haifa-sched.c (schedule_block): Make queued sched group
32189         insns return to ready list in the next turn.
32191 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
32193         PR middle-end/19402
32194         * builtins.def: New __builtin_powi[lf].
32195         * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
32196         (expand_builtin_powi): New function.
32197         (expand_builtin): Dispatch to expand_builtin_powi.
32198         * libgcc2.h: Add prototypes for __builtin_powi[lf].
32199         * libgcc2.c: Add __builtin_powi[lf] implementation.
32200         * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
32201         * optabs.h: Add powi_optab.
32202         * optabs.c (init_optabs): Initialize powi_optab.
32203         * doc/extend.texi: Document __builtin_powi[lf].
32205 2005-02-09  Dorit Naishlos  <dorit@il.ibm.com>
32207         * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file
32208         exists.
32210 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
32212         PR middle-end/19854
32213         * fold-const.c (try_move_mult_to_index): Remove redundant
32214         type argument.  Create ADDR_EXPR with correct type.
32215         (fold): Update callers of try_move_mult_to_index.  Convert
32216         result to the appropriate type.
32218 2005-02-09  Roger Sayle  <roger@eyesopen.com>
32220         PR target/19597
32221         * config/avr/avr.c (default_rtx_costs): Delete.
32222         (avr_operand_rtx_cost): New function.
32223         (avr_rtx_costs): Completely rewrite.
32225 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
32227         PR target/19806
32228         * config/cris/cris.c (in_code): New variable.
32229         (cris_output_addr_const): Now a static function, a wrapper for
32230         output_addr_const.
32231         (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
32232         case from old cris_output_addr_const.
32233         (cris_asm_output_label_ref): Similar for LABEL_REF.
32234         (cris_output_addr_const_extra): Similar for UNSPEC.
32235         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
32236         (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
32237         * config/cris/cris-protos.h (cris_output_addr_const): Remove
32238         declaration.
32239         (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
32240         (cris_asm_output_label_ref): Declare.
32242 2005-02-08  Paolo Bonzini  <bonzini@gnu.org>
32244         PR preprocessor/19801
32245         * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
32246         filenames that changed when libcpp was moved to the toplevel.
32248 2005-02-07  Roger Sayle  <roger@eyesopen.com>
32250         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
32251         zero extensions of BImode operands.  Call lowpart_subreg instead
32252         of gen_lowpart_common and gen_lowpart_SUBREG.
32254 2005-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
32256         PR ada/19489
32257         * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
32258         * configure.ac: Set cc_for_cross_gnattools.
32259         * configure: Regenerate.
32261 2005-02-08  Alan Modra  <amodra@bigpond.net.au>
32263         PR target/19803
32264         * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
32266 2005-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
32268         PR debug/19327
32269         * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
32270         of nested functions.
32272 2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>
32274         * doc/extend.texi: Document deprecated extensions allowing
32275         static floating-point members to have initializers and allowing
32276         floating-point literals in integral constant expressions.
32278 2005-02-07  Kazu Hirata  <kazu@cs.umass.edu>
32280         * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
32281         config/darwin7.h, config/mips/mips.c,
32282         config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
32283         Update copyright.
32285         * cse.c: Update comments.
32287 2005-02-07  Richard Guenther  <rguenth@gcc.gnu.org>
32289         PR middle-end/19775
32290         * builtins.c (fold_builtin_sqrt): Transform
32291         sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
32292         pow(x,y*0.5).
32294 2005-02-07  Leehod Baruch  <leehod@il.ibm.com>
32295             Dorit Naishlos  <dorit@il.ibm.com>
32297         * doc/invoke.texi (ftree-vectorizer-verbose): New.
32298         * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
32299         * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
32300         was added.
32301         * tree.h (vect_set_verbosity_level): New extern function declaration
32302         added.
32303         * tree-vectorizer.h (verbosity_levels): New enum type.
32304         * tree-vectorizer.c (vect_debug_stats): Function removed.
32305         (vect_debug_details): Likewise.
32306         (vect_verbosity_level): Global variable was defined and initialized.
32307         (vect_dump): Global variable definition.
32308         (vect_print_dump_info): New function.
32309         (vect_set_dump_settings): New function.
32310         (vect_set_verbosity_level): New function.
32311         (vectorize_loops): Add call to vect_set_dump_settings.
32313         (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
32314         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
32315         (slpeel_tree_peel_loop_to_edge): Likewise.
32317         (vect_analyze_offset_expr): Call to vect_print_dump_info with
32318         appropriate verbosity level instead of call to vect_debug_details
32319         or vect_debug_stats.
32320         (vect_get_base_and_offset):
32321         (vect_create_addr_base_for_vector_ref):
32322         (get_vectype_for_scalar_type):
32323         (vect_create_data_ref_ptr):
32324         (vect_init_vector):
32325         (vect_get_vec_def_for_operand):
32326         (vect_finish_stmt_generation):
32327         (vectorizable_assignment):
32328         (vectorizable_operation):
32329         (vectorizable_store):
32330         (vectorizable_load):
32331         (vect_transform_stmt):
32332         (vect_update_ivs_after_vectorizer):
32333         (vect_do_peeling_for_loop_bound):
32334         (vect_update_inits_of_drs):
32335         (vect_do_peeling_for_alignment):
32336         (vect_transform_loop):
32337         (vect_is_simple_use):
32338         (vect_analyze_operations):
32339         (vect_is_simple_iv_evolution):
32340         (vect_analyze_scalar_cycles):
32341         (vect_analyze_data_ref_dependence):
32342         (vect_analyze_data_ref_dependences):
32343         (vect_compute_data_ref_alignment):
32344         (vect_enhance_data_refs_alignment):
32345         (vect_analyze_data_refs_alignment):
32346         (vect_analyze_data_ref_access):
32347         (vect_analyze_data_ref_accesses):
32348         (vect_analyze_pointer_ref_access):
32349         (vect_get_memtag_and_dr):
32350         (vect_analyze_data_refs):
32351         (vect_mark_relevant):
32352         (vect_stmt_relevant_p):
32353         (vect_mark_stmts_to_be_vectorized):
32354         (vect_can_advance_ivs_p):
32355         (vect_get_loop_niters):
32356         (vect_analyze_loop_form):
32357         (vect_analyze_loop):
32358         (vectorize_loops): Likewise.
32360         (vect_do_peeling_for_loop_bound): Dump format slightly changed.
32361         (vect_update_inits_of_drs):
32362         (vect_do_peeling_for_alignment):
32363         (vect_transform_loop):
32364         (vect_analyze_operations):
32365         (vect_analyze_scalar_cycles):
32366         (vect_analyze_data_ref_dependences):
32367         (vect_analyze_data_refs_alignment):
32368         (vect_analyze_data_ref_accesses):
32369         (vect_analyze_data_refs):
32370         (vect_mark_stmts_to_be_vectorized):
32371         (vect_get_loop_niters):
32372         (vect_analyze_loop_form):
32373         (vect_analyze_loop): Likewise.
32374         (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
32376 2005-02-07  Richard Sandiford  <rsandifo@redhat.com>
32378         PR bootstrap/19796
32379         Revert:
32380         2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
32381         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
32382         either -ffast-math or -funsafe-math-optimizations is in use.
32384         2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
32385         * config/mips/irix-csr.c: New file.
32386         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
32387         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
32388         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
32389         executables.
32391 2005-02-07  Alexandre Oliva  <aoliva@redhat.com>
32393         * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
32394         redundant, incorrect definitions.
32396         * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
32397         expand.
32398         ("*tls_indirect_call"): New, reference hard regs directly.
32399         * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
32401 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
32403         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC):
32404         Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
32406 2005-02-06  Roger Sayle  <roger@eyesopen.com>
32408         PR rtl-optimization/19800
32409         * simplify_rtx.c (simplify_relational_operation_1): Explicitly
32410         call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
32411         gen_lowpart.
32413 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
32415         * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
32417 2005-02-07  Joseph S. Myers  <joseph@codesourcery.com>
32419         PR other/17135
32420         * doc/invoke.texi: Correct documentation of -freorder-functions.
32422 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
32424         PR other/14402
32425         * doc/invoke.texi: Don't mention gccbug.
32427 2005-02-06  Roger Sayle  <roger@eyesopen.com>
32428             Andrew Pinski  <pinskia@physics.uc.edu>
32429             Paolo Bonzini  <paolo.bonzini@lu.unisi.ch>
32431         * simplify-rtx.c (simplify_relational_operation_1): Simplify
32432         (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
32433         into just (zero_extract:SI FOO (const_int 1) BAR).
32435 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
32437         * doc/cpp.texi: Include gcc-common.texi.  Don't define gcctabopt
32438         macro locally.  Don't give last revision date.  Use GCC version
32439         number from gcc-common.texi.
32440         * doc/cppinternals.texi: Include gcc-common.texi.  Don't give last
32441         revision date.  Use GCC version number from gcc-common.texi.
32442         Describe being a library as current state rather than as 3.x
32443         history.
32444         * doc/gcc.texi: Remove last update date.
32445         * doc/gccint.texi: Likewise.  Update copyright dates.
32446         * doc/install.texi: Update copyright dates.
32448 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
32450         PR other/7549
32451         * doc/invoke.texi: Mention for each option included in -Wall that
32452         it is included in -Wall.
32453         * doc/gcc.texi: Update copyright and last modification date.
32455 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
32457         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
32458         unnecessary cast to original induction variable increments.
32460 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
32462         PR tree-optimization/18219
32463         * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
32464         in distributed form.
32466 2005-02-06  Richard Sandiford  <rsandifo@redhat.com>
32468         * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
32469         Set bitpos and offset later in the function.  Do nothing if the
32470         target is a register and if the bitfield lies completely outside
32471         that register.
32472         (extract_bit_field): Make the same SUBREG, bitpos and offset changes
32473         here.  Return an uninitialised register if the source value is stored
32474         in a register and the bitfield lies completely outside that register.
32476 2005-02-06  Steven Bosscher  <stevenb@suse.de>
32478         * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
32479         not SET_DEST.
32481 2005-02-06  Marcin Dalecki  <martin@dalecki.de>
32483         * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
32485 2005-02-06  Geoffrey Keating  <geoffk@apple.com>
32487         * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
32488         * config/darwin8.h: New.
32489         * config/darwin7.h: Update comment.
32491 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
32492             Dorit Naishlos  <dorit@il.ibm.com>
32494         * tree-vectorizer.h (LOC): New type.
32495         (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
32496         (loop_line_number): New field in struct _loop_vec_info.
32497         (LOOP_VINFO_LOC, LOOP_LOC): New macros.
32499         * tree-vectorizer.c (input.h): Included.
32500         (find_loop_location): New function.
32501         (vect_debug_stats): Argument changed from loop to LOC. Computation of
32502         loop line number removed.
32503         (vect_debug_details): Likewise.
32504         (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
32506         (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
32507         call to vect_debug_details/stats changed from loop to loop_loc.
32508         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
32509         (slpeel_tree_peel_loop_to_edge): Likewise.
32511         (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
32512         changed from NULL to UNKNOWN_LOC.
32513         (vect_get_base_and_offset):
32514         (vect_create_addr_base_for_vector_ref):
32515         (get_vectype_for_scalar_type):
32516         (vect_create_data_ref_ptr):
32517         (vect_init_vector):
32518         (vect_get_vec_def_for_operand):
32519         (vect_finish_stmt_generation):
32520         (vectorizable_assignment):
32521         (vectorizable_operation):
32522         (vectorizable_store):
32523         (vectorizable_load):
32524         (vect_transform_stmt):
32525         (vect_update_ivs_after_vectorizer):
32526         (vect_do_peeling_for_loop_bound):
32527         (vect_do_peeling_for_alignment):
32528         (vect_transform_loop):
32529         (vect_is_simple_use):
32530         (vect_analyze_operations):
32531         (vect_is_simple_iv_evolution):
32532         (vect_analyze_scalar_cycles):
32533         (vect_analyze_data_ref_dependences):
32534         (vect_compute_data_ref_alignment):
32535         (vect_enhance_data_refs_alignment):
32536         (vect_analyze_data_ref_access):
32537         (vect_analyze_data_ref_accesses):
32538         (vect_analyze_pointer_ref_access):
32539         (vect_get_memtag_and_dr):
32540         (vect_analyze_data_refs):
32541         (vect_mark_relevant):
32542         (vect_stmt_relevant_p):
32543         (vect_mark_stmts_to_be_vectorized):
32544         (vect_can_advance_ivs_p):
32545         (vect_get_loop_niters):
32546         (vect_analyze_loop):
32547         (vectorize_loops): Likewise.
32549         (vectorizable_load): Argument in call to vect_debug_details/stats
32550         changed from loop to LOOP_LOC (loop_vinfo).
32551         (vect_transform_loop):
32552         (vect_analyze_operations):
32553         (vect_analyze_scalar_cycles):
32554         (vect_analyze_data_ref_dependence):
32555         (vect_enhance_data_refs_alignment):
32556         (vect_analyze_data_ref_accesses):
32557         (vect_analyze_pointer_ref_access):
32558         (vect_analyze_data_refs):
32559         (vect_analyze_loop): Likewise.
32561         (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
32562         changed from loop to loop_loc.
32564         (vect_enhance_data_refs_alignment): Removed unused variable loop.
32566 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
32567             Dorit Naishlos  <dorit@il.ibm.com>
32569         * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
32570         declaration added.
32571         (vect_analyze_data_ref_dependences): Likewise.
32573         (vect_is_simple_use): Argument changed from loop structure to
32574         loop_vect_info structure.
32575         (vect_can_advance_ivs_p): Likewise.
32576         (vect_create_index_for_vector_ref): Likewise.
32577         (vect_update_ivs_after_vectorizer): Likewise.
32578         (new_stmt_vec_info): Likewise.
32580         (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
32581         changed from loop to loop_vinfo.
32582         (vect_create_data_ref_ptr): First argument in call to
32583         vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
32584         (vectorizable_assignment): Second argument in call to vect_is_simple_use
32585         was changed from loop to loop_vinfo.
32586         (vectorizable_operation): Likewise.
32587         (vectorizable_store): Likewise.
32588         (vect_mark_stmts_to_be_vectorized): Likewise.
32589         (vect_do_peeling_for_loop_bound): First argument in call to
32590         vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
32591         (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
32592         was changed from loop to loop_vinfo.
32593         (vect_analyze_data_ref_dependences): Third argument in call to
32594         vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
32596         (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
32597         (vect_create_data_ref_ptr): Likewise.
32598         (vect_init_vector): Likewise.
32599         (vect_get_vec_def_for_operand): Likewise.
32600         (vectorizable_assignment): Likewise.
32601         (vectorizable_operation): Likewise.
32602         (vectorizable_store): Likewise.
32603         (vectorizable_load): Likewise.
32604         (vect_update_ivs_after_vectorizer): Likewise.
32605         (vect_is_simple_use): Likewise.
32606         (vect_analyze_data_ref_dependence): Likewise.
32607         (vect_analyze_pointer_ref_access): Likewise.
32608         (vect_can_advance_ivs_p): Likewise.
32610         * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
32611         before _stmt_vec_info.
32612         (_stmt_vec_info): Loop field replaced by loop_vec_info.
32613         (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
32614         (new_stmt_vec_info): Argument changed from loop structure to
32615         loop_vect_info structure
32617         (vect_analyze_data_ref_dependences): Unnecessary line was removed.
32618         (vect_analyze_offset_expr): Avoid 80 columns overflow.
32619         (vect_create_addr_base_for_vector_ref): Likewise.
32620         (vect_analyze_pointer_ref_access): Likewise.
32622 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
32624         PR tree-opt/19768
32625         * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
32626         phi flag if the phi is abnormal.
32628 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
32630         PR tree-opt/19736
32631         * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
32632         information for the new statement.
32634 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
32636         PR driver/19117
32637         * gcc.c (main): Include the target in -v output.
32639 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
32641         * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
32642         Do not drop the extend if we'd have to add a paradoxical subreg
32643         later.  Include optabs.h and insn-codes.h.
32644         * Makefile.in (combine.o): Depend on $(OPTABS_H).
32646 2005-02-02  Roger Sayle  <roger@eyesopen.com>
32648         PR middle-end/19405
32649         * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
32650         * fold-const.c (const_binop): Avoid constant folding floating
32651         point operations in modes that use composite representations.
32652         * simplify-rtx.c (simplify_binary_operation): Likewise.
32654 2005-02-02  Geoffrey Keating  <geoffk@apple.com>
32656         * config/rs6000/altivec.md (altivec_dst): Make the first operand
32657         a REG, not a MEM.
32658         (altivec_dstt): Likewise.
32659         (altivec_dstst): Likewise.
32660         (altivec_dststt): Likewise.
32661         * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
32662         of first operand.
32664 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
32666         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
32667         EXPR_LOCUS from orig_cond to the new cond_stmt.
32668         (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
32669         the new vec_stmt.
32671 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
32673         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
32674         standard_iv_increment_position. Remove call to bsi_next
32675         (no need to bump the iterator anymore).
32676         (vect_create_index_for_vector_ref): Call
32677         standard_iv_increment_position. Remove second function argument.
32678         (vect_finish_stmt_generation): Remove call to bsi_next
32679         (no need to bump the iterator anymore).
32680         (vect_create_data_ref_ptr): Remove second argument (bsi) in call
32681         to vect_create_index_for_vector_ref.
32683 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
32685         * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
32686         phis are used out of the loop.
32688 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
32690         PR c/17807
32691         * c-decl.c (undef_nested_function): New variable.
32692         (pop_scope): Diagnose undefined nested functions.
32693         (finish_function): Don't attempt cgraph processing or genericizing
32694         if current top-level function contained an undefined nested
32695         function.  Reset undef_nested_function at the end of a top-level
32696         function.
32698 2005-02-02  Zdenek Dvorak  <dvorakz@suse.cz>
32700         * tree.c (build_int_cst_type): Take sign of the value into account
32701         when deciding whether sign extend the value.
32703 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
32705         PR c/18502
32706         * gcc.c (cpp_unique_options): Remove %{trigraphs}.
32707         (cpp_options, cc1_options): Change %{std*&ansi} to
32708         %{std*&ansi&trigraphs}.
32710 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
32712         * cse.c: Update comments.
32714 2005-02-02  Aldy Hernandez  <aldyh@redhat.com>
32716         * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
32717         arguments go on the stack.  Do not put complex doubles in odd/even
32718         pairs.
32720 2005-02-02  Steven Bosscher  <stevenb@suse.de>
32722         * doc/invoke.texi: Update the options enabled at -O1, -O2,
32723         and -O3.  Update the documentation for -fgcse-sm, -fgcse-las,
32724         -ftree-pre, and -fthread-jumps.
32726 2005-02-02  Richard Sandiford  <rsandifo@redhat.com>
32728         PR tree-optimization/19578
32729         * tree-flow.h (modified_noreturn_calls): Declare.
32730         (noreturn_call_p): Declare.
32731         * tree-flow-inline.h (noreturn_call_p): New function.
32732         (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
32733         * tree-cfg.c (modified_noreturn_calls): New variable.
32734         (cleanup_control_flow): Use noreturn_call_p.  Split basic blocks
32735         that contain a mid-block noreturn call.
32736         * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
32738 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
32740         * df.c (df_def_record_1, df_uses_record): Don't use
32741         DF_FOR_REGALLOC.
32742         * df.h (DF_FOR_REGALLOC): Remove.
32744 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
32746         PR c/19435
32747         * c-typeck.c (really_start_incremental_init): Reset
32748         constructor_max_index for arrays of incomplete type.
32750 2005-02-02  Jeff Law  <law@redhat.com>
32752         * gcse.c (struct reg_set): Store the block index where the register
32753         was set rather than the setting insn.
32754         (record_one_set, compute_transp): Corresponding changes.
32755         (pre_insert_copy_insn): Do not call replace_one_set.
32756         (replace_one_set): Remove.
32758 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
32760         PR other/15514
32761         * doc/gcov.texi: Fix typo.
32763 2005-02-01  Richard Henderson  <rth@redhat.com
32765         PR target/19680
32766         * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
32767         * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
32768         type to bool.
32769         (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
32770         * config/i386/i386-protos.h: Update.
32772 2005-02-01  Steven Bosscher  <stevenb@suse.de>
32774         PR tree-optimization/19217
32775         * tree-cfg.c (verify_expr): Use the data field to see if TP was
32776         seen inside a PHI node.  Do not do the ADDR_EXPR check if it was.
32777         (verify_stmts): Pass (void*)1 as data to verify_expr to signal
32778         that it is walking a PHI node.
32780 2005-02-01  Joseph S. Myers  <joseph@codesourcery.com>
32782         * doc/extend.texi (Nested Functions): Update.
32784 2005-02-01  Richard Henderson  <rth@redhat.com>
32786         PR 19696
32787         * optabs.c (expand_copysign_absneg): Export.
32788         * optabs.h (expand_copysign_absneg): Declare.
32789         * config/rs6000/rs6000.md (copysigntf3): New.
32791 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
32793         PR tree-optimization/19633
32794         * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
32795         * tree-ssa-alias.c (init_alias_info): Initialize.
32796         (merge_pointed_to_info): Set.
32797         (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
32798         (dump_points_to_info_for): Show value of pt_null.
32799         (struct count_ptr_d): Declare.
32800         (find_ptr_dereference): Remove.
32801         (ptr_is_dereferenced_by): Remove.
32802         (count_ptr_derefs): New local function.
32803         (count_uses_and_derefs): New local function.
32804         (compute_points_to_and_addr_escape): Call it.  If the number
32805         of dereferences is greater than zero, mark the pointer as
32806         dereferenced.  If there are fewer dereferences than uses of
32807         the pointer, the pointer's value escapes.
32809 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
32811         PR tree-optimization/19670
32812         * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
32813         here...
32814         (verify_use): ... set it here, instead.
32816 2005-02-01  Janis Johnson  <janis187@us.ibm.com>
32818         * doc/sourcebuild.texi (Test directives): Fix formatting.
32820         * doc/sourcebuild.texi (Test directives): Describe selector
32821         expressions.
32823 2005-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
32825         * config.gcc (powerpc64-*-linux*): Default to -m64 also for
32826         specific 64-bit CPUs.
32828 2005-02-01  Richard Earnshaw  <rearnsha@arm.com>
32830         PR target/16201
32831         * arm.c (arm_eliminable_register): New function.
32832         (adjacent_mem_locations): Don't allow eliminable registers.  Use
32833         HOST_WIDE_INT for address offsets.
32834         * arm-protos.h (arm_eliminable_register): Add prototype.
32836 2005-02-01  Steven Bosscher  <stevenb@suse.de>
32838         PR optimization/15242
32839         * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
32840         * basic-block.h (duplicate_computed_gotos): Add prototype.
32841         * bb-reorder.c (duplicate_computed_gotos): New function to
32842         duplicate sufficiently small blocks ending in a computed jump.
32843         * passes.c (rest_of_compilation): Call duplicate_computed_gotos
32844         if not optimizing for size.
32845         * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
32846         never do tail merging for blocks ending in a computed jump.
32847         * doc/invoke.texi: Document the max-goto-duplication-insns param.
32849 2005-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
32851         Patch from Richard Sandiford <rsandifo@redhat.com>
32852         * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
32853         from inheriting a subreg equivalence with a non-spill register.
32855         * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
32857 2005-02-01  Alexandre Oliva  <aoliva@redhat.com>
32859         * config/frv/frv.c (movcc_fp_destination_operand): New.
32860         (gpr_or_memory_operand): Fix typo in comment.
32861         (gpr_or_memory_operand_with_scratch): New.
32862         * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
32863         * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
32864         movcc_fp_destination_operand.
32865         (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
32866         Legitimize memory addresses using a scratch register.
32868 2005-01-31  Jeff Law  <law@redhat.com>
32870         * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
32871         bitmap a sparse bitmap instead of a simple bitmap.
32872         (mark_def_sites_initialize_block): Corresponding changes.
32873         (ssa_mark_def_sites_initialize_block): Likewise.
32874         (ssa_mark_phi_uses): Likewise.
32875         (mark_def_site, ssa_mark_def_sites): Likewise.
32876         (mark_def_site_blocks): Likewise.
32877         (rewrite_ssa_into_ssa): Likewise.
32879         * tree-ssa-dom.c (record_cond): Pass correct variable type
32880         for last argument to htab_find_slot_with_hash.
32882         * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
32883         effects when optimizing 0 % X.  Do not try to optimize X % 0.
32885 2005-01-31  James E. Wilson  <wilson@specifixinc.com>
32887         * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
32888         1_mmalua.
32890 2005-02-01  Eric Christopher  <echristo@redhat.com>
32892         * config/mips/mips.c (override_options): Warn if -mint64
32893         is used.
32894         * doc/invoke.texi (MIPS Options): Document that -mint64 is
32895         deprecated.
32897 2005-02-01  Kazu Hirata  <kazu@cs.umass.edu>
32899         * cse.c (cse_reg_info): Remove hash_next, next, regno.  Add
32900         timestamp.
32901         (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
32902         REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
32903         cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
32904         (cached_regno): Initialize to INVALID_REGNUM.
32905         (cse_reg_info_table_size,
32906         cse_reg_info_table_first_uninitialized,
32907         cse_reg_info_timestamp): New.
32908         (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
32909         get_cse_reg_info.
32910         (init_cse_reg_info, get_cse_reg_info_1): New.
32911         (get_cse_reg_info): Cache the last look-up.
32912         (new_basic_block): Update the code to clear mappings from
32913         registers to cse_reg_info entries.
32914         (cse_main): Call init_cse_reg_info.
32916         * cse.c (get_cse_reg_info): Update a comment.
32918 2005-01-31  Steven Bosscher  <stevenb@suse.de>
32920         PR c/19333
32921         * c-decl.c (start_decl): Do not warn about arrays of elements with
32922         an incomplete type here.
32923         (grokdeclarator): Do it here by making a pedwarn an error.
32924         * c-typeck.c (push_init_level): If there were previous errors with
32925         the constructor type, do not warn about braces for initializers.
32926         (process_init_element): Likewise for excess initializer elements.
32928 2005-01-31  Kazu Hirata  <kazu@cs.umass.edu>
32930         * cse.c (delete_trivially_dead_insn): Don't iterate.
32932 2005-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
32934         * config/rs6000/rs6000.md (copysignsf3): New expand.
32935         (copysigndf3): Likewise.
32937 2005-01-31  Steven Bosscher  <stevenb@suse.de>
32939         * recog.c (constrain_operands): Only look for earlyclobber operand
32940         conflicts if an '&' constraint was seen.
32942 2005-01-31  Marc Espie <espie@openbsd.org>
32944         * config.gcc: Don't include embedded systems fragment, switches default
32945         debugging format to ELF.
32946         * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
32947         longer pick it up there.
32949 2005-01-31  Dale Johannesen  <dalej@apple.com>
32951         * doc/extend.texi (nested functions): Fix linkage description.
32952         Clarify that static is not allowed.
32954 2005-01-31  Dale Johannesen  <dalej@apple.com>
32956         * config/rs6000/darwin.md (movsf_low_di): Make work.
32957         (movdf_low_di): Make work.
32959 2005-01-31  Dale Johannesen  <dalej@apple.com>
32961         * config/rs6000/darwin-tramp.asm (__trampoline_setup):
32962         Make work for 64 bit.
32964 2005-01-31  Roger Sayle  <roger@eyesopen.com>
32965             Dale Johannesen  <dalej@apple.com>
32967         PR middle-end/19650
32968         * fold-const.c (fold_binary_op_with_conditional_arg):
32969         Make types match original operands, before STRIP_NOPS.
32971 2005-01-31  Alan Modra  <amodra@bigpond.net.au>
32973         * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
32974         (struct gcc_regs): Rename from gcc_pt_regs.  Add more regs.
32975         (struct gcc_sigcontext): Delete.  Merge contents to..
32976         (struct gcc_ucontext): ..here.
32977         (get_sigcontext): Delete.
32978         (get_regs): New function, like get_sigcontext but return regs ptr.
32979         64-bit version finds regs from r1 to support vdso.
32980         (ppc_linux_aux_vector): New function.
32981         (ppc_fallback_frame_state): Modify for get_regs.  Restore fprs
32982         and vector regs.
32984 2005-01-31  Ira Rosen  <irar@il.ibm.com>
32986         * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
32987         sizetype.
32988         (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
32989         redundant fold. Fix misalignment for MINUS_EXPR.
32990         (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
32991         (vect_analyze_pointer_ref_access): Likewise.
32992         (vect_get_memtag_and_dr): Likewise.
32994 2005-01-31  Richard Henderson  <rth@redhat.com>
32996         * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
32997         (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
32998         absnegdf2_i387, absnegxf2_i387): Likewise.
33000 2005-01-31  Richard Henderson  <rth@redhat.com>
33002         PR 19696
33003         * optabs.c (expand_copysign_absneg): New.
33004         (expand_copysign_bit): Split out from ...
33005         (expand_copysign): ... here.  Use expand_copysign_absneg.
33007 2005-01-30  Roger Sayle  <roger@eyesopen.com>
33009         PR middle-end/19697
33010         * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
33011         constant as the second operand and a register as the third.
33013 2005-01-31  Danny Smith  <dannysmith@users.sourceforge.net>
33015         PR target/19704
33016         * config/i386/i386.c (ix86_function_ok_for_sibcall): Also check
33017         that dllimport'd functions do not use all call-clobbered registers
33018         to pass parameters.
33020 2005-01-30  Richard Henderson  <rth@redhat.com>
33022         PR 19696
33023         * optabs.c (expand_absneg_bit): Split out from expand_unop and
33024         expand_abs_nojump and generalize.  Use operand_subword and
33025         emit_no_conflict_block.  Support large modes.
33026         (expand_abs_nojump): Use it.  Use HONOR_SIGNED_ZEROS to fall
33027         back to maximum.
33028         (expand_unop): Likewise.  Use HONOR_SIGNED_ZEROS to fall back
33029         negation to subtraction.
33030         (expand_copysign): Check that the format has signed zeros.
33031         Use operand_subword and emit_no_conflict_block.  Support large modes.
33033 2005-01-30  Daniel Berlin  <dberlin@dberlin.org>
33035         Fix PR tree-optimization/19624
33037         * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
33038         * tree-ssa-pre.c: Add cfgloop.h.
33039         Update comment.
33040         (pre_stats): New member, constified.
33041         (inserted_exprs): New static variable.
33042         (NECESSARY): New macro.
33043         (create_expression_by_pieces): Fold the expression, and
33044         mark it as defaulting to not necessary. Also put in
33045         inserted_exprs.
33046         (fully_constant_expression): New function.
33047         (insert_into_preds_of_block): Modify to not insert phis when we
33048         are playing with induction variables.
33049         Push phis onto the inserted_exprs vector, and mark them as not
33050         necessary by default.
33051         (insert_aux): Call fully_constant_expression on eprime.
33052         If all edges produce the same value, mark it constant.
33053         (mark_operand_necessary): New function.
33054         (remove_dead_inserted_code): New function.
33055         (init_pre): Init loop optimizer to get loop info.
33056         (fini_pre): Free loop_optimizer, and inserted_exprs vec.
33057         (execute_pre): Commit edge inserts, then remove dead code.
33059 2005-01-30  Richard Henderson  <rth@redhat.com>
33061         * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
33062         * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
33064 2005-01-30  Richard Henderson  <rth@redhat.com>
33066         PR target/19700
33067         * config/i386/i386.c (ix86_expand_copysign): New.
33068         (ix86_split_copysign_const): New.
33069         (ix86_split_copysign_var): Rename from ix86_split_copysign,
33070         rearrange op1/nmask operands.
33071         * config/i386/i386-protos.h: Update.
33072         * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
33073         (copysigndf3): Likewise.
33074         (copysignsf3_const, copysigndf3_const): New.
33075         (copysignsf3_var): Rename from copysignsf3, split out splitter
33076         and fix split predicate for X constraint.
33077         (copysigndf3_var): Similarly.
33079 2005-01-30  Kazu Hirata  <kazu@cs.umass.edu>
33081         * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
33082         doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
33083         doc/tm.texi, doc/tree-ssa.texi: Update copyright.
33085 2005-01-29  Richard Henderson  <rth@redhat.com>
33087         PR target/19690
33088         * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
33089         of # and * in constraints.
33091 2005-01-29  Richard Henderson  <rth@redhat.com>
33093         PR middle-end/19689
33094         * expr.c (store_field): Don't strip sub-mode cast when the input
33095         data is even smaller.
33097 2005-01-29  Richard Henderson  <rth@redhat.com>
33099         PR middle-end/19687
33100         * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
33101         union being empty.
33103 2005-01-29  Richard Henderson  <rth@redhat.com>
33105         * combine.c (make_field_assignment): Fix argument order
33106         to gen_int_mode.
33108 2005-01-29  Richard Guenther <richard.guenther@uni-tuebingen.de>
33110         PR tree-optimization/15791
33111         * fold-const.c (extract_array_ref): New function.
33112         (fold): Fold comparisons between &a[i] and &a[j] or
33113         semantically equivalent trees.
33115 2005-01-29  Jeff Law  <law@redhat.com>
33117         * gcse.c (insert_expr_in_table): Revamp handling of available
33118         and anticipatable occurrence lists to avoid unnecessary list
33119         walking.
33120         (insert_set_in_table): Similarly.
33122 2005-01-29  Joseph S. Myers  <joseph@codesourcery.com>
33124         * c-common.c (fix_string_type): Just use c_build_qualified_type to
33125         build string type.
33126         (c_build_qualified_type): Build qualified array types with
33127         TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
33128         * c-decl.c (c_make_fname_decl): Build unqualified array type
33129         before qualified type.
33130         (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
33131         type is qualified, not just if type itself is.  Don't apply
33132         qualifiers to array type when declarator is processed.  Apply
33133         qualifiers to field type whether or not it is an array type.
33134         Don't handle array types specially for applying qualifiers to
33135         variables.
33136         * c-typeck.c (composite_type): Build unqualified element type and
33137         array type when forming composite of array types.
33138         (common_pointer_type, comptypes, comp_target_types,
33139         type_lists_compatible_p, build_indirect_ref, build_array_ref,
33140         convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
33141         types.
33142         (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
33143         (args2) in variables a1 and a2.
33145 2005-01-29  Kazu Hirata  <kazu@cs.umass.edu>
33147         * cse.c (n_elements_made, max_elements_made): Remove.
33148         (insert): Don't touch n_elements_made.
33149         (cse_main): Don't touch n_elements_made or max_elements_made.
33151 2005-01-28  Stephane Carrez  <stcarrez@nerim.fr>
33153         PR target/15384
33154         * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
33155         configuration part of dp-bit.c to be lost.
33157 2005-01-28  Roger Sayle  <roger@eyesopen.com>
33159         * expmed.c (expand_mult_highpart_optab): When attempting to use
33160         a non-widening multiplication in a wider mode, the operands need
33161         to be converted (zero or sign extended) to that mode.
33163 2005-01-28  Ian Lance Taylor  <ian@airs.com>
33165         PR middle-end/16558
33166         PR middle-end/19583
33167         * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
33168         through if both operands fall through.
33170 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
33172         * cse.c (fold_rtx) <PC>: Don't optimize.
33174 2005-01-28  Jeff Law  <law@redhat.com>
33176         * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
33177         (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
33179 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
33181         * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
33182         cse_reg_info_used_list_end): Remove.
33183         (cse_reg_info_list, cse_reg_info_list_free): New.
33184         (get_cse_reg_info): When allocating an instance of
33185         cse_reg_info, add it to the beginning of the cse_reg_info_list
33186         list.  Remove code to maintain cse_reg_info_used_list.
33187         (new_basic_block): Reset the free list to the beginning of
33188         cse_reg_info_list.
33190 2005-01-28  Richard Sandiford  <rsandifo@redhat.com>
33192         * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
33193         (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
33194         (frv_expand_mdpackh_builtin): New function.
33195         (frv_expand_builtin): Use it to expand __MDPACKH.
33196         * doc/extend.texi (__MDPACKH): Update documentation.
33198 2005-01-28  Uros Bizjak  <uros@kss-loka.si>
33200         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
33201         SSE_FLOAT_MODE_P for use_sse computation.
33203 2005-01-28  Ralf Corsepius  <ralf.corsepius@rtems.org>
33205         PR target/19663
33206         * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
33208 2005-01-27  Richard Henderson  <rth@redhat.com>
33210         * builtins.c (expand_builtin_copysign): New.
33211         (expand_builtin): Call it.
33212         * genopinit.c (optabs): Add copysign_optab.
33213         * optabs.c (init_optabs): Initialize it.
33214         (expand_copysign): New.
33215         * optabs.h (OTI_copysign, copysign_optab): New.
33216         (expand_copysign): Declare.
33218         * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
33219         (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
33221         * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
33222         (ix86_expand_fp_absneg_operator): ... here.
33223         (ix86_split_copysign): New.
33224         * config/i386/i386-protos.h: Update.
33225         * config/i386/i386.md (UNSPEC_COPYSIGN): New.
33226         (copysignsf3, copysigndf3): New.
33228         * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
33229         (copysignsf3, ncopysignsf3): New.
33230         (copysigndf3, ncopysigndf3): New.
33231         (copysignxf3, ncopysignxf3): New.
33232         * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
33234 2005-01-27  Arend Bayer  <arend.bayer@web.de>
33235             Kazu Hirata  <kazu@cs.umass.edu>
33237         * cse.c: (find_best_addr): Don't call copy_rtx before calling
33238         fold_rtx.  Save cost recomputation if fold_rtx did nothing.
33239         (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
33240         NULL_RTX.
33242 2005-01-27  Jeff Law  <law@redhat.com>
33244         * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
33245         definitions of SSA_NAMEs which are not being rewritten.
33246         (rewrite_ssa_into_ssa): Only initialize the current definition
33247         of an SSA_NAME if that SSA_NAME has been marked for rewriting.
33248         If checking is enabled, assert that SSA_NAME_AUX is clear for all
33249         SSA_NAMEs before returning.
33251 2005-01-27  Kazu Hirata  <kazu@cs.umass.edu>
33253         * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
33254         cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
33255         tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
33256         config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
33257         config/mips/iris6.h, config/sh/sh.c: Update copyright.
33259 2005-01-27  Steven Bosscher  <stevenb@suse.de>
33261         PR middle-end/17278
33262         * opts.c (decode_options): Move flag_thread_jumps from -O1 and
33263         higher to -O2 and higher.  Likewise for tree PRE.
33264         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
33265         and better.
33267 2005-01-27  Ian Lance Taylor  <ian@airs.com>
33269         PR middle-end/19583
33270         * gimple-low.c (try_catch_may_fallthru): New static function.
33271         (block_may_fallthru): Handle TRY_CATCH_EXPR.
33272         * tree-inline.c (expand_call_inline): Don't warn about reaching
33273         the end of a non-void function being inlined if the function uses
33274         a return slot.
33276 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
33278         * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
33280         PR c/18946
33281         * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
33282         (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
33283         (implicitly_declare): Handle error_mark_node.
33285 2005-01-27  Richard Henderson  <rth@redhat.com>
33287         PR tree-opt/14329
33288         * tree.h (struct tree_decl): Add debug_expr_is_from.
33289         (DECL_DEBUG_EXPR_IS_FROM): New.
33290         (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
33291         * dwarf2out.c (dwarf2out_var_location): Update to match.
33292         * tree-outof-ssa.c (create_temp): Likewise.
33293         * var-tracking.c (track_expr_p): Likewise.
33294         * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
33295         * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
33296         * toplev.c (default_tree_printer): Likewise.
33298 2005-01-27  Alexandre Oliva  <aoliva@redhat.com>
33300         * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
33301         GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
33303 2005-01-27  Steven Bosscher  <stevenb@suse.de>
33305         * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
33306         CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
33307         ASM_CLOBBERS): Add tree checks.
33309         * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
33310         (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
33311         * c-common.def (SWITCH_STMT): Update to match.
33312         * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
33313         macros instead of SWITCH_EXPR ones.
33314         * c-dump.c (c_dump_tree): Likewise.
33315         * c-gimplify.c (gimplify_switch_stmt): Likewise.
33316         * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
33318         * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
33320 2005-01-27  Alan Modra  <amodra@bigpond.net.au>
33322         * unwind-dw2.c (execute_stack_op): Add missing cases for
33323         DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
33325 2005-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
33327         * config.gcc (Obsolete configurations): Remove 'dummy', add
33328         sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
33329         sparc-*-openbsd*.
33331 2005-01-26  Diego Novillo  <dnovillo@redhat.com>
33333         PR tree-optimization/19633
33334         * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
33335         CALL_EXPRs.
33336         (maybe_create_global_var): Do not create .GLOBAL_VAR if there
33337         are no call-clobbered variables.
33338         * tree-outof-ssa.c (check_replaceable): Return false for calls
33339         with side-effects.
33341 2005-01-26  Ulrich Weigand  <uweigand@de.ibm.com>
33343         * dbxout.c (dbxout_symbol_location): Resolve constant pool references
33344         even for variables with NULL DECL_INITIAL.
33346 2005-01-26  Stuart Hastings  <stuart@apple.com>
33348         * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
33350 2005-01-26  Richard Henderson  <rth@redhat.com>
33352         PR middle-end/18008
33353         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
33354         field's type.
33355         * expr.c (store_field): Strip conversions to odd-bit-sized types
33356         if the destination field width matches.
33358 2005-01-26  Richard Henderson  <rth@redhat.com>
33360         * c-decl.c, expmed.c, expr.c: Revert last change.
33362 2005-01-26  Richard Henderson  <rth@redhat.com>
33364         PR middle-end/18008
33365         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
33366         field's type.
33367         * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
33368         if we don't need the bits above those present in the current mode.
33369         * expr.c (store_field): Strip conversions to odd-bit-sized types
33370         if the destination field width matches.
33372 2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
33374         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
33375         either -ffast-math or -funsafe-math-optimizations is in use.
33377 2005-01-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
33379         PR target/19293
33380         PR target/19329
33381         * config/avr/avr.c (notice_update_cc): Only set condition code for
33382         ashrqi3 if shift count > 0.
33383         (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
33384         (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
33385         ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
33386         count <= 0 as a no-op, and shift count >= width by copying zero
33387         or sign bit to all bits of the result.
33388         * config/avr/avr.md (all shifts): Add alternatives for zero shift
33389         count, with attribute "length" set to 0 and "cc" set to "none".
33391 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
33393         * doc/invoke.texi: Document -mTLS.
33395         * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
33396         * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
33397         * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
33398         * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
33399         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
33400         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
33401         * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
33402         * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
33404         * configure.ac: Check for a TLS capable gas.
33406         * configure: Regenerate.
33408 2005-01-26  Richard Henderson  <rth@redhat.com>
33410         PR middle-end/18008
33411         * combine.c (make_field_assignment): Simplify store to zero_extract
33412         from a source with an overlapping mask.
33414 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
33416         2004-11-11  Eric Christopher  <echristo@redhat.com>
33418         * config/frv/frv.md: Add fr400_integer automaton. Don't
33419         allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
33420         to TYPE_MACC.
33422 2005-01-26  Steven Bosscher  <stevenb@suse.de>
33424         PR middle-end/16585
33425         * cfgbuild.c (make_edges): Do not clear or set
33426         current_function_has_computed_jump.
33427         * function.h (struct function): Remove the has_computed_jump field.
33428         (current_function_has_computed_jump): Do not define.
33429         * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
33430         in a computed jump.  Ignore current_function_has_computed_jump.
33432 2005-01-26  Richard Henderson  <rth@redhat.com>
33434         PR middle-end/19515
33435         * expr.c (categorize_ctor_elements): New argument p_must_clear.
33436         (categorize_ctor_elements_1): Likewise.  Detect a union that isn't
33437         fully initialized.
33438         (mostly_zeros_p): Update for new categorize_ctor_elements argument.
33439         * gimplify.c (gimplify_init_constructor): Likewise.  Only shove
33440         objects into static storage if they have more than one non-zero value.
33441         * tree.h (categorize_ctor_elements): Update decl.
33443 2005-01-26  Steven Bosscher  <stevenb@suse.de>
33445         PR middle-end/19616
33446         * tree.h (CALL_EXPR_TAILCALL): Add comment.
33447         * calls.c (check_sibcall_argument_overlap_1): Revert the change
33448         to this function from 2004-07-10.
33449         * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
33450         the current function for tail call optimizations if the address
33451         of one of it its arguments is taken.
33453 2005-01-26  Kazu Hirata  <kazu@cs.umass.edu>
33455         * cse.c (fold_rtx): Call equiv_constant only when necessary.
33457 2005-01-26  Bernd Schmidt  <bernd.schmidt@analog.com>
33459         * function.c (expand_function_end): If current_function_calls_alloca,
33460         emit stack restore in a place that is reached when the function falls
33461         through at the end.
33463 2005-01-26  Alexandre Oliva  <aoliva@redhat.com>
33465         * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
33466         rule to avoid matching inappropriate suffix rule.
33468 2005-01-26  Jan Hubicka  <jh@suse.cz>
33470         PR tree-optimization/19241
33471         * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
33473 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
33475         * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
33476         -lsyssim.  Wrap -lc -lsyssim in --start-group --end-group instead
33477         of doubling.
33478         (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
33479         <sim*>: Always use crt1.o, regardless of N in simN.
33480         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
33481         (ENDFILE_SPEC): Add crtn.o, after crtend.o.
33482         (CRT_CALL_STATIC_FUNCTION): Remove.
33483         * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
33484         use crt1.o, regardless of N in simN.
33485         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
33486         (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
33487         (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
33488         case isystem setting.
33489         (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
33491 2005-01-25  Ian Lance Taylor  <ian@airs.com>
33493         * gimple-low.c (block_may_fallthru): Correct handling of
33494         SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
33496 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
33498         * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
33499         handlers to match indentation; nested under the mtune=* handler.
33500         Similar for mcpu= and march=.
33502 2005-01-25  Daniel Jacobowitz  <dan@codesourcery.com>
33504         * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
33505         * config/mips/linux64.h (LIB_SPEC): Likewise.
33506         * config/mn10300/linux.h (LIB_SPEC): Likewise.
33507         * config/sh/linux.h (LIB_SPEC): Likewise.
33509 2005-01-25  Aldy Hernandez  <aldyh@redhat.com>
33511         * config/frv/frv.c (frv_legitimize_tls_address): New.
33512         (TARGET_HAVE_TLS): Define.
33513         (FRV_SYMBOL_REF_TLS_P): Define.
33514         (frv_override_options): Handle new register classes.
33515         (frv_legitimate_address_p): Reject tls addresses.
33516         (frv_legitimize_address): Handle TLS addresses.
33517         (gen_inlined_tls_plt): New.
33518         (gen_tlsmoff): New.
33519         (frv_legitimize_tls_address): New.
33520         (unspec_got_name): Add TLS entries.
33521         (got12_operand): Add R_FRV_TLSMOFF12 case.
33522         (frv_emit_move): Fixup TLS addresses.
33523         (frv_emit_movsi): Legitimize TLS addresses.
33525         * config/frv/frv.h (MASK_BIG_TLS): New.
33526         (TARGET_BIG_TLS): New.
33527         (HAVE_AS_TLS): Define.
33528         (TARGET_SWITCHES): Add -mTLS and -mtls options.
33529         (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
33530         (REG_CLASS_NAMES): Same.
33531         (REG_CLASS_CONTENTS): Same.
33532         (CONSTRAINT_LEN): New.
33533         (REG_CLASS_FROM_CONSTRAINT): New.
33534         (PREDICATE_CODES): Add symbolic_operand.
33536         * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
33537         UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
33538         UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
33539         UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
33540         R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
33541         R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
33542         R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
33543         GR9_REG, GR14_REG, LRREG.
33544         (type): Add load_or_call attribute.
33545         ("load_or_call"): New reservation.
33546         ("call_gettlsoff"): New.
33547         ("tls_indirect_call"): New.
33548         ("tls_load_gottlsoff12"): New.
33549         ("tlsoff_hilo"): New.
33550         ("tls_tlsdesc_ldd"): New.
33551         ("tls_tlsoff_ld"): New.
33552         ("tls_lddi"): New.
33554         * config/frv/frv-protos.h (symbolic_operand): Protoize.
33556         2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
33558         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
33559         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
33560         * config/frv/frv.c (TLS_BIAS): Define.
33561         (frv_output_dwarf_dtprel): New.
33563 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
33565         PR rtl-optimization/19579
33566         * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
33567         both A and B, see if they don't clobber registers the other expr uses.
33569 2005-01-25  J"orn Rennecke <joern.rennecke@st.com>
33571         * real.c (do_add): Initialize signalling and canonical members.
33573         * real.c (real_from_integer): Zero out destination.
33575 2005-01-18  Jan Hubicka  <jh@suse.cz>
33577         PR tree-optimize/19337
33578         * tree-inline.c (initialize_inlined_parameters): Copy
33579         saved_static_chain_decl only.
33581 2005-01-25  Richard Henderson  <rth@redhat.com>
33583         PR target/19556
33584         PR target/19584
33585         * config/i386/i386.c (x86_inter_unit_moves): Zero.
33586         (ix86_preferred_reload_class): Rewrite fp-constant section, with
33587         80387 enabled, to return a proper subclass.  Return the subset that
33588         overlaps with GENERAL_REGS for PLUS.
33589         * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
33591 2005-01-25  Richard Henderson  <rth@redhat.com>
33593         PR middle-end/19609
33594         * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
33596 2005-01-25  Roger Sayle  <roger@eyesopen.com>
33598         * expmed.c (choose_multiplier): Change interface to return the
33599         multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
33600         (expand_divmod): Update calls to choose_multiplier.
33602 2005-01-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33604         PR middle-end/19330
33605         * expmed.c (extract_bit_field): Use adjust_address instead of
33606         gen_lowpart when op0 is a MEM.
33608 2005-01-24  Steven Bosscher  <stevenb@suse.de>
33610         * cfgexpand.c (expand_gimple_tailcall): Fix typo.
33612 2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
33614         * config/mips/irix-csr.c: New file.
33615         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
33616         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
33617         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
33618         executables.
33620 2005-01-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
33622         PR bootstrap/19364
33623         * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
33624         sparc/elf.h, add sparc/sp-elf.h.
33625         (sparc-*-rtems*): Likewise.
33626         (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
33627         tm-dwarf2.h, add sparc/sp-elf.h.
33628         (sparc86x-*-elf): Likewise.
33629         (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
33630         * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
33631         TARGET_OS_CPP_BUILTINS.
33632         * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
33633         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
33634         Undefine it.
33635         * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
33636         * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
33637         (SWITCH_TAKES_ARG): Likewise.
33638         (LOCAL_LABEL_PREFIX): Likewise.
33639         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
33640         (TARGET_N_FORMAT_TYPES): Delete.
33641         (TARGET_FORMAT_TYPES): Likewise.
33642         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
33643         * config/sparc/elf.h: Delete.
33644         * config/sparc/sp-elf.h: New file.
33646 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
33648         * tree-flow-inline.h (phi_arg_from_edge): Remove.
33649         * tree-flow.h: Remove the corresponding prototype.
33650         * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
33651         tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
33653 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
33655         PR target/17751
33656         * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
33657         for AIX ABI or ELF -fPIC.
33658         (rs6000_emit_load_toc_table): Don't create toc_section here.
33659         (rs6000_xcoff_file_start): Nor here.
33661 2005-01-24  J"orn Rennecke <joern.rennecke@st.com>
33663         * sh.c (ra.h): Don't #include.
33664         (hard_regs_intersect_p): New function, resurrected from ra.c.
33666         * sh.c: Fix 1996 Copyright.
33668 2005-01-24  Richard Henderson  <rth@redhat.com>
33669             Aldy Hernandez  <aldyh@redhat.com>
33671         * regrename.c (note_sets): Handle subregs.
33673 2005-01-24  Joseph S. Myers  <joseph@codesourcery.com>
33675         PR bootstrap/18058
33676         * genconditions.c (write_header, write_conditions): Elide file if
33677         not GCC >= 3.0.1.
33679 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
33681         * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
33682         config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
33683         Update copyright.
33685 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
33687         * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
33688         expand_builtin_printf, expand_builtin_fprintf,
33689         expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
33690         checking against POINTER_TYPE.
33691         (validate_arglist): Handle POINTER_TYPE code by checking
33692         POINTER_TYPE_P.
33694 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
33696         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
33697         init_rtlanal): New.
33698         (for_each_rtx): Call for_each_rtx_1.
33699         * rtl.h (init_rtlanal): Declare.
33700         * toplev.c (backend_init): Call init_rtlanal.
33702 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
33704         * flow.c (propagate_one_insn): Formatting.
33706         PR middle-end/19551
33707         * flow.c (libcall_dead_p): Be more conservative if unsure.
33708         If there are any instructions between insn and call, see if they are
33709         all dead before saying the libcall is dead.
33711 2005-01-24  Uros Bizjak  <uros@kss-loka.si>
33713         * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
33714         operand constraint for operand 0.
33716 2005-01-23  Richard Henderson  <rth@redhat.com>
33718         PR 19486
33719         * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
33720         edges leading to join block.
33722 2005-01-23  Roger Sayle  <roger@eyesopen.com>
33724         * expmed.c (expand_mult_highpart): Make static.  Change type of
33725         constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
33726         (expand_divmod): Updates calls to expand_mult_highpart by using
33727         gen_int_mode to pass a CONST_INT rtx.
33728         * rtl.h (expand_mult_highpart): Remove prototype.
33730 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
33732         * flow.c (regset_bytes, regset_size): Remove.
33734         * cfganal.c: Fix a reference to Harvey's paper.
33736 2005-01-23  Steven Bosscher  <stevenb@suse.de>
33738         PR rtl-optimization/19464
33739         * tree-optimize.c (init_tree_optimization_passes): Add one more
33740         copyrename pass just before out-of-ssa.
33742 2005-01-23  Joseph S. Myers  <joseph@codesourcery.com>
33744         PR bootstrap/18058
33745         * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
33746         * ggc-none.c (ggc_free): Define.
33748 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
33750         * cse.c (max_reg, max_insn_uid): Remove.
33751         (cse_main): Don't access max_reg or max_insn_uid.
33753         * c-common.c (explicit_flag_signed_bitfields,
33754         lang_statement_code_p, lang_expand_function_end): Remove.
33755         * c-common.h: Remove the corresponding declarations.
33756         * c-opts.c (c_common_handle_option): Remove all write access
33757         to explicit_flag_signed_bitfields.
33759         * cgraph.c (cgraph_varpool_n_nodes): Remove.
33760         (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
33761         * cgraph.h: Remove the corresponding declaration.
33763         * gcse.c (null_pointer_info): Remove.
33765 2005-01-23  Roger Sayle  <roger@eyesopen.com>
33766             Eric Botcazou  <ebotcazou@libertysurf.fr>
33768         * combine.c (simplify_logical): Only simplify logical expressions
33769         of the form ior(and(x,y),z) by the inverse distributive law if the
33770         result is cheaper than the original.
33772 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
33774         * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
33775         fold-const.c, gimplify.c, params.h, tree-data-ref.c,
33776         tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
33777         tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
33778         config/freebsd-spec.h, config/arm/arm.h,
33779         config/h8300/h8300.md, config/i386/i386.md,
33780         config/i386/predicates.md, config/i386/sse.md,
33781         config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
33782         config/vax/vax.md: Fix comment typos.  Follow spelling
33783         conventions.
33785 2005-01-23  Steven Bosscher  <stevenb@suse.de>
33787         * gengtype.c (walk_type): Produce `not equal to' compares for loop
33788         tests, instead of `less than'.
33790 2005-01-23  Richard Sandiford  <rsandifo@redhat.com>
33792         * function.c (assign_parm_setup_block): When creating a new stack slot
33793         for a parameter, get its alignment from the parameter's DECL_ALIGN
33794         rather than the type's TYPE_ALIGN.  Make sure that the parameter
33795         is at least word aligned.
33797 2005-01-22  Roger Sayle  <roger@eyesopen.com>
33799         PR middle-end/19378
33800         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
33802 2005-01-22  Richard Henderson  <rth@redhat.com>
33804         PR target/19506
33805         * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
33806         in both compare operands.
33807         (movdfcc_1_sse_max): Likewise.
33808         (movsfcc_1_sse): Likewise.  Add earlyclobber for scratch.
33809         (movdfcc_1_sse): Likewise.
33810         * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
33811         scratch register as needed.
33813 2005-01-22  Richard Henderson  <rth@redhat.com>
33815         * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
33817         * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
33819 2005-01-22  Richard Henderson  <rth@redhat.com>
33821         * genopinit.c (optabs): Use smin/smax for floating point too.
33822         * doc/md.texi: Update to match.  Clarify that floating point
33823         results are undefined for +0/-0 and NaN.
33824         * doc/rtl.texi: Likewise.
33825         * rtl.def (SMIN, SMAX): Likewise
33826         * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
33828         * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
33829         leading 's' to the name.
33830         * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
33831         smaxxf3, sminxf3): Likewise.
33832         * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
33833         Likewise.
33835 2005-01-22  Paul Brook  <paul@codesourcery.com>
33837         * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
33839 2005-01-21  Mark Dettinger  <dettinge@de.ibm.com>
33841         * config/s390/s390.c (struct processor_costs): New fields
33842         dlgr, dlr, dr, dsgfr, dsgr.
33843         (z900_cost, z990_cost): Values for new fields.
33844         (s390_rtx_costs): New cases MEM und COMPARE in switch
33845         statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
33846         DIV, MOD, UDIV, UMOD.
33848 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
33850         * config/s390/s390.md ("doloop_si64"): Reload input value directly
33851         into the register being decremented.
33852         ("doloop_si31", "doloop_di"): Likewise.
33853         ("*doloop_si_long"): Adapt pattern.
33855 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
33857         * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
33858         access registers.
33859         (CLASS_MAX_NREGS): Likewise.
33861 2005-01-21  Daniel Berlin  <dberlin@dberlin.org>
33863         * doc/tree-ssa.texi (Statement Operands): Add example for new
33864         must-def macro. Note deprecation of old operands interface.
33866 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
33868         PR tree-optimization/19484
33869         * tree-cfg.c (remove_fallthru_edge): New function.
33870         (cleanup_control_flow): Remove fallthru edges from calls that are
33871         now known not to return.
33873 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
33875         Fix PR tree-optimization/19038
33876         * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
33877         copies with loop variant ones.
33879 2005-01-22  Kazu Hirata  <kazu@cs.umass.edu>
33881         * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
33882         config/alpha/alpha-protos.h, config/alpha/alpha.h,
33883         config/alpha/alpha.md, config/alpha/predicates.md,
33884         config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
33885         config/sparc/sol2.h: Update copyright.
33887         * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
33888         first label to see if it is a nonlocal label.
33890 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
33891             Andrew Pinski  <pinskia@physics.uc.edu>
33893         PR target/19491
33894         * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
33895         maximum number of GPRs.  Saturate n_fpr at maximum number of FPRs.
33897 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
33899         * config/rs6000/rtems.h: Update copyright.
33901 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
33903         PR target/19548
33904         * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
33905         (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
33906         (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
33908 2005-01-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
33910         PR c/18809
33911         * c-typeck.c (convert_arguments): Check for error_mark_node.
33913 2005-01-21  Ian Lance Taylor  <ian@airs.com>
33915         PR tree-optimization/13000
33916         * tree-inline.c: Include "tree-flow.h".
33917         (expand_call_inline): If warn_return_type, warn if non-void inline
33918         function falls through.
33919         * tree-cfg.c (execute_warn_function_return): Don't warn about
33920         control reaching end if TREE_NO_WARNING is set.  Set
33921         TREE_NO_WARNING.
33922         * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
33923         has been lowered.
33924         * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
33925         branch if we don't need one.
33926         * c-typeck.c: Include "tree-flow.h"
33927         (c_finish_bc_stmt): Don't add a goto if the current statement
33928         list doesn't fall through to the current point.
33930 2005-01-21  Roger Sayle  <roger@eyesopen.com>
33932         PR rtl-optimization/576
33933         * real.c (real_arithmetic): Change return type from void to bool
33934         to return an indication that the result may be inexact.
33935         * real.h (real_arithmeric): Update prototype.
33936         * fold-const.c (const_binop): Don't constant fold floating
33937         point expressions when the user specifies -frounding-math and
33938         the result may depend upon the run-time rounding mode.
33939         (fold_convert_const_real_from_real): Clean-up.
33940         (fold_initializer): Ignore flag_rounding_math for initializers.
33941         * simplify-rtx.c (simplify_binary_operation): Likewise, don't
33942         constant fold FP operations with flag_rounding_math if the
33943         result may depend upon the run-time rounding mode.
33945 2005-01-21  Tom Tromey  <tromey@redhat.com>
33947         * c-cppbuiltin.c (define__GNUC__): Correct assertion.
33949 2005-01-21  Kazu Hirata  <kazu@cs.umass.edu>
33951         * tree-cfg.c: Fix comment typos.
33953 2005-01-21  J"orn Rennecke <joern.rennecke@st.com>
33955         * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
33956         around the call to rest_of_handle_branch_target_load_optimize.
33958 2005-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
33960         * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
33961         (sparc64-*-openbsd*): Likewise.
33962         (sparclite-*-elf*): Include tm-dwarf2.h.
33963         (sparc86x-*-elf*): Likewise.
33964         (sparc64-*-elf*): Likewise.
33965         * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
33966         (DBX_DEBUGGING_INFO): Likewise.
33967         * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
33968         (PREFERRED_DEBUGGING_TYPE): Likewise.
33969         * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
33970         * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
33971         (PREFERRED_DEBUGGING_TYPE): Likewise.
33972         * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
33973         (PREFERRED_DEBUGGING_TYPE): Likewise.
33974         * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
33976 2005-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
33978         PR target/18701
33979         * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
33981 2005-01-20  Paul Brook  <paul@codesourcery.com>
33983         * doc/rtl.texi: Document value extension requirements for CONST_INT.
33985 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
33987         * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
33988         label is first in a sequence of labels.
33990         * tree-cfg.c (tree_verify_flow_info): Fix a typo.
33992 2005-01-20  Janis Johnson  <janis187@us.ibm.com>
33993             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
33995         * doc/sourcebuild.texi (Test Directives): New.
33997 2005-01-20  Roger Sayle  <roger@eyesopen.com>
33999         * real.c (real_floor): Don't leave the result uninitialized when
34000         mode is VOIDMode, but return the unrounded intermediate value.
34001         (real_ceil): Likewise.
34003 2005-01-20  Paul Brook  <paul@codesourcery.com>
34005         * config/arm/arm.md (insv): Use gen_int_mode.
34007 2005-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
34009         * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
34010         * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
34011         * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
34012         * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
34013         * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
34015 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
34017         Fix PR debug/19124
34018         * dwarf2out.c (concat_loc_descriptor): We don't know we can use
34019         fbreg, so we have to assume we can't.
34020         (loc_descriptor_from_tree_1): Ditto.
34021         (containing_function_has_frame_base): New function.
34022         (add_location_or_const_value_attribute): Use it.
34023         Also try to generate a frame_base from a single element location
34024         list.
34026 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
34028         PR tree-optimization/15349
34029         * timevar.def (TV_TREE_MERGE_PHI): New.
34030         * tree-cfg.c (tree_forwarder_block_p): Add a new argument
34031         PHI_WANTED.
34032         (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
34033         calls to tree_forwarder_block_p.
34034         (remove_forwarder_block_with_phi, merge_phi_nodes,
34035         gate_merge_phi, pass_merge_phi): New.
34036         * tree-optimize.c (init_tree_optimization_passes): Add
34037         pass_merge_phi.
34038         * tree-pass.h: Add an extern for pass_merge_phi;
34040 2005-01-20  Richard Henderson  <rth@redhat.com>
34042         PR target/19418
34043         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
34044         (_mm_castps_pd, _mm_castps_si128): New.
34045         (_mm_castsi128_ps, _mm_castsi128_pd): New.
34047 2005-01-20  Richard Henderson  <rth@redhat.com>
34049         PR target/19530
34050         * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
34051         __builtin_ia32_vec_init_v2si.
34052         (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
34053         * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
34054         (ix86_init_mmx_sse_builtins): Create it.
34055         (ix86_expand_builtin): Expand it.
34056         (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
34057         * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
34058         (vec_extractv2si_0, vec_extractv2si_1): New.
34060 2005-01-20  Richard Henderson  <rth@redhat.com>
34062         PR target/16533
34063         * config/i386/i386.c (ix86_expand_push): New.
34064         * config/i386/mmx.md (push<MMXMODE>1): New.
34065         * config/i386/sse.md (push<SSEMODE>1): New.
34066         * config/i386/i386-protos.h: Update.
34068 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
34070         * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
34071         copyright.
34073 2005-01-20  Richard Henderson  <rth@redhat.com>
34075         * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
34076         * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
34078 2005-01-19  Richard Henderson  <rth@redhat.com>
34080         PR target/19350
34081         * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
34082         to V4SFmode in SSE1 fallback load path.
34084 2005-01-19  Richard Henderson  <rth@redhat.com>
34086         * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
34087         in QImode expansion to ix86_expand_vector_set.
34088         (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
34090 2005-01-19  Richard Henderson  <rth@redhat.com>
34092         PR target/19511
34093         * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
34094         subclass of the input class.
34095         (ix86_secondary_memory_needed): Always true for cross-MMX classes.
34096         Always true for cross-SSE1 classes.  Rationalize conditionals.
34097         * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
34098         * config/i386/i386.md (movsi_1): Add MMX/SSE zeros.  Fix alternatives
34099         for SSE1.  Don't check TARGET_INTER_UNIT_MOVES.
34100         (movdi_2): Add MMX/SSE zeros.
34101         (movdi_1_rex64): Likewise.  Don't check TARGET_INTER_UNIT_MOVES.
34102         (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
34103         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
34104         (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
34105         (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
34106         (zero_extendsidi2_rex64_1): Remove.
34107         (MOV0 peephole): Check GENERAL_REG_P.
34109 2005-01-19  Richard Henderson  <rth@redhat.com>
34111         PR target/19427
34112         * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
34113         shufps elements.
34114         (ix86_expand_vector_extract): Likewise.
34116 2005-01-19  Richard Henderson  <rth@redhat.com>
34118         PR middle-end/19304
34119         * expr.c (emit_move_change_mode): New argument force; use
34120         simplify_gen_subreg if true.
34121         (emit_move_via_alt_mode): Merge into ...
34122         (emit_move_via_integer): ... here.
34123         (emit_move_ccmode): Use emit_move_change_mode directly.
34125 2005-01-19  Richard Henderson  <rth@redhat.com>
34127         PR target/19518
34128         * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
34129         (alpha_preferred_reload_class): Handle CONST_VECTOR.
34130         (alpha_emit_set_const_1): Add no_output parameter; don't emit
34131         rtl if true.
34132         (alpha_emit_set_const): Likewise.  Make static.
34133         (alpha_emit_set_long_const): Make static.
34134         (alpha_extract_integer): Split out from alpha_expand_mov.
34135         (alpha_split_const_mov): Likewise.
34136         (alpha_expand_mov): Use them.  Handle CONST_VECTOR.
34137         (alpha_legitimate_constant_p): New.
34138         * config/alpha/alpha-protos.h: Update.
34139         * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
34140         (LEGITIMATE_CONSTANT_P): Re-implement with a function.
34141         * config/alpha/alpha.md (movsi): Add n alternative.
34142         (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
34143         (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
34144         (splitters for all of the above): Use alpha_split_const_mov.
34145         * config/alpha/predicates.md (non_add_const_operand): New.
34146         (non_zero_const_operand): New.
34147         (input_operand): Use alpha_legitimate_constant_p after reload.
34149 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
34151         PR tree-optimization/19038
34152         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
34153         (add_candidate): Add ivs with increment in latch only if
34154         allow_ip_end_pos_p is true.
34155         (determine_iv_cost): Use empty_block_p.
34157 2005-01-19  Daniel Berlin  <dberlin@dberlin.org>
34159         * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
34160         (compute_dominance_frontiers): Ditto.
34162 2005-01-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
34164         PR target/19529
34165         * config/sh/t-rtems: New.
34166         * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
34168 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
34170         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
34171         the offset of the selected field.
34173 2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
34175         * tree-cfg.c (remove_forwarder_block): Fix the check to
34176         prevent a nonlocal label from appearing in the middle of a
34177         basic block.
34179 2005-01-19  Hans-Peter Nilsson  <hp@axis.com>
34181         PR rtl-optimization/19462
34182         * reorg.c (find_end_label): Create return insn only if
34183         current_function_epilogue_delay_list is empty.
34185 2005-01-19  Paolo Bonzini  <bonzini@gnu.org>
34187         * doc/passes.texi: Remove paragraph mentioning new-ra.
34189 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
34191         PR rtl-optimization/15139
34192         * combine.c: Include params.h.
34193         (count_rtxs): New function.
34194         (record_value_for_reg): If replace_rtx would replace at least
34195         2 occurrences of REG in VALUE and TEM is really large, replace REG with
34196         (clobber (const_int 0)) instead of TEM.
34197         * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
34198         * params.h (MAX_LAST_VALUE_RTL): New.
34199         * Makefile.in (combine.o): Depend on $(PARAMS_H).
34200         * doc/invoke.texi (--param max-last-value-rtl=N): Document.
34202         PR c/17297
34203         * c-typeck.c (digest_init): Only call build_vector if all constructor
34204         elements are *_CST nodes.
34205         * gimplify.c (gimplify_init_constructor): Likewise.
34207         PR middle-end/19164
34208         * c-typeck.c (digest_init): Only call build_vector if inside_init
34209         is a CONSTRUCTOR.
34211 2005-01-18  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
34213         * toplev.c (init_asm_output): Remove dead #ifdef.
34215 2005-01-18  Kaz Kojima  <kkojima@gcc.gnu.org>
34217         * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
34219 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
34221         * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
34222         accessing DECL_FUNCTION_CODE.
34223         * dojump.c (do_jump): Likewise.
34224         * gimplify.c (gimplify_call_expr): Likewise.
34225         * predict.c (expr_expected_value): Likewise.
34226         (strip_builtin_expect): Likewise.
34227         * tree-inline.c (estimate_num_insns_1): Likewise.
34228         * tree-ssa-loop-im.c (stmt_cost): Likewise
34229         * fold-const.c (fold): Test for BUILT_IN_NORMAL.
34230         (tree_expr_nonnegative_p): Likewise.
34232 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
34234         * config/sparc/sparc.c (load_pic_register): Emit the appropriate
34235         variant of the load_pcrel_sym pattern.
34236         * config/sparc/sparc.md (P macro): Move to the top.
34237         (load_pcrel_sym): Macroize using P.
34238         (save_register_window): Likewise.
34240 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
34242         * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
34243         ("sordered"): Same.
34245 2005-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
34247         PR C/19472
34248         * c-typeck.c (build_asm_expr): Strip nops off
34249         input memory operands.
34251 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
34253         * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
34254         _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
34255         * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
34256         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
34258 2005-01-18  Joel Sherrill <joel.sherrill@oarcorp.com>
34260         PR target/19379
34261         * config/i386/i386.c (override_options): If the 80387 is disabled,
34262         then do not return FP values using FP registers.
34264 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
34266         * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
34267         c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
34268         combine.c, config.gcc, coverage.h, cse.c, cselib.c,
34269         defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
34270         flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
34271         gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
34272         output.h, postreload-gcse.c, postreload.c, recog.c,
34273         resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
34274         targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
34275         tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
34276         tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
34277         tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
34278         tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
34279         tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
34280         unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
34282         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
34283         config/alpha/alpha.c, config/arm/vfp.md,
34284         config/i386/emmintrin.h, config/i386/i386-modes.def,
34285         config/i386/i386-protos.h, config/i386/i386.h,
34286         config/i386/pmmintrin.h, config/i386/ppro.md,
34287         config/i386/predicates.md, config/i386/xmmintrin.h,
34288         config/i860/i860.c, config/ia64/ia64-modes.def,
34289         config/ia64/ia64-protos.h, config/ia64/ia64.h,
34290         config/ia64/ia64.md, config/ia64/itanium1.md,
34291         config/ia64/itanium2.md, config/ia64/predicates.md,
34292         config/iq2000/iq2000.h, config/mips/linux64.h,
34293         config/rs6000/aix41.h, config/rs6000/aix43.h,
34294         config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
34295         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
34296         config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
34297         config/sparc/linux64.h, config/sparc/litecoff.h,
34298         config/sparc/sp64-elf.h, config/sparc/sparc.c,
34299         config/sparc/sparc.h, config/sparc/sparc.md,
34300         config/sparc/sysv4-only.h: Update copyright.
34302 2005-01-18  Richard Henderson  <rth@redhat.com>
34304         PR target/19496
34305         * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
34307 2005-01-18  Marc Espie  <espie@openbsd.org>
34308         * config/i386/openbsdelf.h: Typo.
34310 2005-01-18  Richard Henderson  <rth@redhat.com>
34312         * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
34313         special case for sse.
34314         * config/i386/predicates.md (sse_comparison_operator): Likewise.
34316 2005-01-18  Dorit Naishlos  <dorit@il.ibm.com>
34318         * tree-inline.c (estimate_num_insns_1): Added cases for
34319         ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
34321 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
34323         PR rtl-optimization/19296
34324         * combine.c (simplify_comparison): Rewrite the condition under
34325         which a non-paradoxical SUBREG of a PLUS can be lifted when
34326         compared against a constant.
34328 2005-01-18  Andi Kleen <ak@muc.de>
34330         * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
34331         * c.opt (-Wpointer-sign): Add.
34332         * doc/invoke.texi: (-Wpointer-sign): Add.
34334 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
34336         * config/i386/i386.c (override_options): Revert 2004-11-24 change.
34337         * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
34338         *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
34339         logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
34340         exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
34341         nearbyintsf2): Disable for TARGET_SSE_MATH.  Leave patterns enabled
34342         for TARGET_MIX_SSE_I387.
34343         (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
34344         sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
34345         atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
34346         log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
34347         floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
34348         (TARGET_SSE2 && TARGET_SSE_MATH).  Leave patterns enabled for
34349         TARGET_MIX_SSE_I387.
34350         (atan2sf3, atan2df3, atan2xf3): Remove register constraints
34351         from expander.
34353 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
34355         PR target/19424
34356         * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
34357         Add movaps alternative for xmm reg->reg move.
34359 2005-01-17  Jeff Law  <law@redhat.com>
34361         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
34362         at the end of the main DOM loop rather than just before DOM exits.
34364 2005-01-17  Diego Novillo  <dnovillo@redhat.com>
34366         PR tree-optimization/19121
34367         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
34368         adding aliases to a name tag, also add them to the pointer's
34369         type tag.
34370         * tree-ssa-copy.c (merge_alias_info): Do not merge flow
34371         sensitive alias info at all.  Only check that the two pointers
34372         have compatible pointed-to sets.
34373         * tree-ssa.c (verify_name_tags): Verify that the alias set of
34374         a pointer's type tag is a superset of the alias set of the
34375         pointer's name tag.
34377 2005-01-17  James E Wilson  <wilson@specifixinc.com>
34379         PR target/19357
34380         * config/ia64/ia64.md (movxf): Handle general register source.  Adjust
34381         comment to document why.
34383 2005-01-17  Richard Henderson  <rth@redhat.com>
34385         * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
34386         sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
34387         sse2_vmsmaxv2df3_finite, sminv2df3_finite,
34388         sse2_vmsminv2df3_finite): New.
34389         (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
34390         sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
34391         Force op1 into register.
34393 2005-01-17  Kelley Cook  <kcook@gcc.gnu.org>
34395         * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
34396         bubblestrap from always rebuilding build directory.
34398 2005-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
34400         * config/s390/s390.md ("*clc"): Remove incorrect '='.
34401         ("*cmpmem_short"): Likewise.
34403 2005-01-17  Steven Bosscher  <stevenb@suse.de>
34405         * basic-block.h: Document BB_* flags.
34406         * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
34407         use an sbitmap instead.
34408         * sched-rgn.c (compute_trg_info): Likewise.
34410 2005-01-17  Richard Sandiford  <rsandifo@redhat.com>
34412         * config.gcc (mips64*-*-linux*): Set the default abi to n32.  Remove
34413         redundant target_cpu_default and extra_parts lines.  Use the default
34414         "from-abi" ISA.
34415         * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
34416         (SUBTARGET_EXTRA_SPECS): Delete.
34417         (DRIVER_SELF_SPECS): Remove architecture lines.  Set the ABI directly.
34418         (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
34419         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
34420         and "n32" for -mabi=n32.
34422 2005-01-17  Ian Lance Taylor  <ian@airs.com>
34424         PR c/5675
34425         * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
34426         fold constant variables into initial values.
34428 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
34430         * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
34432         * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
34433         through the statements backward.
34435 2005-01-17  Ian Lance Taylor  <ian@airs.com>
34437         PR middle-end/13127:
34438         * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
34439         a variable set to the return value of the inlined function.
34441 2005-01-17  Mark Dettinger  <dettinge@de.ibm.com>
34443         * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
34444         when modes are tieable.
34446 2005-01-17  Ranjit Mathew  <rmathew@hotmail.com>
34448         * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
34449         of pthread_create to find out if threads are enabled.
34450         * gthr-posix95.h (__gthread_active_p): Likewise.
34452 2005-01-17  Paolo Bonzini  <bonzini@gnu.org>
34454         * common.opt (-fnew-ra): Remove.
34455         * ra*.*: Remove.
34456         * toplev.h (flag_new_regalloc): Remove.
34457         * Makefile.in (ra*.*): Don't mention.
34458         * passes.c (rest_of_handle_new_regalloc): Remove.
34459         (rest_of_handle_combine, rest_of_compilation): Always consider
34460         flag_new_regalloc as false.
34461         * doc/invoke.texi: Don't document -fnew-ra.
34463 2005-01-17  Paolo Bonzini <bonzini@gnu.org>
34465         * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
34466         last parameter to reg_scan.
34467         * loop.c (loop_optimize): Likewise.
34468         * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
34469         rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
34470         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
34471         rest_of_handle_gcse, rest_of_handle_loop_optimize,
34472         rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
34473         * regclass.c (reg_scan): Likewise, for the declaration.
34474         * rtl.h (reg_scan): Likewise, for the prototype.
34476 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
34478         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
34479         mark_dfs_back_edges.
34481 2005-01-16  Daniel Berlin  <dberlin@dberlin.org>
34483         * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
34484         (compute_avail): Uses don't go in tmp_gen.
34486 2005-01-16  Steven Bosscher  <stevenb@suse.de>
34488         * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
34489         loop to look for a free slot in a page entry.
34491 2005-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34493         PR target/16304
34494         * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
34495         * toplev.c (compile_file): Call process_pending_assemble_output_defs
34496         just before targetm.asm_out.file_end.
34497         * tree.h (process_pending_assemble_output_defs): Declare.
34498         * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
34499         New functions.
34500         (assemble_alias): Defer generation of assembly code for defines when
34501         TARGET_DEFERRED_OUTPUT_DEFS is true.
34502         * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
34503         * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
34504         * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
34506 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34508         PR target/19336
34509         * pa.c (pa_scalar_mode_supported_p): New function.
34510         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
34511         * pa.h (MIN_UNITS_PER_WORD): Add comment.
34513         * pa-protos.h (prefetch_operand): Delete.
34514         (prefetch_cc_operand, prefetch_nocc_operand): New declations.
34515         * pa.c (prefetch_operand): Delete.
34516         (prefetch_cc_operand, prefetch_nocc_operand): New functions.
34517         * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
34518         (PREDICATE_CODES): Delete prefetch_operand.  Add prefetch_cc_operand
34519         and prefetch_nocc_operand.
34520         * pa.md (prefetch): Rework to avoid reload problems handling short
34521         displacements when a cache control completer needs to be provided.
34522         (prefetch_32, prefetch_64): Delete.
34523         (prefetch_cc, prefetch_nocc): New patterns.
34525 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
34527         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
34529 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34531         PR ada/19388
34532         * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
34533         exceeds maximum alignment for global common data.
34534         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
34535         * som.h (MAX_OFILE_ALIGNMENT): Likewise.
34537 2005-01-15  Roger Sayle  <roger@eyesopen.com>
34539         * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
34541 2005-01-15  Roger Sayle  <roger@eyesopen.com>
34543         * harg-reg-set.h (reg_class_names): Prototype global array.
34544         * regclass.c (reg_class_names): Declare here and initialize to
34545         REG_CLASS_NAMES.
34546         (dump_regclass): Remove local declaration of reg_class_names.
34547         (regclass): Likewise.
34548         * cfg.c (dump_flow_info): Likewise.
34549         * ra-debug.c (reg_class_names): Likewise.
34550         * regrename.c (reg_class_names): Likewise.
34551         * reload.c (reg_class_names): Likewise.
34552         * reload1.c (spill_failure): Likewise.
34553         * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
34555 2005-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
34557         * config/s390/s390.md ("reload_outti"): Remove predicate for
34558         output operand.  Abort if operand is not a MEM.
34559         ("reload_outdi", "reload_outdf"): Likewise.
34561 2005-01-15  Marc Espie  <espie@openbsd.org>
34563         * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
34564         (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
34565         * config/openbsd.h: Fix C++ includes for native configurations.
34566         Add proper OS_CPP_BUILTINS.  Fix libspec for recent OpenBSD.
34567         Add trampoline support.
34568         * config/i386/openbsdelf.h: New.
34570 2005-01-15  Marc Espie  <espie@openbsd.org>
34572         * collect2.c (main): Explicitly parse -dynamic-linker option.
34574 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
34576         PR tree-optimization/19060
34577         * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
34578         Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
34579         (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
34580         and handle extract_range_from_cond returning false.
34581         * fold-const.c (fold): Optimize comparisons with min/max even for
34582         width > HOST_BITS_PER_WIDE_INT.
34584 2005-01-15  Ralf Corsepius  <ralf.corsepius@rtems.org>
34586         * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
34587         * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
34588         Remove little endian multilib variants.
34589         Add mips32 multilib variant.
34591 2005-01-15  Kazu Hirata  <kazu@cs.umass.edu>
34593         * explow.c (copy_all_reg, stabilize): Remove.
34594         * expr.h: Remove the corresponding prototypes.
34596         * rtlanal.c (regs_set_between_p): Remove.
34597         * rtl.h: Remove the corresponding prototype.
34599 2005-01-14  David Edelsohn  <edelsohn@gnu.org>
34601         * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
34602         to rs6000_nonimmediate_operand.
34603         * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
34604         rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
34605         * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
34606         rs6000_nonimmediate_operand.
34607         * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
34608         rs6000_nonimmediate_operand.
34610 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
34612         * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
34614 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
34616         * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
34617         on e500v2.
34618         (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
34619         (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
34621         * config/rs6000/rs6000.c (invalid_e500_subreg): New.
34622         (rs6k_nonimmediate_operand): New.
34623         (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
34624         correctly.
34625         (legitimate_lo_sum_address_p): Same.
34626         (rs6000_legitimize_address): Same.
34627         (rs6000_legitimize_reload_address): Same.
34628         (rs6000_legitimate_address): Same.
34629         (spe_build_register_parallel): Pass DF and DC modes in a DI
34630         register.
34632         * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
34633         to rs6k_nonimmediate_operand.
34635         * config/rs6000/spe.md ("*frob_df_di"): New.
34636         ("*frob_di_df"): New.
34637         ("*frob_di_df_2"): New.
34638         ("*mov_sidf_e500_subreg0"): New.
34639         ("*mov_sidf_e500_subreg4"): New.
34640         ("*movdf_e500_double"): Change predicate to
34641         rs6k_nonimmediate_operand.
34643 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
34645         * postreload.c (move2add_note_store): Only call
34646         trunc_int_for_mode on scalar integers.
34648 2005-01-14  Steven Bosscher  <stevenb@suse.de>
34650         * tree-ssa-dce.c (visited_control_parents): New sbitmap to
34651         replace BB_VISITED uses.
34652         (find_obviously_necessary_stmts): Don't clear BB_VISITED.
34653         (propagate_necessity): Check the bitmap instead of BB_VISITED.
34654         (tree_dce_done): Free visited_control_parents.
34655         (perform_tree_ssa_dce): Allocate and clear it.
34656         * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
34657         (compute_antic): Iterate from here using a DFS.  Use an sbitmap
34658         instead of BB_VISITED.
34660 2005-01-14  Kazu Hirata  <kazu@cs.umass.edu>
34662         * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
34663         rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
34664         Remove unused prototypes.
34666 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
34668         * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
34669         64-bit register usage.
34670         (spe_func_has_64bit_regs_p): Add FIXME note.
34672 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
34674         * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
34675         flag_finite_math_only with flag_unsafe_math_optimizations.
34677 2005-01-14  J. D. Johnston  <jjohnst@us.ibm.com>
34679         * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
34680         end-of-stack check.
34681         (__tpf_eh_return): Copy TPF private stack area from the module
34682         boundary stack frame.  Add check for when module addresses are
34683         equal, but no stub address is found.
34685 2005-01-14  Richard Earnshaw  <rearnsha@arm.com>
34687         PR target/7525
34688         * arm.h (struct machine_function): Add call_via field.
34689         (thumb_call_via_label): Declare.
34690         * arm.c (thumb_call_via_label): New variable.
34691         (thumb_call_reg_needed): New variable.
34692         (arm_output_function_epilogue): For Thumb code, output any per-function
34693         call-indirect trampolines.
34694         (thumb_call_via_reg): New function.
34695         (arm_file_end): New function.
34696         (TARGET_ASM_FILE_END): Call arm_file_end.
34697         (aof_file_end): Likewise.
34698         * arm-protos.h (thumb_call_via_reg): Declare.
34699         * arm.md (call_reg_thumb, call_value_reg_thumb): Call
34700         thumb_call_via_reg in normal case.
34702 2005-01-14  Jakub Jelinek  <jakub@redhat.com>
34704         PR middle-end/19084
34705         PR rtl-optimization/19348
34706         * recog.c (peephole2_optimize): Do global life update if some peephole
34707         decides it doesn't need at least one of its inputs and that change
34708         influences liveness at the start of the basic block.
34710         * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
34711         arguments instead of 1.
34713 2005-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
34715         PR middle-end/18820
34716         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
34717         zero for nested functions needing a static chain or functions
34718         with a non-constant address.
34720 2005-01-13  Roger Sayle  <roger@eyesopen.com>
34722         * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
34723         (and (sign_extend X) C) into (zero_extend (and X C)).
34725 2005-01-13  David O'Brien  <obrien@FreeBSD.org>
34727         * config/freebsd-spec.h: Make KSE pthread lib logic the default.
34729 2005-01-13  Richard Henderson  <rth@redhat.com>
34731         PR target/19009
34732         PR target/19250
34733         PR target/19252
34734         * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
34735         bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
34736         not just TARGET_SSE.
34737         (cmpfp_i_387): Rename from cmpfp_i.  Move after sse patterns.
34738         (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
34739         (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
34740         (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
34741         (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
34742         (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
34743         (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
34744         fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
34745         (movdicc_c_rex64): Rename with '*'.
34746         (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
34747         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
34748         (movsfcc_1_387): Rename from movsfcc_1.
34749         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
34750         (movdfcc_1, movdfcc_1_rex64): Add check for 387.
34751         (sminsf3, smaxsf3, smindf3, smaxdf3): New.
34752         (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
34753         mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
34754         maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
34755         sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
34756         sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
34757         sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
34758         sse_movdfcc_const0_4): Remove.
34759         * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
34760         recognize min/max early.  Update for changed sse cmove patterns.
34761         (ix86_split_sse_movcc): New.
34762         * config/i386/i386-protos.h: Update.
34764 2005-01-13  Steven Bosscher  <stevenb@suse.de>
34766         * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
34767         (fix_stmt_v_may_defs): Likewise.
34769 2005-01-13  Richard Henderson  <rth@redhat.com>
34771         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
34772         for converting the mask.
34774 2005-01-13  David Edelsohn  <edelsohn@gnu.org>
34776         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
34777         definition to 600.
34779 2005-01-13  Richard Henderson  <rth@redhat.com>
34781         * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
34782         IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
34783         IX86_BUILTIN_MOVDQ2Q): Remove.
34784         (IX86_BUILTIN_VEC_EXT_V4SI): New.
34785         (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
34786         (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
34787         shuffling.
34788         * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
34789         (sse2_pextrw): Fix immediate constraint.
34790         (sse2_loadq, sse2_loadq_rex64): Remove.
34791         * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
34792         Use __builtin_ia32_vec_ext_<size>.
34793         (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
34795 2005-01-13  Aldy Hernandez  <aldyh@redhat.com>
34797         * function.c (assign_parm_setup_block): Look inside original
34798         entry_parm when inspecting PARALLEL.
34800 2005-01-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
34801             Joel Sherrill  <joel@oarcorp.com>
34803         PR target/19399
34804         * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
34805         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
34806         rtems_gxx_recursive_mutex_init.
34807         (__gthread_recursive_mutex_lock): New function.
34808         (__gthread_recursive_mutex_trylock): Likewise.
34809         (__gthread_recursive_mutex_unlock): Likewise.
34811 2005-01-13  Ralf Corsepius <ralf.corsepius@rtems.org>
34813         * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
34815 2005-01-13  Jan Beulich  <jbeulich@novell.com>
34817         * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
34818         (ashrti3_internal): Indicate output is early clobber. Generate result
34819         into output rather than first input. Use move for low word of output
34820         if shift count is exactly 64.
34821         (lshrti3_internal): Likewise.
34823 2005-01-13  Hans-Peter Nilsson  <hp@bitrange.com>
34825         PR target/18329
34826         PR target/18330
34827         * reload1.c (delete_output_reload): Don't delete an output reload
34828         if the pseudo lives longer than a single basic block.  Adjust and
34829         improve wording of comment.
34831 2005-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
34833         PR target/19334
34834         * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
34835         of TYPE_SIZE where we mean the number of bytes.
34837 2005-01-12  Aldy Hernandez  <aldyh@redhat.com>
34839         * function.c (assign_parm_setup_block): Relax condition on
34840         multi-register optimization.
34842 2005-01-12  Nick Clifton  <nickc@redhat.com>
34844         * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
34845         an "in_delay_slot" attribute of "no" to prevent them being used in
34846         delay slots.  This is forbidden because they might generate
34847         exceptions.
34849 2005-01-12  Alan Modra  <amodra@bigpond.net.au>
34851         PR target/19389
34852         * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
34853         with r->Y and Y->r.
34855 2005-01-12  Nick Clifton  <nickc@redhat.com>
34857         * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
34858         passed on to GAS) but do not define, as GAS no longer supports or
34859         needs the -m2000 option.
34861 2005-01-11  Roger Sayle  <roger@eyesopen.com>
34863         * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
34864         type as args of unprototyped builtins aren't automatically promoted.
34865         (fold_builtin_abs): Likewise.
34867 2005-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
34869         * Makefile.in: Set a `build-warn' variable.
34871 2005-01-11  Zdenek Dvorak  <dvorakz@suse.cz>
34873         PR tree-optimization/17949
34874         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
34875         (find_interesting_uses_address): Use it.
34877 2005-01-11  Aldy Hernandez  <aldyh@redhat.com>
34879         * regrename.c (kill_value): Handle subreg's that won't simplify.
34881 2005-01-11  Richard Henderson  <rth@redhat.com>
34883         PR target/13366
34884         * config/i386/i386.h (enum ix86_builtins): Move ...
34885         * config/i386/i386.c: ... here.
34886         (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
34887         IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
34888         IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
34889         IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
34890         IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD,  IX86_BUILTIN_STOREHPD,
34891         IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
34892         IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
34893         IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
34894         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
34895         IX86_BUILTIN_LOADDDUP): Remove.
34896         (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
34897         IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
34898         IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
34899         IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
34900         IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
34901         (ix86_init_builtins): Make static.
34902         (ix86_init_mmx_sse_builtins): Update for changed builtins.
34903         (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
34904         if all the modes match.  Otherwise, fake it.
34905         (get_element_number, ix86_expand_vec_init_builtin,
34906         ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
34907         (ix86_expand_builtin): Make static.  Update for changed builtins.
34908         (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
34909         operand instead of sse2_loadsd.  Cast sse1 fallback to V4SFmode.
34910         (ix86_expand_vector_init_duplicate): New.
34911         (ix86_expand_vector_init_low_nonzero): New.
34912         (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
34913         Split out from ix86_expand_vector_init; handle integer modes.
34914         (ix86_expand_vector_init): Use them.
34915         (ix86_expand_vector_set, ix86_expand_vector_extract): New.
34916         * config/i386/i386-protos.h: Update.
34917         * config/i386/predicates.md (reg_or_0_operand): New.
34918         * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
34919         (movv2sf_internal): Likewise.  And a splitter to match them all.
34920         (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
34921         vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
34922         vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
34923         vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
34924         (mmx_pinsrw): Fix operand ordering.
34925         * config/i386/sse.md (movv4sf splitter): Use direct pattern,
34926         rather than sse_loadss expander.
34927         (movv2df splitter): Similarly.
34928         (sse_loadss, sse_loadlss): Remove.
34929         (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
34930         (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
34931         (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
34932         (sse3_movddup): Rename with '*'.
34933         (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
34934         (sse2_loadsd): Remove.
34935         (vec_dupv2df_sse3): Rename from sse3_loadddup.
34936         (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
34937         (sse2_pinsrw): Fix argument ordering.
34938         (sse2_loadld, sse2_loadq): Add sse1 alternatives.
34939         (sse2_stored): Remove 'r' destination.
34940         (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
34941         vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
34942         vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
34943         vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
34944         vec_extractv16qi, vec_initv16qi): New.
34946         * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
34947         (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x,
34948         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
34949         constructor form.
34950         (_mm_load_pd, _mm_store_pd): Use plain dereference.
34951         (_mm_load_si128, _mm_store_si128): Likewise.
34952         (_mm_load1_pd): Use _mm_set1_pd.
34953         (_mm_load_sd): Use _mm_set_sd.
34954         (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
34955         (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
34956         (_mm_set_epi64): Use _mm_set_epi64x.
34957         (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
34958         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
34959         _mm_setr_epi8): Use _mm_set_foo form.
34960         (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
34961         (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
34962         (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
34963         (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
34964         * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
34965         (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
34966         (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
34967         (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
34968         (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
34969         * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
34970         (_mm_movedup_pd): Use _mm_shuffle_pd.
34971         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
34972         _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
34973         (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
34974         _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
34975         Use _mm_setzero_ps.
34976         (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
34977         (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
34978         (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
34979         (_mm_store_ps): Use raw dereference.
34980         (_mm_store1_ps): Use _mm_storeu_ps.
34981         (_mm_storer_ps): Use _mm_store_ps.
34982         (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
34983         (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
34985 2005-01-11  Stan Shebs  <shebs@apple.com>
34987         * config/rs6000/rs6000.c (machopic_output_stub): Issue
34988         ldu instead of lwzu if 64-bit -mdynamic-no-pic.
34990 2005-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
34992         PR target/18761
34993         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
34994         Skip all DECLs except for FIELD_DECLs.
34996 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
34998         * config/s390/s390.c (override_options): Return error if
34999         -mbackchain, -mpacked-stack and -mhard-float are used together.
35000         (s390_va_start): Remove the backchain && packed-stack special case.
35001         (s390_gimplify_va_arg): Likewise.
35002         * doc/invoke.texi: Remove the ABI incompatibility note.
35004 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
35006         * config/s390/s390.c (struct s390_frame_layout): Remove
35007         save_backchain_p.
35008         (s390_frame_info, s390_emit_prologue): Replace occurrences of
35009         save_backchain_p with TARGET_BACKCHAIN.
35011 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
35013         PR target/18916
35014         * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
35015         * expr.h (struct locate_and_pad_arg_data): Add "boundary".
35016         * function.c (locate_and_pad_parm): Set new field.
35017         (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
35018         Tweak where_pad test to include "none".  Always set mem align for
35019         stack_parm.
35020         (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
35021         not sufficient for type.
35022         (assign_parm_setup_block): If stack_parm is zero on entry, always
35023         make a new stack local.  Block move old stack parm if necessary
35024         to new aligned stack local.
35025         (assign_parm_setup_stack): Use a block move to handle
35026         potentially misaligned entry_parm.
35027         (assign_parms_unsplit_complex): Specify required alignment when
35028         creating stack local.
35029         * calls.c (compute_argument_addresses): Override alignment of stack
35030         arg calculated from its type with the alignment given by
35031         FUNCTION_ARG_BOUNDARY.
35032         (store_one_arg): Likewise.
35034 2005-01-11  Jan Beulich  <jbeulich@novell.com>
35036         * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
35037         Change respective itanium_class attribute to ialu.
35038         (shladdp4_internal): New.
35039         * config/ia64/predicates.md (shladd_log2_operand): New.
35041 2005-01-11  Richard Henderson  <rth@redhat.com>
35043         * expr.c (store_constructor): Use rtvec_alloc instead of
35044         alloca+gen_rtvec_v, and an incorrect number passed to alloca.
35046 2005-01-11  Kazu Hirata  <kazu@cs.umass.edu>
35048         * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
35050 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
35052         * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
35053         * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
35054         (TARGET_RWRELOC): Define.
35055         (ia64_rwreloc_section_type_flags): Delete.
35056         (ia64_section_type_flags): New function.
35057         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
35058         (TARGET_RWRELOC): Define.
35060 2005-01-10  David Mosberger  <davidm@hpl.hp.com>
35062         PR target/18987
35063         * config/ia64/ia64.c (process_set): For alloc insn, only call
35064         process_epilogue is !frame_pointer_needed.
35066 2005-01-10  Roger Sayle  <roger@eyesopen.com>
35068         PR c++/19355
35069         * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
35070         unary operator and can't be treated as a binary/comparison operator.
35072 2005-01-10  Richard Henderson  <rth@redhat.com>
35074         * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
35075         (ix86_return_in_memory): Likewise.
35076         (function_arg_advance): Likewise.  Mirror structure in function_arg
35077         for choosing register to advance.
35079 2005-01-10  Kazu Hirata  <kazu@cs.umass.edu>
35081         * tree-vectorizer.c, tree.def: Fix comment typos.
35083 2005-01-10  Mark Dettinger  <dettinge@de.ibm.com>
35085         * config/s390/s390.c (struct processor_costs): 4 new fields:
35086         ddbr, ddr, debr, der.
35087         (s390_rtx_costs): More precise handling of divide instructions.
35089 2005-01-10  David Edelsohn  <edelsohn@gnu.org>
35091         * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
35093 2005-01-10  Jan Beulich  <jbeulich@novell.com>
35095         * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
35096         names resulting from -ffunction-sections/-fdata-sections and linkonce
35097         ones.
35098         * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
35099         based on the section name. Rearrange the section name comparison logic
35100         slightly so that each section name is compared against at most once.
35102 2005-01-10  Ben Elliston  <bje@au.ibm.com>
35104         * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
35105         targets for which -fPIC reduces limitations on the GOT size.
35107 2005-01-09  Falk Hueffner  <falk@debian.org>
35109         * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
35110         X/C1 cmpop C2.
35112 2005-01-09  David Edelsohn  <edelsohn@gnu.org>
35114         PR target/18720
35115         * collect2.c (main): Set aixrtl_flag for -brtl option.
35116         (resolve_lib_name): Search for .so file extension before .a
35117         if aixrtl_flag set.
35119 2005-01-09  Dorit Naishlos  <dorit@il.ibm.com>
35121         * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
35122         (vect_analyze_data_refs_alignment): Add dump prints.
35124 2005-01-09  Ira Rosen  <irar@il.ibm.com>
35126         * tree-vectorizer.c (vect_analyze_offset_expr): Use
35127         expr_invariant_in_loop_p.
35128         Initialize outputs first thing in the function.
35129         (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
35130         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
35131         (vect_analyze_pointer_ref_access): Check that the initial condition of
35132         the access function is loop invariant.
35134 2005-01-09  Richard Henderson  <rth@redhat.com>
35136         * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
35137         (ix86_expand_builtin): Likewise.  Frob MASKMOVQ wrt the input mem
35138         just like MASKMOVDQU.  Return plain zero for MMX_ZERO.
35139         * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
35140         mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
35141         movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
35142         movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
35143         sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
35144         ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
35145         mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
35146         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
35147         sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
35148         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
35149         mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
35150         gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
35151         ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
35152         mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
35153         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
35154         mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
35155         eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
35156         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
35157         pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
35158         pswapdv2sf2): Move to mmx.md; rename as necessary with leading
35159         mmx_ prefix.
35160         (mmx_clrdi, pavgusb): Remove.
35161         (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
35162         with leading sse_ prefix.
35163         * config/i386/sse.md: Receive them.
35164         * config/i386/mmx.md: New file.
35165         (MMXMODE12, MMXMODE24, mmxvecsize): New.
35166         (subrv2sf3): Turn into expander for normal subtraction.
35167         (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
35168         mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
35169         mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
35170         mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
35171         commutative; use ix86_binary_operator_ok.
35172         (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
35173         mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
35174         mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
35175         mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
35176         mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
35177         Macroize from existing patterns; use ix86_binary_operator_ok.
35178         (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
35179         (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
35180         mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise.  Model
35181         with vec_select+vec_concat.
35182         (mmx_pshufw, mmx_pshufw_1): Likewise.
35183         (mmx_uavgv8qi3): Merge pavgusb.  Model correcty.
35184         (mmx_uavgv4hi3): Model correctly.
35185         * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
35186         _mm_xor_si64): Remove casts.
35188 2005-01-09  Zdenek Dvorak  <dvorakz@suse.cz>
35190         PR tree-optimization/19224
35191         * tree-scalar-evolution.c (get_instantiated_value,
35192         set_instantiated_value): New functions.
35193         (instantiate_parameters_1): Cache the results.
35194         (instantiate_parameters, resolve_mixers): Initialize and free
35195         the cache.
35197 2005-01-08  David Edelsohn  <edelsohn@gnu.org>
35199         * config/i386/i386.md (addhi_4): Correct reference in comment.
35200         (addqi_4): Same.
35202 2005-01-08  Richard Henderson  <rth@redhat.com>
35204         * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
35205         (_mm_cvtsi128_si64x): Likewise.
35206         (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
35207         _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
35208         the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
35209         * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
35210         * config/i386/i386-protos.h: Update.
35211         * config/i386/i386.c (print_operand): Add 'H'.
35212         (ix86_fixup_binary_operands): Split out from ...
35213         (ix86_expand_binary_operator): ... here.
35214         (ix86_fixup_binary_operands_no_copy): New.
35215         (ix86_expand_fp_absneg_operator): Handle vector mode results.
35216         (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
35217         (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
35218         (safe_vector_operand): Use CONST0_RTX.
35219         (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
35220         (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
35221         CODE_FOR_sse2_maskmovdqu.  Special case SSE version of MASKMOVDQU
35222         expansion.  Update names for sse{,2,3}_ prefixes.  Remove *maskncmp*
35223         special cases.
35224         * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
35225         (IX86_BUILTIN_CMPNGESS): New.
35226         * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
35227         (attr type): Add sselog1.
35228         (attr unit, attr memory): Handle it.
35229         (movti, movti_internal, movti_rex64): Move near other integer moves.
35230         (movtf, movtf_internal): Move near other fp moves.
35231         (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
35232         vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
35233         movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
35234         movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
35235         sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
35236         sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
35237         sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
35238         mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
35239         rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
35240         sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
35241         sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
35242         sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
35243         vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
35244         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
35245         cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
35246         cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
35247         vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
35248         vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
35249         sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
35250         sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
35251         cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
35252         cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
35253         cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
35254         cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
35255         ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
35256         subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
35257         smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
35258         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
35259         sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
35260         sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
35261         gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
35262         ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
35263         ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
35264         sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
35265         sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
35266         sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
35267         sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
35268         sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
35269         sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
35270         sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
35271         mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
35272         addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
35273         movsldup, lddqu, loadddup, movddup): Move to sse.md.  Any with
35274         non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
35275         same time.
35276         (SSEPUSH, push<SSEPUSH>): Remove.
35277         (MMXPUSH, push<MMXPUSH>): Remove.
35278         (sse_movaps, sse_movaps_1, sse_movups): Remove.
35279         (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
35280         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
35281         (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
35282         (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
35283         (maskncmpv2df3, vmmaskncmpv2df3): Remove.
35284         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
35285         (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
35286         * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
35287         (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
35288         * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
35289         (ppro_sse_log_V4SF_load): Similarly.  Handle sselog1.
35290         (ppro_sse_log_V4SF): Handle sselog1.
35291         * config/i386/predicates.md (const_0_to_1_operand): New.
35292         (const_0_to_255_mul_8_operand): New.
35293         (const_1_to_31_operand): Rename from const_int_1_31_operand.
35294         (const_2_to_3_operand, const_4_to_7_operand): New.
35295         * config/i386/sse.md: New file.
35296         (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
35297         (sse_movups): Rename from sse_movups_1.
35298         (sse_loadlss): Rename from sse_loadss_1.
35299         (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
35300         from the name.
35301         (negv4sf2): Use ix86_expand_fp_absneg_operator.
35302         (absv4sf2, negv2df, absv2df): New.
35303         (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
35304         (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
35305         iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
35306         smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
35307         umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
35308         (sse3_addsubv4sf3): Model correctly.
35309         sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
35310         sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
35311         (sse_movhlps): Model with vec_select+vec_concat.
35312         (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
35313         sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
35314         sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
35315         sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
35316         sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
35317         sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
35318         sse2_pshufhw_1): Likewise.
35319         (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
35320         (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
35321         sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
35322         ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
35323         sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
35324         ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
35325         (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
35326         sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
35327         mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
35328         sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
35329         sminv8hi3): Mark commutative
35330         operands.  Use ix86_binary_operator_ok.
35331         (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
35332         sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
35333         sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
35334         sse2_punpcklqdq): Allow operand2 in memory.
35335         (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
35336         sse2_movsd): Add memory alternatives.
35337         (sse_storelps): Turn expander into an insn; split after reload.
35338         (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
35339         (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
35341 2005-01-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
35343         * configure.ac (DWARF-2 debug_line): Use objdump.
35344         * configure: Regenerate.
35346 2005-01-08  Jeff Law  <law@redhat.com>
35347             Diego Novillo  <dnovillo@redhat.com>
35349         PR tree-optimization/18241
35350         * tree-nrv.c (tree_nrv): Ignore volatile return values.
35351         * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
35352         statements with volatile operands.
35353         * tree-ssa-operands.c (add_stmt_operand): Do add volatile
35354         operands after marking a statement with has_volatile_ops.
35356 2005-01-08  Roger Sayle  <roger@eyesopen.com>
35358         * tree.c (int_fits_type_p): Always honor integer constant
35359         TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
35361 2005-01-08  Roger Sayle  <roger@eyesopen.com>
35363         * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
35364         the latent bug in rtl_delete_block has been resolved.
35366 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
35368         * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
35369         (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
35371 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
35373         * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
35374         library as @multilib_dir@/$(SHLIB_SONAME).
35376 2005-01-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
35378         * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
35379         * configure: Regenerate.
35381 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
35383         * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
35384         TYPE_MODE.
35386 2005-01-07  David Edelsohn  <edelsohn@gnu.org>
35388         PR target/13674
35389         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
35390         Convert non-word aligned offset address using ld/std into
35391         indirect address.
35393 2005-01-07  Richard Henderson  <rth@redhat.com>
35395         * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
35397 2005-01-07  Richard SAndiford  <rsandifo@redhat.com>
35399         * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
35401 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
35403         PR tree-optimization/19283
35404         * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
35405         is not shorter than the original type.
35407         PR rtl-optimization/19012
35408         * config/i386/i386.md (addqi_1_slp): Set memory attribute.
35410         PR rtl-optimization/18861
35411         * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
35412         (FULL_STATE): Define.
35413         (mark_tablejump_edge): New function.
35414         (purge_dead_tablejump_edges): New function.
35415         (find_bb_boundaries): Use it.
35417         PR tree-optimization/18828
35418         * builtins.c (expand_builtin_next_arg): Remove argument and all
35419         the argument checking.
35420         (expand_builtin): Adjust caller.
35421         (expand_builtin_va_start): Likewise.  Remove error for too many
35422         arguments.
35423         (fold_builtin_next_arg): Issue error for too many arguments.
35424         After checking arguments, replace them with magic arguments that
35425         prevent further checking of the args.
35427 2005-01-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35429         * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
35431 2005-01-06  Roger Sayle  <roger@eyesopen.com>
35433         PR target/6077
35434         * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
35435         and %{.S:...} (and their negative variants) to test whether the
35436         input file is assembler or pre-processed-assembler independent of
35437         the actual filename extension.
35439 2005-01-06  Roger Sayle  <roger@eyesopen.com>
35441         * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
35442         of sign or zero extended values.
35444 2005-01-06  Geoffrey Keating  <geoffk@apple.com>
35446         * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
35447         for IBM long double format correctly.
35449 2005-01-06  Daniel Berlin <dberlin@dberlin.org>
35451         Fix PR tree-optimization/18792
35453         * tree-data-ref.c (build_classic_dist_vector): Change first_loop
35454         to first_loop_depth, and use loop depth instead of loop number.
35455         (build_classic_dir_vector): Ditto.
35456         (compute_data_dependences_for_loop): Use depth, not loop number.
35457         * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
35458         number. Pass in loops, instead of loop numbers.
35459         (gather_interchange_stats): Ditto.
35460         (linear_transform_loops): Ditto.
35462 2005-01-06  Richard Sandiford  <rsandifo@redhat.com>
35464         PR rtl-opt/13299
35465         * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
35466         biv_fits_mode_p, extension_within_bounds_p): New functions.
35467         (check_ext_dependent_givs): Use them.
35469 2005-01-06  Roger Sayle  <roger@eyesopen.com>
35471         * cfgrtl.c (rtl_delete_block): A basic block may be followed by
35472         more than one barrier, in which case we should delete them all.
35474 2005-01-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
35476         * gcc.c (process_command): Change year in 'gcc --version' to 2005.
35478 2005-01-05  Daniel Berlin  <dberlin@dberlin.org>
35480         Fix PR middle-end/19286
35481         Fix PR debug/19267
35482         * dwarf2out.c (gen_subprogram_die): If we've already tried to
35483         output this subprogram, simply ignore this attempt to do it again.
35484         (add_abstract_origin_attribute): Don't abort trying to add the abstract
35485         origin attribute if it's not possible.
35486         (gen_block_die): Don't ignore subblocks of "unused" blocks.
35487         (decls_for_scope): Ditto.
35488         * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
35489         (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
35491 2005-01-05  Richard Henderson  <rth@redhat.com>
35493         PR target/11327
35494         * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
35495         (bdesc_2arg): Use it.
35496         (ix86_expand_binop_builtin): Force operands into registers
35497         when optimizing.
35498         (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
35499         ix86_expand_sse_compare, ix86_expand_sse_comi,
35500         ix86_expand_builtin): Likewise.
35502 2005-01-05  Richard Henderson  <rth@redhat.com>
35504         * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
35505         and VEC_SELECT.
35506         * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
35507         (mulv4hi3): Set itanium_class mmmul.
35508         (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
35509         (fpack): Rename from fpack_sfsf.
35511 2005-01-05  Richard Henderson  <rth@redhat.com>
35513         PR rtl-opt/10692
35514         * reload1.c (do_input_reload): Restrict the optimization deleteing
35515         a previous output reload to RELOAD_FOR_INPUT.
35517 2005-01-05  Steven Bosscher  <stevenb@suse.de>
35519         * combine.c (expand_compound_operation)  <ZERO_EXTRACT>: Add
35520         comment that we fall through after case.
35521         (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
35522         (distribute_links): Likewise.
35523         * cse.c (cse_insn): Likewise.
35524         * cselib.c (cselib_invalidate_mem): Likewise.
35525         * df.c: Update comments at the top of the file.
35526         (read_modify_subreg_p): Update comments here too.
35527         (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
35528         * flow.c (mark_set_1): Likewise.
35529         (mark_used_regs): Likewise.
35530         * gcse.c (mems_conflict_for_gcse_p): Likewise.
35531         (canon_list_insert): Likewise.
35532         (mark_set): Likewise.
35533         (try_replace_reg): Likewise.
35534         (store_killed_in_insn): Likewise.
35535         * loop.c (count_one_set): Likewise.
35536         (basic_induction_var): Likewise.
35537         * postreload-gcse.c (find_mem_conflicts): Likewise.
35538         * postreload.c (reload_combine_note_store): Likewise.
35539         (move2add_note_store): Likewise.
35540         * reload.c (find_equiv_reg): Likewise.
35541         (mark_referenced_resources): Likewise.
35542         * rtlanal.c (set_noop_p): Likewise.
35543         (note_stores): Likewise.
35544         (note_uses): Likewise.
35545         * sched-deps.c (sched_analyze_1): Likewise.
35546         * sched-rgn.c (check_live_1): Likewise.
35547         (update_live_1): Likewise.
35548         * config/i860/i860.c: Likewise.
35550         * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
35551         an lvalue.
35552         (ZERO_EXTRACT): Mention that this one can be an lvalue.
35554         * doc/rtl.texi: Update documentation for bit-fields and SET.
35556 2005-01-05  Roger Sayle  <roger@eyesopen.com>
35558         * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
35560 2005-01-05  Jan Hubicka  <jh@suse.cz>
35561             Richard Henderson  <rth@redhat.com>
35563         PR target/18910
35564         * config/i386/i386.c (ix86_expand_move): Handle tls symbols
35565         with an offset.
35567 2005-01-05  Richard Henderson  <rth@redhat.com>
35569         PR target/12902
35570         * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
35571         (sse_shufps): Change operand 3 to const_int_operand.
35572         (sse2_storelps): Fix typo in template.
35573         (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
35574         * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
35575         (ix86_expand_builtin): Likewise.
35577 2005-01-05  Julian Brown  <julian@codesourcery.com>
35579         * config/arm/arm.c (arm_return_in_memory): Treat complex types
35580         as aggregates for AAPCS ABIs.
35582 2005-01-05  Stan Shebs  <shebs@apple.com>
35584         * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
35585         Mach-O getters if ppc64.
35586         * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
35587         size argument.
35588         * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
35589         signed four-byte field for global code case.
35590         (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
35592 2005-01-05  Roger Sayle  <roger@eyesopen.com>
35594         PR middle-end/19100
35595         * c-common.c: Include real.h.
35596         (c_common_truthvalue_conversion): Avoid destructively modifying expr.
35597         Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
35598         Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
35599         * Makefile.in (c-common.o): Update dependencies.
35601 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
35603         * c-parse.in (asm_string): Add trailing semicolon.
35605 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
35607         * c-parse.in (asm_string): New.  Don't allow wide strings in
35608         'asm'.
35609         (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
35610         asm_string instead of STRING.
35612 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
35614         * c-typeck.c (constructor_no_implicit): Remove.
35615         (set_designator, process_init_element): Don't check
35616         constructor_no_implicit.
35618 2005-01-05  J"orn Rennecke <joern.rennecke@st.com>
35619             Kaz Kojima  <kkojima@gcc.gnu.org>
35621         PR target/16482
35622         * lcm.c (create_pre_exit): New.
35623         (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
35624         ENTRY_EXIT_EXTRA to 3.  Use create_pre_exit.
35626 2005-01-05  Richard Earnshaw  <rearnsha@arm.com>
35628         * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
35629         -msoft-float in target_float_switch.
35630         * arm.c (arm_override_options): Fix processing of target_float_switch.
35632 2005-01-05  Richard Earnshaw  <rearnsha@arm.com>
35634         * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
35635         preferencing.
35637 2005-01-05  Uros Bizjak  <uros@kss-loka.si>
35639         * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
35640         Replace i387 with 'i386 compiler' in -mfpmath=sse option.
35642 2005-01-04  Roger Sayle  <roger@eyesopen.com>
35644         * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
35645         if deleting the then-block allows the test-block to fallthru to the
35646         else-block.
35648 2005-01-04  Andrew Pinski  <pinskia@physics.uc.edu>
35650         PR c/19152
35651         * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
35652         after the full declaration if the are in two different TUs.
35654 2005-01-04  Richard Henderson  <rth@redhat.com>
35656         PR tree-opt/19158
35657         * tree-sra.c (generate_one_element_init): Just
35658         call gimplify_and_add.
35659         (generate_element_init): Record the
35660         new referenced variables and mark them for renaming
35661         and split out to ...
35662         (generate_element_init_1): This.
35663         (scalarize_init): Don't call push_gimplify_context/
35664         pop_gimplify_context.
35666 2005-01-04  Geoffrey Keating  <geoffk@apple.com>
35668         * toplev.c (get_src_pwd): Handle failure of getpwd().
35670 2005-01-04  Roger Sayle  <roger@eyesopen.com>
35672         * fold-const.c (fold_single_bit_test): Delete unreachable handling
35673         of TRUTH_NOT_EXPR.
35674         (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
35675         all the cases handled by it are inverted by invert_truthvalue.
35677 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
35679         * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
35680         (save_register_windowsi): Likewise.
35682 2005-01-04  Richard Henderson  <rth@redhat.com>
35684         * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
35686 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
35688         PR middle-end/17767
35689         * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
35690         any simplifications of vector mode comparison operators.
35691         * simplify-rtx.c (simplify_relational_operation): Fix variable name.
35693 2005-01-04  Paolo Bonzini  <bonzini@gnu.org>
35694             Devang Patel  <dpatel@apple.com>
35696         PR tree-optimization/18308
35697         * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
35698         the operands before creating a new expression.
35699         * dojump.c (do_jump): Make drop_through_label available
35700         for all cases.  Add expansion of COND_EXPR.
35702 2005-01-04  Ira Rosen  <irar@il.ibm.com>
35704         * tree-vectorizer.c (vect_analyze_offset_expr): Test for
35705         INTEGER_CST instead of TREE_CONSTANT.
35706         (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
35707         instead of TREE_CONSTANT.
35708         (vect_analyze_pointer_ref_access): Test for INTEGER_CST
35709         instead of TREE_CONSTANT.
35711 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
35713         * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
35715 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
35717         PR target/19240
35718         * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
35719         (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
35721 2005-01-03  Richard Henderson  <rth@redhat.com>
35723         * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
35724         (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
35725         fold_convert_const_real_from_real): Split out from ...
35726         (fold_convert_const): ... here.
35728 2005-01-03  Richard Henderson  <rth@redhat.com>
35730         PR target/19235
35731         * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
35732         (mov<MMXMODEI>_internal): Likewise.
35733         (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
35734         Add V2SF case; use it for SSE1; don't use TI.
35735         (movdf_integer): Likewise.
35736         (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
35738 2005-01-03  Ira Rosen  <irar@il.ibm.com>
35740         * tree-vectorizer.c (vect_strip_conversions): New function.
35741         (vect_analyze_offset_expr): Call vect_strip_conversions. Add
35742         check for binary class.
35744 2005-01-03  Daniel Berlin  <dberlin@dberlin.org>
35746         Fix PR debug/17924
35747         Fix PR debug/19191
35748         * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
35749         is a decl.
35750         * gimple-low.c (mark_blocks_with_used_vars): New function.
35751         (mark_blocks_with_used_subblocks): Ditto.
35752         (mark_used_blocks): Ditto.
35753         (pass_mark_used_blocks): New pass.
35754         * tree-inline.c: Include debug.h.
35755         (expand_call_inline): Call outlining_inline_function here.
35756         * tree-optimize.c (init_tree_optimization_passes): Add
35757         pass_mark_used_blocks.
35758         * tree-pass.h (pass_mark_used_blocks): New.
35759         * Makefile.in (tree-inline.o): Add debug.h dependency.
35761 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
35763         * config/darwin.c (darwin_handle_weak_import_attribute): Permit
35764         VAR_DECLs to have weak_import attribute.
35766         * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
35767         'struct ucontext'.
35769 2005-01-03  Steven Bosscher  <stevenb@suse.de>
35771         * passes.c (rest_of_compilation): Don't run regmove if only
35772         flag_expensive_optimizations, require flag_regmove instead.
35774 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
35776         * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
35777         register "sparc".
35778         * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
35779         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
35780         * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
35781         * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
35783 2005-01-03  Richard Henderson  <rth@redhat.com>
35785         * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
35786         (ia64_const_ok_for_letter_p): New.
35787         (ia64_const_double_ok_for_letter_p): New.
35788         (ia64_extra_constraint): New.
35789         (ia64_expand_vecint_compare): New.
35790         (ia64_expand_vcondu_v2si): New.
35791         (ia64_expand_vecint_cmov): New.
35792         (ia64_expand_vecint_minmax): New.
35793         (ia64_print_operand): Add 'v'.
35794         (ia64_preferred_reload_class): New.
35795         (ia64_vector_mode_supported_p): New.
35796         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
35797         (PREFERRED_RELOAD_CLASS): Move to function.
35798         (CONST_OK_FOR_LETTER_P): Move to function.
35799         (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
35800         (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
35801         (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
35802         (EXTRA_CONSTRAINT): Move to function.
35803         * config/ia64/ia64.md: Include vect.md.
35804         (itanium_class): Add mmalua.
35805         (type): Handle it.
35806         * config/ia64/itanium1.md (1_mmalua): New.  Add it to bypasses.
35807         (1b_mmalua): New.
35808         * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
35809         * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
35810         CONST0_RTX.
35811         (const_int_2bit_operand): New.
35812         (fr_reg_or_0_operand): New.
35813         * config/ia64/ia64-modes.def: Add vector modes.
35814         * config/ia64/ia64-protos.h: Update.
35815         * config/ia64/vect.md: New file.
35817 2005-01-03  Richard Henderson  <rth@redhat.com>
35819         * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
35821 2005-01-03  Uros Bizjak  <uros@kss-loka.si>
35823         PR target/19236
35824         * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
35825         to SFmode.
35826         (log1pdf2): Change mode of operands[0,1] to DFmode.
35828 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
35830         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
35831         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
35832         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
35833         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
35834         SPARC_RELAXED_ORDERING.
35836 2005-01-03  Richard Henderson  <rth@redhat.com>
35837             Uros Bizjak  <uros@kss-loka.si>
35839         PR target/14631
35840         * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
35841         IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
35842         * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
35843         handling.
35844         (*mmx_pinsrw, *sse2_pinsrw): New patterns.
35845         * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
35846         const_pow2_1_to_128_operand): New predicates.
35848 2005-01-02  Greg McGary  <greg@mcgary.org>
35850         * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
35851         anonymous decls.
35852         (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
35853         object.  [ptr_type]: Remove unused variable.
35854         Remember nearest addressable array-element or record-component
35855         when checking bitfield components.  Tolerate empty BIND_EXPR.
35857 2005-01-01  Richard Henderson  <rth@redhat.com>
35859         * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
35860         that don't narrow the value.  Fail for other conversions.
35862 2005-01-01  Richard Henderson  <rth@redhat.com>
35864         PR c/19031
35865         * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
35866         * c-lang.c (finish_file): Don't do it here.
35867         * objc/objc-act.c (objc_finish_file): Likewise.
35869         * cgraph.c (decl_assembler_name_equal): New.
35870         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
35871         (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
35872         * cgraph.h (struct cgraph_varpool_node): Add next.
35873         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
35874         * varasm.c (assemble_alias): Mark the target as needed.
35876 2005-01-01  Andrew Pinski  <pinskia@physics.uc.edu>
35878         PR middle-end/19221
35879         * function.c (get_arg_pointer_save_area): Use entry_of_function
35880         instead of get_insns.
35882 2005-01-01  Roger Sayle  <roger@eyesopen.com>
35883             Andrew Pinski  <pinskia@physics.uc.edu>
35884             James E. Wilson  <wilson@specifixinc.com>
35886         PR rtl-optimization/12092
35887         * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
35888         is zero.
35890 2005-01-01  Roger Sayle  <roger@eyesopen.com>
35891             Olivier Hainque  <hainque@act-europe.fr>
35893         * tree.c (int_fits_type_p): A narrower type always fits in a
35894         wider one, except for negative values into unsigned types.
35896 2005-01-01  Roger Sayle  <roger@eyesopen.com>
35898         * tree.c (int_fits_type_p): Compare the result of force_fit_type
35899         with the original constant rather than require TREE_OVERFLOW.
35901 2005-01-01  Steven Bosscher  <stevenb@suse.de>
35903         PR middle-end/17544
35904         * c-decl.c (finish_function): If compiling C99, annotate the
35905         compiler generated return with the current file name and line 0.
35906         * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
35907         the source line is greater than 0.
35908         (remove_bb): Likewise.
35911 Copyright (C) 2005 Free Software Foundation, Inc.
35913 Copying and distribution of this file, with or without modification,
35914 are permitted in any medium without royalty provided the copyright
35915 notice and this notice are preserved.