* src/sh/sysv.S: Fix register numbers in the FDE for
[official-gcc.git] / gcc / ChangeLog-2005
blob78c97092827f7036b53f10bb04b2b82ca80767a8
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.
231         
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         PLUX_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.
570         
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.
698         
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.
1259         
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         * gcc/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.
1620         
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         * gcc/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>
2595         
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.
2643         
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.
2674         
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         * gcc/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         * gcc/c.opt: Add a -lang-fortran option.
5025         * gcc/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  Steve Ellcey  <sje@cup.hp.com>
5883         PR target/12098
5884         * configure.ac: Move gas check from mips specific case to common case.
5885         Do check for GNU as for mips*-*-* and *-*-hpux* targets.
5886         * configure: Regenerate
5887         * doc/install.texi: Update.
5889 2005-10-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
5891         PR target/24284
5892         * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
5894 2005-10-10  Maciej W. Rozycki  <macro@linux-mips.org>
5896         * gcc.c (do_spec_1): Accept numeric characters in file name
5897         suffixes.
5899 2005-10-10  Nick Clifton  <nickc@redhat.com>
5901         * config/arm/arm.c: Remove extraneous whitespace.  Remove comment
5902         describing the deleted arm_gen_rotated_half_load function.
5904 2005-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
5906         * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
5907         __fpscr_values.
5909 2005-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
5911         * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
5912         gnu_ld assignments.
5913         * config/arm/t-linux-eabi (LIB1ASMFUNCS)
5914         (EXTRA_MULTILIB_PARTS): Define.
5915         * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
5916         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
5917         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
5918         * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
5919         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
5920         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
5922 2005-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
5924         PR tree-optimization/24226
5925         * tree-cfg.c (remove_bb): Clean up unreachable loops.
5926         * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
5927         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
5928         Export.
5930 2005-10-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
5932         * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
5934 2005-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
5936         PR target/24136
5937         * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
5938         Rewrite for no need for the early clobber.
5940 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
5942         Merge from csl-arm-branch:
5943         2005-09-07  Paul Brook  <paul@codesourcery.com>
5944         * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
5945         space to string.
5947         2005-04-30  Paul Brook  <paul@codesourcery.com>
5948         * config/arm/bpabi.h (TARGET_DEFAULT): Define.
5949         * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
5951         2005-03-07  Daniel Jacobowitz  <dan@codesourcery.com>
5952         * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
5953         (arm_override_options): Use TARGET_AAPCS_BASED.
5954         * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
5955         (PTRDIFF_TYPE): Use int for AAPCS.
5956         (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
5957         * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
5958         (DEFAULT_SHORT_ENUMS): Delete.
5959         * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
5961         2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
5962         * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
5963         * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
5964         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
5966         2004-12-03  Mark Mitchell  <mark@codesourcery.com>
5967         * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
5969         2004-11-22  Mark Mitchell  <mark@codesourcery.com>
5970         * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
5972         2004-11-19  Mark Mitchell  <mark@codesourcery.com>
5973         * config.gcc (arm*-*-linux-gnueabi): Add it.
5974         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
5975         redefining it.
5976         (TARGET_OS_CPP_BUILTINS): Likeiwse.
5977         * config/arm/linux-eabi.h: New file.
5978         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
5979         (LINUX_TARET_LINK_SPEC): Likewise.
5980         (LINK_SPEC): Use it.
5981         * config/arm/t-linux-eabi: New file.
5983 2005-10-08  Steven Bosscher  <stevenb@suse.de>
5985         PR other/22202
5986         * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
5987         spaces.
5988         (PARAM_SMS_DFA_HISTORY): Likewise.
5990 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
5992         PR middle-end/23150
5993         * calls.c (mem_overlaps_already_clobbered_arg_p): New.
5994         (load_register_parameters): Call it.
5995         (check_sibcall_argument_overlap_1): Likewise.
5996         (store_one_arg): Likewise.
5998 2005-10-07  James E. Wilson  <wilson@specifix.com>
6000         * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
6001         DImode not VECINT24 for operand 2.
6003         PR target/23644
6004         * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
6005         -mtune-arch.
6007         PR target/24193
6008         * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
6009         fr_spill): Use destination_operand for operand 0.
6011 2005-10-07  DJ Delorie  <dj@redhat.com>
6013         * varasm.c (output_constant): Limit error to expanding
6014         conversions.
6016 2005-10-07  Richard Guenther  <rguenther@suse.de>
6018         PR middle-end/24227
6019         * fold-const.c (fold_binary): Fix operand types during folding
6020         of X op (A, Y).  Evaluation order of the side-effects of
6021         X and A are frontend-defined, so ensure we honour that even for
6022         tcc_comparison class operands; eased by removing duplicate code.
6024 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
6026         * stor-layout.c (layout_type): Do not allow alignment of array
6027         elements to be greater than their size.
6029 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
6031         * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
6032         host_xmake_file.
6033         (hppa*-*-linux*): Ditto.
6034         (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
6035         * config/host-hpux.c: New.
6036         * config/x-hpux: New.
6037         * config/pa/x-hpux: Remove.
6038         * config/pa/x-linux: Remove.
6039         * config/pa/pa-host.c: Remove.
6041 2005-10-07  Jeff Law  <law@redhat.com>
6043         * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
6044         determine whether or not to try and thread outgoing edges.
6046 2005-10-07  David Edelsohn  <edelsohn@gnu.org>
6048         * config/rs6000/rs6000.md (eqsi_power): New.
6049         (neg_eq0si): Add TARGET_POWER to final condition.
6050         (neg_eqsi): Same.
6052 2005-10-06  Richard Henderson  <rth@redhat.com>
6054         * config/rs6000/rs6000.c: Revert last change.
6056 2005-10-06  Richard Henderson  <rth@redhat.com>
6058         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
6059         (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
6061 2005-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
6063         PR middle-end/22216
6064         PR middle-end/23651
6065         * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
6066         out return_label and naked_return_label.
6068 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
6070         * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
6071         change.
6073 2005-10-06  Richard Henderson  <rth@redhat.com>
6075         PR tree-opt/22237
6076         * tree-inline.c (declare_return_variable): Handle modify_dest not
6077         being a DECL.
6079 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
6081         Fix PR tree-optimization/22488
6082         * tree-ssa-structalias.c (check_for_overlaps): New function.
6083         (create_variable_info_for): Use it.
6085 2005-10-06  Richard Henderson  <rth@redhat.com>
6087         PR debug/24070
6088         * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
6089         (dwarf2out_start_source_file): Print it.
6091 2005-10-06  Geoffrey Keating  <geoffk@apple.com>
6093         * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
6095 2005-10-06  Richard Henderson  <rth@redhat.com>
6097         PR 23706
6098         * mode-switching.c (optimize_mode_switching): Clear transp bit
6099         for block with incomming abnormal edges.
6101         * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
6102         (fpscr_set_from_mem): Use them.
6103         * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
6104         (fpscr postinc splitters): Rewrite as peephole2+split.
6106 2005-10-06  David Edelsohn  <edelsohn@gnu.org>
6108         * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
6109         (eq<mode>_compare): Same.
6111 2005-10-06  Richard Guenther  <rguenther@suse.de>
6113         PR tree-optimization/24238
6114         * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
6116 2005-10-06  Daniel Jacobowitz  <dan@codesourcery.com>
6118         * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
6119         here.  Use AC_PATH_PROG for environment variables instead of
6120         test -x.
6121         * configure.ac: Update calls to gcc_AC_CHECK_TOOL.  Use it for
6122         objdump also.
6123         * configure: Regenerated.
6125 2005-10-06  Richard Earnshaw  <richard.earnshaw@arm.com>
6127         PR target/23783
6128         * arm.md (call): If the address isn't a SYMBOL_REF or a register,
6129         then force it into a register.
6130         (call_value): Likewise.
6132 2005-10-06  Richard Henderson  <rth@redhat.com>
6134         PR 24049
6135         * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
6136         under pass_vectorize.  Clear TODO_ggc_collect from the dce pass
6137         under pass_vectorize.
6139 2005-10-05  Devang Patel  <dpatel@apple.com>
6141         PR Debug/23205
6142         * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
6143         handling constants. Check NAMESPACE_DECL context for constants.
6145 2005-10-05  Eric Christopher  <echristo@apple.com>
6147         * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
6149 2005-10-05  Richard Henderson  <rth@redhat.com>
6151         PR 23714
6152         * tree-cfg.c (mark_array_ref_addressable_1): New.
6153         (mark_array_ref_addressable): New.
6154         * tree-flow.h (mark_array_ref_addressable): Declare.
6155         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
6157 2005-10-05  Andrew Pinski  <pinskia@physics.uc.edu>
6159         PR middle-end/20606
6160         PR middle-end/24069
6161         * reload.c (subst_reloads): When adding a REG_LABEL to a
6162         jump instruction, also update JUMP_LABEL.
6164 2005-10-05  David Edelsohn  <edelsohn@gnu.org>
6166         * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
6167         * bb-reorder.c (copy_bb_p): Use it.
6168         * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
6170 2005-10-05  Richard Henderson  <rth@redhat.com>
6172         PR target/23602
6173         * toplev.c (process_options): Warn about unsupported combinations
6174         of unwind tables and omit-frame-pointer.
6175         * config/i386/i386.c (override_options): Similarly.  Enable
6176         accumulate-outgoing-args if not explicitly disabled.
6178 2005-10-05  Steve Ellcey  <sje@cup.hp.com>
6180         * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
6181         Handle big endian vs. small endian.
6182         (vec_initv2sf): Handle big endian vs. small endian.
6183         (*vec_extractv2sf_1): Ditto.
6185 2005-10-05  Dale Johannesen  <dalej@apple.com>
6187         * convert.c (convert_to_real):  Don't convert
6188         (float)floor(double d) to floorf((float)d).
6190 2005-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
6192         * config/arm/arm.md (insv): Use gen_int_mode in more places.
6194 2005-10-05  Andrew MacLeod  <amacleod@redhat.com>
6196         PR tree-optimization/18587
6197         * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
6198         (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
6199         build_vuses): Change to VEC type.
6200         (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
6201         opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
6202         opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
6203         opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
6204         (get_name_decl): New.  Return DECL_UID of base variable.
6205         (operand_build_cmp): New.  qsort comparison routine.
6206         (operand_build_sort_virtual): New.  Sort virtual build vector.
6207         (init_ssa_operands, fini_ssa_operands): Use VEC routines.
6208         (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
6209         (FINALIZE_BASE): Use get_name_decl.
6210         (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
6211         finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
6212         (start_ssa_stmt_operands, append_def, append_use, append_vuse,
6213         append_v_may_def, append_v_must_def): Replace opbuild_* routines with
6214         direct VEC_* manipulations.
6215         (build_ssa_operands): Call operand_build_sort_virtual.
6216         (copy_virtual_operand, create_ssa_artficial_load_stmt,
6217         add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
6218         with direct VEC_* manipulations.
6219         * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
6220         with direct VEC manipulations.
6222 2005-10-05  Paolo Bonzini  <bonzini@gnu.org>
6224         PR tree-optimization/21419
6225         PR tree-optimization/24146
6226         PR tree-optimization/24151
6228         * c-typeck.c (readonly_error): Handle USE being lv_asm.
6229         (build_asm_expr): Call it if outputs are read-only.
6230         * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
6232 2005-10-05  Billy Biggs  <billy.biggs@gmail.com>
6233             Paolo Bonzini  <bonzini@gnu.org>
6235         PR target/23809
6237         * doc/extend.texi (x86 Built-ins): Document that -msse and friends
6238         enable the instructions and not just the built-ins.
6239         * doc/invoke.texi (x86 Options): Likewise.
6241 2005-10-04  Geoffrey Keating  <geoffk@apple.com>
6243         * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
6245         * doc/invoke.texi (Option Summary): Correct spelling
6246         of -mmacosx-version-min.
6248 2005-10-04  Devang Patel  <dpatel@apple.com>
6250         * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
6251         real types.
6253 2005-10-04  Steve Ellcey  <sje@cup.hp.com>
6255         * tree-vect-transform.c (vect_create_epilog_for_reduction):
6256         Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
6258 2005-10-04  Adrian Straetling  <straetling@de.ibm.com>
6260         * config/s390/s390.md ("TDSI","DP"): New mode macros.
6261         ("TE","tg"): New mode attributes.
6262         ("sync_compare_and_swap<mode>"): Replace with a define_expand.
6263         ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
6264         ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
6265         dword_mode and one for GPRmode.
6267 2005-10-04  Ian Lance Taylor  <ian@airs.com>
6269         PR preprocessor/13726
6270         * c-ppoutput.c (cb_include): Add comments parameter, and print out
6271         any comments passed in.
6273 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
6275         * tree.c (annotate_with_file_line): Fix typo.
6277 2005-10-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6279         PR ada/19382
6280         * builtins.c (fold_builtin_memcmp): When constructing the pointer
6281         type used to access data in the inlined length == 1 case, use
6282         build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
6283         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
6285 2005-10-04  Uros Bizjak  <uros@kss-loka.si>
6287         * config/i386/i386.h (TARGET_FISTTP): Enable also for
6288         TARGET_SSE3 and only for TARGET_80387.
6289         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
6290         (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
6291         Do not depend on TARGET_80387.
6293 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
6295         * tree.c (last_annotated_node): Change type to location_t*.
6296         (annotate_with_file_line): Reflect the change of
6297         last_annotated_node type.
6299 2005-10-04  Richard Guenther  <rguenther@suse.de>
6301         PR c/23576
6302         * c-decl.c (grokdeclarator): Don't write to fields
6303         of error_mark_node.
6305 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
6307         PR middle-end/23125
6308         * c-decl.c (finish_decl): Use set_user_assembler_name even for
6309         register variables.
6310         * varasm.c (make_decl_rtl): If a register variable does not
6311         have a set user assmbler name, error out.
6312         Decode the asmspec is now name+1 bypassing '*'.
6314 2005-10-04  Steven Bosscher  <stevenb@suse.de>
6316         PR tree-optimization/23049
6317         * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
6318         of a COND_EXPR is folded before calling fold on the whole rhs of a
6319         conditional assignment.
6320         * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
6321         document that a COND_EXPR may appear there.
6323 2005-10-03  Diego Novillo  <dnovillo@redhat.com>
6325         PR 23445
6326         * tree-vrp.c (extract_range_from_assert): If the new numeric
6327         range created out of the assertion contradicts the existing
6328         numeric range of the ASSERT_EXPR variable, make the new range
6329         varying.
6331 2005-10-03  Kaz Kojima  <kkojima@gcc.gnu.org>
6333         * config/sh/sh.c (sh_register_move_cost): Add case for moving
6334         from T_REGS to FP register class.
6336 2005-10-03  Richard Henderson  <rth@redhat.com>
6338         PR 24135
6339         * tree-nested.c (convert_nl_goto_reference): Lookup a translation
6340         before creating a new one.
6342 2005-10-03  David Edelsohn  <edelsohn@gnu.org>
6344         * config/rs6000/t-aix43 (LDFLAGS): New.
6345         * config/rs6000/t-aix52 (LDFLAGS): New.
6347 2005-10-03  Ian Lance Taylor  <ian@airs.com>
6349         * gimplify.c (find_single_pointer_decl_1): New static function.
6350         (find_single_pointer_decl): New static function.
6351         (internal_get_tmp_var): For a formal variable, set restrict base
6352         information if appropriate.
6353         * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
6354         return it.
6355         * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
6356         (DECL_GET_RESTRICT_BASE): Define.
6357         (SET_DECL_RESTRICT_BASE): Define.
6358         (decl_restrict_base_lookup): Declare.
6359         (decl_restrict_base_insert): Declare.
6360         (struct tree_decl_with_vis): Add based_on_restrict_p field.
6361         * tree.c (restrict_base_for_decl): New static variable.
6362         (init_ttree): Initialize restrict_base_for_decl.
6363         (copy_node_stat): Copy restrict base information.
6364         (decl_restrict_base_lookup): New function.
6365         (decl_restrict_base_insert): New function.
6366         (print_restrict_base_statistics): New static function.
6367         (dump_tree_statistics): Call print_restrict_base_statistics.
6369 2005-10-02  Diego Novillo  <dnovillo@redhat.com>
6371         PR 24142
6372         * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
6373         case of anti-ranges.
6375 2005-10-02  Andrew Pinski  <pinskia@physics.uc.edu>
6377         PR c/18851
6378         * c-typeck.c (tagged_tu_seen): Rename to ...
6379         (tagged_tu_seen_cache): this and add val field.
6380         (comptypes): Move functional to comptypes_internal
6381         and free tagged_tu_seen.
6382         (comptypes_internal): New function and call comptypes_internal
6383         instead of comptypes. Speed up by sibcalling
6384         tagged_types_tu_compatible_p.
6385         (alloc_tagged_tu_seen): New function
6386         (free_all_tagged_tu_seen_up_to): New function.
6387         (tagged_types_tu_compatible_p): Return the val of the seen two
6388         types.
6389         Add that the two types are the same to tagged_tu_seen_base
6390         if they are and call comptypes_internal instead of comptypes.
6391         <case UNION_TYPE>: Speed up common type where the fields are
6392         in the same order.
6393         (function_types_compatible_p): Call comptypes_internal instead of
6394         comptypes.
6395         (type_lists_compatible_p): Likewise.
6396         (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
6398 2005-10-02  Matthias Klose  <doko@debian.org>
6400         * doc/invoke.texi: Fix typo and speling error.
6402 2005-10-01  Richard Henderson  <rth@redhat.com>
6404         * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
6406 2005-10-01  Mark Mitchell  <mark@codesourcery.com>
6408         * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
6409         using --start-group and --end-group.
6411 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
6413         * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
6414         FIXME note regarding quirky semantics.
6416 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
6418         PR 24141
6419         * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
6420         non-null range as a last resort.
6422 2005-10-01  James A. Morrison  <phython@gcc.gnu.org>
6423             Diego Novillo  <dnovillo@redhat.com>
6425         PR 23604
6426         * tree-vrp.c (extract_range_from_assert): For !=
6427         assertions, only build an anti-range if LIMIT is a
6428         single-valued range.
6430 2005-09-30  Richard Earnshaw  <richard.earnshaw@arm.com>
6432         * arm.md (movqi): On thumb when optimizing, handle loading from
6433         memory by describing this as taking a subreg of a zero-extended load
6434         into an SImode register.
6435         (movhi): Likewise.
6437 2005-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
6439         * reload1.c (merge_assigned_reloads): Do not change any
6440         RELOAD_FOR_OUTPUT_ADDRESS reloads.
6442 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
6444         * Makefile.in (LIPO_FOR_TARGET): Define.
6445         (STRIP_FOR_TARGET): Define.
6447         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
6448         before creating new ones.  Do symlinks before creating the actual
6449         targets.
6451         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
6452         to work out which multilibs are actually being built.
6454 2005-09-30  Kazu Hirata  <kazu@codesourcery.com>
6456         * tree-vect-transform.c, config/ms1/ms1.md,
6457         config/s390/s390.c, config/v850/v850.md: Fix comment typos.
6458         Follow spelling conventions.
6459         * doc/invoke.texi, doc/md.texi: Fix typos.
6461 2005-09-30  Andrew Macleod  <amacleod@redat.com>
6463         PR tree-optimization/21430
6464         * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
6465         use operands, and set stmt pointer if need be.
6466         (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
6467         tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
6468         present.
6470 2005-09-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6472         PR middle-end/24053
6473         * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
6475 2005-09-29  Mark Mitchell  <mark@codesourcery.com>
6477         * optabs.c (expand_binop): Initialize first_pass_p.
6479 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
6481         PR middle-end/24109
6482         * c-decl.c (c_write_global_declarations_1): If any
6483         wrapup_global_declaration_2 call returned true, restart the loop.
6485 2005-09-29  Daniel Berlin  <dberlin@dberlin.org>
6487         Fix PR tree-optimization/24117
6488         * tree-ssa-structalias.c (find_func_aliases): Strip nops
6489         before considering whether to use anyoffset.
6491 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
6493         Revert this patch:
6495         2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
6497         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
6498         to order operands.
6499         (swap_commutative_operands_with_target): New.
6501 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
6503         PR c/21419
6504         * gimplify.c (gimplify_asm_expr): Raise an error if an output is
6505         read-only.
6507 2005-09-29  Steven Bosscher  <stevenb@suse.de>
6509         PR tree-optimization/23911
6510         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
6511         and IMAGPART_EXPR too.
6513 2005-09-28  Mark Mitchell  <mark@codesourcery.com>
6515         PR 17886
6516         * expmed.c (expand_shift): Move logic to reverse rotation
6517         direction when  rotating by constants ...
6518         * optabs.c (expand_binop): ... here.
6519         * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
6520         (ix86_rotrdi3): New pattern.
6521         (rotldi3): Handle 32-bit mode.
6522         (ix86_rotldi3): New pattern.
6524 2005-09-29  Alan Modra  <amodra@bigpond.net.au>
6526         PR target/24102
6527         * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
6528         check for numbers that need no bit twiddle.
6530 2005-09-28  Geoffrey Keating  <geoffk@apple.com>
6532         * config/rs6000/t-darwin8: Uncomment contents, allow -m64
6533         multilib to be built.
6535         * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
6536         (stage1-start): Delete old libgcc and libunwind before moving
6537         anything into the stage directory.
6538         (stage2-start): Likewise.
6539         (stage3-start): Likewise.
6540         (stage4-start): Likewise.
6541         (stageprofile-start): Likewise.
6542         (stagefeedback-start): Likewise.
6543         * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
6544         header in tm_file and CPU-specific t-darwin in tmake_file.
6545         (i[34567]86-*-darwin*): Don't change tm_file.
6546         (powerpc-*-darwin*): Don't change tm_file or tmake_file.
6547         * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
6548         shared library stub for target OS version.
6549         * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
6550         (SHLIB_LINK): Don't make SHLIB_SOLINK.
6551         (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
6552         (libgcc_s.%.dylib): New.
6553         (LIBGCC): Define.
6554         (install-darwin-libgcc-stubs): New.
6555         (INSTALL_LIBGCC): New append.
6556         * config/i386/darwin-libgcc.10.4.ver: New.
6557         * config/i386/darwin-libgcc.10.5.ver: New.
6558         * config/i386/t-darwin: New.
6559         * config/rs6000/darwin-libgcc.10.4.ver: New.
6560         * config/rs6000/darwin-libgcc.10.5.ver: New.
6561         * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
6562         * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
6564 2005-09-28  Paul Brook  <paul@codesourcery.com>
6566         * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
6567         denormals.
6569 2005-09-28  Richard Guenther  <rguenther@suse.de>
6571         PR tree-optimization/23853
6572         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
6573         host_integerp to verify misalignment value.
6575 2005-09-28  Richard Henderson  <rth@redhat.com>
6577         * builtins.c (get_builtin_sync_mode): New.
6578         (expand_builtin_sync_operation): Pass in mode argument.
6579         (expand_builtin_compare_and_swap): Likewise.
6580         (expand_builtin_lock_test_and_set): Likewise.
6581         (expand_builtin_lock_release): Likewise.
6582         (expand_builtin): Update to match.
6584 2005-09-28  Nick Clifton  <nickc@redhat.com>
6586         * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
6587         formatting.  Add check to PLUS case to ensure that the offset is
6588         within an acceptable range.
6590         * config/v850/v850.md (casesi): Disable the generation of the
6591         switch pattern as it is not being handled properly at the moment.
6593         * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
6594         for when the high words are identical.
6596 2005-09-27  Richard Henderson  <rth@redhat.com>
6598         * pretty-print.c (pp_base_format): Fix typo for %>.
6600 2005-09-27  Daniel Berlin  <dberlin@dberlin.org>
6601             Devang Patel  <dpatel@apple.com>
6603         PR tree-optimization/23625
6604         * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
6605         LABEL_EXPR, assertion check.
6607 2005-09-27  J"orn Rennecke <joern.rennecke@st.com>
6609         * optabs.c (no_conflict_move_test): Check if a result of a
6610         to-be-moved insn would be clobbered by an originally
6611         preceding insn.
6613 2005-09-27  Jeff Law  <law@redhat.com>
6615         * passes.c (init_optimization_passes): Replace copy propagation
6616         passes immediately after DOM with phi-only copy propagation
6617         pases.  Add phi-only copy propagation pass after first DOM pass.
6618         * tree-pass.h (pass_phi_only_copy_prop): Declare.
6619         * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
6620         If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
6621         (execute_copy_prop): Accept new PHI_ONLY argument.  Pass it along
6622         to init_copy_prop.  Callers updated.
6623         (do_phi_only_copy_prop): New function.
6624         (pass_phi_only_copy_prop): New pass descriptor.
6626 2005-09-27  Nick Clifton  <nickc@redhat.com>
6628         * libgcc2.c (__popcount_tab): Remove redundant prototype.
6630 2005-09-26  Jason Merrill  <jason@redhat.com>
6632         PR c++/13764
6633         * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
6635         * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
6637 2005-09-26  James E Wilson  <wilson@specifix.com>
6639         * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
6640         copyright.  Add gcc copyright plus libgcc exception.
6641         * config/ia64/crtfastmath.asm: Remove glibc copyright.  Add gcc
6642         copyright.
6643         * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
6645 2005-09-26  Jeff Law  <law@redhat.com>
6647         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
6648         about when to iterate.
6650 2005-09-23  Fariborz Jahanian <fjahanian@apple.com>
6652         PR target/23847
6653         * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
6654         for __complex__ double in -mcpu=G5 mode.
6656 2005-09-26  Sebastian Pop  <pop@cri.ensmp.fr>
6658         PR tree-optimization/23942
6659         * Makefile.in (SCEV_H): Depends on PARAMS_H.
6660         * tree-scalar-evolution.c: Include params.h.
6661         (t_bool): New enum.
6662         (follow_ssa_edge, follow_ssa_edge_in_rhs,
6663         follow_ssa_edge_in_condition_phi_branch,
6664         follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
6665         Change return type to t_bool.  Use a parameter to limit the size of
6666         trees that are walked before stopping
6667         (analyze_evolution_in_loop): Initialize the limit to 0.
6668         (follow_ssa_edge): Give up by returning t_dont_know if the limit
6669         exceeds PARAM_SCEV_MAX_EXPR_SIZE.
6671 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
6673         PR middle-end/23831
6674         * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
6675         simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
6677 2005-09-26    Fariborz Jahanian <fjahanian@apple.com>
6679         * combine.c (make_extraction): Check for valid use of subreg.
6681 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
6683         PR target/24055
6684         * config/i386/i386.md ("*fistdi2_1"): New pattern.
6685         ("*fist<mode>2_1"): Use only HImode and SImode register operands.
6686         ("fist<mode>2_with_temp"): Use only register operands.
6688 2005-09-26  J"orn Rennecke <joern.rennecke@st.com>
6690         * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
6691         CALL_INSN_FUNCTION_USAGE.
6693 2005-09-26  Richard Guenther  <rguenther@suse.de>
6695         PR middle-end/15855
6696         * gcse.c: Include hashtab.h, define ldst entry hashtable.
6697         (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
6698         (ldst_entry): Use the hashtable instead of list-walking.
6699         (find_rtx_in_ldst): Likewise.
6700         (free_ldst_entry): Free the hashtable.
6701         (compute_ld_motion_mems): Create the hashtable.
6702         (trim_ld_motion_mems): Remove entry from hashtable if
6703         removing it from list.
6704         (compute_store_table): Likewise^2.
6705         (store_motion): Free hashtable in case we did not see
6706         any stores.
6708 2005-09-25  Kazu Hirata  <kazu@codesourcery.com>
6710         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
6711         and arg1 if we are passing them to fold_build2.
6713 2005-09-25  Dan Nicolaescu  <dann@ics.uci.edu>
6715         PR 23828
6716         * config/i386/i386.c (ix86_function_regparm): Fix the test for
6717         a nested function.
6719 2005-09-25  Richard Henderson  <rth@redhat.com>
6721         * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
6722         SYMBOL_REF_TLS_MODEL to be correct.
6724 2005-09-24  Richard Henderson  <rth@redhat.com>
6726         * ipa-type-escape.c (discover_unique_type): Remove dead code at
6727         end of function.  Reindent.
6729 2005-09-24  Ian Lance Taylor  <ian@airs.com>
6731         * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
6732         NEGATE_EXPR/BIT_NOT_EXPR case.
6734 2005-09-24  Richard Henderson  <rth@redhat.com>
6736         * c-common.c (handle_mode_attribute): When not modifying in place,
6737         create subtypes for enumerations.
6738         (sync_resolve_return): Use TYPE_MAIN_VARIANT.
6739         * gimplify.c (create_tmp_from_val): Likewise.
6741 2005-09-24  Alexandre Oliva  <aoliva@redhat.com>
6743         * config/i386/i386.md (*tls_global_dynamic_64,
6744         *tls_local_dynamic_base_64): Add missing mode to call.
6745         (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
6747 2005-09-24  Jan Hubicka  <jh@suse.cz>
6749         * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
6750         (cgraph_clone_node): Likewise.
6751         * cgraph.h (cgraph_clone_edge): Update prototype.
6752         (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
6753         duplicated prototypes; add updating argument.
6754         * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
6755         * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
6756         updating profile.
6757         (cgraph_mark_inline_edge): Likewise.
6758         (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
6759         (cgraph_flatten_node): Likewise.
6760         (cgraph_decide_recursive_inlining): Likewise.
6761         (cgraph_decide_inlining_of_small_function): Likewise.
6762         * tree-optimize.c (tree_rest_of_compilation): Likewise.
6764 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
6765             Pete Steinmetz <steinmtz@us.ibm.com>
6767         * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
6768         (rldic.): Set type to "compare".
6769         (rldicr.): Same.
6770         (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR.  Set type to
6771         mfjmpr for MFCTR/MFLR.
6772         (movdf_hardfloat64): Same.
6773         (movdf_softfloat64): Same.  Correct order of store and move types.
6774         (movti_string): Set type to store_ux/load_ux.
6775         (load_multiple): Set type to load_ux.
6776         (store_multiple): Set type to store_ux.
6777         (movmemsi): Set type to store_ux.
6778         (output_cbranch direct_return): Set type to jmpreg.
6779         (stmw): Set type to store_ux.
6780         (lmw): Set type to load_ux.
6781         * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
6782         * config/rs6000/440.md (ppc440-store): Increase latency to 6.
6783         * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
6784         * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
6785         * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
6786         * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
6787         (rios1-fpstore): Increase latency to 3.
6788         * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
6789         * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
6791 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
6792             Andrew Pinski  <pinskia@physics.uc.edu>
6794         * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
6795         operand2 constraint to "b".
6796         (sync_<fetchop_name>di_internal): Same.
6797         (sync_old_<fetchop_name>si_internal): Change operand3 constraint
6798         to "b".
6799         (sync_old_<fetchop_name>di_internal): Same.
6800         (sync_new_<fetchop_name>si_internal): Same.
6801         (sync_new_<fetchop_name>di_internal): Same.
6803 2005-09-23  J"orn Rennecke <joern.rennecke@st.com>
6805         PR middle-end/23991
6806         * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
6807         case, define as macros.
6809         PR rtl-optimization/23837
6810         *  optabs.c (no_conflict_move_test): Don't set must_stay for a
6811         clobber / clobber match between dest and p->first.
6813         * optabs.c (emit_libcall_block): Use no_conflict_move_test.
6814         (no_conflict_move_test): Update comments.
6816 2005-09-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
6818         * doc/install.texi: Update URL for Jacks.
6819         * doc/sourcebuild.texi: Likewise.
6821 2005-09-22  David Edelsohn  <edelsohn@gnu.org>
6823         PR target/24007
6824         * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
6825         registers when choosing register preferences.
6826         (movdf_hardfloat64): Same.
6828 2005-09-22  Andreas Krebbel  <krebbel1@de.ibm.com>
6830         * expmed.c (expand_shift): Don't use the target of the rotate as
6831         target for the first expanded shift insn.
6832         * testsuite/gcc.dg/20050922-1.c: Testcase added.
6834 2005-09-21  Zdenek Dvorak  <dvorakz@suse.cz>
6836         PR tree-optimization/22438
6837         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
6838         preserved iv rhs rewriting specially.
6840 2005-09-21  Daniel Berlin  <dberlin@dberlin.org>
6842         * tree-data-ref.c (analyze_array_indexes): Only estimate when
6843         estimate_only  is true.
6844         * tree-flow.h (ref_contains_indirect_ref): New prototype.
6845         * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
6846         tree-ssa-structalias.c
6847         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
6848         ref_contains_indirect_ref.
6849         * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
6851 2005-09-21  DJ Delorie  <dj@redhat.com>
6853         * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
6854         MASK_PTR_A0D0.
6855         (mn10300_return_in_memory): Support variable size types also.
6856         (mn10300_pass_by_reference): Likewise.
6857         (mn10300_function_value): New.
6858         * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
6859         (FUNCTION_OUTGOING_VALUE): Likewise.
6860         * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
6861         * doc/invoke.texi: Document it.
6863 2005-09-21  Uros Bizjak  <uros@kss-loka.si>
6865         PR target/22585
6866         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
6867         force integer op1 into register for XFmode compares.
6869 2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
6871         PR middle-end/23971
6872         * expmed.c (alg_code): Add alg_impossible.
6873         (alg_hash_entry): Add cost.
6874         (synth_mult): Record alg_impossible in the hash table if
6875         multiplication by a given integer is impossble within the
6876         limit.  Speed up using alg_impossible.
6878 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
6880         * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
6881         argument.  Allow and set any offset if needs_anyoffset is passed
6882         in.
6883         (get_constraint_for): Add argument here too.
6884         Pass it down.
6885         (do_structure_copy): Pass NULL to get_constraint_for.
6886         (handle_ptr_arith): Ditto.
6887         (find_func_aliases): Ditto.
6889 2005-09-20  J"orn Rennecke <joern.rennecke@st.com>
6891         PR rtl-optimization/23898
6892         * output.h (get_attr_min_length): Declare.
6893         * final.c (get_attr_length_1): New function, broken out of:
6894         (get_attr_length).
6895         (get_attr_min_length): New function.
6896         * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
6897         (duplicate_computed_gotos): Likewise.
6898         * genattr.c (insn_min_length): Generate declaration.
6899         * genattrtab.c (min_fn, min_attr_value): New functions.
6900         (make_length_attrs): Generate insn_min_length.
6902 2005-09-20  Steve Ellcey  <sje@cup.hp.com>
6904         * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
6906 2005-09-20  Richard Henderson  <rth@redhat.com>
6908         PR tree-optimization/24059
6909         * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
6910         EXPAND_STACK_PARM.
6912 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
6914         * c.opt (fextended-identifiers): New.
6915         * c-opts.c (c_common_handle_option): Handle
6916         -fextended-identifiers.
6917         * doc/cpp.texi: Update documentation of extended identifiers.
6918         * doc/cppopts.texi (-fextended-identifiers): Document.
6920 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
6922         PR tree-optimization/23929
6923         * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
6924         if expr is NULL.
6926         PR tree-optimization/23818
6927         * tree-stdarg.c (execute_optimize_stdarg): Call
6928         calculate_dominance_info.
6930 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
6932         * tree-data-ref.c (get_number_of_iters_for_loop): New function.
6933         (analyze_siv_subscript_cst_affine): Add weak SIV test.
6934         (compute_overlap_steps_for_affine_1_2): Use
6935         get_number_of_iters_for_loop.
6936         (analyze_subscript_affine_affine): Check whether difference is
6937         zero first.
6938         Use get_number_of_iters_for_loop.
6939         Check whether overlap occurs outside of bounds.
6940         (analyze_miv_subscript): Use get_number_of_iters_for_loop.
6942 2005-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
6944         * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
6945         base register if possible.
6947 2005-09-20  Zdenek Dvorak  <dvorakz@suse.cz>
6949         PR tree-optimization/18463
6950         * tree-chrec.c (chrec_convert): Return fold_converted chrec if
6951         converting it directly is not possible.
6952         (chrec_convert_aggressive): New function.
6953         * tree-chrec.h (chrec_convert_aggressive): Declare.
6954         * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
6955         Fold chrec conversions aggressively if asked to.
6956         (instantiate_parameters): Modified because of changes in
6957         instantiate_parameters_1.
6959 2005-09-19  Richard Henderson  <rth@redhat.com>
6961         * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
6962         (reduc_splus_v2df): New.
6964 2005-09-19  Richard Sandiford  <richard@codesourcery.com>
6966         * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
6967         (ADDITIONAL_REGISTER_NAMES): Add missing comma.  Remove final comma.
6969 2005-09-19  Richard Henderson  <rth@redhat.com>
6971         * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
6972         vcondu<SSEMODE12>.
6974 2005-09-19  Richard Henderson  <rth@redhat.com>
6976         * config/ia64/ia64.c (ia64_expand_widen_sum): New.
6977         (ia64_expand_dot_prod_v8qi): New.
6978         * config/ia64/ia64-protos.h: Update.
6979         * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
6980         widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
6981         sdot_prodv8qi, sdot_prodv4hi): New.
6982         (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
6984 2005-09-19  Richard Henderson  <rth@redhat.com>
6986         PR 23941
6987         * real.c (exact_real_truncate): Return false if the format cannot
6988         represent the number as a normal.
6990         * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
6991         for a memory source.
6993 2005-09-19  Dorit Nuzman  <dorit@il.ibm.com>
6995         * tree-ssa-operands.c (swap_tree_operands): Export.
6996         * tree.h (swap_tree_operands): Declare.
6997         * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
6998         Call swap_tree_operands.
7000 2005-09-19  Richard Henderson  <rth@redhat.com>
7002         * tree-flow.h (merge_alias_info): Declare.
7003         * tree-ssa-copy.c (merge_alias_info): Export.
7004         * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
7005         (vect_create_data_ref_ptr): Use create_iv directly.
7006         (vectorizable_load): Use correct types for integer constants.
7007         (vect_generate_tmps_on_preheader): Likewise.
7008         (vect_gen_niters_for_prolog_loop): Likewise.
7010 2005-09-19  Steven Bosscher  <stevenb@suse.de>
7012         PR rtl-optimization/23943
7013         * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
7015 2005-09-18  Jan Hubicka  <jh@suse.cz>
7017         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
7019 2005-09-18  Eric Botcazou  <ebotcazou@adacore.com>
7021         * varasm.c (output_constant): Do not abort on conversions to union
7022         types between different sizes.
7024 2005-09-18  Richard Guenther  <rguenther@suse.de>
7026         PR middle-end/23944
7027         * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
7028         fallback.
7030 2005-09-18  Paul Brook  <paul@codesourcery.com>
7032         * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
7034 2005-09-17  Richard Henderson  <rth@redhat.com>
7036         * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
7037         * tree-ssa-loop.c (pass_vect_dce): Remove.
7038         * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
7039         of pass_vectorize.
7041 2005-09-17  Richard Henderson  <rth@redhat.com>
7043         * tree-pass.h (pass_vect_dce): Declare.
7044         * passes.c (init_optimization_passes): Add it.
7045         * tree-flow.h (tree_ssa_dce): Declare.
7046         * tree-ssa-dce.c (tree_ssa_dce): Export.
7047         * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
7048         (gate_tree_vectorize): ... here.
7049         (pass_vect_dce): New.
7051 2005-09-17  Jan Hubicka  <jh@suse.cz>
7053         * except.c (struct eh_status): Turn region_array into vec.
7054         (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
7055         convert_from_eh_region_ranges, find_exception_handler_labels,
7056         current_function_has_exception_handlers, assign_filter_values,
7057         build_post_landing_pads, dw2_build_landing_pads,
7058         sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
7059         sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
7060         foreach_reachable_handler, can_throw_internal_1,
7061         convert_to_eh_region_ranges, verify_eh_tree): Update uses of
7062         region_array.
7063         (duplicate_eh_region_1): Update region_array.
7064         (duplicate_eh_regions): Resize region_array and avoid recomputing.
7066 2005-09-17  David Edelsohn  <edelsohn@gnu.org>
7068         PR middle-end/22067
7069         * expmed.c (expand_mult): Substitute simple register for op0 when
7070         computing max_cost.
7072 2005-09-17  Richard Henderson  <rth@redhat.com>
7074         * expr.c (emit_move_via_integer): Add force argument, pass it on
7075         to emit_move_change_mode.  Update callers.
7076         (emit_move_complex): Pass true to new force argument.
7077         * function.c (expand_function_end): Move expand_eh_return call
7078         earlier.  Merge sub-word complex values into a pseudo before
7079         copying to the return hard register.
7081 2005-09-17  Eric Botcazou  <ebotcazou@adacore.com>
7083         * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
7084         between different sizes.
7086 2005-09-16  Paolo Bonzini  <bonzini@gnu.org>
7088         PR 23903
7090         * passes.c (init_optimization_passes): Register dump files for
7091         IPA passes first.
7093 2005-09-16  Andreas Krebbel  <krebbel1@de.ibm.com>
7095         * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
7096         * config/s390/s390.c (s390_overlap_p): New function.
7097         * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
7098         peephole2, "*xc" peephole2): Added overlap check to the peephole2
7099         condition.
7101 2005-09-16  Richard Guenther  <rguenther@suse.de>
7103         * ipa-pure-const.c (static_execute): Free auxiliar information.
7104         * ipa-type-escape.c (discover_unique_type): Free temporary key.
7105         * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
7107 2005-09-15  DJ Delorie  <dj@redhat.com>
7109         * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
7111 2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
7113         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
7114         to order operands.
7115         (swap_commutative_operands_with_target): New.
7117 2005-09-15  Daniel Berlin  <dberlin@dberlin.org>
7119         * tree-data-ref.c (analyze_array_indexes): Add estimate_only
7120         parameter.
7121         Update callers.
7122         (estimate_iters_using_array): New function.
7123         * tree-data-ref.h (estimate_iters_using_array): Prototype
7124         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
7125         Use estimate_iters_using_array instead of analyze_array.
7127 2005-09-15  Eric Botcazou  <ebotcazou@adacore.com>
7129         * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
7130         as addressable.
7132 2005-09-15  Michael Matz  <matz@suse.de>
7134         * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
7136 2005-09-14  Daniel Berlin  <dberlin@dberlin.org>
7138         PR tree-optimization/23835
7139         * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
7140         (create_name_tags): Rewrite to be not O(num_ssa_names^2).
7142 2005-09-14  Richard Henderson  <rth@redhat.com>
7144         * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
7145         (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
7147 2005-09-14  Andrew Pinski  <pinskia@physics.uc.edu>
7149         * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
7150         in the ARRAY_TYPE case.
7152 2005-09-14  Eric Botcazou  <ebotcazou@adacore.com>
7154         * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
7156 2005-09-14  Uros Bizjak  <uros@kss-loka.si>
7158         PR middle-end/22480
7159         * tree-vect-transform.c (vectorizable_operation): Return false for
7160         scalar shift operations and for vector shift operations with
7161         non-invariant shift arguments.  Use scalar tree operand op1 as
7162         a shift operand when vector shift insn pattern uses scalar shift
7163         operand.
7164         * Makefile.in (tree-vect-transform.o): Depend on recog.h.
7166 2005-09-14  Olivier Hainque  <hainque@adacore.com>
7168         * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
7169         value if it has side-effects.
7171 2005-09-14  David Edelsohn  <edelsohn@gnu.org>
7173         PR target/22068
7174         * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
7176 2005-09-14  Alan Modra  <amodra@bigpond.net.au>
7178         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
7179         passed as NAME as if it were label at start of function code.
7181 2005-09-13  Kaz Kojima  <kkojima@gcc.gnu.org>
7183         * config/sh/sh.md (*movv4sf_i): Add general register cases to
7184         the constraints.
7186 2005-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
7188         * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
7189         as early clobber.  Rewrite so the PIC register is not implicitly used.
7191 2005-09-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7193         * tree.c (annotate_with_file_line): Compare line numbers before
7194         file names.
7196 2005-09-13  Uros Bizjak  <uros@kss-loka.si>
7198         PR target/23816
7199         * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
7200         (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
7202 2005-09-13  Ian Lance Taylor  <ian@airs.com>
7204         * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
7205         than a HOST_WIDEST_INT to gen_doloop_begin.
7207 2005-09-13  Diego Novillo  <dnovillo@redhat.com>
7209         * tree-dfa.c (dump_variable): Guard against NULL annotations.
7211 2005-09-13  Zdenek Dvorak  <dvorakz@suse.cz>
7213         PR tree-optimize/23817
7214         * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
7216 2005-09-13  Alan Modra  <amodra@bigpond.net.au>
7218         PR target/23774
7219         * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
7220         word before changing the stack pointer.  Use gen_frame_mem for MEMs.
7221         Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
7222         (restore_stack_nonlocal): Likewise.
7223         (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
7225 2005-09-12  Ian Lance Taylor  <ian@airs.com>
7227         PR g++/7874
7228         * c.opt (ffriend-injection): New C++ option.
7229         * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
7230         (C++ Dialect Options): Document -ffriend-injection.
7232 2005-09-12  Josh Conner  <jconner@apple.com>
7234         PR middle-end/23237
7235         * ipa-reference.c (static_execute): Don't mark variables in
7236         named sections TREE_READONLY.
7238 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
7240         * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
7241         stack_tie.
7243 2005-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
7245         * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
7246         V_MUST_DEF instead of just the first_use_p.
7247         Don't mark the virtual variables for renaming on the statement which
7248         is being removed.
7249         (pass_dse): Remove TODO_update_ssa.
7251 2005-09-12  J"orn Rennecke <joern.rennecke@st.com>
7253         PR middle-end/23290
7254         * stor-layout.c (compute_record_mode): For records with a single
7255         field, actually check the field's mode size against the type size.
7257         * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
7258         registers for TARGET_SHMEDIA.
7259         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
7260         GENERAL_FP_REGS to GENERAL_DF_REGS.  Add GENERAL_FP_REGS as union
7261         of GENERAL_REGS and FP_REGS.
7263 2005-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
7265         * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
7267 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
7269         * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
7270         CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
7271         are omitted.  Exclude stack_tie insn too.
7273 2005-09-11  David Edelsohn  <edelsohn@gnu.org>
7275         PR rtl-optimization/23098
7276         * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
7277         0.0f is easy.
7278         * config/rs6000/rs6000.md (movdf splitter): Use
7279         const_double_operand predicate for TARGET_POWERPC64.
7280         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
7281         SYMBOL_REF method to ABI_V4.
7283         * config/rs6000/altivec.md (build_vector_mask_for_load): Use
7284         replace_equiv_address.
7285         * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
7286         rs6000_sr_alias_set and MEM_NOTRAP.
7287         (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
7289 2005-09-11  Eric Botcazou  <ebotcazou@adacore.com>
7291         * tree.c (contains_placeholder_p) <tcc_expression>: Properly
7292         handle CALL_EXPR again.
7294 2005-09-11  Richard Earnshaw  <richard.earnshaw@arm.com>
7296         * arm/predicates.md (alignable_memory_operand): Delete.
7298 2005-09-10  Richard Henderson  <rth@redhat.com>
7300         PR debug/23806
7301         * dbxout.c (dbxout_expand_expr): New.
7302         (dbxout_symbol): Use it.
7304 2005-09-10  Richard Earnshaw  <richard.earnshaw@arm.com>
7306         * arm.c (arm_gen_rotated_half_load): Delete.
7307         (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
7308         (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
7309         (thumb_set_return_address): Likewise.
7310         (thumb_load_double_from_address): Use adjust_address.
7311         * arm.md (splits calling arm_gen_rotated_half_load): Delete.
7312         (extendhsisi2_mem, movhi_bytes): Use change_address.
7313         (movhi): Use widen_memory_access.
7314         (reload_out_df): Use replace_equiv_address.
7315         * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
7317 2005-09-09  Richard Henderson  <rth@redhat.com>
7319         PR debug/20998
7320         * dbxout.c: Include expr.h.
7321         (dbxout_global_decl): Don't suppress for DECL_RTL unset.
7322         (dbxout_symbol): Handle DECL_VALUE_EXPR.
7323         * Makefile.in (dbxout.o): Add EXPR_H.
7325 2005-09-09  Zdenek Dvorak  <dvorakz@suse.cz>
7327         PR tree-optimization/23509
7328         * tree-cfg.c (replace_uses_by): Use replace_exp.
7329         * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
7330         pointers have name_mem_tag or type_mem_tag set.
7332 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
7334         * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
7335         CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
7336         of wrongly accessing operands.
7338 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
7340         * Makefile.in (tree-chrec.o): Depends on SCEV_H.
7341         * tree-chrec.c: Include tree-scalar-evolution.h.
7342         (chrec_convert): Instantiate the base and step before calling
7343         scev_probably_wraps_p that would fail on parametric evolutions.
7344         Collect all the fails into a single section failed_to_convert,
7345         print a diagnostic, and return chrec_dont_know instead of calling
7346         fold_convert.
7347         * tree-scalar-evolution.c (loop_closed_phi_def): New.
7348         (instantiate_parameters_1): Avoid instantiation of loop closed ssa
7349         phi nodes.
7350         (scev_const_prop): Don't replace the definition of a loop closed ssa
7351         phi node by itself, or by another loop closed ssa phi node.
7352         * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
7353         that base and step are defined.
7355 2005-09-09  Richard Guenther  <rguenther@suse.de>
7357         PR c++/23624
7358         * fold-const.c (fold_ternary): Check truth_value_p before
7359         calling invert_truthvalue.
7361 2005-09-09  Nick Clifton  <nickc@redhat.com>
7363         * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
7364         * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
7365         dimension of these arrays.
7366         * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
7367         these arrays.
7368         * longlong.h: Only provide a prototype for the __clz_tab[] array
7369         if this header has not been included from libgcc2.h.
7370         * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
7371         defining own types.
7372         Provide prototypes for exported functions.
7373         Use the __clz_tab[] and __popcount_tab[] arrays provided by
7374         libgcc2.c.
7376 2005-09-08  Josh Conner  <jconner@apple.com>
7378         PR c++/21135
7379         PR c++/23180
7380         * expr.c (expand_expr_addr_expr_1): Don't invoke
7381         expand_simple_binop for EXPAND_INITIALIZER.
7383 2005-09-08  Richard Henderson  <rth@redhat.com>
7385         PR debug/23190
7386         * toplev.c (wrapup_global_declaration_1): Split out ...
7387         (wrapup_global_declaration_2): ... from ...
7388         (wrapup_global_declarations): ... here.  Return bool.
7389         (check_global_declaration_1): Split out ...
7390         (check_global_declarations): from here.
7391         (emit_debug_global_declarations): New.
7392         * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
7393         check_global_declaration_1, emit_debug_global_declarations): Declare.
7394         * c-decl.c (c_write_global_declarations_1): Don't create a vector
7395         of decls.  Call wrapup_global_declaration_1,
7396         wrapup_global_declaration_2, check_global_declaration_1 directly.
7397         (c_write_global_declarations_2): New.
7398         (ext_block): New.
7399         (c_write_global_declarations): Call c_write_global_declarations_2.
7400         * langhooks.c (write_global_declarations): Call
7401         emit_debug_global_declarations.
7403         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
7404         remove decls that have DECL_RTL_SET_P.
7405         * passes.c (rest_of_decl_compilation): Invoke
7406         cgraph_varpool_finalize_decl for all but functions.
7408 2005-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
7410         * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
7411         the result of a conversion if the new min and max cannot be compared.
7413 2005-09-08  Andreas Krebbel  <krebbel1@de.ibm.com>
7415         * config/s390/s390.c (s390_sr_alias_set): Variable removed.
7416         (override_options): Setting s390_sr_alias_set removed.
7417         (save_fpr, save_gprs): Set alias set to vararg or frame.
7418         (restore_fpr, restore_gprs, s390_emit_prologue): Replace
7419         s390_sr_alias_set with get_frame_alias_set ().
7420         (s390_gimplify_va_arg): Replace s390_sr_alias_set with
7421         get_varargs_alias_set ().
7423 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
7425         PR objc/20574
7426         PR objc/19324
7427         * c-parser.c (c_parser_objc_method_definition): If the next
7428         token is not "{", error out and don't start the function.
7430 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
7432         * tree-vrp.c (extract_range_from_expr): Move the check for non
7433         nullness after the check for gimple invariant.
7435 2005-09-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7437         * tree.c (host_integerp, tree_low_cst): Correct function comment.
7439 2005-09-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7441         PR target/23747
7442         * config/m32r.md (movmemsi_internal): Canonicalize order of
7443         operands in PLUS component of template.
7445 2005-09-07  Andreas Krebbel  <krebbel1@de.ibm.com>
7447         * reload1.c (fixup_eh_region_note): Remove assertion.
7448         (fixup_abnormal_edges): Reverted removal of call to
7449         find_many_sub_basic_blocks made on 2005-08-31.
7451 2005-09-07  Richard Henderson  <rth@redhat.com>
7453         * function.c (ARG_POINTER_CFA_OFFSET): Move ...
7454         * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
7455         (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
7456         * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
7457         rearrange for better packing.
7458         (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
7459         (lookup_cfa_1): Remove inline marker.
7460         (cfa_equal_p): Split out of ...
7461         (def_cfa_1): ... here.  Use INVALID_REGNUM.
7462         (build_cfa_loc): Handle !cfa->indirect.
7463         (frame_pointer_cfa_offset): New.
7464         (dbx_reg_number): Assert register elimination performed; do
7465         leaf register remapping.
7466         (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
7467         (eliminate_reg_to_offset): New.
7468         (based_loc_descr): Remove can_use_fbreg argument.  Use fbreg only
7469         for verifiably local stack frame addresses; re-base to CFA.
7470         (mem_loc_descriptor): Remove can_use_fbreg argument.
7471         (concat_loc_descriptor, loc_descriptor): Likewise.
7472         (containing_function_has_frame_base): Remove.
7473         (rtl_for_decl_location): Don't do register elimination or
7474         leaf register remapping here.
7475         (secname_for_decl): Split out from ..
7476         (add_location_or_const_value_attribute): ... here.
7477         (convert_cfa_to_loc_list): New.
7478         (compute_frame_pointer_to_cfa_displacement): New.
7479         (gen_subprogram_die): Use them.
7480         * tree.h (frame_base_decl): Remove.
7481         * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
7482         (prologue_stack_adjust): Remove.
7483         (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
7484         (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
7485         (set_frame_base_location): Remove.
7486         (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
7487         (dump_attrs_list, dump_dataflow_set): Use string concatenation.
7488         (vt_add_function_parameters): Don't eliminate_regs.
7489         (vt_initialize): Don't create frame_base_decl.
7491 2005-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
7493         * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
7494         version of GNU binutils for 4.x and later.
7496 2005-09-06  Mark Mitchell  <mark@codesourcery.com>
7498         * ggc-page.c (ggc_push_context): Remove.
7499         (ggc_pop_context): Likewise.
7500         * ggc.h (ggc_push_context): Remove.
7501         (ggc_pop_context): Likewise.
7503 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
7505         PR target/8973
7506         * config/arc/arc.c (arc_output_function_epilogue): Update flags while
7507         returning from an interrupt handler.
7509 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
7511         PR target/8972
7512         * config/arc/arc.c (output_shift): Add check for loop count when
7513         optimizing.
7515 2005-09-06  Steven Bosscher  <stevenb@suse.de>
7517         * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
7518         form manually.
7519         (abs_replacement): Likewise.
7520         (pass_phiopt): Remove TODO_update_ssa.
7522 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
7524         PR c/23075
7525         * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
7526         if "return with no value, in function returning non-void" warning
7527         has been issued.
7528         * tree-cfg.c (execute_warn_function_return): Don't look at
7529         RETURN_EXPRs with TREE_NO_WARNING set.
7531         PR target/22362
7532         * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
7533         for internal functions doesn't use registers used by global registers
7534         variables.  Use fewer register parameters if there are global register
7535         variables.
7537 2005-09-06  Olivier Hainque  <hainque@adacore.com>
7538             Eric Botcazou  <ebotcazou@adacore.com>
7540         PR middle-end/14997
7541         * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
7542         when we would be extracting outside its bit span (bitpos+bitsize
7543         larger than its mode), possible with some VIEW_CONVERT_EXPRs from
7544         Ada unchecked conversions.
7546 2005-09-06  Steven Bosscher  <stevenb@suse.de>
7548         * tree-ssa-pre.c (try_look_through_load): New function.
7549         (compute_avail): Use it to try to look through loads for some
7550         more useful expressions.
7552 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
7554         * simplify-rtx.c (simplify_binary_operation_1): Correct the
7555         condition for detecting cases like (a&a) and (a^a).
7557 2005-09-06  Keith Besaw  <kbesaw@us.ibm.com>
7559         * common.opt: Add option ftree-vect-loop-version.
7560         * params.def: Add --param vect-max-version-checks.
7561         * doc/invoke.texi: Document ftree-vect-loop-version and
7562         --param vect-max-version-checks.
7563         * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
7564         may_misalign_stmts and defines for accessors.
7565         * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
7566         LOOP_VINFO_MAY_MISALIGN_STMTS.
7567         (destroy_loop_vec_info): VEC_free for
7568         LOOP_VINFO_MAY_MISALIGN_STMTS.
7569         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
7570         Update documentation.
7571         (vect_update_misalignment_for_peel): New.
7572         (vect_enhance_data_refs_alignment): Update to choose loop
7573         peeling or loop versioning if appropriate for the (potentially)
7574         unaligned data references in the loop.
7575         (vect_analyze_data_refs_alignment): Remove call to
7576         vect_enhance_data_refs_alignment so the checks can be done
7577         earlier.
7578         (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
7579         and move up call to vect_analyze_data_refs_alignment.
7580         * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
7581         (vect_transform_loop): Add call to loop_version.
7583 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
7585         PR rtl-optimization/23098
7586         * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
7587         * simplify-rtx.c (constant_pool_reference_p): New function.
7588         * rtl.h (constant_pool_reference_p): New prototype.
7589         * config/i386/i386.md (pushf split, mov[sdx]f split): Use
7590         constant_pool_reference_p in condition and
7591         avoid_constant_pool_reference in preparation statements.
7593 2005-09-06  Andreas Krebbel  <krebbel1@de.ibm.com>
7595         * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
7596         STRICT_LOW_PART SETs.
7598 2005-09-06  Alan Modra  <amodra@bigpond.net.au>
7600         PR middle-end/21460
7601         * except.c (sjlj_emit_function_enter): Find the function begin
7602         note even when it's not in first basic block.
7604 2005-09-06  Kelley Cook  <kcook@gcc.gnu.org>
7606         * acinclude.m4: Renamed from aclocal.m4.  Delete AM_LANGINFO_CODESET,
7607         AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
7608         * aclocal.m4: Regenerate.
7610 2005-09-05  DJ Delorie  <dj@redhat.com>
7612         * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
7613         of macro.
7615 2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
7617         * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
7618         config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
7619         config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
7620         Follow spelling conventions.
7621         * doc/invoke.texi: Follow spelling conventions.
7623 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
7625         * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
7626         * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
7627         * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
7629 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
7631         PR target/23683
7632         * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
7633         (output_stack_adjust): Use gen_tmp_stack_mem.
7634         (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
7635         (sh_set_return_address, sh_allocate_initial_value): Likewise.
7636         (sh_get_pr_initial_val): Likewise.
7637         (sh_builtin_saveregs): Use gen_frame_mem and change_address.
7638         (sh_initialize_trampoline): Likewise.  Also use adjust_address.
7639         * sh.md (divsi_inv_m0): Use gen_const_mem.
7640         (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
7641         (movdf_i4+1): Use gen_tmp_stack_mem.
7642         (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
7643         (fpu_switch+2): Likewise.
7644         (movv4sf_i, movv16sf_i): Use adjust_address.
7645         (symGOT_load): Set MEM_NOTRAP_P bit.
7647 2005-09-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7649         PR target/23721
7650         * pa.c (emit_move_sequence): Fix typo in last change.
7652 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
7654         PR rtl-optimization/23454
7655         * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
7656         is true.
7658 2005-09-03  Richard Henderson  <rth@redhat.com>
7659             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7661         PR middle-end/23671
7662         * pa.c (emit_move_sequence): Use replace_equiv_address instead of
7663         gen_rtx_MEM.
7665 2005-09-02  Nicolas Pitre <nico@cam.org>
7667         * config/arm/arm.c (arm_legitimize_address): Limit the value passed
7668         to bit_count to 32 bits.
7670 2005-08-31  Mark Mitchell  <mark@codesourcery.com>
7672         PR c++/23167
7673         * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
7674         generating synthetic loads from volatile lvalues.
7676 005-09-02  Nick Clifton  <nickc@redhat.com>
7678         * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
7679         __ctzhi2, __clzhi2): New functions.
7681 2005-09-02  Andrew Pinski  <pinskia@physics.uc.edu>
7683         PR middle-end/23547
7684         * tree-nested.c (struct var_map_elt): Mark with GTY.
7685         (struct nesting_info): Mark with GTY.  Mark var_map's param is struct
7686         var_map_elt.
7687         (lookup_field_for_decl): Allocate new element in GC memory.
7688         (lookup_tramp_for_decl): Likewise.
7689         (convert_nl_goto_reference): Likewise
7690         (create_nesting_tree): Allocate info in GC memory. Likewise for
7691         info->var_map.
7692         (free_nesting_tree): Free with ggc_free instead of free.
7693         (root): New static variable.
7694         (lower_nested_functions): Remove root as local variable.  And zero out
7695         root at the end of the function.
7697 2005-09-02  J"orn Rennecke <joern.rennecke@st.com>
7699         PR rtl-optimization/20365
7700         * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
7701         to short.  New member ix.
7702         (simplify_plus_minus_op_data_cmp): Break ties using ix member.
7703         (simplify_plus_minus): Initialize ix members before calling qsort.
7705 2005-09-02  Zdenek Dvorak  <dvorakz@suse.cz>
7707         PR tree-optimization/23626
7708         * tree-cfg.c (replace_uses_by): Clean up eh info.
7710 2005-09-01  DJ Delorie  <dj@redhat.com>
7712         * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
7713         fprintf.
7715 2005-09-01  David Edelsohn  <edelsohn@gnu.org>
7717         * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
7718         (rs6000_split_multireg_move): Use replace_equiv_address instead of
7719         gen_rtx_MEM.
7721 2005-09-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7723         * c-decl.c (diagnose_mismatched_decls):  With -Wredundant-decls,
7724         do not issue warning for a variable definition following
7725         a declaration.
7727 2005-09-01  Richard Henderson  <rth@redhat.com>
7729         PR 23668
7730         * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
7731         conversion to CONST_VECTOR.
7733 2005-09-01  Richard Henderson  <rth@redhat.com>
7735         PR 23676
7736         * reload1.c (reload_as_needed): Check !CALL_P before calling
7737         fixup_eh_region_note.
7738         * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
7740 2005-09-01  DJ Delorie  <dj@redhat.com>
7742         * varasm.c (output_constant): Let the target resolve
7743         conversions of addresses to non-default pointer sizes.
7745 2005-09-01  Nicolas Pitre <nico@cam.org>
7747         * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
7748         to alow matching ARM pre-indexed addressing mode.
7749         (arm_override_options): Remove now irrelevant comment.
7751 2005-09-01  Phil Edwards  <phil@codesourcery.com>
7753         * config.gcc (i*86-wrs-vxworks):  Update.  Split out vxworksae target.
7754         * config/i386/t-vxworks:  Update multilibs for VxWorks 6 and RTP mode.
7755         * config/i386/vxworks.h:  Likewise.
7756         * config/i386/t-vxworksae:  New file, for VxWorks AE.
7757         * config/i386/vxworksae.h:  Likewise.
7759 2005-09-01  Sebastian Pop  <pop@cri.ensmp.fr>
7761         PR tree-optimization/23410
7762         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
7763         sequence is not wrapping during the first step.
7765 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
7767         PR debug/7241
7768         * dwarf2out.c (base_type_die): Compare char_type_node with
7769         TYPE_MAIN_VARIANT (type), not type.
7771 2005-09-01  Richard Guenther  <rguenther@suse.de>
7773         PR tree-optimization/15366
7774         * common.opt: Add -finline-functions-called-once.
7775         Put -fearly-inlining in alphabetically ordered place.
7776         * doc/invoke.texi: Document new option.
7777         * ipa-inline.c (cgraph_decide_inlining): Honour
7778         flag_inline_functions_called_once.
7780 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
7782         PR rtl-optimization/23478
7783         * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
7784         (alloc_qty): Initialize it.
7785         (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
7786         (combine_regs): Combine also n_throwing_calls_crossed fields.
7787         (find_free_reg): Don't attempt to caller-save pseudos crossing
7788         calls that might throw.
7789         * global.c (struct allocno): Add throwing_calls_crossed field.
7790         (global_alloc): Revert 2005-08-22 change.  Initialize
7791         throwing_calls_crossed.
7792         (find_reg): Don't attempt to caller-save pseudos crossing calls that
7793         might throw.
7795 2005-09-01  Alan Modra  <amodra@bigpond.net.au>
7797         PR target/23649
7798         * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
7799         (mask64_operand): Reinstate code prior to 2005-06-11 change.
7800         (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
7801         (and64_2_operand): Tweak to use predicate.
7802         (and_operand): Adjust for mask_operand changes.
7803         * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
7804         (print_operand): Likewise.
7805         (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
7806         (mask64_1or2_operand): Delete.
7807         * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
7808         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
7809         (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
7810         (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
7811         * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
7812         (rotldi3_internal4): Likewise.
7813         (rotldi3_internal5, rotldi3_internal5 split): Likewise.
7814         (rotldi3_internal6, rotldi3_internal6 split): Likewise.
7815         (ashldi3_internal7): Likewise.
7816         (ashldi3_internal8, ashldi3_internal8 split): Likewise.
7817         (ashldi3_internal, ashldi3_internal9 split): Likewise.
7818         (anddi3 split): Don't match mask64_operand.
7819         (anddi3_internal2): Add rlwinm.  Modify 't' splitter predicate.
7820         (anddi3_internal3): Add rlwinm.  Use and64_2_operand in non-cr0
7821         splitter and match TARGET_64BIT not TARGET_POWERPC64.  Modify
7822         't' splitter predicate.
7823         (movdi_internal64 + 2): Revert 2005-06-11 change.
7825 2005-08-31  DJ Delorie  <dj@redhat.com>
7827         * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
7828         (m32c_asm_integer): Add support for 32 bit pointers.
7830 2005-08-31  Richard Henderson  <rth@redhat.com>
7832         * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
7833         component-like references for setting MEM_NOTRAP_P.
7835         * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
7836         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
7838 2005-08-31  Richard Henderson  <rth@redhat.com>
7840         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
7841         into a pseudo before applying gen_lowpart.
7843 2005-08-31  Geoffrey Keating  <geoffk@apple.com>
7845         * doc/install.texi (Specific): Update cctools version required
7846         for full functionality.
7847         * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
7848         linkers as -macosx_version_min.
7850 2005-08-31  J"orn Rennecke <joern.rennecke@st.com>
7852         PR target/21255
7853         * sh.c (print_operand, %R and %S): Add handling of floating point
7854         registers, memory, constants and invalid operands.
7856 2005-08-31  Daniel Berlin  <dberlin@dberlin.org>
7858         * ipa-pure-const.c: Change dump name.
7860 2005-08-31 Uros Bizjak <uros@kss-loka.si>
7862         PR target/23570
7863         * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
7864         to "reg_or_0_operand".
7865         (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
7867 2005-08-31  Dale Johannesen  <dalej@apple.com>
7869         * loop-iv.c (iv_number_of_iterations):  Fix overflow check for
7870         loops that count down.
7872 2005-08-31  Richard Henderson  <rth@redhat.com>
7874         PR rtl-opt/23601
7875         * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
7876         (fixup_eh_region_note): New.
7877         (reload_as_needed): Call it.
7878         (fixup_abnormal_edges): Allow all throwing insns to be deleted;
7879         don't call find_many_sub_basic_blocks; call verify_flow_info.
7880         * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
7881         (keep_stack_depressed): Likewise.
7882         (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
7884 2005-08-31  Richard Henderson  <rth@redhat.com>
7886         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
7887         fp return matching.
7889 2005-08-31  Fariborz Jahanian <fjahanian@apple.com>
7891         * expr.c (expand_expr_real_1): Compare size of address
7892         mode to target's address mode size in deciding expansion of
7893         the constant address.
7895 2005-08-31  Richard Guenther  <rguenther@suse.de>
7897         PR middle-end/23477
7898         * expr.c (all_zeros_p): New function.
7899         (expand_expr_real_1): Handle the case of an all-zero
7900         non-addressable constructor separately.
7902 2005-08-31  Adrian Straetling  <straetling@de.ibm.com>
7904         * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
7905         arguments, adjust all callers.
7906         (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
7908 2005-08-30  Richard Henderson  <rth@redhat.com>
7910         PR target/23630
7911         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
7912         whenever the mode sizes match.
7914 2005-08-31  Alan Modra  <amodra@bigpond.net.au>
7916         * calls.c (load_register_parameters): Fix comment typo.
7917         * expr.c (emit_push_insn): Comment formatting.
7919 2005-08-30  Ian Lance Taylor  <ian@airs.com>
7921         * config/i386/x-cygwin (host-cygwin): Change dependency from
7922         hosthooks-def.h to $(HOSTHOOKS_DEF_H).
7924 2005-08-29  Geoffrey Keating  <geoffk@apple.com>
7926         * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
7927         parts of 'vals'.
7929 2005-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
7931         PR middle-end/23408
7932         * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
7933         call to ggc_collect.
7935 2005-08-29  Paolo Bonzini  <bonzini@gnu.org>
7937         PR bootstrap/21268
7938         * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
7939         beginning.  Remove $(INCLUDES) from all the rules, if following
7940         $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
7942 2005-08-29  Jakub Jelinek  <jakub@redhat.com>
7944         PR middle-end/23484
7945         * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
7946         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
7947         not constant, but maxlen is, don't set len to maxlen, rather
7948         set maxlen to len if len is a constant.
7950 2005-08-29  Zdenek Dvorak  <dvorakz@suse.cz>
7952         PR tree-optimization/23475
7953         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
7954         and counts.
7956 2005-08-28  Daniel Berlin  <dberlin@dberlin.org>
7958         Fix PR middle-end/22455
7960         * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
7961         Checksum only the parts of the tree that exist for the tree code.
7963 2005-08-28  Dale Johannesen  <dalej@apple.com>
7965         * config/i386/i386.c (nocona_cost):  Increase MOVE_RATIO.
7967 2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>
7969         * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
7971 2005-08-28  Richard Henderson  <rth@redhat.com>
7973         * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
7974         * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
7975         of char_type_node.
7977 2005-08-28  Jakub Jelinek  <jakub@redhat.com>
7979         PR ada/23593
7980         * builtins.c (get_memory_rtx): Don't strip nops
7981         in between COMPONENT_REFs.
7983 2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>
7985         PR middle-end/23463
7986         * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
7987         types.
7988         (gimplify_modify_expr): Check for zero sized types and gimplify the
7989         rhs and lhs as statements.
7991 2005-08-27  John David Anglin  <dave.anflin@nrc-cnrc.gc.ca>
7993         PR libgcj/23508
7994         * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
7995         state for return address column of signal frames.
7997 2005-08-27  David Edelsohn  <edelsohn@gnu.org>
7999         PR target/23539
8000         * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
8001         bytes >= 2 not bytes == 2.
8002         (expand_block_move): Same.
8004 2005-08-27  Richard Guenther  <rguenther@suse.de>
8006         PR target/23575
8007         * config/i386/sse.md (sse2_movsd): Add missing closing
8008         braces.
8010 2005-08-27  Paul Brook  <paul@codesourcery.com>
8012         * genrecog.c (enum decision_type): Add DT_num_insns.
8013         (struct decision_test): Add u.num_insns.
8014         (add_to_sequence): Add DT_num_insns test.
8015         (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
8016         (write_cond, debug_decision_2): Ditto.
8017         (change_state): Assume peep2_next_insn never fails.
8018         Remove "afterward" argument.
8019         (write afterward, write_tree): Update to match.
8020         * recog.c (peep2_current_count): New variable.
8021         (peep2_next_insn): Check it.
8022         (peephole2_optimize): Set peep2_current_count.
8023         * recog.h (peep2_current_count): Declare.
8025 2005-08-26  Josh Conner  <jconner@apple.com>
8027         PR middle-end/23584
8028         * ipa-pure-const.c (check_tree): Check for volatile-ness
8029         when considering a dereference.
8031 2005-08-27  Jakub Jelinek  <jakub@redhat.com>
8033         * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
8035 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
8037         PR rtl-optimization/23561
8038         * builtins.c (get_memory_rtx): Add LEN argument.  If MEM_EXPR is
8039         a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
8040         at most LEN bytes long memory fits into the field.
8041         (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
8042         expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
8043         expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
8045 2005-08-26  Richard Henderson  <rth@redhat.com>
8047         PR rtl-opt/23560
8048         * loop.c (biased_biv_may_wrap_p): New.
8049         (maybe_eliminate_biv_1): Use it to suppress non-equality
8050         comparison transformations.  Delete disabled code.
8052 2005-08-26  Ian Lance Taylor  <ian@airs.com>
8054         * combine.c (make_extraction): Avoid reference outside object.
8056 2005-08-26  J"orn Rennecke <joern.rennecke@st.com>
8058         * stor-layout.c (finalize_type_size): Restore behaviour for
8059         non-aggregate types to the status quo ante of the patch for
8060         pr 23467.  Document why it matters.
8062 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
8064         PR c/23506
8065         * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
8066         array by one element, initialize the BT_LAST element with NULL.
8068 2005-08-26  David Edelsohn  <edelsohn@gnu.org>
8070         * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
8071         optimizing for size.
8072         (plus_eqsi): Same.
8073         (compare_plus_eqsi): Same.
8074         (plus_eqsi_compare): Same.
8075         (neg_eq0<mode>): Same.
8076         (neg_eq<mode>): Same.
8078         * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
8079         PROCESSOR_POWER4.
8081 2005-08-26  Nick Clifton  <nickc@redhat.com>
8083         * config/v850/v850.c (ep_memory_operand): Return FALSE if
8084         TARGET_EP is not defined.
8085         * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
8086         TARGET_EP is enabled.
8087         (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
8088         * config/v850/v850.md (save_all_interrupt): Only use the EP
8089         register if TARGET_EP is defined.
8090         (restore_all_interrupt): Likewise.
8091         * config/v850/lib1funcs.asm: Update functions so that the EP
8092         register is only used if __EP__ is defined.
8094 2005-08-26  David Ung  <davidu@mips.com>
8096         * config/mips/mips.c (mips_expand_prologue): Handle case when
8097         generating for MIPS16 and the outgoing argument area is more than
8098         SMALL_OPERAND. Use the frame pointer as temporary to generate the
8099         add instruction.
8101 2005-08-26  Paul Woegerer  <paul.woegerer@nsc.com>
8103         * config/crx/crx.md: Make doloop_end pattern usage controllable
8104         via mloop-nesting=<max-nesting> command line switch. Make sure
8105         the combiner cannot use doloop_end_<mode> in an illegal way.
8106         * config/crx/crx.c: Use regs up to r6 for argument passing.
8107         Refine crx_address_cost (non cst4 displacements are expensive).
8108         * config/crx/crx.opt: Add switch for mloop-nesting=.
8110 2005-08-26  Adrian Straetling  <straetling@de.ibm.com>
8112         * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
8113         (UNSPEC_MVST): New constant.
8115 2005-08-26  Andreas Krebbel  <krebbel1@de.ibm.com>
8117         * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
8118         Reject operands containing eliminable registers.
8119         * testsuite/gcc.dg/20050825-1.c: New testcase.
8121 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
8122             Jan Hubicka  <jh@suse.cz>
8124         * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
8126 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
8128         PR tree-optimization/23546
8129         * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
8130         and REAL_CST nodes.
8132 2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>
8134         * params.def (PARAM_MIN_SPEC_PROB): New.
8135         * sched-rgn.c (MIN_PROBABILITY): Delete.
8136         (compute_trg_info): Convert to PARAM_VALUE.
8137         * doc/invoke.texi (param): Document min-spec-prob.
8139 2005-08-24  Fariborz Jahanian <fjahanian@apple.com>
8141         * config/darwin.h: define __PIC__
8142         * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
8143         TARGET_OS_CPP_BUILTINS macro.
8145 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
8147         * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
8148         yesterday.
8150 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
8152         * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
8153         to duplicate_block.
8154         * cfghooks.c (duplicate_block): Added position where to place
8155         new block as argument.
8156         * cfghooks.h (duplicate_block): Declaration changed.
8157         * cfglayout.c (copy_bbs): Add argument after.  Pass it to
8158         duplicate_block.
8159         * cfglayout.h (copy_bbs): Declaration changed.
8160         * cfgloop.h (loop_version): Declaration changed.
8161         * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
8162         position to copy_bbs.
8163         (loop_version): Pass position to duplicate_loop_to_header_edge.
8164         Add place_after argument and position new blocks according to
8165         it.
8166         * modulo-sched.c (sms_schedule): Pass place_after argument
8167         to loop_version.
8168         * tracer.c (tail_duplicate): Pass argument to duplicate_block.
8169         * tree-cfg.c (split_edge_bb_loc): New function.
8170         (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
8171         to determine position of new blocks.
8172         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
8173         to loop_version.
8174         * tree-ssa-threadupdate.c (create_block_for_threading): Pass
8175         argument to duplicate_block.
8176         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
8177         Pass position to copy_bbs.
8179 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
8181         * fold-const.c (ptr_difference_const): Use
8182         cst_and_fits_in_hwi instead of host_integerp.
8184 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
8186         * config/darwin.c (gen_pic_offset): New.
8187         (machopic_indirect_data_reference,  machopic_legitimize_pic_address):
8188         Use it.
8190 2005-08-23  Zdenek Dvorak  <dvorakz@suse.cz>
8192         PR tree-optimization/23486
8193         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
8195 2005-08-23  Phil Edwards  <phil@codesourcery.com>
8197         * config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
8198         remove use_collect2.
8199         (powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.
8201         * target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
8202         configuration files to override the default value.
8204         * config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
8205         EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
8206         * config/vx-common.h:  New file, split out from...
8207         * config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
8208         * config/vxworksae.h:  New file, for VxWorks AE.
8209         * config/vxworks.opt:  New file.
8210         * config/vxlib.c:  Update for VxWorks 6.
8212         * config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
8213         other MULTILIB_* variables appropriately.
8214         (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
8215         * config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
8216         * config/rs6000/vxworks.h:  Update for VxWorks 6.
8217         * config/rs6000/vxworksae.h:  New file, mostly placeholder for now.
8219 2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>
8221         PR target/20799
8222         * config/darwin.c (machopic_select_section): Remove the hack to
8223         mark "::operator new" and "::operator delete" for coalescing
8224         even though they are not weak.
8226 2005-08-24  Alan Modra  <amodra@bigpond.net.au>
8228         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
8229         * configure: Regenerate.
8231 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
8233         PR middle-end/23517
8234         * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
8235         between vectors.
8236         * convert.c (convert_to_integer, convert_to_vector): Likewise.
8237         * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
8238         Likewise.
8240 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
8242         * config/rs6000/predicates.md (equality_operator): New.
8243         * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
8244         comparison with a large constant.
8246 2005-08-23  Mark Mitchell  <mark@codesourcery.com>
8248         * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
8250 2005-08-23  J"orn Rennecke <joern.rennecke@st.com>
8252         * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
8253         registers is even, and we have a hardware double precision fp,
8254         align the buffer.
8255         (sh_gimplify_va_arg_expr): For floating point arguments, consider
8256         size of current argument when checking if argument was passed in
8257         registers.
8259         * sh.c (sh_attr_renesas_p): Handle error_mark_node.
8261         PR middle-end/23467
8262         * stor-layout.c (finalize_type_size): Dont override
8263         existing alignment with a smaller alignment from the mode.
8265 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
8267         * lambda-code.c (lambda_vector_lexico_pos): Moved...
8268         * lambda.h (lambda_vector_lexico_pos): ... here.
8269         * tree-data-ref.c (build_classic_dist_vector): Return false when
8270         the distance vector is lexicographically negative.
8272 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
8274         PR tree-optimization/23511
8275         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
8276         handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
8278 2005-08-23  Jakub Jelinek  <jakub@redhat.com>
8280         PR tree-optimization/22043
8281         * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
8282         * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
8283         If ALLOW_FLEXARR, handle types ending with flexible array member.
8284         Pass false as second argument to recursive count_type_elements calls.
8285         (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
8286         argument to count_type_elements call.
8287         * tree-sra.c (decide_block_copy): Likewise.
8288         * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
8289         for a constant-sized object, set cleared as well.  Pass true as
8290         second argument to count_type_elements call.
8292 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
8294         PR target/21571
8295         * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
8296         from legitimate_small_data_p, and make global.  Update use.
8297         Remove forward declaration.
8298         * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
8299         Declare.
8300         * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
8302 2005-08-23  David Edelsohn  <edelsohn@gnu.org>
8304         * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
8305         of scratch intermediates.
8306         (eq<mode>_compare): Same.
8307         (neg_eq0<mode>): New.
8308         (neg_eq<mode>): Convert to define_insn_and_split.
8310 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
8312         PR target/23070
8313         * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
8314         stdarg functions, set/clear the fp marker even when no variable
8315         args are passed.
8316         * config/rs6000/sysv4.opt (mprototype): Describe.
8318 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
8320         PR rtl-optimization/23478
8321         * regs.h (reg_info): Add throw_calls_crossed.
8322         (REG_N_THROWING_CALLS_CROSSED): Define.
8323         * flow.c (allocate_reg_life_data): Initialize
8324         REG_N_THROWING_CALLS_CROSSED.
8325         (propagate_one_insn, attempt_auto_inc): Update
8326         REG_N_THROWING_CALLS_CROSSED.
8327         * global.c (global_alloc): Don't allocate pseudos across
8328         calls that may throw.
8330 2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
8332         PR c/18715
8333         * c-common.c (c_do_switch_warnings): Look for a node where the enum's
8334         value is inbetween the range if we did not find an exact match.
8336 2005-08-22  Aldy Hernandez  <aldyh@redhat.com>
8338         * doc/invoke.texi (Option Summary): Add ms1 options.
8339         * doc/extend.texi: Document interrupt handler attribute for ms1.
8340         * doc/md.texi: Document ms1 constraints.
8341         * config.gcc: Add ms1-*-elf.
8342         * config/ms1/ms1.h: New.
8343         * config/ms1/ms1.c: New.
8344         * config/ms1/ms1.md: New.
8345         * config/ms1/ms1-protos.h: New.
8346         * config/ms1/ABI.txt: New.
8347         * config/ms1/crti.asm: New.
8348         * config/ms1/crtn.asm: New.
8349         * config/ms1/lib2extra-funcs.c: New.
8350         * config/ms1/t-ms1: New.
8351         * config/ms1/ms1.opt: New.
8353 2005-08-22 Ira Rosen <irar@il.ibm.com>
8355         * config/rs6000/altivec.md (xorv4sf3): New.
8356         (negv4sf2, neg<mode>2): Likewise.
8358 2005-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8360         PR target/23485
8361         * config/ia64/ia64.md (divsi3): Check divide by zero.
8362         (udivsi3): Likewise.
8363         (divdi3): Likewise.
8364         (udivdi3): Likewise.
8366 2005-08-21  Jakub Jelinek  <jakub@redhat.com>
8368         * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
8369         up to elem_bitsize bits, not max_bitsize.
8371 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
8373         PR tree-optimization/23433
8374         * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
8375         REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
8377 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
8379         PR tree-optimization/23434
8380         * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
8381         the iteration bound is not an INTEGER_CST.
8383 2005-08-21  Dorit Nuzman  <dorit@il.ibm.com>
8385         * tree-vect-transform.c (get_initial_def_for_reduction): Set
8386         need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
8387         NULL if need_epilog_adjust is false.
8388         (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
8389         Case 3 always peels first itration, not just for PLUS case, and no need
8390         to use scalar_initial_def here. Create an epilog adjustment only if
8391         scalar_initial_def is not NULL.
8393         (vectorizable_reduction): Remove assert.
8395 2005-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8397         PR target/23485
8398         * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
8399         (__moddi3): Likewise.
8400         (__udivdi3): Likewise.
8401         (__umoddi3): Likewise.
8402         (__divsi3): Likewise.
8403         (__modsi3): Likewise.
8404         (__udivsi3): Likewise.
8405         (__umodsi3): Likewise.
8407 2005-08-20  Jakub Jelinek  <jakub@redhat.com>
8409         * tree-pass.h (TDF_GRAPH): Define.
8410         * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
8411         * passes.c (finish_optimization_passes): Only call
8412         finish_graph_dump_file if TDF_GRAPH is set.
8413         (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
8414         NULL.  Set TDF_GRAPH bit.
8415         (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
8417 2005-08-20  Richard Earnshaw  <richard.earnshaw@arm.com>
8419         * arm.h (arm_stack_offsets): Add locals_base field.
8420         * arm.c (arm_get_frame_offsets): Compute it.
8421         (thumb_compute_initial_elimination offset): Make the Thumb frame
8422         pointer point to the base of the local variables.
8423         (thumb_expand_prologue): Update accordingly.
8424         (thumb_expand_epilogue): Likewise.
8426         * arm.md (thumb_movhi_clobber): Make this insn a define_expand.  Change
8427         mode of clobbered scratch to DImode.  Handle a case that's known to
8428         need this.
8430 2005-08-19  David Edelsohn  <edelsohn@gnu.org>
8432         * config/rs6000/rs6000.md (gt0<mode>): Delete.
8433         (gt0<mode>_compare): Delete.
8434         (neg_gt0<mode>): Delete.
8436 2005-08-19  Eric Christopher  <echristo@apple.com>
8438         * optabs.h: Change CTI_ to COI_.
8439         * optabs.c: Ditto.
8441 2005-08-19  James E Wilson  <wilson@specifix.com>
8443         * builtins.c (expand_builtin_return_addr): Set
8444         current_function_accesses_prior_frames when count != 0.  Use
8445         frame_pointer_rtx when count == 0.
8446         * function.h (struct function): Add accesses_prior_frames field.
8447         (current_function_accesses_prior_frames): Define.
8448         * reload1.c (init_elim_table): Check
8449         current_function_accesses_prior_frames.
8450         * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
8452 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
8454         * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
8455         indicator.  Return true if the flowgraph changed during
8456         cleanup.
8458 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
8460         PR 23476
8461         * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
8462         conditional expression before testing its value.
8464 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
8466         * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
8468 2005-08-19  Devang Patel  <dpatel@apple.com>
8470         PR tree-optimization/23048
8471         * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
8472         third parameter. Check whether latch is dominated by exit
8473         block or not.
8474         (if_convertible_loop_p): Supply exit block itself to
8475         if_convertible_bb_p.
8477 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
8479         PR target/23473
8480         * arm.md (arm_load_pic_register): Change argument to the mask of
8481         saved registers.  Call thumb_find_work_register if we need a
8482         scratch register on Thumb.
8483         (arm_expand_prologue): Pass empty register set to
8484         arm_load_pic_register.
8485         (thumb_expand_prologue): Pass live_regs_mask directly to
8486         arm_load_pic_register.
8487         * arm-protos.h (arm_load_pic_register): Update prototype.
8489 2005-08-19  J"orn Rennecke <joern.rennecke@st.com>
8491         * sh.c (find_sole_member): New function.
8492         (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
8493         if the record's alignment is larger than the size of its only member.
8495 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
8497         PR target/23436
8498         * arm.c (thumb_legitimize_reload_address): New function.
8499         * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
8500         * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
8502 2005-08-19  Paul Woegerer  <paul.woegerer@nsc.com>
8504         * config/crx/crx.c: Implement crx_decompose_address. Reject
8505         symbolic displacements since CRX register relative adressing
8506         mode can't handle unsigned 32-bit values as displacements.
8507         * config/crx/crx.h: Simplify definitions, remove redundant
8508         parenthesis and obsolete macros.
8509         * config/crx/crx.opt: Add new switch for debugging addresses.
8510         * config/crx/crx-protos.h: Add new declarations for above.
8512 2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
8514         PR middle-end/20624
8515         * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
8516         looking past it.
8518 2005-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8520         * collect2.c (dup2): Delete.
8521         * configure.ac: Don't check for dup2.
8523         * config.in, configure: Regenerate.
8525 2005-08-18  J"orn Rennecke <joern.rennecke@st.com>
8527         * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
8528         record with the type of its only member.
8530 2005-08-18  David Edelsohn  <edelsohn@gnu.org>
8532         * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
8533         define_insn_and_split.
8534         (plus_ltu<mode>_compare): Same.
8535         (gtu<mode>_compare): Same.
8536         (plus_gtu<mode>_compare): Same.
8538 2005-08-18  Dorit Nuzman  <dorit@il.ibm.com>
8540         PR tree-optimization/22228
8541         * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
8542         todo_flags_start.
8543         * tree-vect-transform.c (vect_transform_loop): Mark the variables that
8544         are recorded in vect_vnames_to_rename for renaming.
8545         * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
8546         (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
8547         in vect_vnames_to_rename.
8548         (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
8549         * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
8551 2005-08-18  Jan Hubicka  <jh@suse.cz>
8553         PR c++/22034
8554         * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
8555         info only for local statics, not for member variables.
8557 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8559         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
8561 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8563         * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
8565 2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>
8567         PR middle-end/16045
8568         * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
8570 2005-08-17  James E Wilson  <wilson@specifix.com>
8572         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
8573         array size check.
8575 2005-08-17  David Edelsohn  <edelsohn@gnu.org>
8577         * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
8578         (leu<mode>_compare): Same.
8579         (plus_leu<mode>): Same.
8580         (neg_leu<mode>): Same.
8581         (and_neg_leu<mode): Same.
8582         (ltu<mode>_compare): Same.
8583         (plus_ltu<mode>): Same.
8584         (geu<mode>): Same.
8585         (geu<mode>_compare): Same.
8586         (plus_geu<mode>): Same.
8587         (neg_geu<mode>): Same.
8588         (and_neg_geu<mode>): Same.
8589         (plus_gt<mode>): Same.
8590         (gtu<mode>_compare): Same.
8591         (plus_gtu<mode>): Same.
8593 2005-08-17  Erik Christiansen  <erik@dd.nec.com.au>
8595         * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
8596         Move call_table_data to end.  Delete spurious .text.
8597         (callt_save_all_interrupt): Fix comment typo.
8599 2005-08-17  James E Wilson  <wilson@specifix.com>
8600             Kevin Winchester  <winchester@amirix.com>
8602         PR target/21684
8603         * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
8605 2005-08-17  Uros Bizjak  <uros@kss-loka.si>
8607         PR target/23268
8608         * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
8609         ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
8611 2005-08-17  J"orn Rennecke <joern.rennecke@st.com>
8613         * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
8614         record with the type of its only member if the modes don't match.
8616         * varasm.c (decode_reg_name): Skip empty additional register names.
8618 2005-08-16  Zdenek Dvorak  <dvorakz@suse.cz>
8620         * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
8621         lsm_tmp_name_length): New.
8622         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
8623         (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
8625 2005-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8626             Andreas Krebbel  <krebbel1@de.ibm.com>
8628         * config.gcc: Added z9-109 switch.
8629         * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
8630         "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
8631         "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
8632         "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
8633         "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
8634         for "z9_109" cpu attribute.
8635         * config/s390/s390.c (z9_109_cost): New processor cost structure.
8636         (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
8637         (s390_handle_arch_option): Added z9-109 switch.
8638         (override_options): Set respective cost function for z9-109.
8639         (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
8640         (legitimate_reload_constant_p): Accept extended immediates.
8641         (print_operand): Three new output modifiers added: k, m and o.
8642         (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
8643         (s390_output_mi_thunk): Use extended immediate when possible.
8644         * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
8645         (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
8646         (CONSTRAINT_LEN): Added length of O constraint.
8647         (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
8648         * config/s390/s390.md ("cpu"): New value z9_109 added.
8649         ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
8650         "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
8651         "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
8652         "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
8653         "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
8654         ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
8655         "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
8656         "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
8657         ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
8658         "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
8659         "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
8660         "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
8661         "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
8662         "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
8663         "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
8664         immediates.
8665         ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
8666         "zero_extend<mode>si2"): Allow memory operands and don't manually emit
8667         insns for TARGET_EXTIMM.
8669 2005-08-17  Andreas Krebbel  <krebbel1@de.ibm.com>
8671         * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
8673 2005-08-17  Nick Clifton  <nickc@redhat.com>
8675         * config/stormy16/stormy16.c (xstormy16_encode_section_info):
8676         Call default_encode_section_info.
8678 2005-08-17  Steven Bosscher  <stevenb@suse.de>
8680         PR tree-optimization/21574
8681         * tree-ssa-ccp.c (likely_value): If the right hand side is a
8682         constant, return CONSTANT.
8683         (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
8684         (ccp_fold, visit_assignment): Likewise.
8685         (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
8687 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
8689         * c-typeck.c (build_function_call): Call fold_buildN_initializer or
8690         fold_buildN instead of buildN then fold_initializer or fold.
8691         (build_unary_op): Likewise.
8692         (build_binary_op): Likewise.
8693         * fold-const.c (fold_initializer): Remove.
8694         (fold_build1_initializer): New function.
8695         (fold_build2_initializer): New function.
8696         (fold_build3_initializer): New function.
8697         * tree.h (fold_initializer): Remove.
8698         (fold_build1_initializer): New function.
8699         (fold_build2_initializer): New function.
8700         (fold_build3_initializer): New function.
8702 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
8704         * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
8705         (try_move_mult_to_index): Call fold_build2 instead of build2.
8706         (fold_binary): Don't call fold after calls to try_move_mult_to_index.
8707         * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
8708         fold_binary_to_constant.
8709         (infer_loop_bounds_from_undefined): Call fold_build2 instead of
8710         fold (build.
8711         * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
8712         check if A == gcd (A, B).  Remove TYPE argument.
8713         (analyze_offset) Use fold_build2 instead of fold (build.
8714         (create_data_ref): Likewise.
8715         (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
8716         * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
8717         then fold.
8719 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
8721         * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
8722         ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
8724 2005-08-16  Andrew Pinski  <pinskia@physics.uc.edu>
8726         PR tree-opt/23402
8727         * gimplify.c (zero_sized_type): New function.
8728         (gimplify_modify_expr_rhs): If we have a zero sized type,
8729         replace the statement with an empty statement.
8731 2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>
8733         * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
8734         fxsave.
8736 2005-08-16  Ian Lance Taylor  <ian@airs.com>
8738         * doc/tm.texi (Label Output): Correct typo.
8740 2005-08-16  Steven Bosscher  <stevenb@suse.de>
8742         PR target/23376
8743         * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
8744         force_operand will work later on using have_insn_for.
8746 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8748         * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
8750 2005-08-16  Ian Lance Taylor  <ian@airs.com>
8752         PR c++/23337
8753         * gimplify.c (gimplify_init_ctor_eval): If we see an element of
8754         vector type, don't try to construct it element by element.  Add an
8755         assertion that we use a FIELD_DECL when building a COMPONENT_REF.
8757 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8759         * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
8761 2005-08-16  Geoffrey Keating  <geoffk@apple.com>
8763         * doc/invoke.texi (Precompiled Headers): Document some more options
8764         which are known to be safe.
8766 2005-08-16  James E Wilson  <wilson@specifix.com>
8768         PR tree-optimization/21105
8769         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
8770         TREE_OVERFLOW check.
8772 2005-08-16  David Edelsohn  <edelsohn@gnu.org>
8774         * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
8775         (neg_ltu<mode>): Same.
8776         (gtu<mode>): Same.
8777         (neg_gtu<mode>): Same.
8779 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8781         * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
8782         (fold_builtin_isdigit): Use fold_buildN.
8783         (build_function_call_expr): Likewise.
8784         * c-typeck.c (c_finish_loop): Likewise.
8786 2005-08-16  J"orn Rennecke <joern.rennecke@st.com>
8787             Richard Shann <rshann@superh.com>
8789         PR middle-end/20396:
8790         * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
8792 2005-08-16  Sebastian Pop  <pop@cri.ensmp.fr>
8794         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
8796 2005-08-15  Richard Earnshaw  <richard.earnshaw@arm.com>
8798         PR target/23355
8799         * arm.c (thumb_compute_save_reg_mask): Use similar logic to
8800         arm_compure_save_reg0_reg12_mask to determine when the PIC register
8801         must be saved.
8803 2005-08-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8805         PR middle-end/23369
8806         * fold-const.c (build_range_check): Disable optimization for function
8807         pointer expressions on targets that require function pointer
8808         canonicalization.
8810 2005-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
8812         * simplify-rtx.c (simplify_const_relational_operation): When
8813         extracting arguments of a COMPARE, recompute the mode as well.
8815 2005-08-15  Ian Lance Taylor  <ian@airs.com>
8817         * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
8819 2005-08-15  DJ Delorie  <dj@redhat.com>
8821         * config/m32c/mov.md (movqi_op): Immediates can't be moved to
8822         the stack.
8823         (movsi_splittable): Allow, but split, moves to the stack.
8824         * config/m32c/m32c.c (m32c_split_move): Always split moves to the
8825         stack.
8827 2005-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8829         * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
8830         * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
8831         * system.h (HOST_PTR_PRINTF): Don't define, poison it.
8833         * bitmap.c, c-decl.c, config/i386/i386-interix.h,
8834         config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
8835         Delete HOST_PTR_PRINTF.
8837         * configure, config.in: Regenerate.
8839 2005-08-15  David Edelsohn  <edelsohn@gnu.org>
8841         * config/rs6000/rs6000.md (QHSI): New mode macro.
8842         (wd): Extend mode attr for QImode and HImode
8843         (dbits): New mode attr.
8844         (zero_extend<mode>di2): Convert to mode macro.
8846 2005-08-15  Steve Ellcey  <sje@cup.hp.com>
8848         PR target/21841
8849         * doc/invoke.texi (-mgnu-ld): Update description.
8850         (-mhp-ld): Ditto.
8852 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
8854         PR 23391
8855         * Makefile.in (tree-chrec.o): Depends on real.h.
8856         * tree-chrec.c: Include real.h.
8857         (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
8858         chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
8859         * tree-scalar-evolution.c (add_to_evolution_1,
8860         interpret_rhs_modify_expr): Ditto.
8862 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
8864         PR 23386
8865         * tree-data-ref.c (estimate_niter_from_size_of_data): When
8866         step is negative compute the estimation from init downwards to zero.
8868 2005-08-14  James A. Morrison  <phython@gcc.gnu.org>
8870         * fold-const (fold_binary): Call fold_build2 instead of fold (build.
8872 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
8874         * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
8875         constraint.
8876         (legitimate_reload_constant_p): Fix handling of lliXX operands.
8877         Accept double-word constants that can be split.
8878         * config/s390/s390.md ("movti"): Use 'P' constraint.
8879         ("*movdi_31", "*movdf_31"): Likewise.
8881 2005-08-14  Daniel Berlin  <dberlin@dberlin.org>
8883         Fix PR tree-optimization/22615
8885         * tree-ssa-structalias.c (solution_set_add): Handle
8886         first_vi_for_offset returning NULL.
8887         (do_da_constraint): Ditto.
8888         (do_sd_constraint): Ditto.
8889         (do_ds_constraint): Ditto
8890         (find_func_aliases): Ditto.
8891         (build_constraint_graph): RHS is allowed be ANYTHING.
8892         (first_vi_for_offset): Return NULL if we couldn't find anything at
8893         the offset.
8895 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
8897         * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
8898         over memory as first operand.
8900 2005-08-14  H.J. Lu  <hongjiu.lu@intel.com>
8902         PR target/23360
8903         * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
8904         available for setting it.
8906 2005-08-14  Ira Rosen  <irar@il.ibm.com>
8908         PR tree-optimization/23320
8909         * tree-data-ref.c (base_addr_differ_p): Add comment. Check
8910         data-refs' types instead of base object nullness. Add check for
8911         pointer type data-refs before first location comparison. Remove
8912         assert.
8914 2005-08-14  Andreas Schwab  <schwab@suse.de>
8916         * doc/md.texi (Machine Constraints): Fix misplaced @end table.
8918 2005-08-13  James E Wilson  <wilson@specifix.com>
8920         * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
8921         * doc/invoke.texi (-Wstack-protector, -fstack-protector,
8922         -fstack-protector-all, --param ssp-buffer-size): Document.
8923         (-Wvariadic-macros): Alphabetize.
8924         (-fsched-stalled-insns-dep): Add missing 'f'.
8926         * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
8927         macros.
8929 2005-08-13  David Edelsohn  <edelsohn@gnu.org>
8931         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
8932         or indirect address operand.
8933         (EXTRA_ADDRESS_CONSTRAINT): New.
8934         * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
8936 2005-08-13  Sebastian Pop  <pop@cri.ensmp.fr>
8938         PR tree-optimization/22236
8939         * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
8940         successors and predecessors.
8941         * tree-chrec.c (chrec_convert): Before converting, check that
8942         sequences don't wrap.
8943         * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
8944         (analyze_array): Extern.
8945         (find_data_references_in_loop): Remove call to
8946         compute_estimated_nb_iterations.
8947         * tree-data-ref.h (analyze_array): Declared.
8948         * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
8949         single_ssa_def_operand, zero_ssa_operands): Fix documentation.
8950         * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
8951         * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
8952         condition.
8953         * tree-ssa-loop-ivcanon.c: Fix documentation.
8954         * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
8955         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
8956         (infer_loop_bounds_from_undefined): New.
8957         (estimate_numbers_of_iterations_loop): Use
8958         infer_loop_bounds_from_undefined.
8959         (used_in_pointer_arithmetic_p): New.
8960         (scev_probably_wraps_p): Pass an extra parameter.  Call
8961         used_in_pointer_arithmetic_p.  Check that AT_STMT is not null.
8962         (convert_step): Fix documentation.
8963         * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
8964         Use initial_condition_in_loop_num and evolution_part_in_loop_num
8965         instead of CHREC_LEFT and CHREC_RIGHT.  Adjust the call to
8966         scev_probably_wraps_p.
8968 2005-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
8970         * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
8971         (s390_register_info): Ignore clobbered_regs information for fixed
8972         registers, and only fixed registers.
8973         (s390_init_frame_layout): Remove redundant call.
8975 2005-08-12  Gerald Pfeifer  <gerald@pfeifer.com>
8977         * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
8978         description of -Wold-style-casts.
8980 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
8981             Jakub Jelinek  <jakub@redhat.com>
8983         * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
8984         * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
8985         * config/s390/s390.c (print_operand): New output modifier 'G' added.
8986         (get_thread_pointer): Renamed to s390_get_thread_pointer.
8987         * config/s390/s390.md (stack_protect_set, stack_protect_test): If
8988         TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
8989         (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
8990         (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
8991         ("stack_protect_set", "stack_protect_test"): New expanders.
8992         ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
8993         "stack_protect_testdi"): New insn definitions.
8995 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
8997         * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
8999 2005-08-12  Paul Brook  <paul@codesourcery.com>
9001         * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
9003 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
9005         * config/s390/predicates.md (setmem_operand): New predicate.
9006         (shift_count_operand): Accept ANDs with special constants as
9007         operand.
9008         * config/s390/s390.c (print_shift_count_operand): Skip ANDs
9009         with special constants.
9010         * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
9011         shift_count_operand with setmem_operand.
9013 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
9015         * config/s390/s390.c (s390_extract_part, s390_single_part):
9016         Type cast added.
9017         (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
9018         (s390_output_mi_thunk): Don't use lg on 31 bit.
9019         * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
9020         ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
9022 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
9024         * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
9025         (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
9026         s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
9027         s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
9028         with one of the new macros.
9030 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
9032         * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
9033         Don't set save_return_addr_p.
9034         (s390_register_info): Make clobbered_regs not depending on
9035         save_return_addr_p.
9037 2005-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
9039         * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
9040         (LINK_COMMAND_SPEC): Add space after %(link_ssp).
9042 2005-08-11  James E. Wilson  <wilson@specifix.com>
9044         * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
9046 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
9048         * dwarf2out.c (add_location_or_const_value_attribute): Prefer
9049         locations gathered by var-tracking in single entry loc_list
9050         over loc_descriptor_from_tree.
9052         * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
9053         pass it down to loc_descriptor.
9054         (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
9055         (containing_function_has_frame_base): Move earlier in the file.
9056         (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
9057         instead of always assuming fbreg can't be used.
9059 2005-08-11  David Edelsohn  <edelsohn@gnu.org>
9061         * config/rs6000/altivec.md: Change constraint "m" to "Z".
9062         * config/rs6000/predicates.md (indexed_or_indirect_operand):
9063         Accept address wrapped in AND for Altivec.
9064         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
9065         Strip AND wrapping offset address for Altivec.
9067 2005-08-11  Richard Henderson  <rth@redhat.com>
9069         PR middle-end/23312
9070         * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
9071         before using TYPE_IS_SIZETYPE.
9073 2005-08-11  Richard Henderson  <rth@redhat.com>
9075         PR target/22225
9076         * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
9077         insn types not present on ev4.
9078         (alphaev5_insn_pipe): Similarly.
9080 2005-08-11  Richard Earnshaw  <richard.earnshaw@arm.com>
9082         PR target/23250
9083         * arm.c (arm_override_options): If the user has selected callee-super-
9084         interworking, then enable normal interworking.
9086 2005-08-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9088         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
9089         redefinition.
9091 2005-08-11  Wu Zhou  <woodzltc@cn.ibm.com>
9093         * doc/rtl.texi: Fix two typos.
9095 2005-08-11  Richard Guenther  <rguenther@suse.de>
9097         PR target/23289
9098         * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
9099         cases where we call to/from functions returning void.
9101 2005-08-10  James A. Morrison  <phython@gcc.gnu.org>
9103         PR c++/23225
9104         * tree.c (build_pointer_type_for_mode): Robustify.
9106 2005-08-10  James E Wilson  <wilson@specifix.com>
9108         * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
9109         (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
9111         * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
9112         "cum->".
9114 2005-08-10  Eric Christopher  <echristo@apple.com>
9116         * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
9117         * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
9118         V2DFmode.
9120 2005-08-10  Andrew Pinski  <pinskia@physics.uc.edu>
9122         PR target/21887
9123         * config/darwin.c (machopic_indirect_data_reference): Use a new register
9124         for the high part when generating dynamic-no-pic code.
9126 2005-08-10  H.J. Lu  <hongjiu.lu@intel.com>
9128         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
9129         (x86_64-*-linux*): Likewise.
9131         * config/i386/crtfastmath.c: New file.
9132         * config/i386/t-crtfm: Likewise.
9134         * config/i386/linux.h (ENDFILE_SPEC): New.
9135         * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
9137         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
9138         crtfastmath.o.
9140 2005-08-10  Dorit Nuzman  <dorit@il.ibm.com>
9142         * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
9143         (vec_shl, vec_shr): Document new operations.
9144         * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
9146 2005-08-10  David Edelsohn  <edelsohn@gnu.org>
9148         * config/rs6000/predicates.md (indexed_or_indirect_address): New.
9149         * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
9150         change predicate to indexed_or_indirect_address.
9152 2005-08-10  Richard Sandiford  <richard@codesourcery.com>
9154         * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
9155         * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
9156         __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
9157         and __aeabi_uwrite8.
9158         * config/arm/unaligned-funcs.c: New file.
9159         * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
9161 2005-08-09  Paolo Bonzini  <bonzini@gnu.org>
9163         * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
9164         Add dump.
9165         * cfglayout.c (pass_insn_locators_initialize): Add dump.
9166         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
9167         Add dump.
9168         * except.c (pass_convert_to_eh_region_ranges): Add dump.
9169         * final.c (pass_shorten_branches): Add dump.
9170         * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
9171         (pass_life): Rename dump.
9172         (rest_of_handle_flow2): Remove initial verify_flow_info.
9173         * function.c (pass_instantiate_virtual_regs): Add dump.
9174         * integrate.c (pass_initial_value_sets): Add dump.
9175         * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
9176         * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
9177         (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
9178         pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
9179         (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
9180         gate_rtl_unrool_and_peel_loops): New.
9181         (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
9182         rtl_doloop): Do not look at flags.
9183         * mode-switching.c (pass_mode_switching): Add dump.
9184         * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
9185         pass_split_before_regstack): Add dump.
9186         * regmove.c (pass_stack_adjustments): Add dump.
9187         * tree-optimize.c (pass_fixup_cfg): Add dump.
9189 2005-08-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9191         PR 23309
9192         * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
9193         deciding which instruction sequence to use.
9195 2005-08-09  Dorit Nuzman  <dorit@il.ibm.com>
9197         * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
9198         BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
9200 2005-08-09  Richard Guenther  <rguenther@suse.de>
9202         * c-common.c (builtin_function_2): Remove.
9203         (def_builtin_1): New function.
9204         (c_common_nodes_and_builtins): Use def_builtin_1 to
9205         build builtin functions.
9207 2005-08-09  Jie Zhang  <jie.zhang@analog.com>
9209         * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
9210         * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
9211         * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
9212         Visual DSP.
9214 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
9216         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
9217         fold_binary instead of fold_build2 since we don't care about the
9218         resulting tree.
9219         (loop_niter_by_eval): Likewise.
9220         (compare_trees): Likewise.
9221         (proved_non_wrapping_p): Likewise.
9223 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
9225         PR c/23161
9226         PR c/23165
9227         * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
9228         if the if is really empty.
9230 2005-08-09  Steven Bosscher  <stevenb@suse.de>
9232         PR tree-optimization/23234
9233         * tree-ssa-math-opts.c (place_reciprocal): New enum.
9234         (execute_cse_reciprocals_1): Replace the 'phi' argument with an
9235         argument of the new enum.
9236         (execute_cse_reciprocals): Add reciprocals for function arguments
9237         on the unique successor edge of the entry block.  Update other calls
9238         to execute_cse_reciprocals_1.
9240 2005-08-08  Richard Henderson  <rth@redhat.com>
9242         PR 22439
9243         * gimplify.c (gimplify_one_sizepos): Preserve the original type.
9245 2005-08-08  Bob Wilson  <bob.wilson@acm.org>
9247         * expr.c (write_complex_part): Return after handling MEM.
9249 2005-08-08  Josh Conner  <jconner@apple.com>
9251         PR rtl-optimization/23241
9252         * combine.c (simplify_comparison): Fix error in determining
9253         whether to lift a subreg from comparison.
9255 2005-08-08  David Edelsohn  <edelsohn@gnu.org>
9257         PR target/18506
9258         * config/rs6000/altivec.md (vec_init<mode>): New.
9259         (vec_set<mode>): New.
9260         (vec_extract<mode>): New.
9261         * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
9262         (rs6000_expand_vector_set): New.
9263         (rs6000_expand_vector_extract): New.
9264         (rs6000_legitimate_offset_address_p): Offset addresses are valid
9265         for Altivec modes before reload.
9266         (altivec_expand_vec_init_builtin): New.
9267         (get_element_number): New.
9268         (altivec_expand_vec_set_builtin): New.
9269         (altivec_expand_vec_ext_builtin): New.
9270         (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
9271         builtins.
9272         (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
9273         builtins.
9274         * config/rs6000/rs6000.h (rs6000_builtins): Add
9275         ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
9276         ALTIVEC_BUILTIN_VEC_EXT_<mode>.
9277         * config/rs6000/rs6000-protos.h: Declare new functions.
9279 2005-08-08  Jan Hubicka  <jh@suse.cz>
9281         * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
9282         (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
9283         * i386.md (movdi*): Use pic_32bit_operand.
9284         * predicates.md (pic_32bit_operand): New.
9286 2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
9288         PR c++/21166
9289         * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
9291 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
9293         * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
9294         (test_for_singularity): Use fold_build2.
9296 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9298         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
9300 2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
9302         * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
9303         (COMMON_ASM_OP) Define.
9304         * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
9305         (ix86_encode_section_info): Likewise.
9306         (TARGET_ENCODE_SECTION_INFO): Conditionally define as
9307         SUBTARGET_ENCODE_SECTION_INFO.
9309 2005-08-06  Richard Henderson  <rth@redhat.com>
9311         PR 21894
9312         * tree-nested.c (convert_local_reference): Save and restore val_only
9313         around component_ref and friends.  Clear walk_subtrees by default.
9315 2005-08-06  Peter O'Gorman  <peter@pogma.com>
9317         PR 21366
9318         * gcc.c (process_command): Check the argument to -b has a dash.
9319         * doc/invoke.texi: Update -b and -V docs.
9321 2005-08-06  James E Wilson  <wilson@specifix.com>
9323         * config/mips/cross64.h, config/mips/t-cross64: Delete.
9325 2005-08-06  Michael Matz  <matz@suse.de>
9327         * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
9328         member only if only one insn is associated with the value.
9330 2005-08-06  Nick Clifton  <nickc@redhat.com>
9332         * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
9333         New define.
9334         (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
9335         * config/stormy16/stormy16.c (xstormy16_below100_symbol):
9336         Check symbol flags instead of symbol name mangling.
9337         (xstormy16_asm_output_aligned_common): Likewise.  Also
9338         simplify code since the bss100_section cass is the only case
9339         where the below100 code will be triggered.
9340         (xstormy16_encode_section_info): Encode below100 attribute
9341         using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
9342         the name.
9343         (xstormy16_strip_name_encoding): Delete - this function is no
9344         longer needed.
9345         (TARGET_STRIP_NAME_ENCODING): Undefine.
9346         * config/stormy16/stormy16-protos.h: Delete prototype for
9347         xstormy16_strip_name_encoding.
9349 2005-08-06  Kazu Hirata  <kazu@codesourcery.com>
9351         * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
9352         config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
9353         tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
9354         config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
9355         config/alpha/predicates.md, config/arc/arc.h,
9356         config/arm/arm.h, config/arm/ieee754-df.S,
9357         config/arm/ieee754-sf.S, config/bfin/bfin.c,
9358         config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
9359         config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
9360         config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
9361         config/m68hc11/m68hc11.h, config/mips/mips.c,
9362         config/mips/mips.h, config/mips/openbsd.h,
9363         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
9364         config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
9365         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
9366         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
9367         config/sparc/linux.h, config/sparc/linux64.h,
9368         config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
9369         doc/extend.texi, doc/gcov.texi, doc/install.texi,
9370         doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
9371         typos.  Follow spelling conventions.
9373 2005-08-06  Joseph S. Myers  <joseph@codesourcery.com>
9375         PR c/23113
9376         * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
9377         Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
9378         specially.  Check for side effects only for COND_EXPR.
9379         * c-typeck.c (c_finish_stmt_expr): Mark statement expression
9380         return with TREE_NO_WARNING.
9382 2005-08-06  Richard Sandiford  <richard@codesourcery.com>
9384         PR rtl-optimization/23233
9385         * loop.c (combine_movables): Require the modes to be the same.
9386         (move_movables): Remove handling of cases where the replacement
9387         had a different mode to the original.
9389 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
9391         PR tree-optimization/23128
9392         * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
9393         subtraction wrap, and set TREE_OVERFLOW if they do.
9395 2005-08-05  Richard Henderson  <rth@redhat.com>
9397         PR 21728
9398         * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
9399         FORCED_LABEL labels.
9401 2005-08-05  J"orn Rennecke <joern.rennecke@st.com>
9403         PR middle-end/23135
9404         * reload.c (find_reloads_subreg_address): Pass down TYPE
9405         unchanged.  Change all callers except find_reloads_toplev.
9407 2005-08-05  Michael Matz  <matz@suse.de>
9409         * genattrtab.c (current_alternative_string): Remove.
9410         (SIMPLIFY_ALTERNATIVE): Ditto.
9411         (attr_alt_bit_p): Ditto.
9412         (alternative_name): Make const char *.
9413         (evaluate_eq_attr): Remove use of above things.
9414         (simplify_test_exp): Ditto.
9415         (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
9416         (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
9418 2005-08-04  James E Wilson  <wilson@specifix.com>
9420         * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
9421         config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
9422         config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
9423         config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
9424         (LINK_SPEC): Delete useless %{Wl,*:%*} item.
9426 2005-08-04  Richard Henderson  <rth@redhat.com>
9428         PR 21529
9429         * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
9430         * params.h (SRA_MAX_STRUCTURE_COUNT): New.
9431         * tree-sra.c (decide_block_copy): Use it.  Disable element copy
9432         if we'd have to instantiate too many members.
9434 2005-08-04  Richard Henderson  <rth@redhat.com>
9436         PR 21291
9437         * tree-outof-ssa.c (coalesce_asm_operands): New.
9438         (coalesce_ssa_name): Use it.  Split out ...
9439         (coalesce_phi_operands, coalesce_result_decls): ... these.
9441 2005-08-04  Paul Brook  <paul@codesourcery.com>
9443         * read-rtl.c (read_quoted_string): Break if EOF.
9445 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
9447         * tree.h (fold_build1): Change to macro and call fold_build1_stat.
9448         (fold_build2): Likewise.
9449         (fold_build3): Likewise.
9450         (fold_build1_stat): New function prototype.
9451         (fold_build2_stat): Likewise.
9452         (fold_build3_stat): Likewise.
9453         * fold-const.c (fold_build1): Rename to ..
9454         (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
9455         through to build1_stat.
9456         (fold_build2): Rename to ..
9457         (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
9458         through to build2_stat.
9459         (fold_build3): Rename to ..
9460         (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
9461         through to build3_stat.
9463 2005-08-04  David Edelsohn  <edelsohn@gnu.org>
9464             Ian Lance Taylor  <ian@airs.com>
9466         * function.c (assign_stack_local_1): Do not correct stack slot
9467         address if allocation size is smaller than mode size.
9469 2005-08-04  Diego Novillo  <dnovillo@redhat.com>
9471         PR 22037
9472         * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
9473         (tree_merge_blocks): Propagate anything allowed by
9474         may_propagate_copy.
9475         Clarify documentation.
9476         * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
9477         SSA form, schedule an update if necessary.
9479 2005-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
9481         * doc/install.texi (Binaries): Remove broken link to
9482         Sinix/Reliant Unix binaries.
9484 2005-08-03  Richard Henderson  <rth@redhat.com>
9486         PR 23221
9487         * function.c (stack_protect_epilogue): Export.
9488         * tree.h (stack_protect_epilogue): Declare.
9489         * calls.c (expand_call): Call it.
9491 2005-08-03  Eric Christopher  <echristo@apple.com>
9493         * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
9494         * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
9495         spec.
9497 2005-08-04  Jan Hubicka  <jh@suse.cz>
9499         * profile.c (branch_prob): Split edges with goto locus on them
9500         to get proper line counts.
9501         * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
9503 2005-08-03  Paul Brook  <paul@codesourcery.com>
9505         * function.c (assign_parms): Round current_function_args_size
9506         to PARM_BOUNDARY, not STACK_BOUNDARY.
9508 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
9510         * config/i386/i386.c (x86_elf_aligned_common)
9511         (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
9513 2005-08-03  Zdenek Dvorak  <dvorakz@suse.cz>
9515         PR tree-optimization/23157
9516         * tree-scalar-evolution.c (scev_const_prop): Unshare trees
9517         before emitting them.
9519 2005-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9521         PR tree-optimization/19899
9522         * Makefile.in (tree-scalar-evolution.o): Add real.h.
9523         * tree-scalar-evolution.c: Include real.h.
9524         (add_to_evolution): Build constant -1 of correct type.
9526 2005-08-03  Jan Hubicka  <jh@suse.cz>
9528         * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
9529         * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
9530         profile updating for complette unrolling.
9531         * loop-unroll.c (peel_loop_completely): Use it.
9532         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
9533         (tree_unroll_loops_completely): Disable code growing unrolling of cold
9534         loops.
9536 2005-08-03  Paul Brook  <paul@codesourcery.com>
9538         * combine.c (can_change_dest_mode): New function.
9539         (try_combine, simplify_set): Use it.
9541 2005-08-03  Eric Botcazou  <ebotcazou@adacore.com>
9543         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
9544         TFmode to BLKmode.
9546 2005-08-03  Gerald Pfeifer  <gerald@pfeifer.com>
9548         * doc/install.texi (Specific): Adjust link to openavr.org.
9549         (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
9550         (Binaries): Adjust HP-UX Porting Center link.
9551         (Binaries): Adjust Free Software Foundation ordering link.
9553 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
9555         * convert.c (convert_to_integer): Use fold_build1 instead of
9556         build1 when converting an integer to an integer.
9558 2005-08-02  Richard Henderson  <rth@redhat.com>
9560         * combine.c (combine_instructions): Don't use reg_equal/equiv
9561         results if the mode doesn't match.
9563 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
9565         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
9566         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
9568 2005-08-02  Richard Henderson  <rth@redhat.com>
9570         PR 23196
9571         * explow.c (memory_address): Remove special-case for
9572         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
9574 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
9576         PR 23164
9577         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
9578         number of calls to cleanup_tree_cfg_1.
9580 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
9582         * doc/invoke.texi: document file extensions .F90 and .F95
9584 2005-08-02  Richard Guenther  <rguenther@suse.de>
9586         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
9587         positive if its first argument is positive.
9589 2005-08-02  Richard Guenther  <rguenther@suse.de>
9591         PR tree-optimization/23177
9592         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
9593         on TMR_TAG.
9595 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
9597         PR tree-optimization/23129
9598         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
9599         varying for divisions with anti-ranges.
9601 2005-08-02  Jan Hubicka  <jh@suse.cz>
9603         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
9604         * tree-ssa-threadupdate.c (thread_block): Add it here.
9606 2005-08-01  James E Wilson  <wilson@specifix.com>
9608         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
9609         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
9610         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
9611         New.
9612         * config/mips/predicates.md (const_call_insn_operand): Add check for
9613         SYMBOL_REF_LONG_CALL_P.
9614         * doc/extend.texi (long_call): Document the new attribute.
9616 2005-08-01  Ian Lance Taylor  <ian@airs.com>
9617             Richard Henderson  <rth@redhat.com>
9619         * Makefile.in (RTL_BASE_H): Add real.h.
9620         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
9621         instead of memcpy.
9622         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
9623         directly.
9624         * rtl.c (rtl_check_failed_code_mode): New.
9625         * rtl.h (struct rtx_def): Add u.rv.
9626         (XCMWINT, XCNMPRV): New.
9627         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
9628         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
9630 2005-08-01  Richard Henderson  <rth@redhat.com>
9632         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
9633         with auto-inc codes.
9635         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
9637 2005-08-01  Jan Hubicka  <jh@suse.cz>
9639         * i386-protos.h (asm_preferred_eh_data_format): Declare.
9640         * i386.c: Include dwarf2.h
9641         (asm_preferred_eh_data_format): New.
9642         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
9644 2005-08-01  Ian Lance Taylor  <ian@airs.com>
9646         * config/host-linux.c (linux_gt_pch_get_address): Add new name
9647         randomize_va_space for virtual address randomization control.
9649 2005-08-01  Steven Bosscher  <stevenb@suse.de>
9651         * common.opt (flag_ipa_cp): Put in right place to maintain
9652         alphabetic sort.
9654 2005-08-01  Jan Hubicka  <jh@suse.cz>
9656         * profile.c (compute_value_histograms): Fix thinko.
9657         * value-prof.c: Include toplev.h
9658         (check_counter): New function.
9659         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
9660         tree_mod_subtract_transform): Add sanity check.
9662 2005-08-01  Richard Guenther  <rguenther@suse.de>
9664         PR tree-optimization/23133
9665         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
9666         current functions parameter decls to find defs to cse
9667         reciprocals of.
9669 2005-08-01  Richard Guenther  <rguenther@suse.de>
9671         PR tree-optimization/23109
9672         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
9673         If trapping math is in effect, use post-dominator information
9674         to check if we'd in any case reach a trapping point before
9675         doing the reciprocal insertion.
9676         (execute_cse_reciprocals): Compute post-dominators, if necessary.
9677         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
9678         expressions are invariant only if trapping math is not in effect.
9680 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
9682         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
9683         cgraph_function_versioning): New declarations.
9684         * cgraphunit.c: Add include to ipa-prop.h.
9685         (update_call_expr, cgraph_copy_node_for_versioning,
9686         cgraph_function_versioning): New functions.
9687         * integrate.c (copy_decl_for_inlining): Remove.
9688         * ipa-prop.h (ipa_replace_map): New struct.
9689         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
9690         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
9691         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
9692         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
9693         ipcp_iterate_stage, ipcp_method_scale_print,
9694         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
9695         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
9696         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
9697         ipcp_update_bb_counts, ipcp_update_profiling,
9698         ipcp_update_edges_counts): New functions.
9699         (ipcp_method_cval_init): Remove restriction regarding local methods.
9700         (ipcp_init_stage): Add ipcp_method_compute_scale.
9701         (ipcp_insert_stage): Add versioning.
9702         (ipcp_structures_print): Add ipcp_method_scale_print.
9703         (ipcp_driver): Dump profiling info.
9704         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
9705         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
9706         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
9707         (struct inline_data): Add versioning_p, ipa_info, new fields.
9708         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
9709         declare_return_variable): Replace calls to copy_decl_for_inlining with
9710         copy_decl_for_dup.
9711         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
9712         versioning support.
9713         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
9714         Add argument VERSIONING.
9715         (copy_arguments_for_versioning, copy_static_chain,
9716         function_versionable_p, tree_versionable_function_p,
9717         tree_function_versioning, replace_ref_tree): New functions.
9718         * tree-inline.h: Include varray.h.
9719         (tree_versionable_function_p,  tree_function_versioning,
9720         tree copy_decl_for_dup): New declarations.
9722 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
9724         * ipa-cp.c: New file. Contains IPCP specific functionality.
9725         * ipa-prop.h: New file. Contains structures/definitions that can be
9726         used by several interprocedural data flow optimizations (and also IPCP).
9727         * ipa-prop.c: New file.
9728         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
9729         * common.opt: Add ipa-cp flag.
9730         * timevar.def: Add IPCP optimization.
9731         * tree-optimize.c (init_tree_optimization_passes): Schedule
9732         pass_ipa_cp.
9733         * tree-pass.h (pass_ipa_cp): Declare.
9735 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
9737         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
9738         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
9739         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
9740         config/i386/i386.c, config/mips/mips.h,
9741         config/rs6000/rs6000.h, config/sh/sh.c,
9742         config/stormy16/stormy16.c: Fix comment typos.
9744 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
9746         PR c/22311
9747         * c-typeck.c (build_binary_op): Use common_type wrapper on
9748         shortened types.
9749         (common_type): Update comment.
9751 2005-07-31  Steven Bosscher  <stevenb@suse.de>
9753         PR target/23095
9754         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
9755         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
9756         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
9758 2005-07-31  Jan Hubicka  <jh@suse.cz>
9760         * pretty-print.h (pp_widest_integer): New macro.
9761         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
9762         counts.
9764 2005-07-31  Jan Hubicka  <jh@suse.cz>
9766         * output.h (enum section_category): Export from varasm.c
9767         (categorize_decl_for_section): Likewise.
9768         * varasm.c (enum section_category): Kill.
9769         (categorize_decl_for_section): Make global.
9770         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
9771         Declare.
9772         * i386.c (ix86_section_threshold): New static variable.
9773         (ix86_in_large_data_p, ix86_encode_section_info,
9774         x86_64_elf_unique_section,
9775         x86_64_elf_select_section): New functions.
9776         (TARGET_ENCODE_SECTION_INFO): Define
9777         (override_options): Enable medium model for PIC.
9778         (ix86_expand_prologue): Expand gen_set_got_rex64.
9779         (legitimate_constant_p): Handle new UNSPECs.
9780         (legitimate_pic_address_disp_p): Likewise.
9781         (legitimize_pic_address): Lower MEDIUM model addressing.
9782         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
9783         (enum cmodel): Add MEDIUM_PIC.
9784         (SYMBOL_REF_FAR_ADDR_P): New macro.
9785         (SYMBOL_FLAG_FAR_ADDR): New flag.
9786         * i386.md (movdi): Support medium model.
9787         (set_got_rex64): New pattern.
9788         * i386.opt (mlarge-data-threshold): New flag.
9789         * predicates.md (zext_operand/sext_operand): Deal with medium model.
9790         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
9791         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
9792         TARGET_ASM_UNIQUE_SECTION): New.
9794         * invoke.texi (-mlarge_data_threshold): Document
9796 2005-07-31  Jan Hubicka  <jh@suse.cz>
9798         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
9799         (coalesce_vars): Likewise.
9800         * tree-ssa-live.c (coalesce_cost): New.
9801         (build_tree_conflict_graph): Use coalesce_cost.
9802         * tree-ssa-live.h (coalesce_cost): Declare.
9804 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
9806         * arm.md (all peepholes for post-increment operations): Delete.
9807         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
9808         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
9809         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
9810         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
9811         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
9813 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
9815         * fold-const.c (tree_expr_nonnegative_p): Always return true for
9816         non-integral types.
9818 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
9820         PR target/22582
9821         * doc/invoke.texi: Document -rdynamic.
9823 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9825         PR c/23143
9826         * c-parser.c (c_parser_parms_list_declarator): Call
9827         mark_forward_parm_decls.
9828         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
9829         decls with visibility structure.
9831 2005-07-30  Paul Brook  <paul@codesourcery.com>
9833         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
9835 2005-07-30  Paul Brook  <paul@codesourcery.com>
9837         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
9838         prototype.
9839         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
9840         value for mode.
9841         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
9843 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9845         PR c/529
9846         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
9847         nested function declarators.
9848         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
9849         (grokparms): Call warn_if_shadowing for parameters used within the
9850         parameter list.
9851         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
9852         not used within the parameter list.
9853         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
9855 2005-07-30  Jan Hubicka  <jh@suse.cz>
9857         * expr.c (expand_expr_real_1): Do not load mem targets into register.
9858         * i386.c (ix86_fixup_binary_operands): Likewise.
9859         (ix86_expand_unary_operator): Likewise.
9860         (ix86_expand_fp_absneg_operator): Likewise.
9861         * optabs.c (expand_vec_cond_expr): Validate dest.
9863 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9865         PR c/21720
9866         * real.c (real_from_string): Also set last bit if there is a
9867         nonzero hex digit beyond GCC's internal precision after ".".
9869 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
9871         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
9872         define_constants.  Change duplicate values to unassigned numbers.
9873         Change UNSPEC_SUBS to UNSPEC_VSUBS.
9874         (*altivec_vspltsf): New.
9875         (altivec_vperm_v4sf): Delete.
9876         (altivec_vperm_<mode>): Use mode macro V.
9877         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
9878         (altivec_predicate_v4sf): Delete.
9879         (altivec_predicate_<mode>): Use mode macro V.
9880         (*altivec_lvesfx): New.
9881         (*altivec_stvesfx): New.
9882         (vec_realign_load_v4sf): Delete.
9883         (vec_realign_load_<mode>): Use mode macro V.
9884         * config/rs6000/rs6000.c (generate_set_vrsave): Use
9885         UNSPECV_SET_VRSAVE.
9887 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
9889         PR bootstrap/23131
9890         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
9891         string.
9892         * configure: Regenerated.
9894 2005-07-29  Paul Brook  <paul@codesourcery.com>
9896         * doc/install.texi: Add link to GFortran binaries wiki page.
9898 2005-07-29  David Ung  <davidu@mips.com>
9900         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
9901         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
9902         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
9903         * config/mips/mips.md (cpu): Add 5kf name.
9904         (includes): Includes 5k.md.
9905         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
9906         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
9907         -march flag.
9909 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
9911         PR 22550
9912         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
9913         (cleanup_tree_cfg): ... here.
9914         Call cleanup_tree_cfg_1 until there are no more cleanups to
9915         do.
9917 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
9919         * tree-vrp.c (compare_range_with_value): Return true or false
9920         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
9921         EQ_EXPR respectively.
9923 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
9925         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
9926         Fix comment typos.
9928 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
9930         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
9931         (tree_ssa_dominator_optimize): Increment it.
9932         (dump_dominator_optimization_stats): Print it.
9934 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
9935             Steven Bosscher  <stevenb@suse.de>
9937         PR rtl-optimization/23117
9938         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
9939         when head == tail.  Tidy comment.
9941 2005-07-28  Richard Henderson  <rth@redhat.com>
9943         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
9944         * cselib.c (rtx_equal_for_cselib_p): Likewise.
9945         * jump.c (rtx_renumbered_equal_p): Likewise.
9946         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
9947         CONST_INT and CONST_DOUBLE.
9948         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
9949         * reload.c (operands_match_p): Special case CONST_INT and
9950         CONST_DOUBLE; check mode earlier.
9952 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9954         PR c/22240
9955         * c-typeck.c (convert_for_assignment): Do not check
9956         DECL_IN_SYSTEM_HEADER on NULL fundecl.
9958 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9960         PR c/22192
9961         * c-typeck.c (composite_type): Prefer constant size arrays to
9962         VLAs.
9964 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9966         PR c/21720
9967         * real.c (real_from_string): Set last bit if there is a nonzero
9968         hex digit beyond GCC's internal precision.
9970 2005-07-28  Richard Henderson  <rth@redhat.com>
9972         PR rtl-opt/22619
9973         * cfgcleanup.c (try_forward_edges): Watch out for end of
9974         insn chain.
9976 2005-07-28  James E Wilson  <wilson@specifixinc.com>
9978         PR c/23106
9979         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
9981 2005-07-28  Jan Hubicka  <jh@suse.cz>
9983         * Makefile.in (rtl-profile.o): Kill all traces of it.
9984         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
9985         * coverage.h (rtl_coverage_counter_ref): Kill.
9986         * opts.c (flag_speculative_prefetching_set): Kill.
9987         (flag_loop_optimize_set): New.
9988         (common_handle_option): Disable loop optimizer when profiling;
9989         do not handle speculative prefetching.
9990         * passes.c (init_optimization_passes): Replace pass_profiling combo
9991         by branch_prob pass.
9992         * profile.c (compute_value_histograms): Update for simplified value
9993         profiles.
9994         (rtl_register_profile_hooks): Kill.
9995         (pass_profiling): Kill.
9996         (rest_of_handle_branch_prob): Do not profile.
9997         * toplev.c (process_options): Remove speculative prefetching.
9998         * toplev.h (flag_tree_based_profiling): Kill.
9999         * tree-profile.c (prepare_instrumented_value,
10000         tree_gen_interval_profiler, tree_gen_pow2_profiler,
10001         tree_gen_one_value_profiler, do_tree_profiling): Update for
10002         simplified datastructures.
10003         * value-prof.c: Add comment that speculative prefetching was dropped;
10004         update rest of file for simplified datastructures.
10005         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
10006         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
10007         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
10008         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
10009         rtl_mod_subtract, gen_speculative_prefetch,
10010         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
10011         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
10012         (gate_handle_value_profile_transformations,
10013         rest_of_handle_value_profile_transformations,
10014         pass_value_profile_transformations): Kill.
10015         * value-prof.h (histogram_value_t): Remove IL based unions.
10016         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
10017         rtl_profile_hooks): Remove hooks.
10019         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
10021         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
10022         (cgraph_clone_node): Likewise.
10023         * cgraph.h (cgraph_clone_edge): Update prototype.
10024         (cgraph_clone_node): Likewise.
10025         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
10026         cgraph_clone_node.
10027         (lookup_recursive_calls): Consider profile.
10028         (cgraph_decide_recursive_inlining): Fix updating; use new
10029         probability argument; use profile.
10030         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
10031         * tree-inline.c (copy_bb): Update clal of clone_edge.
10032         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
10034         * invoke.texi (min-inline-recursive-probability): Document.
10036 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
10038         * doc/install.texi (Configuration): Update Valgrind homepage.
10040 2005-07-28  Richard Henderson  <rth@redhat.com>
10042         PR middle-end/21362
10043         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
10044         labels we want to delete.
10045         (cfg_layout_merge_blocks): Likewise.
10047 2005-07-28  Richard Henderson  <rth@redhat.com>
10049         PR target/17692
10050         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
10051         when expanding to nothing.
10053 2005-07-28  Josh Conner  <jconner@apple.com>
10055         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
10056         (cgraph_decide_inlining_of_small_functions): Likewise.
10058 2005-07-28  Josh Conner  <jconner@apple.com>
10060         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
10061         direction of badness if negative.
10062         (cgraph_default_inline_p): Add reason to parameters, and assign it
10063         a value.
10064         (cgraph_decide_inlining_of_small_functions): New parameter in call
10065         to cgraph_default_inline_p.
10066         (cgraph_decide_inlining_incrementally): Likewise.
10067         * cgraphunit.c (decide_is_function_needed): Likewise.
10068         * cgraph.h (cgraph_default_inline_p): Likewise.
10070 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
10072         * builtins.c: Fix comment typo(s).
10073         * genautomata.c: Likewise.
10074         * gimplify.c: Likewise.
10075         * tree-dfa.c: Likewise.
10076         * tree-flow-inline.h: Likewise.
10077         * tree-into-ssa.c: Likewise.
10078         * tree-ssa-alias.c: Likewise.
10079         * tree-ssa-ccp.c: Likewise.
10080         * tree-ssa-copy.c: Likewise.
10081         * tree-ssa-dce.c: Likewise.
10082         * tree-ssa-dom.c: Likewise.
10083         * tree-ssa-operands.c: Likewise.
10084         * tree-tailcall.c: Likewise.
10085         * tree-vectorizer.c: Likewise.
10086         * tree-vrp.c: Likewise.
10087         * tree.c: Likewise.
10089 2005-07-28  Jeff Law  <law@redhat.com>
10091         * tree-vrp.c (test_for_singularity): Extracted from  ...
10092         (simplify_cond_using_ranges): Attempt to simplify a relational
10093         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
10095 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
10097         PR tree-optimization/22506
10098         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
10099         phis whose argument is constant.
10101 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
10103         PR rtl-optimization/18992
10104         Back out this patch:
10105           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10106           PR optimization/12142
10107           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
10108           uses of the register in the SET_SRC.  Remove unnecessary argument.
10110         Replace it with this:
10111         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
10112         if flag_non_call_exceptions is set and the insn may trap, pass
10113         pc_rtx as dest for recursion.
10114         In SET_SRC part of SET case, if dest is already set, pass it down
10115         unchanged.
10117 2005-07-28  Jan Hubicka  <jh@suse.cz>
10119         * cfg.c (update_bb_profile_for_threading): Use RDIV.
10120         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
10121         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
10122         roundoff errors.
10123         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
10124         profile when available.
10126 2005-07-28  Jan Beulich <jbeulich@novell.com>
10128         * config/ia64/ia64.c (ia64_load_pair_ok): New.
10129         (ia64_print_operand): Describe and handle 'X'.
10130         (ia64_register_move_cost): Also handle FP_REGS.
10131         (ia64_preferred_reload_class): Likewise.
10132         (ia64_secondary_reload_class): Likewise.
10133         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
10134         it. Also check for ITANIUM_CLASS_FLDP.
10135         * config/ia64/ia64.h (FP_REGNO_P): New.
10136         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
10137         (reg_class): Add FP_REGS.
10138         (REG_CLASS_NAMES): Adjust for it.
10139         (REG_CLASS_CONTENTS): Likewise.
10140         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
10141         (REG_CLASS_FROM_LETTER): Handle 'x'.
10142         (CLASS_MAX_NREGS): Handle FP_REGS.
10143         (MEMORY_MOVE_COST): Likewise.
10144         * config/ia64/ia64.md (itanium_class): Add fldp.
10145         (type): Handle fldp.
10146         (movti_internal): More allowable operand combinations. Use ldfp8 when
10147         splitting unnecessary. Remove predicable attribute. Adjust
10148         itanium_class attribute.
10149         (smuldi3_highpart): Remove outdated comment.
10150         (mulditi3, umulditi3, rotlti3): New expanders.
10151         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
10152         (absti2): Disabled new insn for future reference.
10153         Respective new splitters.
10154         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
10155         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
10156         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
10158 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
10160         PR rtl-optimization/23047
10161         * simplify-rtx.c (simplify_const_relational_operation): Respect
10162         flag_wrapv for comparisons with ABS.
10164 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
10166         PR tree-optimization/22493
10167         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
10168         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
10170 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
10172         * config/frv/frv.opt (moptimize-membar): New.
10174         * doc/invoke.texi: Document -moptimize-membar and its inverse.
10176         * config/frv/frv.h: Remove machine_function definition.
10178         * config/frv/frv.c (struct frv_io): New.
10179         (struct machine_function): Moved from frv.h.  Add has_membar_p.
10180         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
10181         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
10182         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
10183         (frv_optimize_membar_global, frv_optimize_membar): New functions.
10184         (frv_reorg): Call frv_optimize_membar when appropriate.
10185         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
10186         (frv_expand_builtin): Adjust calls accordingly.
10187         (frv_io_address_cookie): New function.
10188         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
10189         load or store rather than a special insn.  Add ccnstant address and
10190         io-type operands to the membar.
10191         (frv_ifcvt_modify_tests): Unsign regno.
10192         (frv_ifcvt_modify_tests): Same.
10194         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
10195         UNSPEC_OPTIONAL_MEMBAR constant.
10196         (builtin_read_<mode>): Delete.
10197         (builtin_write_<mode>): Delete.
10198         ("optional_membar_<mode>"): Add operand.
10200         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
10201         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
10202         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
10203         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
10204         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
10205         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
10206         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
10207         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
10208         * testsuite/gcc.target/frv/all-read-write-1.c: New.
10210 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
10212         * df.c (df_uses_record): Handle SCRATCH.
10214 2005-07-28  Steven Bosscher  <stevenb@suse.de>
10216         PR debug/20161
10217         * passes.c (rest_of_decl_compilation): If decl is a type and
10218         we have encountered errors, don't emit debug information.
10220 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
10222         * params.def: Fixed comment.
10224 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
10226         PR target/19885
10227         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
10228         (TARGET_ASM_UNALIGNED_HI_OP): Add.
10229         (TARGET_ASM_UNALIGNED_SI_OP): Add.
10231 2005-07-27  Steven Bosscher  <stevenb@suse.de>
10233         PR c++/22003
10234         * varasm.c (assemble_start_function): Don't do anything that may
10235         require a CFG if the current function is a thunk.
10237 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
10239         * doc/install.texi (Prerequisites): Mention that perl is needed
10240         to do export control in libstdc++ targetting Darwin.
10242 2005-07-27  Steven Bosscher  <stevenb@suse.de>
10244         PR rtl-optimization/17808
10245         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
10246         (sched_insns_conditions_mutex_p): Split out from...
10247         (add_dependence): ...here.  But don't call it from here.
10248         (add_dependence_list): Check sched_insns_conditions_mutex_p
10249         before calling add_dependence.
10250         (add_dependence_list_and_free): Likewise.
10251         (fixup_sched_groups): Likewise.
10252         (sched_analyze_1): Likewise.
10253         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
10254         (sched_analyze): Likewise.
10255         (sched_analyze_insn): Likewise.
10256         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
10257         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
10258         dependencies on all COND_EXEC insns to jumps ending basic blocks
10259         when doing intrablock scheduling.
10260         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
10262 2005-07-27  Jeff Law  <law@redhat.com>
10264         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
10265         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
10266         equivalency sets, correctly handle the case were vr0 has an
10267         equivalency set, but vr1 does not.
10269 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
10271         PR tree-optimization/23073
10272         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
10273         vect_print_dump_info before fprintf.
10275 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
10277         PR tree-optimize/22348
10278         * tree-ssa-loop-niter.c (number_of_iterations_cond):
10279         Fold the partial computation.
10281 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
10283         PR tree-optimization/22325
10284         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
10285         Declare.
10286         * tree-scalar-evolution.c (scev_const_prop): Add generic final
10287         value replacement.
10288         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
10289         (force_var_cost): ... this function.
10290         (compute_phi_arg_on_exit): Export.
10292 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
10294         PR tree-optimization/20773
10295         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
10296         edge.
10298 2005-07-27  Richard Guenther  <rguenther@suse.de>
10300         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
10301         Avoid pushing again if current struct contains only
10302         fields we decomposed.
10304 2005-07-27  Jan Hubicka  <jh@suse.cz>
10306         PR tree-optimization/22574
10307         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
10308         not available.
10310         * tree-tailcall.c (decrease_profile): New function.
10311         (eliminate_tail_call): Use it.
10313         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
10314         visibility flags correctly in whole program mode.
10316 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
10318         PR rtl-optimization/22472
10319         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
10321 2005-07-26  Steven Bosscher  <stevenb@suse.de>
10323         PR tree-optimization/22504
10324         * tree-complex.c (expand_complex_addition): Use 'code' instead
10325         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
10327 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
10329         * config.gcc (cpu_type): Add frv case.
10330         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
10331         (supported_defaults): Add fr550 case.
10333 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
10335         PR 22591
10336         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
10337         whether a pointer of type T * may point to objects of type T *.
10339 2005-07-26  DJ Delorie  <dj@redhat.com>
10341         * configure: Regenerate.
10343 2005-07-26  Dale Johannesen  <dalej@apple.com>
10345         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
10347 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
10349         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
10350         Clarify use of "build" in name.
10352 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
10354         * doc/extend.texi (Raw read/write Functions): New section.
10355         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
10356         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
10357         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
10358         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
10359         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
10360         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
10361         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
10362         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
10363         * config/frv/frv.c: Add bdesc_loads global.
10364         Add bdesc_stores global.
10365         (frv_init_builtins): Add support for __builtin_{read/write}*.
10366         (frv_volatile_memref): New.
10367         (frv_expand_load_builtin): New.
10368         (frv_expand_store_builtin): New.
10369         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
10370         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
10371         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
10372         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
10373         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
10374         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
10375         (builtin_read_<mode>): New.
10376         (builtin_write_<mode>): New.
10377         (builtin_write64): New.
10378         (optional_membar_<mode>): New.
10380 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
10382         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
10383         (rather than units) against HOST_BITS_PER_WIDE_INT.
10385 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
10387         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
10388         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
10389         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
10390         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
10391         FSF address.
10393         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
10394         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
10395         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
10396         comment typos.
10397         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
10399 2005-07-26  Richard Guenther  <rguenther@suse.de>
10401         PR tree-optimization/22486
10402         * fold-const.c (fold_unary): Fold away useless component
10403         references of the form (T *)&T.x, if the address
10404         doesn't change.
10406 2005-07-25  James E Wilson  <wilson@specifixinc.com>
10408         * dwarf2out.c (add_call_src_coords_attributes): New.
10409         (gen_inlined_subroutine_die): Call it.
10410         (maybe_emit_file, init_file_table): Add comments.
10411         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
10412         maybe_emit_file.
10413         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
10414         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
10415         * tree.h (BLOCK_SOURCE_LOCATION): New.
10416         (struct tree_block): New field locus.
10418 2005-07-26  Andreas Schwab  <schwab@suse.de>
10420         PR rtl-optimization/23043
10421         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
10422         when allocating a struct unoccr.
10424 2005-07-25  Richard Henderson  <rth@redhat.com>
10426         PR 22626
10427         * tree-complex.c (gate_no_optimization): True if errors.
10428         * Makefile.in (tree-complex.o): Update dependencies.
10430 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
10432         * config/frv/predicates.md (integer_register_operand): Use
10433         GPR_AP_OR_PSEUDO_P.
10435 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
10437         PR tree-opt/22484
10438         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
10439         after fold.
10440         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
10442 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
10444         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
10445         types when flag_unsafe_math_optimizations is true.
10447 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
10449         * gcc.c (option_map): Add --sysroot.
10450         (process_command): Handle --sysroot.
10451         (display_help): Document it.
10452         * doc/cppopts.tex (-isysroot): Document.
10453         * doc/invoke.texi (--sysroot): Document.
10454         * doc/install.texi (--with-build-sysroot): Document.
10456         * Makefile.in (inhibit_libc): New variable.
10457         (INHIBIT_LIBC_CFLAGS): Likewise.
10458         (LIBGCC2_CFLAGS): Include
10459         $(INHIBIT_LIBC_CFLAGS).
10460         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
10461         ($(T)crtbegin.o): Do not use @inhibit_libc@.
10462         ($(T)crtend.o): Likewise.
10463         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
10464         ($(T)crtendS.o): Likewise.
10465         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
10466         ($(T)crtendT.o): Likewise.
10467         (stmp-fixinc): Do not complain about missing headers if
10468         inhibit_libc.
10469         * configure.ac (inhibit_libc): Set it to true/false.
10470         (--with-build-sysroot): New option.  Use it to set
10471         SYSTEM_HEADER_DIR.
10472         * configure: Regenerated.
10474 2005-07-25  Manfred Hollstein  <mh@suse.com>
10476         * calls.c (store_one_arg): Fix unsigned comparison warning.
10478 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
10480         PR other/22337
10481         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
10482         (ggc_print_statistics): Initialize variable before use.
10484 2005-07-25  Richard Guenther  <rguenther@suse.de>
10486         * tree-dfa.c (mark_new_vars_to_rename): Protect against
10487         calling with a PHI_NODE argument.
10489         * tree-flow-inline.h (overlap_subvar): Protect against
10490         possible overflow.
10492 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
10494         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
10495         * configure: Regenerate.
10497 2005-07-25  Ira Rosen  <irar@il.ibm.com>
10499         * expr.c (highest_pow2_factor): Make extern.
10500         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
10501         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
10502         record_array_differ_p, array_ptr_differ_p): Likewise.
10503         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
10504         additional cases. Call the above functions.
10505         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
10506         base_object_differ_p when there are two base objects. Otherwise, compare
10507         base address and offset. Call may_alias_p.
10508         (dump_data_reference): Use a correct field name.
10509         (analyze_array): Make static. Initialize new data-ref fields.
10510         (analyze_indirect_ref): New function.
10511         (init_data_ref): Initialize new data-ref fields.
10512         (strip_conversion): Moved from tree-vect-analyze.c.
10513         (analyze_offset_expr, get_ptr_offset, address_analysis,
10514         object_analysis): Likewise.
10515         (analyze_offset): New function.
10516         (create_data_ref): Likewise.
10517         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
10518         dimensions for ARRAY_REFs only.
10519         (build_classic_dist_vector): Make static.
10520         (access_functions_are_affine_or_constant_p): Call macro to get the
10521         address of access functions.
10522         (compute_all_dependences): Add new parameter
10523         compute_self_and_read_read_dependences. Compute self and read-read
10524         dependences if it is true.
10525         (find_data_references_in_loop): Call create_data_ref. Initialize new
10526         data-ref fields.
10527         (compute_data_dependences_for_loop): Add new parameter
10528         compute_self_and_read_read_dependences. Remove parameter nb_loops,
10529         compute nb_loops. Call compute_all_dependences,
10530         build_classic_dist_vector and build_classic_dir_vector with correct
10531         parameters.
10532         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
10533         with correct parameters. Compare dimensions for ARRAY_REFs only.
10534         (free_data_refs): Call macro to free access functions.
10535         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
10536         fields from stmt_vinfo.
10537         (struct base_object_info): New structure.
10538         (struct data_reference): Move fields to base_object_info. Add fields
10539         first_location and object_info for above structures. Move fields from
10540         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
10541         aligned_to.  Add macros to access the new fields.
10542         Update functions declarations.
10543         * tree-flow.h (is_aliased_with): Declare.
10544         * tree-loop-linear.c (linear_transform_loops): Call
10545         compute_data_dependences_for_loop with correct parameters.
10546         * tree-ssa-alias.c (is_aliased_with): New function.
10547         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
10548         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
10549         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
10550         vect_base_addr_differ_p, compute_subscript_distance and
10551         build_classic_dist_vector. Add printings. Check absolute value of
10552         distance.
10553         (vect_analyze_data_ref_dependences): Go through ddrs instead of
10554         data-refs.
10555         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
10556         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
10557         to bytes. Add printing.
10558         (vect_compute_data_refs_alignment): Go through loads and stores in one
10559         loop.
10560         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
10561         vect_analyze_data_ref_access): Likewise.
10562         (vect_analyze_pointer_ref_access): Remove.
10563         (vect_address_analysis, vect_object_analysis): Likewise.
10564         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
10565         and analyze data-refs in the loop.
10566         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
10567         fields of data-ref instead of stmt. Add init to the offset from the
10568         base.
10569         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
10570         (vect_update_init_of_dr): Likewise.
10571         (vect_update_inits_of_drs): Go through loads and stores in one loop.
10572         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
10573         removed fields.
10574         (new_loop_vec_info): Initialize new fields.
10575         (destroy_loop_vec_info): Free new fields.
10576         (vect_strip_conversion): Remove.
10577         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
10578         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
10579         datarefs. Add new field ddrs.
10580         Add macros for the new fields access.
10581         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
10582         base_aligned_p, misalignment, memtag, ptr_info and subvars.
10583         Remove their macros.
10584         * tree.h (highest_pow2_factor): Declare.
10586 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
10588         * calls.c (store_one_arg): Check for sibling call MEM arguments
10589         from already clobbered incoming argument area.
10591 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10593         * c-common.c (check_missing_format_attribute): New.
10594         * c-common.h (check_missing_format_attribute): Likewise.
10595         * c-typeck.c (convert_for_assignment): Use it.
10597 2005-07-24  Andreas Schwab  <schwab@suse.de>
10599         * config/m68k/m68k.md ("extendqidi2"): When source is an address
10600         register use a word move.  Correct operand of ext.w in 68000 code.
10602 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
10604         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
10605         variables as declarations, rather than definitions.
10607 2005-07-24  Ira Rosen  <irar@il.ibm.com>
10609         PR tree-optimization/22526
10610         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
10611         of the zero node.
10613 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
10615         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
10616         that C99 reserve for future use. Use it to define clog10,
10617         clog10f and clog10l.
10619 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10621         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
10622         * configure.ac: Check for -Wmissing-format-attribute.
10624         * configure: Regenerate.
10626 2005-07-23  Richard Henderson  <rth@redhat.com>
10628         PR tree-optimization/22623
10629         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
10631 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
10633         PR target/22577
10634         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
10636 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10638         * Makefile.in (C_TREE_H): Update dependencies.
10639         * c-tree.h: Include toplev.h.
10640         * diagnostic.h (diagnostic_set_info): Add format attribute.
10641         * rtl-error.c (diagnostic_for_asm): Likewise.
10643 2005-07-23  Chao-ying Fu  <fu@mips.com>
10645         * config/mips/mips-dsp.md: New file.
10646         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
10647         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
10648         functions.
10649         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
10650         MIPS_BUILTIN_BPOSGE32.
10651         (mips_expand_builtin_direct): Add one parameter to indicate that
10652         builtin functions need to return a value.
10653         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
10654         functions.
10655         (mips_regno_to_class): Add classes for 12 new DSP registers.
10656         (mips_subword): Change to check four HI registers.
10657         (mips_output_move): Output move to and from 6 new DSP accumulators.
10658         (override_options): Make sure -mdsp and -mips16 are not used together.
10659         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
10660         for machine modes.
10661         (mips_conditional_register_usage): Disable 6 new DSP accumulators
10662         when !TARGET_DSP.
10663         (print_operand): Add 'q' for printing DSP accumulators.
10664         (mips_cannot_change_mode_class): Check ACC_REGS.
10665         (mips_secondary_reload_class): Check ACC_REGS.
10666         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
10667         (mips_register_move_cost): Check ACC_REGS.
10668         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
10669         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
10670         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
10671         (dsp_bdesc): New array.
10672         (bdesc_arrays): Add DSP builtin function table.
10673         (mips_prepare_builtin_arg): Check predicate again after
10674         copy_to_mode_reg.
10675         (mips_expand_builtin): Add one more parameter to
10676         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
10677         MIPS_BUILTIN_BPOSGE32.
10678         (mips_init_builtins): Initialize new function types.
10679         (mips_expand_builtin_direct): Check if builtin functions need to
10680         return a value and pass operands properly.
10681         (mips_expand_builtin_bposge): New function.
10682         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
10683         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
10684         (FIRST_PSEUDO_REGISTER): Increase to 188.
10685         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
10686         Update for 12 new DSP registers.
10687         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
10688         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
10689         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
10690         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
10691         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
10692         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
10693         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
10694         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
10695         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
10696         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
10697         (REGISTER_NAMES): Add names for 12 new DSP registers.
10698         * config/mips/mips.md: Include mips-dsp.md.
10699         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
10700         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
10701         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
10702         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
10703         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
10704         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
10705         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
10706         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
10707         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
10708         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
10709         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
10710         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
10711         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
10712         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
10713         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
10714         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
10715         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
10716         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
10717         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
10718         (UNSPEC_RDDSP): New constants.
10719         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
10720         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
10721         A<-d alternative.
10722         * config/mips/mips.opt (-mdsp): New option.
10723         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
10724         (reg_imm10_operand): New predicates.
10725         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
10726         * doc/invoke.texi (-mdsp): Document new option.
10728 2005-07-22  DJ Delorie  <dj@redhat.com>
10730         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
10731         to warning calls.
10732         * tree-inline.c (inlinable_function_p): Likewise.
10734 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
10736         PR debug/21828
10737         * toplev.c (check_global_declarations): Do not mark undefined
10738         variables as DECL_IGNORED_P.
10739         * varasm.c (first_global_object_name): GTY it.
10740         (weak_global_object_name): Likewise.
10741         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
10742         a string to go into {weak,first}_global_object_name.
10744 2005-07-22  DJ Delorie  <dj@redhat.com>
10746         * c-format.c (check_function_format): Change warning control
10747         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
10749 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
10751         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
10752         &PTR->FLD a dereference of PTR.
10753         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
10754         a potential dereference of PTR.
10756 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
10758         PR rtl-optimization/20370
10759         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
10760         call allocate_reg_info if necessary.
10762         PR rtl-optimization/21848
10763         * calls.c (emit_library_call_value_1): For const functions, add
10764         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
10766         PR rtl-optimization/22445
10767         * cselib.c (target.h): Include.
10768         (rtx_equal_for_cselib_p): Allow commutative matches.
10769         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
10770         Remove MODE parameter.  Changed all callers.
10772         PR rtl-optimization/22258
10773         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
10774         New functions.
10775         (try_combine): Use likely_spilled_retval_p.
10777 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
10779         * config.gcc: Add crx-elf support.
10781         * doc/contrib.texi: Mention crx.
10782         * doc/extend.texi: Document crx extensions.
10783         * doc/install.texi: Document crx install.
10784         * doc/invoke.texi: Document crx options.
10785         * doc/md.texi: Document crx constraints.
10787         * config/crx/crx-protos.h: New file.
10788         * config/crx/crx.c: New file.
10789         * config/crx/crx.h: New file.
10790         * config/crx/crx.md: New file.
10791         * config/crx/crx.opt: New file.
10792         * config/crx/t-crx: New file.
10794 2005-07-22  Manfred Hollstein  <mh@suse.com>
10796         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
10797         warnings.
10798         (int_add_graph_edge): Likewise.
10799         (collapse_nodes): Likewise.
10800         (process_unification_queue): Likewise.
10802 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10803             Laurent GUERBY  <laurent@guerby.net>
10805         PR tree-optimization/22336
10806         * function.c (record_block_change): Check for
10807         cfun->ib_boundaries_block.
10809 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
10811         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
10812         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
10814 2005-07-21  DJ Delorie  <dj@redhat.com>
10816         * toplev.c (warn_deprecated_use): Add warning control to warning
10817         call.
10818         * c-typeck.c (parser_build_binary_op): Likewise.
10819         (c_finish_if_stmt): Likewise.
10820         * c-common.c (check_function_sentinel): Likewise.
10821         (check_nonnull_arg): Likewise.
10823 2005-07-21  Richard Henderson  <rth@redhat.com>
10825         PR tree-opt/22504
10826         * tree-complex.c (complex_ssa_name_components): New.
10827         (cvc_lookup): Allow entry not found.
10828         (create_components): Remove.
10829         (create_one_component_var, get_component_var): New.
10830         (get_component_ssa_name, set_component_ssa_name): New.
10831         (extract_component): Use get_component_ssa_name.
10832         (update_complex_components): Use set_component_ssa_name.
10833         (update_complex_components_on_edge): Likewise.
10834         (update_phi_components): Create new PHI nodes directly, instead
10835         of adding insns to edges.
10836         (tree_lower_complex): Allocate and free complex_variable_components
10837         and complex_ssa_name_components here.
10839 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
10841         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
10842         revert to returning false.
10844 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
10846         PR target/21149
10847         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
10849 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
10851         PR target/22576
10852         * config/i386/i386.md (cmpxf): Change operand constraints
10853         to "nonmemory_operand".
10855 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
10857         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
10859 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
10861         PR middle-end/21180
10862         * fold-const.c (fold_build1): Add checksum for the operands.
10863         (fold_build2): Likewise.
10864         (fold_build3): Likewise.
10866 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
10868         PR middle-end/19055
10869         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
10871 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
10873         * common.opt (-fforward-propagate): Committed by mistake,
10874         removed.
10876 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
10878         * reg-stack.c: Fix comment typo(s).
10879         * tree-ssa-operands.c: Likewise.
10880         * tree-vectorizer: Likewise.
10882 2005-07-21  Nick Clifton  <nickc@redhat.com>
10884         * config/sh/symbian.c: Replace C++ style line comments with C
10885         style line comments.
10886         (symbian_add_attribute): Do not use a ? operator on the LHS of
10887         an assignment.
10888         (sh_symbian_handle_dll_attribute): Change the type of the
10889         method vector to "VEC(tree,gc)*" and use vector accessor
10890         macros to walk over the elements.
10891         (symbian_export_vtable_and_rtti_p): Likewise.
10892         (symbian_class_needs_attribute_p): Likewise.
10894 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
10896         PR target/22085
10897         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
10898         initialize targetm.resolve_overloaded_builtin here.
10899         (altivec_expand_overloaded_builtin): Make it non-static.
10900         * config/rs6000/rs6000-protos.h
10901         (altivec_expand_overloaded_builtin): New prototype.
10902         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
10903         targetm.resolve_overloaded_builtin here.
10904         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
10906 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
10907             Zdenek Dvorak  <dvorakz@suse.cz>
10909         PR tree-optimization/19210
10910         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
10911         New.
10912         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
10913         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
10914         rely on unproven assumptions.
10915         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
10916         * tree-flow.h (number_of_iterations_exit): Add final parameter.
10917         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
10918         to number_of_iterations_exit.
10919         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
10920         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
10921         * tree-ssa-loop-niter.c (find_loop_niter,
10922         estimate_numbers_of_iterations_loop): Likewise.
10923         (number_of_iterations_exit): Honor the new options.
10924         * doc/invoke.texi (Wunsafe-loop-optimizations,
10925         funsafe-loop-optimizations): Document them.
10927 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
10929         PR rtl-optimization/22167
10930         * gcse.c (hoist_code): Fix hoist_exprs[] check.
10932 2005-07-20  Adam Nemet  <anemet@lnxw.com>
10934         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
10935         __do_global_dtors_aux longcall.
10937 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
10939         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
10940         (old_special_pred_table): Don't reference
10941         SPECIAL_MODE_PREDICATES.
10942         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
10943         * config/arc/arc.h: Don't mention PREDICATE_CODES.
10944         * config/sh/predicates.h: Don't mention
10945         SPECIAL_MODE_PREDICATES.
10946         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
10947         Remove.
10949 2005-07-20  DJ Delorie  <dj@redhat.com>
10951         * config.gcc: Add m32c-elf support.
10953         * doc/contrib.texi: Mention m32c.
10954         * doc/extend.texi: Document m32c extensions.
10955         * doc/install.texi: Mention m32c.
10956         * doc/invoke.texi: Document m32c options.
10957         * doc/md.texi: Document m32c constraints.
10959         * config/m32c/addsub.md: New file.
10960         * config/m32c/bitops.md: New file.
10961         * config/m32c/cond.md: New file.
10962         * config/m32c/jump.md: New file.
10963         * config/m32c/m32c-lib1.S: New file.
10964         * config/m32c/m32c-lib2.c: New file.
10965         * config/m32c/m32c-modes.def: New file.
10966         * config/m32c/m32c-pragma.c: New file.
10967         * config/m32c/m32c-protos.h: New file.
10968         * config/m32c/m32c.abi: New file.
10969         * config/m32c/m32c.c: New file.
10970         * config/m32c/m32c.h: New file.
10971         * config/m32c/m32c.md: New file.
10972         * config/m32c/m32c.opt: New file.
10973         * config/m32c/minmax.md: New file.
10974         * config/m32c/mov.md: New file.
10975         * config/m32c/muldiv.md: New file.
10976         * config/m32c/predicates.md: New file.
10977         * config/m32c/prologue.md: New file.
10978         * config/m32c/shift.md: New file.
10979         * config/m32c/t-m32c: New file.
10981 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10983         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
10984         (stack_protect_set, stack_protect_test): New expanders.
10985         (stack_protect_set_si, stack_protect_set_si_media,
10986         stack_protect_set_di_media, stack_protect_test_si,
10987         stack_protect_test_si_media, stack_protect_test_di_media):
10988         New insns.
10990 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
10992         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
10994 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
10996         * tree.h (tree_expr_nonzero_p): Export.
10997         * fold-const.c (tree_expr_nonzero_p): Likewise.
10998         Return true for CALL_EXPRs that are alloca calls.
10999         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
11000         against zero.
11001         * tree-flow.h (expr_computes_nonzero): Remove.
11002         * tree-vrp.c (expr_computes_nonzero): Remove.
11003         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
11004         (extract_range_from_unary_expr): Likewise.
11005         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
11006         tree_expr_nonzero_p.
11008 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
11010         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
11011         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
11012         extra arg "picreg" and use it instead of pic_offset_table_rtx.
11013         All callers changed.
11014         (frame_related_constant_load): New arg "related" which controls
11015         setting of RTX_FRAME_RELATED_P.  All callers changed.
11016         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
11017         (bfin_expand_prologue): Add stack limit checking.
11018         * config/bfin/bfin.md (trapifcc): New pattern.
11020         * config/bfin/bfin.c: Include "langhooks.h".
11021         (def_builtin): Go through lang_hooks to call builtin_function.
11023         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
11024         * config/bfin/predicates.md (symbol_ref_operand): New.
11025         (call_insn_operand): Delete.  All callers changed to use
11026         register_no_elim_operand.
11027         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
11028         call_cookie field.
11029         (function_arg): Use it to generate the call's operand 2.
11030         (bfin_longcall_p): New function.
11031         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
11032         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
11033         determine if the address needs to be in a REG.
11034         (bfin_handle_longcall_attribute): New function.
11035         (bfin_attribute_table): Add "longcall" and "shortcall".
11036         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
11037         (CUMULATIVE_ARGS): New member call_cookie.
11038         (PREDICATE_CODES): Add symbol_ref_operand.
11039         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
11040         extra USE to the pattern.
11041         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
11042         New patterns, split off call_insn, sibcall_insn, call_value_insn and
11043         sibcall_value_insn; now the new patterns handle direct calls and the
11044         old ones indirect calls.
11045         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
11047 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
11049         * doc/trouble.texi: Update section on handling of empty loops.
11051 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
11053         * config.gcc: Remove support for sparc-*-openbsd*,
11054         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
11055         ns32k-*-netbsd*.
11056         * config.host: Remove support for i860-*-sysv4* as a host.
11057         * config/i860/*, config/ip2k/*, config/ns32k/*,
11058         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
11059         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
11060         mention obsolete ports.
11062 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
11064         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
11065         soft frame pointer.
11066         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
11067         of frame_pointer_rtx.
11068         (sh_expand_epilogue): Likewise.
11069         (sh_set_return_address): Likewise.
11070         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
11071         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
11072         offsets from FRAME_POINTER_REGNUM.
11073         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
11074         (sh_register_names): Add initializer for sfp.
11075         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
11076         (VALID_REGISTER_P): Likewise.
11077         (FIRST_PSEUDO_REGISTER): Update.
11078         (DWARF_FRAME_REGISTERS): Define.
11079         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
11080         (HARD_FRAME_POINTER_REGNUM): Define.
11081         (FRAME_POINTER_REGNUM): Redefine.
11082         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
11083         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
11084         from FRAME_POINTER_REGNUM.
11085         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
11086         FRAME_POINTER_REGNUM.
11087         (REG_CLASS_CONTENTS): Add sfp.
11088         (REG_ALLOC_ORDER): Likewise.
11089         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
11090         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
11091         of frame_pointer_rtx.
11092         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
11094 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
11096         * fold-const.c (tree_expr_nonnegative_p): Only return true for
11097         ABS_EXPR when flag_wrapv is false because of INT_MIN.
11098         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
11099         of an ABS_EXPR.
11100         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
11101         ABS_EXPR<x>.
11103 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
11105         Make CONSTRUCTOR use VEC to store initializers.
11106         * c-common.c (complete_array_type): Update to cope with VEC in
11107         CONSTRUCTOR_ELTS.
11108         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
11109         (pp_c_constructor_elts): New function.
11110         * c-pretty-print.h (pp_c_constructor_elts): Declare.
11111         * c-typeck.c (build_function_call, build_c_cast, digest_init,
11112         struct constructor_stack, struct initializer_stack,
11113         constructor_elements, push_init_level, pop_init_level,
11114         add_pending_init, find_init_member, output_init_element): Update to
11115         cope with VEC in CONSTRUCTOR_ELTS.
11116         * coverage.c (build_fn_info_value, build_ctr_info_value,
11117         build_gcov_info): Likewise.
11118         * expr.c (categorize_ctor_elements_1, store_constructor,
11119         expand_expr_real_1): Likewise.
11120         * fold-const.c (fold_ternary): Likewise.
11121         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
11122         gimplify_init_constructor, gimplify_expr): Likewise.
11123         * tree-dump.c (dequeue_and_dump): Likewise.
11124         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
11125         node.
11126         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
11127         CONSTRUCTOR_ELTS.
11128         * tree-sra.c (generate_element_init_1): Likewise.
11129         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
11130         * tree-ssa-operands.c (get_expr_operands): Likewise.
11131         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
11132         * tree-vect-transform.c (vect_get_vec_def_for_operand):
11133         (get_initial_def_for_reduction): Likewise.
11134         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
11135         value handle in annotations.
11136         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
11137         tree_node_structure): Add support for constr_kind.
11138         (build_vector_from_ctor, build_constructor_single,
11139         build_constructor_from_list): New functions.
11140         (build_constructor): Update to take a VEC instead of a TREE_LIST.
11141         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
11142         Update to cope with VEC in CONSTRUCTOR_ELTS.
11143         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
11144         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
11145         CONSTRUCTOR_APPEND_ELT): New macros.
11146         (struct constructor_elt, struct tree_constructor): New data types.
11147         (union tree_node): Add tree_constructor field.
11148         * treestruct.def: Define TS_CONSTRUCTOR.
11149         * varasm.c (const_hash_1, compare_constant, copy_constant,
11150         compute_reloc_for_constant, output_addressed_constants,
11151         initializer_constant_valid_p, output_constant,
11152         array_size_for_constructor, output_constructor): Update to cope with
11153         VEC in CONSTRUCTOR_ELTS.
11154         * vec.h (VEC_empty, VEC_copy): New macros.
11156 2005-07-19  Devang Patel  <dpatel@apple.com>
11158         * dbxout.c (dbxout_type): Check Objective-C++ lang.
11160 2005-07-19  Richard Henderson  <rth@redhat.com>
11162         PR tree-opt/22278
11163         * gimplify.c (gimplify_expr): Use main variant type for the temp
11164         destination for a discarded volatile read.
11165         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
11166         casts between non-void types that change volatility.
11168 2005-07-15  DJ Delorie  <dj@redhat.com>
11170         * toplev.h: Add comment about the first parameter for warning().
11171         * errors.h: Likewise.
11173         * c.opt (Wpragmas): New.
11174         * doc/invoke.texi: Document it.
11176         * function.c (do_warn_unused_parameter): Add warning control to
11177         warning call.
11178         * c-decl.c (warn_if_shadowing): Likewise.
11179         * c-lex.c (cb_def_pragma): Likewise.
11180         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
11181         (pop_alignment): Likewise.
11182         (handle_pragma_pack): Likewise.
11183         (apply_pragma_weak): Likewise.
11184         (handle_pragma_weak): Likewise.
11185         (handle_pragma_redefine_extname): Likewise.
11186         (add_to_renaming_pragma_list): Likewise.
11187         (handle_pragma_extern_prefix): Likewise.
11188         (maybe_apply_renaming_pragma): Likewise.
11189         (handle_pragma_visibility): Likewise.
11191         * config/c4x/c4x-c.c (BAD): Likewise.
11192         (c4x_parse_pragma): Likewise.
11193         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
11194         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
11195         (rs6000_pragma_longcall): Likewise.
11196         * config/v850/v850-c.c (pop_data_area): Likewise.
11197         (ghs_pragma_section): Likewise.
11198         (ghs_pragma_section): Likewise.
11199         (ghs_pragma_interrupt): Likewise.
11200         (ghs_pragma_starttda): Likewise.
11201         (ghs_pragma_startsda): Likewise.
11202         (ghs_pragma_startzda): Likewise.
11203         (ghs_pragma_endtda): Likewise.
11204         (ghs_pragma_endsda): Likewise.
11205         (ghs_pragma_endzda): Likewise.
11207 2005-07-19  Danny Berlin <dberlin@dberlin.org>
11208             Kenneth Zadeck <zadeck@naturalbridge.com>
11210         * Makefile.in: Removed tree-promote-statics.c
11211         * tree-promote-statics.c: Removed.
11212         * common.opt: Removed flag-promote-statics.
11213         * opts.c: Ditto.
11214         * passes.c: Removed tree-promote-statics pass.
11215         * tree-pass.h: Ditto.
11216         * timevar.def: Removed TV_PROMOTE_STATICS.
11219 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
11221         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
11222         and *-*-freebsd9.
11223         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
11225 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11227         PR c/22476
11228         * c-common.c (check_function_arguments): Call
11229         'check_function_format' if either -Wformat or
11230         -Wmissing-format-attribute are specified.
11231         * c-format.c (check_function_format): Check -Wformat before
11232         calling 'check_format_info'.
11233         * c-opts.c (c_common_post_options): Don't warn for
11234         -Wmissing-format-attribute without -Wformat.
11235         * c-typeck.c (convert_for_assignment): Detect additional cases for
11236         -Wmissing-format-attribute.
11237         * doc/invoke.texi (-Wmissing-format-attribute): Document new
11238         behavior.
11240 2005-07-19  Richard Guenther  <rguenther@suse.de>
11242         * config/i386/i386.md (lrint<mode>2): Use temporary
11243         instead of clobbering non-existent memory.
11245 2005-07-19  Nick Clifton  <nickc@redhat.com>
11247         * config/avr/avr.c (legitimate_address_p): Fix debugging print
11248         statement to avoid displaying ASCII control characters.
11250 2005-07-19  Ben Elliston  <bje@au.ibm.com>
11252         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
11253         * cfganal.c (find_edge_index): Ditto.
11254         * combine.c (combine_instructions): Ditto.
11255         * ddg.c (create_scc): Ditto.
11256         (find_successors): Ditto.
11257         (find_predecessors): Ditto.
11258         (find_nodes_on_paths): Ditto.
11259         (longest_simple_path): Ditto.
11260         * flow.c (update_life_info): Ditto.
11261         (count_or_remove_death_notes): Ditto.
11262         (clear_log_links): Ditto.
11263         * modulo-sched.c (generate_reg_moves): Ditto.
11264         (find_max_asap): Ditto.
11265         (find_max_hv_min_mob): Ditto.
11266         (find_max_dv_min_mob): Ditto.
11267         * sbitmap.c (sbitmap_first_set_bit): Ditto.
11268         * sched-rgn.c (extract_edgelst): Ditto.
11269         * tree-into-ssa.c (prepare_names_to_update): Ditto.
11270         (dump_update_ssa): Ditto.
11271         (ssa_names_to_replace) Ditto.
11272         (switch_virtuals_to_full_rewrite): Ditto.
11273         (update_ssa): Ditto.
11274         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
11276 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
11278         Fix PR tree-optimization/22483
11280         * tree-complex.c (create_components): Use
11281         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
11282         * tree-flow-inline.h (fill_referenced_var_vec): New function.
11283         * tree-flow.h (safe_referenced_var_iterator): New structure.
11284         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
11285         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
11286         safe_referenced_var iterator.
11287         (add_type_alias): Ditto.
11289 2005-07-19  Steven Bosscher  <stevenb@suse.de>
11291         * loop-init.c (rest_of_handle_loop2): Remove.
11292         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
11293         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
11294         (pass_rtl_loop_init, pass_rtl_loop_done,
11295         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
11296         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
11297         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
11298         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
11299         pass_tree_loop_done, and pass_tree_unswitch.
11300         (gate_loop): Rename to gate_tree_loop.
11301         * passes.c (init_optimization_passes): Update for renamed tree
11302         loop passes.  Add the new loop2 passes as subpasses of loop2.
11303         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
11304         Update for the renamed tree loop passes.
11306 2005-07-18  Ian Lance Taylor  <ian@airs.com>
11308         PR middle-end/22057
11309         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
11310         blocks when optimizing.
11312 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
11314         * common.opt (frename-registers): Initialize to 2.
11315         (fweb): Ditto.
11316         (fgcse-after-reload): Ditto.
11317         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
11318         (process_options): Only change flag_web, flag_rename_registers,
11319         and flag_rerun_cse_after_loop if not explicitly set by user.
11321 2005-07-18  Jan Beulich  <jbeulich@novell.com>
11323         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
11324         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
11325         in 64-bit mode the same as DImode in 32-bit mode.
11326         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
11327         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
11328         mode. Add new mode parameter.
11329         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
11330         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
11331         x86_64_shift_adj): New expanders.
11332         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
11333         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
11334         insns.
11335         Respective new splitters. Use renamed shift splitter helpers in 32-bit
11336         DImode shift splitters.
11337         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
11338         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
11339         mode parameter.
11341 2005-07-18  Jan Beulich  <jbeulich@novell.com>
11343         * i386.md (movdi_extzv_1): New.
11344         (zero_extendhidi2): Combine alternatives and never force use of
11345         REX64 prefix.
11346         (zero_extendqidi2): Likewise. Don't restrict input selection.
11348 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
11350         Fix PR tree-optimization/22531
11351         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
11352          moment.
11354 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
11356         * tree-promote-statics.c (pass_promote_statics): Change dump file
11357          name.
11359 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
11361         * tree-optimize.c (init_tree_optimization_passes): Add
11362         pass_eliminate_useless_stores pass.
11363         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
11364         * tree-ssa-pre.c (is_copy_stmt): New function.
11365         (follow_copies_till_vuse): Ditto.
11366         (do_eustores): Ditto.
11367         (gate_eustores): Ditto.
11369 2005-07-16  Richard Henderson  <rth@redhat.com>
11371         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
11373 2005-07-16 Danny Berlin <dberlin@dberlin.org>
11374            Kenneth Zadeck <zadeck@naturalbridge.com>
11376         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
11377         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
11378         ipa-type-escape.h, tree-promote-statics.c
11379         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
11380         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
11381         tree-promote-statics.c: new files.
11382         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
11383         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
11384         int nonlocal_set_p, mark_constant_function): Deleted.
11385         (rest_of_handle_cfg): Removed call to mark_constant_function.
11386         (nonoverlapping_component_refs_p): Added calls to support
11387         type based aliasing.
11388         * tree-ssa-alias.c (may_alias_p,
11389         compute_flow_insensitive_aliasing): Ditto.
11390         * calls.c (flags_from_decl_or_type): Removed reference to
11391         cgraph_rtl_info.
11392         * c-typeck.c (convert_arguments): Make builtins tolerant of having
11393         too many arguments.  This is necessary for Spec 2000.
11394         * cgraph.h (const_function, pure_function): Removed.
11395         * common.opt: Added "fipa-pure-const", "fipa-reference",
11396         "fipa-type-escape", and "ftree-promote-static".
11397         * opts.c: Ditto.
11398         * passes.c: Added ipa and tree-promote-statics passes.
11399         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
11400         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
11401         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
11402         * tree-flow.h: Added exposed sra calls and addition of
11403         reference_vars_info field for FUNCTION_DECLS.
11404         * tree-pass.h: Added passes.
11405         * tree-sra.c: (sra_init_cache): New function.
11406         (sra_insert_before, sra_insert_after) Made public.
11407         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
11408         and made public.
11409         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
11410         aliasing. (may_alias_p): Added code to use type escape analysis to
11411         improve alias sets.
11412         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
11413         code to prune clobbers of static variables based on information
11414         produced in ipa-reference pass.  Changed call clobbering so that
11415         statics are not marked as clobbered if the call does not clobber
11416         them.
11418 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
11420         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
11421         too.
11423 2005-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
11425         * doc/install.texi (*-*-solaris2*): Document recommended version
11426         of GNU binutils and mention GNU linker problem on Solaris 10.
11428 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
11430         PR c/22421
11431         * c-decl.c (c_build_bitfield_integer_type): New function.
11432         (finish_struct): Call it.
11433         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
11435 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11437         * c-typeck.c (digest_init): Call 'convert_for_assignment'
11438         before returning.
11440 2005-07-16  Jan Hubicka  <jh@suse.cz>
11442         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
11443         (scale_bbs_frequencies_int): Watch roundoff errors.
11444         * predict.c (return_prediction): Initialize return_stmt.
11446 2005-07-16  Jan Hubicka  <jh@suse.cz>
11448         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
11449         after RTL profiling.
11451 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
11453         PR middle-end/22398
11454         * fold-const.c (build_range_check): Convert high/low to etype
11455         if we are only comparing against exp.
11457 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
11459         Fix PR tree-optimization/22376
11460         * tree-ssa-structalias.c (build_constraint_graph): We really meant
11461         special var here.
11462         (need_to_solve): New function.
11463         (compute_points_to_sets): Use it.
11465 2005-07-15  Jan Hubicka  <jh@suse.cz>
11467         * cfg.c (update_bb_profile_for_threading): More diagnostic.
11468         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
11470 2005-07-15  Richard Guenther  <rguenther@suse.de>
11472         * c-common.c (handle_flatten_attribute): New function.
11473         Add flatten function attribute.
11474         * doc/extend.texi: Document flatten function attribute.
11475         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
11476         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
11477         New functions.
11478         (cgraph_decide_inlining): Handle functions with flatten
11479         attribute.
11481 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
11483         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
11484         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
11485         UNSPEC_XCHG, UNSPEC_AND): New.
11486         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
11487         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
11488         * config/rs6000/sync.md (FETCHOP): New code macro.
11489         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
11490         New code attrs.
11491         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
11492         (sync_compare_and_swap<mode>): Same.
11493         (sync_lock_test_and_set<mode>): Same.
11494         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
11495         for QImode and HImode, and not PPC405.
11496         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
11497         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
11498         (sync_<fetchop>{si,di}_internal): New.
11499         (sync_nand{si,di}_internal): New.
11500         (sync_old_<fetchop>{si,di}_internal): New.
11501         (sync_old_nand{si,di}_internal): New
11502         (sync_new_<fetchop>{si,di}_internal): New.
11503         (sync_new_nand{si,di}_internal): New.
11504         (atomic_and{si,di}): New.
11505         (sync_new_nand{si,di}_internal): New.
11506         (atomic_and{si,di}): New.
11507         (sync_add<mode>_internal): Delete.
11508         (sync_addshort_internal): Use unspec instead of unspec_volatile.
11509         (sync_sub<mode>_internal): Delte.
11510         (sync_subshort_internal): New.
11511         (sync_andsi_internal): Use unspec instead of unspec_volatile.
11512         (sync_anddi_internal): Delete.
11513         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
11514         (sync_booldi_internal): Delete.
11515         (sync_boolc<mode>_internal): Delete.
11516         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
11517         (sync_boolc<mode>_internal2): Delete.
11518         (sync_boolcc<mode>_internal): Delete.
11519         (isync, lwsync): Use unspec instead of unspec_volatile.
11520         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
11521         Revert UNSPEC_VOLATILE.
11522         (rs6000_split_atomic_op): New.
11523         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
11525 2005-07-14  Eric Christopher  <echristo@redhat.com>
11527         * config/mips/mips.c (mips_canonicalize_comparison): Cast
11528         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
11530 2005-07-14  Eric Christopher  <echristo@redhat.com>
11532         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
11534 2005-07-14  Steven Bosscher  <stevenb@suse.de>
11536         PR tree-optimization/22230
11537         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
11538         the computation of the four cross productions for "range op range".
11540 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
11541             Ulrich Weigand  <uweigand@de.ibm.com>
11543         PR target/20126
11544         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
11545         in some insn.
11547 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
11549         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
11551 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
11553         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
11555 2005-07-14  Richard Guenther  <rguenther@suse.de>
11557         PR middle-end/22347
11558         * config/i386/i386-protos.h (ix86_function_value): Change
11559         prototype to match new target hook.
11560         * config/i386/i386.c (ix86_value_regno): Change prototype
11561         to take extra type argument.
11562         (TARGET_FUNCTION_VALUE): Define.
11563         (ix86_function_ok_for_sibcall): Pass extra argument to
11564         ix86_value_regno, check return slot rtx for exact match.
11565         (ix86_function_value): Take extra parameter.  Dispatch to
11566         ix86_value_regno with fndecl/fntype as provided.
11567         (ix86_value_regno): Handle extra type argument.
11568         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
11570         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
11571         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
11572         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
11573         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
11574         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
11576 2005-07-14  Richard Guenther  <rguenther@suse.de>
11578         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
11579         * calls.c (expand_call): Pass fntype to hard_function_value.
11580         (emit_library_call_value_1): Likewise.
11581         * explow.c: Include target.h.
11582         (hard_function_value): Take extra argument, the fntype.
11583         Use new target hook for function_value.
11584         * expr.h (hard_function_value): Change prototype.
11585         * function.c (aggregate_value_p): Pass 0 as fntype to
11586         hard_function_value.
11587         (assign_parms): Use new target hook for function_value.
11588         Pass 0 as fntype to hard_function_value.
11589         (expand_function_end): Likewise.
11590         * reg-stack.c: Include target.h.
11591         (stack_result): Use new target hook for function_value.
11592         * target-def.h: New target hook function_value.
11593         * target.h: Likewise.
11594         * targhooks.c (default_function_value): New function.
11595         * targhooks.h (default_function_value): Declare.
11597 2005-07-13  Ian Lance Taylor  <ian@airs.com>
11599         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
11601 2005-07-14  Jan Hubicka  <jh@suse.cz>
11603         * tree-dfa.c (dump_variable): Use default_def function.
11604         * tree-ssa-alias.c (dump_points_to_info): Likewise.
11605         * tree-ssa.c (verify_use): Likewise.
11606         * tree-ssanames.c (release_ssa_name): Likewise.
11607         * tree-tailcall.c (eliminate_tail_call): Likewise.
11608         (tree_optimize_tail_calls_1): Likewise.
11609         * tree-vrp.c (get_value_range): Likewise.
11611 2005-07-14  Ben Elliston  <bje@au.ibm.com>
11613         * gcc.c (main): Compare language[0] with '*' when iterating over
11614         the infiles.
11616 2005-07-13  Adrian Straetling  <straetling@de.ibm.com>
11618         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
11619         "s390_emit_compare".  Add handling of CCZ1mode.
11620         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
11621         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
11622         checking.
11623         (s390_branch_condition_mask): Add CCZ1mode handling.
11624         * config/s390/s390.md: ("seq", "*seq"): New pattern.
11625         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
11626         Use CCZ1mode instead of CCZmode.
11627         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
11629 2005-07-13  Adrian Straetling  <straetling@de.ibm.com>
11631         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
11632         pattern.
11633         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
11635 2005-07-13  Eric Christopher  <echristo@redhat.com>
11637         * config/mips/mips.c (mips_canonicalize_comparison): New.
11638         (mips_emit_int_relational): Use.
11640 2005-07-13  Eric Christopher  <echristo@redhat.com>
11642         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
11643         static extra parts.
11644         * config/s390/s390.md: Include tpf.md. Move tpf specific
11645         patterns...
11646         * config/s390/tpf.md: To here.
11647         * config/s390/s390.opt: Move tpf specific options...
11648         * config/s390/tpf.opt: to here. Add mmain option.
11649         * config/s390/tpf-unwind.h: Remove unnecessary defines.
11650         * config/s390/tpf.h: Rewrite.
11652 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
11654         * doc/tm.texi: Remove @xref{Cross-profiling}.
11656 2005-07-13  Jeff Law  <law@redhat.com>
11658         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
11659         expressions, test their _DECL operands for pointer equality rather
11660         than using operand_equal_p.
11662 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
11664         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
11665         (TARGET_POSIX_IO): This.
11666         * config/darwin.h: Likewise.
11667         * config/freebsd.h: Likewise.
11668         * config/linux.h: Likewise.
11669         * config/lynx.h: Likewise.
11670         * config/netbsd.h: Likewise.
11671         * config/rs6000/linux64.h: Likewise.
11672         * config/rs6000/linux.h: Likewise.
11673         * config/s390/tpf.h: Likewise.
11674         * config/sh/embed-elf.h: Likewise.
11675         * config/sparc/linux64.h: Likewise.
11676         * config/sparc/linux.h: Likewise.
11677         * config/svr4.h: Likewise.
11678         * gcov-io.h: Likewise.
11680         * doc/tm.texi: Updated.
11682         * libgcov.c (create_file_directory): Defined only if
11683         TARGET_POSIX_IO is defined.
11684         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
11685         is defined.
11687 2005-07-13  Jan Hubicka  <jh@suse.cz>
11689         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
11691 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
11693         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
11694         structure as argument.
11696 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
11698         PR tree-optimization/21921
11699         * tree-iterator.c (tsi_link_before): Support the case when
11700         tsi_end_p (tsi) == true.
11702 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
11704         PR tree-optimization/22442
11705         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
11706         correctly.
11708 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
11710         PR rtl-optimization/20376
11711         * toplev.c (process_options): Enable -fweb and -frename-registers when
11712         unrolling.
11713         * doc/invoke.texi: Update the information about when -fweb and
11714         -frename-registers are enabled.
11716 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
11718         PR tree-opt/21840
11719         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
11720         if *rhs_p is not a SSA_NAME.
11722 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
11724         Fix PR tree-optimization/22422
11725         * tree-ssa-structalias.c (struct variable_info): Add flag for
11726         special vars.
11727         (get_varinfo): Now a static function.
11728         (new_varinfo): init has_union and is_special_var to false.
11729         (solution_set_add): Check has_union.
11730         (do_da_constraint): Move temporary variable so it gets reset
11731         properly.
11732         Also check for special variable.
11733         (do_ds_constraint): Ditto.
11734         (do_sd_constraint): Ditto.
11735         (do_structure_copy): Check for special variable.
11736         (find_func_aliases): Ditto.
11737         (init_base_vars): Set special vars properly.
11739 2005-07-13  Jan Hubicka  <jh@suse.cz>
11741         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
11742         do unit-at-a-time.
11744         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
11745         (get_expr_operands): Fix thinko wrt flags and subvars.
11747         PR tree-optimize/22379
11748         * tree-inline.c (expand_call_inline): Do not output sorry in early
11749         inlining.
11751 2005-07-12  Dale Johannesen  <dalej@apple.com>
11753         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
11755 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
11757         PR bootstrap/21704
11758         * host-linux.h: Include limits.h.
11760 2005-07-12  Dale Johannesen  <dalej@apple.com>
11762         * expr.c (compress_float_constant):  Add cost check.
11763         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
11765 2005-07-12  Dale Johannesen  <dalej@apple.com>
11767         * gcc.target/i386/compress-float-sse.c:  New.
11768         * gcc.target/i386/compress-float-sse-pic.c:  New.
11769         * gcc.target/i386/compress-float-387.c:  New.
11770         * gcc.target/i386/compress-float-387-pic.c:  New.
11771         * gcc.dg/compress-float-ppc.c:  New.
11772         * gcc.dg/compress-float-ppc-pic.c:  New.
11774 2005-07-12  Eric Christopher  <echristo@redhat.com>
11776         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
11777         static extra parts.
11778         * config/s390/s390.md: Include tpf.md. Move tpf specific
11779         patterns...
11780         * config/s390/tpf.md: To here.
11781         * config/s390/s390.opt: Move tpf specific options...
11782         * config/s390/tpf.opt: to here. Add mmain option.
11783         * config/s390/tpf-unwind.h: Remove unnecessary defines.
11784         * config/s390/tpf.h: Rewrite.
11786 2005-07-12  Eric Christopher  <echristo@redhat.com>
11788         * gcc.c (struct infile): Update comment for language.
11789         (main): Rewrite input file resetting code.
11791 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
11793         PR tree-opt/22335
11794         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
11795         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
11796         (lookup_avail_expr): Use constant_boolean_node instead
11797         of boolean_false_node/boolean_true_node.
11799 2005-07-12  Ben Elliston  <bje@au.ibm.com>
11801         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
11802         and use it when printing num_edges.
11804 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
11806         * doc/extend.texi (Blackfin Built-in Functions): New section.
11807         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
11808         @opindex.
11810 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
11812         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
11813         s/cmpstrsi/cmpstrnsi
11814         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
11815         'cmpstrnsi'.
11816         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
11817         (init_optabs): Initialize cmpstrn_optab.
11818         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
11819         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
11820         * expr.c: (enum insn_code cmpstrn_optab): Declare.
11821         * config/i386/i386.md: s/cmpstr/cmpstrn
11822         * config/c4x/c4x.md: s/cmpstr/cmpstrn
11823         * doc/md.texi: Update documentation.
11825 2005-07-11  Richard Henderson  <rth@redhat.com>
11827         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
11828         build_va_arg_indirect_ref.
11829         (alpha_gimplify_va_arg): Likewise.
11830         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
11831         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
11832         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
11833         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
11834         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
11835         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
11836         Likewise.
11837         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
11839 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
11841         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
11842         * passes.c (init_optimization_passes): Add pass_empty_loop.
11843         * tree-pass.h (pass_empty_loop): Declare.
11844         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
11845         try_remove_empty_loop, remove_empty_loops): New functions.
11846         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
11847         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
11849 2005-07-12  Peter Barada  <peter@the-baradas.com>
11851         PR middle-end/16719
11852         PR middle-end/18421
11853         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
11854         in address registers.
11855         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
11856         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
11857         alternative of addsi3_5200.
11859 2005-07-11  Ian Lance Taylor  <ian@airs.com>
11861         * config/mips/mips.md (ffs<mode>2): Remove.
11863 2005-07-11  Ian Lance Taylor  <ian@airs.com>
11865         * doc/tree-ssa.texi (Cleanups): Improve description of
11866         TRY_FINALLY_EXPR.
11867         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
11869 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
11871         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
11872         * tree.h (DECL_ARGUMENT_FLD): New macro.
11874 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
11876         Fix PR tree-optimization/22404
11878         * tree-ssa-structalias.c (create_variable_info_for): Use
11879         correct offset.
11881 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
11883         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
11884         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
11885         for second comparison operand.
11886         * config/bfin/predicates.md (reg_or_const_int_operand): New.
11888         * config/bfin/bfin.md (define_attr "type"): Add "sync".
11889         (define_insn_reservation "alu"): Likewise.
11890         (csync, ssync): Now of type sync.
11891         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
11892         -mcsync-anomaly -mspecld-anomaly.
11893         * config/bfin/bfin.opt (mcsync): Remove.
11894         (mcsync-anomaly, mspecld-anomaly): Add.
11895         * config/bfin/bfin.c: Include "insn-codes.h".
11896         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
11897         (TARGET_DEFAULT_TARGET_FLAGS): New.
11898         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
11900 2005-07-11  Steven Bosscher  <stevenb@suse.de>
11902         * basic-block.h: Give the BB flags enum a name, bb_flags.
11903         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
11904         * cfgcleanup.c (enum bb_flags): Remove here.
11905         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
11906         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
11907         (update_forwarder_flag): Likewise.
11908         (thread_jump): Likewise.
11909         (try_forward_edges): Likewise.
11910         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
11911         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
11912         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
11914 2005-07-11  Richard Guenther  <rguenther@suse.de>
11916         * config/i386/i386.opt: New target option -msseregparm.
11917         * config/i386/i386.c (override_options): Error out for
11918         -msseregparm but no SSE support.
11919         (ix86_function_sseregparm): Check for global sseregparm.
11920         * doc/invoke.texi: Document -msseregparm.
11922 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
11924         * config.gcc (m32r-*-linux*): Use the default extra_parts.
11925         (m32rle-*-linux*): Ditto.
11927 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
11929         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
11930         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
11931         bytes.
11933 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11935         PR middle-end/22239
11936         PR target/20126
11937         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
11938         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
11940 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
11942         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
11943         (varmap): Heapify varmap.
11944         (constraints): Heapify constraints.
11945         (struct constraint_graph): Heapify succs and preds.
11946         (constraint_vec_find): Update for heapification.
11947         (constraint_set_union): Ditto.
11948         (insert_into_complex): Ditto.
11949         (constraint_edge_vec_find): Ditto.
11950         (erase_graph_self_edge): Ditto.
11951         (add_graph_edge): Ditto.
11952         (get_graph_weights): Ditto.
11953         (merge_graph_nodes): Ditto.
11954         (build_constraint_graph): Ditto.
11955         (topo_visit): Ditto.
11956         (solve_graph): Ditto.
11957         (create_variable_info_for): Ditto.
11958         (init_base_vars): Ditto.
11959         (delete_points_to_sets): Free graph, varmap, and complex constraints.
11960         (condese_varmap_nodes): Free complex vector.
11961         (clear_edges_for_node): Clear succs and preds vector.
11963 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
11965         * tree-ssa-structalias.c (update_alias_info): Change counting of
11966         references to not include vdefs.
11968 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
11970         * tree-ssa-alias.c (free_used_part_map): Add missing free.
11971         (up_insert): Ditto.
11973 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11975         * pa.c (pa_commutative_p): Make PLUS commutative when
11976         TARGET_NO_SPACE_REGS is true.
11978 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
11980         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
11981         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
11982         * tree-dfa.c (dump_subvars_for): New.
11983         (debug_subvars_for): New.
11984         (dump_variable): Show subvariables if VAR has them.
11985         * tree-flow-inline.h (get_subvar_at): New.
11986         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
11987         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
11988         Update all users.
11989         (struct subvar): Change fields offset and size to unsigned
11990         HOST_WIDE_INT.
11991         (dump_subvars_for): Declare.
11992         (debug_subvars_for): Declare.
11993         (get_subvar_at): Declare.
11994         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
11995         to unsigned HOST_WIDE_INT *.
11996         (overlap_subvar): Likewise.
11997         * tree-gimple.c (is_gimple_reg): Always return false for
11998         SFTs and memory tags.
11999         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
12000         Update all callers.
12001         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
12002         (compute_may_aliases): Call compute_points_to_sets.
12003         (collect_points_to_info_for): Remove.
12004         (compute_points_to_and_addr_escape): Remove.
12005         (delete_alias_info): Call delete_points_to_sets.
12006         (compute_flow_sensitive_aliasing): If the call to
12007         find_what_p_points_to returns false, call set_pt_anything.
12008         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
12009         (set_pt_anything): Clear pi->pt_vars.
12010         (set_pt_malloc): Remove.
12011         (merge_pointed_to_info): Remove.
12012         (add_pointed_to_expr): Remove.
12013         (add_pointed_to_var): Remove.
12014         (collect_points_to_info_r): Remove.
12015         (is_escape_site): Make extern.
12016         (create_sft): New.
12017         (create_overlap_variables_for): Call it.
12018         * tree-ssa-copy.c (merge_alias_info): Never merge
12019         flow-sensitive alias information.
12020         * tree-ssa-operands.c (get_expr_operands): Adjust variables
12021         offset and size to be unsigned HOST_WIDE_INT.
12022         (add_to_addressable_set): Rename from note_addressable.
12023         Set TREE_ADDRESSABLE as the variables are added to the set.
12024         Update all users.
12025         (add_stmt_operand): Do not try to micro-optimize unmodifiable
12026         operands into VUSEs when adding V_MAY_DEFs for members in an
12027         alias set.
12028         * tree-ssa-operands.h (add_to_addressable_set): Declare.
12029         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
12030         (struct variable_info): Add bitfield is_heap_var.
12031         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
12032         (new_var_info): Initialize is_heap_var.
12033         (get_constraint_for): Add HEAP variables to the symbol table.
12034         Mark them with is_heap_var.
12035         (update_alias_info): New.  Taken mostly from the old
12036         compute_points_to_and_addr_escape.
12037         (handle_ptr_arith): New.
12038         (find_func_aliases): Call update_alias_info.
12039         Call handle_ptr_info for tcc_binary expressions.
12040         Call mark_stmt_modified.
12041         (create_variable_info_for): If DECL has subvars, do not create
12042         variables for its subvars.  Always add all the fields.
12043         (set_uids_in_ptset): If the solution includes ANYOFFSET and
12044         SFTs, then add all the SFTs of the structure.
12045         If VI->DECL is an aggregate with subvariables, add the SFT at
12046         VI->OFFSET.
12047         (find_what_p_points_to): If VI is an artificial variable,
12048         translate to bitfields in SSA_NAME_PTR_INFO.
12049         If the solution is empty, set pi->pt_vars to NULL
12050         (init_base_vars): Create ANYOFFSET.
12051         (compute_points_to_sets): Rename from create_alias_vars.
12052         Make extern.
12053         (pass_build_pta): Remove.
12054         (delete_points_to_sets): Rename from delete_alias_vars.
12055         (pass_del_pta): Remove.
12056         * tree-ssa-structalias.h (struct alias_info): Move from
12057         tree-ssa-alias.h.
12058         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
12059         NUM_REFERENCES_SET): Likewise.
12060         (compute_points_to_sets, delete_points_to_sets): Declare.
12062 2005-07-09  Richard Henderson  <rth@redhat.com>
12064         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
12065         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
12066         alpha_split_lock_test_and_set_12): New functions.
12067         * config/alpha/alpha-protos.h: Update.
12068         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
12069         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
12070         * config/alpha/sync.md (I12MODE): New.
12071         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
12072         (sync_<fetchop_name><I48MODE>): Likewise.
12073         (sync_nand<I48MODE>): Likewise.
12074         (sync_old_<fetchop_name><I48MODE>): Likewise.
12075         (sync_new_<fetchop_name><I48MODE>): Likewise.
12076         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
12077         (sync_compare_and_swap<I48MODE>): Likewise.
12078         (sync_lock_test_and_set<I48MODE>): Likewise.
12079         (sync_compare_and_swap<I12MODE>): New.
12080         (sync_compare_and_swap<I12MODE>_1): New.
12081         (sync_lock_test_and_set<I12MODE>): New.
12082         (sync_lock_test_and_set<I12MODE>_1): New.
12084 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
12086         PR 21356
12087         PR 22332
12088         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
12090 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
12092         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
12093         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
12095 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
12097         PR target/21656
12098         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
12100 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
12102         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
12103         memory_operand constraint.
12104         (store_conditional_<mode>): Same.
12105         (sync_compare_and_swap<mode>): Same.
12106         (sync_lock_test_and_set<mode>): Same.
12108 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
12110         Rewrite PIC support to more closely model actual instructions.
12111         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
12112         (cris_symbol): Remove prototypes for removed functions.
12113         (cris_pic_symbol_type_of, cris_valid_pic_const)
12114         (cris_expand_pic_call_address): Prototypes for new functions.
12115         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
12116         variable.
12117         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
12118         modifiers.
12119         <case ':'>: Add case for new punctuation character.
12120         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
12121         emitting (extra) PIC modifier.
12122         <case UNSPEC>: Do not assert for PLT.
12123         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
12124         (cris_expand_prologue, cris_expand_epilogue): Check
12125         for pic_offset_table_rtx usage instead of taking
12126         current_function_uses_pic_offset_table as the final word.
12127         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
12128         Remove flag_pic difference.
12129         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
12130         the moral equivalents of...
12131         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
12132         functions.
12133         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
12134         (cris_handle_option): Mark ARG as unused.
12135         (cris_expand_pic_call_address): New worker function for "call",
12136         "call_value".
12137         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
12138         output PIC constructs here.
12139         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
12140         as symbol-specific modifers, not whole or part of operands.
12141         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
12142         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
12143         constants and flag_pic.
12144         (CONSTANT_INDEX_P): Adjust for new functions.
12145         (enum cris_pic_symbol_type): New helper type.
12146         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
12147         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
12148         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
12149         define_constants.
12150         ("movsi"): Emit actual instructions for GOT and relative access.
12151         ("*movsi_got_load"): New pattern to set up the register holding
12152         the GOT pointer.
12153         ("*movsi_internal"): Operand 1 is not a plain general_operand.
12154         Adjust FIXME for 'S'.
12155         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
12156         Use "movs" for -fpic cases.
12157         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
12158         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
12159         ("call", "call_value"): Just call cris_expand_pic_call_address for
12160         PIC addresses.
12161         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
12162         Remove special pattern.
12163         ("*expanded_call_side", "*expanded_call_value_side"): New
12164         patterns.
12165         (gotplt-to-plt, gotplt-to-plt-side-call)
12166         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
12167         peephole2:s.
12168         * config/cris/cris/predicates.md
12169         ("cris_general_operand_or_gotless_symbol"): Remove unused
12170         predicate.
12171         ("cris_general_operand_or_symbol"): Adjust for new functions.
12173 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
12175         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
12177 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
12179         * Makefile.in (TREE_H): Add treestruct.def.
12180         (c-decl.o): Add pointer-set.h
12181         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
12182         visibility on regular DECL's.
12183         (merge_decls): Fix the copying of decl nodes of various types for
12184         the new structures.  Don't update RTL, section name, weak status,
12185         etc, on DECL's without RTL.
12186         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
12187         Don't check volatile on non-variable types.
12188         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
12189         to check whether we have seen arguments.
12190         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
12191         flag is checked before field (flag is common, field is not).
12192         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
12193         TS_DECL_COMMON could have an origin.
12194         (add_location_or_const_value_attribute): Don't check section name
12195         on non-var/function decls.
12196         (dwarf2out_var_location): Reverse order of tests.
12197         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
12198         with DECL_WRTL_CHECK.
12199         * expmed.c (make_tree): rtl is now in decl_with_rtl.
12200         * fold-const.c (fold_binary): Don't check weakness on
12201         non-var/function decls.
12202         (tree_expr_nonzero_p): Ditto.
12203         (fold_checksum_tree): Use tree_decl_extra as sizeof
12204         buffer.
12205         * ggc-page.c (extra_order_size_table): Add sizes for
12206         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
12207         tree_field_decl.
12208         * gimplify.c (gimplify_bind_expr): Only set
12209         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
12210         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
12211         without RTL.
12212         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
12213         * langhooks.h (init_ts). New langhook.
12214         * passes.c (rest_of_decl_compilation): Reverse order of tests.
12215         * print-tree.c (print_node): Update to only print fields that
12216         exist in the structures the passed decl has.
12217         * toplev.c (wrapup_global_declarations): Don't reset
12218         DECL_DEFER_OUTPUT on DECL's that don't contain it.
12219         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
12220         * tree-inline.c (remap_decl): Ditto.
12221         * tree-outof-ssa.c (create_temp): Reverse order of tests.
12222         * tree-pretty-print.c (print_declaration): Don't print
12223         DECL_REGISTER on things that don't contain it.
12224         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
12225         non-var/function decls.
12226         * tree.c (tree_contains_struct): New structure.
12227         (init_priority_for_decl): New hashtable.
12228         (tree_int_map): New structure.
12229         (tree_int_map_eq): New function.
12230         (tree_int_map_marked_p): Ditto.
12231         (tree_int_map_hash): Ditto.
12232         (tree_map): Move to tree.h.
12233         (tree_map_eq): Externalize.
12234         (tree_map_hash): Ditto.
12235         (tree_map_marked_p): Ditto.
12236         (init_ttree): Set up tree_contains_struct and call langhook.
12237         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
12238         (tree_code_size): Update for new structures.
12239         (tree_node_structure): Update for new structures.
12240         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
12241         without the field.
12242         (copy_node_stat):  Copy init priority.
12243         (build_decl_stat): Ditto for visibility.
12244         (ts_enum_names): New.
12245         (tree_contains_struct_check_failed): New function.
12246         (decl_init_priority_lookup): Ditto.
12247         (decl_init_priority_insert): Ditto.
12248         * treestruct.def: New file.
12249         * tree.h (CODE_CONTAINS_STRUCT): New macro.
12250         (CONTAINS_STRUCT_CHECK): Ditto.
12251         (tree_contains_struct_check_failed): New prototype.
12252         (DECL_CHECK): Removed.
12253         (DECL_MINIMAL_CHECK): New.
12254         (DECL_COMMON_CHECK): Ditto.
12255         (DECL_WRTL_CHECK): Ditto.
12256         (DECL_NON_COMMON_CHECK): Ditto.
12257         (DECL_WITH_VIS_CHECK): Ditto.
12258         (VAR_OR_FUNCTION_DECL_P): Ditto
12259         (struct tree_decl_minimal): New structure.
12260         (struct tree_decl_common): Ditto.
12261         (struct tree_decl_with_rtl): Ditto.
12262         (struct tree_decl_with_vis): Ditto.
12263         (struct tree_decl_non_common): Ditto.
12264         (struct tree_field_decl): Ditto.
12265         (struct tree_parm_decl): Ditto.
12266         (struct tree_var_decl): Ditto.
12267         (struct tree_function_decl): Ditto.
12268         (struct tree_const_decl): Ditto.
12269         (struct tree_result_decl): Ditto.
12270         (union tree_node): Add new structures.
12271         * var-tracking.c (track_expr_p): Reverse order of tests.
12273         * doc/c-tree.texi: Add documentation on DECL node internal structure.
12275 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
12277         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
12278         * system.h: Poison FINALIZE_PIC.
12279         * doc/tm.texi (FINALIZE_PIC): Remove.
12281 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
12283         PR tree-opt/22329
12284         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
12285         to the correct type if we have a MODIFY_EXPR.
12287 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
12289         PR tree-optimization/22360
12290         * tree.c (upper_bound_in_type): Fix calculations for casting
12291         to a non-wider signed type and casting a signed value to a
12292         wider unsigned type.
12293         (lower_bound_in_type): Fix calculations for casting to a
12294         non-wider signed type.
12296         PR tree-optimization/20139
12297         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
12298         release_defs.
12299         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
12300         fold_cond_expr_cond.
12301         * tree-ssanames.c (release_defs): Assert in_ssa_p.
12302         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
12304 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
12306         PR tree-opt/22356
12307         * tree-complex.c (expand_complex_libcall): Produce
12308         REALPART_EXPR/IMAGPART_EXPR with the correct type.
12310 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
12312         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
12313         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
12314         b" assert and inserted fastpath code for this case.
12315         (bitmap_ior): Removed "a != b" assert.
12317 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
12319         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
12320         (ENDFILE_SPEC): Likewise.
12321         * config/m32r/m32r.h (ASM_SPEC): Likewise.
12323         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
12324         a large stack frame at epilogue.
12326 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
12328         * final.c: Include sdbout.h when required.
12330 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
12332         * config.gcc (*-*-darwin*): Only one target-specific header file
12333         for generic darwin.
12334         (powerpc-*-darwin*): Add version-specific header files.
12335         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
12336         * config.in: Regenerate.
12337         * configure: Regenerate.
12338         * gcc.c: Include xregex.h.
12339         (version_compare_spec_function): New.
12340         (spec_function): Add version-compare.
12341         (replace_outfile_spec_function): Reformat comment.
12342         (compare_version_strings): New.
12343         * config/darwin-c.c (version_as_macro): New.
12344         (builtin_define): New.
12345         (darwin_cpp_builtins): New.
12346         * config/darwin-protos.h (darwin_cpp_builtins): New.
12347         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
12348         (LIB_SPEC): Make unconditional, update comment.
12349         (TARGET_C99_FUNCTIONS): Define.
12350         * config/darwin.opt: Sort.
12351         (mmacosx-version-min=): New.
12352         * config/darwin7.h: Delete.
12353         * config/darwin8.h: Delete.
12354         * config/i386/darwin.h (): Call darwin_cpp_builtins.
12355         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
12356         (TARGET_C99_FUNCTIONS): Define.
12357         * config/rs6000/darwin7.h: New.
12358         * config/rs6000/darwin8.h: New.
12359         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
12360         (-mmacosx-version-min): Document.
12362 2005-07-07  Ian Lance Taylor  <ian@airs.com>
12364         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
12366 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
12368         PR middle-end/22239
12369         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
12371 2005-07-07  Khem Raj  <kraj@mvista.com>
12373         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
12374         in bytes, not words.
12376 2005-07-07  Paul Brook  <paul@codesourcery.com>
12378         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
12379         DEFAULT_FUNCTION_ARG_PADDING to upward.
12381 2005-07-07  Richard Henderson  <rth@redhat.com>
12383         * function.c (locate_and_pad_parm): Record parameter alignment in
12384         stack_alignment_needed.
12386 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
12388         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
12389         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
12390         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
12391         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
12392         (define_attr "type"): Add isync, sync, load_l, store_c.
12393         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
12394         Create scratch volatile MEM.
12395         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
12396         sync.
12397         (load_locked_<mode>): New.
12398         (store_conditional_<mode>): New.
12399         (sync_compare_and_swap<mode>): Replace with splitter.
12400         (sync_lock_test_and_set<mode>): Replace with splitter.
12401         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
12402         and UNSPECV_ISYNC.
12403         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
12404         is ics.  Attribute isync.
12405         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
12406         lwsync.
12407         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
12408         and UNSPECV_SYNC_OP.
12409         (emit_unlikely_jump): New.
12410         (emit_load_locked): New.
12411         (emit_store_conditional): New.
12412         (rs6000_split_compare_and_swap): New.
12413         (rs6000_split_lock_test_and_set): New.
12414         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
12415         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
12416         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
12417         rs6000_split_lock_test_and_set): Declare.
12418         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
12419         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
12420         store_c, isync, sync.
12422 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
12424         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
12425         filenames to gtyp-gen.h.
12426         (s-typ-gen): Use it in place of for loops.
12428 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
12430         * hooks.c (hook_bool_rtx_int_false): New function.
12431         * hooks.h (hook_bool_rtx_int_false): Declare.
12432         * target-def.h (TARGET_COMMUTATIVE_P): Define.
12433         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
12434         * target.h (struct gcc_target): Add commutative_p member.
12435         * targhooks.c (hook_bool_rtx_commutative_p): New function.
12436         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
12437         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
12438         (pa_commutative_p): New function.
12439         * jump.c (target.h): Include.
12440         (rtx_renumbered_equal_p): Use targetm.commutative_p.
12441         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
12443 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
12445         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
12446         (s390_expand_setmem): New.
12447         * config/s390/s390.c: Likewise.
12448         (print_shift_count_operand): Truncate to 12 bits instead of 6.
12449         Adapt comments.
12450         * config/s390/s390.md: ("setmem<mode>"): Accept character as
12451         general_operand.  Call new function "s390_expand_setmem".
12452         ("clrmem_long", "*clrmem_long"): Rewrite to ...
12453         ("setmem_long", "*setmem_long"): ... this.
12455 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
12457         * config/s390/s390.c: (optimization_options): Enable
12458         TARGET_MVCLE at -Os.
12459         * doc/invoke.texi: Document changes in default behaviour.
12460         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
12462 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
12464         * expr.c: (set_storage_via_setmem): Convert opchar to mode
12465         defined by back-end.
12467 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
12469         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
12470         all sets in the pattern.
12471         * config/rs6000/rs6000.md (stack_protect_testsi,
12472         stack_protect_testdi): Likewise.
12474 2005-07-06  Jeff Law  <law@redhat.com>
12476         * tree-vrp.c (simplify_using_ranges): Kill.
12477         (vrp_finalize): Remove call to simplify_using_ranges.
12478         (simplify_stmt_using_ranges): New function extracted from
12479         simplify_using_ranges.
12480         (simplify_div_or_mod_using_ranges): Likewise.
12481         (simplify_abs_using_ranges): Likewise.
12482         (simplify_cond_using_ranges): New function.
12483         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
12484         * tree-ssa-propagate.c (substitute_and_fold): Call
12485         simplify_stmt_using_ranges if we have range information.
12487 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
12489         * config/ia64/ia64.c (ia64_reorg): Check optimize before
12490         ia64_flag_schedule_isns2.
12492         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
12493         reading/writing general registers.
12494         (ia64_function_arg): Revert 2005-06-18 change.
12496 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
12498         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
12499         (legitimize_tls_address): Use gcc_unreachable instead of abort.
12501 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
12503         * function.c (expand_function_end): Revert part of 2005-06-27
12504         patch.  Do sjlj_emit_function_exit_after after return_label.
12506 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
12508         * doc/install.texi (--disable-libssp): New.
12510 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
12512         * doc/invoke.texi: Update -fforce-mem documentation.
12513         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
12514         code for -fforce-mem.
12515         * expmed.c: (store_bit_field,store_fixed_bit_field,
12516         extract_bit_field): Ditto.
12517         * expr.c: (convert_move): Ditto.
12518         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
12519         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
12520         emit_conditional_add,expand_float,expand_fix): Ditto.
12521         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
12522         (common_handle_option): Issue warning when -fforce-mem specified.
12524 2005-07-06  Paul Brook  <paul@codesourcery.com>
12526         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
12527         argument is empty.
12528         * configure: Regenerate.
12530 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
12532         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
12534 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
12536         Fix PR tree-optimization/22319
12537         Fix PR tree-optimization/22140
12538         Fix PR tree-optimization/22310
12540         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
12541         variable sized types.
12542         Use correct type for intermediate structure on *a = *b structure
12543         copies.
12545 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
12547         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
12548         Remove.
12549         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
12550         (machine_function): Move typedef to...
12551         * config/rs6000/rs6000.c (machine_function): ... here.  Add
12552         varargs_save_offset field.
12553         (rs6000_stack_t): Remove varargs_size field.
12554         (setup_incoming_varargs): Allocate varargs save area using
12555         assign_stack_local, try to make it as small as possible.
12556         Save offset from virtual_stack_vars_rtx to the save area
12557         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
12558         instead of magic 8 when fp word byte size is used.
12559         (rs6000_va_start): Use cfun->machine->varargs_save_offset
12560         instead of -RS6000_VARARGS_SIZE.
12561         (rs6000_stack_info, debug_stack_info,
12562         rs6000_initial_elimination_offset): Remove all traces of
12563         varargs_size.
12564         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
12565         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
12566         RS6000_VARARGS_AREA.
12568 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
12570         PR tree-optimization/21963
12571         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
12572         constant_multiple_of in the same way get_computation_cost_at does.
12574 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
12576         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
12577         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
12578         (gen_compare_reg): If sparc_compare_emitted is set, clear it
12579         and return its previous value.
12580         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
12581         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
12582         constants.
12583         (stack_protect_set, stack_protect_test): New expanders.
12584         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
12585         stack_protect_testdi): New insns.
12586         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
12587         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
12589 2005-07-06  Jeff Law  <law@redhat.com>
12591         * tree-ssa-dce.c (cfg_altered): New global.
12592         (tree_dce_init): Initialize cfg_altered.
12593         (remove_dead_stmt): If we remove an edge in the CFG, then set
12594         CFG_ALTERED.
12595         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
12596         the dominators.
12598 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
12600         * Makefile.in (stamp-collect-ld): Use
12601         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
12602         ./collect-ld if it already exists.
12603         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
12604         Don't remove ./nm if it already exists.
12606 2005-07-05  Devang Patel  <dpatel@apple.com>
12608         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
12609         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
12610         * tree-vectorizer.c (vect_loop_location): New.
12611         (vect_print_dump_info): Use vect_loop_location.
12612         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
12613         (vectorize_loops): Set vect_loop_location.
12614         * tree-vect-analyze.c (vect_analyze_offset_expr,
12615         vect_determin_vectorization_factor, vect_analyze_operations,
12616         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
12617         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
12618         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
12619         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
12620         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
12621         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
12622         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
12623         vect_analyze_loop): Adjust vect_print_dump_info API.
12624         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
12625         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
12626         vect_finish_stmt_generation, vectorizable_assignment,
12627         vectorizable_operation, vectorizable_store, vectorizable_load,
12628         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
12629         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
12630         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
12631         vect_transform_loop): Same.
12632         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
12633         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
12634         Same.
12636 2005-07-05  Randolph Chung  <tausq@debian.org>
12638         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
12639         * configure: Regenerate.
12640         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
12641         (pa_tls_referenced_p): Declare.
12642         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
12643         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
12644         (legitimize_tls_address): New.
12645         (hppa_legitimize_address): Handle TLS addresses.
12646         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
12647         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12648         (emit_move_sequence): Handle TLS addresses.
12649         (pa_encode_section_info): Call default handler to handle common
12650         sections.
12651         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
12652         (CONSTANT_ADDRESS_P): Reject TLS operands.
12653         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
12654         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
12655         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
12656         (UNSPEC_TLSLE): Define new constants.
12657         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
12658         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
12659         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
12660         (tie_symbolic_operand, tle_symbolic_operand): New
12662 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
12664         * aclocal.m4: Update macros for autoconf 2.59 style.
12665         * configure.ac: Likewise.
12667 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12669         * pa.c (function_value): Handle small aggregates on 32-bit targets.
12670         (function_arg): Pass small aggregates in general registers on 32-bit
12671         targets.
12672         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
12674 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
12676         * Makefile.in (final.o): Fix dependencies.
12678 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
12680         PR c/22013
12681         PR c/22098
12682         * langhooks.h (struct lang_hooks): Add expr_to_decl.
12683         * langhooks.c (lhd_expr_to_decl): New.
12684         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
12685         New.
12686         (LANG_HOOKS_INITIALIZER): Update.
12687         * tree.c (recompute_tree_invarant_for_addr_expr): Call
12688         expr_to_decl langhook.
12689         * c-tree.h (c_expr_to_decl): Declare.
12690         * c-typeck.c (c_expr_to_decl): New.
12691         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
12692         specially.
12693         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
12695 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
12697         PR c/22308
12698         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
12699         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
12701 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
12703         * Makefile.in: Adjust dependencies.
12704         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
12705         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
12706         * alias.c (rest_of_handle_cfg, pass_cfg): New.
12707         * bb-reorder.c (duplicate_computed_gotos): Make it static.
12708         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
12709         rest_of_compilation.
12711         * bb-reorder.c (gate_duplicate_computed_gotos,
12712         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
12713         rest_of_handle_reorder_blocks, pass_reorder_blocks,
12714         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
12715         pass_partition_blocks): New.
12716         * bt-load.c (gate_handle_branch_target_load_optimize,
12717         rest_of_handle_branch_target_load_optimize,
12718         pass_branch_target_load_optimize): New.
12719         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
12720         pass_jump2): New.
12721         * cfglayout.c (pass_insn_locators_initialize): New.
12722         * cfgrtl.c (pass_free_cfg): New.
12723         * combine.c (gate_handle_combine, rest_of_handle_combine,
12724         pass_combine): New.
12725         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
12726         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
12727         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
12728         * except.c (pass_set_nothrow_function_flags,
12729         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
12730         pass_rtl_eh): New.
12731         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
12732         rest_of_handle_shorten_branches, pass_shorten_branches,
12733         rest_of_clean_state, pass_clean_state): New.
12734         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
12735         rest_of_handle_remove_death_notes, pass_remove_death_notes,
12736         rest_of_handle_life, pass_life, rest_of_handle_flow2,
12737         pass_flow2): New.
12738         * function.c (pass_instantiate_virtual_regs, pass_init_function,
12739         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
12740         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
12741         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
12742         pass_gcse): New.
12743         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
12744         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
12745         pass_rtl_ifcvt, gate_handle_if_after_combine,
12746         rest_of_handle_if_after_combine, pass_if_after_combine,
12747         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
12748         pass_if_after_reload): New.
12749         * integrate.c (pass_initial_value_sets): New.
12750         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
12751         pass_purge_lineno_notes): New.
12752         * mode-switching.c (rest_of_handle_mode_switching,
12753         pass_mode_switching): New.
12754         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
12755         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
12756         pass_loop2): New.
12757         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
12758         pass_loop_optimize): New.
12759         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
12760         pass_sms): New.
12761         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
12762         pass_gcse2): New.
12763         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
12764         pass_postreload_cse): New.
12765         * profile.c (gate_handle_profiling, pass_profiling,
12766         rest_of_handle_branch_prob, pass_branch_prob): New.
12767         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
12768         pass_split_before_regstack, gate_handle_split_before_regstack,
12769         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
12770         rest_of_handle_split_all_insns, pass_split_all_insns): New.
12771         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
12772         pass_stack_regs): New.
12773         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
12774         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
12775         pass_stack_adjustments): New.
12776         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
12777         pass_regrename): New.
12778         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
12779         pass_delay_slots, gate_handle_machine_reorg,
12780         rest_of_handle_machine_reorg, pass_machine_reorg): New.
12781         * rtl.h (extern void purge_line_number_notes): New.
12782         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
12783         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
12784         pass_sched2): New.
12785         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
12786         pass_tracer): New.
12787         * value-prof.c (gate_handle_value_profile_transformations,
12788         rest_of_handle_value_profile_transformations,
12789         pass_value_profile_transformations): New.
12790         * var-tracking.c (gate_handle_var_tracking,
12791         pass_variable_tracking): New.
12792         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
12794         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
12795         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
12796         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
12797         rest_of_handle_old_regalloc, rest_of_handle_regrename,
12798         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
12799         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
12800         rest_of_handle_gcse2, rest_of_handle_regmove,
12801         rest_of_handle_tracer, rest_of_handle_if_conversion,
12802         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
12803         rest_of_handle_web, rest_of_handle_branch_prob,
12804         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
12805         rest_of_handle_jump_bypass, rest_of_handle_combine,
12806         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
12807         rest_of_handle_gcse, rest_of_handle_loop_optimize,
12808         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
12809         rest_of_handle_mode_switching, rest_of_handle_jump,
12810         rest_of_handle_eh, rest_of_handle_stack_adjustments,
12811         rest_of_handle_flow2, rest_of_handle_jump2,
12812         rest_of_handle_peephole2, rest_of_handle_postreload,
12813         rest_of_handle_shorten_branches, rest_of_clean_state,
12814         rest_of_compilation): Remove.
12816         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
12817         * passes.c (dump_flags, in_gimple_form, all_passes,
12818         all_ipa_passes, all_lowering_passes, register_one_dump_file,
12819         register_dump_files, next_pass_1, last_verified, execute_todo,
12820         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
12821         from tree-optimize.c.
12822         (init_optimization_passes): Moved from tree-optimize.c,
12823         adding the RTL optimizations.
12824         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
12825         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
12826         all_ipa_passes, all_lowering_passes, register_one_dump_file,
12827         register_dump_files, next_pass_1, last_verified, execute_todo,
12828         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
12829         init_tree_optimization_passes, ipa_passes): Delete.
12830         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
12831         the RTL dumps.
12832         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
12833         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
12834         from tree.h.
12835         (ipa_passes): Remove.
12836         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
12837         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
12838         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
12839         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
12840         (dump_info_p, dump_flag): Moved to tree-dump.h.
12842         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
12843         cgraph.c, opts.c.
12844         * passes.c (finish_optimization_passes): Use dump_begin
12845         and dump_end, TDI_end.
12846         (gate_rest_of_compilation): New.
12847         (pass_rest_of_compilation): Use it.
12848         (gate_postreload, pass_postreload): New.
12849         * toplev.c (general_init): Rename init_tree_optimization_passes.
12850         * toplev.h (init_tree_optimization_passes): Rename to
12851         init_optimizations_passes.
12852         * tree-dump.c (dump_flag): Make static.
12853         (dump_files): Remove RTL dumps.
12854         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
12855         pass_cleanup_cfg, pass_free_cfg_annotations,
12856         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
12857         pass_init_datastructures, pass_fixup_cfg): Make non-static.
12858         * tree-pretty-print.c: Include tree-pass.h.
12859         * cgraph.c: Include tree-dump.h.
12861 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
12863         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
12864         Only fall back to saying it points to readonly memory if
12865         we can't do better.
12867 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
12869         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
12870         * config/m32r/m32r.c (m32r_compute_frame_size,
12871         m32r_expand_prologue): Take current_function_profile into
12872         account whenever we reference
12873         current_function_uses_pic_offset_table.
12874         (m32r_finalize_pic): Remove.
12875         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
12877 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
12879         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
12880         instead of $<.  Don't remove ./as if it already exists.
12882 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12884         PR target/21723
12885         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
12886         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
12887         for complex modes when generating code for PA 1.0.
12888         (VALID_FP_MODE_P): New macro.
12889         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
12890         sets for all general and floating point modes.  Align wide floating
12891         point modes to even register boundaries to comply with architectural
12892         requirements.
12893         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
12894         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
12895         (VALID_FP_MODE_P): New macro.
12896         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
12897         sets for all general and floating point modes.  Align wide floating
12898         point modes to even register boundaries to comply with architectural
12899         requirements.
12901 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
12903         * tree-dump.c (dump_files): Initialize dump number for .cgraph
12904         to 0.
12906 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
12908         * tree-ssa-structalias.c: Don't include expr.h.
12910 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
12912         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
12913         comments.
12915 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
12917         Fix PR tree-optimization/22279
12919         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
12920         correct operator.
12922 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
12924         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
12926 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
12928         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
12929         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
12930         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
12931         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
12932         config/stormy16/stormy16.c, config/v850/v850.c,
12933         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
12934         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
12935         Avoid "." or "\n" at end of diagnostics and capital letters at
12936         start of diagnostics.
12937         * combine.c, cse.c: Don't translate dump file output.
12938         * toplev.c (print_version): Only translate output if going to
12939         stderr.
12941 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
12943         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
12944         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
12945         typos.
12947 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12949         * pa.c (fix_range): Fix typo in comment.
12951 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
12953         * tree-vrp.c (extract_range_from_assert): Replace
12954         fold (build (...)) with fold_build2.
12956 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12958         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
12959         gcc_gfc_char_table, init_dynamic_gfc_info): New.
12960         (format_types_orig, handle_format_attribute): Add support for
12961         format "gcc_gfc".
12963 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12965         * varasm.c (assemble_variable): Fix format specifier thinko.
12967 2005-07-03  Ira Rosen  <irar@il.ibm.com>
12969         PR tree-optimization/22029 (and 22135)
12970         * tree-pretty-print.c (dump_generic_node): Check that the node is not
12971         a phi node before calling dump_vops.
12973 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12975         * tree-dump.h (dump_string_field): Declare.
12976         * tree-dump.c: Use it instead of dump_string.
12977         (dump_string_field): Make non-static.
12979 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
12981         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
12982         up the minimal CFG stuff always when optimize > 0.  Call
12983         split_all_insns_noflow in PIC case if needed.
12985 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12986             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
12988         PR c++/18279
12989         * c-decl.c (c_write_global_declarations): Dump contents of
12990         external scope to.
12991         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
12992         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
12993         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
12994         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
12995         is enabled.
12997 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
12999         * c-common.h (GCC_DIAG_STYLE): Define.
13000         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
13001         version for format checking to 4.1.
13002         * c-format.c: Include toplev.h after c-common.h.
13003         (enum format_type): Add gcc_tdiag_format_type.
13004         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
13005         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
13006         (format_types_orig): Add gcc_tdiag.
13007         (init_dynamic_diag_info): Support gcc_tdiag formats.
13008         (handle_format_attribute): Likewise.
13009         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
13010         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
13011         version for format checking to 4.1.
13012         (warning0, warning, error, pedwarn, sorry): Use
13013         ATTRIBUTE_GCC_DIAG.
13014         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
13015         (finish_aliases_1): Do not use %qE.
13016         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
13017         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
13018         Correct format bugs.
13019         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
13020         parameter to unsigned HOST_WIDE_INT.
13021         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
13023 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
13025         PR middle-end/21742
13026         * expr.c (write_complex_part): Use adjust_address for MEM.
13027         (read_complex_part): Same.
13029 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
13031         Fix PR tree-optimization/22280
13033         * tree-sra.c (generate_element_init): Remove useless loop.
13035 2005-07-02  Richard Henderson  <rth@redhat.com>
13037         * config/alpha/alpha.c (alpha_legitimize_address): Check for
13038         TLS_MODEL_NONE.
13039         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
13041 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
13043         PR middle-end/14490
13044         * fold-const.c (fold_binary): Handle the return value of
13045         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
13046         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
13048 2005-07-02  Jeff Law  <law@redhat.com>
13050         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
13051         a eliminate type conversion which feeds an equality comparison
13052         if the original type or either operand in the comparison is a
13053         function pointer.
13055 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
13057         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
13058         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
13059         texts.
13060         * config/avr/avr.c: Do not use '`' as left quote.
13061         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
13062         Remove "." from end of diagnostics.  Make diagnostics start with
13063         lowercase letter.
13065 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
13066             Joseph S. Myers  <joseph@codesourcery.com>
13068         * toplev.c (default_tree_printer): Handle setting location with
13069         '+' flag.
13070         * c-objc.common.c (c_tree_printer): Likewise.
13071         * c-format.c (gcc_diag_flag_specs): Add '+'.
13072         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
13073         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
13074         formats.
13075         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
13076         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
13077         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
13078         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
13079         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
13080         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
13081         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
13082         format arguments where %J is used without %D.
13084 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
13086         * gcc.c (LINK_SSP_SPEC): Define.
13087         (link_ssp_spec): New variable.
13088         (LINK_COMMAND_SPEC): Add %(link_ssp).
13089         (static_specs): Add link_ssp_spec.
13090         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
13091         * configure: Rebuilt.
13092         * config.in: Rebuilt.
13094         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
13095         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
13096         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
13097         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
13098         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
13099         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
13100         -0x7008(2) instead of reading __stack_chk_guard variable.
13101         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
13102         number.
13103         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
13104         (stack_protect_set, stack_protect_test): Use *_tls* patterns
13105         if TARGET_THREAD_SSP_OFFSET is defined.
13106         (stack_tls_protect_set_si, stack_tls_protect_set_di,
13107         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
13109         Revert:
13110         2005-06-27  Richard Henderson  <rth@redhat.com>
13111         * libgcc-std.ver (GCC_4.1.0): New.
13112         * libgcc.h (__stack_chk_guard): Declare.
13113         (__stack_chk_fail, __stack_chk_fail_local): Declare.
13114         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
13115         * mklibgcc.in (lib2funcs): Add them.
13117 2005-07-01  Richard Henderson  <rth@redhat.com>
13119         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
13120         void * before struct sigcontext *.
13121         (x86_fallback_frame_state): Likewise.
13123 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
13125         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
13127 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
13129         PR tree-opt/22269
13130         * tree-ssa-reassoc.c (should_transpose): Fix which operand
13131         we check for SSA_NAME for.
13133 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
13135         Fix PR tree-optimization/22071
13137         * tree-ssa-structalias.c (offset_overlaps_with_access): New
13138         function.
13139         (get_constraint_for_component_ref): Use it.
13141 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
13143         PR other/22264
13144         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
13145         print out the last new line.
13147 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
13149         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
13150         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
13151         * config/cris/cris.c (cris_conditional_register_usage): Adjust
13152         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
13153         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
13154         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
13155         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
13156         (enum reg_class): New member CC0_REGS.
13157         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
13158         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
13159         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
13160         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
13161         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
13162         Adjust for register now described.
13164 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
13166         PR target/22262
13167         * config/i386/i386.md (stack_protect_test_si,
13168         stack_protect_test_di): Add earlyclobber for scratch 3.
13169         * config/rs6000/rs6000.md (stack_protect_testsi,
13170         stack_protect_testdi): Add earlyclobber for scratch 3,
13171         remove earlyclobber from scratch 4.
13173 Older entries for 2005 can be found in ChangeLog-2005.
13174 2005-06-30  Diego Novillo  <dnovillo@redhat.com>
13176         PR 21584
13177         PR 22219
13178         * tree-ssa-alias.c (create_name_tags): Also process
13179         non-dereferenced pointers.
13180         Remove argument 'ai'.  Update all callers.
13182 2005-06-30  Andrew Pinski  <pinskia@physics.uc.edu>
13184         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET):
13185         Set to 0 for FRAME_GROWS_DOWNWARD.
13186         (REGISTER_NAMES): Add sfp.
13188 2005-07-01  Kelley Cook  <kcook@gcc.gnu.org>
13190         * config/arm/libunwind.S, config/arm/pr-support.c,
13191         config/arm/unwind-arm.c, config/arm/unwind-arm.h,
13192         config/c4x/predicates.md, tree-object-size.c: Update FSF address.
13194 2005-06-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
13196         PR target/22260
13197         * config/sparc/sparc.c (emit_and_preserve): Add 2nd register.
13198         Preserve the 2nd register too, if present.
13199         (sparc_output_mi_thunk) <PIC case>: Preserve the PIC register too.
13200         Adjust call to emit_and_preserve.
13202 2005-06-30  Zack Weinberg  <zack@codesourcery.com>
13203             Jakub Jelinek  <jakub@redhat.com>
13205         * pretty-print.h (PP_NL_ARGMAX): New.
13206         (text_info): Add locus.
13207         (struct chunk_info): New.
13208         (output_buffer): Add formatted_obstack, chunk_obstack, and
13209         cur_chunk_array. Change obstack to a pointer.
13210         (pp_wrapping_mode_t, pp_wrapping_mode, pp_set_verbatim_wrapping): New.
13211         (struct pretty_print_info): Replace ideal_maximum_length and
13212         prefixing_rule with wrapping.
13213         (pp_line_cutoff, pp_prefixing_rule): Update to match.
13214         Update prototypes and wrapper macros throughout.
13215         * pretty-print.c (pp_formatted_text_data, pp_append_r)
13216         (pp_base_clear_output_area, pp_construct, pp_base_formatted_text)
13217         (pp_base_last_position_in_text, pp_base_newline, pp_base_character):
13218         Update for changes to pp structure.
13219         (pp_base_prepare_to_format, pp_base_format_text): Delete.
13220         (pp_base_format, pp_base_output_formatted_text): New functions.
13221         (pp_base_format_verbatim): Use pp_set_verbatim_wrapping.
13222         (pp_verbatim): Clear text.locus.
13223         (pp_printf): Likewise.  Use pp_format and pp_output_formatted_text.
13224         * c-objc-common.c (c_tree_printer): Update function signature.
13225         * diagnostic.c (diagnostic_initialize): Update for changes to
13226         pp structure.
13227         (diagnostic_report_diagnostic): Call pp_format and then
13228         pp_output_formatted_text.
13229         (verbatim): Clear text.locus.
13230         * diagnostic.h (diagnostic_prefixing_rule, diagnostic_line_cutoff):
13231         Update for changes to pp structure.
13233         * c-lang.c: No need to include c-pretty-print.h.
13234         * Makefile.in: Remove bogus line containing only a tab.
13235         (c-lang.o): Update dependencies.
13236         * toplev.c (announce_function): Don't use verbatim.
13237         (default_tree_printer): Update signature.
13239         * objc/objc-lang.c: No need to include c-pretty-print.h.
13240         * objc/Make-lang.in: Update dependencies.
13242 2005-06-29  Daniel Berlin  <dberlin@dberlin.org>
13244         * tree-complex.c (complex_variable_components): Now a hashtable.
13245         (cvc_lookup): Ditto.
13246         (cvc_insert): Ditto.
13247         (create_components): Use referenced var iterator.
13248         Initialize hashtable.   Use cvc_insert/lookup.
13249         (extract_components): Use cvc_insert/lookup.
13250         (update_complex_components): Ditto.
13251         (update_complex_components_on_edge): Ditto.
13252         * tree-dfa.c (referenced_vars): Now a hashtable.
13253         (dump_referenced_vars): Use iterator.
13254         (referenced_var_lookup): New function.
13255         (referenced_var_insert): Ditto.
13256         (add_referenced_var): Use referenced_var_insert.
13257         (mark_new_vars_to_rename): Use DECL_UID.
13258         * tree-flow-inline.h (first_htab_element): New function.
13259         (end_htab_p): Ditto.
13260         (next_htab_element): Ditto.
13261         (first_referenced_var): Ditto.
13262         (end_referenced_vars_p): Ditto.
13263         (next_referenced_var): Ditto.
13264         (is_call_clobbered): Use DECL_UID.
13265         (mark_call_clobbered): Ditto.
13266         (clear_call_clobbered): Ditto.
13267         (mark_non_addressable): Ditto.
13268         * tree-flow.h (htab_iterator): New struct.
13269         (FOR_EACH_HTAB_ELEMENT): New macro.
13270         (struct int_tree_map): New struct.
13271         (int_tree_map_hash): Prototype.
13272         (int_tree_map_eq): Ditto.
13273         (referenced_var_iterator): Ditto.
13274         (FOR_EACH_REFERENCED_VAR): New macro.
13275         (referenced_vars): Now a hashtable.
13276         * tree-into-ssa.c (symbol_marked_for_renaming): Use DECL_UID.
13277         (add_new_name_mapping): Ditto.
13278         (mark_def_sites): Ditto.
13279         (insert_phi_nodes): Use referenced_var iterator.
13280         (mark_def_site_blocks): Ditto.
13281         (mark_sym_for_renaming): Use DECL_UID.
13282         * tree-sra.c (is_sra_candidate_decl): Use DECL_UID.
13283         (lookup_element): Ditto.
13284         (find_candidates_for_sra): Use referenced_vars iterator.
13285         Use DECL_UID.
13286         * tree-ssa-alias.c (NUM_REFERENCES): New macro.
13287         (NUM_REFERENCES_CLEAR): Ditto.
13288         (NUM_REFERENCES_INC): Ditto.
13289         (NUM_REFERENCES_SET): Ditto.
13290         (alias_obstack): New bitmap obstack.
13291         (struct alias_map_d): Use bitmap, not sbitmap.
13292         (struct alias_info): Remove num_references.
13293         (init_alias_info): Use referenced_var iterator.
13294         Initialize bitmap obstack.
13295         (delete_alias_info): Use referenced_var iterator.
13296         Free bitmap obstack.
13297         (compute_points_to_and_addr_escape): Use DECL_UID.
13298         Use new NUM_REFERENCES macros.
13299         (compute_flow_sensitive_aliasing): may_aliases is now a bitmap.
13300         Use new NUM_REFERENCES macros.
13301         (group_aliases_into): Update prototype to use bitmap.
13302         (setup_pointers_and_addressables): Use referenced_vars iterator.
13303         Use DECL_UID. Use new NUM_REFERENCES macros.
13304         (add_pointed_to_var): Use DECL_UID.
13305         (dump_alias_info): Use referenced_var iterator.
13306         (add_type_alias): Ditto.
13307         (used_portions): Now a hashtable.
13308         (used_part_map_eq): New function.
13309         (used_part_map_hash): Ditto.
13310         (free_used_part_map): Ditto.
13311         (up_lookup): Ditto.
13312         (up_insert): Ditto.
13313         (get_or_create_used_part_for): Use up_lookup.
13314         (create_overlap_variables_for): Ditto.
13315         (find_used_portions): Use up_insert.
13316         Use DECL_UID.
13317         (create_structure_vars): Init used_portions hashtable, use
13318         referenced_vars iterator.
13319         * tree-ssa-live.c (create_ssa_var_map): sbitmaps became bitmaps.
13320         Use DECL_UID.
13321         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Use DECL_UID.
13322         * tree-ssa-operands.c (get_asm_expr_operands): Ditto.
13323         (note_addressable): Ditto.
13324         * tree-ssa-structalias.c (set_uids_in_ptset): Ditto.
13325         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13326         referenced_var iterator.
13327         Use DECL_UID.
13328         (delete_tree_ssa): Ditto.
13329         (int_tree_map_eq): New function.
13330         (int_tree_map_hash): Ditto.
13331         * tree-stdarg.c (find_va_list_reference): Use DECL_UID.
13332         (va_list_ptr_read): Ditto.
13333         (va_list_counter_struct_op): Ditto.
13334         (va_list_ptr_write): Ditto.
13335         (check_va_list_escapes): Ditto.
13336         (check_all_va_list_escapes): Ditto.
13337         (execute_optimize_stdarg): Ditto.
13338         * tree-tailcall.c (suitable_for_tail_opt_p): Used referenced_var
13339         iterator. 
13341 2005-06-30  Andrew Pinski  <pinskia@physics.uc.edu>
13343         * config/rs6000/darwin.h (FRAME_POINTER_REGNUM): Rename to ...
13344         (HARD_FRAME_POINTER_REGNUM): this.
13346 2005-06-30  Jan Hubicka  <jh@suse.cz>
13348         * ipa-inline.c (cgraph_clone_inlined_nodes): Revert previous patch.
13350 2005-06-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13352         PR middle-end/22247
13353         * tree-ssa-structalias.c (build_constraint_graph, scc_visit,
13354         process_unification_queue, init_topo_info, topo_visit,
13355         init_scc_info, free_scc_info, perform_var_substitution,
13356         solve_graph): Use unsigned instead of uint.
13357         
13358 2005-06-30  Jakub Jelinek  <jakub@redhat.com>
13360         * function.c (gen_stack_protect_test): Add third argument.
13362 2005-06-30  J. D. Johnston  <jjohnst@us.ibm.com>
13364         * gthr-tpf.h (CE2THRCPTR): Change field offset to 16.
13366 2005-06-30  Kazu Hirata  <kazu@codesourcery.com>
13368         * config/c4x/c4x-protos.h: Remove the prototypes for those
13369         functions removed from c4x.c.  Add prototypes for those
13370         functions exported in c4x.c.
13371         * config/c4x/c4x.c (any_operand, fp_zero_operand,
13372         const_operand, stik_const_operand, not_const_operand,
13373         reg_operand, r0r1_reg_operand, r2r3_reg_operand,
13374         ext_low_reg_operand, ext_reg_operand, std_reg_operand,
13375         std_or_reg_operand, addr_reg_operand, index_reg_operand,
13376         dp_reg_operand, sp_reg_operand, st_reg_operand,
13377         rc_reg_operand, call_address_operand,
13378         symbolic_address_operand, dst_operand, src_operand,
13379         src_hi_operand, lsrc_operand, tsrc_operand,
13380         nonimmediate_src_operand, nonimmediate_lsrc_operand,
13381         reg_or_const_operand, par_ind_operand, parallel_operand):
13382         Remove.
13383         (c4x_immed_float_p, c4x_a_register, c4x_x_register,
13384         c4x_K_constant, c4x_N_constant, c4x_O_constant,
13385         c4x_S_indirect): Export.
13386         * config/c4x/c4x.h (PREDICATE_CODES): Remove.
13387         * config/c4x/c4x.md: Include predicates.md.
13388         * config/c4x/predicates.md: New.
13390 2005-06-30  Jakub Jelinek  <jakub@redhat.com>
13392         * function.c (stack_protect_epilogue): Pass label to
13393         stack_protect_test, assume it emitted also the conditional
13394         branch.
13395         * doc/md.texi (stack_protect_test): Adjust documentation.
13396         * config/i386/i386.md (stack_protect_test): Add third argument,
13397         emit beq with operands[2].
13398         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Define to
13399         flag_stack_protect != 0.
13400         * config/rs6000/rs6000.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
13401         constants.
13402         (stack_protect_set, stack_protect_test): New expanders.
13403         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
13404         stack_protect_testdi): New insns.
13405         * config/rs6000/rs6000.c (rs6000_stack_protect_fail): New function.
13406         (TARGET_STACK_PROTECT_FAIL): Define.
13407         (rs6000_generate_compare): Handle UNSPEC_SP_TEST.
13409         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Increment.
13410         (DWARF_FRAME_REGISTERS, DWARF_REG_TO_UNWIND_COLUMN): Adjust, so
13411         that addition of sfp doesn't change these.
13412         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
13413         REG_ALLOC_ORDER): Add sfp.
13414         (INT_REGNO_P): Include FRAME_POINTER_REGNUM.
13415         (FRAME_POINTER_REGNUM): Define to 113.
13416         (HARD_FRAME_POINTER_REGNUM): Define to 31.
13417         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add sfp.
13418         (STARTING_FRAME_OFFSET): Set to 0 for FRAME_GROWS_DOWNWARD.
13419         (ELIMINABLE_REGS): Never eliminate to
13420         FRAME_POINTER_REGNUM, but HARD_FRAME_POINTER_REGNUM
13421         instead.  Add eliminations from FRAME_POINTER_REGNUM.
13422         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P):
13423         Include FRAME_POINTER_REGNUM.
13424         (REGISTER_NAMES): Add sfp.
13425         * config/rs6000/rs6000.c (rs6000_reg_names): Add sfp.
13426         (alt_reg_names): Likewise.
13427         (rs6000_stack_info): Handle FRAME_GROWS_DOWNWARD.
13428         (rs6000_emit_prologue): Use HARD_FRAME_POINTER_REGNUM
13429         instead of FRAME_POINTER_REGNUM.
13430         (rs6000_initial_elimination_offset): Never eliminate to
13431         FRAME_POINTER_REGNUM, but HARD_FRAME_POINTER_REGNUM
13432         instead.  Add elimination offsets from FRAME_POINTER_REGNUM.
13434         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Only return non-zero
13435         if DEFAULT_ABI == ABI_V4.
13437 2005-06-30  Steven Bosscher  <stevenb@suse.de>
13439         * coretypes.h (tls_model): Add TLS_MODEL_NONE as 0.
13440         * tree.h (struct tree_decl): New field `tls_model'.
13441         (DECL_TLS_MODEL): New.
13442         (DECL_THREAD_LOCAL_P): Rename from DECL_THREAD_LOCAL, make it
13443         a predicate.
13444         * rtl.h (decl_default_tls_model): Add prototype for it.
13445         * varasm.c (decl_tls_model): Rewritten and renamed to ...
13446         (decl_default_tls_model): ... this.
13447         (default_encode_section_info): Use DECL_TLS_MODEL instead of
13448         decl_tls_model.
13449         (assemble_variable): Replace DECL_THREAD_LOCAL with
13450         DECL_THREAD_LOCAL_P.
13451         (default_section_type_flags_1): Likewise.
13452         (categorize_decl_for_section): Likewise.
13453         * tree.c (staticp): Likewise.
13454         (recompute_tree_invarant_for_addr_expr): Likewise.
13455         * drawf2out (loc_descriptor_from_tree_1): Likewise.
13456         * c-decl.c (diagnose_mismatched_decls): Likewise.
13457         with DECL_THREAD_LOCAL_P.
13458         (start_decl): Likewise.
13459         * print-tree.c (print_node): Likewise.  Print the TLS model.
13460         (grokdeclarator): Set the default DECL_TLS_MODEL here.
13461         * c-common.c (handle_tls_model_attribute): Rewrite to set the
13462         TLS model up based on the attribute.  Never add the attribute
13463         to the decl's attributes list.
13464         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Replace
13465         DECL_THREAD_LOCAL with DECL_THREAD_LOCAL_P.
13467 2005-06-30  Zdenek Dvorak  <dvorakz@suse.cz>
13469         PR testsuite/21967
13470         * tree-ssa-live.c (mark_all_vars_used_1): Ignore variables in
13471         TMR_ORIGINAL.
13473 2005-06-30  Bernd Schmidt  <bernd.schmidt@analog.com>
13475         * config/bfin/bfin.md (addv2hi3, subv2hi3, sminv2hi3, smaxv2hi3,
13476         mulv2hi3, negv2hi2, absv2hi2): Pattern names fixed by appending the
13477         necessary digit.
13479 2005-06-29  David Edelsohn  <edelsohn@gnu.org>
13481         * config/rs6000/rs6000.c (rs6000_file_start): Use PPC405_ERRATUM77.
13483 2005-06-29  Diego Novillo  <dnovillo@redhat.com>
13485         PR 22234
13486         * tree-ssa-copy.c (fini_copy_prop): Do not overwrite copy_of
13487         when following copy-of chains.
13489 2005-06-30  Jan Hubicka  <jh@suse.cz>
13491         * function.h (struct function): Add saved blocks/unexpanded var list.
13492         * gimple-low.c (record_vars): Insert only VAR_DECLs.
13493         * tree-inline.c (add_lexical_block): Declare; do not clear sublocks.
13494         (remap_decl): Do not declare vars.
13495         (remap_block): Do not care inserting blocks.
13496         (remap_blocks): New function.
13497         (copy_body_r): Update debug info.
13498         (expand_call_inline): Duplicate callee block tree into caller;
13499         copy all the unexpanded_var_list.
13500         (save_body): Save unexpanded_var_list and blocks.
13501         * tree-optimize.c (tree_rest_of_optimization): Restore
13502         blocks/unexpanded_var_list.
13504 2005-06-29  Richard Henderson  <rth@redhat.com>
13506         * config/ia64/ia64.c (ia64_expand_vecint_minmax): Use us_minus and
13507         plus for V4HImode UMAX.
13509 2005-06-29  Joseph S. Myers  <joseph@codesourcery.com>
13511         * c-tree.h (default_function_array_conversion): Take and return
13512         struct c_expr.
13513         * c-typeck.c (default_function_array_conversion): Split into
13514         array_to_pointer_conversion and function_to_pointer_conversion.
13515         Take and return struct c_expr.
13516         (array_to_pointer_conversion): Do not handle type qualifiers or
13517         COMPOUND_EXPRs specially.
13518         (build_function_call): Call function_to_pointer_conversion for
13519         function designators.
13520         (build_unary_op): Call array_to_pointer_conversion, not
13521         default_function_array_conversion.
13522         (digest_init, output_init_element): Likewise.
13523         * c-parser.c: All callers of default_function_array_conversion
13524         changed.
13526 2005-06-29  Ziemowit Laski  <zlaski@apple.com>
13528         * config/darwin.c (machopic_select_section): constant ObjC string
13529         objects now always have type "__builtin_ObjCString".
13531 2005-06-29  Richard Henderson  <rth@redhat.com>
13533         * config/alpha/alpha.md (vec_shl_<VEC>, vec_shr_<VEC>): New.
13535 2005-06-29  Richard Henderson  <rth@redhat.com>
13537         * tree-vect-transform.c (vect_min_worthwhile_factor): Declare.
13538         (vect_create_epilog_for_reduction): Don't use vec_shr if the
13539         operation is emulated.
13540         (vectorizable_reduction): Duplicate vect_min_worthwhile_factor
13541         tests from vectorizable_operation.
13543 2005-06-29  Caroline Tice  <ctice@apple.com>
13545         Fix PR 21956
13546         * varasm.c (assemble_start_function):  Add "L" to beginning of
13547         local labels, so assembler & linker treat them as local.
13548         
13549 2005-06-29  Richard Henderson  <rth@redhat.com>
13551         * config/i386/i386.c (ix86_expand_int_vcond): Remove unsignedp
13552         argument.  Simplify canonicalization of condition.  Use unsigned
13553         saturating subtraction for QI and HImode unsigned compares.  Use
13554         bit arithmetic tricks for SImode unsigned compares.
13555         * config/i386/i386-protos.h (ix86_expand_int_vcond): Update decl.
13556         * config/i386/sse.md (SSEMODE14): New.
13557         (umaxv8hi3): Use us_minus+plus to avoid vcond.
13558         (umaxv4si3): New.
13559         (smax<SSEMODE14>3): Rename from smaxv16qi3 and macroize.
13560         (smin<SSEMODE14>3): Similarly with sminv16qi3.
13561         (umin<SSEMODE24>3): Similarly with uminv8hi3.
13563 2005-06-29  Ian Lance Taylor  <ian@airs.com>
13565         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Change
13566         GEN_INT to gen_int_for_mode when storing register size to memory.
13568 2005-06-29  Stuart Hastings  <stuart@apple.com>
13570         * gcc/config/i386/mmintrin.h: Mark vector intrinsics always_inline.
13571         * gcc/config/i386/emmintrin.h: Likewise.
13572         * gcc/config/i386/pmmintrin.h: Likewise.
13573         * gcc/config/i386/xmmintrin.h: Likewise.
13574                                         
13575 2005-06-29  Steve Ellcey  <sje@cup.hp.com>
13577         PR middle-end/21969
13578         * tree.h (TYPE_VECTOR_SUBPARTS): Change to shift expression.
13579         (SET_TYPE_VECTOR_SUBPARTS): New.
13580         * tree.c (make_vector_type): Replace TYPE_VECTOR_SUBPARTS with
13581         SET_TYPE_VECTOR_SUBPARTS.
13582         * tree-vect-transform.c (vect_transform_loop): Add cast.
13584 2005-06-29  Andreas Krebbel  <krebbel1@de.ibm.com>
13586         * config/s390/s390.c (s390_decompose_address): Accept invalid
13587         displacements for addresses containing frame_pointer_rtx or
13588         virtual_stack_vars_rtx.
13589         (s390_frame_info): Replaced use of STARTING_FRAME_OFFSET.
13590         (s390_initial_elimination_offset): New offset when eliminating the 
13591         soft frame pointer.
13592         * config/s390/s390.h (FRAME_GROWS_DOWNWARD): Defined as 1.
13593         (STARTING_FRAME_OFFSET, STACK_DYNAMIC_OFFSET): Definitions changed.
13595 2005-06-28  Ziemowit Laski  <zlaski@apple.com>
13597         * c-common.c (flag_next_runtime): Move...
13598         * toplev.c (flag_next_runtime): ... here.
13599         * c-common.h (flag_next_runtime): Move...
13600         * flags.h (flag_next_runtime): ... here.
13601         * config/darwin-c.c: Include flags.h.
13602         * config/t-darwin (darwin-c.o): Depend on flags.h.
13604 2005-06-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13606         * config/sh/linux-unwind.h (shmedia_fallback_frame_state):
13607         Disable aliasing warning with void * cast.
13608         (sh_fallback_frame_state): Likewise.
13610 2005-06-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13612         * target.h (gcc_target): New field allocate_initial_value.
13613         * target-def.h (TARGET_ALLOCATE_INITIAL_VALUE): New macro.
13614         (TARGET_INITIALIZER): Include it.
13615         * integrate.c (allocate_initial_values): Use
13616         targetm.allocate_initial_value.
13617         * system.h: Poison ALLOCATE_INITIAL_VALUE.
13618         * config/sh/sh-protos.h (sh_pr_n_sets): Delete.
13619         * config/sh/sh.c (sh_pr_n_sets): Make it static.
13620         (sh_allocate_initila_value): New function.
13621         (TARGET_ALLOCATE_INITIAL_VALUE): Override default.
13622         * config/sh/sh.h (ALLOCATE_INITIAL_VALUE): Delete.
13623         * doc/tm.texi (TARGET_ALLOCATE_INITIAL_VALUE): Rename and
13624         update from ALLOCATE_INITIAL_VALUE.
13626 2005-06-28  Richard Henderson  <rth@redhat.com>
13628         * tree-vectorizer.c (vect_is_simple_reduction): Compare types
13629         using TYPE_MAIN_VARIANT.
13631 2005-06-28  Richard Henderson  <rth@redhat.com>
13633         * config/ia64/ia64.c (ia64_expand_vecint_compare): Decompose to EQ
13634         when using psubN.uuu.
13636 2005-06-29  Kelley Cook <kcook@gcc.gnu.org>
13638         * doc/gcc.texi: Update FSF address.
13640 2005-06-28  Eric Christopher  <echristo@redhat.com>
13642         PR c/22052
13643         PR c/21975
13644         * c-decl.c (diagnose_mismatched_decls): Define DECL_EXTERN_INLINE.
13645         Use. Fix detection of invalid extern inline redefinition.
13647 2005-06-28  Diego Novillo  <dnovillo@redhat.com>
13649         * tree-optimize.c (init_tree_optimization_passes): Fix typo.
13651 2005-06-28  Andrew Pinski  <pinskia@physics.uc.edu>
13653         * config/rs6000/rs6000.md (setmemsi): s/operand/operands/.
13655 2005-06-28  Richard Henderson  <rth@redhat.com>
13657         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use unsigned
13658         saturating subtraction for QI and HImode unsigned compares.  Use
13659         bit arithmetic tricks for SImode unsigned compares.
13660         (ia64_expand_vcondu_v2si): Remove.
13661         (ia64_expand_vecint_cmov): Don't call it.
13663 2005-06-28  Richard Henderson  <rth@redhat.com>
13665         * rtlanal.c (nonzero_bits1): Use the mode of the value for
13666         determining integral-ness for comparisons.
13668 2005-06-28  Andrew Pinski  <pinskia@physics.uc.edu>
13670         * config/rs6000/rs6000.md (setmemsi): Fix operand 2.
13672 2005-06-28  Joseph S. Myers  <joseph@codesourcery.com>
13674         * target.h (invalid_conversion, invalid_unary_op,
13675         invalid_binary_op): New hooks.
13676         * target-def.h (TARGET_INVALID_CONVERSION,
13677         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP,
13678         TARGET_INITIALIZER): Likewise.
13679         * hooks.h (hook_constcharptr_tree_tree_null,
13680         hook_constcharptr_int_tree_null,
13681         hook_constcharptr_int_tree_tree_null): New.
13682         * hooks.c (hook_constcharptr_tree_tree_null,
13683         hook_constcharptr_int_tree_null,
13684         hook_constcharptr_int_tree_tree_null): Likewise.
13685         * gcc/doc/tm.texi (TARGET_INVALID_CONVERSION,
13686         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Document.
13687         * c-convert.c (convert): Use invalid_conversion hook.
13688         * c-typeck.c (build_unary_op): Use invalid_unary_op hook.
13689         (build_binary_op): Use invalid_binary_op hook.
13690         * config/ia64/ia64-modes.def: Define RFmode.
13691         * config/ia64/ia64-protos.h (spill_xfmode_operand): Remove.
13692         (ia64_expand_movxf_movrf): New.
13693         * config/ia64/ia64.md (movxf): Move code to
13694         ia64_expand_movxf_movrf.
13695         (movrf, movrf_internal): New.
13696         * ia64.c (ia64_invalid_conversion, ia64_invalid_unary_op,
13697         ia64_invalid_binary_op, TARGET_INVALID_CONVERSION,
13698         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): New.
13699         (spill_xfmode_operand): Rename to spill_xfmode_rfmode_operand.
13700         Add mode parameter.  Make static.
13701         (ia64_expand_movxf_movrf): New, moved from ia64.md.  Handle RFmode
13702         as well as XFmode.
13703         (ia64_function_arg, ia64_function_value, ia64_register_move_cost,
13704         ia64_scalar_mode_supported_p): Handle RFmode as well as XFmode.
13705         (ia64_init_builtins): Set up __fpreg as RFmode.
13706         (ia64_mangle_fundamental_type): Mangle __fpreg as u7__fpreg.
13708 2005-06-28  Adrian Straetling  <straetling@de.ibm.com>
13710         * builtins.c: (expand_builtin_memset): Rewrite to support
13711         'set_storage_via_setmem'.
13712         * expr.c: (enum insn_code setmem_optab): Define.
13713         (enum insn_code clrmem_optab): Remove.
13714         (set_storage_via_setmem): New function.
13715         (clear_storage_via_setmem): Remove.
13716         (clear_storage): Replace call to "clear_storage_via_clrmem" with
13717         "set_storage_via_setmem".
13718         * expr.h: (set_storage_via_setmem): Declare.
13719         (CLEAR_RATIO): Redefine using HAVE_setmemM.
13720         * optabs.h: (enum insn_code setmem_optab): Declare.
13721         (enum insn_code clrmem_optab): Remove.
13722         * optabs.c: (init_optabs): Initialize setmem_optab.
13723         (enum insn_code clrmem_optab): Remove.
13724         * genopinit.c: (otabs): Likewise.
13725         * doc/md.texi: Document new standard pattern 'setmem'. Remove
13726           'clrmem'.
13727         * config/alpha/alpha.c: (alpha_expand_block_clear): Adjust
13728         'operands' ordering.
13729         * config/frv/frv.c: (frv_expand_block_clear): Likewise.
13730         * config/rs6000/rs6000.c: (expand_block_clear): Likewise.
13731         * config/alpha/alpha.md: ("clrmemqi", "clrmemdi"): Rename to "setmemM".
13732         FAIL on operands[2]!=const0_rtx. Adjust 'operands' ordering.
13733         * config/avr/avr.md: ("clrmemhi"): Likewise.
13734         * config/frv/frv.md: ("clrmemsi"): Likewise.
13735         * config/i386/i386.md: ("clrmemsi", "clrmemdi"): Likewise.
13736         * config/pa/pa.md: ("clrmemsi", "clrmemdi"): Likewise.
13737         * config/rs6000/rs6000.md: ("clrmemsi"): Likewise.
13738         * config/s390/s390.md: ("clrmem<mode>"): Likewise.
13740 2005-06-28  Paul Brook  <paul@codesourcery.com>
13742         * Makefile.in: Set and use UNWIND_H.  Install as unwind.h.
13743         * c-decl.c (finish_decl): Call default_init_unwind_resume_libfunc.
13744         * except.c (add_ehspec_entry): Generate arm eabi filter lists.
13745         (assign_filter_values): Ditto.
13746         (output_ttype): New function.
13747         (output_function_exception_table): Use output_ttype.  Generate arm
13748         eabi filter lists.
13749         (default_init_unwind_resume_libfunc): New function.
13750         * except.h (default_init_unwind_resume_libfunc): Add prototype.
13751         * optabs.c (init_optabs): Don't set unwind_resume_libfunc.
13752         * opts.c (decode_options): Use targetm.unwind_tables_default.
13753         * target-def.h (TARGET_ASM_TTYPE): Provide and use definition.
13754         (TARGET_ARM_EABI_UNWINDER, TARGET_UNWIND_TABLES_DEFAULT): Ditto.
13755         * target.h (struct gcc_target): Add asm.ttype, unwind_tables_default
13756         and arm_eabi_unwinder.
13757         * unwind-c.c: Support Arm EABI unwinder.
13758         * unwind.h: Rename ...
13759         * unwind-generic.h: ... To this.
13760         * doc/tm.texi (TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER): Document.
13761         (TARGET_UNWID_TABLES_DEFAULT): Document.
13763         * config/arm/arm-protos.h (arm_output_fn_unwind): Add prototype.
13764         * config/arm/arm.c (arm_unwind_emit, arm_output_ttype): New functions.
13765         (TARGET_UNWIND_EMIT, TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER):
13766         Define.
13767         (thumb_pushpop, thumb_output_function_prologue): Output unwinding
13768         directives.
13769         (arm_unwind_emit_stm, arm_unwind_emit_set): New functions.
13770         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS): Only define when
13771         !TARGET_UNWIND_INFO.
13772         (ARM_OUTPUT_FN_UNWIND, ARM_EABI_UNWIND_TABLES): Define.
13773         * config/arm/bpabi.h (TARGET_UNWIND_INFO): Define.
13774         * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME,
13775         ASM_DECLARE_FUNCTION_SIZE): Use ARM_OUTPUT_FN_UNWIND.
13776         * config/arm/lib1funcs.asm: Include libunwind.S.
13777         * config/arm/libgcc-bpabi.ver: Add unwinding routines.
13778         * config/arm/libunwind.S: New file.
13779         * config/arm/pr-support.c: New file.
13780         * config/arm/t-bpabi (LIB1ASMFUNCS): Add _unwind.
13781         (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
13782         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
13783         * config/arm/unwind-arm.c: New file.
13784         * config/arm/unwind-arm.h: New file.
13785         * config/i386/t-netware (USER_H): Remove unwind.h.
13786         * config/ia64/ia64.h (TARGET_UNWIND_TABLES_DEFAULT): Define.
13788 2005-06-28  DJ Delorie  <dj@redhat.com>
13790         * c-decl.c (pop_scope): Move warning control into warning call.
13791         (diagnose_mismatched_decls): Likewise.
13792         (pushdecl): Likewise.
13793         (start_decl): Likewise.
13794         (grokparms): Likewise.
13795         (start_function): Likewise.
13796         (store_parm_decls_newstyle): Likewise.
13797         (store_parm_decls_oldstyle): Likewise.
13798         (finish_function): Likewise.
13799         (declspecs_add_scspec): Likewise.
13800         * c-format.c (decode_format_attr): Likewise.
13801         (maybe_read_dollar_number): Likewise.
13802         (avoid_dollar_number): Likewise.
13803         (finish_dollar_format_checking): Likewise.
13804         (check_format_info): Likewise.
13805         (check_format_info_main): Likewise.
13806         (check_format_types): Likewise.
13807         (format_type_warning): Likewise.
13808         * c-typeck.c (function_types_compatible_p): Likewise.
13809         (build_array_ref): Likewise.
13810         (convert_arguments): Likewise.
13811         (build_c_cast): Likewise.
13812         (store_init_value): Likewise.
13813         (process_init_element): Likewise.
13814         (c_start_case): Likewise.
13815         * stor-layout.c (finalize_record_size): Likewise.
13816         * tree-cfg.c (execute_warn_function_noreturn): Likewise.
13817         * tree-inline.c (expand_call_inline): Likewise.
13819 2005-06-28  Uros Bizjak  <uros@kss-loka.si>
13821         PR target/22134
13822         * config/i386/i386.md (fist<mode>2_with_temp splitter):
13823         Clobber memory operand, not scratch register.
13825 2005-06-28  Andreas Krebbel  <krebbel1@de.ibm.com>
13827         * config/s390/s390.c (machine_function): New field has_landing_pad_p.
13828         (s390_set_has_landing_pad_p, s390_reg_clobbered_rtx,
13829          s390_regs_ever_clobbered): New functions.
13830         (s390_return_addr_rtx): Use get_hard_reg_initial_value.
13831         (s390_register_info, s390_init_frame_layout, s390_update_frame_layout):
13832         Use s390_regs_ever_clobbered.
13833         (s390_emit_prologue): Don't use r14 as temp reg if its content is used
13834         for builtin_return_address.
13835         * config/s390/s390.md ("exception_receiver"): New expander.
13836         * config/s390/s390-protos.h (s390_set_has_landing_pad_p): Prototype
13837         added.
13839 2005-06-28  Andreas Krebbel  <krebbel1@de.ibm.com>
13841         * except.c (current_function_has_exception_handlers): Function 
13842         description added and if statements merged.
13844 2005-06-28  Richard Henderson  <rth@redhat.com>
13846         * config/i386/sse.md (smaxv16qi3): Fix buffer overflow.
13847         (sminv16qi3, umaxv8hi3, uminv8hi3): Likewise.
13849 2005-06-27  Richard Henderson  <rth@redhat.com>
13851         * config/ia64/ia64.c (ia64_expand_vcondu_v2si): Generate proper
13852         comparison operations.
13853         (ia64_expand_vecint_minmax): Fix size of xops.
13854         * config/ia64/vect.md (umax<VECINT>3): Fix fallback pattern typo.
13855         (vec_shl_<VECINT>, vec_shr_<VECINT>): New.
13857 2005-06-27  Richard Henderson  <rth@redhat.com>
13859         * tree-vect-transform.c (get_initial_def_for_reduction): Use correct
13860         type for DEF and INIT_VAL.  Pretend MIN/MAX need epilogue adjustment.
13862 2005-06-27  Richard Henderson  <rth@redhat.com>
13864         * config/i386/sse.md (vec_shl_<SSEMODEI>, vec_shr_<SSEMODEI>): New.
13865         (smaxv16qi3, umaxv8hi3, sminv16qi3, uminv8hi3): New.
13867 2005-06-27  Richard Henderson  <rth@redhat.com>
13869         * tree-vect-transform.c (vect_create_epilog_for_reduction): Remove
13870         duplicate little-endian adjustment.
13872 2005-06-28  Kelley Cook  <kcook@gcc.gnu.org>
13874         * doc/include/texinfo.tex: Import from upstream CVS.
13876 2005-06-28  Jan Hubicka  <jh@suse.cz>
13878         * cgraph.c (cgraph_remove_node): Do not release function bodies until
13879         full cgraph is built.
13880         * cgraph.h (cgraph_decide_inlining_incrementally): Add early argument.
13881         * cgraphunit.c (cgraph_finalize_function): Update call of
13882         cgraph_decide_inlining_incrementally.
13883         (initialize_inline_failed): Break out of ...
13884         (cgraph_analyze_function): ... here.
13885         (rebuild_cgraph_edges): New function.
13886         (pass_rebuild_cgraph_edges): New pass.
13887         * common.opt (fearly-inlining): New flag.
13888         * ipa-inline.c: Include ggc.h
13889         (cgraph_clone_inlined_nodes): Avoid re-using of original copy
13890         when cgraph is not fully built.
13891         (cgraph_decide_inlining_incrementally): Add early mode.
13892         (cgraph_early_inlining): New function.
13893         (cgraph_gate_early_inlining): Likewise.
13894         (pass_early_ipa_inline): New pass.
13895         * ipa.c (cgraph_postorder): NULLify aux pointer.
13896         * tree-inline.c (expand_call_inline): Avoid warning early.
13897         * tree-optimize.c (pass_early_local_passes): New.
13898         (execute_cleanup_cfg_pre_ipa): New.
13899         (pass_cleanup_cfg): New.
13900         (register_dump_files): Fix handling subpasses of IPA pass.
13901         (init_tree_optimization_passes): Add early passes.
13902         (execute_ipa_pass_list): Fix handling of subpasses of IPA pass.
13903         * passes.h (pass_early_tree_profile, pass_rebuild_cgraph_edges,
13904         pass_early_ipa_inline): New passes.
13905         * tree-profile.c (do_early_tree_profiling, pass_early_tree_profile): New.
13907         * invoke.texi: Document early-inlining.
13909 2005-06-28  Kelley Cook  <kcook@gcc.gnu.org>
13911         * doc/include/fdl.texi: Merge in changes from upstream.
13912         * doc/include/gpl.texi: Likewise.
13914 2005-06-27  Diego Novillo  <dnovillo@redhat.com>
13916         PR 21959
13917         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Handle type
13918         casts between unsigned and signed types with different size
13919         or precision.
13921 2005-06-28  Jan Hubicka  <jh@suse.cz>
13923         * tree-optimize.c (exercute_free_datastructures):
13924         Do not disband implicit edges; do not attempt to build insn list;
13925         do not free cfg annotations.
13926         (execute_free_cfg_annotations); Disband implicit edges here;
13927         free cfg annotations here too.
13928         (pass_free_cfg_annotations); New pass.
13929         (init_tree_optimization_passes); Add pass_free_cfg_annotations.
13930         * tree-ssa-operands.c (free_ssa_operands); Recover; export.
13931         * tree-ssa-operands.h (free_ssa_operands); declare.
13932         * tree-ssa.c (delete_tree_ssa); Free SSA operand; mark stmt modified;
13933         kill PHI nodes.
13934         * tree-ssanames.c (release_defs): Kill addresses_taken.
13936         * basic-block.h (basic_block_def): Kill rbi.
13937         (reorder_block_def): Kill; Remove next field (replaced by aux);
13938         move other fields to ...
13939         (rtl_bb_info): ... here.
13940         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
13941         copy_bb, connect_traces, add_labels_and_missing_jumps
13942         fix_up_fall_thru_edges, fix_crossing_conditional_branches,
13943         duplicate_computed_gotos, partition_hot_cold_basic-blocks):
13944         Update to new fields.
13945         * cfg.c (initialize_bb_rbi): Kill.
13946         * cfglayout.c (record_effective_endpoints, fixup_reorder_chain,
13947         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update.
13948         * cfgrtl.c (cfg_layout_create_basic_block): Do not initialize rbi.
13949         (try_redirect_by_replacing_jump): Update rbi references.
13950         (cfg_layout_split_block): Likewise.
13951         (cfg_layout_delete_block): Likewise.
13952         (cfg_layout_merge_blocks): Likewise.
13953         * function.c (thread_prologue_and_epilogue_insns): Likewise.
13954         * passes.c (rest_of_handle_sms): Likewise.
13955         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
13957 2005-06-27  David Edelsohn  <edelsohn@gnu.org>
13959         * config/rs6000/rs6000.c (rs6000_file_start): Note PPC405 erratum
13960         in verbose_asm output.
13961         * config/rs6000/rs6000.h (PPC405_ERRATUM77): Bracket with
13962         CONFIG_PPC405CR.
13963         * config.gcc (powerpc with_which): Define CONFIG_PPC405CR for
13964         405cr.
13966 2005-06-27  Jakub Jelinek  <jakub@redhat.com>
13968         * builtin-attrs.def (DEF_ATTR_FOR_INT): Add for 5 and 6.
13969         (DEF_LIST_INT_INT): Add for 4,0, 4,5, 5,0, 5,6.
13970         (ATTR_NOTHROW_NONNULL_4, ATTR_NOTHROW_NONNULL_5): Define.
13971         (ATTR_FORMAT_PRINTF_4_0, ATTR_FORMAT_PRINTF_4_5,
13972         ATTR_FORMAT_PRINTF_5_0, ATTR_FORMAT_PRINTF_5_6): Define.
13973         * builtins.c: Include tree-flow.h.
13974         (expand_builtin_mempcpy, expand_builtin_memmove): Comment fixes.
13975         (expand_builtin_object_size, expand_builtin_memory_chk,
13976         maybe_emit_chk_warning, maybe_emit_sprintf_chk_warning,
13977         compute_object_offset, compute_builtin_object_size,
13978         fold_builtin_object_size): New functions.
13979         (expand_builtin): Handle BUILT_IN_OBJECT_SIZE and BUILT_IN_*_CHK.
13980         (fold_builtin_1): Likewise.  Handle BUILT_IN_{,V}{,F}PRINTF
13981         and BUILT_IN_{,F}PRINTF_UNLOCKED.
13982         (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
13983         fold_builtin_strncpy_chk, fold_builtin_strcat_chk,
13984         fold_builtin_strncat_chk, fold_builtin_sprintf_chk,
13985         fold_builtin_snprintf_chk, fold_builtin_printf, fold_builtin_fprintf):
13986         New functions.
13987         * builtins.def (BUILT_IN_OBJECT_SIZE, BUILT_IN_MEMCPY_CHK,
13988         BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK, BUILT_IN_MEMSET_CHK,
13989         BUILT_IN_STPCPY_CHK, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK,
13990         BUILT_IN_STRNCAT_CHK, BUILT_IN_STRNCPY_CHK, BUILT_IN_SNPRINTF_CHK,
13991         BUILT_IN_SPRINTF_CHK, BUILT_IN_VSNPRINTF_CHK, BUILT_IN_VSPRINTF_CHK,
13992         BUILT_IN_FPRINTF_CHK, BUILT_IN_PRINTF_CHK, BUILT_IN_VFPRINTF_CHK,
13993         BUILT_IN_VPRINTF_CHK): New builtins.
13994         * builtin-types.def (DEF_FUNCTION_TYPE_5, DEF_FUNCTION_TYPE_VAR_4):
13995         Document.
13996         (BT_FN_SIZE_CONST_PTR_INT, BT_FN_INT_INT_CONST_STRING_VALIST_ARG,
13997         BT_FN_PTR_PTR_CONST_PTR_SIZE_SIZE, BT_FN_PTR_PTR_INT_SIZE_SIZE,
13998         BT_FN_STRING_STRING_CONST_STRING_SIZE_SIZE,
13999         BT_FN_INT_FILEPTR_INT_CONST_STRING_VALIST_ARG,
14000         BT_FN_INT_STRING_INT_SIZE_CONST_STRING_VALIST_ARG,
14001         BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VALIST_ARG,
14002         BT_FN_INT_INT_CONST_STRING_VAR, BT_FN_INT_FILEPTR_INT_CONST_STRING_VAR,
14003         BT_FN_INT_STRING_INT_SIZE_CONST_STRING_VAR,
14004         BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VAR): New types.
14005         * c-common.c (DEF_FUNCTION_TYPE_5, DEF_FUNCTION_TYPE_6,
14006         DEF_FUNCTION_TYPE_VAR_4, DEF_FUNCTION_TYPE_VAR_5): Define.
14007         * Makefile.in (OBJS-common): Add tree-object-size.o.
14008         (tree-object-size.o): Add dependencies.
14009         * tree-pass.h (pass_object_sizes): Add.
14010         * tree-optimize.c (init_tree_optimization_passes): Add
14011         pass_object_sizes.
14012         * tree-object-size.c: New file.
14013         * tree.h (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
14014         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk,
14015         compute_builtin_object_size, init_object_sizes, fini_object_sizes):
14016         New prototypes.
14017         * tree-ssa-ccp.c (get_strlen): Rename to ...
14018         (get_maxval_strlen): ...this function.  Handle also computing of maximum
14019         string length and maximum integral value.
14020         (ccp_fold_builtin): Handle BUILT_IN_*_CHK.  Use get_maxval_strlen
14021         instead of get_strlen.  Pass CALLEE and ARGLIST variables to the
14022         folding functions instead of computing them again.
14023         (execute_fold_all_builtins): Retry ccp_fold_builtin if a builtin changed
14024         into some other builtin.
14025         * doc/extend.texi (Object Size Checking): Document.
14027         * regrename.c (copy_value): Fix comment.
14029         * toplev.c (process_options): Use if (FRAME_GROWS_DOWNWARD)
14030         instead of preprocessor conditionals.
14032         * targhooks.c (default_hidden_stack_protect_fail): Fall back to
14033         default_external_stack_protect_fail if visibility is not supported
14034         or not flag_pic.
14035         * config/i386/i386.c (ix86_stack_protect_fail): New function.
14036         (TARGET_STACK_PROTECT_FAIL): Define.
14037         * config/i386/i386.md (stack_protect_si): Change CLOBBER into
14038         SET to zero.
14039         (stack_protect_di): Likewise.  Use %k2 instead of %2 to avoid
14040         invalid instruction xorl %rax, %rax.
14042 2005-06-27  Richard Henderson  <rth@redhat.com>
14044         * c-cppbuiltin.c (c_cpp_builtins): Add __SSP_ALL__ and __SSP__.
14045         * cfgexpand.c: Include params.h.
14046         (has_protected_decls, has_short_buffer): New.
14047         (expand_stack_vars): Take a predicate to determine what to expand.
14048         (defer_stack_allocation): True when flag_stack_protect on.
14049         (SPCT_HAS_LARGE_CHAR_ARRAY, SPCT_HAS_SMALL_CHAR_ARRAY): New.
14050         (SPCT_HAS_ARRAY, SPCT_HAS_AGGREGATE): New.
14051         (stack_protect_classify_type, stack_protect_decl_phase): New.
14052         (stack_protect_decl_phase_1, stack_protect_decl_phase_2): New.
14053         (add_stack_protection_conflicts, create_stack_guard): New.
14054         (expand_used_vars): Add stack protection logic.
14055         (tree_expand_cfg): Likewise.
14056         * common.opt (Wstack-protector): New.
14057         (fstack-protector, fstack-protector-all): New.
14058         * function.c: Include predict.h.
14059         (assign_parm_adjust_stack_rtl): Zap stack_parm when stack protect
14060         wants to copy the parameter into the stack frame.
14061         (stack_protect_prologue, stack_protect_epilogue): New.
14062         (expand_function_end): Call stack_protect_epilogue.  Do 
14063         sjlj_emit_function_exit_after after naked_return_label.
14064         * function.h (struct function): Add stack_protect_guard.
14065         * params.def (PARAM_SSP_BUFFER_SIZE): New.
14066         * toplev.c (process_options): Disable flag_stack_protect and/or
14067         warn_stack_protect based on FRAME_GROWS_DOWNWARD.
14068         * tree.h (stack_protect_prologue): Declare.
14070         * target-def.h (TARGET_STACK_PROTECT_GUARD): New.
14071         (TARGET_STACK_PROTECT_FAIL): New.
14072         (TARGET_INITIALIZER): Add them.
14073         * target.h (struct gcc_target): Add stack_protect_guard and
14074         stack_protect_fail.
14075         * targhooks.c: Include ggc.h, gty header.
14076         (stack_chk_guard_decl, default_stack_protect_guard): New.
14077         (stack_chk_fail_decl, default_external_stack_protect_fail): New.
14078         (default_hidden_stack_protect_fail): New.
14079         * targhooks.h (default_stack_protect_guard): Declare.
14080         (default_external_stack_protect_fail): Declare.
14081         (default_hidden_stack_protect_fail): Declare.
14082         * config/i386/i386.c (TARGET_STACK_PROTECT_FAIL): New.
14083         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New.
14084         (trap): Use ud2.
14085         (conditional_trap, conditional_trap_1): Remove.
14086         (stack_protect_set, stack_protect_set_si, stack_protect_set_di): New.
14087         (stack_protect_test, stack_protect_test_si, stack_protect_test_di): New.
14088         * doc/md.texi (stack_protect_set, stack_protect_test): New.
14089         * doc/tm.texi (TARGET_STACK_PROTECT_GUARD): New.
14090         (TARGET_STACK_PROTECT_FAIL): New.
14092         * libgcc-std.ver (GCC_4.1.0): New.
14093         * libgcc.h (__stack_chk_guard): Declare.
14094         (__stack_chk_fail, __stack_chk_fail_local): Declare.
14095         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
14096         * mklibgcc.in (lib2funcs): Add them.
14098 2005-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14100         PR c/21911
14101         * c-common.c (check_function_sentinel): Pass in named argument
14102         list, skip over named arguments before looking for a sentinel.
14103         (check_function_arguments): Pass in named argument list.
14104         * c-common.h (check_function_arguments): Likewise.
14105         * c-typeck.c (build_function_call): Likewise.
14107 2005-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14109         * genautomata.c (decl_mode_check_failed,
14110         regexp_mode_check_failed): Add noreturn attribute.
14112 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
14114         * cfg.c, tree-vect-transform.c, tree.def: Fix comment typos.
14115         * doc/invoke.texi: Fix typos.
14117         * builtins.c, c-common.c, c-convert.c, c-decl.c, c-typeck.c,
14118         convert.c, lambda-code.c, predict.c, tree-cfg.c,
14119         tree-complex.c, tree-data-ref.c, tree-if-conv.c,
14120         tree-mudflap.c, tree-scalar-evolution.c, tree-ssa-ccp.c,
14121         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
14122         tree-ssa-loop-manip.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14123         tree-vect-analyze.c, tree-vect-transform.c, tree-vectorizer.c,
14124         tree.c: Use fold_buildN instead of fold (buildN (...)).
14126 2005-06-26  Gerald Pfeifer  <gerald@pfeifer.com>
14128         * doc/install.texi (Specific): Do not specify the concrete
14129         versions of GCC provided by Cygwin.  Simplify the part on
14130         building on Cygwin.
14132 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
14134         * config/arc/arc-protos.c: Remove the prototype for
14135         arc_finalize_pic.
14136         * config/arc/arc.c (arc_finalize_pic): Remove.
14137         * config/arc/arc.h (FINALIZE_PIC): Likewise.
14138         * config/bfin/bfin.h (FINALIZE_PIC): Likewise.
14139         * config/rs6000/rs6000.h (FINALIZE_PIC): Likewise.
14141 2005-06-26  Jakub Jelinek  <jakub@redhat.com>
14143         PR middle-end/17965
14144         * calls.c (expand_call, emit_library_call_value_1): Use xmalloc/free
14145         instead of alloca for really big argument sizes.
14147         PR middle-end/22028
14148         * gimplify.c (gimplify_type_sizes): Check for type == error_mark_node
14149         earlier in the function.
14151         * regrename.c (copy_value): Don't replace fixed or global
14152         regs with older regs.
14154         * defaults.h (FRAME_GROWS_DOWNWARD): Define to 0 if not defined.
14155         * function.c (get_func_frame_size): Use if (FRAME_GROWS_DOWNWARD)
14156         instead of preprocessor conditionals.
14157         (assign_stack_local_1, assign_stack_temp_for_type): Likewise.
14158         * cfgexpand.c (FRAME_GROWS_DOWNWARD): Don't redefine to 1 or 0
14159         depending on if it was or was not defined previously.
14160         * doc/rtl.texi (VIRTUAL_STACK_VARS_REGNUM): Mention that only non-zero
14161         definition of FRAME_GROWS_DOWNWARD means frame grows downward.
14162         * doc/tm.texi (FRAME_GROWS_DOWNWARD): Likewise.
14163         * config/m68hc11/m68hc11.h (FRAME_GROWS_DOWNWARD): Define to 0.  Update
14164         comment.
14165         * config/pa/pa.h (FRAME_GROWS_DOWNWARD): Likewise.
14166         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Likewise.
14167         * config/stormy16/stormy16.h (FRAME_GROWS_DOWNWARD): Define to 0.
14168         * config/c4x/c4x.h (FRAME_GROWS_DOWNWARD): Likewise.
14169         * config/sh/sh.h (FRAME_GROWS_DOWNWARD): Likewise.
14170         * config/ia64/ia64.h (FRAME_GROWS_DOWNWARD): Likewise.
14171         * config/iq2000/iq2000.h (FRAME_GROWS_DOWNWARD): Likewise.
14172         * config/pdp11/pdp11.h (FRAME_GROWS_DOWNWARD): Define to 1.  Update
14173         comment.
14174         * config/i860/i860.h (FRAME_GROWS_DOWNWARD): Likewise.
14175         * config/h8300/h8300.h (FRAME_GROWS_DOWNWARD): Likewise.
14176         * config/arc/arc.h (FRAME_GROWS_DOWNWARD): Likewise.
14177         * config/vax/vax.h (FRAME_GROWS_DOWNWARD): Likewise.
14178         * config/sparc/sparc.h (FRAME_GROWS_DOWNWARD): Likewise.
14179         * config/i386/i386.h (FRAME_GROWS_DOWNWARD): Likewise.
14180         * config/fr30/fr30.h (FRAME_GROWS_DOWNWARD): Likewise.
14181         * config/frv/frv.h (FRAME_GROWS_DOWNWARD): Likewise.
14182         * config/mn10300/mn10300.h (FRAME_GROWS_DOWNWARD): Likewise.
14183         * config/bfin/bfin.h (FRAME_GROWS_DOWNWARD): Likewise.
14184         * config/ns32k/ns32k.h (FRAME_GROWS_DOWNWARD): Likewise.
14185         * config/v850/v850.h (FRAME_GROWS_DOWNWARD): Likewise.
14186         * config/alpha/alpha.h (FRAME_GROWS_DOWNWARD): Update comment.
14187         * config/s390/s390.h (FRAME_GROWS_DOWNWARD): Likewise.
14188         * config/arm/arm.h (FRAME_GROWS_DOWNWARD): Likewise.
14189         * config/alpha/unicosmk.h (FRAME_GROWS_DOWNWARD): Define to 1.
14190         * config/cris/cris.h (FRAME_GROWS_DOWNWARD): Likewise.
14191         * config/m68k/m68k.h (FRAME_GROWS_DOWNWARD): Likewise.
14192         * config/mmix/mmix.h (FRAME_GROWS_DOWNWARD): Likewise.
14194 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
14196         PR tree-optimization/22026
14197         * tree-vrp.c (extract_range_from_binary_expr): Drop to
14198         VR_VARYING if a binary expression involving VR_ANTI_RANGE is
14199         PLUS_EXPR, MINUS_EXPR, or unsigned MULT_EXPR.
14201 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
14203         * Makefile.in (OBJS-common): Remove duplicate object file
14204         names.
14206 2005-06-25  Jan Hubicka  <jh@suse.cz>
14208         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update profile.
14209         * cfg.c (update_bb_profile_for_threading): Fix rescaling.
14211         * passes.c (rest_of_handle_branch_prob): Do not rebuild profiling info
14212         when not neecesary
14213         (rest_of_compilation): Fix conditional on branch prob pass.
14214         * predict.c (tree_estimate_probability): Enable strip_builtin_expect
14215         when not loop optimizing.
14217 2005-06-25  Bernd Schmidt  <bernd.schmidt@analog.com>
14219         * config/bfin/bfin.md (ror_one, rol_one, ashrdi3, ashldi3, lshrdi3):
14220         New patterns.
14221         (movbi): Add alternative to set CC to zero.
14222         (compare_eq, compare_ne, compare_le, compare_lt, compare_leu,
14223         compare_ltu): Now named patterns.
14225 2005-06-25  Kelley Cook  <kcook@gcc.gnu.org>
14227         * all files: Update FSF address in copyright headers.
14229 2005-06-25  Kelley Cook  <kcook@gcc.gnu.org>
14231         * gengtype.c: Update FSF address in copyright header.
14232         (create_file): Update FSF in outputed copyright header.
14234 2005-06-24  Kazu Hirata  <kazu@codesourcery.com>
14236         * cfglayout.c (block_locators_locs, line_locators_locs,
14237         line_locators_lines, file_locators_locs): Change the type to
14238         VEC(int,heap)*.
14239         (insn_locators_initialize, change_scope, insn_scope,
14240         locator_line, insn_line, locator_file): Use VEC instead of
14241         VARRAY.
14243 2005-06-24  Jason Merrill  <jason@redhat.com>
14245         * tree-nrv.c (tree_nrv): Fix to check assignments to the
14246         RESULT_DECL rather than just RETURN_EXPRs.
14247         (finalize_nrv_r): Adjust.
14249 2005-06-24  Jan Hubicka  <jh@suse.cz>
14251         * tree-optimize.c (init_tree_optimization_passes): Fix flags of
14252         all_passes and all_ipa_passes.
14254         * c-common.c: Include cgraph.h
14255         (handle_externally_visible_attribute): New function.
14256         (c_common_att): Add "externally_visible" attribute.
14257         * cgraph.c (decide_is_variable_needed): Obey externally
14258         visible flag.
14259         (cgraph_varpool_finalize_decl): Avoid redundant checking.
14260         * cgraph.h (struct cgraph_node): New flag externally_visible.
14261         (decide_is_function_needed): Obey externally visible flag.
14262         (cgraph_finalize_function): Avoid redundant checks.
14263         (cgraph_function_and_variable_visibility): Bring symbols local
14264         when asked for.
14265         * common.opt (fwhole-program): New flag.
14267         * doc/invoke.texi (-fwhole-program): Document.
14269 2005-06-24  Mark Mitchell  <mark@codesourcery.com>
14271         PR 22171
14272         * tree-ssa-operands.c (get_expr_operands): Check s_ann for NULL
14273         before use.
14275 2005-06-23  Mark Mitchell  <mark@codesourcery.com>
14277         PR 22000
14278         * tree-ssa-operands.c (get_expr_operands): Check the volatility of
14279         the FIELD_DECL and set s_ann->has_volatile_ops accordingly.
14281 2005-06-24  Jan Hubicka  <jh@suse.cz>
14283         * opts.c (decode_options): Enable unit-at-a-time by default at -O1.
14285 2005-06-23  Jeff Law  <law@redhat.com>
14287         * tree-optimize.c (init_tree_optimization_passes): Move
14288         copy prop pass to run just before VRP.
14289         * tree-vrp.c (remove_range_assertions): Remove copies created
14290         by ASSERT_EXPR removal.
14292 2005-06-23  Kazu Hirata  <kazu@codesourcery.com>
14294         PR tree-optimization/22117
14295         * tree-vrp.c (extract_range_from_binary_expr): Compute a
14296         correct range when adding two pointers.
14298 2005-06-23  Jason Merrill  <jason@redhat.com>
14300         PR c++/19317
14301         Leave the return slot target in the MODIFY_EXPR rather than making
14302         it an argument, but only use it if the CALL_EXPR has a flag set.
14303         * tree.h (CALL_EXPR_HAS_RETURN_SLOT_ADDR): Rename to
14304         CALL_EXPR_RETURN_SLOT_OPT.
14305         * calls.c (expand_call): Adjust.
14306         * tree-inline.c (expand_call_inline): Adjust.
14307         * tree-pretty-print.c (dump_generic_node): Adjust.
14309         And set the flag as appropriate.
14310         * gimplify.c (gimplify_modify_expr_rhs): Set
14311         CALL_EXPR_HAS_RETURN_SLOT_ADDR where the LHS is obviously safe.
14312         * tree-nrv.c (execute_return_slot_opt): Set
14313         CALL_EXPR_HAS_RETURN_SLOT_ADDR based on escape analysis.
14314         * tree-pass.h: Declare pass_return_slot.
14315         * tree-optimize.c (init_tree_optimization_passes): Add it.
14316         
14317 2005-06-23  David Edelsohn  <edelsohn@gnu.org>
14319         PR target/21760
14320         * config/rs6000/rs6000.h (PPC405_ERRATUM77): New.
14321         * config/rs6000/rs6000.md: Move atomic instructions to ...
14322         * config/rs6000/sync.md: Here.
14323         Change sync_compare_and_swap<mode> to define_expand.  All stwcx
14324         patterns test PPC405_ERRATUM77.
14326 2005-06-23  Jan Hubicka  <jh@suse.cz>
14327         
14328         * tree-inline.c (copy_body_r): Remap labels correctly.
14330 2005-06-22  Alan Modra  <amodra@bigpond.net.au>
14332         * config/rs6000/sysv4.h (TARGET_ASM_EXCEPTION_SECTION): Delete.
14334 2005-06-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14336         PR middle-end/20593
14337         * varasm.c (compute_reloc_for_constant): Treat VIEW_CONVER_EXPR
14338         the same as the other cast operands.
14339         (output_addressed_constants): Likewise.
14341 2005-06-21  Jeff Law  <law@redhat.com>
14343         * tree-vrp.c (extract_range_from_unary_expr): Handle type
14344         conversions better.
14346 2005-06-21  Dorit Nuzman  <dorit@il.ibm.com>
14348         * genopinit.c (vec_shl_optab, vec_shr_optab): Initialize new optabs.
14349         (reduc_plus_optab): Removed.  Replcaed with...
14350         (reduc_splus_optab, reduc_uplus_optab): Initialize new optabs.
14351         * optabs.c (optab_for_tree_code): Return reduc_splus_optab or
14352         reduc_uplus_optab instead of reduc_plus_optab.
14353         (expand_vec_shift_expr): New function.
14354         (init_optabs): Initialize new optabs. Remove initialization of
14355         reduc_plus_optab.
14356         (optab_for_tree_code): Return vec_shl_optab/vec_shr_optab
14357         for VEC_LSHIFT_EXPR/VEC_RSHIFT_EXPR.
14358         * optabs.h (OTI_reduc_plus): Removed. Replaced with...
14359         (OTI_reduc_splus, OTI_reduc_uplus): New.
14360         (reduc_plus_optab): Removed.  Replcaed with...
14361         (reduc_splus_optab, reduc_uplus_optab): New optabs.
14362         (vec_shl_optab, vec_shr_optab): New optabs.
14363         (expand_vec_shift_expr): New function declaration.
14365         * tree.def (VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR): New tree-codes.
14366         * tree-inline.c (estimate_num_insns_1): Handle new tree-codes.
14367         * expr.c (expand_expr_real_1): Handle new tree-codes.
14368         * tree-pretty-print.c (dump_generic_node, op_symbol, op_prio): Likewise.
14369         * tree-vect-generic.c (expand_vector_operations_1): Add assert.
14371         * tree-vect-transform.c (vect_create_epilog_for_reduction): Add two
14372         alternatives for generating reduction epilog code.
14373         (vectorizable_reduction): Don't fail of direct reduction support is
14374         not available.
14375         (vectorizable_target_reduction_pattern): Likewise.
14377         * config/rs6000/altivec.md (reduc_smax_v4si, reduc_smax_v4sf,
14378         reduc_umax_v4si, reduc_smin_v4si, reduc_smin_v4sf, reduc_umin_v4si,
14379         reduc_plus_v4si, reduc_plus_v4sf): Removed.
14380         (vec_shl_<mode>, vec_shr_<mode>, altivec_vsumsws_nomode,
14381         reduc_splus_<mode>, reduc_uplus_v16qi): New.
14383 2005-06-20  Daniel Berlin  <dberlin@dberlin.org>
14385         * c-typeck.c (build_function_call): Set fundecl = function again.
14386         * tree-ssa-alias.c (find_used_portions): Address taking causes the
14387         entire variable to be used.
14388         * tree-ssa-structalias.c (do_structure_copy): Fix handling of
14389         unknown size variables, and structure copies from addressof
14390         operations.  Simplify how we do *a = *b type structure copies.
14391         (init_base_vars): Add ANYTHING = &ANYTHING constraint the right
14392         way.  READONLY's address is not taken by default.
14393         INTEGER dereference should point to anything.
14394         (create_variable_info_for): It's okay for the first field to not start
14395         at 0.
14397 2005-06-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14399         config/sh/linux.h (FUNCTION_PROFILER): Constify a char*.
14401 2005-06-20  Roger Sayle  <roger@eyesopen.com>
14402             Fariborz Jahanian <fjahanian@apple.com>
14404         * combine.c (simplify_set): Simplify setting of CC register
14405         by removing redundant compare with 0 on RHS.
14407 2005-06-20  Jan Beulich  <jbeulich@novell.com>
14409         * config/i386/netware-libgcc.def: Update copyright.
14410         * config/i386/netware-libgcc.exp (__divdc3, __divsc3, __divxc3,
14411         __muldc3, __mulsc3, __mulxc3, __powidf2, __powisf2, __powixf2): Add.
14412         * config/i386/netware.c (gen_stdcall_decoration,
14413         gen_fastd_decoration): Merge into ...
14414         (gen_stdcall_or_fastcall_decoration): ... this. Adjust to match
14415         WinNT's changes.
14416         (gen_regparm_prefix): Adjust to match i386_nlm_encode_section_info.
14417         (i386_nlm_encode_section_info): Adjust to match WinNT's changes.
14418         * config/i386/t-nwld (SHLIB_LINK): Also create libgcc.imp alias of
14419         libgcc_s.imp. Use 'expr' rather than $(()) shell expressions.
14420         * gthr-nks.h (__gthread_objc_mutex_allocate): Kill another dubious
14421         use of NX_MUTEX_RECURSIVE.
14423 2005-06-19  Roger Sayle  <roger@eyesopen.com>
14425         * fold-const.c (swap_tree_comparison): Add support for unordered
14426         floating point comparisons.
14427         * tree-vrp.c (opposite_comparison): Delete.
14428         (extract_range_from_assert): Replace calls to opposite_comparison
14429         with calls to swap_tree_comparison.
14430         (register_edge_assert_for): Likewise.
14431         (vrp_evaluate_conditional): Likewise.
14433 2005-06-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14435         * integrate.c (allocate_initial_values): Update the references
14436         to global_live_at_start and global_live_at_end.
14438 2005-06-20  Jan Hubicka  <jh@suse.cz>
14440         * cfgloop.h (DLTHE_RECORD_COPY_NUMBER): New flag.
14441         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set aux flags only
14442         when asked for.
14443         * loop-unroll.c (peel_loop_completely, unroll_loop_constant_iterations,
14444         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
14445         Update call of duplicate_loop_to_header_edge.
14446         (apply_opt_in_copies): Clear out aux pointers.
14448 2005-06-19  Joseph S. Myers  <joseph@codesourcery.com>
14450         * config/i386/i386.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
14451         (ix86_mangle_fundamental_type): New.
14452         * config/ia64/ia64.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
14453         (ia64_mangle_fundamental_type): New.
14455 2005-06-19  Roger Sayle  <roger@eyesopen.com>
14457         * c-decl.c (grokdeclarator): Only check TREE_OVERFLOW on
14458         INTEGER_CST nodes.
14459         * c-typeck.c (build_c_cast): Only preserve TREE_OVERFLOW on
14460         CONSTANT_CLASS_P nodes.
14462 2005-06-19  Richard Henderson  <rth@redhat.com>
14464         * config/ia64/vect.md (vec_extractv2sf_1): Fix cut-and-paste error;
14465         the shift is always required.
14467 2005-06-19  Richard Henderson  <rth@redhat.com>
14469         * config/ia64/ia64-modes.def (V4SF): Add.
14470         * config/ia64/ia64.c (ia64_legitimate_constant_p): Handle CONST_VECTOR.
14471         * config/ia64/ia64.h (CANNOT_CHANGE_MODE_CLASS): Allow vector to 
14472         integer mode changes in fp regs.
14473         * config/ia64/ia64.md (UNSPEC_VECT_EXTR): New.
14474         * config/ia64/vect.md (smaxv2sf3, sminv2sf3): Fix typos in names.
14475         (reduc_plus_v2sf, reduc_smax_v2sf, reduc_smin_v2sf): New.
14476         (vcondv2sf): Use gen_fpack
14477         (fpack): Remove * from name.
14478         (fswap, fmix_l, fmix_r, fmix_lr): New.
14479         (vec_setv2sf, vec_extractv2sf_0_le, vec_extractv2sf_0_be): New.
14480         (vec_extractv2sf_1, vec_extractv2sf): New.
14482 2005-06-19  Andreas Krebbel  <krebbel1@de.ibm.com>
14484         * combine.c (make_compound_operation): Use simplify_subreg.  Delete
14485         a optimization already done by simplify_subreg.
14487 2005-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
14489         * loop.c (scan_loop): Do not consider insns setting the frame
14490         pointer to be candidates for hoisting.
14492 2005-06-19  Uros Bizjak  <uros@kss-loka.si>
14494         * config/i386/i386.md (*cmpfp_0_sf, *cmpfp_0_df, cmpfp_0_xf):
14495         Remove instruction patterns.
14496         (*cmpfp_0): New instruction pattern. Set "unit" attribute to "i387".
14497         (*cmpfp_sf, *cmpfp_df, *cmpfp_xf, *cmpfp_u, *_cmpfp_<mode>):
14498         Set "unit" attribute to "i387".
14499         (*pushsf, *pushsf_rex64, *pushdf_nointeger, *pushdf_integer)
14500         (*pushxf_nointeger, *pushxf_integer): Set "unit" attribute to "i387"
14501         for alternative 0.
14502         (*truncdfsf_mixed, *truncdfsf_i387, *truncxfsf2_mixed)
14503         (*truncxfsf2_i387, *truncxfdf2_mixed, *truncxfdf2_i387): Set "unit"
14504         attribute to "i387" when "type" attribute equals "multi".
14505         (*floathisf2_i387, *floatsisf2_mixed, *floatsisf2_i387)
14506         (*floatdisf2_mixed, *floatdisf2_i387, *floathidf2_i387)
14507         (*floatsidf2_mixed, *floatsidf2_i387, *floatdidf2_mixed)
14508         (*floatdidf2_i387, floathixf2, floatsixf2, floatdixf2): Set "unit"
14509         attribute to "i387" when "type" attribute equals "multi".
14510         * config/i386/mmx.md (*mov<mode>_internal_rex64)
14511         (*mov<mode>_internal, *movv2sf_internal_rex64, *movv2sf_internal):
14512         Set "unit" attribute to "mmx" when "type" attribute equals "ssecvt".
14513         (mmx_pmovmskb): Correct wrong "type" and "mode" attributes.
14514         * config/i386/sse.md (sse_cvtps2pi, sse_cvttps2pi, sse_cvtpd2di)
14515         (sse_cvttpd2pi): Set "unit" attribute to "mmx".
14516         (sse2_cvtpi2pd): Split register constraints. Set "unit" attribute
14517         to "mmx" for "y" operand 1.
14519 2005-06-19  Uros Bizjak  <uros@kss-loka.si>
14521         * config/i386/i386.c (ix86_function_arg_regno_p): Add MMX_REGNO_P
14522         for TARGET_MMX.  Use MMX_REGPARM_MAX and SSE_REGPARM_MAX for MMX
14523         and SSE registers to determine if regno is valid.
14524         (ix86_function_value_regno_p): Depend FIRST_FLOAT_REG on
14525         TARGET_FLOAT_RETURNS_IN_80387 also for TARGET_64BIT. Clean up.
14527 2005-06-18  Richard Henderson  <rth@redhat.com>
14529         * tree-complex.c (init_dont_simulate_again): Clear DONT_SIMULATE_AGAIN
14530         for control-altering statements; set it again for returns.
14531         (complex_visit_stmt): Return SSA_PROP_VARYING for stmts that are
14532         not MODIFY_EXPR.
14534 2005-06-18  Richard Henderson  <rth@redhat.com>
14536         PR tree-opt/22116
14537         * tree-ssa-pre.c (create_expression_by_pieces): Set
14538         DECL_COMPLEX_GIMPLE_REG_P.
14539         (insert_into_preds_of_block): Likewise.
14541 2005-06-18  Steven Bosscher  <stevenb@suse.de>
14543         * Makefile.in: Fix tree-cfgcleanup.c dependencies.
14545 2005-06-18  Richard Henderson  <rth@redhat.com>
14547         * expr.c (store_constructor): Use store of 0 to indicate value
14548         death instead of a clobber.
14550         * config/i386/i386.c (ix86_expand_reduc_v4sf): New.
14551         * config/i386/i386-protos.h (ix86_expand_reduc_v4sf): Declare.
14552         * config/i386/sse.md (reduc_plus_v4sf): New.
14553         (reduc_smax_v4sf, reduc_smin_v4sf): New.
14555 2005-06-18  James A. Morrison  <phython@gcc.gnu.org>
14557         * fold_const (fold_binary): Fold X % (2**N) to X & (2**N - 1) for
14558         nonnegative values of X.
14560 2005-06-18  Uros Bizjak  <uros@kss-loka.si>
14562         * doc/md.texi (Standard Names): Change insn pattern name
14563         from truncM2 to btruncM2 for 'trunc' built-in description.
14564         Add rintM2 insn pattern description.
14566 2005-06-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14568         * c-decl.c (locate_old_decl): Add format attribute.
14569         (implicit_decl_warning): Likewise.
14571         * diagnostic.h (verbatim): Move ...
14572         * toplev.h (verbatim): ... here.  Add ATTRIBUTE_GCC_DIAG.
14573         * pretty-print.h (pp_verbatim): Add ATTRIBUTE_GCC_PPDIAG.
14575 2005-06-18  Roger Sayle  <roger@eyesopen.com>
14577         PR target/22083
14578         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Remove definition.
14580 2005-06-18  Dorit Nuzman  <dorit@il.ibm.com>
14582         * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): New
14583         tree-codes.
14584         * optabs.h (OTI_reduc_smax, OTI_reduc_umax, OTI_reduc_smin,
14585         OTI_reduc_umin, OTI_reduc_plus): New optabs for reduction. 
14586         (reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
14587         reduc_plus_optab): New optabs for reduction.
14588         * expr.c (expand_expr_real_1): Handle new tree-codes.
14589         * tree-inline.c (estimate_num_insns_1): Handle new tree-codes.
14590         * tree-pretty-print.c (dump_generic_node, op_prio, op_symbol): Handle
14591         new tree-codes.
14592         * optabs.c (optab_for_tree_code): Handle new tree-codes.
14593         (init_optabs): Initialize new optabs.
14594         * genopinit.c (optabs): Define handlers for new optabs. 
14596         * tree-vect-analyze.c (vect_analyze_operations): Fail vectorization in
14597         case of a phi that is marked as relevant. Call vectorizable_reduction.
14598         (vect_mark_relevant): Phis may be marked as relevant.
14599         (vect_mark_stmts_to_be_vectorized): The use corresponding to the 
14600         reduction variable in a reduction stmt does not mark its defining phi
14601         as relevant. Update documentation accordingly.
14602         (vect_can_advance_ivs_p): Skip reduction phis.
14603         * tree-vect-transform.c (vect_get_vec_def_for_operand): Takes
14604         additional argument. Handle reduction.
14605         (vect_create_destination_var): Update call to vect_get_new_vect_var.
14606         Handle non-vector argument.
14607         (get_initial_def_for_reduction): New function.
14608         (vect_create_epilog_for_reduction): New function. 
14609         (vectorizable_reduction): New function.
14610         (vect_get_new_vect_var): Handle new vect_var_kind.       
14611         (vectorizable_assignment, vectorizable_operation, vectorizable_store,
14612         vectorizable_condition): Update call to vect_get_new_vect_var.
14613         (vect_transform_stmt): Call vectorizable_reduction.
14614         (vect_update_ivs_after_vectorizer): Skip reduction phis.
14615         (vect_transform_loop): Skip if stmt is both not relevant and not live.
14616         * tree-vectorizer.c (reduction_code_for_scalar_code): New function.
14617         (vect_is_simple_reduction): Was empty - added implementation.
14618         * tree-vectorizer.h (vect_scalar_var): New enum vect_var_kind value.
14619         (reduc_vec_info_type): New enum vect_def_type value.
14620         * config/rs6000/altivec.md (reduc_smax_v4si, reduc_smax_v4sf,
14621         reduc_umax_v4si, reduc_smin_v4si, reduc_umin_v4sf, reduc_smin_v4sf,
14622         reduc_plus_v4si, reduc_plus_v4sf): New define_expands.
14624         * tree-vect-analyze.c (vect_determine_vectorization_factor): Remove
14625         ENABLE_CHECKING around gcc_assert.
14626         * tree-vect-transform.c (vect_do_peeling_for_loop_bound,
14627         (vect_do_peeling_for_alignment, vect_transform_loop, 
14628         vect_get_vec_def_for_operand): Likewise.
14630 2005-06-18  Joseph S. Myers  <joseph@codesourcery.com>
14632         * config/ia64/ia64.c (ia64_function_arg): Set up a PARALLEL for a
14633         big-endian unnamed __float80 value.
14635 2005-06-18  Richard Henderson  <rth@redhat.com>
14637         PR tree-opt/22103
14638         * tree-sra.c (generate_copy_inout): Handle SSA_NAME complex
14639         destinations.
14641 2005-06-17  Richard Henderson  <rth@redhat.com>
14643         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Use
14644         initialize_original_copy_tables and free_original_copy_tables.
14645         (vect_do_peeling_for_alignment): Likewise.
14647 2005-06-17  Pat Haugen  <pthaugen@us.ibm.com>
14649         * bb-reorder.c (find_traces_1_round): Use succ block frequency
14650         instead of edge frequency for calls to better_edge_p.
14652 2005-06-17  Andrew Pinski  <pinskia@physics.uc.edu>
14654         PR tree-opt/22105
14655         * tree-ssa-loop-im.c (for_each_index): Handle COMPLEX_CST.
14657 2005-06-17  Steve Ellcey  <sje@cup.hp.com>
14659         PR target/19889
14660         * config/ia64/hpux.h (FUNCTION_PROFILER): New (dummy).
14661         (PROFILE_HOOK): New.
14662         (PROFILE_BEFORE_PROLOGUE): Undef.
14663         (NO_PROFILE_COUNTERS): New.
14664         * config/ia64/ia64-protos.h (ia64_profile_hook): New.
14665         * config/ia64/ia64.c (ia64_compute_frame_size): Add ifdef.
14666         (gen_mcount_func_rtx): New.
14667         (ia64_profile_hook): New.
14668         * config/ia64/ia64.md (ip_value): New.
14670 2005-06-17  Devang Patel  <dpatel@apple.com>
14672         * config/rs6000/predicates.md (s5bit_cint_operand,
14673         u5bit_cint_operand): New.
14674         * config/rs6000/altivec.md (altivec_vspltb, altivec_vsplth,
14675         altivec_vspltisw_v4sf): Use new 5 bit constant operand predicates.
14676         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Fix signed
14677         5 bit constant check.
14678         
14679 2005-06-17  Richard Henderson  <rth@redhat.com>
14681         * local-alloc.c (update_equiv_regs): Update reg_equiv_init
14682         properly when moving an initialization insn.
14684 2005-06-17  Paolo Bonzini  <bonzini@gnu.org>
14686         * aclocal.m4 (gcc_AC_CHECK_TOOL): Do not overwrite the
14687         passed variable.
14688         * configure.ac: Regenerate.
14690 2005-06-17  Jan Hubicka  <jh@suse.cz>
14692         * tree-optimize.c (execute_ipa_pass_list): New.
14693         (ipa_passes): Use it.
14695 2005-06-16  Richard Henderson  <rth@redhat.com>
14697         PR tree-opt/22022
14698         * tree-complex.c (update_phi_components): Avoid no-op moves.
14700 2005-06-16  Joseph S. Myers  <joseph@codesourcery.com>
14702         * Makefile.in (cc1-checksum.c): Use
14703         build/genchecksum$(build_exeext), not build/genchecksum$(exeext).
14705 2005-06-16  Geoffrey Keating  <geoffk@apple.com>
14707         * gengtype.c (adjust_field_rtx_def): Don't add a skip to
14708         basic_block types.
14710         * config/t-slibgcc-darwin (SHLIB_SOVERSION): Rename from
14711         SHLIB_MINOR.
14712         (SHLIB_REVISION): Delete.
14713         (SHLIB_VERSTRING): Update to compensate.
14714         (SHLIB_SONAME): Just use one '.' in the name.
14716 2005-06-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
14718         PR tree-optimization/22018
14719         * tree-vrp.c (vrp_int_const_binop): Overhaul handling of overflow.
14721 2005-06-16  Richard Henderson  <rth@redhat.com>
14723         PR tree-opt/22035
14724         * builtins.c (fold_builtin_complex_mul): Remove.
14725         (fold_builtin_complex_div): Remove.
14726         (fold_builtin_1): Don't call them.
14727         * fold-const.c (fold_complex_add, fold_complex_mult_parts,
14728         fold_complex_mult, fold_complex_div_parts, fold_complex_div): Remove.
14729         (fold_binary): Don't call them.  Don't expand complex comparisons to
14730         elementary comparisons.
14731         * tree-complex.c (init_dont_simulate_again): Enhance search for 
14732         stmts that require decomposition.
14733         (complex_visit_stmt): Handle RETURN_EXPR properly.
14734         (create_components): Handle no referenced variables properly.
14735         * tree.h (fold_complex_mult_parts): Remove.
14736         (fold_complex_div_parts): Remove.
14738 2005-06-16  Richard Guenther  <rguenth@gcc.gnu.org>
14740         * doc/extend.texi: Document sseregparm target attribute.
14741         Clarify fastcall and regparm documentation.
14742         * config/i386/i386.h: Adjust float_in_sse documentation.
14743         * config/i386/i386.c: Add new target attribute sseregparm.
14744         (ix86_handle_cdecl_attribute, ix86_handle_regparm_attribute):
14745         Merge into ...
14746         (ix86_handle_cconv_attribute): ... here.  Also handle
14747         sseregparm attribute.
14748         (ix86_comp_type_attributes): Compare sseregparm attributes.
14749         (ix86_function_sseregparm): New function, split out from ...
14750         (init_cumulative_args): ... here.  Use to decide use
14751         of SSE registers and error in case of missing support.
14752         (ix86_value_regno): Likewise.
14753         (function_arg_advance): Do not bail out for DFmode if we need
14754         to pass doubles in registers.
14755         (function_arg): Likewise.
14757 2005-06-16  Paolo Bonzini  <bonzini@gnu.org>
14758             Daniel Jacobowitz  <dan@codesourcery.com>
14759             Alan Modra <amodra.bigpond.net.au>
14761         * configure.ac (gcc_version): Set near the beginning.
14762         (as, ld, nm): Do not link in-tree tools.  Set gcc_cv_* if tools are
14763         found in the tree.  Use gcc_AC_PROG to find the tools in the system.
14764         (objdump): Do not look for it.
14765         * Makefile.in (NM_FOR_TARGET): Point to ./nm
14766         (ORIGINAL_AS_FOR_TARGET, ORIGINAL_LD_FOR_TARGET,
14767         ORIGINAL_NM_FOR_TARGET): Substitute from autoconf.
14768         (as, ld, nm): New rules.
14769         (libgcc.mk): Depend on them.
14770         * aclocal.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL,
14771         gcc_AC_BUILD_EXEEXT): New.
14772         (gcc_AC_CHECK_PROG_VER): Use gcc_AC_BUILD_EXEEXT.
14773         * configure: Regenerate.
14775 2005-06-16  Jan Hubicka  <jh@suse.cz>
14777         * basic-block.h (rtl_bb_info): Break out head_, end_,
14778         global_live_at_start, global_live_at_end from ...
14779         (basic_block_def): ... here; update all references
14780         (BB_RTL): New flag.
14781         (init_rtl_bb_info): Declare.
14782         * cfgexpand.c (expand_gimple_basic_block): Init bb info, set BB_RTL
14783         flag.
14784         * cfgrtl.c: Include ggc.h
14785         (create_basic_block_structure): Init bb info.
14786         (rtl_verify_flow_info_1): Check BB_RTL flag and rtl_bb_info pointer.
14787         (init_rtl_bb_info): New function.
14788         (rtl_merge_block, cfglayout_merge_block): Copy global_live_at_end here.
14789         * cfghooks.c (merge_block): Do not copy global_live_at_end here.
14790         * cfg.c (clear_bb_flags): Skip BB_RTL flag.
14791         (dump_flow_info): Gueard global_live_* dumping.
14793         * Makefile.in (cfg.o): Add new dependencies.
14794         * basic-block.h (reorder_block_def): Kill
14795         original/copy/duplicated/copy_number fields.
14796         (BB_DUPLICATED): New flag.
14797         (initialize_original_copy_tables, free_original_copy_tables,
14798         set_bb_original, get_bb_original, set_bb_copy, get_bb_copy): New.
14799         * cfg.c: Include hashtab.h and alloc-pool.h
14800         (bb_original, bb_copy, original_copy_bb_pool): New static vars.
14801         (htab_bb_copy_original_entry): New struct.
14802         (bb_copy_original_hash, bb_copy_original_eq): New static functions.
14803         (initialize_original_copy_tables, free_original_copy_tables,
14804         set_bb_original, get_bb_original, set_bb_copy, get_bb_copy): New
14805         global functions.
14806         * cfghooks.c (duplicate_block): Update original/copy handling.
14807         * cfglayout.c (fixup_reorder_chain): Likewise.
14808         (cfg_layout_initialize): Initialize orignal_copy tables.
14809         (cfg_layout_finalize): FInalize original_copy tables.
14810         (can_copy_bbs_p): Use BB_DUPLICATED flag.
14811         (copy_bbs): Likewise.
14812         * cfgloopmanip.c (update-single_exits_after_duplication): Likewise.
14813         (duplicate_loop_to_header_edge): Likewise; update handling of
14814         copy_number.
14815         (loop_version): Likewise.
14816         * dominance.c (get_dominated_by_region): Use BB_DUPLICATED_FLAG.
14817         * except.c (expand_resx_expr): Check that reg->resume is not set.
14818         * loop-unroll.c (unroll_loop_constant_iterations,
14819         unroll_loop_runtime_iterations, apply_opt_in_copies): Update
14820         copy/original handling.
14821         * loop-unwitch.c (unswitch_loop): Likewise.
14822         * tree-cfg.c (create_bb): Do not initialize RBI.
14823         (disband_implicit_edges): Do not kill RBI.
14824         (add_phi_args_after_copy_bb): Use new original/copy mapping.
14825         (add_phi_args_after_copy): Use BB_DUPLICATED flag.
14826         (tree_duplicate_sese_region): Update original/copy handling.
14827         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
14828         * tree-ssa-loop-manip.c (copy_phi_node_args): Likewise.
14829         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
14831 2005-06-15  Andrew Pinski  <pinskia@physics.uc.edu>
14833         PR tree-opt/21923
14834         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Conversions between
14835         integer types whos ranges are different are not useless.
14837 2005-06-15  Andrew Pinski  <pinskia@physics.uc.edu>
14839         PR tree-opt/22024
14840         * tree-ssa-reassoc.c (init_reassoc): Also give chain decl a distint
14841         rank.
14843 2005-06-15  Diego Novillo  <dnovillo@redhat.com>
14845         * tree-ssa-structalias.c (dump_solution_for_var): Reformat
14846         output.
14847         (dump_sa_points_to_info): Make extern.
14848         (debug_sa_points_to_info): New.
14849         * tree-ssa-structalias.h (TREE_SSA_STRUCTALIAS_H): Rename from
14850         TREE_ALIAS_COMMON.
14851         (dump_sa_points_to_info): Declare.
14852         (debug_sa_points_to_info): Declare.
14854 2005-06-15  Joseph S. Myers  <joseph@codesourcery.com>
14856         * c-tree.h (default_function_array_conversion): Declare.
14857         * c-typeck.c (default_function_array_conversion): Export.  Correct
14858         comment.
14859         (default_conversion): Do not call
14860         default_function_array_conversion.  Do not allow FUNCTION_TYPE.
14861         (build_function_call): Call default_function_array_conversion on
14862         the function.
14863         (convert_arguments): Do not call it on the function arguments.
14864         (build_unary_op): Do not allow ARRAY_TYPE or FUNCTION_TYPE for
14865         TRUTH_NOT_EXPR.  Call default_function_array_conversion for taking
14866         address of ARRAY_REF.
14867         (build_compound_expr): Do not call
14868         default_function_array_conversion.
14869         (build_c_cast): Do not call default_function_array_conversion.
14870         (convert_for_assignment): Do not call default_conversion.
14871         (digest_init): Call default_function_array_conversion to convert
14872         string constants and compound literals to pointers, but not
14873         otherwise.
14874         (output_init_element): Likewise.
14875         (build_asm_expr): Do not call default_function_array_conversion.
14876         (c_process_expr_stmt): Likewise.
14877         (c_objc_common_truthvalue_conversion): Likewise.  Do not allow
14878         FUNCTION_TYPE.
14879         * c-parser.c (c_parser_expression_conv): New.
14880         (c_parser_asm_operands, c_parser_expr_list): Add convert_p
14881         argument.  All callers changed.  Call
14882         default_function_array_conversion if convert_p.
14883         (c_parser_initializer, c_parser_initval): Call
14884         default_function_array_conversion except for string constants and
14885         compound literals.
14886         (c_parser_initelt): Call default_function_array_conversion for
14887         ObjC expression received.
14888         (c_parser_statement_after_labels): Call c_parser_expression_conv
14889         for return and expression statements.
14890         (c_parser_paren_condition, c_parser_for_statement,
14891         c_parser_conditional_expression): Call c_parser_expression_conv.
14892         (c_parser_expr_no_commas, c_parser_conditional_expression,
14893         c_parser_binary_expression, c_parser_cast_expression,
14894         c_parser_unary_expression): Call
14895         default_function_array_conversion.
14897 2005-06-15  Diego Novillo  <dnovillo@redhat.com>
14899         * tree-vrp.c (vrp_int_const_binop): Do not handle MAX_EXPR
14900         when the result overflows.
14902 2005-06-15  David Ung  <davidu@mips.com>
14904         * config/mips/mips.c (mips_rtx_cost_data): Add cost for 4kc, 4kp,
14905         24k and 24kx.
14906         
14907 2005-06-15  Richard Sandiford  <richard@codesourcery.com>
14909         * doc/invoke.texi (-mips16): Fix typo.
14911 2005-06-15  David Ung  <davidu@mips.com>
14913         * config/mips/mips.h (GENERATE_MIPS16E): New definition.
14914         * config/mips/mips.md (zero_extend<SHORT:mode><GPR:mode>2):
14915         Changed expand condition to exclude generating of "and" if
14916         GENERATE_MIPS16E is true.
14917         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): New pattern for
14918         matching mips16e zeb/zeh.
14919         (*extend<SHORT:mode><GPR:mode>2_mips16e): New pattern for matching
14920         mips16e seb/seh. 
14921         (*extend<SHORT:mode><GPR:mode>2): Disable this pattern for
14922         GENERATE_MIPS16E. 
14923         * doc/invoke.texi (MIPS Options): Add comment to -mips16
14924         indicating MIPS16e ASE is used if targetting for MIPS32 or MIPS64.
14925         
14926 2005-06-15  Diego Novillo  <dnovillo@redhat.com>
14928         PR 22018
14929         * tree-vrp.c (vrp_int_const_binop): New.
14930         (extract_range_from_binary_expr): Call it.
14931         Unify handling division and multiplication.
14933 2005-06-15  Aldy Hernandez  <aldyh@redhat.com>
14935         * c-common.h (same_scalar_type_ignoring_signedness): Protoize.
14937         * c-common.c (same_scalar_type_ignoring_signedness): New.
14939         * c-typeck.c (build_binary_op): Check compatability of vector
14940         types.  Move error report after switch.
14941         Do not clobber code[01] on *_DIV_EXPR case.
14943         * testsuite/gcc.dg/simd-1.c: Update error messages.
14944         * testsuite/gcc.dg/simd-1b.c: Re-enable tests.  Update error
14945         messages.
14946         * testsuite/gcc.dg/simd-2.c: Update error messages.
14947         * testsuite/gcc.dg/simd-4.c: New.
14949 2005-06-15  Bernd Schmidt  <bernd.schmidt@analog.com>
14951         * Makefile.in (local-alloc.o): Depend on $(GGC_H) and reload.h.
14952         * local-alloc.c: Include "ggc.h" and "reload.h".
14953         (struct equivalence): New member is_arg_equivalence.
14954         (local_alloc): Always call update_equiv_regs.
14955         (update_equiv_regs): Allocate reg_equiv_init; set reg_equiv_init_size.
14956         Detect equivalences made by stores to memory in a second pass.
14957         Return early if not optimizing.
14958         Initialize reg_equiv_init for all equivalences; treat equivalences for
14959         REG_EQUIV notes existing before this pass specially.
14960         (no_equiv): Don't clear reg_equiv_init or remove notes if the
14961         is_arg_equivalence field is set.
14962         * reload.h (reg_equiv_init, reg_equiv_init_size): Declare.
14963         * reload1.c (reg_equiv_init): No longer static.
14964         (reg_equiv_init_size): New variable.
14965         (reload): Don't allocate reg_equiv_init; don't free it when done but
14966         clear it.
14967         Restructure equivalence set up code not to set reg_equiv_init, but to
14968         clear it when we can't use an equivalence.
14969         Undo change disabling equivalences for MEM_READONLY_P memrefs.
14970         Dump equivalencing insns to dump_file.
14972 2005-06-14  Richard Sandiford  <richard@codesourcery.com>
14974         * config/mips/mips.c (machine_function): Add varargs_size field.
14975         (mips_setup_incoming_varargs): Store the amount of extra stack space
14976         there rather than in *pretend_size.  When saving registers, always
14977         expect virtual_incoming_args_rtx to point to the start of the
14978         pretend arguments.
14979         (mips_va_start): Remove alignment hack.  Handle all
14980         !EABI_FLOAT_VARARGS_P cases in the same way.
14981         (compute_frame_size): Handle varargs_size.  Remove the redundant
14982         !TARGET_OLDABI condition in the handling of pretend_args_size.
14983         (mips_initial_elimination_offset): Remove the now-redundant check
14984         of TARGET_NEWABI.
14986 2005-06-14  Jeff Law  <law@redhat.com>
14988         * tree-vrp.c (local_fold): Remove.
14989         (simplify_using_ranges): Use fold_convert, not local_fold.  Tweak
14990         DIV/MOD case slightly for readability.
14992 2005-06-14  Frank Ch. Eigler  <fche@redhat.com>
14994         PR mudflap/21023
14995         * tree-mudflap.c (mudflap_finish_file): Exclude non-public
14996         rather than static objects (!) from libmudflap registration.
14998 2005-06-14  Richard Sandiford  <richard@codesourcery.com>
15000         * opt-functions.awk (global_state_p, needs_state_p, static_var): New.
15001         (var_ref): Take the option's flags as a second parameter.  Check
15002         static_var.
15003         * optc-gen.awk: Declare local state variables.  Pass flags to var_ref.
15005 2005-06-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
15007         PR target/20301
15008         * config/sparc/sol2.h (ASM_GENERATE_INTERNAL_LABEL): Emit
15009         unsigned index numbers.
15011 2005-06-13  Geoffrey Keating  <geoffk@apple.com>
15013         * Makefile.in (install-man): Doesn't really depend on installdirs.
15014         (various rules for installing manpages): Do depend on installdirs.
15016 2005-06-14  Nathan Sidwell  <nathan@codesourcery.com>
15018         * unwind-dw2-fde-darwin.c (examine_objects): Fix aliasing in
15019         read_encoded_value_with_base call.
15020         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
15021         * unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
15022         * unwind-dw2.c (extract_cie_info): Fix aliasing in
15023         read_encoded_value call.
15024         (execute_cfa_program, uw_frame_state_for): Likewise.
15026 2005-06-13  Roger Sayle  <roger@eyesopen.com>
15028         PR rtl-optimization/22053
15029         * reg-stack.c (compensate_edge): Correct mistake in the assertion
15030         checking of EDGE_ABNORMAL_CALL edges; complex return values can
15031         result in the top two stack slots, st(0) and st(1), being live.
15033 2005-06-13  Jeff Law  <law@redhat.com>
15035         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): No longer
15036         simplify DIV, MOD or ABS expressions using VRP information.
15037         Remove WALK_DATA parameter.  Prototype and all callers updated.
15038         (eliminate_redundant_computations): Remove WALK_DATA parameter.
15039         Prototype and all callers updated.
15040         (optimize_stmt): WALK_DATA parameter is now unused.
15042         * tree-vrp.c (local_fold): New function.  Like fold, but
15043         strips useless type conversions in the result.
15044         (simplify_using_ranges): New function, largely cribbed from
15045         tree-ssa-dom.c::simplify_rhs_and_lookup_avail_expr.
15046         (vrp_finalize): Call simplify_using_ranges.
15048 2005-06-13  Mark Mitchell  <mark@codesourcery.com>
15050         * config/i386/x86-64.h (ASM_SPEC): Explicitly pass --64 to the
15051         assembler in 64-bit mode.
15053 2005-06-13  David Edelsohn  <edelsohn@gnu.org>
15055         Revert scc_operand patch.
15056         * config/rs6000/predicates.md (scc_operand): Delete.
15057         * config/rs6000/rs6000.md (scc_operand): Change to scc_eq_operand.
15059 2005-06-13  Zdenek Dvorak  <dvorakz@suse.cz>
15061         PR middle-end/21985
15062         * fold-const.c (split_address_to_core_and_offset): Always return
15063         the address of the base object.
15065 2005-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
15067         * doc/invoke.texi (Blackfin Options): Document -mlong-calls.
15069 2005-06-12  Richard Henderson  <rth@redhat.com>
15071         PR tree-opt/21994
15072         * tree-complex.c (update_complex_components_on_edge): New.
15073         (update_parameter_components): Use it.
15074         (update_phi_components): Likewise.
15075         (expand_complex_move): Likewise for is_ctrl_altering_stmt.
15077 2005-06-12  James A. Morrison  <phython@gcc.gnu.org>
15079         PR tree-optimization/14796
15080         * fold-const (fold_binary): Transform (X << C) >> C into X & (-1>>C)
15081         for unsigned types.
15083 2005-06-12  Kazu Hirata  <kazu@codesourcery.com>
15085         * cgraphunit.c, tree-ssa-loop-ivopts.c,
15086         tree-ssa-structalias.c, tree-vectorizer.c, tree-vectorizer.h,
15087         config/sparc/sparc.c: Fix comment typos.
15089 2005-06-12  Richard Earnshaw  <richard.earnshaw@arm.com>
15091         * arm/ieee754-df.s (aeabi_dcmpeq, aeabi_dcmplt, aeabi_dcmple)
15092         (aeabi_dcmpge, aeabi_dcmpgt): Maintain 8-byte stack alignment.
15093         * arm/ieee754-sf.s (aeabi_l2f, aeabi_fcmpeq, aeabi_fcmplt)
15094         (aeabi_fcmple, aeabi_fcmpge, aeabi_fcmpgt): Likewise.
15096 2005-06-12  James A. Morrison  <phython@gcc.gnu.org>
15098         PR tree-optimization/14796
15099         * fold-const.c (fold_binary): Transform (A >> C) << C into
15100         one BIT_AND_EXPR.
15101         <shift>: Transform (A OP c1) OP c2 into A OP (c1 + c2).
15103 2005-06-11  Geoffrey Keating  <geoffk@apple.com>
15105         * config/rs6000/predicates.md (reg_or_arith_cint_operand): Delete.
15106         (reg_or_add_cint_operand): Rename from reg_or_add_cint64_operand.
15107         Handle SImode.
15108         (reg_or_sub_cint_operand): Likewise.
15109         (mask_operand): Handle DImode.
15110         (mask64_operand): Delete.
15111         (and64_operand): Delete.
15112         * config/rs6000/rs6000.c (num_insns_constant): Use mask_operand
15113         instead of mask64_operand.
15114         (print_operand): Likewise.
15115         (rs6000_rtx_costs): Use mask_operand and reg_or_add_cint_operand and
15116         reg_or_sub_cint_operand instead of *64_* variants.
15117         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Use mask_operand
15118         instead of mask64_operand.
15119         * config/rs6000/rs6000.md: Use mask_operand and and_operand instead
15120         of *64_* variants.
15121         (FP): New.
15122         (add_op2): Delete.
15123         (add<mode>3): Use reg_or_add_cint_operand.
15124         (sub_op2): Delete.
15125         (sub<mode>3): Use reg_or_sub_cint_operand.
15126         (udiv<mode>3, div<mode>3, div<mode>3_no_mq, mod<mode>3,
15127         mov<mode>_internal2, mov<mode>, cmp<mode>, cmp<mode>,
15128         cmp<mode>_internal1, indirect_jump<mode>, ctr<mode>,
15129         ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
15130         ctr<mode>_internal6, save_fpregs_<mode>, return_internal_<mode>,
15131         return_and_restore_fpregs_<mode>, eh_set_lr_<mode>,
15132         various unnamed patterns): New.
15133         (udivsi3, divsi3, divsi3_no_mq, modsi3, movsi_internal2, movsi,
15134         cmpsi, cmpsi_internal1, indirect_jumpsi, ctrsi, ctrsi_internal1,
15135         ctrsi_internal2, ctrsi_internal5, ctrsi_internal6, save_fpregs_si,
15136         return_internal_si, return_and_restore_fpregs_si, eh_set_lr_si,
15137         udivdi3, divdi3, divdi3_no_mq, moddi3, movdi_internal2, movdi,
15138         cmpdi, cmpdi_internal1, indirect_jumpdi, ctrdi, ctrdi_internal1,
15139         ctrdi_internal2, ctrdi_internal5, ctrdi_internal6, save_fpregs_di,
15140         return_internal_di, return_and_restore_fpregs_di, eh_set_lr_di,
15141         movhi, movqi, cmpsf, cmpdf, cmptf, various unnamed patterns):
15142         Delete.
15144 2005-06-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15146         * rtl.h (to_rtx_code): Remove.
15147         * machmode.h (to_machine_mode): Likewise.
15148         * read-rtl.c (apply_mode_macro): Replace to_machine_mode with
15149         explicit cast.
15150         (apply_mode_maps): Likewise.
15151         (read_rtx_1): Likewise.
15152         (apply_code_macro): Replace to to_rtx_code with explicit cast.
15153         (check_code_macro): Likewise.
15154         (read_rtx_1): Likewise.
15156 2005-06-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15158         * c-typeck.c (convert_for_assignment): Avoid checking
15159         OPT_Wc___compat, as it is always true.
15161 2005-06-11  David Edelsohn  <edelsohn@gnu.org>
15163         * config/rs6000/rs6000.md (eq<mode>_compare): Restrict to Pmode.
15165 2005-06-11  Daniel Berlin  <dberlin@dberlin.org>
15167         Fix PR tree-optimization/22005
15168         Fix PR tree-optimization/22025
15169         
15170         * tree-ssa-structalias.c (struct variable_info): Add has_union
15171         member.
15172         (create_variable_info_for):  Mark variables containing unions.
15173         Don't sort the field stack if notokay is true.
15174         (find_what_p_points_to): Convert variables containing unions back
15175         to their SFT's if necessary.
15176         
15177 2005-06-11  Daniel Berlin  <dberlin@dberlin.org>
15179         * lambda-code.c (replace_uses_equiv_to_x_with_y): Verify the step
15180         is an INTEGER_CST before calling int_cst_value.
15182 2005-06-10  Uros Bizjak  <uros@kss-loka.si>
15184         PR target/21981
15185         * config/i386/i386.c (ix86_function_value_regno_p): Return true
15186         for FIRST_MMX_REG if TARGET_MMX.
15187         (ix86_return_in_memory): Return 1 for MMX/3dNow vectors. Delete
15188         wrong comment.
15189         (ix86_struct_value_rtx): Emit warning for MMX ABI violations.
15190         (ix86_value_regno): Return FIRST_MMX_REG for MMX vector modes.
15192 2005-06-10  Daniel Berlin  <dberlin@dberlin.org>
15194         * lambda-code.c (replace_uses_equiv_to_x_with_y): Check step
15195         and access function against chrec_dont_know.
15196           
15197 2005-06-10  Daniel Berlin  <dberlin@dberlin.org>
15199         * lambda-code.c (replace_uses_of_x_with_y): Renamed and rewritten
15200         slightly.
15201         (exit_phi_for_loop_p): New function.
15202         (can_put_in_inner_loop): Ditto.
15203         (can_convert_to_perfect_nest): Ditto.
15204         (perfect_nestify): Create iv with right type.
15205         Rewrite statements in correct order.    
15207 2005-06-10  Keith Besaw  <kbesaw@us.ibm.com>
15209         * tree-ssa-alias.c (new_type_alias): Use existing type
15210         tag if VAR has just one in its may_aliases list.
15212 2005-06-10  Fariborz Jahanian <fjahanian@apple.com>
15214         * rs6000/predicates.md (scc_operand): New.
15215         * rs6000/rs6000.md : Use scc_operand for eq:SI compares.
15217 2005-06-10  Dorit Nuzman  <dorit@il.ibm.com>
15219         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): DRs whose
15220         dependence-distance modulo VF is 0 are recorded in the 
15221         SAME_ALIGN_REFs VEC in each DR.
15222         (vect_enhance_data_refs_alignment): Avoid 80 column overflow. The
15223         alignment information of DRs that are in the SAME_ALIGN_REFs VEC of the
15224         DR we want to peel for, is set to 0.
15225         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Fix printout.
15226         * tree-vectorizer.c (destroy_loop_vec_info): Free the SAME_ALIGN_REFs
15227         VEC.
15228         * tree-vectorizer.h (dr_p): New type. Defined to use the VEC API.
15229         (_stmt_vec_info): Added new field same_align_refs.
15230         (STMT_VINFO_SAME_ALIGN_REFS): New macro.
15232 2005-06-10  Nathan Sidwell  <nathan@codesourcery.com>
15234         * vec.h (VEC_safe_grow): Append MEM_STAT_INFO.
15236 2005-06-10  Alan Modra  <amodra@bigpond.net.au>
15238         * config/rs6000/linux.h (NO_PROFILE_COUNTERS): Define.
15239         * config/rs6000/linux64.h (NO_PROFILE_COUNTERS): Define as 1.
15240         * config/rs6000/rs6000.c (output_function_profiler): Obey
15241         NO_PROFILE_COUNTERS.  Handle TARGET_SECURE_PLT.  Use "bcl 20,31"
15242         for -fPIC.  Delete save_lr and substitute its value into strings.
15244 2005-06-09  Dale Johannesen  <dalej@apple.com>
15246         * config/i386/i386.c (optimization_options):  Make -fno-math-errno
15247         the default on Darwin.
15248         * config/rs6000/rs6000.c (optimization_options):  Ditto.
15249         * doc/invoke.texi (-fno-math-errno): Document.
15251 2005-06-09  Dale Johannesen  <dalej@apple.com>
15253         * config/rs6000/rs6000.c (TARGET_INSN_VALID_WITHIN_DOLOOP):
15254         Change to TARGET_INVALID_WITHIN_DOLOOP.
15256 2005-06-09  David Edelsohn  <edelsohn@gnu.org>
15258         * config/rs6000/rs6000.md (eq): Convert to define_insn_and_split.
15259         * config/rs6000/predicates.md (scc_eq_operand): New.
15261 2005-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
15263         * config/sh/sh.md (mextr_rl): Set buffer size properly.
15264         (*mextr_lr): Likewise.
15266 2005-06-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15268         PR c/21759
15269         * c.opt (Wc++-compat): New.
15270         * doc/invoke.texi (-Wc++-compat): Document.
15271         * c-typeck.c (convert_for_assignment): Check for implicit
15272         conversion void* -> T*.
15274 2005-06-09  Gabriel Dos Reis  <gdr@integrable-solutions.edu>
15276         * machmode.h (to_machine_mode): New.
15277         * rtl.h (to_rtx_code): Likewise.
15278         * read-rtl.c (apply_mode_macro): Convert mode to machine_mode.
15279         (print_c_condition): Convert return value of htab_find().
15280         (apply_code_macro): Add explicit cast when convertin to enums.
15281         (apply_mode_maps): Likewise.
15282         (check_code_macro): Likewise.
15283         (read_rtx_1): Likewise.
15285 2005-06-09  Richard Henderson  <rth@redhat.com>
15287         * config/ia64/ia64.c (update_set_flags): Just return for IF_THEN_ELSE.
15288         Use SCALAR_FLOAT_MODE_P.
15289         * config/ia64/vect.md (vcondv2sf): Remove code check on comparison.
15290         (fselect): Rename from fpcmp; use %F.
15291         (fpcmp): New.
15293 2005-06-09  Jan Hubicka  <jh@suse.cz>
15295         * cgraphunit.c (cgraph_create_edges): Do not walk BLOCK; finalize
15296         local statics when doing unit-at-a-time.
15297         (cgraph_varpool_assemble_pending_decls): Output debug info.
15298         * dwarf2out.c (decls_for_scope): Skip local statics.
15299         (dwarf2out_decl): Handle local statics.
15300         * passes.c (rest_of_decl_compilation): Do not differentiate
15301         local and global statics in unit-at-a-time.
15302         * tree-inline.c (remap_decls): Put local static into
15303         unexpanded_vars_list rather than introducing duplicated VAR_DECL
15304         node.
15306 2005-06-09  Daniel Berlin  <dberlin@dberlin.org>
15308         * config/rs6000/rs6000.c: (rs6000_insn_valid_within_doloop): Fix
15309         prototype.
15311 2005-06-08  Daniel Berlin  <dberlin@dberlin.org>
15313         * Makefile.in (OBJS-common): Add tree-ssa-structalias.o.
15314         * tree-flow.h (find_what_p_points_to): Add prototype.
15315         (push_fields_onto_fieldstack): Ditto.
15316         (sort_fieldstack): Ditto.
15317         * tree-optimize.c (init_tree_optimization_passes): Add
15318         pass_build_pta and pass_del_pta.
15319         * tree-pass.h (pass_build_pta): New structure.
15320         (pass_del_pta): Ditto.
15321         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Disambiguate
15322         using new alias analyzer.
15323         (push_fields_onto_fieldstack): Removed from here.
15324         (bitpos_of_field): Ditto.
15325         (fieldoff_compare): Ditto.
15326         * tree-ssa-structalias.c: New file.
15327         * tree-ssa-structalias.h: Ditto.
15329 2005-06-09  Nathan Sidwell  <nathan@codesourcery.com>
15331         * c-typeck.c (build_c_cast): Check type punning on COMPONENT_REF
15332         too.
15334 2005-06-09  Bernd Schmidt  <bernd.schmidt@analog.com>
15336         * config/bfin/bfin.c (enum bfin_builtins): Moved here from...
15337         * config/bfin/bfin.h (enum bfin_builtins): ... here.
15339 2005-06-09  Adrian Straetling  <straetling@de.ibm.com>
15341         * target.h (insn_valid_within_doloop): Rename into
15342         "invalid_within_doloop".  Change return type to "const char *".
15343         Update Comment.
15344         * targhooks.h (default_insn_valid_within_doloop): Rename into
15345         "default_invalid_within_doloop". 
15346         * targhooks.c (default_insn_valid_within_doloop): Likewise.
15347         Update Comment.
15348         * target-def.h (TARGET_INSN_VALID_WITHIN_DOLOOP): Rename target hook
15349         into "TARGET_INVALID_WITHIN_DOLOOP". Default it to
15350         "default_invalid_within_doloop".
15351         * hooks.c (hook_constcharptr_rtx_null): New function.
15352         (hook_bool_rtx_true): Remove.
15353         * hooks.h (hook_constcharptr_rtx_null): Declare.
15354         (hook_bool_rtx_true): Remove.
15355         * loop-doloop.c (doloop_valid_p): Temporarily store return value of
15356         "invalid_within_doloop" and print error message if non-null.
15357         Update Comment.
15358         * doc/tm.texi: Update documentation.
15359         * config/s390/s390.c: Adjust to new hook name and new default hook.
15360         * config/rs6000/rs6000.c: (rs6000_insn_valid_within_doloop): Rename
15361         into "rs6000_invalid_within_doloop".
15362         (rs6000_invalid_within_doloop): Change return type to "static const
15363         char *" and replace return values.  Update Comment.
15365 2005-06-09  Bernd Schmidt  <bernd.schmidt@analog.com>
15367         * config/bfin/bfin.opt (mlong-calls): New.
15368         * config/bfin/predicates.md (call_insn_operand): Disallow SYMBOL_REF
15369         if TARGET_LONG_CALLS.
15371 2005-06-09  Richard Henderson  <rth@redhat.com>
15373         PR tree-opt/20610
15374         * tree.h (DECL_COMPLEX_GIMPLE_REG_P): New.
15375         (struct tree_decl): Add gimple_reg_flag.
15376         * integrate.c (copy_decl_for_inlining): Copy it.
15377         * gimplify.c (internal_get_tmp_var): Set it.
15378         (gimplify_bind_expr): Likewise.
15379         (gimplify_function_tree): Likewise.
15380         (gimplify_modify_expr_complex_part): New.
15381         (gimplify_modify_expr): Use it.
15382         * tree-gimple.c (is_gimple_reg_type): Allow complex.
15383         (is_gimple_reg): Allow complex with DECL_COMPLEX_GIMPLE_REG_P set.
15385         * tree-complex.c (complex_lattice_t): New.
15386         (complex_lattice_values, complex_variable_components): New.
15387         (some_nonzerop, find_lattice_value, is_complex_reg,
15388         init_parameter_lattice_values, init_dont_simulate_again, 
15389         complex_visit_stmt, complex_visit_phi, create_components,
15390         update_complex_components, update_parameter_components, 
15391         update_phi_components, update_all_vops, expand_complex_move): New.
15392         (extract_component): Handle INDIRECT_REF, COMPONENT_REF, ARRAY_REF,
15393         SSA_NAME.
15394         (update_complex_assignment): Use update_complex_components;
15395         handle updates of return_expr properly.
15396         (expand_complex_addition): Use complex lattice values.
15397         (expand_complex_multiplication): Likewise.
15398         (expand_complex_division): Likewise.
15399         (expand_complex_libcall): Use update_complex_components.
15400         (expand_complex_comparison): Use update_stmt.
15401         (expand_complex_operations_1): Use expand_complex_move, retrieve
15402         lattice values.
15403         (tree_lower_complex): Compute lattice values.
15404         (tree_lower_complex_O0): Duplicate from tree_lower_complex.
15405         (pass_lower_complex_O0): Rename from pass_lower_complex.
15406         (pass_lower_complex, gate_no_optimization): New.
15407         * tree-optimize.c (init_tree_optimization_passes): Update for
15408         complex pass changes.
15409         * tree-pass.h (pass_lower_complex_O0): Declare.
15411 2005-06-08  Dale Johannesen  <dalej@apple.com>
15413         * config/darwin.c (darwin_binds_local_p):  New.
15414         * config/darwin-protos.h (darwin_binds_local_p):  Declare it.
15415         * config/i386/i386.c (TARGET_BINDS_LOCAL_P):  Use it for TARGET_MACHO.
15416         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Remove.
15417         (TARGET_BINDS_LOCAL_P):  Change it to darwin_binds_local_p.
15419 2005-06-08  Aldy Hernandez  <aldyh@redhat.com>
15421         * config/rs6000/rs6000.h: Remove rs6000_long_double_size_string,
15422         rs6000_isel, rs6000_spe, rs6000_alignment_string,
15423         rs6000_sched_restricted_insns_priority_str,
15424         rs6000_sched_restricted_insns_priority, rs6000_abi_string.
15426 2005-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
15428         * tree-ssa-address.c (addr_for_mem_ref): Use LAST_VIRTUAL_REGISTER
15429         instead of FIRST_PSEUDO_REGISTER for creating pseudoregisters.
15430         * tree-ssa-loop-ivopts.c (add_cost, multiply_by_cost,
15431         multiplier_allowed_in_address_p, get_address_cost): Ditto.
15433 2005-06-08  Richard Henderson  <rth@redhat.com>
15435         * config/ia64/ia64.h (NO_PROFILE_COUNTERS): New.
15436         * config/ia64/ia64.c (ia64_output_function_profiler): Honor it.
15437         Emit out3 load right after alloc.
15439 2005-06-08  Aldy Hernandez  <aldyh@redhat.com>
15441         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15442         rs6000_explicit_options.
15444 2005-06-08  Richard Henderson  <rth@redhat.com>
15446         * config/ia64/ia64.h (FUNCTION_PROFILER): Move implementation ...
15447         * config/ia64/ia64.c (ia64_output_function_profiler): ... here; add
15448         unwind markup.
15449         * config/ia64/ia64-protos.h (ia64_output_function_profiler): Declare.
15451 2005-06-08  Joseph S. Myers  <joseph@codesourcery.com>
15453         * config/sol2-c.c (cmn_err_char_table): Allow width for %b
15454         formats.
15456 2005-06-08  James A. Morrison  <phython@gcc.gnu.org>
15458         PR target/20666
15459         * config/sparc/sparc.c (sparc_fold_builtin): New function
15460         (sparc_vis_mul8x16): New function.
15461         (sparc_handle_vis_mul8x16): New function.
15462         (TARGET_FOLD_BUILTIN): Define to sparc_fold_builtin.
15464 2005-06-08  David Edelsohn  <edelsohn@gnu.org>
15466         * config/rs6000/rs6000.md (call_indirect_nonlocal_aix32): Prefer
15467         CTR to LR.
15468         (call_indirect_nonlocal_aix64): Same.
15469         (call_value_indirect_nonlocal_aix32): Same.
15470         (call_value_indirect_nonlocal_aix64): Same.
15472         PR target/10588
15473         (eq): Use CLZ splitter for compare with zero.
15475 2005-06-08  Bernd Schmidt  <bernd.schmidt@analog.com>
15477         * config/bfin/bfin.c (bfin_return_in_memory): Simplify; return
15478         everything larger than 8 bytes in memory.
15480         * config/bfin/bfin.h (enum bfin_builtins): New.
15481         * config/bfin/bfin.md (UNSPEC_VOLATILE_CSYNC, UNSPEC_VOLATILE_SSYNC):
15482         New constants.
15483         (csync, ssync): New insn patterns.
15484         * config/bfin/bfin.c (bfin_init_builtins, bfin_expand_builtin):
15485         New functions.
15486         (def_builtin): New macro.
15487         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
15489         From Jie Zhang  <jie.zhang@analog.com>
15490         * config/bfin/bfin.h (ASM_OUTPUT_ALIGN): Gas now emulates the
15491         behavior of the native assembler in VDSP. So change accordingly.
15492         
15493 2005-06-08  Sebastian Pop  <pop@cri.ensmp.fr>
15495         * tree-data-ref.c (compute_estimated_nb_iterations,
15496         analyze_array_indexes, compute_overlap_steps_for_affine_1_2,
15497         analyze_subscript_affine_affine, find_data_references_in_loop):
15498         Fixed to use chrec_contains_undetermined to test the values of
15499         loop->estimated_nb_iterations.
15500         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
15501         Compute the estimation only when loop->estimated_nb_iterations
15502         has not yet been initialized.
15503         (convert_step_widening, scev_probably_wraps_p): Add a call to
15504         estimate_numbers_of_iterations_loop.
15505         * tree-vrp.c (execute_vrp): Don't call estimate_numbers_of_iterations.
15507 2005-06-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
15509         PR debug/21946
15510         * dwarf2out.c (add_loc_descr_op_piece): Move to the
15511         DWARF2_DEBUGGING_INFO section.
15513 2005-06-08  Richard Henderson  <rth@redhat.com>
15515         PR target/21721
15516         * config/ia64/ia64.c (emit_predicate_relation_info): Skip p0.
15518 2005-06-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
15520         PR target/21889
15521         * target.h (gcc_target) <asm_out>: New field output_dwarf_dtprel.
15522         * target-def.h (TARGET_ASM_OUTPUT_DWARF_DTPREL): New macro.
15523         (TARGET_ASM_OUT): Add it.
15524         * doc/tm.texi (Debugging Info): Document it.
15525         * dwarf2out.c (output_loc_operands) <INTERNAL_DW_OP_tls_addr>:
15526         Test it instead of ASM_OUTPUT_DWARF_DTPREL.
15527         (loc_descriptor_from_tree_1) <VAR_DECL>: Likewise.
15528         * system.h: Poison ASM_OUTPUT_DWARF_DTPREL.
15529         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Delete.
15530         * config/frv/frv.c (frv_output_dwarf_dtprel): Make static and unused.
15531         (gen_inlined_tls_plt): Remove unused variable MEM.
15532         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to frv_output_dwarf_dtprel.
15533         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15534         * config/i386/i386-protos.h (i386_output_dwarf_dtprel): Delete.
15535         * config/i386/i386.c (i386_output_dwarf_dtprel): Make static and
15536         unused.
15537         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to i386_output_dwarf_dtprel.
15538         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15539         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): Delete.
15540         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Make static and
15541         unused.
15542         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to ia64_output_dwarf_dtprel.
15543         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15544         * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Delete.
15545         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Make static and
15546         unused.
15547         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to rs6000_output_dwarf_dtprel
15548         * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15549         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): Delete.
15550         * config/s390/s390.c (s390_output_dwarf_dtprel): Make static and
15551         unused.
15552         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to s390_output_dwarf_dtprel.
15553         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15554         * config/sparc/sol2-gas.h (TARGET_SUN_TLS): Define to 0.
15555         (TARGET_GNU_TLS): Define to 1.
15556         * config/sparc/sparc-protos.h (sparc_output_dwarf_dtprel): Delete.
15557         * config/sparc/sparc.c (sparc_output_dwarf_dtprel): Make static and
15558         unused.
15559         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to sparc_output_dwarf_dtprel
15560         if TARGET_GNU_TLS only.
15561         * config/sparc/sparc.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15563         * config.gcc (sparc64-*-solaris2*): Include tm-dwarf2.h last.
15564         (sparc-*-solaris2*): Likewise on Solaris 7 and up.
15566 2005-06-07  Dale Johannesen  <dalej@apple.com>
15568         * config/i386/i386.md (movqi_1):  Fix case where source
15569         is memory and destination EDI.
15571 2005-06-08  Kazu Hirata  <kazu@codesourcery.com>
15573         * config/c4x/c4x.h (PREDICATE_CODES): Remove mem_operand.
15575 2005-06-07  Eric Christopher  <echristo@redhat.com>
15577         * system.h: Poison EXTRA_CC_MODES.
15578         * config/frv/frv.h (SELECT_CC_MODE): Rewrite comment.
15579         * config/ia64/ia64.h (SELECT_CC_MODE): Ditto.
15580         * doc/md.texi (Jump Patterns): Replace reference to
15581         EXTRA_CC_MODES with machine-modes.def.
15582         * doc/rtl.texi (Machine Modes): Ditto.
15584 2005-06-07  Richard Henderson  <rth@redhat.com>
15586         * varasm.c (initialize_cold_section_name): Fix alloca buffer overflow.
15587         (assemble_start_function): Fix strcmp confusion.
15589 2005-06-07  Uros Bizjak  <uros@kss-loka.si>
15591         * config/i386/i386.h (enum ix86_entity): New.
15592         (enum ix86_stack_slot): New.
15593         (OPTIMIZE_MODE_SWITCHING): Redefine to use
15594         ix86_optimize_mode_switching[] array.
15595         (NUM_MODES_FOR_MODE_SWITCHING): Redefine for 4 entities.
15596         (MODE_NEEDED): Use ix86_mode_needed() function.
15597         (EMIT_MODE_SET): Redefine for changed emit_i387_cw_initialization ()
15598         function.
15599         (struct machine_function): Use optimize_mode_switching[] array.
15601         * config/i386/i386.c (MAX_386_STACK_LOCALS): Remove.
15602         (ix86_mode_needed): New function.
15603         (emit_i387_cw_initialization): Cleanup. Use mode to calculate
15604         correct stack positions for stored control words.
15605         (assign_386_stack_local): Use enum ix86_stack_slot. Change assert.
15606         (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR]: Change constant to
15607         SLOT_TEMP.
15608         [IX86_BUILTIN_STMXCSR]: Same.
15610         * config/i386/i386-protos.h (assign_stack_local): Change prototype.
15611         (emit_i387_cw_initialization): Change prototype.
15612         (ix86_mode_needed): New prototype.
15614         * config/i386/i386.md (i387_cw attribute): Change order of elements.
15615         (truncdfsf2, truncxfsf2, truncxfdf2, fix_trunc<mode>_fisttp_i387_1)
15616         (*fix_trunc<mode>_i387_1, lrint<mode>2, *fist<mode>2_floor_1)
15617         (*fist<mode>2_ceil_1): Change constant in call to
15618         assign_386_stack_local to SLOT_TEMP.
15619         (*fix_trunc<mode>_i387_1): Change constant in call to
15620         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
15621         Use new ix86_optimize_mode_switching[] array.
15622         (frndintxf2_floor, *fist<mode>2_floor_1): Change constants in call to
15623         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_FLOOR.
15624         Use new ix86_optimize_mode_switching[] array.
15625         (frndintxf2_ceil, *fist<mode>2_ceil_1):  Change constants in call to
15626         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_CEIL.
15627         Use new ix86_optimize_mode_switching[] array.
15628         (frndintxf2_trunc): Change constants in call to
15629         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
15630         Use new ix86_optimize_mode_switching[] array.
15631         (frndintxf2_mask_pm): Change constants in call to
15632         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_MASK_PM.
15633         Use new ix86_optimize_mode_switching[] array.
15635         (define_peephole2): Change constant from 17 to FLAGS_REG;
15637 2005-06-07  Richard Henderson  <rth@redhat.com>
15639         PR rtl-opt/21528
15640         * rtlanal.c (reg_overlap_mentioned_p) <MEM>: Handle 'E' formats.
15642 2005-06-07  Dale Johannesen  <dalej@apple.com>
15644         * tree-nested.c (finalize_nesting_tree_1):  Disable
15645         warn_padded around layout_type call.
15647 2005-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
15649         * tree-ssa-loop-ivopts.c (rewrite_use_outer): Unshare the expression
15650         before emiting it.
15652 2005-06-07  Eric Christopher  <echristo@redhat.com>
15654         * config/mips/predicates.md: Revert previous patch.
15656 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
15658         PR middle-end/21850
15659         * tree.c (get_unwidened): Stop at NOP_EXPR/CONVERT_EXPR that convert
15660         from vector types.
15662 2005-06-07  Diego Novillo  <dnovillo@redhat.com>
15664         * tree-ssa-threadupdate.c (struct thread_stats_d): Declare.
15665         (thread_stats): New local variable.
15666         (redirect_edges): Increment count of threaded edges.
15667         (thread_through_all_blocks): Initialize thread_stats.
15668         Display number of threaded jumps if TDF_STATS is enabled.
15670 2005-06-07  Kazu Hirata  <kazu@codesourcery.com>
15672         * sbitmap.h (sbitmap_iter_init): Consistently treat bit_num as
15673         the current bit index with no modulo.
15675 2005-06-07  Sebastian Pop  <pop@cri.ensmp.fr>
15677         PR 18403 and meta PR 21861.
15678         * Makefile.in (tree-chrec.o): Depend on CFGLOOP_H and TREE_FLOW_H.
15679         * tree-chrec.c: Include cfgloop.h and tree-flow.h.
15680         (evolution_function_is_invariant_rec_p,
15681         evolution_function_is_invariant_p): New.
15682         (chrec_convert): Use an extra parameter AT_STMT for refining the
15683         information that is passed down to convert_step.  Integrate the 
15684         code that was in count_ev_in_wider_type.
15685         * tree-chrec.h (count_ev_in_wider_type): Removed.
15686         (chrec_convert): Modify its declaration.
15687         (evolution_function_is_invariant_p): Declared.
15688         (evolution_function_is_affine_p): Use evolution_function_is_invariant_p.
15689         * tree-flow.h (can_count_iv_in_wider_type): Renamed convert_step.
15690         (scev_probably_wraps_p): Declared.
15691         * tree-scalar-evolution.c (count_ev_in_wider_type): Removed.
15692         (follow_ssa_edge_in_rhs, interpret_rhs_modify_expr):
15693         Use an extra parameter AT_STMT for refining the information that is
15694         passed down to convert_step.
15695         (follow_ssa_edge_inner_loop_phi, follow_ssa_edge,
15696         analyze_scalar_evolution_1): Initialize AT_STMT with the current
15697         analyzed statement.
15698         (instantiate_parameters_1): Don't know yet how to initialize AT_STMT.
15699         * tree-ssa-loop-ivopts.c (idx_find_step): Update the use of 
15700         can_count_iv_in_wider_type to use convert_step.
15701         * tree-ssa-loop-niter.c (can_count_iv_in_wider_type_bound): Move 
15702         code that is independent of the loop over the known iteration
15703         bounds to convert_step_widening, the rest is moved to
15704         proved_non_wrapping_p.
15705         (scev_probably_wraps_p): New.
15706         (can_count_iv_in_wider_type): Renamed convert_step.
15707         * tree-vrp.c (adjust_range_with_scev): Take an extra AT_STMT parameter.
15708         Use scev_probably_wraps_p for computing init_is_max.
15709         (vrp_visit_assignment): Pass the current analyzed statement to 
15710         adjust_range_with_scev.
15711         (execute_vrp): Call estimate_numbers_of_iterations for refining the 
15712         information provided by scev analyzer.
15714 2005-06-07  Eric Christopher  <echristo@redhat.com>
15716         * config/mips/predicates.md (sleu_operand): Use
15717         IN_RANGE to specify range of operand.
15719 2005-06-07  Steven Bosscher  <stevenb@suse.de>
15721         PR tree-optimization/21847
15722         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): With
15723         -fnon-call-exceptions, also mark statements inherently
15724         necessary if they may throw.
15726 2005-06-07  Adrian Straetling  <straetling@de.ibm.com>
15728         * config/s390/s390.md: ("UNSPECV_MB", "UNSPECV_CAS"): New constants.
15729         ("type"): Add "sem" to 'type' attribute.
15730         ("memory_barrier", "*memory_barrier", "sync_compare_and_swapdi",
15731         "sync_compare_and_swapsi", "sync_compare_and_swap_ccdi",
15732         "sync_compare_and_swap_ccsi", "*sync_compare_and_swap_ccdi",
15733         "*sync_compare_and_swap_ccsi"): New patterns.
15734         * config/s390/2064.md: ("z_sem"): New insn_reservation.
15735         * config/s390/2084.md: ("x_sem"): New insn_reservation.
15736         * config/s390/s390.c: (s390_compare_emitted): New global variable.
15737         (s390_emit_compare): Do not emit comparison again after cas.
15738         * config/s390/s390.h (s390_compare_emitted): Declare.
15740 2005-06-07  Kazu Hirata  <kazu@codesourcery.com>
15742         * sbitmap.h (sbitmap_iterator, sbitmap_iter_init,
15743         sbitmap_iter_cond, sbitmap_iter_next): New.
15744         * bt-load.c, cfganal.c, combine.c, ddg.c, flow.c,
15745         modulo-sched.c, sbitmap.c, sched-rgn.c, tree-into-ssa.c,
15746         tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Update
15747         uses of EXECUTE_IF_SET_IN_SBITMAP to the new style.
15749 2005-06-07  Zdenek Dvorak  <dvorakz@suse.cz>
15751         * tree-ssa-address.c: New file.
15752         * Makefile.in (tree-ssa-address.o): Add.
15753         * expr.c (expand_expr_real_1): Do not handle REF_ORIGINAL on
15754         INDIRECT_REFs.  Handle TARGET_MEM_REFs.
15755         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REFs.
15756         * tree-flow.h (struct mem_address): New.
15757         (struct affine_tree_combination): Moved from tree-ssa-loop-ivopts.c.
15758         (create_mem_ref, addr_for_mem_ref, get_address_description,
15759         maybe_fold_tmr, multiplier_allowed_in_address_p,
15760         multiply_by_cost):  Declare.
15761         * tree-mudflap.c (mf_xform_derefs_1): Handle TARGET_MEM_REFs.
15762         * tree-pretty-print.c (dump_generic_node): Ditto.
15763         * tree-ssa-loop-im.c (for_each_index): Ditto.
15764         * tree-ssa-loop-ivopts.c (may_be_unaligned_p,
15765         find_interesting_uses_address): Ditto.
15766         (rewrite_address_base, build_addr_strip_iref): Removed.
15767         (struct affine_tree_combination): Moved to tree-flow.h.
15768         (get_ref_tag, copy_ref_info): New functions.
15769         (rewrite_use_address): Produce TARGET_MEM_REFs.
15770         (tree_ssa_iv_optimize): Do not call update_ssa
15771         and rewrite_into_loop_closed_ssa.
15772         (tree_to_aff_combination): Use build_fold_addr_expr instead of
15773         build_addr_strip_iref.
15774         (unshare_aff_combination): New function.
15775         (fold_affine_sum): Removed.
15776         (get_computation_at): Use get_computation_aff.  Unshare the result.
15777         (get_computation_aff, multiplier_allowed_in_address_p): New function.
15778         (multiply_by_cost): Exported.
15779         (get_address_cost): Use multiplier_allowed_in_address_p.
15780         * tree-ssa-operands.c (get_tmr_operands): New function.
15781         (get_expr_operands): Handle TARGET_MEM_REFs.
15782         * tree.c (copy_node_stat): Copy annotations for TARGET_MEM_REFs.
15783         (build): Handle 7 arguments.
15784         (build7_stat): New function.
15785         * tree.def (TARGET_MEM_DEF): New.
15786         * tree.h (REF_ORIGINAL): Removed.
15787         (TMR_SYMBOL, TMR_BASE, TMR_INDEX, TMR_STEP, TMR_OFFSET, TMR_ORIGINAL,
15788         TMR_TAG, build7): New macros.
15789         (build7_stat, tree_mem_ref_addr, copy_mem_ref_info): Declare.
15790         * tree-ssa-ccp.c (fold_stmt_r): Call maybe_fold_tmr.
15791         * doc/c-tree.texi: Document TARGET_MEM_REF.
15792         * doc/tree-ssa.texi: Add TARGET_MEM_REF to gimple grammar.
15794 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
15796         PR debug/21946
15797         * dwarf2out.c (add_loc_descr_op_piece): New function.
15798         (multiple_reg_loc_descriptor, concat_loc_descriptor,
15799         loc_descriptor): Use it.
15800         * var-tracking.c: Include regs.h and expr.h.
15801         (emit_note_insn_var_location): Skip over pieces where offset
15802         is smaller than previous offset plus previous piece mode size.
15803         Optimize adjacent hard registers or memory locations.
15804         * Makefile.in (var-tracking.o): Depend on $(REGS_H) and $(EXPR_H).
15806 2005-06-07  Richard Guenther  <rguenth@gcc.gnu.org>
15808         * c-typeck.c (c_finish_if_stmt): Use void_type_node as type
15809         for COND_EXPR.
15810         * gimplify.c (gimplify_cond_expr): No need to fix up the
15811         type of COND_EXPRs.
15813 2005-06-07  Richard Guenther  <rguenth@gcc.gnu.org>
15815         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Fix
15816         comments.
15818 2005-06-07  Geoffrey Keating  <geoffk@apple.com>
15820         * config/rs6000/host-darwin.c (segv_handler): Widen the possible
15821         'stwux' instructions that are considered to be stack decrements.
15823         * rtlanal.c (subreg_offset_representable_p): Handle objects
15824         with holes.
15826 2005-06-06  Uros Bizjak  <uros@kss-loka.si>
15828         * mode-switching.c (optimize_mode_switching): Fix n_exprs parameter
15829         in call to pre_edge_lcm.
15831 2005-06-06  Kaz Kojima  <kkojima@gcc.gnu.org>
15833         * config/sh/linux-unwind.h (SH_DWARF_FRAME_XD0): Remove for SH5.
15834         (SH_DWARF_FRAME_PR, SH_DWARF_FRAME_GBR, SH_DWARF_FRAME_MACL)
15835         (SH_DWARF_FRAME_MACH, SH_DWARF_FRAME_PC, SH_DWARF_FRAME_FPUL):
15836         Likewise.
15837         (SH_DWARF_FRAME_FP0, SH_DWARF_FRAME_FPSCR): Define to the correct
15838         dwarf register number for SHmedia.
15839         (shmedia_fallback_frame_state): New.
15840         (MD_FALLBACK_FRAME_STATE_FOR): Define to it for SH5.
15842         * config/sh/linux.h (FUNCTION_PROFILER): Provide SHMEDIA version.
15844 2005-06-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15846         * c-lex.c (lex_string): Use XOBFINISH.
15847         * collect2.c (extract_string, dump_file): Likewise.
15848         * dbxout.c (dbxout_finish_complex_stabs): Likewise.
15849         * gcc.c (init_spec, build_search_list, convert_filename, 
15850         set_collect_gcc_options, do_spec_2, do_spec_1, main): Likewise.
15851         * genpreds.c (write_predicate_subfunction): Likewise.
15852         * genflags.c (main): Likewise.
15853         * read-rtl.c (mode_attr_index, apply_macro_to_string, 
15854         join_c_conditions, read_quoted_string, read_braced_string, 
15855         read_rtx_1): Likewise.
15856         * stringpool.c (ggc_alloc_string): Likewise.
15857         * tlink.c (obstack_fgets, recompile_files): Likewise.
15859 2005-06-06  Jakub Jelinek  <jakub@redhat.com>
15861         * intl.h (G_): New macro.
15862         * rtl-error.c (error_for_asm, warning_for_asm): Use gmsgid
15863         instead of msgid for argument name.
15864         * tree-ssa.c (warn_uninit): Likewise.
15865         * c-parser.c (c_parser_error): Likewise.
15866         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
15867         * config/darwin-c.c (BAD): Likewise.
15868         * config/c4x/c4x-c.c (BAD): Likewise.
15869         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
15870         * c-errors.c (pedwarn_c99, pedwarn_c90): Likewise.
15871         * c-common.c (c_parse_error): Likewise.
15872         * diagnostic.c (diagnostic_set_info, verbatim, inform, warning,
15873         warning0, pedwarn, error, sorry, fatal_error, internal_error):
15874         Likewise.
15875         (fnotice): Use cmsgid instead of msgid for argument name.
15876         * gcov.c (fnotice): Likewise.
15877         * protoize.c (notice): Likewise.
15878         * final.c (output_operand_lossage): Likewise.
15879         * gcc.c (fatal, notice): Likewise.
15880         (error): Use gmsgid instead of msgid for argument name.
15881         * collect2.c (notice, fatal_perror, fatal): Use cmsgid instead
15882         of msgid for argument name.
15883         (error): Use gmsgid instead of msgid for argument name.
15884         * c-decl.c (locate_old_decl, implicit_decl_warning): Use G_()
15885         instead of N_().
15886         * c-typeck.c (readonly_error, convert_for_assignment): Likewise.
15887         * tree-inline.c (inline_forbidden_p_1): Likewise.
15888         * ABOUT-GCC-NLS: Require gettext 0.14.5 or later.  Mention the new
15889         conventions for marking translations.
15890         * doc/install.texi: Mention gettext 0.14.5 or later requirement.
15892         * tree-chrec.c (reset_evolution_in_loop): Use build3 instead of
15893         build2.
15895         * fold-const.c (operand_equal_p): Don't return 1, if element
15896         chains for 2 VECTOR_CSTs are not the same length.
15898         PR regression/21897
15899         * fold-const.c (fold_ternary) <case BIT_FIELD_REF>: Don't crash if
15900         not all VECTOR_CST elements are given.
15902         * combine.c (try_combine): Use hard_regno_nregs array instead of
15903         HARD_REGNO_NREGS macro.
15904         * config/rs6000/rs6000.c (rs6000_split_multireg_move,
15905         rs6000_register_move_cost, rs6000_memory_move_cost): Likewise.
15906         * config/ia64/ia64.c (mark_reg_gr_used_mask): Likewise.
15908 2005-06-06  Daniel Berlin  <dberlin@dberlin.org>
15910         * tree-ssa-reassoc.o: New.
15911         (OBJS-common): Add tree-ssa-reassoc.o
15912         * timevar.def: Add TV_TREE_REASSOC
15913         * tree-optimize.c (pass_reassoc): Add call.
15914         * tree-pass.h (pass_reassoc): Add.
15915         * tree-ssa-reassoc.c: New file.
15917 2005-06-06  Eric Christopher  <echristo@redhat.com>
15919         target/21927
15920         * expr.c (do_store_flag): Remove check for non-negative BRANCH_COST.
15922 2005-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15924         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard with
15925         HAVE_GAS_MAX_SKIP_P2ALIGN.
15926         (HAVE_AS_DWARF2_DEBUG_LINE): Remove.
15928 2005-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15930         * Makefile.in (mips-tfile.o): Add $(srcdir)/../include prefix to
15931         getopt.h dependency.
15932         (mips-tdump.o): Likewise.
15934 2005-06-06  Jan Hubicka  <jh@suse.cz>
15936         * predict.c (tree_predict_edge): Don't drop useless predictions;
15937         check that it is not called too late in the game.
15938         (gate_estimate_probability): New gate.
15939         (pass_profile): Gate.
15940         * tree-mudflap.c (mf_build_check_statement_for): Do not drop
15941         predictions; update CFG instead.
15942         * cfgrtl.c (rtl_verify_flow_info): Check that predcitions are consumed.
15944 2005-06-06  Jie Zhang  <jie.zhang@analog.com>
15946         * config.gcc (bfin*-uclinux*): New.
15947         * config/bfin/uclinux.h: New file.
15949 2005-06-06  Ben Elliston  <bje@au.ibm.com>
15951         * doc/md.texi (Insn Splitting): Fix some wording.
15953 2005-06-05  David Edelsohn  <edelsohn@gnu.org>
15955         * config/rs6000/rs6000.c (rs6000_emit_swdivsf): New function.
15956         (rs6000_emit_swdivdf): New function.
15957         * config/rs6000/rs6000.md (fres): New pattern.
15958         (divsf3): Add approximation through rs6000_emit_swdivsf.
15959         (fred): New pattern.
15960         (divdf3): Add approximation through rs6000_emit_swdivdf.
15961         * config/rs6000/rs6000-protos.h (rs6000_emit_swdivsf): Declare.
15962         (rs6000_emit_swdivdf): Declare.
15963         * config/rs6000/rs6000.opt (mswdiv): New option.
15964         * doc/invoke.texi (RS/6000 and PowerPC Options): Document mswdiv.
15966 2005-06-05  Zdenek Dvorak  <dvorakz@suse.cz>
15968         PR tree-optimization/21846
15969         * tree-cfg.c (replace_uses_by): Update information stored at loops.
15970         * tree-flow.h (substitute_in_loop_info): Declare.
15971         * tree-scalar-evolution.c (initialize_scalar_evolutions_analyzer):
15972         Ensure that chrec_dont_know and chrec_known have a type.
15973         * tree-ssa-loop-niter.c (substitute_in_loop_info): New function.
15975 2005-06-05  Steven Bosscher  <stevenb@suse.de>
15977         * config/i386/i386.c (x86_use_loop): Remove.
15978         * config/i386/i386.h (x86_use_loop): Remove extern decl.
15979         (TARGET_USE_LOOP): Remove.
15980         * config/i386/i386.md (doloop_end, doloop_end_internal): Remove.
15981         Also remove related define_splits.
15983 2005-06-05  Dorit Nuzman  <dorit@il.ibm.com>
15985         * tree-flow.h (stmt_ann_d): Move aux to ...
15986         (tree_ann_common_d): ... here.
15987         * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
15988         move_computations_stmt, schedule_sm): Update references to
15989         aux.
15990         * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
15991         * tree-vect-transform.c (vect_create_index_for_vector_ref): Update
15992         call to set_stmt_info.
15993         (vect_transform_loop): Likewise.
15994         * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info):
15995         Likewise.
15997         * tree-vect-analyze.c (vect_analyze_scalar_cycles): Made void instead of
15998         bool.
15999         (vect_mark_relevant): Takes two additional arguments - live_p and
16000         relevant_p. Set RELEVANT_P and LIVE_P according to these arguments.
16001         (vect_stmt_relevant_p): Differentiate between a live stmt and a
16002         relevant stmt. Return two values = live_p and relevant_p.
16003         (vect_mark_stmts_to_be_vectorized): Call vect_mark_relevant and
16004         vect_stmt_relevant_p with additional arguments. Phis are no longer
16005         put into the worklist (analyzed seperately in analyze_scalar_cycles).
16006         (vect_determine_vectorization_factor): Also check for LIVE_P, because a
16007         stmt that is marked as irrelevant and live, cause it's only used out
16008         side the loop, may need to be vectorized (e.g. reduction).
16009         (vect_analyze_operations): Examine phis. Call
16010         vectorizable_live_operation for for LIVE_P stmts. Check if
16011         need_to_vectorize.
16012         (vect_analyze_scalar_cycles): Update documentation. Don't fail
16013         vectorization - just classify the scalar cycles created by the loop
16014         phis. Call vect_is_simple_reduction.
16015         (vect_analyze_loop): Call to analyze_scalar_cycles moved earlier.
16016         * tree-vect-transform.c (vect_create_index_for_vector_ref): Update
16017         call to set_stmt_info.
16018         (vect_get_vec_def_for_operand): Code reorganized - the code that
16019         classifies the type of use was factored out to vect_is_simple_use.
16020         (vectorizable_store, vect_is_simple_cond): Call vect_is_simple_use with
16021         additional arguments.
16022         (vectorizable_assignment): Likewise. Also make sure the stmt is relevant
16023         and computes a loop_vec_def.
16024         (vectorizable_operation, vectorizable_load, vectorizable_condition):
16025         Likewise.
16026         (vectorizable_live_operation): New.
16027         (vect_transform_stmt): Handle LIVE_P stmts.
16028         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new fields
16029         STMT_VINFO_LIVE_P and STMT_VINFO_DEF_TYPE.
16030         (new_loop_vec_info, destroy_loop_vec_info): Also handle phis.
16031         (vect_is_simple_use): Determine the type of the def and return it
16032         in a new function argument. Consider vect_reduction_def and
16033         vect_induction_def, but for now these are not supported.
16034         (vect_is_simple_reduction): New. Empty for now.
16035         * tree-vectorizer.h (vect_def_type): New enum type.
16036         (_stmt_vec_info): Added new fields - live and _stmt_vec_info.
16037         (STMT_VINFO_LIVE_P, STMT_VINFO_DEF_TYPE): New accessor macros.
16038         (vect_is_simple_use): New arguments added to function declaration.
16039         (vect_is_simple_reduction): New function declaration.
16040         (vectorizable_live_operation): New function declaration.
16042         * tree-vect-analyze.c (vect_can_advance_ivs_p): Add debug printout.
16043         (vect_can_advance_ivs_p): Likewise.
16044         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Likewise.
16046 2005-06-05  Eric Christopher  <echristo@redhat.com>
16048         * config/mips/mips.c (mips_rtx_costs): Remove unused variable.
16050 2005-06-05  Hans-Peter Nilsson  <hp@bitrange.com>
16052         PR target/21914
16053         * config/mmix/mmix.md ("*movdicc_real_foldable")
16054         ("*movdfcc_real_foldable", "*bCC_foldable")
16055         ("*bCC_inverted_foldable"): Specify DImode for register being
16056         compared.
16058 2005-06-04  Roger Sayle  <roger@eyesopen.com>
16060         * reg-stack.c (struct block_info_def): Correct grammar typo.
16061         (compensate_edge): Clean-up.  Perform as little work as possible
16062         when src and dest stacks match.  Avoid modifying block_info.
16063         Reorder and simplify assertion checks.  Avoid unnecessary copying
16064         of regstack structure.
16065         (convert_regs_1): Set the done flag here...
16066         (convert_regs_2): ... instead of here.
16068 2005-06-04  Dale Johannesen  <dalej@apple.com>
16070         * config/rs6000/rs6000.c (no_global_regs_above): New.
16071         (rs6000_emit_prologue):  Use it; cosmetic formatting fixes.
16072         (rs6000_emit_epilogue):  Use it; cosmetic formatting fixes.
16073         (rs6000_conditional_register_usage): Don't put Darwin PIC
16074         register in global_regs.
16075         (rs6000_stack_info):  Don't set lr_save_p just because Darwin 
16076         PIC reg used.
16077         (rs6000_emit_prologue):  Save LR in R0 around Darwin PIC setup,
16078         if not done by lr_save_p.
16079         * config/rs6000/rs6000.md (insnv1_internal1):  Back out 05-18 patch.
16080         Use rotate instead of ashift.
16081         (call_indirect_nonlocal_sysv):  Prefer CTR to LR.
16082         (call_value_indirect_nonlocal_sysv):  Ditto.
16084 2005-06-04  Jan Hubicka  <jh@suse.cz>
16086         * cgraphunit.c (cgraph_reset_node): Break out from ...
16087         (cgraph_finalize_function): ... here.
16088         (cgraph_finalize_compilation_unit): Reset nodes where backend
16089         removed the body.
16091 2005-06-04  Richard Henderson  <rth@redhat.com>
16093         PR target/21888
16094         * config/alpha/alpha.c (alpha_align_insns): Don't insert nops
16095         until we've passed initial ldgp.
16097 2005-06-04  Daniel Berlin  <dberlin@dberlin.org>
16099         * cfgexpand.c (expand_one_var): Use DECL_HAS_VALUE_EXPR_P.
16100         * dwarf2out.c (loc_descriptor_from_tree_1): Ditto.
16101         * expr.c (expand_var): Ditto.   
16102         * function.c (gimplify_parameters): Use SET_DECL_VALUE_EXPR too.
16103         * gimplify.c (gimplify_decl_expr): Ditto.
16104         (gimplify_expr): Ditto.
16105         * tree-mudflap.c (mf_decl_eligible_p): Use DECL_HAS_VALUE_EXPR_P.
16106         * tree.c (value_expr_for_decl): New.
16107         (print_value_expr_statistics): New.
16108         (init_ttree): Init value_expr_for_decl.
16109         (decl_value_expr_lookup): New.
16110         (decl_value_expr_insert): Ditto.
16111         (copy_node_stat): Copy DECL_VALUE_EXPR status.
16112         * tree.h (DECL_VALUE_EXPR): Use hashtable.
16113         (SET_DECL_VALUE_EXPR): New.
16114         (DECL_HAS_VALUE_EXPR_P): New.
16116 2005-06-04  Steven Bosscher  <stevenb@suse.de>
16118         * lcm.c: Move all mode-switching related functions from here...
16119         * mode-switching.c: ...to this new file.
16120         * doc/passes.texi: Update accordingly.
16122         * basic-block.h (label_value_list): Remove extern decl.
16123         * cfgrtl.c (label_value_list): Remove.
16124         (can_delete_label_p): Don't look at it.
16125         * cfgcleanup.c (cleanup_cfg): Don't free it.
16127         * common.opt: Don't refer to non-existing flag_alias_check.
16129 2005-06-04  David Edelsohn  <edelsohn@gnu.org>
16131         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power5.
16133 2005-06-04  Kazu Hirata  <kazu@codesourcery.com>
16135         * function.c (prologue, epilogue, sibcall_epilogue): Change
16136         their types to VEC(int,heap)*.
16137         (free_after_compilation): Free the three vectors above.
16138         (init_function_for_compilation, record_insns, contains,
16139         prologue_epilogue_contains, sibcall_epilogue_contains,
16140         reposition_prologue_and_epilogue_notes): Use VEC instead of
16141         VARRAY.  (init_function_once): Remove.
16142         * function.h: Remove the prototype for init_function_once.
16143         * toplev.c (backend_init): Don't call init_function_once.
16145 2005-06-04  Jan Hubicka  <jh@suse.cz>
16147         * predict.c (tree_predict_edge): Do not predict entry edge and
16148         single succestor edge.
16150 2005-06-04  Joseph S. Myers  <joseph@codesourcery.com>
16152         PR c/21873
16153         * c-typeck.c (push_init_level): Don't pop levels without braces if
16154         implicit == 1.
16156 2005-06-03  Sebastian Pop  <pop@cri.ensmp.fr>
16157         
16158         * tree-data-ref.c (compute_self_dependence): New function.
16159         (compute_all_dependences): Use it.
16161 2005-06-03  Geoffrey Keating  <geoffk@apple.com>
16163         * c-parser.c (c_parser_parms_declarator): Don't use chainon().
16164         (c_parser_expr_list): Don't use chainon().
16166         * config/darwin.h (LINK_SPEC): Pass -syslibroot to linker
16167         when -isysroot passed.
16169 2005-06-03  Joseph S. Myers  <joseph@codesourcery.com>
16171         PR c/21879
16172         * c-decl.c (start_function): Restore label_context_stack_se and
16173         label_context_stack_vm  if returning with an error.
16175 2005-06-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16177         * configure.ac: Check declaration for asprintf, needed by
16178         libiberty.h. 
16179         * configure: Regenerate.
16180         * config.in: Likewise.
16182 2005-06-03  Diego Novillo  <dnovillo@redhat.com>
16184         * tree-ssa-dom.c (record_edge_info): Use last_basic_block to
16185         allocate info array.
16186         * tree-vrp.c (extract_range_from_unary_expr): Set resulting
16187         range to varying in cast expressions that change
16188         TYPE_PRECISION.
16190 2005-06-03  Eric Christopher  <echristo@redhat.com>
16192         * config/mips/mips.opt: Add RejectNegative to divide-breaks and
16193         divide-traps.
16195 2005-06-03  Jan Hubicka  <jh@suse.cz>
16197         * basic-block.h (remove_predictions_associated_with_edge): Declare.
16198         * cfg.c (remove_edge): Use it.
16199         * predict.c (remove_predictions_associated_with_edge): New function.
16201 2005-06-03  Pat Haugen  <pthaugen@us.ibm.com>
16203         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
16204         Clear call_realy_used_regs[r2] when ABI_AIX.
16206 2005-06-03  Richard Guenther  <rguenth@gcc.gnu.org>
16208         PR middle-end/21858
16209         * fold-const.c (fold_binary): Fix type mismatches in folding
16210         of comparisons.
16212 2005-06-03  Kazu Hirata  <kazu@codesourcery.com>
16214         * cgraph.c, cgraphunit.c, config/mips/mips.c: Fix comment
16215         typos.
16217 2005-06-03  Joseph S. Myers  <joseph@codesourcery.com>
16219         * collect2.c (maybe_unlink): Use unlink_if_ordinary.
16221 2005-06-02  Bernd Schmidt  <bernd.schmidt@analog.com>
16223         * reload1.c (reload): Revert my previous patch.
16225 2005-06-03  Nick Clifton  <nickc@redhat.com>
16227         * config/arm/semi.h (ASM_SPEC): Fix typo passing -mfloat-abi to
16228         assembler.
16230 2005-06-03  Kazu Hirata  <kazu@codesourcery.com>
16232         PR tree-optimization/21849
16233         * tree-ssa-copy.c (dump_copy_of): Call sbitmap_zero.
16235 2005-06-02  Richard Henderson  <rth@redhat.com>
16237         * Makefile.in (tree-vect-generic.o): New.
16238         (OBJS-common, GTFILES, s-gtype): Add it.
16239         * tree-complex.c (build_replicated_const, vector_inner_type,
16240         vector_last_type, vector_last_nunits, build_word_mode_vector_type,
16241         elem_op_func, tree_vec_extract, do_unop, do_binop, do_plus_minus,
16242         do_negate, expand_vector_piecewise, expand_vector_parallel, 
16243         expand_vector_addition, expand_vector_operation, 
16244         type_for_widest_vector_mode, expand_vector_operations_1, 
16245         gate_expand_vector_operations, expand_vector_operations, 
16246         pass_lower_vector_ssa): Move to tree-vect-generic.c.
16247         (tree_lower_complex): Rename from tree_lower_operations.
16248         (pass_lower_complex): Rename from pass_pre_expand.
16249         * tree-vect-generic.c: New file.
16250         * tree-pass.h (pass_lower_complex): Rename from pass_pre_expand.
16251         (pass_lower_vector): New.
16252         * tree-optimize.c (init_tree_optimization_passes): Update to match.
16254 2005-06-02  Richard Henderson  <rth@redhat.com>
16256         * modulo-sched.c (doloop_register_get): Protect against 
16257         doloop_end not defined.
16259 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
16261         * config/sh/sh.c (general_movsrc_operand,
16262         general_movdst_operand, arith_reg_operand, arith_reg_dest,
16263         logical_reg_operand, int_gpr_dest, fp_arith_reg_operand,
16264         fp_arith_reg_dest, arith_operand, arith_reg_or_0_operand,
16265         xor_operand, cmp_operand, logical_operand, and_operand,
16266         fpscr_operand, fpul_operand, symbol_ref_operand,
16267         commutative_float_operator, noncommutative_float_operator,
16268         unary_float_operator, binary_float_operator,
16269         binary_logical_operator, equality_comparison_operator,
16270         greater_comparison_operator, less_comparison_operator,
16271         shift_operator, logical_operator, target_reg_operand,
16272         target_operand, mextr_bit_offset, extend_reg_operand,
16273         trunc_hi_operand, extend_reg_or_0_operand, minuend_operand,
16274         general_extend_operand, ua_address_operand,
16275         cache_address_operand, inqhi_operand, sh_rep_vec, sh_1el_vec,
16276         sh_const_vec, ua_offset, sh_register_operand, cmpsi_operand,
16277         shift_count_reg_operand, shift_count_operand,
16278         unaligned_load_operand): Move to ...
16279         * config/sh/predicates.md: ... here.
16280         * config/sh/sh.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
16281         Remove.
16283 2005-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
16285         * tree.c (build_common_builtin_nodes): Fix the return type on
16286         __builtin_memcmp.
16288 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
16290         * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Remove.
16291         (find_interesting_uses_address): Use build_fold_addr_expr instead.
16292         (strip_offset_1): Likewise.
16293         (tree_to_aff_combination): Likewise.
16295 2005-06-02  DJ Delorie  <dj@redhat.com>
16297         * convert.c (convert_to_pointer): Avoid recursion if no conversion
16298         is needed.
16300 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
16302         * tree-chrec.c (chrec_fold_plus_1): Ensure we build
16303         binary operations with the correct types.
16304         * tree-ssa-loo-ivopts.c (idx_find_step): Use sizetype
16305         for all computation.
16307 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
16309         * tree-vrp.c, config/arm/arm.md, config/arm/arm1020e.md,
16310         config/rs6000/rs6000.md: Fix comment typos.  Follow splling
16311         conventions.
16312         * doc/install.texi: Fix a typo.
16314 2005-06-02  Jan Hubicka  <jh@suse.cz>
16316         * cgraphunit.c (cgraph_function_and_variable_visibility): Extern
16317         inline functions are not local.
16319 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
16321         * gimplify.c (gimplify_ctx): Change the type of case_labels to
16322         VEC from VARRAY.
16323         (gimplify_switch_expr, gimplify_case_label_expr): Adjust uses
16324         of case_labels.
16326 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
16328         * c-typeck.c (build_indirect_ref): Build INDIRECT_REF
16329         with correct type.
16331 2005-06-02  Ulrich Weigand  <uweigand@de.ibm.com>
16333         * config/s390/s390.c (s390_add_execute): Do not handle out-of-pool
16334         execute templates.
16335         (s390_dump_pool): Likewise.
16336         (s390_mainpool_start, s390_mainpool_finish): Likewise.
16337         (s390_chunkify_start): Likewise.
16338         (s390_dump_execute): Remove.
16339         (s390_reorg): Handle out-of-pool execute templates.
16341 2005-06-02  Adrian Straetling  <straetling@de.ibm.com>
16343         * optabs.c: (expand_bool_compare_and_swap): Emit barrier after
16344           unconditional jump.
16346 2005-06-02  Jan Hubicka  <jh@suse.cz>
16348         * cgraph.c (cgraph_node): Maintain master clones.
16349         (cgraph_remove_node): Likewise.
16350         (availability_names): New static variable.
16351         (dump_cgraph_node): Dump availability.
16352         (dump_cgraph_varpool_node): Likewise.
16353         (cgraph_is_master_clone, cgraph_master_clone,
16354         cgraph_function_body_availability,
16355         cgraph_variable_initializer_availability): New functions.
16356         * cgraph.h (availability): New enum.
16357         (struct cgraph_node): Add master_clone.
16358         (cgraph_is_master_clone, cgraph_master_clone,
16359         cgraph_function_body_availability,
16360         cgraph_variable_initializer_availability): Declare.
16361         * cgraphunit.c (cgraph_expand_function): Setcgraph_function_flags_ready.
16362         (cgraph_remove_unreachable_nodes): Remove unreachable nodes.
16363         * ipa-inline.c (cgraph_decide_inlining): Do not call
16364         cgraph_remove_unreachable_nodes.
16366         * cgraphunit.c (cgraph_function_and_variable_visibility): Fix typo in
16367         previous patch.
16369 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
16371         PR 21582
16372         * tree-vrp.c (nonnull_arg_p): New.
16373         (get_value_range): Call it.
16375 2005-06-02  Eric Christopher  <echristo@redhat.com>
16377         * config/mips/mips.h (processor_type): Remove PROCESSOR_DEFAULT,
16378         add PROCESSOR_MAX.
16379         (mips_rtx_cost_data): New datatype.
16380         (MEMORY_MOVE_COST): Use data from structure.
16381         (BRANCH_COST): Ditto.
16382         (LOGICAL_OP_NON_SHORT_CIRCUIT): Define to zero.
16383         * config/mips/mips.md (cpu): Rework for processor_type changes.
16384         * config/mips/mips.c (mips_cost): New variable.
16385         (DEFAULT_COSTS): Define.
16386         (mips_rtx_cost_data): New.
16387         (mips_rtx_costs): Use. Minor formatting changes. Use COSTS_N_INSNS
16388         for NEG cost. Add support for FLOAT, UNSIGNED_FLOAT, FIX,
16389         FLOAT_EXTEND, FLOAT_TRUNCATE, and SQRT.
16390         (override_options): Set cost data.
16391         (mips_register_move_cost): Formatting changes.
16392         (bdesc_arrays): Use PROCESSOR_MAX.
16393         (mips_init_builtins): Ditto.
16395 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
16397         PR 21765
16398         * doc/invoke.texi: Document -ftree-vrp.
16400 2005-06-02  Dorit Nuzman  <dorit@il.ibm.com>
16402         PR tree-optimization/21734
16403         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop): Use the
16404         phi_result when current_def is not available.
16405         (slpeel_update_phi_nodes_for_guard1): Don't fail if current_def is not
16406         available.      
16408 2005-06-02  David Edelsohn  <edelsohn@gnu.org>
16410         * config/rs6000/rs6000.c (rs6000_insn_valid_within_doloop): New.
16411         (TARGET_INSN_VALID_WITHIN_DOLOOP): Define.
16413 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
16415         * tree-vrp.c (has_assert_expr, maybe_add_assert_expr): Remove.
16417 2005-06-02  Jan Hubicka  <jh@suse.cz>
16419         * cgraph.c (dump_cgraph_node): Print new flags.
16420         (dump_cgraph_varpool_node): Likewise.
16421         (decide_variable_is_needed): Initialize externally_visible flag.
16422         * cgraph.h (cgraph_local_info): Add externally_visible flag.
16423         (cgraph_varpool_node): Likewise.
16424         (cgraph_function_flags_ready): Declare.
16425         * cgraph.c (cgraph_mark_local_functions): Rename to ...
16426         (cgraph_function_and_variable_visibility) ... this one; handle
16427         externally_visible flags.
16428         (decide_is_function_needed): Set externally_visible flag.
16429         (cgraph_finalize_function): Deal properly with early cleanups.
16430         (cgraph_optimize): Update call of
16431         cgraph_function_and_variable_visibility.
16433 2005-06-02 Steven Bosscher  <stevenb@suse.de>
16434            Mostafa Hagog <mustafa@il.ibm.com>
16436         * cfgloop.h (doloop_condition_get): Make external.
16437         * loop-doloop.c (doloop_condition_get): Generalize to make it
16438         usable in modulo-sched.c.
16439         * modulo-sched.c (doloop_register_get): Use
16440         doloop_condition_get instead of duplicating it.
16442 2005-06-02  Bernd Schmidt  <bernd.schmidt@analog.com>
16444         * reload1.c (reload): Undo 2005-04-20 change.  Make sure we detect
16445         the correct set of init_insns that need deletion.
16446         * local-alloc.c (update_equiv_regs): When substituting sole definition
16447         into sole use of a reg, delete it from liveness information.
16449 2005-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
16451         * config/sh/sh.h (TARGET_FPU_DOUBLE): Use MASK_SH4.
16453 2005-06-01  Diego Novillo  <dnovillo@redhat.com>
16455         PR 14341, PR 21332, PR 20701, PR 21029, PR 21086, PR 21090
16456         PR 21289, PR 21348, PR 21367, PR 21368, PR 21458.
16457         * fold-const.c (invert_tree_comparison): Make extern.
16458         * tree-flow.h (enum value_range_type): Move to tree-ssa-propagate.
16459         (struct value_range_def): Limewise.
16460         (get_value_range): Remove.
16461         (dump_value_range): Remove.
16462         (dump_all_value_ranges): Remove.
16463         (debug_all_value_ranges): Remove.
16464         (vrp_evaluate_conditional): Declare.
16465         * tree-ssa-propagate.c (struct prop_stats_d): Add field
16466         num_pred_folded.
16467         (substitute_and_fold): Add argument use_ranges_p.
16468         Update all callers.
16469         If use_ranges_p is true, call fold_predicate_in to fold
16470         predicates using range information.
16471         Ignore ASSERT_EXPRs.
16472         Change debugging output to only show statements that have been
16473         folded.
16474         (replace_phi_args_in): Move debugging output code from
16475         substitute and fold.
16476         (fold_predicate_in): New local function.
16477         * tree-ssa-propagate.h (enum value_range_type): Move from
16478         tree-flow.h.
16479         (struct value_range_d): Likewise.
16480         Add field 'equiv'. 
16481         (value_range_t): Rename from value_range.
16482         * tree-vrp.c (found_in_subgraph): Rename from found.
16483         (get_opposite_operand): Remove.
16484         (struct assert_locus_d): Declare.
16485         (assert_locus_t): Declare.
16486         (need_assert_for): Declare.
16487         (asserts_for): Declare.
16488         (blocks_visited): Declare.
16489         (vr_value): Declare.
16490         (set_value_range): Add argument 'equiv'.
16491         Don't drop to VARYING ranges that cover all values in the
16492         type.
16493         Make deep copy of equivalence set 'equiv'.
16494         (copy_value_range): New local function.
16495         (set_value_range_to_undefined): New local function.
16496         (compare_values): Return -2 if either value has overflowed.
16497         (range_includes_zero_p): New local function.
16498         (extract_range_from_assert): Flip the predicate code if the
16499         name being asserted is on the RHS of the predicate.
16500         Avoid creating unnecessary symbolic ranges if the comparison
16501         includes another name with a known numeric range.
16502         Update the equivalnce set of the new range when asserting
16503         EQ_EXPR predicates.
16504         (extract_range_from_ssa_name): Update the equivalence set of
16505         the new range with VAR.
16506         (extract_range_from_binary_expr): Also handle TRUTH_*_EXPR.
16507         If -fwrapv is used, set the resulting range to VARYING if the
16508         operation overflows.  Otherwise, use TYPE_MIN_VALUE and
16509         TYPE_MAX_VALUE to represent -INF and +INF.
16510         Fix handling of *_DIV_EXPR.
16511         (extract_range_from_unary_expr): Handle MINUS_EXPR and
16512         ABS_EXPR properly by switching the range around if necessary.
16513         (extract_range_from_comparison): New local function.
16514         (extract_range_from_expr): Call it.
16515         (adjust_range_with_scev): Do not adjust the range if using
16516         wrapping arithmetic (-fwrapv).
16517         (dump_value_range): Also show equivalence set.
16518         Show -INF and +INF for TYPE_MIN_VALUE and TYPE_MAX_VALUE.
16519         (build_assert_expr_for): Also build ASSERT_EXPR for EQ_EXPR.
16520         (infer_value_range): Change return value to bool.
16521         Add arguments 'comp_code_p' and 'val_p'.
16522         Do not attempt to infer ranges from statements that may throw.
16523         Store the comparison code in comp_code_p.
16524         Store the other operand to be used in the predicate in val_p.
16525         (dump_asserts_for): New.
16526         (debug_asserts_for): New.
16527         (dump_all_asserts): New.
16528         (debug_all_asserts): New.
16529         (register_new_assert_for): New.
16530         (register_edge_assert_for): New.
16531         (find_conditional_asserts): New.
16532         (find_assert_locations): New.
16533         (process_assert_insertions_for): New.
16534         (process_assert_insertions): New.
16535         (insert_range_assertions): Initialize found_in_subgraph,
16536         blocks_visited, need_assert_for and asserts_for.
16537         Call find_assert_locations and process_assert_insertions.
16538         (remove_range_assertions): Add more documentation.
16539         (vrp_initialize): Change return type to void.
16540         Do not try to guess if running VRP is worth it.  
16541         (compare_name_with_value): New.
16542         (compare_names): New.
16543         (vrp_evaluate_conditional): Add argument 'use_equiv_p'.  If
16544         use_equiv_p is true, call compare_names and
16545         compare_name_with_value to compare all the ranges for every
16546         name in the equivalence set of the predicate operands.
16547         Update all callers.
16548         (vrp_meet): Try harder not to derive a VARYING range.
16549         If two values meet, the resulting equivalence set is the
16550         intersection of the two equivalence sets.
16551         (vrp_visit_phi_node): Call copy_value_range to get the current
16552         range information of the LHS.
16553         (vrp_finalize): Create a value vector representing all the
16554         names that ended up with exactly one value in their range.
16555         Call substitute_and_fold.
16556         (execute_vrp): Document equivalence sets in ranges.
16557         * tree.h (SSA_NAME_VALUE_RANGE): Remove.
16558         (struct tree_ssa_name): Remove field value_range.
16559         (invert_tree_comparison): Declare.
16561 2005-06-01  Daniel Berlin  <dberlin@dberlin.org>
16563         Fix PR tree-optimization/21839
16565         * gimplify.c (zero_sized_field_decl): New function.
16566         (gimplify_init_ctor_eval): Use it.
16568 2005-06-01  Josh Conner <jconner@apple.com>
16570         PR 21478
16571         * gimplify.c (gimplify_init_constructor): Don't spill initializer
16572         to read-only memory if it's sparse.
16574 2005-06-01  Ramana Radhakrishnan  <ramana@codito.com>
16576         * doc/rtl.texi: Remove references to NOTE_INSN_SETJMP. 
16577         Add documentation for REG_SETJMP
16579 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
16581         * stmt.c (expand_case): Use build_int_cst.
16582         (node_has_low_bound): Likewise, and correct type mismatch.
16583         (node_has_high_bound): Likewise.
16584         * fold-const.c (fold_binary): Ensure we build trees
16585         with the correct types - undo what STRIP_NOPS possibly did.
16587 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
16589         * tree.h (fold_indirect_ref_1): Export from fold-const.c.
16590         * fold-const.c (fold_indirect_ref_1): No longer static.
16591         * tree-inline.c (copy_body_r): Use fold_indirect_ref_1 for
16592         folding, if possible.
16594 2005-06-01  Joseph S. Myers  <joseph@codesourcery.com>
16596         * common.opt (fjump-tables): New.
16597         * doc/invoke.texi (-fno-jump-tables): Document.
16598         * stmt.c (expand_end_case_type): Do not emit jump tables unless
16599         flag_jump_tables.
16601 2005-06-01  Richard Earnshaw  <richard.earnshaw@arm.com>
16603         * arm.md (bunordered, bordered, bungt, bunlt, bunge, bunle, buneq)
16604         (bltgt, arm_buneq, arm_bltgt, sunordered, sordered, sungt, sunge)
16605         (sunlt, sunle): Enable patterns on VFP.
16607         * arm.md (attribute 'type'): Add new types - f_loads floadd, f_stores,
16608         f_stored, f_flag, f_cvt.
16609         (generic_sched): No-longer used for the arm1020e and arm1022e cores.
16610         Include arm1020e.md.
16611         * vfp.md (fmstat): New cpu unit.  Add an exclusion set between it and
16612         the ds and fmac pipelines.  Re-work all load and store patterns and
16613         all conversion patterns to use new attributes.  Adjust reservation
16614         descriptions accordingly.
16615         * arm1020e.md: New file.
16616         * t-arm: Add dependency.
16618 2005-06-01  Jan Hubicka  <jh@suse.cz>
16620         * except.c (struct eh_region): Kill unused fields.
16621         * basic-block.h (struct basic_block_def): Likewise.
16623 2005-06-01  J"orn Rennecke <joern.rennecke@st.com>
16625         PR rtl-optimization/21767
16626         * rtl.h (function_invariant_p): Re-add declaration.
16627         * reload1.c (function_invariant_p): No longer static.
16628         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL notes that
16629         might have become invalid.
16631 2005-06-01  Jakub Jelinek  <jakub@redhat.com>
16633         PR c/21536
16634         PR c/20760
16635         * gimplify.c (gimplify_decl_expr): Call gimplify_type_sizes
16636         on variable sizes types if a decl is a pointer to a VLA.
16637         (gimplify_type_sizes): Handle POINTER_TYPE and REFERENCE_TYPE.
16638         Call gimplify_type_sizes on aggregate fields.  Prevent infinite
16639         recursion.
16641         * fold-const.c (fold_ternary): Optimize BIT_FIELD_REF of VECTOR_CST.
16643         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss, _mm_set1_ps,
16644         _mm_set_ps, _mm_setr_ps): Add __extension__.
16645         * config/i386/emmintrin.h (_mm_set_sd, _mm_set1_pd, _mm_set_pd,
16646         _mm_setr_pd, _mm_setzero_pd, _mm_set_epi64x, _mm_set_epi64x,
16647         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128):
16648         Likewise.
16649         (_mm_clflush): Don't use return in void function.
16651         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128,
16652         _mm_castps_pd, _mm_castps_si128, _mm_castsi128_ps, _mm_castsi128_pd):
16653         Use __inline instead of inline.
16655 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
16657         * fold-const.c (fold_binary): Fix types in strlen vs.
16658         zero comparison folding.
16660 2005-06-01  Richard Henderson  <rth@redhat.com>
16662         * configure.ac (HAVE_AS_JSRDIRECT_RELOCS): New.
16663         * config.in, configure: Rebuild.
16664         * config/alpha/alpha.c (print_operand): Add 'j'.
16665         * alpha.md (divmodsi_internal_er_1): Use it.
16666         (divmoddi_internal_er_1): Likewise.
16668 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
16670         * system.h (TARGET_OPTIONS, TARGET_SWITCHES): Poison.
16671         * opts.h (print_filtered_help): Delete.
16672         * opts.c (handle_option, decode_options): Remove calls to
16673         set_target_switch.
16674         (print_target_help): New function.
16675         (common_option, print_help): Call print_target_help instead of
16676         display_target_options.
16677         (print_filtered_help): Make static.
16678         * toplev.h (display_target_options, set_target_switch): Delete.
16679         * toplev.c (target_switches, target_options, display_target_options)
16680         (set_target_switch): Delete.
16681         (print_switch_values): Remove handling of TARGET_SWITCHES and
16682         TARGET_OPTIONS.
16683         (default_get_pch_validity): Likewise.  Only treat target_flags
16684         specially if targetm.check_pch_target_flags is nonnull.
16685         (pch_option_mismatch): New function.
16686         (default_pch_valid_p): Use it.  Remove handling of TARGET_SWITCHES
16687         and TARGET_OPTIONS.  Only treat target_flags specially if
16688         targetm.check_pch_target_flags is nonnull.
16689         * config/ia64/ia64.c (ia64_override_options): Don't mention
16690         TARGET_OPTIONS in comment.
16691         * config/m68k/m68k-none.h (CC1_SPEC): Likewise.
16692         * doc/invoke.texi: Remove a reference to TARGET_SWITCHES.
16693         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS): Don't mention the
16694         interaction with TARGET_SWITCHES.
16695         (TARGET_@var{featurename}, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
16697 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
16699         * config/sh/sh.c (multcosts): Check sh_multcost rather than
16700         sh_multcost_str.
16701         (sh_register_move_cost): Likewise sh_gettrcost and sh_gettrcost_str.
16702         (sh_multcost_str, sh_gettrcost_str, sh_div_str, sh_divsi3_libfunc)
16703         (cut2_workaround_str): Delete.
16704         * config/sh/sh.h (SUBTARGET_OPTIONS, TARGET_OPTIONS)
16705         (TARGET_SH5_CUT2_WORKAROUND, sh_multcost_str, sh_gettrcost_str)
16706         (sh_div_str, sh_divsi3_libfunc, cut2_workaround_str): Delete.
16707         * config/sh/sh.opt (mcut2-workaround, mdiv=, mdivsi3_libfunc=)
16708         (mgettrcost=, multcost=): New options.
16710 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
16712         * opts.h (cl_option_state): New structure.
16713         (get_option_state): Declare.
16714         * opts.c (get_option_state): New function.
16715         * toplev.c (option_affects_pch_p): New function.
16716         (default_get_pch_validity): Store the state of all options for which
16717         option_affects_pch_p returns true.
16718         (default_pch_valid_p): Check the state of those options here.
16719         Only check target_flags separately if targetm.check_pch_target_Flags
16720         is nonnull or if TARGET_SWITCHES is defined.
16722 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
16724         * config/mips/mips-protos.h (mips_use_ins_ext_p): Remove parameter
16725         names.
16727 2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
16729         * modulo-sched.c (undo_generate_reg_moves ): Fix PR 21138.
16731 2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
16733         * gcse.c (compute_transp, load_killed_in_block): Use 
16734         MEM_READONLY_P.
16736 2005-06-01  David.Billinghurst  <David.Billinghurst@riotinto.com>
16738         PR target/21854
16739         * config/mips/mips-protos.h: Declare mips_use_ins_ext_p
16740         
16741 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16743         * errors.h (warning, error, fatal, internal_error): Add printf
16744         attribute.
16745         * genmodes.c (make_vector_mode): Fix format arguments.
16747 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16749         * basic-block.h, bb-reorder.c, c-gimplify.c, config/darwin.c,
16750         config/rs6000/rs6000-c.c, dominance.c, gimple-low.c, gimplify.c,
16751         lambda-code.c, lambda-trans.c, tree-browser.c, tree-cfg.c,
16752         tree-chrec.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
16753         tree-if-conv.c, tree-into-ssa.c, tree-loop-linear.c,
16754         tree-mudflap.c, tree-nomudflap.c, tree-outof-ssa.c,
16755         tree-pretty-print.c, tree-scalar-evolution.c, tree-sra.c,
16756         tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
16757         tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-live.c,
16758         tree-ssa-operands.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
16759         tree-ssa-propagate.c, tree-ssa-sink.c, tree-ssa-threadupdate.c,
16760         tree-ssa-uncprop.c, tree-ssa.c, tree-vect-analyze.c,
16761         tree-vect-transform.c, tree-vectorizer.c, vec.c: Don't include
16762         errors.h and include toplev.h if necessary.
16763         
16764         * rtl.c, varray.c: If we're compiling as a GENERATOR_FILE, include
16765         errors.h otherwise include toplev.h.
16766         
16767         * Makefile.in: Update dependencies.
16768         
16769 2005-06-01  Danny Smith  <dannysmith@users.sourceforge.net>
16771         * config/i386/cygming.h (NO_PROFILE_COUNTERS): Define.
16773 2005-05-31  Geoffrey Keating  <geoffk@geoffk.org>
16775         * config/rs6000/rs6000.md (sync_boolcshort_internal): New.
16776         * config/rs6000/rs6000.c (rs6000_emit_sync): Shift count must
16777         be complemented for big-endian.  Mask for AND must be rotated,
16778         not shifted.  Handle short operands with NOT on the memory
16779         operation.
16781 2005-05-30  Daniel Berlin  <dberlin@dberlin.org>
16783         * c-objc-common.c (c_tree_printer): Check flag before hashtable.
16784         Use DECL_DEBUG_EXPR and SET_DECL_DEBUG_EXPR.
16785         * dwarf2out.c (dwarf2out_var_location): Ditto.
16786         * toplev.c (default_tree_printer): Ditto.
16787         * tree-outof-ssa.c (create_temp): Ditto.
16788         * tree-sra.c (instantiate_element): Ditto.
16789         * var-tracking.c (track_expr_p): Ditto.
16790         * tree.c (struct tree_map): New structure.
16791         (debug_expr_for_decl): New.
16792         (tree_map_eq): New function.
16793         (tree_map_hash): Ditto.
16794         (tree_map_marked_p): Ditto.
16795         (print_debug_expr_statistics): Ditto.
16796         (decl_debug_expr_lookup): Ditto.
16797         (decl_debug_expr_insert): Ditto.
16798         (dump_tree_statistics): Dump debug_expr hashtable stats.
16799         * tree.h (DECL_DEBUG_EXPR): Change
16800         (SET_DECL_DEBUG_EXPR): Add.
16801         
16802 2005-06-01  Alan Modra  <amodra@bigpond.net.au>
16804         * configure.ac: Add --enable-secureplt.
16805         (HAVE_AS_REL16): Test for R_PPC_REL16 relocs.
16806         * config.in: Regenerate.
16807         * configure: Regenerate.
16808         * config.gcc (powerpc64-*-linux*, powerpc-*-linux*): Add
16809         rs6000/secureplt.h to tm_file when enable_secureplt.
16810         * doc/invoke.texi (msecure-plt, mbss-plt): Document.
16811         * doc/install.texi: Document --enable-targets and --enable-secureplt.
16812         Correct xrefs to "Using the GNU Compiler Collection (GCC)".
16813         * config/rs6000/secureplt.h: New file.
16814         * config/rs6000/sysv4.h (TARGET_SECURE_PLT): Define.
16815         (SUBTARGET_OVERRIDE_OPTIONS): Error if -msecure-plt given without
16816         assembler support.
16817         (CC1_SECURE_PLT_DEFAULT_SPEC): Define.
16818         (CC1_SPEC): Delete duplicate mno-sdata.  Invoke cc1_secure_plt_default.
16819         (SUBTARGET_EXTRA_SPECS): Add cc1_secure_plt_default.
16820         * config/rs6000/sysv4.opt (msecure-plt, bss-plt): Add options.
16821         * config/rs6000/rs6000.h (TARGET_SECURE_PLT): Define.
16822         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Handle
16823         TARGET_SECURE_PLT got register load sequence.
16824         (rs6000_emit_prologue): Call rs6000_emit_load_toc_table when
16825         TARGET_SECURE_PLT.
16826         (rs6000_elf_declare_function_name): Don't emit toc address offset
16827         word when TARGET_SECURE_PLT.
16828         * config/rs6000/rs6000.md (elf_high, elf_low): Move past load_toc_*.
16829         (load_toc_v4_PIC_1) Enable for TARGET_SECURE_PLT.
16830         (load_toc_v4_PIC_3b, load_toc_v4_PIC_3c): New insns.
16831         (call, call_value): Mark pic_offset_table_rtx used for sysv pic and
16832         TARGET_SECURE_PLT.
16833         (call_nonlocal_sysv, call_value_nonlocal_sysv, sibcall_nonlocal_sysv,
16834         sibcall_value_nonlocal_sysv): Add 32768 offset when TARGET_SECURE_PLT
16835         and -fPIC.
16836         * config/rs6000/tramp.asm (trampoline_initial): Use "bcl 20,31".
16837         (__trampoline_setup): Likewise.  Init r30 before plt call.
16839 2005-05-31  DJ Delorie  <dj@redhat.com>
16841         * expr.c (convert_move): When a partial_int requires multiple
16842         conversion steps, make sure successive steps convert the
16843         intermediate value, not the original value.
16845         * expmed.c (expand_mult): Convert partial_int multiplies to
16846         shift/add combinations too.
16848         * genmodes.c (mode_data): Add wider_2x.
16849         (calc_wider_mode): Calculate twice-wider mode too.
16850         (emit_mode_wider): Emit twice-wider mode too.
16851         * machmode.h (mode_2xwider, GET_MODE_2XWIDER_MODE): New.
16852         * expr.c (expand_expr_real_1): Use it for expanding
16853         multiplies.
16855 2005-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
16857         PR tree-optimization/21817
16858         * tree-ssa-loop-im.c (for_each_index): Handle VECTOR_CST.
16860 2005-05-31  Pat Haugen  <pthaugen@us.ibm.com>
16862         * loop.c (loop_invariant_p, valid_initial_value_p): Revert last
16863         change.
16865 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
16867         PR middle-end/20931
16868         PR middle-end/20946
16869         * fold-const.c (fold_checksum_tree): Copy types also if
16870         TYPE_CONTAINS_PLACEHOLDER_INTERNAL is set.
16871         Don't call fold_checksum_tree for TREE_LIST's TREE_CHAIN
16872         first.
16873         Tail recurse TREE_LIST's TREE_CHAIN.
16875 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
16877         PR tree-opt/21732
16878         * tree-ssa-copy.c (dump_copy_of): Create a bitmap and don't visit a
16879         SSA_NAME twice and cause the loop to become finite.  Remove the test
16880         for val.
16882 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
16884         * tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional
16885         expression.
16887 2005-05-31  Richard Sandiford  <rsandifo@redhat.com>
16889         * doc/tm.texi (TARGET_GET_PCH_VALIDITY, TARGET_PCH_VALID_P): Tweak
16890         the documentation to make it more future-proof.
16891         (TARGET_CHECK_PCH_TARGET_FLAGS): Document this new hook.
16892         * target.h (gcc_target): Add check_pch_target_flags.
16893         * target-def.h (TARGET_CHECK_PCH_TARGET_FLAGS): New macro.
16894         (TARGET_INITIALIZER): Include it.
16895         * toplev.c (default_pch_valid_p): Use targetm.check_pch_target_flags.
16896         * config/sh/sh-protos.h (sh_pch_valid_p): Delete.
16897         * config/sh/sh.c (TARGET_PCH_VALID_P, sh_pch_valid_p): Delete.
16898         (sh_check_pch_target_flags): New function.
16899         (TARGET_CHECK_PCH_TARGET_FLAGS): Override default.
16901 2005-05-31  Richard Guenther  <rguenth@gcc.gnu.org>
16903         * fold-const.c (extract_array_ref): Handle more cases,
16904         do some useful canonicalization of the base.
16905         (fold_binary): Explicitly deal with arrays of zero-sized
16906         structures during folding of &a[i] == &a[j].
16908 2005-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
16910         * doc/install.texi (sparc-sun-solaris2*): Update note
16911         about Sun bug 4910101.
16912         (sparc-sun-solaris2.7): Document bootstrap
16913         failure with Sun WorkShop 6 99/08/18 as.
16915 2005-05-30  Pat Haugen  <pthaugen@us.ibm.com>
16917         * loop.c (loop_invariant_p, valid_initial_value_p): Use
16918         regs_invalidated_by_call instead of call_used_regs.
16920 2005-05-30  Paolo Carlini  <pcarlini@suse.de>
16922         PR middle-end/21743
16923         * builtins.def (BUILT_IN_CLOG, BUILT_IN_CLOGF, BUILT_IN_CLOGL):
16924         Enable.
16925         * doc/extend.texi: Add clog, clogf, clogl.
16927 2005-05-30  H.J. Lu  <hongjiu.lu@intel.com>
16929         PR middle-end/20303
16930         * c-pragma.c: Include "vec.h".
16931         (handle_pragma_visibility): Use VEC.
16933         * doc/invoke.texi: Remove the nested visibility push limit.
16935 2005-05-30  Roger Sayle  <roger@eyesopen.com>
16937         PR rtl-optimization/15422
16938         * reg-stack.c (starting_stack_p): New static global.
16939         (straighten_stack): Delete prototype. Change to update the stack
16940         before the current insn.
16941         (subst_stack_regs): Update call to straighten stack.
16942         (emit_swap_insn): Delete prototype.  For the first insn in a
16943         basic block, update stack_in instead of emitting a real swap.
16944         (change_stack): When changing the stack before the first insn
16945         in a basic block, update stack_in instead of emitting real code.
16946         (compensate_edges): Clear starting_stack_p during compensation.
16947         (convert_regs_1): Keep track of starting_stack_p whilst processing
16948         a basic block.
16950 2005-05-30  Kazu Hirata  <kazu@cs.umass.edu>
16952         * tree-ssa-ccp.c (const_val): Make it static.
16954 2005-05-29  Geoffrey Keating  <geoffk@apple.com>
16956         PR target/21761
16957         * config/rs6000/rs6000.md: Remove stray TARGET_32BIT from
16958         pattern involving `:P'.
16960         * Makefile.in (install-cpp): Depend on installdirs.
16962 2005-05-30  Kazu Hirata  <kazu@cs.umass.edu>
16964         * tree-outof-ssa.c (_elim_graph): Change the type of edge_list
16965         to VEC(int,heap)*.
16966         (new_elim_graph, clear_elim_graph, delete_elim_graph,
16967         elim_graph_add_edge, elim_graph_remove_succ_edge,
16968         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED): Use VEC
16969         instead of VARRAY.
16971 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
16973         * cgraphunit.c, ipa-inline.c, loop-iv.c, modulo-sched.c,
16974         opts.c, postreload-gcse.c, tree-browser.def, tree-eh.c,
16975         tree-ssa-copyrename.c, tree-vect-analyze.c: Fix typos and
16976         follow spelling conventions in error/dump messages.
16978 2005-05-29  Roger Sayle  <roger@eyesopen.com>
16979             Richard Henderson  <rth@redhat.com>
16981         * ifcvt.c (noce_emit_move_insn): Construct a SET pattern directly
16982         if the RHS isn't suitable for calling emit_move_insn.
16984 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
16986         * tree-ssa-ccp.c (ccp_fold): Return immediately after calling
16987         fold_unary and fold_binary.
16989 2005-05-29  Roger Sayle  <roger@eyesopen.com>
16991         * reg-stack.c (propagate_stack): Always copy the source stack to
16992         the destination.  This routine is now only called when this is safe.
16993         (better_edge): New function split out from convert_regs_1 to
16994         determine which of two edges is better to propagate across.
16995         (convert_regs_1):  We need only search for a best edge if the
16996         stack layout hasn't been defined yet.  Use better_edge to help
16997         find beste.  No longer traverse unnecessary edges.
16999 2005-05-29  Keith Besaw  <kbesaw@us.ibm.com>
17001         * tree-ssa-alias.c (new_type_alias): New procedure to
17002         create a type memory tag for a pointer with a may-alias
17003         set determined from a variable declaration.
17004         * tree-flow.h: export declaration of new_type_alias
17005         * tree-optimize.c (init_tree_optimization_passes): document
17006         that pass_may_alias cannot be called after pass_vectorize.
17007         * tree-vect-transform (vect_create_data_ref_ptr): Call
17008         new_type_alias when an type memory tag isn't available
17009         for a reference.
17010         (vectorizable_store): Use copy_virtual_operands to update
17011         virtual defs in place (so that loop_version can be called).
17012         Call mark_for_renaming for the virtual defs in case peeling
17013         is done and virtual uses outside the loop need to be updated.
17015 2005-05-29  Dorit Naishlos  <dorit@il.ibm.com>
17017         PR tree-optimization/21639
17018         * tree-complex.c (pass_lower_vector_s): Remove TODO_ggc_collect.
17020 2005-05-29  Jan Hubicka  <jh@suse.cz>
17022         PR tree-optimization/21562
17023         * cfgexpand.c (construct_init_block): Deal properly with the case
17024         of entry edge not pointing to very first basic block.
17026 2005-05-28  Kazu Hirata  <kazu@cs.umass.edu>
17028         * tree-ssa-ccp.c (ccp_fold): Remove code that produces
17029         non-gimple min invariant.
17031         * Makefile.in (OBJS-common): Add tree-cfgcleanup.o.
17032         * tree-flow.h: Add prototypes for start_recording_case_labels
17033         and end_recording_case_labels.
17034         * tree-cfg.c (start_recording_case_labels,
17035         end_recording_case_labels): Export.
17036         (cleanup_tree_cfg_loop, modified_noreturn_calls,
17037         cleanup_control_flow, cleanup_control_expr_graph,
17038         remove_fallthru_edge, phi_alternatives_equal,
17039         tree_forwarder_block_p, has_abnormal_incoming_edge_p,
17040         remove_forwarder_block, cleanup_forwarder_blocks,
17041         remove_forwarder_block_with_phi, merge_phi_nodes,
17042         gate_merge_phi, pass_merge_phi): Move to ...
17043         * tree-cfgcleanup.c: ... here.
17045         * basic-block.h: Remove forward declaration of bb_ann_d.
17047 2005-05-28  Jan Hubicka  <jh@suse.cz>
17049         * tree-ssa-threadupdate.c: (create_edge_and_update_destination_phis):
17050         Update profile.
17051         * value-prof.c (tree_divmod_fixed_value_transform): Be more verbose in
17052         debug output.
17053         (tree_mod_subtract): Fix profile updating code.
17054         (tree_divmod_values_to_profile): Do not produce useless value profilers
17055         for divisions.
17057 2005-05-28  Kazu Hirata  <kazu@cs.umass.edu>
17059         * tree-ssa-dom.c (vrp_element_p): Define.
17060         (vrp_hash_elt): Change the type of records to
17061         VEC(vrp_element_p,heap).
17062         (vrp_free): New.
17063         (tree_ssa_dominator_optimize): Pass vrp_free to htab_create.
17064         Update uses of VRP records.
17065         (simplify_cond_and_lookup_avail_expr, record_range): Update
17066         uses of VRP records.
17068         * tree-inline.c (cfun_stack): Change the type to
17069         VEC(function_p,heap).
17070         (push_cfun, pop_cfun): Use VEC instead of VARRAY.
17072 2005-05-27  Ian Lance Taylor  <ian@airs.com>
17074         * c-decl.c (add_stmt): Add C frontend specific version.
17075         (stmts_are_full_exprs_p): Remove.
17076         * c-common.h (STMT_IS_FULL_EXPR_P): Remove.
17077         (stmts_are_full_exprs_p): Don't declare.
17078         * c-semantics.c (add_stmt): Remove.
17080 2005-05-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17082         * config/mips/mips-protos.h (mips_declare_object): Add printf
17083         attribute.
17084         * config/mips/mips.c (mips_declare_object_name): Fix format
17085         argument.
17087 2005-05-27  Roger Sayle  <roger@eyesopen.com>
17089         * reg-stack.c (compensate_edge): Remove original prototype.
17090         (propagate_stack): New function to copy the stack layout
17091         at the start of a basic block from the layout at the end of
17092         one of its predecessors.
17093         (compensate_edge): Assume that both source and destination
17094         blocks have already had their stack layouts defined.
17095         (compensate_edges): Traverse all non-entry edges in the CFG
17096         and call compensate_edge on each in turn.
17097         (convert_regs_1): Change return type to void.  Call
17098         propagate_stack instead of compensate_edge.
17099         (convert_regs_2): Change return type to void.  Update call
17100         to convert_regs_1 to ignore the (now void) return value.
17101         (convert_regs): Update calls to convert_regs_2 to ignore
17102         the (now void) return value.  After all the basic blocks have
17103         been processed, call compensate_edges to actually emit new
17104         insns.
17105         (reg_to_stack): Initialize the aux info for each basic block
17106         with FOR_EACH_BB instead of which FOR_EACH_BB_REVERSE.
17108 2005-05-28  Jan Hubicka  <jh@suse.cz>
17110         * except.c (can_throw_internal_1, can_throw_external_1): Add 
17111         "is_resx" argument.
17112         (can_throw_external, can_throw_internal): Bring into sync wrt
17113         dealing resx.
17114         * except.h (can_throw_internal_1, can_throw_external_1): Update
17115         prototype.
17116         * tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
17117         Deal properly with resx.
17119 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
17121         * basic-block.h (basic_block_def): Add phi_nodes and
17122         predictions.  Remove tree_annotations.
17123         * predict.c (tree_predicted_by_p, tree_predict_edge,
17124         combine_predictions_for_bb): Adjust references to predictions.
17125         * tree-cfg.c (init_empty_tree_cfg, create_bb): Don't call
17126         create_block_annotation.
17127         (create_block_annotation, free_blocks_annotatios,
17128         clear_blocks_annotations): Remove.
17129         (dump_cfg_stats): Don't print out the memory spent on
17130         bb_ann_d.
17131         (delete_tree_cfg_annotations): Don't call free_blocks_annotations.
17132         * tree-flow-inline.h (bb_ann): Remove.
17133         (phi_nodes, set_phi_nodes): Update references to phi_nodes.
17134         * tree-flow.h (bb_ann_d): Remove.
17135         * tree-if-conv.c (process_phi_nodes): Update a reference to
17136         phi_nodes.
17137         * tree-phinodes.c (reserve_phi_args_for_new_edge,
17138         create_phi_node, remove_phi_node): Likewise.
17139         * tree-pretty-print.c (dump_generic_bb_buff): Don't call bb_ann.
17140         * tree-ssa-dom.c (threaded_blocks): New.
17141         (tree_ssa_dominator_optimize): Initialize, clear, and free
17142         threaded_blocks. Update a call to thread_through_all_blocks.
17143         (thread_across_edge): Use threaded_blocks instead of setting
17144         incoming_edge_threaded.
17145         * tree-ssa-threadupdate.c (threaded_through_all_blocks): Take
17146         a bitmap of blocks that are threaded through.
17147         * tree.h: Move the prototype of threaded_through_blocks to
17148         tree-flow.h.
17150         * domwalk.c (walk_dominator_tree, init_walk_dominator_tree,
17151         fini_walk_dominator_tree): Use VEC instead of VARRAY.
17152         * domwalk.h (dom_walk_data): Change the type of
17153         block_data_stack and free_block_data to VEC(void_p,heap)*.
17154         * tree-ssa-dse.c (dse_initialize_block_local_data,
17155         dse_optimize_stmt, dse_record_phis, dse_finalize_block): Use
17156         VEC instead of VARRAY.
17158 2005-05-27  Jan Hubicka  <jh@suse.cz>
17160         * cgraph.c: Include tree-gimple.h
17161         (cgraph_edge): Rename expr to stmt.
17162         (cgraph_create_edge): Likewise.
17163         (cgraph_clone_node): Likewise.
17164         * cgraph.h (cgraph_node): Use call_stmt instead of call_expr.
17165         * cgraphunit.c (record_call_1): Rename to ...
17166         (record_reference): ... this one; do not build edges.
17167         (cgraph_varpool_analyze_pending_decls): Call record_reference directly.
17168         (current_basic_block): Kill.
17169         (cgraph_create_edges): Rewrite to work on gimple statements nicely.
17170         (verify_cgraph_node): Likewise.
17171         * tree-inline.c (copy_body_r): Do not mess up with cgraph edges.
17172         (copy_bb): Mess up with cgraph edges here; simplify EH handling.
17173         (copy_edges_for_bb): Simplify EH handling.
17174         (expand_call_inline): Pass statement to cgraph_edge and
17175         cgraph_create_edge.
17177 2005-05-27  Richard Guenther  <rguenth@gcc.gnu.org>
17179         * tree-inline.c (copy_body_r): Manually fold *& to deal
17180         with ADDR_EXPRs with mismatched types for now.
17182         * gimplify.c (fold_indirect_ref_rhs): New function.
17183         (gimplify_modify_expr_rhs): Use it instead of pessimistic
17184         fold_indirect_ref.
17186         * fold-const.c (fold_indirect_ref_1): Add type argument;
17187         make sure the resulting expression is of this type.
17188         (build_fold_indirect_ref, fold_indirect_ref): Adjust callers.
17190 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
17192         PR tree-optimization/21658
17193         * tree-ssa-ccp.c (ccp_fold): Call fold_binary instead of
17194         fold_binary_to_constant.  Likewise, call fold_unary instead of
17195         fold_unary_to_constant.
17197 2005-05-27  Nathan Sidwell  <nathan@codesourcery.com>
17199         * vec.h: Implement integral type vector specialization.
17200         (VEC_T): Define a non-GTY structure.
17201         (VEC_T_GTY): Define a GTY structure.
17202         (VEC_TA): Rename to ...
17203         (VEC_TA_GTY): ... here.
17204         (DEF_VEC_I, DEF_VEC_ALLOC_I): New.
17205         (DEF_VEC_P, DEF_VEC_ALLOC_P): Adjust.
17206         (DEF_VEC_FUNC_P, DEF_VEC_ALLOC_FUNC_P): New, broken out of
17207         DEF_VEC_P and DEF_VEC_ALLOC_P.
17208         (DEF_VEC_O, DEF_VEC_ALLOC_O): Adjust.
17209         (DEF_VEC_FUNC_O, DEF_VEC_ALLOC_FUNC_O): New, broken out of
17210         DEF_VEC_O and DEF_VEC_ALLOC_O.
17211         * global.c: Use DEF_VEC_I, DEF_VEC_ALLOC_I.
17212         * lambda-code.c: Likewise.
17213         * tree-into-ssa.c: Likewise.
17214         * tree-ssa-live.c: Likewise.
17216 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
17218         * tree-into-ssa.c (update_ssa): Ensure that the operand cache
17219         is up-to-date.
17220         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
17221         update_stmt_if_modified before calling update_ssa.
17223 2005-05-27  Ralf Corsepius  <ralf.corsepius@rtems.org>
17225         * config/rs6000/t-rtems: Remove roe multilib variant.
17227 2005-05-26  Roger Sayle  <roger@eyesopen.com>
17229         PR tree-optimization/9814
17230         * ifcvt.c (noce_emit_move_insn): If we fail to recognize the move
17231         instruction, add the necessary clobbers by re-expanding the RTL
17232         for arithmetic operations via optab.c's expand_unop/expand_binop.
17233         (noce_try_bitop): New function to optimize bit manipulation idioms
17234         of the form "if (x & C) x = x op C" and "if (!(x & C) x = x op C".
17235         (noce_process_if_block): Call noce_try_bitop.
17237 2005-05-26  Roger Sayle  <roger@eyesopen.com>
17239         * reg-stack.c (convert_regs_entry, convert_regs_exit,
17240         convert_regs_1, convert_regs_2, convert_regs): Delete prototypes.
17241         (reg_to_stack): Move to end of the file.  Initialize the per
17242         basic block information here, instead of...
17243         (convert_regs_entry): Here.
17244         (convert_regs): Change unused return type to void.
17246 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
17248         * c-pch.c, timevar.c, timevar.h, unwind-compat.c,
17249         unwind-dw2-fde-compat.c, unwind-dw2-fde.c, config/mmix/mmix.h,
17250         config/rs6000/eabispe.h, config/rs6000/lynx.h,
17251         config/sh/elf.h, config/sh/symbian-pre.h,
17252         config/sparc/sparc-protos.h: Update copyright.
17254 2005-05-26  Mike Stump  <mrs@apple.com>
17256         * darwin.h (ASM_OUTPUT_LABELREF): Handle quoted non-lazy pointers
17257         for Objective-C++.
17258         
17259 2005-05-26  Richard Guenther  <rguenth@gcc.gnu.org>
17261         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
17262         See through ADDR_EXPR in finding place to propagate into.
17264 2005-05-26  Kazu Hirata  <kazu@cs.umass.edu>
17266         * c-common.c, c-parser.c, cfgbuild.c, cfghooks.c, cfghooks.h,
17267         cfgrtl.c, cgraphunit.c, ddg.c, expr.h, gcse.c, ggc-page.c,
17268         ggc-zone.c, gimplify.c, ipa-inline.c, longlong.h, targhooks.c,
17269         tree-flow-inline.h, tree-pass.h, tree-ssa-dse.c,
17270         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
17271         tree-ssa-operands.c, tree-vect-analyze.c,
17272         tree-vect-transform.c, tree-vectorizer.c, tree.c,
17273         config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
17274         config/frv/frv.md, config/i386/i386.c, config/i386/sse.md,
17275         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
17276         config/mcore/mcore.c, config/mips/mips.c, config/mips/mips.md,
17277         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
17278         config/rs6000/rs6000.h, config/sh/sh.c, config/sh/sh.md,
17279         config/sh/ushmedia.h, config/sparc/sparc.c,
17280         config/sparc/sparc.md, config/stormy16/stormy-abi: Fix comment
17281         typos.  Follow spelling conventions.
17282         * doc/invoke.texi, doc/tm.texi, doc/tree-ssa.texi: Fix typos.
17283         Follow spelling conventions.
17285 2005-05-26  David Ung  <davidu@mips.com>
17287         * config/mips/mips.c (mips_use_ins_ext_p): New helper function
17288         that determines whether the MIPS32/64 R2 ext/ins should be used.
17289         * config/mips/mips.h (ISA_HAS_EXT_INS): New macro.
17290         * config/mips/mips.md (extzv): Changed predicate for operand to
17291         nonimmediate_operand. Add code to generate insn patterns for
17292         extzvsi and extzvdi.
17293         (extzv<mode>): New pattern to match mips32/64 r2 ext insn.
17294         (insv): Similarly for insertion.
17295         (insv<mode>): Similarly.
17297 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
17299         * simplify-rtx.c (avoid_constant_pool_reference): Support
17300         offsetted addresses in the constant pool.
17302 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
17304         * df.h (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
17305         * df.c (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
17307 2005-05-26  Jakub Jelinek  <jakub@redhat.com>
17309         PR target/21716
17310         * reg-stack.c (swap_rtx_condition): Don't crash if %ax user was not
17311         found in the basic block and last insn in the basic block is not
17312         INSN_P.  Remove explicit unspec numbers that are no longer valid
17313         from comments.
17315 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
17317         * tree-vect-transform.c (vectorizable_operation): Try word_mode
17318         vectorization if UNITS_PER_WORD == UNITS_PER_SIMD_WORD, even
17319         if a vector mode is available.
17321 2005-05-25  Roger Sayle  <roger@eyesopen.com>
17323         PR middle-end/21709
17324         * fold-const.c (const_binop): Check for division by zero during
17325         complex division.
17327 2005-05-26  Ian Lance Taylor  <ian@airs.com>
17329         * reload1.c (verify_initial_elim_offsets): Add braces to avoid
17330         having a declaration after a statement.
17332 2005-05-26  Richard Sandiford  <rsandifo@redhat.com>
17334         * opt-functions.awk (var_type): New function.
17335         (var_set): Use CLVC_STRING if var_type returns "const char *".
17336         * opth-gen.awk: Use var_type to find out the types of variables.
17337         Don't print comments above each "extern" definition.
17338         * optc-gen.awk: Use var_type in the same way.
17339         * opts.h (cl_var_cond): Rename to...
17340         (cl_var_type): ...this.  Add CLVC_STRING.
17341         (cl_option): Make "flag_var" a "void *" pointer.  Replace "var_cond"
17342         with "var_type".
17343         * opts.c (handle_option, option_enabled): Update after above name
17344         change.  Cast flag_var before using it.  Handle CLVC_STRING.
17345         
17346         * config/alpha/alpha.h (alpha_tls_size): Delete.
17347         * config/alpha/alpha.c (alpha_tls_size, alpha_cpu_string)
17348         (alpha_tune_string, alpha_tp_string, alpha_fprm_string)
17349         (alpha_fptm_string, alpha_mlat_string): Delete.
17350         (alpha_handle_option): Don't set the above variables here.  Use the
17351         integer argument to check the validity of -mtls-size=.
17352         * config/alpha/alpha.opt (mcpu=, mtune=, mfp-rounding-mode=)
17353         (mfp-trap-mode=, mtrap-precision=, mmemory-latency=): Add Var()s.
17354         (mtls-size=): Likewise.  Convert to a UInteger and initialize the
17355         variable to 32.
17357         * config/arc/arc.c (arc_cpu_string, arc_text_string)
17358         (arc_data_string, arc_rodata_string): Delete.
17359         (arc_handle_option): Don't set the above variables here.
17360         * config/arc/arc.opt (mcpu=, mtext=, mdata=, mrodata=): Add Var()s
17361         and initialize them.
17363         * config/arm/arm.c (target_fpu_name, target_fpe_name)
17364         (target_float_abi_name, target_abi_name, structure_size_string)
17365         (arm_pic_register_string): Delete.
17366         (arm_handle_option): Don't set the above variables here, except
17367         in the handling of -mhard-float and -msoft-float.
17368         * config/arm/arm.opt (mabi=, mfloat-abi=, mfp=, mfpe=, mfpu=)
17369         (mpic-register=, mstructure-size-boundary=): Add Var()s.
17371         * config/avr/avr.c (avr_init_stack, avr_mcu_name, TARGET_HANDLE_OPTION)
17372         (avr_handle_option): Delete.
17373         * config/avr/avr.opt (mmcu=, minit-stack=): Add Var()s and initialize
17374         them.
17376         * config/bfin/bfin.c (bfin_library_id): Delete.
17377         (bfin_handle_option): Don't set it.
17378         * config/bfin/bfin.opt (mshared-library-id=): Add Var().
17380         * config/c4x/c4x.h (c4x_rpts_cycles): Delete.
17381         * config/c4x/c4x.c (c4x_rpts_cycles): Delete.
17382         (c4x_handle_option): Don't set c4x_rpts_cycles here.
17383         * config/c4x/c4x.opt (mrpts=): Add Var().
17385         * config/cris/aout.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't set
17386         cris_elinux_stacksize_str here.
17387         * config/cris/aout.opt (melinux-stacksize=): Add Var().
17388         * config/cris/cris.h (cris_max_stackframe_str, cris_cpu_str)
17389         (cris_tune_str, cris_elinux_stacksize_str): Delete.
17390         * config/cris/cris.c (cris_max_stackframe_str, cris_cpu_str)
17391         (cris_tune_str, cris_elinux_stacksize_str): Delete.
17392         (cris_handle_option): Don't set the above variables here.
17393         * config/cris/cris.opt (mcpu=, march=, mtune=, mmax-stackframe=)
17394         (max-stackframe=): Add Var()s.
17396         * config/i386/i386.h (ix86_tune_string, ix86_arch_string): Delete.
17397         * config/i386/i386.c (ix86_cmodel_string, ix86_asm_string)
17398         (ix86_tls_dialect_string, ix86_tune_string, ix86_arch_string)
17399         (ix86_fpmath_string, ix86_regparm_string, ix86_align_loops_string)
17400         (ix86_align_jumps_string, ix86_preferred_stack_boundary_string)
17401         (ix86_branch_cost_string, ix86_align_funcs_string): Delete.
17402         (ix86_handle_option): Don't set the above variables here.
17403         * config/i386/i386.opt (malign-functions=, malign-jumps=)
17404         (malign-loops=, march=, masm=, mbranch-cost=, mcmodel=, mfpmath=)
17405         (mpreferred-stack-boundary=, mregparm=, mtls-dialect=, mtune=): Add
17406         Var()s.
17408         * config/ia64/ia64.h (ia64_tls_size): Delete.
17409         * config/ia64/ia64.c (ia64_tls_size): Delete.
17410         (ia64_handle_option): Treat -mtls-size= as a UInteger option,
17411         reading the integer argument from the "value" parameter.  Don't
17412         set ia64_tls_size here.
17413         * config/ia64/ia64.opt (mtls-size=): Turn into a UInteger option.
17414         Add Var() and Init().
17416         * config/m32r/m32r.h (m32r_cache_flush_func): Delete.
17417         (m32r_cache_flush_trap): Delete.
17418         * config/m32r/m32r.c (m32r_cache_flush_func): Delete.
17419         (m32r_cache_flush_trap): Delete.
17420         (m32r_handle_option): Don't set the above variables when handling
17421         -mflush-func= and -mflush-trap=.
17422         * config/m32r/m32r.opt (-mflush-func=, -mflush-trap=): Add Var()s
17423         and Init()s.
17425         * config/mips/mips.h (mips_cache_flush_func): Delete.
17426         * config/mips/mips.c (mips_arch_string, mips_tune_string)
17427         (mips_cache_flush_func): Delete.
17428         (mips_handle_option): Don't set the above variables when handling
17429         -march=, -mtune= and -mflush-func=.
17430         * config/mips/mips.opt (march=, mflush-func=, mtune=): Add Var()s.
17432         * config/s390/s390.c (s390_arch_string): Delete.
17433         (s390_handle_option): Don't set it here.
17434         * config/s390/s390.opt (march=): Add Var().
17436         * config/sparc/sparc.h (sparc_cmodel_string): Delete.
17437         * config/sparc/sparc.c (sparc_cmodel_string): Delete.
17438         (sparc_handle_option): Don't set it here.
17439         * config/sparc/sparc.opt (mcmodel=): Add Var().
17441 2005-05-25  Roger Sayle  <roger@eyesopen.com>
17443         * convert.c (convert_to_integer) <POINTER_TYPE>: Avoid recursive
17444         call to convert_to_integer by building the NOP_EXPR directly.
17446 2005-05-25  Richard Sandiford  <rsandifo@redhat.com>
17448         * config/rs6000/rs6000.opt (mprioritize-restricted-insns=): Fix typo.
17450 2005-05-25  Daniel Berlin  <dberlin@dberlin.org>
17451             Jeff Law  <law@redhat.com>
17453         * tree-cfg.c (verify_expr, case ADDR_EXPR): Verify invariant,
17454         constant and side_effects of the ADDR_EXPR are consistent.
17456         * tree-nested.c (convert_local_reference): Set CURRENT_FUNCTION_DECL
17457         appropriately around calls to recompute_tree_invarant_for_addr_expr.
17459 2005-05-25  Ulrich Weigand  <uweigand@de.ibm.com>
17461         * config/s390/s390.c (GP_ARG_NUM_REG, FP_ARG_NUM_REG): New defines.
17462         (s390_function_arg, s390_gimplify_va_arg): Use them.
17463         (s390_register_info): Save only required subset of argument
17464         registers into save area for va_list.
17465         (s390_va_start): Initialize only required elements of va_list struct.
17466         (s390_build_builtin_va_list): Set va_list_[gf]pr_counter_field.
17468 2005-05-25  Ulrich Weigand  <uweigand@de.ibm.com>
17470         * reload1.c (verify_initial_elim_offsets): Return boolean status
17471         instead of aborting.
17472         (reload): Adapt verify_initial_elim_offsets call site.  Restart
17473         main loop if some initial elimination offsets changed.
17475 2005-05-25  Adam Nemet  <anemet@lnxw.com>
17477         * config/rs6000/lynx.h (CC1_SPEC): Use -maix-struct-return instead
17478         of -mno-svr4-struct-return.
17480 2005-05-25  Daniel Berlin  <dberlin@dberlin.org>
17482         Fix PR tree-optimization/21705
17483         
17484         * tree-ssa-pre.c (in_fre): New static variable.
17485         (create_value_expr_from): Recursively value number reference ops
17486         in argument lists.
17487         (can_value_number_call): Temporary restrict only exists for
17488         PRE, not FRE.
17490 2005-05-25  Kazu Hirata  <kazu@cs.umass.edu>
17492         * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Replace
17493         sizeof (bitmap *) with sizeof (bitmap).
17495 2005-05-25  Daniel Berlin <dberlin@dberlin.org>
17497         * lambda-code.c (perfect_nestify): Call update_stmt on the exit
17498         condition.
17500 2005-05-25  Adrian Straetling  <straetling@de.ibm.com>
17502         * config/s390/s390.c (TARGET_INSN_VALID_WITHIN_DOLOOP): Set to
17503         hook_bool_rtx_true.
17505 2005-05-25  Jan Hubicka  <jh@suse.cz>
17507         * Makefile.in (ipa-inline.o): Add COEVERAGE_H dependency.
17508         * cgraph.c (cgraph_create_node): Reset estimated_growth.
17509         * cgraph.h (cgraph_global_info): Add estimated_growth.
17510         * ipa-inline.c: Include coverage.h
17511         (max_insns, max_count): New static variables.
17512         (cgraph_estimate_size_after_inlining): Cache the result.
17513         (cgraph_estimate_growth):
17514         * passes.c (rest_of_clean_state): Kill coverage_end_function.
17515         * timevar.def (TV_INLINE_HEURISTICS): New timevar.
17516         * tree-optimize.c (init_tree_optimization_passes): Move profiling before
17517         inlining.
17518         (ipa_passes): Initialize bitmaps.
17520 2005-05-25  Adrian Straetling  <straetling@de.ibm.com>
17522         * loop-doloop.c: Include "target.h". 
17523           (doloop_valid_p): Move tests to function in targhooks.c.
17524         * target.h (struct gcc_target): New target hook
17525           "insn_valid_within_doloop".
17526         * target-def.h: Define default value for "insn_valid_within_doloop".
17527           (TARGET_INITIALIZER): Insert new target hook into initializer.
17528         * targhooks.c (default_insn_valid_within_doloop): New function.
17529         * targhooks.h (default_insn_valid_within_doloop): Declare.
17530         * hooks.c (hook_bool_rtx_true): New function.
17531         * hooks.h (hook_bool_rtx_true): Declare.
17532         * doc/tm.texi: Add documentation for new target hook.
17534 2005-05-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
17536         PR target/21412
17537         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): New macro
17538         * config/sparc/sparc-protos.h (tls_symbolic_operand): Delete.
17539         (sparc_tls_referenced_p): New prototype.
17540         * config/sparc/sparc.c (tls_symbolic_operand): Delete.
17541         (sparc_expand_move): Look for TLS addresses with constant offsets.
17542         (legitimate_constant_p): Use SPARC_SYMBOL_REF_TLS_P instead of
17543         tls_symbolic_operand.
17544         (legitimate_pic_operand_p): Likewise.
17545         (legitimate_address_p): Likewise.
17546         (legitimize_address): Likewise.
17547         (sparc_tls_symbol_ref_1): New function.
17548         (sparc_tls_referenced_p): New function.
17549         * config/sparc/predicates.md (tgd_symbolic_operand): Use
17550         SYMBOL_REF_TLS_MODEL instead of tls_symbolic_operand.
17551         (tld_symbolic_operand): Likewise.
17552         (tie_symbolic_operand): Likewise.
17553         (tle_symbolic_operand): Likewise.
17555 2005-05-24  DJ Delorie  <dj@redhat.com>
17556         
17557         * common.opt (-Wattributes): New.  Default true.
17558         * doc/invoke.texi (-Wno-attributes): Document.
17559         
17560         * attribs.c (decl_attributes): Move warning control from if() to
17561         warning(OPT_*).
17562         * c-common.c (handle_packed_attribute): Likewise.
17563         (handle_nocommon_attribute): Likewise.
17564         (handle_common_attribute): Likewise.
17565         (handle_noreturn_attribute): Likewise.
17566         (handle_noinline_attribute): Likewise.
17567         (handle_always_inline_attribute): Likewise.
17568         (handle_used_attribute): Likewise.
17569         (handle_unused_attribute): Likewise.
17570         (handle_const_attribute): Likewise.
17571         (handle_transparent_union_attribute): Likewise.
17572         (handle_constructor_attribute): Likewise.
17573         (handle_destructor_attribute): Likewise.
17574         (handle_mode_attribute): Likewise.
17575         (handle_alias_attribute): Likewise.
17576         (handle_visibility_attribute): Likewise.
17577         (handle_tls_model_attribute): Likewise.
17578         (handle_malloc_attribute): Likewise.
17579         (handle_returns_twice_attribute): Likewise.
17580         (handle_pure_attribute): Likewise.
17581         (handle_deprecated_attribute): Likewise.
17582         (handle_vector_size_attribute): Likewise.
17583         (handle_nothrow_attribute): Likewise.
17584         (handle_cleanup_attribute): Likewise.
17585         (handle_warn_unused_result_attribute): Likewise.
17586         (handle_sentinel_attribute): Likewise.
17587         * c-decl.c (diagnose_mismatched_decls): Likewise.
17588         (start_decl): Likewise.
17589         (grokdeclarator): Likewise.
17590         (start_function): Likewise.
17591         * c-format.c (check_function_format): Likewise.
17592         * stor-layout.c (place_field): Likewise.
17593         (finalize_record_size): Likewise.
17594         * tree.c (handle_dll_attribute)): Likewise.
17595         * varasm.c (default_assemble_visibility): Likewise.
17596         * config/darwin.c (darwin_handle_weak_import_attribute): Likewise.
17597         (darwin_assemble_visibility): Likewise.
17598         * config/arc/arc.c (arc_handle_interrupt_attribute): Likewise.
17599         * config/arm/arm.c (arm_handle_fndecl_attribute): Likewise.
17600         (arm_handle_isr_attribute): Likewise.
17601         * config/avr/avr.c (avr_handle_progmem_attribute): Likewise.
17602         (avr_handle_fndecl_attribute): Likewise.
17603         * config/bfin/bfin.c (handle_int_attribute): Likewise.
17604         * config/c4x/c4x.c (c4x_handle_fntype_attribute): Likewise.
17605         * config/h8300/h8300.c (h8300_handle_fndecl_attribute): Likewise.
17606         (h8300_handle_eightbit_data_attribute): Likewise.
17607         (h8300_handle_tiny_data_attribute): Likewise.
17608         * config/i386/i386.c (ix86_handle_cdecl_attribute): Likewise.
17609         (ix86_handle_regparm_attribute): Likewise.
17610         (ix86_handle_struct_attribute): Likewise.
17611         * config/i386/winnt.c (ix86_handle_shared_attribute): Likewise.
17612         (i386_pe_encode_section_info): Likewise.
17613         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
17614         * config/ip2k/ip2k.c (ip2k_handle_progmem_attribute): Likewise.
17615         (ip2k_handle_fndecl_attribute): Likewise.
17616         * config/m32r/m32r.c (m32r_handle_model_attribute): Likewise.
17617         * config/m68hc11/m68hc11 (m68hc11_handle_page0_attribute): Likewise.
17618         (m68hc11_handle_fntype_attribute): Likewise.
17619         (m68hc11_encode_section_info): Likewise.
17620         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
17621         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
17622         * config/ns32k/ns32k.c (ns32k_handle_fntype_attribute): Likewise.
17623         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute): Likewise.
17624         * config/sh/sh.c (sh_handle_interrupt_handler_attribute): Likewise.
17625         (sh_handle_sp_switch_attribute): Likewise.
17626         (sh_handle_trap_exit_attribute): Likewise.
17627         * config/sh/symbian.c (sh_symbian_dllimport_p): Likewise.
17628         (sh_symbian_handle_dll_attribute): Likewise.
17629         * config/stormy16/stormy16.c (xstormy16_handle_interrupt_attribute): Likewise.
17630         (xstormy16_handle_below100_attribute): Likewise.
17631         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
17633         * c-common.c (unsigned_conversion_warning): Move warning control
17634         from if() to warning(OPT_*).
17635         (c_common_truthvalue_conversion): Likewise.
17636         (c_do_switch_warnings): Likewise.
17637         * c-decl.c (diagnose_mismatched_decls): Likewise.
17638         (diagnose_mismatched_decls): Likewise.
17639         (define_label): Likewise.
17640         (grokdeclarator): Likewise.
17641         * c-format.c (check_format_info): Likewise.
17642         * c-lex.c (interpret_integer): Likwise.
17643         (lex_string): Likewise.
17644         * c-opts.c (c_common_post_options): Likewise.
17645         * c-parser.c (c_parser_unary_expression): Likewise.
17646         * c-pragma.c (handle_pragma_redefine_extname): Likewise.
17647         (handle_pragma_extern_prefix): Likewise.
17648         * c-typeck.c (build_binary_op): Likewise.
17649         * gcse.c (is_too_expensive): Likewise.
17650         * opts.c (decode_options): Likewise.
17651         * stor-layout.c (place_field): Likewise.
17652         * tree-cfg.c (remove_bb): Likewise.
17654         * c.opt (-Wreturn-type): Add Var(warn_return_type).
17655         * flags.h (warn_return_type): Remove.
17656         * toplev.c (warn_return_type): Likewise.
17658 2005-05-24  Kelley Cook  <kcook@gcc.gnu.org>
17660         * configure.ac: Don't use gcc_AC_C_LONG_LONG.  Check for
17661         existence of long long and __int64 before determining their size.
17662         * aclocal.m4: Delete gcc_AC_C_LONG_LONG.
17663         * configure, config.h.in:  Regenerate.
17665 2005-05-24  Kelley Cook  <kcook@gcc.gnu.org>
17667         * configure: Regenerate.
17669 2005-05-24  Ziemowit Laski  <zlaski@apple.com>
17671         * c-common.h (objc_comptypes): Remove prototype.
17672         (objc_compare_types): New prototype.
17673         (objc_volatilized_decl): Likewise.
17674         (objc_type_quals_match): Likewise.
17675         * c-decl.c (objc_mark_locals_volatile): Streamline by calling
17676         objc_volatilize_decl().
17677         * c-typeck.c (comp_target_types): Remove third parameter; do
17678         not call objc_comptypes().
17679         (comptypes): Remove calls to objc_comptypes().
17680         (build_function_call): Extend compatible prototype check to ObjC.
17681         (build_conditional_expr): Adjust call to comp_target_types().
17682         (convert_for_assignment): Call objc_compare_types() instead of
17683         objc_comptypes(); adjust calls to comp_target_types(); call
17684         objc_type_quals_match() before issuing qualifier mismatch
17685         warnings.
17686         (build_binary_op): Call objc_compare_types() before issuing
17687         pointer mismatch warnings; adjust calls to
17688         comp_target_types().
17689         * stub-objc.c (objc_comptypes): Remove stub.
17690         (objc_compare_types): New stub.
17691         (objc_volatilized_decl): Likewise.
17692         (objc_type_quals_match): Likewise.
17694 2005-05-24  Paolo Carlini  <pcarlini@suse.de>
17696         * config/ia64/ia64intrin.h: Define nothing for C++:
17697         overloaded builtins have been ported to C++.
17699 2005-05-24  Jeff Law  <law@redhat.com>
17701         * tree-nested.c (build_addr): New "context" argument.  Temporarily
17702         set current_function_decl around the call to build the ADDR_EXPR.
17703         (get_static_chain): Pass proper context to build_addr.
17704         (convert_nl_goto_reference): Likewise.
17705         (convert_tramp_reference): Likewise.
17706         (final_nesting_tree_1): Likewise.
17707         * tree-profile.c (tree_gen_interval_profiler): Likewise.
17708         (tree_gen_pow2_profiler): Likewise.
17709         (tree_gen_one_value_profiler): Likewise.
17710         * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Likewise.
17711         * tree.h (build_addr): Update prototype.
17713 2005-05-24  Kazu Hirata  <kazu@cs.umass.edu>
17715         * tree-flow.h (bb_ann_d): Remove has_escape_site.
17716         * tree-ssa-alias.c (compute_points_to_addr_escape): Don't
17717         write to has_escape_site.
17719 2005-05-24  Jeff Law  <law@redhat.com>
17721         * Makefile.in (tree-cfg.o): Depend on tree-ssa-propagate.h.
17722         * tree-cfg.c: Include tree-ssa-propagate.h.
17723         (replace_uses_by): Call recompute_tree_invarant_for_addr_expr as
17724         needed.
17726 2005-05-24  Nick Clifton  <nickc@redhat.com>
17728         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
17729         __NO_FPRS__ when 'f' class registers will not be available. 
17731 2005-05-24  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
17733         * config/m32r/m32r.c (m32r_expand_block_move):  Return 0 if
17734         nothing was done.
17735         * config/m32r/m32r.md (movmemsi):  If m32r_expand_block_move did
17736         nothing then FAIL.
17737         * config/m32r/m32r/m32r-protos.h  (m32r_expand_block_move): Update
17738         prototype.
17740 2005-05-23  Jeff Law  <law@redhat.com>
17742         * tree-ssa-dom.c (cprop_into_stmt): Do not call
17743         recompute_tree_invariant_for_addr_expr here.
17744         (optimize_stmt): Call it here instead and do so if anything
17745         at all has changed in the statement and the RHS is an ADDR_EXPR.
17746         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): If
17747         needed, call recompute_tree_invariant_for_addr_expr.
17748         * tree-ssa-propagate.c (substitute_and_fold): Call
17749         recompute_tree_invariant_for_addr_expr as needed.
17751 2005-05-23  Andreas Krebbel  <krebbel1@de.ibm.com>
17753         * config/s390/s390.c (s390_optimize_prologue): Don't replace an insn
17754         saving less registers than the replacement.
17756 2005-05-23  Jan Hubicka  <jh@suse.cz>
17758         * tree-flow.h (stmt_ann_d): Kill GTY ((skip)) mark on BB.
17760 2005-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
17762         * config/sparc/sparc-protos.h (sparc_expand_move): New prototype.
17763         * config/sparc/sparc.c (sparc_expand_move): New function.
17764         (sparc_emit_set_const64): Rewrite assert condition on entry.
17765         (legitimate_constant_p) <CONST_VECTOR>: New case.
17766         (legitimize_pic_address): Use TARGET_ARCH64 to select the mode.
17767         * config/sparc/sparc.md (movqi, movhi, movsi, movdi, movV32,
17768         movV64, movtf): Use nonimmediate_operand for the first operand.
17769         Rewrite.  Only invoke sparc_expand_move.
17770         * config/sparc/predicates.md (input_operand): Reorder tests.
17772 2005-05-23  Jan Beulich  <jbeulich@novell.com>
17774         * gthr-posix.h (__gthread_recursive_mutex_init_function): Add
17775         missing return statement.
17777 2005-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
17779         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Use
17780         emit_move_insn for moves to TFmode stack slots.
17782 2005-05-21  Richard Guenther  <rguenth@gcc.gnu.org>
17784         * tree-stdarg.c (execute_optimize_stdarg): Handle references
17785         to va_list of the form &va[0].
17787 2005-05-20  Jan Hubicka  <jh@suse.cz>
17789         * Makefile.in (insn-emit.o): Add basic-block.h dependency.
17790         * genemit.c (main): Make insn-emit to include basic-block.h too.
17792 2005-05-20  Jan Hubicka  <jh@suse.cz>
17794         * cgraphunit.c (cgraph_expand_function): Force function being lowered.
17796 2005-05-19  Richard Henderson  <rth@redhat.com>
17798         * config/alpha/alpha.c (emit_unlikely_jump, emit_load_locked,
17799         emit_store_conditional): Split out from ...
17800         (alpha_split_atomic_op): ... here.
17801         (alpha_split_compare_and_swap): New; extract from .md file.
17802         (alpha_split_lock_test_and_set): Likewise.
17803         * config/alpha/alpha-protos.h: Update.
17804         * config/alpha/sync.md (sync_compare_and_swap<I48MODE>): Move
17805         split code into alpha.c.
17806         (sync_lock_test_and_set<I48MODE>): Likewise.
17808 2005-05-19  Richard Henderson  <rth@redhat.com>
17810         * unwind.h, unwind-pe.h: Revert gcc_unreachable change of 05-17.
17812 2005-05-19  Richard Henderson  <rth@redhat.com>
17814         * config/i386/sse.md (mulv4si3): Use all register inputs.
17815         (mulv2di3): Likewise.
17817 2005-05-19  Richard Guenther  <rguenth@gcc.gnu.org>
17819         * tree-ssa-loop-ivopts.c (determine_base_object): Use
17820         build_fold_addr_expr to generate trees of correct type.
17821         Use fold_buildN if possible.
17823 2005-05-19  Jan Hubicka  <jh@suse.cz>
17825         * basic-block.h (REG_BR_PROB_BASE): Define.
17826         * cgraph.c (cgraph_create_edge): Initialize loop_nest and count.
17827         (dump_cgraph_node): Dump count.
17828         (cgraph_clone_edge): Rescale counts.
17829         (cgraph_clone_node): Likewise.
17830         * cgraph.h: Include basic-block.h
17831         (cgraph_node): Add count.
17832         (cgraph_edge): Add count and loop_nest.
17833         (cgraph_node, cgraph_edge, cgraph_clone_edge, cgraph_clone_node):
17834         Update prototypes.
17835         * cgraphunit.c: Kill now redundant inlining comment.
17836         (cgraph_create_edges): Make static, maintain current basic block;
17837         fix pasto.
17838         (record_call_1): Fill in new fields.
17839         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
17840         cgraph_clone_node.
17841         (cgraph_decide_recursive_inlining): Likewise.
17842         * rtl.h (REG_BR_PROB_BASE): Kill.
17843         * tree-inline.c (copy_body_r): Update call of cgraph_clone_edge.
17844         (expand_call_inline): Update call of cgraph_create_edge.
17845         * tree-optimize.c (tree_rest_of_compilation): Likewise.
17847 2005-05-19  Nick Clifton  <nickc@redhat.com>
17849         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use the
17850         new rs6000_explicit_options structure.
17852 2005-05-19  Richard Henderson  <rth@redhat.com>
17854         PR target/21390
17855         * config/alpha/alpha.c (alpha_emit_conditional_branch): Move 
17856         TFmode code swapping ...
17857         (alpha_emit_xfloating_compare): ... here.
17858         (alpha_emit_setcc): Update to match.
17859         (alpha_lookup_xfloating_lib_func): Assert TARGET_HAS_XFLOATING_LIBS.
17861 2005-05-19  Richard Henderson  <rth@redhat.com>
17863         PR target/21657
17864         * config/ia64/ia64.c (ia64_expand_tls_address): Remove extra
17865         memory indirection in local-dynamic case.
17867 2005-05-18  Jie Zhang  <jie.zhang@analog.com>
17868             Bernd Schmidt  <bernd.schmidt@analog.com>
17870         * config/bfin/bfin.c (branch_dest): Add comment why it's
17871         necessary.
17872         * config/bfin/bfin.md (attr "length" default): Change the offset of
17873         forward conditional branch of length 4 from 4096 to 4092.
17875 2005-05-19  Jan Beulich  <jbeulich@novell.com>
17877         * unwind-compat.c: Include tconfig.h and tsystem.h.
17878         * unwind-dw2-fde-compat.c: Likewise.
17880 2005-05-18  Richard Henderson  <rth@redhat.com>
17882         PR 21541
17883         * ifcvt.c (noce_process_if_block): Avoid conversion when the
17884         memory destination is readonly.
17886 2005-05-18  Richard Henderson  <rth@redhat.com>
17888         PR 21541
17889         * tree-ssa-operands.c (opf_non_specific): New.
17890         (get_asm_expr_operands): Set it.
17891         (add_call_clobber_ops, add_call_read_ops): Likewise.
17892         (add_stmt_operand): Test it instead of opf_kill_def when
17893         considering unmodifiable variables.
17895         * tree-ssa-operands.c (get_expr_operands): Fix exact test.
17897 2005-05-19  Kazu Hirata  <kazu@cs.umass.edu>
17899         * cfgexpand.c, tree-cfg.c, tree-inline.c, tree-optimize.c,
17900         tree-ssa-forwprop.c: Fix comment typos.
17901         * doc/invoke.texi: Fix a typo.
17903 2005-05-18  Richard Henderson  <rth@redhat.com>
17905         * config.gcc (powerpc-*-linux*): Include linux64.opt when
17906         including linux64.h.
17908 2005-05-18  Richard Henderson  <rth@redhat.com>
17910         * tree-cfg.c (pass_remove_useless): Revert last change.
17911         * tree-optimize.c (init_tree_optimization_passes): Initialize
17912         all_lowering_passes with PROP_gimple_any.
17914 2005-05-18  Devang Patel  <dpatel@apple.com>
17916         * config/rs6000/rs6000.md (insvsi_internal1): Subtract shift from
17917         the mask end.
17918         
17919 2005-05-18  Richard Henderson  <rth@redhat.com>
17921         * tree-ssa-forwprop.c (cfg_changed): New.
17922         (tidy_after_forward_propagate_addr): New.
17923         (forward_propagate_addr_expr): Use it, and fold_stmt_inplace.
17924         (forward_propagate_addr_into_variable_array_index): Likewise.
17925         (tree_ssa_forward_propagate_single_use_vars): Cleanup cfg if
17926         edges were removed.
17928 2005-05-18  Geoffrey Keating  <geoffk@apple.com>
17930         * dummy-checksum.c: New.
17931         * genchecksum.c: New.
17932         * c.opt (print_pch_checksum): New flag.
17933         * c-pch.c (struct c_pch_validity): Make much shorter.
17934         (no_checksum): New.
17935         (host_machine): Remove.
17936         (target_machine): Remove.
17937         (get_ident): Change PCH version number.
17938         (pch_init): When -fverbose-asm, print out the compiler fingerprint.
17939         Don't put triplets or version string in PCH validity data.
17940         Do put the compiler checksum in the validity data.
17941         (c_common_valid_pch): Don't check triplets or version string.  Do
17942         check checksum.
17943         (c_common_print_pch_checksum): New.
17944         * c-opts.c (c_common_handle_option): Add OPT_print_pch_checksum.
17945         Print fingerprint with -v.
17946         * c-common.h (c_common_print_pch_checksum): New.
17947         (executable_checksum): New.
17948         * Makefile.in (STAGEMOVESTUFF): Add cc1*-dummy, *-checksum.c.
17949         (cc1-dummy): New rule.
17950         (cc1-checksum.c): New rule.
17951         (cc1-checksum.o): New rule.
17952         (cc1): Add checksum support.
17953         (build/genchecksum): New.
17954         (build/genchecksum.o): New.
17955         (dummy-checksum.o): New.
17956         (genobjnames): Add genchecksum.o.
17957         (mostlyclean): Remove *-checksum.c.
17958         (gnucompare): Add libgcc to list of directories checked.
17959         Make comparison problems in libgcc/ and with checksum files only
17960         be warnings.
17961         * doc/invoke.texi (Precompiled Headers): Remove caution.
17962         Document that it must be the exact same binary.  Add a few
17963         known-safe flags to the list.
17965         * rs6000/predicates.md (fix_trunc_dest_operand): New.
17966         * rs6000/rs6000.md (fix_truncdfsi2): Use fix_trunc_dest_operand.
17967         Check that a memory operand is valid before trying to use it.
17968         
17969         * tree-cfg.c (pass_remove_useless): This pass works on trees.
17971 2005-05-18  Richard Guenther  <rguenth@gcc.gnu.org>
17973         * tree.c (build1_stat): Don't try to handle two-operand
17974         tree codes.
17976 2005-05-18  Richard Sandiford  <rsandifo@redhat.com>
17978         * config.gcc (sh*-*-*): Define SUPPORT_* macros to 1.
17979         * config/sh/sh.h: Update mask names throughout.
17980         (target_flags, ISIZE_BIT, DALIGN_BIT, SH1_BIT, SH2_BIT, SH3_BIT)
17981         (SH_E_BIT, HARD_SH4_BIT, FPU_SINGLE_BIT, SH4_BIT, SH4A_BIT, FMOVD_BIT)
17982         (SH5_BIT, SPACE_BIT, BIGTABLE_BIT, RELAX_BIT, USERMODE_BIT)
17983         (HITACHI_BIT, NOMACSAVE_BIT, PREFERGOT_BIT, PADSTRUCT_BIT)
17984         (LITTLE_ENDIAN_BIT, IEEE_BIT, SAVE_ALL_TR_BIT, HARD_SH2A_BIT)
17985         (HARD_SH2A_DOUBLE_BIT, INDEXED_ADDRESS_BIT, PT_FIXED_BIT)
17986         (INVALID_SYMBOLS_BIT, ADJUST_UNROLL_BIT, TARGET_DUMPISIZE)
17987         (TARGET_ALIGN_DOUBLE, TARGET_SH1, TARGET_SH2, TARGET_SH3)
17988         (TARGET_HARD_SH4, TARGET_FPU_SINGLE, TARGET_SH5, TARGET_FMOVD)
17989         (TARGET_IEEE, TARGET_SMALLCODE, TARGET_BIGTABLE, TARGET_RELAX)
17990         (TARGET_HITACHI, TARGET_NOMACSAVE, TARGET_PADSTRUCT)
17991         (TARGET_LITTLE_ENDIAN, TARGET_USERMODE, TARGET_PREFERGOT)
17992         (TARGET_SAVE_ALL_TARGET_REGS, TARGET_ALLOW_INDEXED_ADDRESS)
17993         (TARGET_PT_FIXED, TARGET_INVALID_SYMBOLS, TARGET_ADJUST_UNROLL)
17994         (TARGET_SWITCH_SH1, TARGET_SWITCH_SH2, TARGET_SWITCH_SH2E)
17995         (TARGET_SWITCH_SH2A, TARGET_SWITCH_SH2A_SINGLE_ONLY)
17996         (TARGET_SWITCH_SH2A_SINGLE, TARGET_SWITCH_SH2A_NOFPU)
17997         (TARGET_SWITCH_SH3, TARGET_SWITCH_SH3E, TARGET_SWITCH_SH4_SINGLE_ONLY)
17998         (TARGET_SWITCH_SH4_SINGLE, TARGET_SWITCH_SH4_NOFPU, TARGET_SWITCH_SH4)
17999         (TARGET_SWITCH_SH4A, TARGET_SWITCH_SH4A_SINGLE_ONLY)
18000         (TARGET_SWITCH_SH4A_SINGLE, TARGET_SWITCH_SH4A_NOFPU)
18001         (TARGET_SWITCH_SH4AL, TARGET_SWITCH_SH5_64MEDIA)
18002         (TARGET_SWITCH_SH5_64MEDIA_NOFPU, TARGET_SWITCHES_SH5_32MEDIA)
18003         (TARGET_SWITCHES_SH5_32MEDIA_NOFPU, TARGET_SWITCH_SH5_32_ANY_EXTRA)
18004         (TARGET_SWITCH_SH5_MEDIA_ANY_EXTRA, TARGET_SWITCHES)
18005         (SUBTARGET_SWITCHES): Delete.
18006         (TARGET_SH2E, TARGET_SH2A, TARGET_SH2A_SINGLE, TARGET_SH2A_DOUBLE)
18007         (TARGET_SH3E, TARGET_CACHE32, TARGET_SUPERSCALAR, TARGET_HARVARD)
18008         (TARGET_FPU_DOUBLE, TARGET_SH4A_ARCH, TARGET_SHMEDIA32)
18009         (TARGET_SHMEDIA64): Redefine using other TARGET_* macros.
18010         (TARGET_SH4): Undefine options.h definition and check MASK_SH1 as well.
18011         (SUPPORT_SH1, SUPPORT_SH2E, SUPPORT_SH4, SUPPORT_SH4_SINGLE)
18012         (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Make numeric.
18013         (SUPPORT_SH2): Define to 1 if SUPPORT_SH1.
18014         (SUPPORT_SH3): Likewise SUPPORT_SH2.
18015         (SUPPORT_SH4_NOFPU): Likewise SUPPORT_SH3.
18016         (SUPPORT_SH4A_NOFPU, SUPPORT_SH4AL, SUPPORT_SH2A_NOFPU): Likewise
18017         SUPPORT_SH4_NOFPU.
18018         (SUPPORT_SH3E): Likewise SUPPORT_SH2E.
18019         (SUPPORT_SH4_SINGLE_ONLY, SUPPORT_SH4A_SINGLE_ONLY)
18020         (SUPPORT_SH2A_SINGLE_ONLY): Likewise SUPPORT_SH3E.
18021         (SUPPORT_SH4A): Likewise SUPPORT_SH4.
18022         (SUPPORT_SH4A_SINGLE): Likewise SUPPORT_SH4_SINGLE.
18023         (SUPPORT_SH5_32MEDIA): Likewise SUPPORT_SH5_COMPACT.
18024         (SUPPORT_SH5_32MEDIA_NOFPU): Likewise SUPPORT_SH5_COMPACT_NOFPU.
18025         (SUPPORT_ANY_SH5_32MEDIA, SUPPORT_ANY_SH5_64MEDIA)
18026         (SUPPORT_ANY_SH5): New macros.
18027         (TARGET_NONE): Replace with...
18028         (MASK_ARCH): ...this new macro.
18029         * config/sh/elf.h: Update mask names
18030         * config/sh/linux.h: Likewise.
18031         * config/sh/little.h: Likewise.
18032         * config/sh/netbsd-elf.h: Likewise.
18033         * config/sh/symbian-pre.h: Likewise.
18034         * config/sh/sh.c (sh_handle_option): New function.
18035         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
18036         (calc_live_regs): Use MASK_FPU_SINGLE instead of FPU_SINGLE_BIT.
18037         (sh_target_switches, target_switches): Delete.
18038         (sh_pch_valid_p): Check for specific differences in the target_flags
18039         settings.
18040         (sh_init_cumulative_args): Use MASK_HITACHI instead of HITACHI_BIT.
18041         * config/sh/sh.opt: New file.
18043 2005-05-18  Richard Henderson  <rth@redhat.com>
18045         PR target/21632
18046         * config/ia64/ia64.c (ia64_extra_constraint) <'T'>: Use
18047         small_addr_symbolic_operand.
18049 2005-05-18  Jeff Law  <law@redhat.com>
18051         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
18052         propagate an ADDR_EXPR if the definition and use sites are
18053         in different EH regions.
18055 2005-05-18  Ian Lance Taylor  <ian@airs.com>
18057         * read-rtl.c (mode_attr_index): Use obstack_grow0, not
18058         obstack_grow.
18060 2005-05-18  Daniel Berlin  <dberlin@dberlin.org>
18062         * cfgrtl.c (purge_dead_edges): Don't remove fake edges.
18064 2005-05-18  Daniel Berlin  <dberlin@dberlin.org>
18065         
18066         Fix PR tree-optimization/21407
18068         * tree-ssa-operands.c (note_addressable): Change
18069         COMPONENT_REF handling in response to aliasing
18070         discussion.
18072 2005-05-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
18074         * config/sparc/sol2.h (TARGET_DEFAULT): Add back MASK_APP_REGS.
18075         * config/sparc/sol2-64.h (TARGET_DEFAULT): Likewise.
18076         * config/sparc/sp-elf.h (TARGET_DEFAULT): Delete.
18077         * doc/invoke.texi (SPARC options): Document that -mapp-regs is
18078         the default on Solaris too.
18080 2005-05-17  Daniel Berlin  <dberlin@dberlin.org>
18082         * tree-ssa-pre.c (find_or_generate_expression): CALL_EXPR
18083         is okay too.
18085 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
18087         * timevar.def (TV_SCEV_CONST): New timevar.
18088         * tree-optimize.c (init_tree_optimization_passes): Add
18089         pass_scev_cprop.
18090         * tree-pass.h (pass_scev_cprop): Declare.
18091         * tree-scalar-evolution.c (scev_const_prop): New function.
18092         * tree-scalar-evolution.h (scev_const_prop): Declare.
18093         * tree-ssa-loop.c (gate_scev_const_prop, pass_scev_cprop):
18094         New.
18095         * tree-cfg.c (replace_uses_by): Export.
18096         * tree-flow.h (replace_uses_by): Declare.
18098 2005-05-17  Ziemowit Laski  <zlaski@apple.com>
18099             Mike Stump  <mrs@apple.com>
18101         Yet more Objective-C++...
18103         * c-common.h (objc_finish_try_stmt): Add.
18104         (objc_build_synchronized): Add.
18105         (objc_generate_write_barrier): Add.
18106         * stub-objc.c (objc_build_synchronized): Add return value.
18107         (objc_finish_try_stmt): Likewise.
18108         (objc_generate_write_barrier): Add.
18110         * c-common.h (objc_rewrite_function_call): Add.
18111         * c-typeck.c (build_function_call): Allow objc to rewrite
18112         FUNCTION_DECLs.
18113         (build_modify_expr): Allow objc to generate write barriers.
18114         * c.opt (Wassign-intercept): Add.
18115         (Wstrict-selector-match): Add.
18116         (fobjc-call-cxx-cdtors): Add.
18117         (fobjc-direct-dispatch): Add.
18118         (fobjc-gc): Add.
18119         * dbxout.c (get_lang_number): Add Objective-C++ support.
18120         * doc/invoke.texi (-fobjc-call-cxx-cdtors): Likewise.
18121         (-Wstrict-selector-match): Likewise.
18122         (-fobjc-direct-dispatch): Likewise.
18123         (-Wassign-intercept): Likewise.
18124         (Overall Options): Likewise.
18125         * gengtype.c (get_output_file_with_visibility): Likewise.
18126         * stub-objc.c (objc_rewrite_function_call): Add.
18127         * config/darwin.h (ASM_OUTPUT_LABELREF): Improved quoting support.
18129         * c-common.c (flag_objc_exceptions): Remove.
18130         (flag_objc_sjlj_exceptions): Remove.
18131         * c-decl.c (objc_mark_locals_volatile): Don't change decls
18132         that are already ok.
18133         * c-opts.c (c_common_handle_option, case
18134         OPT_fobjc_exceptions): Remove.
18135         (case OPT_fobjc_sjlj_exceptions): Remove
18136         * c.opt (fobjc-call-cxx-cdtors): Have opt create the flag.
18137         (fobjc-exceptions): Likewise.
18138         (fobjc-sjlj-exceptions): Likewise.
18139         * config/rs6000/darwin.h (OFFS_MSGSEND_FAST): Add.
18140         (OFFS_ASSIGNIVAR_FAST): Add.
18141         
18142 2005-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
18144         * config/sparc/sparc.md (movhi): Do not test constness
18145         of operand #1 twice.
18146         (movsi): Likewise.
18147         (movdi): Unconditionally accept zero as second operand
18148         when the first is memory.
18149         (movdi_insn_sp32): Handle above case.
18150         (DImode splitter): Use predicates.
18151         (DImode splitter): Use const_zero_operand predicate.
18152         (movsf_insn): Swap 2 alternatives.
18154 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
18156         * tree-ssa-loop-ivopts.c (find_bivs, find_givs_in_stmt_scev): Apply
18157         expand_simple_operations to bases of the ivs.
18158         (tree_int_cst_sign_bit): Export.
18159         * tree-flow.h (expand_simple_operations): Declare.
18160         * tree-ssa-loop-niter.c (number_of_iterations_cond): Use
18161         tree_int_cst_sign_bit.
18162         (expand_simple_operations): Export.
18163         * tree.h (tree_int_cst_sign_bit): Declare.
18165 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
18167         * tree-cfg.c (tree_can_merge_blocks_p): Allow phi nodes in the
18168         merged block.
18169         (replace_uses_by): New function.
18170         (tree_merge_blocks): Eliminate the phi nodes in the merged block.
18171         * tree-flow.h (fold_stmt_inplace): Declare.
18172         * tree-ssa-ccp.c (fold_stmt_inplace): New function.
18173         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update dominance
18174         info after cfg cleanup.
18176 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
18178         * cfgloop.h (just_once_each_iteration_p): Declaration changed.
18179         * cfgloopanal.c (just_once_each_iteration_p): Make the loop argument
18180         const.
18182 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
18184         * ggc-page.c (ggc_alloc_stat): Record amount of memory allocated.
18185         * ggc-zone.c (ggc_alloc_zone_1): Ditto.
18186         * timevar.c (timevar_ggc_mem_total): New variable.
18187         (GGC_MEM_BOUND): New constant.
18188         (get_time): Record ggc memory status.
18189         (timevar_accumulate): Accumulate amount of ggc memory.
18190         (timevar_print): Print consumption of ggc memory.
18191         * timevar.def (TV_FIND_REFERENCED_VARS, TV_TREE_REDPHI,
18192         TV_TREE_LOOP_BOUNDS, TV_TREE_LOOP_IVCANON, TV_TREE_VECTORIZATION,
18193         TV_TREE_LINEAR_TRANSFORM): Shorten strings to fit in 22 characters.
18194         * timevar.h (struct timevar_time_def): Add ggc_mem field.
18195         (timevar_ggc_mem_total): Declare.
18197 2005-05-17  Kazu Hirata  <kazu@cs.umass.edu>
18199         * tree-into-ssa.c (update_ssa): Clean up by shortening the
18200         live range of DFS.
18202 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
18204         * config/cris/cris.md (ncond, ocode, rcond): Remove separate
18205         define_code_attr.
18206         ("b<ncond:code>", "b<ocond:code>", "b<rcond:code>")
18207         ("*b<ncond:code>_reversed", "*b<ocond:code>_reversed")
18208         ("*b<rcond:code>_reversed", "s<ncond:code>", "s<rcond:code>")
18209         ("s<ocond:code>"): Rename from respectively "b<ncond>",
18210         "b<ocond>", "b<rcond>", ("*b<ncond>_reversed",
18211         "*b<ocond>_reversed", "*b<rcond>_reversed", "s<ncond>",
18212         "s<rcond>" and "s<ocond>".
18213         ("b<ocond:code>", "*b<ocond:code>_reversed")
18214         ("*b<rcond:code>_reversed"): Remove extraneous backslashes in
18215         output statement section.
18217 2005-05-17  Roger Sayle  <roger@eyesopen.com>
18219         * c-typeck.c (common_type): Also handle BOOLEAN_TYPEs.
18221 2005-05-17  Steven Bosscher  <stevenb@suse.de>
18222             Stuart Hastings <stuart@apple.com>
18223             Jan Hubicka  <jh@suse.cz>
18224             Dale Johannesen  <dalej@apple.com>
18226         * cgraph.h (cgraph_node): Add 'lowered' state.
18227         (cgraph_lower_function): Declare.
18228         * cgraphunit.c (cgraph_finalize_function): Initialize lowered flag.
18229         (cgraph_lower_function): New function.
18230         (cgraph_create_edges): Deal with lowered function bodies.
18231         (verify_cgraph_node): Likewise.
18232         (cgraph_analyze_function): Do lowering job.
18233         (cgraph_build_static_cdtor): Likewise.
18234         * function.h (struct function): Add saved_eh and saved_cfg.
18235         * integrate.c (copy_decl_for_inlining): Kill LABEL_DECL_UID field.
18236         * tree-cfg.c (fold_cond_expr_cond): Export.
18237         * tree-flow.h (fold_cond_expr_cond): Declare.
18238         * tree-inline.c: Include basic-block, ggc, tree-flow, except.h and
18239         pointer-set.
18240         (struct_inline_data): Kill fnd, first_inlined_fn, ret_label,
18241         in_target_cleanup_p, tree_pruner, tsi; add callee, caller and
18242         callee_cfun, block, eh_region, eh_region_offset.
18243         (inlining_p): New predicate.
18244         (remap_decl): Update for new inline_data; declare newly created inline
18245         vars in low gimple way.
18246         (copy_body_r): Update for new datastructure, simplify some of handling
18247         when we are in gimple; remap LABEL_DECLs for EH; copy TREE_BLOCK;
18248         deal with RESX_EXPRs.
18249         (copy_bb): New.
18250         (copy_edges_for_bb): Likewise.
18251         (remap_decl_1): New.
18252         (copy_cfg_body): New.
18253         (copy_generic_body): Rewrite to work on low gimple.
18254         (copy_body): Turn into simple wrapper around copy_cfg_body.
18255         (setup_one_parameter): Insert new statements into given basic block.
18256         (initialize_initialized_parameters): Likewise, reorganize way things are
18257         gimplified.
18258         (declare_return_variable): Update for new inline data datastructure.
18259         (inline_forbidden_p): Work on low gimple.
18260         (estimate_num_insns): Likewise.
18261         (expand_call_inline): Work on CFG.
18262         (push_cfun, pop_cfun): New functions.
18263         (cfun_stack): New stack.
18264         (add_lexical_block): New function.
18265         (gimple_expand_calls_inline): Work on basic block.
18266         (optimize_inline_calls): Likewise.
18267         (clone_body, save_body, unsave_ewpr_now): Update for new
18268         datastructures.
18269         (declare_inline_vars): Work on block instead of bind_expr.
18270         (inlining_p): New predicate.
18271         * tree-inline.h (push_cfun, pop_cfun): Declare.
18272         * tree-optimize.c: Include except.h
18273         (all_lowering_passes): New variable.
18274         (execute_fixup_cfg, pass_fixup_cfg): New pass.
18275         (init_tree_optimization_passes): Move some to all_lowering_passes.
18276         (tree_lowering_passes): New function.
18277         (tree_rest_of_compilation): Register cfg hooks; save/unsave eh.
18278         * tree-pass.h (tree_lowering_passes): Declare
18280 2005-05-17  Nathan Sidwell  <nathan@codesourcery.com>
18282         * unwind-dw2-fde-darwin.c: Include tsystem.h.
18284 2005-05-17  Jeff Law  <law@redhat.com>
18286         * Makefile.in (tree-ssa-forwprop.o): Depend on langhooks.h.
18287         * tree-ssa-forwprop.c: Include langhooks.h.
18288         (forward_propagate_addr_expr_into_variable_array_index): New.
18289         (forward_propagate_addr_expr): New.
18290         (tree_ssa_forward_propagate_single_use_vars): Loop over all
18291         the statements in the block instead of just the last statement.
18292         Call forward_propagate_addr_expr as needed.
18293         (pass_forwprop): Update the SSA graph after forward propagation is
18294         complete.
18296 2005-05-17  Nathan Sidwell  <nathan@codesourcery.com>
18298         * unwind-dw2-fde-glibc.c (base_from_cb_data,
18299         _Unwind_IteratePhdrCallback): Use gcc_assert and gcc_unreachable as
18300         appropriate.
18301         * unwind-dw2-fde.c (__deregister_frame_info_bases,
18302         base_from_object, fde_split, end_fde_sort): Likewise.
18303         * unwind-dw2.c (_Unwind_GetGR, _Unwind_SetGR, execute_stack_op, 
18304         execute_cfa_program, _Unwind_SetSpColumn, uw_update_context_1,
18305         uw_init_context_1): Likewise.
18306         * unwind.inc (_Unwind_RaiseException_Phase2, _Unwind_Resume,
18307         _Unwind_Resume_or_Rethrow): Likewise.
18308         * unwind-pe.h (__gxx_abort): Do not define.
18309         (size_of_encoded_value, base_of_encoded_value,
18310         read_encoded_value_with_base): Use gcc_unreachable.
18311         * unwind.h (_Unwind_GetTextRelBase): Likewise.
18313 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
18315         * config/arm/lib1funcs.asm (cfi_pop, cfi_push, cfi_start)
18316         (cfi_end): New macros.
18317         (RETLDM): Use cfi_pop.  Expect an eight byte stack frame.
18318         (ARM_LDIV0, THUMB_LDIV0, DIV_FUNC_END): Use CFI macros.  Create
18319         an eight byte stack frame.
18320         (__NR_tkill): Define.
18321         (__div0): Use gettid tkill on GNU/Linux.
18322         (_arm_return): Add CFI.
18323         (Lchange_\register, .Lchange_lr): Create an eight byte stack frame.
18325 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
18327         * configure.ac: Remove spaces around assignment to
18328         gcc_cv_ld_sysroot.
18329         * configure: Regenerated.
18331 2005-05-17  David Edelsohn  <edelsohn@gnu.org>
18333         * config/rs6000/aix.h (TARGET_ALTIVEC_VRSAVE): Delete.
18334         * config/rs6000/rs6000.c (rs6000_explicit_options): Add
18335         aix_struct_ret.
18336         (rs6000_override_options): Do not protect TARGET_ALTIVEC_VRSAVE.
18337         Modify aix_struct_return variable, not target_flags.
18338         (rs6000_handle_option): Do not protect TARGET_ALTIVEC_VRSAVE.
18339         (rs6000_return_in_memory): Test aix_struct_return.
18340         * config/rs6000/rs6000.opt (maix-struct-return): Convert to
18341         independent variable.  Report mxl-compat.
18343 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
18345         * config/bfin/bfin.md (eh_return): Add missing DONE.
18347 2005-05-17  Ian Lance Taylor  <ian@airs.com>
18349         * read-rtl.c (struct macro_traverse_data): Add unknown_mode_attr
18350         field.
18351         (mode_attr_index): Remove check for defined attribute.  Remove
18352         infile parameter.  Change all callers.
18353         (apply_mode_maps): Add unknown parameter.  Change caller.  Always
18354         return after finding attribute.
18355         (apply_macro_to_rtx): Add unknown_mode_attr parameter.  Change
18356         callers.
18357         (apply_macro_traverse): Set mtd->unknown_mode_attr.
18358         (read_rtx): Use mtd.unknown_mode_attr to check for an undefined
18359         attribute used for a mode.
18361 2005-05-17  Paolo Bonzini  <bonzini@gnu.org>
18363         * tree-ssa-math-opts.c: New file.
18365 2005-05-17  Paolo Bonzini  <bonzini@gnu.org>
18367         * Makefile.in: Add tree-ssa-math-opts.c.
18368         * expr.c (expand_expr_real_1) <case RDIV_EXPR>: Never emit as a*(1/b).
18369         * fold-const.c (distribute_real_division): New.
18370         (fold_binary) <case PLUS_EXPR, case MINUS_EXPR>: Use it.
18371         * tree-pass.h (pass_cse_reciprocals): New.
18372         * tree-optimize.c (init_tree_optimization_passes): Run it.
18373         * doc/passes.texi: Document the new pass.
18375 2005-05-17  Richard Guenther  <rguenth@gcc.gnu.org>
18377         PR middle-end/21595
18378         * builtins.c (fold_builtin_constant_p): Handle
18379         &"string cst"[0] as constant.
18381 2005-05-17  Richard Henderson  <rth@redhat.com>
18383         * config/i386/sse.md (mulv16qi3, mulv2di3): New.
18385 2005-05-17  Jakub Jelinek  <jakub@redhat.com>
18387         PR middle-end/21492
18388         * cfgcleanup.c (try_crossjump_to_edge): update_forwarder_flag for
18389         src2 if src2 has been split.
18391         PR tree-optimization/21610
18392         * c-typeck.c (decl_constant_value_for_broken_optimization): If not
18393         returning DECL, call unshare_expr.
18395 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
18397         * config/cris/cris.md: Unquote preparation and output statements.
18398         (BWD, WD, BW): New, mode-macros.
18399         (S, s, m, mm, nbitsm1): New, mode-attrs.
18400         (szext, shift, shiftrt, ncond, ocond, rcond): New, code-macros.
18401         (u, su, shlr, slr, ncond, ocond, rcond, rCC, oCC, roCC): New,
18402         code-attrs.
18403         ("tst<mode>"): Replace "tstqi", "tsthi" and "tstsi".
18404         ("*cmp_ext<mode>"): Replace "*cmp_extsi" and "*cmp_exthi".
18405         ("*cmp_swapext<mode>"): Replace "*cmp_swapextqi" and
18406         "*cmp_swapexthi".
18407         ("cmp<mode>"): Replace "cmphi" and "cmpqi".
18408         ("movdi"): Move misplaced head comment regarding necessity of
18409         movdi from movsi to here.
18410         ("*mov_side<mode>_biap"): Replace "*mov_sideqi_biap" and
18411         "*mov_sidehi_biap".
18412         ("*mov_side<mode>"): Replace "*mov_sideqi" and "*mov_sidehi".
18413         ("*mov_side<mode>_biap_mem", "*mov_sidehi_biap_mem"): Replace
18414         "*mov_sideqi_biap_mem".
18415         ("*mov_side<mode>_mem"): Replace "*mov_sideqi_mem" and
18416         "*mov_sidehi_mem".
18417         ("*clear_side<mode>_biap"): Replace "*clear_sidesi_biap",
18418         "*clear_sidehi_biap" and "*clear_sideqi_biap".
18419         ("*clear_side<mode>"): Replace "*clear_sidesi", "*clear_sidehi"
18420         and "*clear_sideqi".
18421         ("*ext_side<mode>si_biap"): Replace "*ext_sideqisi_biap" and
18422         "*ext_sidehisi_biap".
18423         ("*ext_side<mode>si"): Replace "*ext_sideqisi" and
18424         "*ext_sidehisi".
18425         ("reload_in<mode>"): Replace "reload_inhi" and "reload_inqi".
18426         ("reload_out<mode>"): Replace "reload_outhi" and "reload_outqi".
18427         ("extend<mode>di2"): Replace "extendhidi2" and "extendqidi2".
18428         ("extend<mode>si2"): Replace "extendhisi2" and "extendqisi2".
18429         ("zero_extend<mode>si2"): Replace "zero_extendhisi2" and
18430         "zero_extendqisi2".
18431         ("*op_side<mode>_biap"): Replace "*op_sideqi_biap",
18432         "*op_sidehi_biap" and "*op_sidesi_biap".
18433         ("*op_side<mode>"): Replace "*op_sideqi", "*op_sidehi" and
18434         "*op_sidesi".
18435         ("*op_swap_side<mode>_biap"): Replace "*op_swap_sideqi_biap",
18436         "*op_swap_sidehi_biap" and "*op_swap_sidesi_biap".
18437         ("*op_swap_side<mode>"): Replace "*op_swap_sideqi",
18438         "*op_swap_sidehi" and "*op_swap_sidesi".
18439         ("sub<mode>3"): Replace "subhi3" and "subqi3", correcting a typo
18440         in the N alternative of "subqi3".
18441         ("*extop<mode>si_side_biap"): Replace "*extopqisi_side_biap" and
18442         "*extophisi_side_biap".
18443         ("*extop<mode>si_side"): Replace "*extopqisi_side" and
18444         "*extophisi_side".
18445         ("*extop<mode>si_swap_side_biap"): Replace
18446         "*extopqisi_swap_side_biap" and "*extophisi_swap_side_biap".
18447         ("*extop<mode>si_swap_side"): Replace "*extopqisi_swap_side" and
18448         "*extophisi_swap_side".
18449         ("*extop<mode>si"): Replace "*extopqisi" and "*extophisi".
18450         ("*extop<mode>si_swap"): Replace "*extopqisi_swap" and
18451         "*extophisi_swap".
18452         ("<u>mul<s><mode>3"): Replace "umulhisi3", "umulqihi3",
18453         "mulqihi3", "mulhisi3" and "mulhisi3".
18454         ("<u>mulsidi3"): Replace "mulsidi3" and "umulsidi3".
18455         ("<su>mulsi3_highpart"): Replace "smulsi3_highpart" and
18456         "umulsi3_highpart".
18457         ("xor<mode>3"): Replace "xorhi3" and "xorqi3".
18458         ("neg<mode>2"): Replace "negsi2", "neghi2" and "negqi2".
18459         ("one_cmpl<mode>2"): Replace "one_cmplhi2" and "one_cmplqi2".
18460         ("<shlr>si3"): Replace "ashrsi3", "lshrsi3" and "ashlsi3".
18461         ("ashr<mode>3"): Replace "ashrhi3" and "ashrqi3".
18462         ("*expanded_<shlr><mode>"): Replace "*expanded_ashrhi",
18463         "*expanded_ashrqi", "*expanded_lshrhi" and "*expanded_lshrqi".
18464         ("*<shlr><mode>_lowpart"): Replace "*ashrhi_lowpart",
18465         "*ashrqi_lowpart", "*lshrhi_lowpart" and "*lshrqi_lowpart".
18466         ("lshr<mode>3"): Replace "lshrhi3" and "lshrqi3".
18467         ("ashl<mode>3"): Replace "ashlhi3" and "ashlqi3".
18468         ("*ashl<mode>_lowpart"): Replace "*ashlqi_lowpart" and
18469         "*ashlhi_lowpart".
18470         ("abs<mode>2"): Replace "abshi2" and "absqi2".
18471         ("b<ncond>"): Replace "beq", "bne", "bgtu", "bltu", "bgeu" and
18472         "bleu".
18473         ("b<ocond>"): Replace "bgt" and "ble".
18474         ("b<rcond>"): Replace "blt" and "bge".
18475         ("*b<ncond>_reversed"): Replace "*beq_reversed", "*bne_reversed",
18476         "*bgtu_reversed", "*bltu_reversed", "*bgeu_reversed" and
18477         "*bleu_reversed".
18478         ("*b<ocond>_reversed"): Replace "*bgt_reversed" and
18479         "*ble_reversed".
18480         ("*b<rcond>_reversed"): Replace "*blt_reversed" and
18481         "*blt_reversed".
18482         ("s<ncond>"): Replace "sgeu", "sltu", "seq", "sgtu", "sleu" and
18483         "sne".
18484         ("s<rcond>"): Replace "sge" and "slt".
18485         ("s<ocond>"): Replace "sgt" and "sle".
18486         ("clear.[bwd] [rx=rx+rz.S2]"): Replace split clear.d
18487         [rx=rx+rz.S2], clear.w [rx=rx+rz.S2] and clear.b [rx=rx+rz.S2].
18488         ("clear.[bwd] [rx=rx+i]"): Replace splits clear.d [rx=rx+i],
18489         clear.w [rx=rx+i] and clear.b [rx=rx+i].
18491 2005-05-17  Jakub Jelinek  <jakub@redhat.com>
18493         * varasm.c (struct constant_descriptor_tree): Add hash field.
18494         (const_desc_hash): Just return hash field.
18495         (const_desc_eq): If hash values are different, return 0 immediately.
18496         (output_constant_def): Compute hash field of temporary key, use
18497         htab_find_slot_with_hash instead of htab_find_slot.  Set hash in
18498         newly built constant descriptor.
18499         (lookup_constant_def): Compute hash field of temporary key, use
18500         htab_find_with_hash instead of htab_find.
18502 2005-05-16  Richard Henderson  <rth@redhat.com>
18504         * config/i386/sse.md (mulv4si3): New.
18506 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
18508         * config/cris/cris.h (EXTRA_CONSTRAINT_T): Remove FIXME and
18509         tests for noncanonical versions of reg+constant and
18510         reg+reg*{1,2,4}.
18512 2005-05-16  Richard Henderson  <rth@redhat.com>
18513             Steven Bosscher <stevenb@suse.de>
18515         PR tree-opt/21399
18516         * tree-eh.c (maybe_clean_or_replace_eh_stmt): Rename from 
18517         maybe_clean_eh_stmt; take old stmt parameter.  Update EH
18518         region data structure to match replacement.
18519         * tree-flow.h: Update to match.
18520         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
18521         * tree-ssa-dom.c (optimize_stmt): Likewise.
18522         * tree-ssa-pre.c (eliminate): Likewise.
18523         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
18525 2005-05-16  Caroline Tice  <ctice@apple.com>
18527         * bb-reorder.c (verify_hot_cold_block_grouping):  Replace
18528         internal_error with gcc_assert.
18529         * dwarf2out.c (dwarf2out_switch_text_section):  Likewise.
18530         * function.h (struct function): Remove space between "*" and
18531         struct field names.
18532         * varasm.c (initialize_cold_section_name):   Add gcc_assert;
18533         modify to use alloca.
18534         (unlikely_text_section): Add check for flag_function_sections.
18535         (assemble_start_function):  Move call to resolve_section, so it
18536         comes before first call to unlikely_text_section.
18537         (assemble_end_function):  Add test and call to function_section
18538         if appropriate.
18539         
18540 2005-05-16  Roger Sayle  <roger@eyesopen.com>
18542         * c-common.c (c_common_truthvalue_conversion): Use fold_build2
18543         instead of build_binary_op when performing code transformations
18544         to avoid error messages about constructs not it the user's code.
18546 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
18548         * tree-ssa-pre.c: Fix a comment typo.
18550 2005-05-16  Richard Henderson  <rth@redhat.com>
18552         PR target/21556
18553         * config/ia64/ia64.md (load_dtpmod, load_ltoff_dtpmod, load_dtprel,
18554         load_dtprel64, load_dtprel22, load_dtprel_gd, load_ltoff_dtprel,
18555         add_dtprel, add_dtprel14, add_dtprel22, load_tprel, load_tprel64,
18556         load_tprel22, load_tprel_ie, load_ltoff_tprel, add_tprel, add_tprel14,
18557         add_tprel22): Remove mode from symbolic operand.
18559 2005-05-16  Richard Sandiford  <rsandifo@redhat.com>
18561         * optc-gen.awk: Include intl.h after the externally-provided files.
18563 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
18565         * tree-ssa-copy.c (copy_prop_visit_assignment): Clean up by
18566         folding a COND_EXPR_COND in a nondestructive manner.
18568 2005-05-16  Fariborz Jahanian <fjahanian@apple.com>
18570         * config/rs6000/altivec.md (altivec_vmrghb, altivec_vmrghh, 
18571         altivec_vmrghw, altivec_vmrglb, altivec_vmrglh, altivec_vmrglw):
18572         New values for vec_select definitions and bitmask for element
18573         selection.
18574          
18575 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
18577         * dwarf2out.c (used_rtx_varray): Rename to used_rtx_array.
18578         Change the type to VEC(rtx,gc)*.
18579         (mem_loc_descriptor, add_const_value_attributes,
18580         dwarf2out_init): Adjust uses of used_rtx_varray.
18582         * tree-data-ref.c (compute_all_dependences): Change the type
18583         of dependence_relations to VEC(ddr_p,heap)**.
18584         (compute_data_dependences_for_loop): Change the type of
18585         allrelations to VEC(ddr_p,heap)*.
18587 2005-05-16  Richard Sandiford  <rsandifo@redhat.com>
18589         * Makefile.in (options.c): Tell optc-gen.awk to include config.h,
18590         system.h, coretypes.h and tm.h.
18591         (options.o): Update dependencies accordingly.
18592         * optc-gen.awk: Allow header_name to be a list of filenames.
18593         Handle the "Condition" flag.
18594         * opts.h (CL_DISABLED): New flag.
18595         * opts.c (handle_option): Print an error for CL_DISABLED options.
18596         * doc/options.texi: Document the "Condition" option flag.
18598 2005-05-16  Paolo Bonzini  <bonzini@gnu.org>
18600         * tree-inline.c (estimate_num_insns_1): Handle VEC_COND_EXPR.
18602 2005-05-15  Roger Sayle  <roger@eyesopen.com>
18604         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Only
18605         check for TREE_OVERFLOW on INTEGER_CST trees.
18606         * tree-chrec.c (chrec_convert): Only clear TREE_OVERFLOW on
18607         CONSTANT_CLASS_P tree nodes.
18609 2005-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18611         PR target/21551
18612         * config/ia64/ia64.c (ia64_expand_move): Don't add addend twice.
18614 2005-05-15  Daniel Berlin  <dberlin@dberlin.org>
18615             
18616         Fix PR tree-optimization/21576
18617         
18618         * tree-ssa-pre.c (expression_node_pool): New pool.
18619         (comparison_node_pool): Ditto.
18620         (list_node_pool): Ditto.
18621         (pool_copy_list): New function.
18622         (phi_translate): Handle CALL_EXPR.
18623         (valid_in_set): Ditto.
18624         (create_expression_by_pieces): Ditto.
18625         (insert_into_preds_of_block): Ditto.
18626         (insert_aux): Ditto.
18627         (compute_avail): Ditto.
18628         (create_value_expr_from): Handle TREE_LIST and CALL_EXPR.
18629         (can_value_number_call): New function.
18630         (find_leader): Update comment.
18631         (init_pre): Create new pools.
18632         (fini_pre): Free new pools.
18633         (pass_pre): Add TODO_update_ssa for the future when we are going
18634         to need vops.
18635         * tree-vn.c (expressions_equal_p): Handle TREE_LIST.
18636         (set_value_handle): Ditto.
18637         (get_value_handle): Ditto.
18639 2005-05-15  Richard Earnshaw  <richard.earnshaw@arm.com>
18641         * arm.c (thumb_unexpanded_epilogue): Delete unused variable 'mode'.
18643 2005-05-15  Andreas Jaeger  <aj@suse.de>
18645         * gcc.c (pfatal_pexecute): Remove unused local function.
18647 2005-05-15  Richard Sandiford  <rsandifo@redhat.com>
18649         * optc-gen.awk: Remove excess indentation.
18650         * opth-gen.awk: Likewise.
18652 2005-05-14  Kaz Kojima  <kkojima@gcc.gnu.org>
18654         * config/sh/sh.c (sh_output_mi_thunk): Check cfun->cfg instead
18655         of basic_block_info.  Call init_flow and find_basic_blocks
18656         before dbr_schedule if needed.
18658 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
18660         * tree-optimize.c (init_tree_optimization_passes): Move
18661         pass_cd_dce in place of the last pass_dce.
18663         PR tree-optimization/21563
18664         * tree-vrp.c (compare_value): Return boolean_false_node when
18665         SSA_NAME in "if (SSA_NAME == CST)" is strictly smaller than or
18666         strictly larger than CST.
18668 2005-05-14  Nathan Sidwell  <nathan@codesourcery.com>
18669             Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18671         * config/vax/vax.c: (print_operand_address) Use gcc_unreachable() and
18672         gcc_assert().
18673         (rev_cond_name) Likewise.
18674         (vax_float_literal) Likewise.
18675         * config/vax/vax.md: Likewise.
18677 2005-05-14  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18679         * config/vax/vax.md: define_constant VAXens AP, FP, SP and PC
18680         registers and use them (specifically the stack pointer).
18681         * config/vax/vax.h: Use above defines right here.
18683         * config/vax/vax.c: (override_options) Remove 'register' keyword.
18684         (split_quadword_operands) Likewise. (rev_cond_name) Likewise.
18685         (vax_float_literal) Likewise. (vax_rtx_costs) Remove trailing
18686         whitespace.
18687         * config/vax/vax.h: Remove 'register' keyword. Misc. whitespace fixes,
18688         mostly removal of trailing spaces...
18689         * config/vax/vax-modes.def: Remove trailing whitespace.
18691         * config/vax/elf.h: Update whitespace.
18693 2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>
18695         Revert
18696         2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
18697         * fold-const.c (fold_indirect_ref_1): Avoid removing
18698         NOP_EXPRs with type qualifiers like const.
18700 2005-05-14  Jan Hubicka  <jh@suse.cz>
18702         Patch by Richard Henderson:
18703         * tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
18704         Handle RESX expressions properly.
18706         * tree-eh.c (record_stmt_eh_region): Use add_stmt_to_eh_region.
18707         (add_stmt_to_eh_region_fn): Nest into CALL_EXPR.
18708         (remove_stmt_from_eh_region_fn): Likewise.
18710         * tree-cfg.c (execute_warn_function_return): Break out noreturn
18711         warning too..
18712         (execute_warn_function_noreturn): ... here.
18713         (pass_warn_function_noreturn): New pass.
18714         * tree-pass.h (pass_warn_function_noreturn): Declare
18715         * tree-optimize.c (init_tree_optimization_passes): Move return
18716         warnings early and add noreturn warnings at place of previous
18717         return warnings.
18719 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
18721         * tree-ssa-live.c (tpa_init, tpa_delete, tpa_compact,
18722         root_var_init, type_var_init): Use VEC instead of VARRAY.
18723         * tree-ssa-live.h (tree_partition_associator_d): Change the
18724         type of trees to VEC(tree,heap)*.
18725         (tpa_tree): Use VEC instead of VARRAY.
18727 2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>
18729         * fold-const.c (div_if_zero_remainder): New function.
18730         (try_move_mult_to_index): Use it.
18732 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
18734         * tree-eh.c (leh_tf_state): Change the type of dest_array to
18735         VEC(tree,heap)*.
18736         (maybe_record_in_goto_queue, lower_try_finally_onedest,
18737         lower_try_finally_copy, lower_try_finally_switch,
18738         lower_try_finally): Use VEC instead of VARRAY.
18740 2005-05-14  Hans-Peter Nilsson  <hp@axis.com>
18742         * config/cris/cris.h (Node: Register Classes): Remove obsoleted
18743         comment regarding defined register classes.
18744         (LEGITIMIZE_RELOAD_ADDRESS): Do not define.
18746 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
18748         * tree-optimize.c (init_tree_optimization_passes): Move
18749         pass_merge_phi before the first pass_dominator.
18751 2005-05-13  Richard Earnshaw  <richard.earnshaw@arm.com>
18753         * arm.h (INITIALIZE_TRAMPOLINE): Make the call to __clear_cache
18754         unconditional.
18756 2005-05-13  Josh Conner  <jconner@apple.com>
18758         * config/arm/arm.c (arm_size_return_regs): New.
18759         (thumb_unexpanded_epilogue): replace in-line calculation
18760         of return registers with call to arm_size_return_regs.
18761         (use_return_insn): Include test of which registers are
18762         being used to hold return values, to accommodate
18763         vector return values.
18765 2005-05-11  Aldy Hernandez  <aldyh@redhat.com>
18767         * config/rs6000/sysv4.opt (mlittle): Handle.
18769         * config/rs6000/rs6000.c (rs6000_handle_option): Set
18770         target_flags_explicit when appropriate.
18772 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
18774         PR middle-end/20714:
18775         * optabs.c (no_conflict_data): New struct.
18776         (no_conflict_move_test): New function.
18777         (emit_no_conflict_block): Use it.
18779 2005-05-13  Adam Nemet  <anemet@lnxw.com>
18781         * doc/invoke.texi (Debugging Options): Option
18782         -fdump-translation-unit only works with C++ now.
18784 2005-05-13  Hans-Peter Nilsson  <hp@axis.com>
18786         Replace calls to abort in CRIS port.
18787         * config/cris/cris.h (CRIS_ASSERT): New macro.
18788         * config/cris/cris.md ("*movsi_internal"): Use CRIS_ASSERT and
18789         internal_error instead of abort.
18790         ("movsi"): Ditto.  Unquote preparation statement section.
18791         ("call", "call_value"): Ditto, but use gcc_assert where
18792         appropriate.  Tweak comments.
18793         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Define in terms of
18794         CRIS_ASSERT.
18795         (cris_op_str): Call internal_error, not abort.
18796         (cris_print_operand): Tweak "abort" reference to "die" in comment.
18797         (cris_initial_elimination_offset): Call gcc_unreachable, not abort.
18798         (cris_notice_update_cc): Call internal_error, not abort.
18799         (cris_expand_return, cris_expand_prologue, cris_gen_movem_load)
18800         (cris_emit_movem_store, cris_asm_output_symbol_ref)
18801         (cris_output_addr_const_extra): Use CRIS_ASSERT, don't call abort.
18802         (cris_symbol, cris_got_symbol): Use CRIS_ASSERT instead of
18803         ENABLE_CHECKING-guarded abort call.
18804         (cris_split_movdx): Use CRIS_ASSERT instead of abort with test.
18805         Use internal_error at end of test-chain.
18807 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
18809         PR rtl-optimization/20769:
18810         * bt-load.c (compute_defs_uses_and_gen): Check for the blockage
18811         pattern emitted by expand_nl_goto_receiver.
18813         PR middle-end/20793:
18814         * integrate.c (allocate_initial_values): Update register liveness
18815         information.
18817 2005-05-13  Josh Conner  <jconner@apple.com>
18819         * arm.c (arm_return_in_memory): Add handling for vector return types.
18821 2005-05-13  David Ung  <davidu@mips.com>
18823         * config/mips/mips.h (processor_type): Add new PROCESSOR_4KP
18824         name.
18825         * config/mips/mips.c: Add 4km alias.
18826         * config/mips/mips.md: Add 4kp to cpu attrib and include 4k.md.
18827         * config/mips/4k.md: New file, add 4Kc/4Kp DFA pipeline
18828         description.
18830 2005-05-13  Jan Hubicka  <jh@suse.cz>
18832         * c-decl.c (finish_function): Suppress "control reaches end of
18833         non-void function" when "no return statement in function
18834         returning non-void" is issued.
18836         * tree-inline.c (copy_body_r): Simplify substituted ADDR_EXPRs.
18837         * tree-optimize.c (pass_gimple): Kill.
18838         (init_tree_optimization_passes): Kill pass_gimple.
18839         * tree-cfg.c (build_tree_cfg): Do verify_stmts to check that we are gimple.
18840         * tree-dump.c (dump_files): Rename .generic to .gimple.*
18842 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
18844         PR rtl-optimization/20756:
18845         * basic-block.h (PROP_DEAD_INSN): Define.
18846         * flow.c (propagate_one_insn): Set during mark_set_regs call
18847         for a dead insn.
18848         (mark_set_1): Emit a clobber when we are about to delete a dead insn
18849         that kills a live register.
18851 2005-05-13  Adrian Straetling  <straetling@de.ibm.com>
18853         * config/s390/s390.md: ("DBL"): New mode attribute.
18854         ("*movmem_long_64", "*movmem_long_31"): Merge to "*movmem_long".
18855         ("*clrmem_long_64", "*clrmem_long_31"): Merge to "*clrmem_long".
18856         ("*cmpmem_long_64", "*cmpmem_long_31"): Merge to "*cmpmem_long".
18858 2005-05-13  Richard Guenther  <rguenth@gcc.gnu.org>
18860         * c-format.c (check_format_arg): Handle string literals of
18861         the form &"string"[offset].
18863         * g++.dg/warn/format4.C: New testcase.
18865 2005-05-13  Kazu Hirata  <kazu@cs.umass.edu>
18867         * config/mips/3000.md, config/mips/4000.md,
18868         config/mips/4100.md, config/mips/4300.md, config/mips/4600.md,
18869         config/mips/5000.md, config/mips/7000.md, config/mips/9000.md,
18870         config/mips/generic.md, config/pdp11/pdp11.md,
18871         config/sh/crt1.asm, config/sh/lib1funcs.asm,
18872         config/sh/sh-modes.def, config/sh/sh-protos.h,
18873         config/sh/shmedia.md, config/sh/ushmedia.h: Update copyright.
18875 2005-05-13  Richard Henderson  <rth@redhat.com>
18877         * function.c (instantiate_virtual_regs_in_insn): Do not simplify
18878         addition to move unless dest is a register.  Do not skip
18879         instantiation in dest on addition simplification.
18881 2005-05-13  Hans-Peter Nilsson  <hp@axis.com>
18883         * config/cris/cris.c (cris_print_operand) <case 'H'; case
18884         CONST_INT>: Use operand_subword and HOST_WIDE_INT_PRINT_DEC for
18885         output; don't have special case for HOST_BITS_PER_WIDE_INT == 32.
18887 2005-05-13  Jan Hubicka  <jh@suse.cz>
18889         * basic-block.h (FOR_ALL_BB_FN): New macro.
18890         (init_flow): Initialize cfg structure.
18891         * function.c (allocate_struct_function): Do not initialize cfg structure.
18892         * tree-cfg.c (init_empty_tree_cfg): Break out from ...
18893         (build_tree_cfg): ... here.
18894         * tree-flow.h (init_empty_tree_cfg): Declare.
18896 2005-05-12  Steven Bosscher <stevenb@suse.de>
18898         Fix PR tree-optimization/21520
18899         * tree-ssa-pre.c (phi_translate): Use fully_constant_expression
18900         to attempt to fold constants.
18902 2005-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
18904         * config/sh/sh.c: Declare the prototype of sh_adjust_unroll_max
18905         only when TARGET_ADJUST_UNROLL_MAX is defined.
18906         (general_movsrc_operand): Use the C style comment.
18907         (ua_offset): Use prototype.
18909 2005-05-12  Zdenek Dvorak  <dvorakz@suse.cz>
18911         * tree-ssa-loop-im.c (struct mem_ref): Add field "next".
18912         (struct hmr_data, hoist_memory_reference, memref_del,
18913         struct fmrv_data): Removed.
18914         (hoist_memory_references, free_mem_ref, free_mem_refs): New functions.
18915         (gather_mem_refs, gather_mem_refs_stmt): Add new references to the
18916         list.
18917         (find_more_ref_vops): Traverse the list of memory references.
18918         (determine_lsm_loop): Work with the list of memory references instead
18919         of traversing the hashtable.
18921 2005-05-12  Steven Bosscher  <stevenb@suse.de>
18922             Stuart Hastings <stuart@apple.com>
18923             Jan Hubicka  <jh@suse.cz>
18925         * except.c  (duplicate_eh_region_1, duplicate_eh_region_2,
18926         duplicate_eh_regions): New functions, based on old
18927         implementation removed with RTL inliner.
18928         (reachable_next_level): Modify behaviour pre-inline.
18929         * except.h (duplicate_eh_regions_map, duplicate_eh_regions):
18930         Declare.
18931         * function.h (struct function): Add after_inlining flag.
18932         * tree-optimize.c (tree_rest_of_compilation): Set it.
18933         * tree-eh.c (add_stmt_to_eh_region_fn): Initialize hashtable
18934         when needed.
18935         * tree-cfg.c (label_to_block_fn): Deal with cases where
18936         label was never insterted into code.
18938 2005-05-12  Zack Weinberg  <zack@codesourcery.com>
18940         * doc/cpp.texi: Document that #sccs is a synonym for #ident.
18942 2005-05-12  Daniel Berlin  <dberlin@dberlin.org>
18944         Fix PR tree-optimization/21532
18945         * tree-ssa-pre.c (create_expression_by_pieces): stmt
18946         needs to go onto the inserted_exprs list.
18948 2005-05-12  Ian Lance Taylor  <ian@airs.com>
18950         * c-common.h (statement_code_p): Don't declare.
18951         (STATEMENT_CODE_P): Don't define.
18952         (INIT_STATEMENT_CODES): Don't define.
18953         * c-common.c (statement_code_p): Don't define.
18955 2005-05-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
18957         * config/sparc/sparc.h: Remove dead code.
18958         * config/sparc/sparc.c (sparc_compute_frame_size): Use
18959         FIRST_PARM_OFFSET for the size of the register window area.
18960         (emit_save_regs): Rename into emit_save_or_restore_regs.
18961         Add 'action' parameter.  Use 4095 as upper bound for the offset.
18962         Pass 'action' to save_or_restore_regs.
18963         (emit_restore_regs): Delete.
18964         (sparc_expand_prologue): Call emit_save_or_restore_regs.
18965         (sparc_expand_epilogue): Likewise.
18966         * config/sparc/sparc.md (mode macro P): Move.
18967         (movdi_insn_sp32_v9, movdi_insn_sp32): Swap.
18968         (mov<V32:mode> expander): Move to the top of the V32 section.
18969         (movdf_insn_sp32_v9_no_fpu, movdf_insn_sp32_v9): Swap.
18970         (movtf_insn_sp64_hq, movtf_insn_sp64): Swap.
18971         (sibcall_epilogue): Move.
18973 2005-05-12  Richard Earnshaw  <richard.earnshaw@arm.com>
18975         PR target/21501
18976         * arm.c (arm_gen_constant): Sign-extend intermediate values when
18977         synthesizing a constant of the difference of two immediates.
18979 2005-05-12  Richard Earnshaw  <richard.earnshaw@arm.com>
18981         * arm/vfp.md (negsf2_vfp): Add alternative using integer registers.
18982         (negdf2_vfp): Likewise.  Convert to define_insn_and_split and split
18983         the alternatives using integer registers into the appropriate
18984         primitives.
18986 2005-05-11 Kenneth Zadeck <zadeck@naturalbridge.com>
18988         * bitmap.c (bitmap_elmt_to_freelist, bitmap_element_allocate,
18989         bitmap_elt_clear_from, bitmap_clear): Changed freelist structure.
18990         * bitmap.h: Fixed comments.
18992 2005-05-11  Richard Henderson  <rth@redhat.com>
18994         PR target/21412
18995         * config/ia64/ia64.c (TARGET_CANNOT_FORCE_CONST_MEM): New.
18996         (ia64_cannot_force_const_mem): New.
18997         (tls_symbolic_operand_type): New.
18998         (ia64_legitimate_constant_p): New.
18999         (ia64_expand_load_address): Return true on success.  Improve
19000         checks for when we should not split.
19001         (ia64_expand_tls_address): New addend operand.  Distribute it
19002         as appropriate to the tls_kind.  Delay referencing gp.
19003         (ia64_expand_move): Split symbolic addend as necessary.  Handle
19004         tls symbols with addends.
19005         * config/ia64/ia64-protos.h: Update.
19006         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): False for r0,
19007         p0, f0, f1, and r13.
19008         (LEGITIMATE_CONSTANT_P): Move to ia64_legitimate_constant_p.
19009         * config/ia64/ia64.md (UNSPEC_DTPMOD): New.
19010         (symbolic_operand splitter): Pass everything through
19011         ia64_expand_load_address and FAIL or DONE as appropriate.
19012         (load_fptr): Only accept after reload.
19013         (load_fptr_internal1, gprel64_offset, load_gprel64, load_symptr_high,
19014         load_symptr_low, load_ltoff_dtpmod,
19015         (load_dtpmod): New.
19016         (load_dtprel): Only accept tls symbols.
19017         (load_dtprel64, load_dtprel22): Likewise.
19018         (load_tprel, load_tprel64, load_tprel22): Likewise.
19019         (load_dtprel_gd, load_ltoff_dtprel, load_tprel_ie): New.
19020         (add_dtprel): Only accept tls symbols.  Canonicalize PLUS.
19021         (add_dtprel14, add_dtprel22): Likewise.
19022         (add_tprel, add_tprel14, add_tprel22): Likewise.
19023         * config/ia64/predicates.md (small_addr_symbolic_operand): New.
19024         (any_offset_symbol_operand, aligned_offset_symbol_operand): New.
19025         (got_symbolic_operand): Check CONST offsets.
19026         (tls_symbolic_operand, ld_tls_symbolic_operand): New.
19027         (ie_tls_symbolic_operand, le_tls_symbolic_operand): New.
19028         (move_operand): Don't handle tls here.  Check CONST offsets.
19030 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
19032         * config/mips/7000.md (rm7_impy_si_mult): Just match imul and imadd.
19033         Remove hilo_operand check.
19034         (rm7_impy_si_mul): Just match imul3.  Remove hilo_operand check.
19035         * config/mips/predicates.md (hilo_operand): Delete.
19037 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
19039         * config/mips/sr71k.md, config/mips/7000.md: Reformat.
19041 2005-05-11  Kazu Hirata  <kazu@cs.umass.edu>
19043         PR tree-optimizer/18472
19044         * tree-if-conv.c (tree_if_convert_stmt,
19045         if_convertible_modify_expr_p): Don't handle GOTO_EXPR.
19047 2005-05-11  Jan Hubicka  <jh@suse.cz>
19049         * Makefile.in (tree-eh.o: Kill gt-tree-eh.h dependency.
19050         (GTFILES): add except.h.
19051         * except.c (eh_status): Add throw_stmt_table.
19052         (set_eh_throw_stmt_table, get_eh_throw_stmt_table): New functions.
19053         * except.h (add_stmt_to_eh_region_fn, remove_stmt_from_eh_region_fn,
19054         lookup_stmt_eh_region_fn): Declare.
19055         (throw_stmt_node): New structure.
19056         (set_eh_throw_stmt_table, get_eh_throw_stmt_table): New.
19057         * gengtype.c (open_base_files): Add except.h to inlines.
19058         * tree-eh.c (throw_stmt_node): Kill.
19059         (record_stmt_eh_region): Update.
19060         (add_stmt_to_eh_region_fn): Break out from ...
19061         (add_stmt_to_eh_region): ... here.
19062         (remove_stmt_from_eh_region_fn): Break out from ...
19063         (remove_stmt_from_eh_region): ... here.
19064         (lookup_stmt_eh_region_fn): Break out from ...
19065         (lookup_stmt_eh_region): ... here.
19066         (honor_protect_cleanup_actions): Use build_resx.
19067         (lower_try_finally_onedest): Likewise.
19068         (lower_try_finally_copy): Likewise.
19069         (lower_try_finally_switch): Likewise.
19070         (lower_eh_constructs): Update eh table construction.
19071         * tree.c (build_resx): New.
19072         * tree.h (build_resx): Declare.
19074 2005-05-11  H.J. Lu  <hongjiu.lu@intel.com>
19076         * libgcov.c (gcov_exit): Set prefix_length to 0 if no relocation
19077         is needed.
19079 2005-05-11  Kazu Hirata  <kazu@cs.umass.edu>
19081         * fold-const.c, libgcov.c: Fix comment typos.
19083         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove
19084         redundant code.
19086 2005-05-11  Daniel Jacobowitz  <dan@codesourcery.com>
19088         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
19089         * config/arm/arm.h (SUBTARGET_FRAME_POINTER_REQUIRED): Provide
19090         default definition.
19091         (FRAME_POINTER_REQUIRED): Use SUBTARGET_FRAME_POINTER_REQUIRED.
19093 2005-05-11  Nathan Sidwell  <nathan@codesourcery.com>
19095         PR bootstrap/21481
19096         * crtstuff.c: Include auto-host.h again, for now.
19098 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
19100         * config/mips/24k.md: Remove trailing whitespace.
19102 2005-05-11  David Ung  <davidu@mips.com>
19104         * config/mips/mips.md (type): Add imul3.
19105         (length, hazard, may_clobber_hilo): Check for imul3.
19106         (mulsi3_mult3, muldi3_mult3, *muls, <su>mulsi3_highpart_mulhi_internal)
19107         (*<su>mulsi3_highpart_neg_mulhi_internal): Set attr to imul3.
19108         * config/mips/24k.md (r24k_int_mul3): Enable this reservation
19109         for a 3 operand mul and its bypasses.
19110         * config/mips/3000.md (r3k_imul): Add imul3 to reservations.
19111         * config/mips/4000.md (r4k_imul): Likewise.
19112         * config/mips/4100.md (r4100_imul_si, r4100_imul_di):  Likewise.
19113         * config/mips/4130.md (vr4130_class, vr4130_mulsi)
19114         (vr4130_muldi): Likewise.
19115         * config/mips/4300.md (r4300_imul_si, r4300_imul_di): Likewise.
19116         * config/mips/4600.md (r4600_imul, r4650_imul): Likewise.
19117         * config/mips/5000.md (r5k_imul_si, r5k_imul_di): Likewise.
19118         * config/mips/5400.md (ir_vr54_imul_si, ir_vr54_imul_di)
19119         (ir_vr54_imadd_si): Likewise.
19120         * config/mips/5500.md (ir_vr55_imul_si, ir_vr55_imul_di):  Likewise.
19121         * config/mips/7000.md (rm7_impy_si_mult, rm7_impy_si_mul)
19122         (rm7_impy_di): Likewise.
19123         * config/mips/9000.md (rm9k_mulsi, rm9k_muldi):  Likewise.
19124         * config/mips/generic.md (generic_imul): Likewise.
19125         * config/mips/sb1.md (ir_sb1_mulsi, ir_sb1_muldi): Likewise.
19126         * config/mips/sr71k.md (ir_sr70_imul_si, ir_sr70_imul_di):  Likewise.
19128 2005-05-11  J"orn Rennecke <joern.rennecke@st.com>
19130         PR middle-end/20371:
19131         * tree.h (record_layout_info_s): New member prev_packed.
19132         * stor-layout.c (update_alignment_for_field): Fix comment about
19133         KNOWN_ALIGN.  For MS bitfields, if we start a new run, make sure
19134         we start it properly aligned.
19135         (place_field): At the beginning of a record, pass 0 as KNOWN_ALIGN
19136         to update_alignment_for_field, and recompute it afterwards using
19137         the alignment of the record.
19138         When a packed bitfield precedes an MS bitfield, don't add padding
19139         at the end of the packed bitfield on behalf of the base type of
19140         the packed bit field.
19141         Don't adjust rli->bitpos at the end
19142         of an MS bitfield run if we already adjusted bitpos/offset for an
19143         alignment as large or larger than the bitfield type size.
19144         Take possible record alignment > BIGGEST_ALIGNMENT into account
19145         when calculating actual_align.
19146         Only put packed buit fields into rli->prev_field if they end up
19147         suitably aligned.
19148         Also set rli->remaining_in_alignment when we re-set rli->prev_field.
19149         Update rli->remaining_in_alignment when we have already started a
19150         run of bit fields and we process a packed bit field.
19152 2005-05-11  Sebastian Pop  <pop@cri.ensmp.fr>
19154         * tree-data-ref.c (find_data_references_in_loop): Give up when
19155         the body of the loop contains a CALL_EXPR or an ASM_EXPR: they
19156         may embed arbitrary side effects.
19157         Remove the assumption that GIMPLE form contains a single array
19158         access per statement.
19159         When the statement contains virtual operands, fail if it is not
19160         a MODIFY_EXPR or a CALL_EXPR.
19161         Return after the dont know node is inserted.
19163 2005-05-11  Richard Earnshaw  <richard.earnshaw@arm.com>
19165         * arm.md (negsf2, negdf2): Permit these expands when compiling for VFP.
19167 2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
19169         PR middle-end/19807
19170         PR tree-optimization/19639
19171         * fold-const.c (try_move_mult_to_index): Handle INTEGER_CST
19172         and generic summands for char* as s * delta, too, folding &a[i]
19173         CODE x to &a[i CODE x/s].  Use tree_int_cst_equal
19174         for comparison of steps.  Convert types for index addition.
19175         (fold_binary): Adjust the callers to always dispatch to
19176         try_move_mult_to_index.
19177         * tree-ssa-propagate.c (set_rhs): Avoid setting rhs to
19178         expr with non-gimple ARRAY_REF offset.
19180 2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
19182         * fold-const.c (fold_indirect_ref_1): Avoid removing
19183         NOP_EXPRs with type qualifiers like const.
19185 2005-05-11  Richard Henderson  <rth@redhat.com>
19187         PR c/21502
19188         * c-decl.c (finish_decl): Propagate the completed array type of
19189         a global variable into the binding.
19191 2005-05-10  Matt Kraai  <kraai@ftbfs.org>
19193         * Makefile.in (gtype-desc.o, build/genautomata.o)
19194         (build/varray.o): Depend on $(VARRAY_H).
19196 2005-05-10  Diego Novillo  <dnovillo@redhat.com>
19198         * tree-optimize.c (init_tree_optimization_passes): Re-organize
19199         optimization passes to do an initial batch of scalar cleanups.
19201 2005-05-10  Ian Lance Taylor  <ian@airs.com>
19203         * read-rtl.c (struct macro_traverse_data): Define.
19204         (map_attr_string): New static function, broken out of
19205         apply_macro_to_string.
19206         (mode_attr_index, apply_mode_maps): New static functions.
19207         (apply_macro_to_string): Call map_attr_string.
19208         (apply_macro_to_rtx): Add mode_maps and infile parameters.  Change
19209         all callers.
19210         (apply_macro_traverse): Expect data to point to a struct
19211         macro_traverse_data.
19212         (read_rtx): Add mode_maps local variable.  Use mode_traverse_data
19213         to pass data through htab_traverse.
19214         (read_rtx_1): Add mode_maps parameter.  Change all callers.
19215         Handle mode names which are attribute strings.
19216         * doc/md.texi (Substitutions): Rename from String Substitutions.
19217         Change references.  Document using attributes as modes.
19219 2005-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
19221         * tree-cfg.c (tree_duplicate_sese_region): Update profile.
19222         * tree-optimize.c (init_tree_optimization_passes) Swap
19223         pass_ch and pass_profile.
19224         * tree-ssa-loop-ch.c (copy_loop_headers): Do not update profile
19225         here.  Remove rewrite_into_loop_closed_ssa call.
19227 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
19229         * config/s390/s390.c: (s390_const_double_ok_for_constraint_p): New
19230         function.
19231         (legitimate_reload_constant_p): Add check for const double zero.
19232         * config/s390/s390.md: Add comment for constraint letter 'G'.
19233         ("*movdf_64", "*movdf_31", "movsf"): Add constraint and proper
19234         attributes for new case.
19235         * config/s390/s390.h: (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Define it as
19236         s390_const_double_ok_for_constraint_p.
19237         * config/s390/s390-protos.h (s390_const_double_ok_for_constraint_p):
19238         Add prototype.
19240 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
19242         PR tree-optimization/21170
19243         * tree-ssa-dom.c, tree-ssa-threadupdate.c: Replace
19244         rewrite_ssa_into_ssa in comments with update_ssa.
19246 2005-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
19248         * tree-ssa-loop-im.c: Include hashtab.h.
19249         (struct mem_ref_loc): New.
19250         (struct mem_ref): Describe the set of references with the same
19251         shape.
19252         (max_stmt_uid, get_stmt_uid, record_mem_ref, free_mem_refs,
19253         maybe_queue_var, fem_single_reachable_address,
19254         for_each_memref, single_reachable_address,
19255         is_call_clobbered_ref, determine_lsm_reg): Removed.
19256         (record_mem_ref_loc, free_mem_ref_locs, determine_lsm_ref,
19257         hoist_memory_reference, memref_hash, memref_eq, memref_del,
19258         gather_mem_refs_stmt, gather_mem_refs, find_more_ref_vops):
19259         New functions.
19260         (rewrite_mem_refs, schedule_sm): Use mem_ref_loc list.
19261         (determine_lsm_loop): Rewritten.
19262         (determine_lsm): Do not set stmt uids.
19264 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
19266         * config/s390/s390.md: Add comment lines for 'f' and 't' constraint
19267         letters.
19269 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
19271         * config/s390/s390.md: ("anddi3","andsi3","andhi3","andqi3"): Merge.
19272         ("iordi3", "iorsi3", "iorhi3", "iorqi3"): Merge.
19273         ("xordi3", "xorsi3", "xorhi3", "xorqi3"): Merge.
19275 2005-05-10  Jeff Law  <law@redhat.com>
19277         * tree-ssa-dom.c (dom_opt_finalize_block): Do not call
19278         thread_across_edge for any abnormal edges.
19280 2005-05-10  Richard Henderson  <rth@redhat.com>
19282         * config/ia64/ia64.c (ia64_expand_atomic_op): New.
19283         * config/ia64/ia64-protos.h: Declare it.
19284         * config/ia64/sync.md (I124MODE, FETCHOP, fetchop_name): New.
19285         (sync_add<I48MODE>, sync_old_add<I48MODE>): Remove.
19286         (sync_<FETCHOP><IMODE>, sync_nand<IMODE>): New.
19287         (sync_old_<FETCHOP><IMODE>, sync_old_nand<IMODE>): New.
19288         (sync_new_<FETCHOP><IMODE>, sync_new_nand<IMODE>): New.
19289         (cmpxchg_rel_<I124MODE>): Split from cmpxchg_acq_<IMODE>.  Zero
19290         extend result; use release semantics.
19291         (cmpxchg_rel_di): Rename from cmpxchg_acq_<IMODE>; use release.
19292         (sync_val_compare_and_swap_<IMODE>): Update to match.
19294 2005-05-10  Richard Henderson  <rth@redhat.com>
19296         * optabs.c (expand_compare_and_swap_loop): Don't clobber old value
19297         before comparing it for success.
19299 2005-05-10  Richard Henderson  <rth@redhat.com>
19301         * config/ia64/sync.md (sync_add<I48MODE>): Fix arguments for
19302         no return value pattern.
19304 2005-05-10  Grigory Zagorodnev  <grigory.zagorodnev@intel.com>
19305             H.J. Lu  <hongjiu.lu@intel.com>
19307         * libgcov.c (create_file_directory): New function. Create
19308         directory for the given file name.
19309         (gcov_max_filename): New static var. Keeps size of the longest
19310         file name.
19311         (gcov_exit): Always try to create directory for output
19312         file. Relocate each filename basing on environment vars.
19313         (__gcov_init): Remember the longest file name.
19314         * tsystem.h: include filenames.h to get IS_DIR_SEPARATOR
19315         * doc/gcov.texi (Cross-profiling): New node documenting
19316         cross-profiling management.
19317         * doc/invoke.texi (-fprofile-arcs): Add xref to cross-profiling.
19319 2005-05-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
19321         * config/sparc/sparc.c (mem_min_alignment): Do not rely
19322         on MEM_ALIGN if TARGET_UNALIGNED_DOUBLES.
19324 2005-05-10  Bob Wilson  <bob.wilson@acm.org>
19326         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Rearrange special
19327         case code to avoid one move instruction.
19328         (__umodsi3, __modsi3): Merge duplicated code sequences.
19330 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
19332         * config/mips/24k.md, config/sh/divtab.c, config/sh/sh.c,
19333         config/sh/sh.md, config/sh/superh.h: Fix comment typos.
19334         * doc/invoke.texi: Fix typos.
19336         * tree-data-ref.c (analyze_array_indexes, analyze_array,
19337         init_data_ref, access_functions_are_affine_or_constant_p,
19338         free_data_refs): Use VEC instead of VARRAY.
19339         * tree-data-ref.h (data_reference): Change the type of
19340         access_fns to VEC(tree,gc)*.
19341         (DR_ACCESS_FN, DR_NUM_DIMENSIONS): Use VEC instead of VARRAY.
19343 2005-05-10  Gabor Loki <loki@gcc.gnu.org>
19345         PR c/17913
19346         * c-typeck.c (build_conditional_expr): Remove reducing cond_expr.
19347         * fold-const.c (fold): Expand the condition of reducing cond_expr.
19348         (contains_label_1, contains_label_p): New functions for checking
19349         labels in a sub-tree.
19351 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
19353         PR c/21342
19354         * c-decl.c (pushdecl): When there is a declaration in the current
19355         scope and the declarations are external linkage, check for
19356         compatibility with the type in the external scope and update the
19357         type in the external scope with the composite type information.
19358         Do not form a composite type of the new type and the visible type
19359         if they are incompatible.
19361 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
19363         * crtstuff.c: Revert part of 2005-05-08 Change.
19364         (IN_LIBGCC2): Define.
19366 2005-05-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
19368         * config/sparc/sparc.c (fp_sethi_p): Test !SPARC_SIMM13_P and
19369         remove redundant test.
19370         (fp_mov_p): Accept 0.
19371         (fp_high_losum_p): Remove redundant test.
19372         * config/sparc/predicates.md (const_high_operand): Explicitly test
19373         (not small_int_operand).
19374         (fp_const_high_losum_operand): New.
19375         * config/sparc/sparc.md (movsi_insn): Do not emit 'clr'.  Reorder.
19376         (movdi_insn_sp32_v9): Use canonical predicates.
19377         (movdi_insn_sp32): Test !TARGET_V9 instead of !TARGET_ARCH64.
19378         (movdi_insn_sp64_novis): Delete.
19379         (movdi_insn_sp64_vis): Rename into movdi_insn_sp64.
19380         (movsf_insn_novis): Delete.
19381         (movsf_insn_vis): Rename into movsf_insn.
19382         (movsf_no_f_insn): Rename into movsf_insn_no_fpu.
19383         (movsf_lo_sum): Use fp_const_high_losum_operand.
19384         (movsf_high): Likewise.
19385         (movsf_high_losum splitter): Likewise.
19386         (mov<V32:mode> expander): Use register_or_zero_operand.
19387         (mov<V64:mode> expander): Likewise.
19388         (movdf_insn_sp32): Use register_or_zero_operand.
19389         (movdf_no_e_insn_sp32): Use register_or_zero_operand.
19390         Rename into movdf_insn_sp32_no_fpu.
19391         (movdf_no_e_insn_v9_sp32): Use register_or_zero_operand.
19392         Rename into movdf_insn_sp32_v9_no_fpu.
19393         (movdf_insn_v9only_novis): Delete.
19394         (movdf_insn_v9only_vis): Rename into movdf_insn_sp32_v9.
19395         (movdf_insn_sp64_novis): Delete.
19396         (movdf_insn_sp64_vis): Rename into movdf_insn_sp64.
19397         (movdf_no_e_insn_sp64): Use register_or_zero_operand.
19398         Rename into movdf_insn_sp64_no_fpu.
19399         (movtf expander): Use register_or_zero_operand.
19400         (movtf_insn_sp32): Delete.
19401         (movtf_insn_vis_sp32): Use register_or_zero_operand.
19402         Rename into movtf_insn_sp32.
19403         (movtf_no_e_insn_sp32): Use register_or_zero_operand.
19404         Rename into movtf_insn_sp32_no_fpu.
19405         (movtf_insn_hq_sp64): Delete.
19406         (movtf_insn_hq_vis_sp64): Use register_or_zero_operand.
19407         Rename into movtf_insn_sp64_hq.
19408         (movtf_insn_sp64): Delete.
19409         (movtf_insn_vis_sp64): Use register_or_zero_operand.
19410         Rename into movtf_insn_sp64.
19411         (movtf_no_e_insn_sp64): Use register_or_zero_operand.
19412         Rename into movtf_insn_sp64_no_fpu.
19414 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
19416         * config/stormy16/stormy16.c (xstormy16_emit_cbranch): Use
19417         gcc_assert and gcc_unreachable as appropriate.
19418         (xstormy16_split_cbranch, xstormy16_output_cbranch_hi,
19419         xstormy16_output_cbranch_si, xstormy16_split_move,
19420         xstormy16_initial_elimination_offset,
19421         xstormy16_encode_section_info, xstormy16_print_operand_address,
19422         xstormy16_expand_call, xstormy16_expand_arith,
19423         xstormy16_output_shift, xstormy16_init_builtins): Likewise.
19425 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
19427         * tree-outof-ssa.c (_elim_graph): Change the type of nodes and
19428         const_copies to VEC(tree,heap)*.
19429         (new_elim_graph, delete_elim_graph, elim_graph_size,
19430         elim_graph_add_node, eliminate_build, eliminate_phi): Use VEC
19431         instead of VARRAY.
19433 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
19435         PR other/21052
19436         * doc/extend.texi (Type Attributes): Correct example syntax.
19438 2005-05-09  Joseph S. Myers  <joseph@codesourcery.com>
19440         PR c/21160
19441         * doc/invoke.texi (-Wuninitialized): Update documentation.
19443 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
19445         * arm.c (const_ok_for_arm): Use a faster algorithm.
19447 2005-05-09  David Edelsohn  <edelsohn@gnu.org>
19449         PR target/21477
19450         * config/rs6000/rs6000.md (add_op2): New.
19451         (add<mode>3): Use it.
19453 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
19455         * arm.c (arm_gen_constant): Add new heuristic for generating
19456         constant integers that can be expressed as the difference of two
19457         valid immediates.
19459 2005-05-09  Roger Sayle  <roger@eyesopen.com>
19461         * c-tree.h (parser_build_unary_op): New prototype.
19462         * c-typeck.c (parser_build_unary_op): New function to construct
19463         a unary operation in the C parser.
19464         * c-parser.c (c_parser_unary_expression):  Use the new function
19465         parser_build_unary_op when appropriate.
19467 2005-05-09  Mark Mitchell  <mark@codesourcery.com>
19469         PR 18655
19470         * dwarf2out.c (output_call_frame_info): Use DWARF2_FRAME_REG_OUT
19471         before outputting DWARF_FRAME_RETURN_COLUMN.
19473 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19475         * config/s390/s390.c: (s390_branch_condition_mask,
19476         s390_branch_condition_mnemonic, s390_extra_constraint_str,
19477         s390_const_ok_for_constraint_p, s390_expand_plus_operand,
19478         legitimize_pic_address, s390_emit_tls_call_insn,
19479         legitimize_tls_address, legitimize_tls_address,
19480         s390_expand_addcc, print_shift_count_operand, print_operand,
19481         addr_generation_dependency_p, annotate_constant_pool_refs,
19482         s390_split_branches, find_constant_pool_ref,
19483         replace_constant_pool_ref, s390_add_constant, s390_find_constant,
19484         s390_find_execute, s390_mainpool_start, s390_chunkify_start,
19485         s390_output_pool_entry, s390_function_value,
19486         s390_call_saved_register_used, s390_emit_call): Replace
19487         conditional aborts by gcc_assert and unconditional by gcc_unreachable.
19488         (s390_select_ccmode, s390_match_ccmode_set, s390_extract_part,
19489         s390_cannot_force_const_mem, s390_output_dwarf_dtprel,
19490         get_some_local_dynamic_name, s390_function_arg_size,
19491         s390_function_arg_advance, s390_function_arg,
19492         s390_expand_builtin, s390_gen_rtx_const_DI): Replace abort in
19493         default case by gcc_unreachable.
19494         * config/s390/s390.md: ("*cjump_31", "*icjump_31", "*jump31"): Replace
19495         conditional abort by gcc_assert.
19496         ("doloop_si31"): Replace abort in last else by gcc_unreachable.
19497         ("main_pool", "pool"): Replace unconditional abort by gcc_unreachable.
19499 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19501         * config/s390/s390.c: (s390_decompose_address,
19502         tls_symbolic_operand, legitimate_pic_operand_p,
19503         legitimate_constant_p, legitimate_reload_constant_p,
19504         s390_expand_plus_operand, legitimate_address_p,
19505         legitimate_la_operand_p, ): Remove 'register' from signature.
19506         (symbolic_reference_mentioned_p,
19507         tls_symbolic_reference_mentioned_p): Remove 'register' from local
19508         variable declarations.
19509         (legitimize_address): Remove 'register' from
19510         signature and local variable declarations.
19512 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19514         * config/s390/s390-protos.h: (s390_match_ccmode,
19515         s390_match_ccmode_set, reg_used_in_mem_p,
19516         symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
19517         legitimate_la_operand_p, preferred_la_operand_p,
19518         s390_short_displacement, addr_generation_dependency_p,
19519         legitimate_reload_constant_p, legitimate_address_p): Change return type
19520         into 'bool'.
19521         (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'.
19522         * config/s390/s390.c: (s390_match_ccmode,
19523         symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
19524         legitimate_reload_constant_p): Change return type into 'bool'.
19525         (preferred_la_operand_p,legitimate_la_operand_p, legitimate_address_p):
19526         Likewise.  Additionally adapted comment.
19527         (s390_extra_constraint_p): Change Comment to reflect 'int' return type.
19528         (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'.
19529         (s390_decompose_address): Change the type of the internal flags
19530         "pointer", "base_ptr", "indx_ptr", and the return value into 'bool'.
19531         (struct s390_address): Change type of "pointer" into bool.
19532         * config/s390/s390.md: ("*tmdi_reg", "*tmsi_reg", "tm<mode>_full"):
19533         Adapt calls for 's390_tm_ccmode' to the new signature.
19535 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19537         * config/s390/s390.c: (s390_match_ccmode_set,
19538         s390_branch_condition_mnemonic, s390_short_displacement,
19539         s390_decompose_address, get_thread_pointer, legitimize_tls_address,
19540         print_shift_count_operand, get_some_local_dynamic_name,
19541         get_some_local_dynamic_name_1, reg_used_in_mem_p,
19542         addr_generation_dependency_p, s390_split_branches,
19543         annotate_constant_pool_refs, find_constant_pool_ref,
19544         replace_constant_pool_ref, find_ltrel_base, replace_ltrel_base,
19545         s390_optimize_prologue, find_unused_clobbered_reg, s390_frame_area,
19546         s390_register_info, s390_frame_info, s390_init_frame_layout,
19547         s390_update_frame_layout, save_fpr, restore_fpr, save_gprs,
19548         restore_gprs, s390_function_arg_size, s390_function_arg_float,
19549         s390_init_machine_status, s390_assemble_integer, s390_handle_option,
19550         s390_encode_section_info, s390_cannot_force_const_mem,
19551         s390_delegitimize_address, s390_return_in_memory, s390_init_builtins,
19552         s390_expand_builtin, s390_output_mi_thunk, s390_safe_attr_type,
19553         s390_adjust_priority, s390_issue_rate,
19554         s390_first_cycle_multipass_dfa_lookahead, s390_cannot_copy_insn_p,
19555         s390_rtx_costs, s390_address_cost, s390_reorg, s390_valid_pointer_mode,
19556         s390_build_builtin_va_list, s390_gimplify_va_arg,
19557         s390_function_ok_for_sibcall, s390_call_saved_register_used,
19558         s390_pass_by_reference, s390_fixed_condition_code_regs,
19559         s390_cc_modes_compatible s390_mainpool_start,, s390_mainpool_finish,
19560         s390_mainpool_cancel, s390_chunkify_start, s390_chunkify_finish,
19561         s390_chunkify_cancel, s390_start_pool, s390_end_pool,
19562         s390_add_pool_insn, s390_find_pool, s390_add_constant,
19563         s390_find_constant, s390_add_execute, s390_find_execute,
19564         s390_execute_label, s390_execute_target, s390_dump_pool,
19565         s390_dump_execute, s390_alloc_pool, s390_free_pool): Remove prototypes.
19566         Move target macro definitions to the end of the file.  Move several
19567         functions within the file to assure correct compiling.
19569 2005-05-09  Steven Bosscher  <stevenb@suse.de>
19571         * calls.c (purge_reg_equiv_notes): Remove, fold into...
19572         (fixup_tail_calls): ...here.  Only look at insns between the
19573         start of the function and the FUNCTION_BEG insn note.
19575         * gcse.c (one_cprop_pass): Fix typos in dumps.
19577         * tree-ssa-operands.h (FOR_EACH_PHI_ARG): Fix typos.
19579 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19581         * config/s390/s390.h: Move xxx_REGNUM definitions to s390.md.
19582         * config/s390/s390.md: ("SIBCALL_REGNUM", "BASE_REGNUM",
19583         "RETURN_REGNUM", "CC_REGNUM", "TP_REGNUM"): New constants.
19584         Replace every occurrence of '(reg:<MODE> 33)' by '(reg:<MODE>
19585         CC_REGNUM)'.
19586         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Replace
19587         '(reg:<MODE> 36)' by '(reg:<MODE> TP_REGNUM)'.
19588         ("*sibcall_br", "*sibcall_value_br"): Replace '(reg:DI 1)' by '(reg:DI
19589         REG_SC)'.
19591 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19593         * config/s390/s390.md: ("gf") New mode attribute.
19594         ("fixuns_truncdfdi2", "fixuns_truncdfsi2", "fixuns_truncsfdi2",
19595         "fixuns_truncsfsi2"): Merge.
19596         ("fix_truncdfdi2", "fix_truncsfdi2"): Merge.
19597         ("fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee", "fix_truncsfdi2_ieee",
19598         "fix_truncsfsi2_ieee"): Merge.
19600 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19602         * config/s390/s390.md: ("FPR") New mode macro.
19603         ("de", "dee"): New mode attributes.
19604         ("cmpdf", "cmpsf"): Merge.
19605         ("*cmpdf_ccs_0", "*cmpsf_ccs_0"): Merge.
19606         ("*cmpdf_ccs_0_ibm", "*cmpdf_ccs_0_ibm"): Merge.
19607         ("*cmpdf_ccs", "*cmpsf_ccs"): Merge.
19608         ("*cmpdf_ccs_ibm", "*cmpsf_ccs_ibm"): Merge.
19609         ("floatdidf2", "floatdisf2"): Merge.
19610         ("adddf3", "addsf3"): Merge.
19611         ("*adddf3", "*addsf3"): Merge.
19612         ("*adddf3_cc", "*addsf3_cc"): Merge.
19613         ("*adddf3_cconly", "*addsf3_cconly"): Merge.
19614         ("*adddf3_ibm", "*addsf3_ibm"): Merge.
19615         ("subdf3", "subsf3"): Merge.
19616         ("*subdf3", "*subsf3"): Merge.
19617         ("*subdf3_cc", "*subsf3_cc"): Merge.
19618         ("*subdf3_cconly", "*subsf3_cconly"): Merge.
19619         ("*subdf3_ibm", "*subsf3_ibm"): Merge.
19620         ("muldf3", "mulsf3"): Merge.
19621         ("*muldf3", "*mulsf3" "): Merge.
19622         ("*muldf3_ibm", "*mulsf3_ibm"): Merge.
19623         ("*fmadddf", "*fmaddsf"): Merge.
19624         ("*fmsubdf", "*fmsubsf"): Merge.
19625         ("divdf3", "divsf3"): Merge.
19626         ("*divdf3", "*divsf3"): Merge.
19627         ("*divdf3_ibm", "*divsf3_ibm"): Merge.
19628         ("negdf2", "negsf2"): Merge.
19629         ("*negdf2_cc", "*negsf2_cc"): Merge.
19630         ("*negdf2_cconly", "*negsf2_cconly"): Merge.
19631         ("*negdf2", "*negsf2"): Merge.
19632         ("*negdf2_ibm", "*negsf2_ibm"): Merge.
19633         ("absdf2", "abssf2"): Merge.
19634         ("*absdf2_cc", "*abssf2_cc"): Merge.
19635         ("*absdf2_cconly", "*abssf2_cconly"): Merge.
19636         ("*absdf2", "*abssf2"): Merge.
19637         ("*absdf2_ibm", "*abssf2_ibm"): Merge.
19638         ("*negabsdf2_cc", "*negabssf2_cc"): Merge.
19639         ("*negabsdf2_cconly", "*negabssf2_cconly"): Merge.
19640         ("*negabsdf2", "*negabssf2"): Merge.
19641         ("sqrtdf2", "sqrtsf2"): Merge.
19643 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19645         * config/s390/s390.c: (s390_adjust_priority): Adapt to changed
19646         attribute names.
19647         * config/s390/2084.md: ("x_fsimpd", "x_fsimps", "x_fdivd", "x_fdivs",
19648         "x_floadd", "x_floads", "x_fstored", "x_fstores"): Rename to
19649         ("x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
19650         "x_floadsf", "x_fstoredf", "x_fstoresf") and replace 'type'
19651         attribute names.
19652         * config/s390/s390.md: ("type"): Rename "fsimpd, fsimps, floadd, floads,
19653         fstored, fstores, fmuld, fmuls, fdivd, fdivs, fsqrtd, fsqrts" to
19654         "fsimpdf, fsimpsf, floaddf, floadsf, fstoredf, fstoresf, fmuldf,
19655         fmulsf, fdivdf, fdivsf, fsqrtdf, fsqrtsf".
19656         ("*cmpdf_ccs_0", "*cmpdf_css_0_ibm", "*cmpdf_ccs",
19657         "*cmpdf_ccs_ibm", "*cmpsf_ccs_0", "*cmpsf_css_0_ibm",
19658         "*cmpsf_ccs", "*cmpsf_ccs_ibm", "*movdi_64", "*movdi_31",
19659         "*movsi_zarch", "*movsi_esa", "*movdf_64", "*movdf_31", "movsf",
19660         "*muldf3", "*muldf3_ibm", "*fmadddf", "*fmsubdf", "*mulsf3",
19661         "mulsf3_ibm", "*fmaddsf", "fmsubsf", "*divdf3", "*divdf3_ibm",
19662         "*negdf2_cc", "*negdf2_cconly", "*negdf2", "*negdf2_ibm",
19663         "*negsf2_cc", "*negsf2_cconly", "*negsf2", "*absdf2_cc",
19664         "*absdf2_cconly", "*absdf2", "*absdf2_ibm", "*abssf2_cc",
19665         "*abssf2_cconly", "*abssf2", "*abssf2_ibm", "*negabsdf2_cc",
19666         "*negabsdf2_cconly", "*negabsdf2", "*negabssf2_cc",
19667         "*negabssf2_cconly", "*negabssf2", "sqrtdf2", "sqrtsf2"): Rename
19668         'type' value.
19669         ("*divsf3"): Additionally rename second pattern to
19670         "*divsf3_ibm".
19671         ("truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
19672         "*adddf3", "*adddf3_cc", "*adddf3_cconly", "*adddf3_ibm",
19673         "*addsf3", "*addsf3_cc", "*addsf3_cconly", "*subdf3",
19674         "subdf3_cc", "*subdf3_cconly", "*subdf3_ibm", "*subsf3",
19675         "subsf3_cc", "*subsf3_cconly", "*subsf3_ibm"): Merge identical
19676         'type values' and rename 'type' value.
19677         ("*addsf3"): Additionally rename second pattern to
19678         "*addsf3_ibm".
19680 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19682         * config/s390/s390.md: ("SHIFT"): New mode macro.
19683         ("lr", "shift"): New mode attributes.
19684         ("ashldi3", "lshrdi3"): Merge.
19685         ("*ashldi3_31", "*lshrdi3"_31): Merge.
19686         ("*ashldi3_64", "*lshrdi3"_64): Merge.
19687         ("ashlsi3", "lshrsi3"): Merge.
19689 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19691         * config/s390/s390.md: ("DSI", "SCOND"): New mode
19692         macros.
19693         ("E", "g"): New mode attributes.
19694         ("*adddi3_alc_cc", "*addsi3_alc_cc"): Merge.
19695         ("*adddi3_alc", "*addsi3_alc"): Merge.
19696         ("*subdi3_slb_cc", "*subsi3_slb_cc"): Merge.
19697         ("*subdi3_slb", "*subsi3_slb"): Merge.
19698         ("adddicc", "addsicc"): Merge.
19699         ("*sconddi", "*scondsi"): Merge.
19700         ("*sconddi_neg", "*scondsi_neg"): Merge.
19701         ("sltu", "sgtu", "sleu", "sgeu"): Merge.
19702         ("negdi2", "negsi2"): Extract expander pattern from
19703         "negsi2" and merge with "negdi2".
19704         ("*negdi2"): Merge with instruction pattern of "negsi2".
19705         ("*negdi2_cc", "*negsi2_cc"): Merge.
19706         ("*negdi2_cconly", "*negsi2_cconly"): Merge.
19707         ("rotldi3", "rotlsi3"): Merge.
19709 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19711         * config/s390/s390.md: ("hc"): New mode attribute.
19712         ("extendhidi2", "extendqidi2"): Merge.
19713         ("*extendhidi2", "*extendqidi2"): Merge.
19714         ("extendhisi2", "extendqisi2"): Merge.
19715         ("zero_extendhidi2", "zero_extendqidi2"): Merge.
19716         ("*zero_extendhidi2", "*zero_extendqidi2"): Merge.
19717         Merged 2 define_split.
19718         ("*zero_extendhisi2", "*zero_extendqisi2"): Merge.
19719         ("*zero_extendhisi2_64", "*zero_extendqisi2_64"): Merge.
19721 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19723         * config/s390/s390.md: ("COMPARE"): New mode macro.
19724         ("beq", "bne", "bgt", "bgtu", "blt", "bltu", "bge", "bgeu",
19725         "ble", "bleu", "bunordered", "bordered", "buneq", "bunlt",
19726         "bungt", "bunle", "bunge", "bltgt"): Merge.
19728 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19730         * config/s390/s390.md: ("INT"): New mode macro.
19731         ("one_cmpldi2", "one_cmplsi2", "one_cmplhi2", "one_cmplqi2"):
19732         Merge.
19734 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19736         * config/s390/s390.md: ("GPR", "P"): New mode macros.
19737         ("cmpdi", "cmpsi"): Merge.
19738         ("strlendi", "strlensi"): Merge.
19739         ("*strlendi", "*strlensi"): Merge.
19740         ("movmemdi", "movmemsi"): Merge.
19741         ("clrmemdi", "clrmemsi"): Merge.
19743 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19745         * config/s390/s390.md: ("HQI"): New mode macro.
19746         ("icm_lo", "icm_hi", "max_uint"): New mode attributes.
19747         ("*tmhi_full", "*tmqi_full"): Merge.
19748         ("*tsthiCCT", "*tstqiCCT"): Merge.
19749         ("*tsthi", "*tstqi"): Merge.
19750         ("*tsthi_cconly", "tstqi_cconly"): Merge.
19751         ("*sethighhisi", "*sethighqisi"): Merge.
19753 2005-05-09  Kazu Hirata  <kazu@cs.umass.edu>
19755         * crtstuff.c, integrate.h, tree-scalar-evolution.h,
19756         config/alpha/unicosmk.h, config/arc/arc.md,
19757         config/arm/bpabi.h, config/arm/coff.h, config/arm/elf.h,
19758         config/arm/ieee754-df.S, config/arm/ieee754-sf.S,
19759         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
19760         config/arm/semi.h, config/arm/uclinux-elf.h,
19761         config/arm/wince-pe.h, config/fr30/fr30.c,
19762         config/rs6000/altivec.h: Update copyright.
19764 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
19766         * config/pdp11/pdp11.c (pdp11_output_function_prologue): Use
19767         gcc_assert and gcc_unreachable as appropriate.
19768         (pdp11_output_function_epilogue, output_move_double,
19769         output_move_quad, print_operand_address, output_jump,
19770         output_addr_const_pdp11): Likewise.
19771         * config/pdp11/pdp11.h (FUNCTION_PROFILER,
19772         ASM_OUTPUT_ALIGN): Likewise.
19773         * config/pdp11/pdp11.md: Likewise.
19774         (extendhisi2, subhi3, subqi3): Likewise.
19776 2005-05-09  David Edelsohn  <edelsohn@gnu.org>
19778         PR middle-end/21237
19779         * dojump.c (do_jump, MINUS_EXPR): Build NE_EXPR and fall through
19780         to NE_EXPR case.
19782 2005-05-09  Kazu Hirata  <kazu@cs.umass.edu>
19784         * config/ia64/ia64.c: Fix a comment typo.
19786 2005-05-09  Richard Earnshaw  <rearnsha@arm.com>
19788         PR target/21397
19789         * arm.c (ARM_OPT_SET_CPU, ARM_OPT_SET_ARCH, ARM_OPT_SET_TUNE): Define.
19790         (arm_override_options): Use them instead of manifest constants.  Don't
19791         allow -march to override the -mtune setting.
19793 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
19795         * config/iq2000/iq2000.c (abort_with_insn): Use fancy_abort.
19796         (gen_int_relational): Use gcc_unreachable and gcc_assert as necessary.
19797         (function_arg_advance, function_arg, save_restore_insns,
19798         iq2000_expand_prologue, iq2000_output_conditional_branch,
19799         expand_one_builtin, print_operand):
19800         * config/iq2000/iq2000.md (tablejump): Likewise.
19802 2005-05-09  David Ung  <davidu@mips.com>
19804         * config/mips/mips.h (processor_type): Add names for the 24K.
19805         * config/mips/mips.c (mips_cpu_info_table): Add names for the 24K
19806         processor family.
19807         * config/mips/mips.md (cnv_mode): New attribute for recording the
19808         conversion types of float convert insns.
19809         (cpu): Add 24k and 24kx.
19810         (include): Include 24k.md file.
19811         (truncdfsf2, extendsfdf2, fix_truncdfsi2_insn, fix_truncdfsi2_macro)
19812         (fix_truncdfdi2, fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2)
19813         (floatdisf2): Setup cnv_mode.
19814         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): Changed mode to SF and
19815         setup cnv_mode.
19816         * config/mips/24k.md: New file, contains 24k DFA pipeline
19817         description.
19819 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
19821         * config/sh/sh.c (print_operand_address): Use gcc_assert and
19822         gcc_unreachable as appropriate.
19823         (print_operand, prepare_move_operands, prepare_scc_operands,
19824         output_movedouble, output_branch, shift_insns_rtx, gen_shifty_op,
19825         gen_shl_and, shl_sext_kind, gen_datalabel_ref, dump_table,
19826         fixup_mova, gen_far_branch, sh_reorg, split_branches,
19827         final_prescan_insn, output_stack_adjust, sh_expand_epilogue,
19828         sh_set_return_address, sh_setup_incoming_varargs,
19829         initial_elimination_offset, sh_pch_valid_p, get_free_reg,
19830         sh_expand_builtin, sh_output_mi_thunk, extract_sfunc_addr,
19831         check_use_sfunc_addr): Likewise.
19832         * config/sh/netbsd-elf.h (FUNCTION_PROFILER): Likewise.
19833         * config/sh/sh.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
19834         * config/sh/symbian.c (sh_symbian_mark_dllexport,
19835         sh_symbian_mark_dllimport): Likewise.
19836         * config/sh/sh.md: Likewise.
19837         (movdicc, call_pop, call_value_pop, casesi_worker_1,
19838         casesi_worker_2, casesi_shift_media, casesi_load_media,
19839         return_media): Likewise.
19841 2005-05-08  Roger Sayle  <roger@eyesopen.com>
19843         PR inline-asm/8788
19844         * stmt.c (expand_asm_operands): Avoid calling force_reg on BLKmode
19845         operands.
19847 2005-05-08  Richard Henderson  <rth@redhat.com>
19849         * config/alpha/alpha.c (adjust_address): Fix typo last change.
19851 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
19853         * config/m68hc11/m68hc11.h (REG_VALID_P): A regno must be >= 0
19854         and -1 can happen in reg_renumber when no hard register is assigned.
19856 2005-05-08  Steven Bosscher  <stevenb@suse.de>
19857             Kazu Hirata  <kazu@cs.umass.edu>
19859         PR tree-optimization/14841, tree-optimization/15838
19860         * tree-ssa-ccp.c (fold_const_aggregate_ref): New.
19861         (evaluate_stmt): Call it.
19863 2005-05-08  Jakub Jelinek  <jakub@redhat.com>
19865         * config/ia64/ia64.c (ia64_override_options): Don't set
19866         ia64_flag_var_tracking and clear flag_var_tracking here...
19867         (ia64_file_start): ... but here.
19869 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
19871         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use gcc_assert
19872         and gcc_unreachable as appropriate.
19873         (expand_prologue, expand_epilogue, m68hc11_gen_lowpart,
19874         m68hc11_gen_highpart, print_operand, print_operand_address,
19875         m68hc11_expand_compare, m68hc11_expand_compare_and_branch,
19876         m68hc11_gen_movhi): Likewise.
19877         * config/m68hc11/m68hc11.h (HARD_X_REGNUM): Reword comment.
19878         * config/m68hc11/m68hc11.md: Reword comment.
19880 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
19882         PR target/21281
19883         * config/m68hc11/predicates.md (splitable_operand): An immediate is
19884         allowed.
19886 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
19888         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Do not allow
19889         the 68HC12 address indirect addressing mode as it is not supported by
19890         bset and bclr.
19891         * config/m68hc11/m68hc11-protos.h
19892         (m68hc11_valid_addressing_p): Declare.
19893         (m68hc11_add_mode): Declare.
19894         * config/m68hc11/m68hc11.c (m68hc11_valid_addressing_p): Rename from
19895         register_indirect_p and export it.
19896         (m68hc11_z_replacement): Use emit_insn_after when adding the save Z
19897         instruction so that it is part of the good BB.
19898         (m68hc11_gen_movhi): Fix invalid generation of indexed indirect
19899         addressing with movw.
19900         (m68hc11_gen_movqi): Use pula and pulb instead of lda and ldb for
19901         68HC12.
19902         * config/m68hc11/m68hc11.h (ADDR_STRICT, ADDR_INCDEC, ADDR_INDEXED,
19903         ADDR_OFFSET, ADDR_INDIRECT, ADDR__CONST): Moved from m68hc11.c.
19904         * config/m68hc11/m68hc11.md ("movhi_const0"): Use this pattern only
19905         for 68HC11.
19906         ("*movhi_68hc12"): Handle movhi_const0.
19907         ("*subhi3", "subqi3"): Use general_operand for operand 1.
19908         ("*subhi3_zext"): Likewise.
19910 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
19912         PR target/19051
19913         * config/m68hc11/m68hc11.md ("mulqi3"): Use general_operand for
19914         operand 1 and fix constraints.
19915         ("mulqihi3"): Use general_operand for operand 2.
19917 2005-05-08  Julian Brown  <julian@codesourcery.com>
19918             H.J. Lu  <hongjiu.lu@intel.com>
19919             Paul Brook  <paul@codesourcery.com>
19921         * configure.ac: Set ld_vers_major, ld_vers_minor and ld_vers_patch for
19922         GNU linker. Support linker version x.x.x.x.x. Require GNU linker
19923         20050308/2.16.0 or newer for comdat group.
19924         * configure: Regenerated.
19925         * config.in: Regenerated.
19926         * varasm.c (default_function_rodata_section): Put .rodata section in
19927         COMDAT group when necessary.
19928         (default_elf_asm_named_section): Rename HAVE_GAS_COMDAT_GROUP to
19929         HAVE_COMDAT_GROUP.
19930         (default_unique_section_1): Don't use .gnu.linkonce when COMDAT is
19931         available.
19933 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
19935         * tree-dfa.c (referenced_vars, add_referenced_var): Use VEC
19936         instead of VARRAY.
19937         * tree-flow.h (num_referenced_var, referenced_var): Likewise.
19938         * tree-into-ssa.c (mark_def_site_blocks): Likewise.
19939         * tree-ssa.c (init_tree_ssa, delete_tree_ssa): Likewise.
19940         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
19942 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
19944         PR target/16925
19945         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Handle split of
19946         64-bit constants on 64-bit hosts.
19947         (m68hc11_split_logical): Simplify.
19948         (m68hc11_split_move): Likewise.
19950 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
19951             Paolo Bonzini  <bonzini@gnu.org>
19953         * Makefile.in (cs-tconfig.h): Pass USED_FOR_TARGET to mkconfig.sh
19954         * aclocal.m4 (GCC_TARGET_TEMPLATE, AH_TEMPLATE): New.
19955         * configure.ac (enable_checking): Fix typos in runtime_checking.
19956         (ENABLE_RUNTIME_CHECKING): Mark as target template.
19957         (xm_file): Prepend auto-host.h
19958         (HAVE_GAS_HIDDEN, HAVE_LD_EH_FRAME_HDR): Mark as target template.
19959         * mkconfig.sh: Do not automatically define USED_FOR_TARGET in
19960         tconfig.h.
19961         * crtstuff.c: Do not include auto-host.h.
19962         (IN_LIBGCC2): Do not define.
19963         * gcov-io.h: Include tconfig.h, not auto-host.h.
19964         * libgcc2.c: Do not include auto-host.h.
19965         (abort): Do not undefine.
19966         * libgcov.c: Remove unneeded comment about config.h.
19967         * unwind-dw2-fde-glibc.c: Do not inlude auto-host.h.
19968         * config.in, configure: Regenerated.
19970 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
19971             Falk Hueffner  <falk@debian.org>
19973         * config/alpha/alpha.c (tls_symbolic_operand_1): Use gcc_assert
19974         and gcc_unreachable as appropriate.
19975         (get_aligned_mem, get_unaligned_address,
19976         alpha_emit_set_long_const, alpha_emit_conditional_branch,
19977         alpha_emit_setcc, alpha_emit_conditional_move,
19978         alpha_lookup_xfloating_lib_func, alpha_compute_xfloating_mode_arg,
19979         alpha_emit_xfloating_libcall, alpha_split_tfmode_pair,
19980         alpha_expand_unaligned_load, alpha_expand_block_move,
19981         alpha_expand_zap_mask, get_trap_mode_suffix,
19982         get_round_mode_suffix, get_some_local_dynamic_name,
19983         print_operand_address, function_arg, alpha_return_in_memory,
19984         function_value, alpha_expand_builtin,
19985         alpha_initial_elimination_offset, alpha_expand_epilogue,
19986         summarize_insn, alpha_handle_trap_shadows, alphaev5_insn_pipe,
19987         alphaev5_next_group, alpha_align_insns,
19988         unicosmk_initial_elimination_offset, unicosmk_unique_section,
19989         unicosmk_ssib_name): Likewise.
19990         * config/alpha/alpha.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
19991         * config/alpha/unicosmk.h (TRAMPOLINE_TEMPLATE,
19992         ASM_OUTPUT_ADDR_DIFF_ELT, ASM_OUTPUT_ADDR_DIFF_VEC): Likewise.
19993         * config/alpha/vms.h (INITIAL_ELIMINATION_OFFSET,
19994         ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
19995         * config/alpha/alpha.md (*divmodsi_internal_er,
19996         *divmoddi_internal_er, ashldi3, *insxl, sibcall, call_osf,
19997         call_nt, call_umk, call_vms, call_value, sibcall_value,
19998         call_value_osf, call_value_nt, call_value_vms, call_value_umk,
19999         *call_vms_1, *movmemdi_1, *clrmemdi_1, *call_value_vms_1): Likewise.
20000         * config/alpha/predicates.md (input_operand): Likewise.
20002 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
20004         * config/frv/frv.c (frv_default_flags_for_cpu): Use gcc_assert and
20005         gcc_unreachable, as appropriate.
20006         (frv_function_prologue, frv_alloc_temp_reg,
20007         frv_initial_elimination_offset, frv_expand_block_move,
20008         frv_expand_block_clear, frv_print_operand_jump_hint,
20009         frv_legitimize_tls_address, unspec_got_name, frv_emit_move,
20010         frv_emit_movsi, frv_split_cond_move, frv_split_minmax,
20011         frv_ifcvt_modify_insn, frv_ifcvt_modify_final,
20012         frv_adjust_field_align, frv_insn_unit, frv_cond_flags,
20013         frv_sort_insn_group, frv_reorder_packet, frv_matching_accg_mode,
20014         frv_in_small_data_p, frv_asm_out_constructor,
20015         frv_asm_out_destructor, frv_output_dwarf_dtprel): Likewise.
20016         * config/frv/frv.md (reload_incc_fp, *cond_exec_si_binary1,
20017         *cond_exec_si_binary2, *cond_exec_si_divide, *cond_exec_si_unary1,
20018         *cond_exec_sf_conv, *cond_exec_sf_add, call, sibcall, call_value,
20019         sibcall_value, casesi): Likewise.
20021         * config/mn10300/mn10300.c (print_operand): Use gcc_assert and
20022         gcc_unreachable as appropriate.
20023         (print_operand_address, mn10300_print_reg_list, expand_prologue,
20024         expand_epilogue, notice_update_cc, initial_offset,
20025         mn10300_address_cost_1): Likewise.
20026         * config/mn10300/mn10300.md: Likewise.
20027         (absdf2, abssf2, negdf2, negsf2): Likewise.
20029 2005-05-08  Richard Sandiford  <rsandifo@redhat.com>
20031         PR target/21416
20032         * config/mips/mips.c (mips_emit_compare): Don't reverse UNGE and UNGT
20033         comparisons.
20034         * config/mips/mips.md (swapped_fcond): New code macro and attribute.
20035         (sgt_<mode>, sge_<mode>): Generalize to all members of swapped_fcond,
20036         including sunge_<mode> and sungt_<mode>.
20038 2005-05-08  Richard Sandiford  <rsandifo@redhat.com>
20040         * integrate.h (get_hard_reg_initial_val): Change type of register
20041         parameter from int to unsigned int.
20042         (has_hard_reg_initial_val): Likewise.
20043         * integrate.c (get_hard_reg_initial_val): Likewise.
20044         (has_hard_reg_initial_val): Likewise.  Remove cast to unsigned int.
20046 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
20048         * except.c (eh_status): Change the type of ttype_data to
20049         VEC(tree,gc)*.
20050         (add_ttypes_entry, assign_filter_values,
20051         output_function_exception_table): Use VEC instead of VARRAY.
20053 2005-05-07  David Edelsohn  <edelsohn@gnu.org>
20055         * config/rs6000/rs6000.md (popcount<mode>2): Fix non-C90 constant.
20057 2005-05-07  Paul Brook  <paul@codesourcery.com>
20059         * Makefile.in: Fix dependencies.
20060         (GCOV_IO_H, VARRAY_H): Set.
20062 2005-05-07  Anthony Green  <green@redhat.com>
20064         PR bootstrap/21403
20065         * configure.ac (STMP_FIXPROTO): Fix [ ] consumption problem in
20066         x$STMP_FIXPROTO test.
20067         * configure: Rebuilt.
20069 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
20071         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define
20072         inappropriate feature test macros if flag_iso.
20074 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
20076         * config/ia64/hpux.h (NO_IMPLICIT_EXTERN_C): Define.
20078 2005-05-07  Hans-Peter Nilsson  <hp@axis.com>
20080         PR target/21441
20081         * config/cris/cris.md ("*movdi_insn", "*mov_sidesisf_biap")
20082         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
20083         Handle moved operand being in special register.
20084         ("smulsi3_highpart", "umulsi3_highpart"): Change .error into
20085         presumed working insn.
20086         (mover2side): Add FIXME.
20088 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
20090         * integrate.c (get_func_hard_reg_initial_val): Delete.
20091         (has_func_hard_reg_initial_val): Delete.
20092         (get_hard_reg_initial_val): Inline the old implementation of
20093         get_func_hard_reg_initial_val.  Use has_hard_reg_initial_val
20094         instead of has_func_hard_reg_initial_val to test for an existing
20095         pseudo.  Only create an rtx if a new initial value entry is needed.
20096         (has_hard_reg_initial_val): Scan the initial value list directly.
20097         Don't create an rtx.
20099 2005-05-07  David Edelsohn  <edelsohn@gnu.org>
20101         * config.gcc ({powerpc,rs6000}-ibm-aix*): Remove rs6000/aix.opt
20102         from extra_options.
20103         * config.in (HAVE_AS_POPCNTB): New.
20104         * configure.ac (HAVE_AS_MFCRF): Add .machine "pwr5" to AIX test.
20105         (HAVE_AS_POPCNTB): New.
20106         * configure: Regenerated.
20107         * config/rs6000/aix.h (TARGET_XL_COMPAT): Delete.
20108         * config/rs6000/rs6000.c (rs6000_override_options, power5): Add
20109         MASK_POPCNTB.  Uncomment rs6000_sched_restricted_insns_priority
20110         and rs6000_sched_costly_dep.
20111         * config/rs6000/rs6000.h (TARGET_POPCNTB): New.
20112         (TARGET_XL_COMPAT): Delete.
20113         * config/rs6000/rs6000.md (UNSPEC_POPCNTB): New.
20114         (popcount<mode>2): New.
20115         (popcntb<mode>2): New.
20116         * config/rs6000/rs6000.opt (mpopcntb): New.
20118         * opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask
20119         if variable name exists.
20121 2005-05-07  Matt Kraai  <kraai@ftbfs.org>
20123         * Makefile.in (c-gimplify.o): Depend on $(RTL_H) instead of rtl.h.
20125 2005-05-07  Richard Henderson  <rth@redhat.com>
20127         PR target/21412
20128         * config/rs6000/rs6000.c (rs6000_emit_move): Look for tls addresses
20129         with constant offsets.
20131 2005-05-07  Nathan Sidwell  <nathan@codesourcery.com>
20133         * config/v850/v850.c (print_operand): Use gcc_assert and
20134         gcc_unreachable, as appropriate.
20135         (print_operand_address, v850_handle_data_area_attribute,
20136         v850_encode_data_area, construct_restore_jr, construct_save_jarl,
20137         v850_insert_attributes, construct_prepare_instruction): Likewise.
20138         * config/v850/v850.h (INITIAL_ELIMINATION_OFFSET): Likewise.
20139         * config/v850/v850.md (movsicc, *sasf_1): Likewise.
20141 2005-05-07  Kazu Hirata  <kazu@cs.umass.edu>
20143         * tree-ssa-loop-ivcanon.c, config/i386/i386.c,
20144         config/rs6000/rs6000.h: Fix comment typos.
20146 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
20148         * doc/invoke.texi: Remove documentation for MIPS' -mint64 option.
20149         * config/mips/mips.c (TARGET_SCALAR_MODE_SUPPORTED_P): Delete.
20150         (mips_scalar_mode_supported_p): Delete.
20152 2005-05-06  Eric Christopher  <echristo@redhat.com>
20154         * config/mips/mips.opt: Remove -mint64 option.
20155         * config/mips/mips.c (override_options): Remove -mint64
20156         handling.
20157         * config/mips/mips.h (INT_TYPE_SIZE): Define to 32.
20158         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove
20159         64-bit integer handling.
20160         * doc/invoke.texi (Option Summary): Remove -mint64 for
20161         mips.
20163 2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>
20165         PR tree-optimization/19401
20166         * tree-flow.h (tree_unroll_loops_completely): Declaration changed.
20167         * tree-ssa-loop-ivcanon.c (enum unroll_level): New.
20168         (estimated_unrolled_size): New function.
20169         (try_unroll_loop_completely, canonicalize_loop_induction_variables,
20170         tree_unroll_loops_completely): Always unroll loops if the code size
20171         does not increase.
20172         * tree-ssa-loop.c (tree_complete_unroll): Indicate whether all
20173         loops should be unrolled completely.
20174         (gate_tree_complete_unroll): Run complete unrolling unconditionally.
20176 2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>
20178         PR rtl-optimization/21254
20179         * loop-iv.c (iv_number_of_iterations): Simplify infiniteness
20180         assumptions for loops that otherwise do not roll.
20181         (find_simple_exit): Prefer # of iterations that is guaranteed
20182         not to be infinite.
20183         * loop-unroll.c (decide_peel_once_rolling,
20184         decide_peel_completely): Check whether the loop is infinite.
20186 2005-05-06  Pat Haugen  <pthaugen@us.ibm.com>
20188         * config/rs6000/sysv4.opt: Fix typo.
20190 2005-05-06  Denis Vlasenko  <vda@port.imtp.ilyichevsk.odessa.ua>
20191             Jakub Jelinek  <jakub@redhat.com>
20193         PR target/21329
20194         * config/i386/i386.c (ix86_expand_movmem): Don't use rep; movsb
20195         for -Os if (movsl;)*(movsw;)?(movsb;)? sequence is shorter.
20196         Don't use rep; movs{l,q} if the repetition count is really small,
20197         instead use a sequence of movs{l,q} instructions.
20199 2005-05-06  Jeff Law  <law@redhat.com>
20201         PR tree-optimization/21380
20202         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
20203         thread through a block with no preds.
20205 2005-05-06  Kazu Hirata  <kazu@cs.umass.edu>
20207         * tree-ssa-operands.c (clobbered_v_may_defs, clobbered_vuses,
20208         ro_call_vuse, fini_ssa_operands, add_call_clobber_ops,
20209         add_call_read_ops): Use VEC instead of VARRAY.
20211 2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
20213         * config/mcore/mcore.c (mcore_print_operand_address): Use
20214         gcc_assert and gcc_unreachable as appropriate.
20215         (mcore_print_operand, mcore_gen_compare_reg, mcore_output_call,
20216         mcore_output_andn, output_inline_const, mcore_output_move,
20217         mcore_output_movedouble, mcore_expand_block_move,
20218         layout_mcore_frame, mcore_initial_elimination_offset,
20219         mcore_expand_prolog, mcore_mark_dllexport,
20220         mcore_mark_dllimport): Likewise.
20221         * config/mcore/mcore.h (switch_to_section): Likewise.
20222         * config/mcore/mcore.md: Likewise.
20224 2005-05-06  Aldy Hernandez  <aldyh@redhat.com>
20226         * config/rs6000/linux64.h: Remove MASK_PROFILE_KERNEL, and
20227         TARGET_PROFILE_KERNEL.
20229         * config/rs6000/rs6000.c (output_profile_hook): Add comment to
20230         TARGET_PROFILE_KERNEL use.
20232 2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
20234         * config/m32r/m32r.c (m32r_encode_section_info): Use gcc_assert
20235         and gcc_unreachable, as appropriate.
20236         (gen_compare, gen_split_move_double, m32r_setup_incoming_varargs,
20237         m32r_expand_prologue, m32r_output_function_epilogue,
20238         m32r_legitimize_pic_address, m32r_print_operand_address,
20239         emit_cond_move, m32r_function_symbol,
20240         m32r_output_block_move): Likewise.
20241         * config/m32r/m32r.h (INITIAL_ELIMINATION_OFFSET): Likewise.
20242         * config/m32r/m32r.md ( *movsi_insn, *zero_branch_insn,
20243         *rev_zero_branch_insn): Likewise.
20245 2005-05-06  Jakub Jelinek  <jakub@redhat.com>
20247         PR c++/20961
20248         * varasm.c (merge_weak): Remove NEWDECL from WEAK_DECLS chain
20249         if both NEWDECL and OLDDECL are already weak.
20251 2005-05-06  Richard Sandiford  <rsandifo@redhat.com>
20253         * config/rs6000/sysv4.h (EXTRA_SUBTARGET_SWITCHES): Delete.
20255 2005-05-05  J"orn Rennecke  <joern.rennecke@st.com>
20256             Kaz Kojima  <kkojima@gcc.gnu.org>
20258         * config/sh/sh.c (sh_builtin_saveregs): Use copy_to_mode_reg
20259         and plus_constant.
20261 2005-05-05  Aldy Hernandez  <aldyh@redhat.com>
20262             David Edelsohn  <edelsohn@gnu.org>
20264         * config.gcc: Add .opt magic for the rs6000 ports.
20266         * doc/invoke.texi: Document -mabi= option properly.  Document
20267         -misel and -mno-sel.  Document -mspe and -mno-spe.  Document
20268         -mvrsave and -mno-vrsave.  Document deprecation of -mspe= and
20269         -misel=.
20271         * config/rs6000/aix.h: Remove XL_COMPAT stuff.  Remove
20272         SUBTARGET_SWITCHES and SUBSUBTARGET_SWITCHES.  Define
20273         TARGET_XL_COMPAT.
20275         * config/rs6000/aix.opt: New.
20276         * config/rs6000/aix41.opt: New.
20277         * config/rs6000/aix64.opt: New.
20278         * config/rs6000/darwin.opt: New.
20279         * config/rs6000/linux64.opt: New.
20280         * config/rs6000/rs6000.opt: New.
20281         * config/rs6000/sysv4.opt: New.
20283         * config/rs6000/sysv4.h: Delete definitions of MASK_* and
20284         associated TARGET_*.  Remove SUBTARGET_OPTIONS,
20285         SUBTARGET_SWITCHES.
20286         Define TARGET_USES_SYSV4_OPT.
20287         * config/rs6000/aix41.h: Remove SUBSUBTARGET_SWITCHES.
20288         * config/rs6000/aix43.h: Remove SUBSUBTARGET_SWITCHES.  Define
20289         TARGET_USES_AIX64_OPT.
20290         * config/rs6000/aix51.h: Same.
20291         * config/rs6000/aix52.h: Same.
20292         * config/rs6000/darwin.h: Remove SUBTARGET_SWITCHES,
20293         MASK_MACHO_DYNAMIC_NO_PIC, TARGET_MACHO_DYNAMIC_NO_PIC.
20294         Use TARGET_ALTIVEC_VRSAVE instead of rs6000_altivec_vrsave.
20295         Define TARGET_DYNAMIC_NO_PIC as TARGET_MACHO_DYNAMIC_NO_PIC.
20296         * config/rs6000/linux64.h: Use
20297         rs6000_explicit_options.  Remove EXTRA_SUBTARGET_SWITCHES.
20299         * config/rs6000/rs6000.c: Remove definitions of
20300         rs6000_sched_restricted_insns_priority,
20301         rs6000_long_double_size_string, rs6000_altivec_vrsave,
20302         rs6000_altivec_vrsave_string, rs6000_isel, rs6000_spe,
20303         rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
20304         rs6000_abi_string, rs6000_warn_altivec_long, rs6000_longcall,
20305         rs6000_alignment_string.  Define rs6000_explicit_options.
20306         (rs6000_parse_abi_options): Remove.
20307         (rs6000_parse_alignment_option): Remove.
20308         (rs6000_parse_float_gprs_option): Remove.
20309         (rs6000_handle_option): New.  Define TARGET_HANDLE_OPTION.  Define
20310         TARGET_DEFAULT_TARGET_FLAGS.
20311         (rs6000_override_options): Revamp to use new .opt machinery.
20313         * config/rs6000/rs6000.h: Remove old MASK_* and TARGET_* in favor
20314         of new .opt machinery.  Remove target_flags.  Redefine
20315         TARGET_MFCRF and TARGET_POWERPC64.  Remove TARGET_SWITCHES,
20316         SUBTARGET_SWITCHES, TARGET_OPTIONS, SUBTARGET_OPTIONS,
20317         rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
20318         rs6000_altivec_vrsave_string, rs6000_altivec_vrsave,
20319         rs6000_longcall_switch, rs6000_default_long_calls,
20320         rs6000_sched_costly_dep_str, rs6000_sched_costly_dep,
20321         rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch, and
20322         TARGET_ALTIVEC_VRSAVE.
20324 2005-05-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
20326         * config.gcc (hppa1.1-*-rtems*): Remove.
20327         * config/pa/rtems.h: Remove.
20329 2005-05-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
20331         * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
20332         Exclude roe/603e multilib variants.
20334 2005-05-04  Denis Chertykov  <denisc@overta.ru>
20336         PR target/21284
20337         * config/avr/avr.c (avr_output_addr_vec_elt): Use special section
20338         for output.
20340 2005-05-05  Richard Sandiford  <rsandifo@redhat.com>
20342         * config.gcc (arm*-wince-pe*, arm-*-pe*, strongarm-*-pe): Add
20343         arm/pe.opt to $extra_options.
20344         * config/arm/arm.h (target_flags, target_fpu_name, target_fpe_name)
20345         (target_float_abi_name, target_float_switch, target_abi_name)
20346         (ARM_FLAG_APCS_FRAME, ARM_FLAG_POKE, ARM_FLAG_FPE, ARM_FLAG_APCS_STACK)
20347         (ARM_FLAG_APCS_FLOAT, ARM_FLAG_APCS_REENT, ARM_FLAG_BIG_END)
20348         (ARM_FLAG_INTERWORK, ARM_FLAG_LITTLE_WORDS, ARM_FLAG_NO_SCHED_PRO)
20349         (ARM_FLAG_ABORT_NORETURN, ARM_FLAG_SINGLE_PIC_BASE)
20350         (ARM_FLAG_LONG_CALLS, ARM_FLAG_THUMB, THUMB_FLAG_BACKTRACE)
20351         (THUMB_FLAG_LEAF_BACKTRACE, THUMB_FLAG_CALLEE_SUPER_INTERWORKING)
20352         (THUMB_FLAG_CALLER_SUPER_INTERWORKING, CIRRUS_FIX_INVALID_INSNS)
20353         (TARGET_APCS_FRAME, TARGET_POKE_FUNCTION_NAME, TARGET_FPE)
20354         (TARGET_APCS_STACK, TARGET_APCS_FLOAT, TARGET_APCS_REENT)
20355         (TARGET_BIG_END, TARGET_INTERWORK, TARGET_LITTLE_WORDS)
20356         (TARGET_NO_SCHED_PRO, TARGET_ABORT_NORETURN, TARGET_SINGLE_PIC_BASE)
20357         (TARGET_LONG_CALLS, TARGET_THUMB, TARGET_CALLER_INTERWORKING)
20358         (TARGET_CIRRUS_FIX_INVALID_INSNS, SUBTARGET_SWITCHES, TARGET_SWITCHES)
20359         (TARGET_OPTIONS, arm_cpu_select, arm_select,  structure_size_string)
20360         (arm_pic_register_string): Delete.
20361         (TARGET_BACKTRACE): Redefine using TARGET_TPCS_LEAF_FRAME and
20362         TARGET_TPCS_FRAME.
20363         (TARGET_DEFAULT, CONDITIONAL_REGISTER_USAGE): Update mask names.
20364         * config/arm/coff.h (TARGET_DEFAULT): Likewise.
20365         * config/arm/elf.h (TARGET_DEFAULT): Likewise.
20366         * config/arm/netbsd-elf.h (TARGET_DEFAULT): Likewise.
20367         * config/arm/netbsd.h (TARGET_DEFAULT): Likewise.
20368         * config/arm/semi.h (TARGET_DEFAULT): Likewise.
20369         * config/arm/uclinux-elf.h (TARGET_DEFAULT): Likewise.
20370         * config/arm/wince-pe.h (TARGET_DEFAULT): Likewise.
20371         * config/arm/pe.h (TARGET_DEFAULT): Likewise.
20372         (TARGET_FLAG_NOP_FUN, TARGET_NOP_FUN_DLLIMPORT): Delete.
20373         (SUBTARGET_SWITCHES): Delete.
20374         * config/arm/arm.c (target_float_switch): Delete.
20375         (arm_cpu_select): Moved from config/arm/arm.h.
20376         (target_fpu_name, target_fpe_name, target_float_abi_name)
20377         (target_abi_name, structure_size_string, arm_pic_register_string)
20378         (arm_select): Make static.
20379         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
20380         (arm_handle_option): New function.
20381         (arm_override_options): Update target_flags checks for new mask names.
20382         Remove target_float_switch code.
20383         (arm_expand_prologue, thumb_expand_prologue): Check
20384         !TARGET_SCHED_PROLOG instead of TARGET_NO_SCHED_PRO.
20385         * config/arm/arm.opt, config/arm/pe.opt: New files.
20387 2005-05-05  Nathan Sidwell  <nathan@codesourcery.com>
20389         * config/arc/arc.c (get_arc_condition_code): Use gcc_assert &
20390         gcc_unreachable as appropriate.
20391         (arc_double_limm_p, arc_setup_incoming_varargs,
20392         arc_compute_function_type, arc_output_function_prologue,
20393         arc_output_function_epilogue, arc_eligible_for_epilogue_delay,
20394         output_shift, arc_print_operand, arc_print_operand_address,
20395         arc_final_prescan_insn): Likewise.
20396         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
20398 2005-05-04  Geoffrey Keating  <geoffk@apple.com>
20400         * config/rs6000/rs6000.md (P): Use TARGET_*BIT rather than
20401         comparing Pmode.
20402         (SDI): New.
20403         (cmp): Delete.
20404         (wd): New.
20405         (add<mode>3, add<mode>3_internal1, add<mode>3_internal2,
20406         add<mode>3_internal3, one_cmpl<mode>2, sub<mode>3, neg<mode>2,
20407         clz<mode>2, ctz<mode>2, ffs<mode>2): New.
20408         (addsi3, addsi3_internal1, addsi3_internal2, addsi3_internal3,
20409         (one_cmplsi2, subsi3, negsi2, clzsi2, ctzsi2, ffssi2): Remove.
20410         (adddi3, adddi3_internal1, adddi3_internal2, adddi3_internal3,
20411         (one_cmpldi2, subdi3, negdi2, clzdi2, ctzdi2, ffsdi2): Remove.
20412         (sync_compare_and_swap<mode>): Use <wd> rather than <cmp>.
20414 2005-05-05  Paul Brook  <paul@codesourcery.com>
20416         * Makefile.in: Replace dependencies on basic-block.h, c-pragma.h,
20417         cfgloop.h, diagnostic.h, insn-attr.h, langhooks-def.h, params.h,
20418         regs.h, system.h, tree-dump.h, tree-gimple.h, tree-scalar-evolution.h
20419         and tree-data-ref.h with *_H variables.
20421 2005-05-05  Kelley Cook  <kcook@gcc.gnu.org>
20423         * config/m32r/xm-m32r.h, config/m32r/xm-linux.h: Delete files.
20425 2005-05-05  Kelley Cook  <kcook@gcc.gnu.org>
20427         * system.h: Poison BYTEORDER and HOST_WORDS_BIG_ENDIAN.
20429 2005-05-04  Gerald Pfeifer  <gerald@pfeifer.com>
20431         * doc/contrib.texi (Contributors): Add Mostafa Hagog and Ayal Zaks.
20433 2005-05-04 Fariborz Jahanian <fjahanian@apple.com>
20435         * config/rs6000/rs6000.c (rs6000_emit_prologue): Emit
20436         setting of vrsave register for current function after
20437         call to save_world is emitted.
20439 2005-05-05  Hans-Peter Nilsson  <hp@bitrange.com>
20441         * config/mmix/predicates.md: New file.
20442         * config/mmix/mmix.c (mmix_symbolic_or_address_operand)
20443         (mmix_reg_or_constant_operand, mmix_reg_cc_operand)
20444         (mmix_foldable_comparison_operator, mmix_comparison_operator)
20445         (mmix_reg_or_0_operand, mmix_reg_or_8bit_operand): Remove.
20446         * config/mmix/mmix.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
20447         Don't define.
20448         * config/mmix/mmix.md: Include predicates.md.
20449         ("call", "call_value"): Force address to register if it isn't a
20450         mmix_symbolic_or_address_operand.
20452 2005-05-04  Andrew MacLeod  <amacleod@redhat.com>
20454         * tree-flow-inline.h (op_iter_init_use, op_iter_init_def): Assert that
20455         the flags are of appropriate types.
20456         (num_ssa_operands): Generalize using the generic interface.
20457         * tree-ssa-dce.c (remove_dead_stmt): Don't ask for kills on a DEF
20458         iterator.
20460 2005-05-04  Richard Sandiford  <rsandifo@redhat.com>
20462         * protoize.c (version_flag, quiet_flag, nochange_flag, nosave_flag)
20463         (keep_flag, local_flag, global_flag, cplusplus_flag): Make extern.
20465 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
20467         * tree-outof-ssa.c (edge_leader, stmt_list,
20468         analyze_edges_for_bb): Use VEC instead of VARRAY.
20469         (init_analayze_edges_for_bb, fini_analayze_edges_for_bb): New.
20470         (perform_edge_inserts): Call init_analayze_edges_for_bb and
20471         fini_analayze_edges_for_bb.
20473 2005-05-04  James E Wilson  <wilson@specifixinc.com>
20475         PR driver/21112
20476         * gcc.c (process_command): In the second argv scan loop, ignore
20477         Xassembler and Xpreprocessor, along with their argument.
20479 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
20481         * tree-flow-inline.h, tree-ssa-operands.c,
20482         tree-ssa-operands.h, tree-ssa-opfinalize.h:
20483         Likewise. tree-vn.c: Fix comment typos.
20484         * doc/passes.texi, doc/tree-ssa.texi: Fix typos.
20486 2005-05-04  Paolo Bonzini  <bonzini@gnu.org>
20488         * doc/tm.texi (Target Hooks): Document
20489         TARGET_RESOLVE_OVERLOADED_BUILTIN.
20491 2005-05-04  Paul Brook  <paul@codesourcery.com>
20493         * Makefile.in: Change dependencies on target.h to $(TARGET_H).
20495 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
20497         * dwarf2out.c (incomplete_types, retry_incomplete_types,
20498         gen_struct_or_union_type_die, dwarf2out_init): Use VEC instead
20499         of VARRAY.
20501         * loop-unroll.c (var_to_expand, analyze_insn_to_expand_var,
20502         get_expansion, expand_var_during_unrolling,
20503         insert_var_expansion_initialization,
20504         combine_var_copies_in_loop_exit, release_var_copies): Use VEC
20505         instead of VARRAY.
20507         * tree-ssa-loop-ivopts.c (rewrite_address_base): Don't call
20508         update_stmt.
20510 2004-05-03  Andrew Pinski  <pinskia@physics.uc.edu>
20512         PR middle-end/15618
20513         * fold-const.c (fold_widened_comparison): Treat BOOLEAN_TYPE
20514         the same as INTEGER_TYPE.
20515         (fold_binary): Fold "bool_var != 0" to bool_var.
20516         Fold "bool_var == 1" to bool_var.
20518 2004-05-03  Richard Henderson  <rth@redhat.com>
20520         PR middle-end/21318
20521         * function.c (instantiate_virtual_regs_in_insn): Use the mode
20522         from recog_data instead of insn_data.
20524 2005-05-03  DJ Delorie  <dj@redhat.com>
20526         * common.opt (fdiagnostics-show-option): No variable is needed.
20527         * diagnostic.h (diagnostic_context): Add show_option_requested flag.
20528         * diagnostic.c (diagnostic_initialize): Initialize show_option_requested.
20529         (diagnostic_report_diagnostic): Test for enabled diagnostics here.
20530         Save and restore original message format.  Use flag in context
20531         instead of global.
20532         (warning): Don't test for enabled warnings here.
20533         * opts.c (common_handle_option): Handle -fdiagnostics-show-option
20534         here.
20536 2005-05-04  Kelley Cook  <kcook@gcc.gnu.org>
20538         * config/m32r/xm-m32r.h: Don't define HOST_WORDS_BIG_ENDIAN.
20539         * config/m32r/xm-linux.h: Don't undefine HOST_WORDS_BIG_ENDIAN.
20540         * mips-tfile.c: Use WORDS_BIG_ENDIAN instead of HOST_WORDS_BIG_ENDIAN.
20541         * aclocal.m4: Don't include accross.m4.
20542         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
20543         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
20544         * configure, config.in: Regenerate.
20546 2005-05-04  Jakub Jelinek  <jakub@redhat.com>
20548         PR middle-end/21265
20549         * expr.h (enum block_op_methods): Add BLOCK_OP_TAILCALL.
20550         (clear_storage): Add argument.
20551         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall):
20552         Add tailcall argument, set CALL_EXPR_TAILCALL of the CALL_EXPR to
20553         tailcall.
20554         (emit_block_move): Handle BLOCK_OP_TAILCALL method.
20555         (clear_storage): Add method argument, handle BLOCK_OP_TAILCALL.
20556         (store_expr, store_constructor): Adjust callers.
20557         * builtins.c (expand_builtin_memcpy): Pass BLOCK_OP_TAILCALL
20558         to emit_block_move if CALL_EXPR_TAILCALL (exp).
20559         (expand_builtin_memmove): Add ORIG_EXP argument, copy
20560         CALL_EXPR_TAILCALL from ORIG_EXP to the new CALL_EXPR.
20561         (expand_builtin_bcopy): Replace ARGLIST and TYPE arguments
20562         with EXP.  Pass EXP to expand_builtin_memmove.
20563         (expand_builtin_memset): Add ORIG_EXP argument, pass
20564         BLOCK_OP_TAILCALL to clear_storage if CALL_EXPR_TAILCALL (orig_exp).
20565         (expand_builtin_bzero): Replace ARGLIST argument with EXP.
20566         Pass EXP to expand_builtin_memset.
20567         (expand_builtin_strcmp): Copy CALL_EXPR_TAILCALL from EXP to
20568         the new CALL_EXPR.
20569         (expand_builtin_strncmp): Likewise.
20570         (expand_builtin_printf): Replace ARGLIST argument with EXP.
20571         Copy CALL_EXPR_TAILCALL from EXP to the new CALL_EXPR.
20572         (expand_builtin_fprintf): Likewise.
20573         (expand_builtin): Adjust calls to
20574         expand_builtin_{memmove,bcopy,memset,bzero,{,f}printf}.
20576         * config/i386/i386.c (ix86_expand_vector_set): Fix setting 3rd and 4th
20577         item in V4SF mode.
20579         PR rtl-optimization/21239
20580         * combine.c (combine_simplify_rtx) <case VEC_SELECT>: Fix a typo.
20582 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
20584         * tree-flow.h (tree_ann_common_d): Move aux to ...
20585         (stmt_ann_d): ... here.
20586         * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
20587         move_computations_stmt, schedule_sm): Update references to
20588         aux.
20589         * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
20591         * tree-cfg.c (remove_bb): Remove a redundant call to
20592         set_bb_for_stmt.
20593         * tree-if-conv.c (replace_phi_with_cond_modify_expr):
20594         Likewise.
20596 2005-05-03  Richard Henderson  <rth@redhat.com>
20598         * config/rs6000/rs6000.c: Remove conflict markers.
20600         * cfg.c (dump_flow_info): Use max_reg_num, not max_regno.
20602 2005-05-03  James E Wilson  <wilson@specifixinc.com>
20604         * dwarf2out.c (lookup_filename): Call maybe_emit_file.
20606 2005-05-03  DJ Delorie  <dj@redhat.com>
20608         * c-decl.c (store_parm_decls_oldstyle): Let diagnostic machinery
20609         decide if the warning will be printed.
20610         * calls.c (expand_call): Likewise.
20611         * function.c (init-function_start): Likewise.
20613         * common.opt (-fdiagnostics-show-option): New.
20614         * opts.c (option_enabled): Accept the option index instead of a
20615         pointer to the option descriptor.
20616         * opts.h (option_enabled): Likewise.
20617         * toplev.c (print_switch_values): Pass option index, not option
20618         descriptor.
20619         * diagnostic.h (diagnostic_info): Add option_index.
20620         * diagnostic.c: Include opts.h.
20621         (diagnostic_set_info): Initialize option_index.
20622         (diagnostic_report_diagnostic): Amend option name if appropriate.
20623         (warning): Check to see if the specified warning is enabled.
20624         Store option index.
20625         * doc/invoke.texi (-fdiagnostics-show-options): Document.
20627 2005-05-03  Richard Henderson  <rth@redhat.com>
20629         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix ALL_REGS and
20630         SPEC_OR_GEN_REGS definitions.
20632 2005-05-03  Alexandre Oliva  <aoliva@redhat.com>
20634         PR target/16888
20635         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Clear reg names
20636         for unavailable registers.
20638 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
20640         * tree-cfg.c (tree_forwarder_block_p): Fix a typo.
20642         * cfglayout.c (block_locators_blocks,
20643         insn_locators_initialize, insn_scope): Use VEC instead of
20644         VARRAY.
20646         * tree-mudflap.c (deferred_static_decls, mudflap_enqueue_decl,
20647         mudflap_finish_file, mudflap_finish_file): Use VEC instead of
20648         VARRAY.
20650 2005-05-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
20652         * config/sparc/predicates.md (const_compl_high_operand): New.
20653         * config/sparc/sparc.c (sparc_emit_set_safe_HIGH64): Rename into
20654         gen_safe_HIGH64.
20655         (sparc_emit_set_const64_quick1): Adjust for above change.
20656         (sparc_emit_set_const64_quick2): Likewise.
20657         (sparc_emit_set_const64_longway): Likewise.
20658         (sparc_emit_set_const64): Likewise.
20659         * config/sparc/sparc.md (movhi_const64_special, movsi_const64_special,
20660         movdi_const64_special): Delete.
20661         (logical constant splitters): Use const_compl_high_operand.
20663 2005-05-03  Richard Guenther  <rguenth@gcc.gnu.org>
20665         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Use STRIP_TYPE_NOPS
20666         rather than STRIP_NOPS.
20668 2005-05-03  Jakub Jelinek  <jakub@redhat.com>
20670         PR rtl-optimization/21330
20671         * loop-unswitch.c (may_unswitch_on): Set *cinsn only when
20672         returning non-NULL.
20673         (unswitch_single_loop): Clear cinsn when retrying.
20675         PR target/21297
20676         * config/i386/i386.c (legitimize_address): When canonicalizing
20677         ASHIFT into MULT, multiply by 1 << shift_count instead of
20678         1 << log2 (shift_count).
20680 2005-05-03  Andrew MacLeod  <amacleod@redhat.com>
20682         * lambda-code.c (gcc_loop_to_lambda_loop,
20683         lambda_loopnest_to_gcc_loopnest, phi_loop_edge_uses_def,
20684         stmt_is_bumper_for_loop, perfect_nest_p, replace_uses_of_x_with_y): Use
20685         generic operand interface.
20686         * tree-data-ref.c (find_data_references_in_loop): Use generic interface.
20687         * tree-dfa.c (collect_dfa_stats_r, mark_new_vars_to_rename): Use
20688         generic operand interface.
20689         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
20690         link_imm_use, link_imm_use_stmt, relink_imm_use, relink_imm_use_stmt,
20691         next_safe_imm_use, has_zero_uses, has_single_use, single_imm_use,
20692         num_imm_uses): Use ssa_use_operand_t.
20693         (get_def_ops, get_use_ops, get_v_may_def_ops, get_vuse_ops,
20694         get_v_must_def_ops): Delete.
20695         (get_def_from_ptr, get_phi_result_ptr): Get def directly now.
20696         (get_use_op_ptr, get_def_op_ptr, get_v_may_def_result_ptr,
20697         get_v_may_def_op_ptr, get_vuse_op_ptr, get_v_must_def_result_ptr,
20698         get_v_must_def_kill_ptr): Delete.
20699         (delink_stmt_imm_use): Move and use new operand interface.
20700         (op_iter_next_use, op_iter_next_def, op_iter_next_tree, op_iter_init,
20701         op_iter_next_tree): Use new operand implementation.
20702         (clear_and_done_ssa_iter): New.  Initialize a blank operand iterator.
20703         (op_iter_init_use, op_iter_init_def, op_iter_init_tree): Add iterator
20704         type check.
20705         (op_iter_next_mustdef, op_iter_next_maydef,
20706         op_iter_next_must_and_may_def): Delete. Replace with...
20707         (op_iter_next_maymustdef): New.  Combine must and may next operations.
20708         (op_iter_init_maydef, op_iter_init_mustdef,
20709         op_iter_init_must_and_may_def): Use new interface.
20710         (single_ssa_tree_operand ): New.  Process single operands only as trees.
20711         (single_ssa_use_operand): New.  Process single operands only as uses.
20712         (single_ssa_def_operand): New.  Process single operands only as defs.
20713         (zero_ssa_operands): New.  Return TRUE if there are zero operands of the
20714         specified types.
20715         (num_ssa_operands): New.  Count the number of specified operands.
20716         (compare_ssa_operands_equal): New.  Compare two statements' operands.
20717         (single_phi_def): New.  Return true if PHI has one def of the specified
20718         operand type.
20719         (op_iter_init_phiuse): New.  Initialize the iterator for PHI arguments.
20720         (op_iter_init_phidef): New.  Initialize the iterator for the PHI def.
20721         * tree-flow.h (struct immediate_use_iterator_d): Use ssa_use_operand_t.
20722         (struct stmt_ann_d): Operands field no longer require GTY().
20723         (vn_compute, vn_lookup_or_add, vn_add, vn_lookup): Change prototype.
20724         * tree-into-ssa.c (mark_def_sites): Use SSA_OP_VMUSTKILL.
20725         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
20726         dump_replaceable_exprs, rewrite_trees): Use generic interface.
20727         * tree-phinodes.c (make_phi_node, release_phi_node, resize_phi_node):
20728         Use use_operand_p instead of ssa_imm_use_t *.
20729         * tree-pretty-print.c (dump_vops): check if operands are active before
20730         dumping virtual operands.
20731         * tree-sra.c (sra_walk_function): Use ZERO_SSA_OPERANDS.
20732         * tree-ssa-ccp.c (likely_value): Use ZERO_SSA_OPERANDS.
20733         (ccp_fold): Use new interface.
20734         (ccp_visit_stmt): Remove unused variables and code.
20735         (convert_to_gimple_builtin): Insert statements before calling
20736         mark_new_vars_to_rename.
20737         * tree-ssa-copy.c (stmt_may_generate_copy): Use ZERO_SSA_OPERANDS.
20738         (copy_prop_visit_cond_stmt): Use generic interface.
20739         * tree-ssa-dom.c (struct expr_hash_elt): Use stmt pointer, not the
20740         annotation in table.
20741         (thread_across_edge): Use generic interface.
20742         (initialize_hash_element): Initialzie with stmt, not annotation.
20743         (eliminate_redundant_computations): Use generic interface.
20744         (record_equivalences_from_stmt): Pass stmt, not annotation.
20745         (avail_expr_hash, real_avail_expr_hash, avail_expr_eq): Use generic
20746         interface.
20747         * tree-ssa-dse.c (dse_optimize_stmt): Use ZERO_SSA_OPERANDS.
20748         * tree-ssa-loop-ivopts.c (find_invariants_stmt,
20749         find_interesting_uses_stmt, protect_loop_closed_ssa_form_use): Use
20750         generic operand interface.
20751         * tree-ssa-loop-niter.c (chain_of_csts_start, get_val_for): Use generic
20752         interface.
20753         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Use Generic operand
20754         Interface.
20755         * tree-ssa-operands.c (struct opbuild_list_d): New.  Operand build type.
20756         (build_defs, build_uses, build_v_may_defs, build_vuses,
20757         build_v_must_defs): Change type to struct opbuild_list_d.
20758         (ops_active): New.  Operands active boolean.
20759         (operand_memory, operand_memory_index): New.  Operand memory managers.
20760         (allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
20761         allocate_vuse_optype, allocate_v_must_def_optype): Delete.
20762         (free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs):
20763         Change from functions to static variable list heads.
20764         (opbuild_initialize_virtual): New.  Initialize a virtual build list.
20765         (opbuild_initialize_real): New.  Initialize a virtual build list.
20766         (opbuild_free): New.  Free a build list.
20767         (opbuild_num_elems): New.  Number of items in a list.
20768         (opbuild_append_real): New.  Add a real (tree *) operand.
20769         (opbuild_append_virtual): New.  Add and sort a virtual (tree) operand.
20770         (opbuild_first): New.  Return first element index in a list.
20771         (opbuild_next): New.  Return next element in a list.
20772         (opbuild_elem_real): New.  Return real element.
20773         (opbuild_elem_virtual): New.  Return virtual element.
20774         (opbuild_elem_uid): New.  Return UID of virtual element.
20775         (opbuild_clear): New.  Reset an operand list.
20776         (opbuild_remove_elem): New.  Remove an element form a list.
20777         (ssa_operands_active): New.  Return true if operand cache is active.
20778         (init_ssa_operands, fini_ssa_operands): Initialize new implementation.
20779         (ssa_operand_alloc): New.  Allocate memory from an operand chunk.
20780         (correct_use_link): Use use_operand_p.
20781         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_defs,
20782         finalize_ssa_vuses, finalize_ssa_v_must_defs): New implmentation.
20783         (cleanup_v_may_defs): Use new implmentation.
20784         (finalize_ssa_stmt_operands, start_ssa_stmt_operands): New
20785         implementation.
20786         (append_def, append_use, append_v_may_def, append_vuse,
20787         append_v_must_def): Call opbuild_append routine instead of using varray.
20788         (build_ssa_operands): Simplify to simply use stmt, don't maintain a
20789         global parse_old_ops variable.
20790         (free_ssa_operands): New implementation.
20791         (update_stmt_operands): Move.  Change argument to build_ssa_operands.
20792         (copy_virtual_operands): Move. New generic implementation.
20793         (create_ssa_artficial_load_stmt): Move. New implementation.
20794         (swap_tree_operands): Update for new implementation.
20795         (get_expr_operands): Add stmt parameter to calls to swap_tree_operands.
20796         (add_call_clobber_ops, add_call_read_ops): Initialize opbuild list
20797         rather than a varray.
20798         (verify_imm_links): Use use_operand_p.
20799         (dump_immediate_uses_for): If the immediate use variable is a virtual
20800         variable, show the virtual ops in the stmt.
20801         * tree-ssa-operands.h (def_operand_p): No longer a structure.
20802         (NULL_DEF_OPERAND_P): Now a #define.
20803         (def_optype_d, use_optype_d, v_def_use_operand_type, v_may_def_optype_d,
20804         vuse_operand_type, vuse_optype_d, v_must_def_optype_d): Delete.
20805         (def_optype_d, use_optype_d, maydef_optype_d, vuse_optype_d,
20806         mustdef_optype_d): New.  Use Linked list representation.
20807         (SSA_OPERAND_MEMORY_SIZE): New.  Size of operand memory chunk.
20808         (struct ssa_operand_memory_d): New.  Allocated Chunk node.
20809         (struct stmt_operands_d): Change to new pointers that are not GTY.
20810         (STMT_USE_OPS, NUM_USES, SET_USE_OP, STMT_DEF_OPS, NUM_DEFS, SET_DEF_OP,
20811         STMT_V_MAY_DEF_OPS, NUM_V_MAY_DEFS, SET_V_MAY_DEF_RESULT,
20812         SET_V_MAY_DEF_OP, STMT_VUSE_OPS, NUM_VUSES, SET_VUSE_OP,
20813         STMT_V_MUST_DEF_OPS, NUM_V_MUST_DEFS, SET_V_MUST_DEF_RESULT,
20814         SET_V_MUST_DEF_KILL): Delete.
20815         (V_MAY_DEF_OPS, V_MAY_DEF_RESULT_PTR, V_MAY_DEF_RESULT,
20816         V_MAY_DEF_OP_PTR, V_MAY_DEF_OP): Rename to MAYDEF_*.
20817         (V_MUST_DEF_OPS, V_MUST_DEF_RESULT_PTR, V_MUST_DEF_RESULT,
20818         V_MUST_DEF_KILL_PTR, V_MUST_DEF_KILL): Rename to MUSTDEF_*.
20819         (enum ssa_op_iter_type): Operand iterator typechecking values.
20820         (struct ssa_operand_iterator_d): Use linked lists of operands.
20821         (SSA_OP_VMUSTDEFKILL): Rename to SSA_OP_VMUSTKILL.
20822         (FOR_EACH_SSA_MAYDEF_OPERAND, FOR_EACH_SSA_MUSTDEF_OPERAND,
20823         FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): Use op_iter_next_maymustdef.
20824         (FOR_EACH_PHI_ARG): New.  Iterate over PHI arguments.
20825         (FOR_EACH_PHI_OR_STMT_USE): New.  Iterate over PHI or stmt uses.
20826         (FOR_EACH_PHI_OR_STMT_DEF): New.  Iterate over PHI or stmt defs.
20827         (SINGLE_SSA_TREE_OPERAND, SINGLE_SSA_USE_OPERAND,
20828         SINGLE_SSA_DEF_OPERAND, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): New.
20829         * tree-ssa-opfinalize.h: New.  Function templates for expansion.
20830         (FINALIZE_ALLOC): Expands into alloc_def, alloc_use, alloc_maydef,
20831         alloc_vuse, and alloc_mustdef.
20832         (FINALIZE_FUNC): Expands into finalize_ssa_def_ops,
20833         finalize_ssa_use_ops, finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
20834         and finalize_ssa_v_must_def_ops.
20835         * tree-ssa-pre.c (add_to_sets): Pass tree to vn_add.
20836         (create_value_expr_from): Use stmt not vuse_optype as a parameter. Pass
20837         stmt around.
20838         (compute_avail): Use generic iterator interface.
20839         * tree-ssa-propagate.c (first_vdef): Use generic operand interface.
20840         (stmt_makes_single_load, stmt_makes_single_store): Use
20841         ZERO_SSA_OPERANDS.
20842         * tree-ssa-sink.c (is_hidden_global_store): Use ZERO_SSA_OPERANDS.
20843         (statement_sink_location): Use generic interface.
20844         * tree-ssa.c (verify_ssa):  Use %p in fprintf.  Use generic interface.
20845         (delete_tree_ssa): Don't call release_defs.  Call release_ssa_name and
20846         reset the immediate use link nodes.
20847         (stmt_references_memory_p): Use ZERO_SSA_OPERANDS.
20848         * tree-ssanames.c (make_ssa_name): Use use_operand_p.
20849         * tree-tailcall.c (find_tail_calls): Use ZERO_SSA_OPERANDS.
20850         (eliminate_tail_call): Use generic operand interface.
20851         * tree-vect-analyze.c (vect_analyze_data_refs): Use ZERO_SSA_OPERANDS.
20852         (vect_mark_relevant, vect_mark_stmts_to_be_vectorized): Use generic
20853         interface.
20854         * tree-vect-transform.c (update_vuses_to_preheader): Use generic
20855         interface.
20856         * tree-vectorizer.c (rename_variables_in_bb): Use generic interface.
20857         * tree-vn.c (struct val_expr_pair_d): Cache statment pointer instead of
20858         vuse_optype.
20859         (vn_compute, val_expr_pair_hash, vn_add, vn_lookup, vn_lookup_or_add):
20860         Use statement pointer instead of vuse_optype.  Use generic interface.
20861         * tree-vrp.c (maybe_add_assert_expr): Use generic interface.
20862         (stmt_interesting_for_vrp, vrp_visit_stmt): Use ZERO_SSA_OPERANDS.
20863         * tree.h (struct ssa_imm_use_d): Renamed to ssa_use_operand_d.
20864         (tree_ssa_name, phi_arg_d): Use ssa_use_operand_d.
20865         * doc/tree-ssa.texi: Update documentation for operand interface.
20867 2005-05-03  Nathan Sidwell  <nathan@codesourcery.com>
20869         * config/darwin.c (machopic_define_symbol): Use gcc_assert or
20870         gcc_unreachable as appropriate.
20871         (machopic_function_base_name, machopic_indirect_data_reference,
20872         machopic_legitimize_pic_address, darwin_non_lazy_pcrel): Likewise.
20873         * config/host-darwin.c (darwin_gt_pch_use_address): Likewise
20874         * config/rs6000/altivec.md (*mov<mode>_internal,
20875         build_vector_mask_for_load): Likewise.
20876         * config/rs6000/darwin.md (movdf_low_si, movdf_low_di,
20877         *call_nonlocal_darwin64, *call_value_nonlocal_darwin64,
20878         *sibcall_symbolic_64, *sibcall_value_symbolic_64): Likewise.
20879         * config/rs6000/predicates.md (easy_fp_constant,
20880         logical_operand): Likewise.
20881         * config/rs6000/rs6000.c (spe_expand_predicate_builtin,
20882         compute_save_world_info, rs6000_emit_prologue,
20883         rs6000_output_mi_thunk): Reword comments to avoid 'abort'.
20884         * config/rs6000/host-darwin.c (segv_handler): Use fancy_abort
20885         directly.
20887 2005-05-03  Uros Bizjak  <uros@kss-loka.si>
20889         PR middle-end/21282
20890         * convert.c (convert_to_integer): Convert ceil and floor in
20891         c99 mode only.
20893 2005-04-29  Geoffrey Keating  <geoffk@apple.com>
20895         PR target/20813
20896         * config/rs6000/rs6000.md (floatsidf2_internal): Merge to create
20897         define_insn_and_split.  Split only when memory operand is
20898         offsettable.  Use adjust_address rather than plus_constant.
20899         (floatunssidf2_internal): Likewise.
20900         (fix_truncdfsi2_internal): Split only when memory operand is
20901         offsettable.  Use adjust_address rather than plus_constant.
20902         (fix_trunctfsi2_internal): Likewise.
20903         (floatsidf2_internal): Likewise.
20905 2005-05-02  Diego Novillo  <dnovillo@redhat.com>
20907         * tree-vrp.c (set_value_range_to_nonnull): Declare inline.
20908         (set_value_range_to_null): Likewise.
20909         (set_value_range_to_varying): New function.  Use it in all
20910         call sites that used to call set_value_range (vr, VR_VARYING, ...).
20911         (extract_range_from_assert): If the integral type has a
20912         super-type, and LIMIT is not within MIN and MAX values of that
20913         type, set the resulting range to VR_VARYING.
20915 2005-05-02  Hans-Peter Nilsson  <hp@bitrange.com>
20917         * config/mmix/mmix.opt: New file.
20918         * config/mmix/mmix.h: Move options-related comments to mmix.opt.
20919         (mmix_cc1_ignored_option): Don't declare.
20920         (TARGET_OPTIONS, TARGET_MASK_LIBFUNCS, TARGET_MASK_ABI_GNU)
20921         (TARGET_MASK_FCMP_EPSILON, TARGET_MASK_ZERO_EXTEND)
20922         (TARGET_MASK_KNUTH_DIVISION, TARGET_MASK_TOPLEVEL_SYMBOLS)
20923         (TARGET_MASK_BRANCH_PREDICT, TARGET_MASK_USE_RETURN_INSN)
20924         (TARGET_MASK_BASE_ADDRESSES, TARGET_LIBFUNC, TARGET_ABI_GNU,
20925         (TARGET_FCMP_EPSILON, TARGET_ZERO_EXTEND, TARGET_KNUTH_DIVISION)
20926         (TARGET_TOPLEVEL_SYMBOLS, TARGET_BRANCH_PREDICT)
20927         (TARGET_BASE_ADDRESSES, TARGET_USE_RETURN_INSN, TARGET_SWITCHES):
20928         Don't define.
20929         (TARGET_DEFAULT): Change TARGET_MASK_... to MASK_...
20930         * config/mmix/mmix.c (mmix_cc1_ignored_option): Remove.
20931         (TARGET_DEFAULT_TARGET_FLAGS): Override default.
20933 2005-05-02  Joseph S. Myers  <joseph@codesourcery.com>
20935         PR c/15698
20936         * c-tree.h (C_DECL_BUILTIN_PROTOTYPE): New.
20937         * c-decl.c (current_function_prototype_built_in,
20938         current_function_prototype_arg_types): New.
20939         (merge_decls): Keep source location of prototype followed by
20940         nonprototype declaration.  Update C_DECL_BUILTIN_PROTOTYPE.
20941         (builtin_function): Set C_DECL_BUILTIN_PROTOTYPE.
20942         (start_function): Always set current_function_prototype_locus,
20943         current_function_prototype_built_in and
20944         current_function_prototype_arg_types.  Check for external
20945         prototype whether or not visible for external function and set
20946         current_function_prototype_arg_types accordingly.
20947         (store_parm_decls_oldstyle): Use
20948         current_function_prototype_arg_types for checking old-style
20949         definition against prototype.  Give warnings only if
20950         current_function_prototype_built_in).
20952 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
20954         * ggc.h (ggc_alloc_zone_pass_stat): New macro.
20955         (ggc_alloc_zone_stat): Don't define.
20956         * ggc-zone.c (ggc_alloc_typed_stat, ggc_alloc_stat): Use
20957         ggc_alloc_zone_pass_stat.
20958         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Likewise.
20959         * tree.c (make_node_stat, copy_node_stat, make_tree_binfo_stat)
20960         (make_tree_vec_stat, tree_cons_stat, build1_stat): Likewise.
20962 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
20964         * calls.c (expand_call): Handle current_function_pretend_args_size
20965         when checking for sibcalls.
20967 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
20969         PR tree-optimization/21294
20970         * tree-vrp.c (vrp_expr_computes_nonzero): New.
20971         (extract_range_from_expr): Call vrp_expr_computes_nonzero.
20973 2005-05-02  Janis Johnson  <janis187@us.ibm.com>
20975         PR 19985
20976         * gcov-io.h: Declare gcov external functions hidden.
20978 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
20980         * tree-ssa-uncprop.c (equiv_hash_elt, remove_equivalence,
20981         record_equiv, tree_ssa_uncprop, uncprop_into_successor_phis):
20982         Use VEC instead of VARRAY.
20983         (equiv_free): New.
20985         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Factor
20986         out common code.
20988 2005-05-02  Paolo Bonzini  <bonzini@gnu.org>
20990         * c-common.c (resolve_overloaded_builtin): Forward to target
20991         hook for BUILT_IN_MD built-ins.
20992         * c-typeck.c (finish_call_expr): Call resolve_overloaded_builtin
20993         for all types of built-in.
20994         * target-def.h (TARGET_RESOLVE_OVERLOADED_BUILTIN): New.  Use it
20995         in the definition of the target hooks struct.
20996         * target.h (struct gcc_target): Add resolve_overloaded_builtin.
20997         * config/rs6000/altivec.h: Rewritten.
20998         * config/rs6000/rs6000-c.c (struct altivec_builtin_types,
20999         altivec_resolve_overloaded_builtin, altivec_build_resolved_builtin,
21000         rs6000_builtin_type, rs6000_builtin_type_compatible,
21001         altivec_overloaded_builtins, rs6000_builtin_type,
21002         rs6000_builtin_type_compatible): New.
21003         * config/rs6000/rs6000.c (rs6000_builtin_types, rs6000_builtin_decls):
21004         New.
21005         (def_builtin): Turn into a function.  Check for duplicates and store
21006         the builtin into rs6000_builtin_decls.
21007         (bdesc_3arg, bdesc_dst, bdesc_altivec_preds, bdesc_2arg,
21008         bdesc_1arg): Add overloaded builtins.
21009         (altivec_expand_builtin): Check for unresolved overloaded builtins,
21010         do not support ALTIVEC_COMPILETIME_ERROR.
21011         (rs6000_init_builtins): Add opaque 128-bit vector, and internal
21012         nodes to represent front-end types.
21013         (altivec_init_builtins, rs6000_common_init_builtins): Create builtins
21014         with opaque arguments and/or return values.
21015         * config/rs6000/rs6000.h (enum rs6000_builtins): Remove
21016         ALTIVEC_COMPILETIME_ERROR and add Altivec overloaded builtins.
21017         (rs6000_builtin_type_index): New.
21018         (is_ev64_opaque_type): Rename to...
21019         (rs6000_is_opaque_type): ... this.
21020         (rs6000_cpu_cpp_builtins): Install the resolve_overloaded_builtin
21021         target hook.
21023 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
21025         * function.c (reorder_blocks, reorder_blocks_1): Use VEC
21026         instead of VARRAY.
21028 2005-05-02  Nathan Sidwell  <nathan@codesourcery.com>
21029             Bernd Schmidt  <bernd.schmidt@analog.com>
21031         * config/bfin/bfin.c (emit_link_insn, effective_address_32bit_p,
21032         print_address_operand, print_operand, legitimize_pic_address,
21033         asm_conditional_branch, bfin_gen_compare, output_push_multiple,
21034         output_pop_multiple): Use gcc_assert or gcc_unreachable as
21035         appropriate.
21036         * config/bfin/bfin.md (movsf splitter, beq, bne): Likewise.
21038 2005-05-02  Dorit Naishlos  <dorit@il.ibm.com>
21040         * doc/passes.texi: Document vectorization pass.
21042 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
21044         * tree-scalar-evolution.c (get_exit_conditions_rec,
21045         select_loops_exit_conditions,
21046         number_of_iterations_for_all_loops,
21047         analyze_scalar_evolution_for_all_loop_phi_nodes,
21048         scev_analysis): Use VEC instead of VARRAY.
21050 2005-05-02  Michael Matz  <matz@suse.de>
21052         PR c++/19542
21053         * c-common.c (c_common_nodes_and_builtins): Create global null_node.
21054         (warn_strict_null_sentinel): Define.
21055         (check_function_sentinel): Check for null_node as valid sentinel too.
21056         * c-common.h (c_tree_index): Added CTI_NULL.
21057         (null_node) Define global_tree[CTI_NULL].
21058         (warn_strict_null_sentinel): Declare.
21059         * c-opts.c: (c_common_handle_option): Handle -Wstrict-null-sentinel.
21060         * c.opt: (Wstrict-null-sentinel): New C++ option.
21061         * doc/invoke.texi (C++ Options): Document -Wstrict-null-sentinel.
21063 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
21065         * gimplify.c (gimplify_compound_lval): Use VEC instead of
21066         VARRAY.
21068         * global.c (calculate_reg_pav): Use VEC instead of VARRAY.
21070         * dwarf2out.c (decl_scope_table, push_decl_scope,
21071         pop_decl_scope, scope_die_for, dwarf2out_init): Use VEC
21072         instead of VARRAY.
21074 2005-05-01  Mark Mitchell  <mark@codesourcery.com>
21076         PR C++/14391
21077         * c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1
21078         if !flag_weak.
21079         * doc/cpp.texi (__DEPRECATED): Document.
21080         (__EXCEPTIONS): Likewise.
21081         (__GXX_WEAK__): Likewise.
21083         * function.c (INVOKE__main): Do not define.
21084         (expand_main_function): Check HAS_INIT_SECTION when determining
21085         whether or not to call __main.
21087 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
21089         * tree-ssa-loop-ivopts.c: Fix a comment typo.
21091 2005-01-05  Paul Brook  <paul@codesourcery.com>
21093         * config/arm/arm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define.
21094         (INITIALIZE_TRAMPOLINE): Use it.
21095         * config/arm/linux-gas.h (INITIALIZE_TRAMPOLINE): Remove.
21096         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Remove.
21097         * config/arm/netbsd-elf.h (INITIALIZE_TRAMPOLINE): Remove.
21099 2005-05-01  Gerald Pfeifer  <gerald@pfeifer.com>
21101         * doc/install.texi (Specific): Omit dots in the @anchors names
21102         for i?86-*-sco3.2v5*, i?86-*-solaris2.10, and sparc-sun-solaris2.7.
21103         Omit underscores for x86_64-*-* and the "all ELF targets" entry.
21105 2005-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
21107         PR tree-optimization/18316
21108         PR tree-optimization/19126
21109         * tree.c (build_int_cst_type): Avoid shift by size of type.
21110         * tree-scalar-evolution.c (simple_iv): Add allow_nonconstant_step
21111         argument.
21112         * tree-scalar-evolution.h (simple_iv): Declaration changed.
21113         * tree-ssa-loop-ivopts.c (struct iv_cand): Add depends_on
21114         field.
21115         (dump_cand): Dump depends_on information.
21116         (determine_biv_step): Add argument to simple_iv call.
21117         (contains_abnormal_ssa_name_p): Handle case expr == NULL.
21118         (find_bivs, find_givs_in_stmt_scev): Do not require step to be a
21119         constant.
21120         (add_candidate_1): Record depends_on for candidates.
21121         (tree_int_cst_sign_bit, constant_multiple_of): New functions.
21122         (get_computation_at, get_computation_cost_at, may_eliminate_iv):
21123         Handle ivs with nonconstant step.
21124         (iv_ca_set_remove_invariants, iv_ca_set_add_invariants): New functions.
21125         (iv_ca_set_no_cp, iv_ca_set_cp): Handle cand->depends_on.
21126         (create_new_iv): Unshare the step before passing it to create_iv.
21127         (free_loop_data): Free cand->depends_on.
21128         (build_addr_strip_iref): New function.
21129         (find_interesting_uses_address): Use build_addr_strip_iref.
21130         (strip_offset_1): Split the recursive part from strip_offset.
21131         Strip constant offset component_refs and array_refs.
21132         (strip_offset): Split the recursive part to strip_offset_1.
21133         (add_address_candidates): Removed.
21134         (add_derived_ivs_candidates): Do not use add_address_candidates.
21135         (add_iv_value_candidates): Add candidates with stripped constant
21136         offset.  Consider all candidates with initial value 0 important.
21137         (struct affine_tree_combination): New.
21138         (aff_combination_const, aff_combination_elt, aff_combination_scale,
21139         aff_combination_add_elt, aff_combination_add,
21140         tree_to_aff_combination, add_elt_to_tree, aff_combination_to_tree,
21141         fold_affine_sum): New functions.
21142         (get_computation_at): Use fold_affine_sum.
21143         * tree-ssa-loop-manip.c (create_iv): Handle ivs with nonconstant step.
21144         * tree-ssa-loop-niter.c (number_of_iterations_exit): Add argument
21145         to simple_iv call.
21147 2005-04-30  Michael Matz  <matz@suse.de>
21149         * config/i386/i386.md (movmemsi): Also active when
21150         TARGET_INLINE_ALL_STRINGOPS.
21152 2005-04-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
21154         PR bootstrap/20633
21155         * config/freebsd-spec.h (FBSD_CPP_SPEC): Add %(cpp_arch).
21157 2005-04-30  Paul Brook  <paul@codesourcery.com>
21159         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Always use .thumb_set in
21160         thumb mode.
21161         * config/arm/ieee754-df.S: Use __INTERWORKING_STUBS__.
21162         * config/arm/ieee754-sf.S: Ditto.
21163         * config/arm/lib1funcs.asm: Define and use __INTERWORKING_STUBS__.
21164         (FUNC_ALIAS): Use .thumb_set for thumb routines.
21166 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
21168         * tree-ssanames.c: Fix a comment typo.
21169         * doc/options.texi: Fix a typo.
21171 2005-04-30  Nathan Sidwell  <nathan@codesourcery.com>
21173         * config/h8300/h8300.c (byte_reg): Use gcc_assert and
21174         gcc_unreachable as appropriate.
21175         (split_adds_subs, cond_string, print_operand,
21176         h8300_initial_elimination_offset, h8300_classify_operand,
21177         h8300_unary_length, h8300_short_immediate_length,
21178         h8300_bitfield_length, h8300_binary_length,
21179         h8300_insn_length_from_table, compute_mov_length, output_plussi,
21180         compute_plussi_length, compute_plussi_cc, output_logical_op,
21181         compute_logical_op_length, compute_logical_op_cc,
21182         output_h8sx_shift, get_shift_alg, h8300_shift_needs_scratch_p,
21183         output_a_shift, compute_a_shift_length, compute_a_shift_cc,
21184         output_a_rotate, compute_a_rotate_length, fix_bit_operand,
21185         h8300_regs_ok_for_stm): Likewise.
21186         * config/h8300/h8300.md (*movsi_h8300, *movsf_h8300,
21187         monitor_prologue): Likewise.
21189 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
21191         * loop-invariant.c (invariants, create_new_invariant,
21192         get_inv_cost, best_gain_for_invariant,
21193         find_invariants_to_move, move_invariants,
21194         init_inv_motion_data, free_inv_motion_data): Use VEC instead
21195         of VARRAY.
21197 2005-04-29  Richard Henderson  <rth@redhat.com>
21199         * function.c (instantiate_decls): Remove valid_only argument.
21200         (instantiate_decls_1, instantiate_decl): Likewise.
21201         (instantiate_virtual_regs_1): Delete.
21202         (instantiate_virtual_regs_lossage): Delete.
21203         (instantiate_virtual_regs_in_rtx): New.
21204         (safe_insn_predicate): New.
21205         (instantiate_virtual_regs_in_insn): New.
21206         (instantiate_virtual_regs): Update to match all that.  Only run
21207         instantiate_decls once.
21209 2005-04-29  Richard Henderson  <rth@redhat.com>
21210             Daniel Jacobowitz  <dan@codesourcery.com>
21212         * gengtype.c (write_func_for_structure): Split out ...
21213         (output_type_enum): ... new function.  Fix thinko accessing
21214         TYPE_PARAM_STRUCT data.
21216 2005-04-29  Tom Tromey  <tromey@redhat.com>
21218         * tree.c (build_block): Removed unused 'tags' argument.
21219         * tree.h (build_block): Removed argument.
21221 2005-04-29  Michael Matz  <matz@suse.de>
21223         PR rtl-optimization/21144
21224         * postreload.c (reload_cse_move2add): Check for VOIDmode.
21226 2005-04-29  Bob Wilson  <bob.wilson@acm.org>
21228         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable
21229         flag_reorder_blocks.
21231 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
21233         PR tree-optimization/21030
21234         * tree-vrp.c (adjust_range_with_scev): Do not create invalid
21235         ranges where VR->MAX is smaller than VR->MIN.
21237 2005-04-29  Devang Patel  <dpatel@apple.com>
21239         PR tree-optimization/21272
21240         PR tree-optimization/21266
21241         * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.
21243 2005-04-29  Kazu Hirata  <kazu@cs.umass.edu>
21245         * tree-flow-inline.h: Fix a comment typo.
21246         * doc/tree-ssa.texi: Fix a typo.
21248         * tree-flow-inline.h, tree-ssa-operands.c: Fix comment typos.
21250 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
21252         * config/fr30/fr30.c (fr30_expand_prologue): Use gcc_assert and
21253         gcc_unreachable as appropriate.
21254         (fr30_expand_epilogue, fr30_setup_incoming_varargs,
21255         fr30_print_operand, fr30_move_double): Likewise.
21256         * config/fr30/fr30.md (*movsi_internal, *movsf_internal): Likewise.
21258 2005-04-29  Mark Mitchell  <mark@codesourcery.com>
21260         * config/arm/arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a
21261         definition has already been provided.
21262         (ARM_EABI_DTORS_SECTION_OP): Likewise.
21263         * config/arm/symbian.h (ARM_EABI_CTORS_SECTION_OP): Define.
21264         (ARM_EABI_DTORS_SECTION_OP): Likewise.
21266 2005-04-29  Jim Tison  <jtison@us.ibm.com>
21268         * config/s390/s390.md ("prologue_tpf", "epilogue_tpf"): Alter
21269         trace hooks calls to improve performance.
21271 2005-04-29  Julian Brown  <julian@codesourcery.com>
21272             Mark Mitchell  <mark@codesourcery.com>
21273             Paul Brook  <paul@codesourcery.com>
21275         * crtstuff.c: Handle targets that use .init_array.
21276         * function.c (HAS_INIT_SECTION): Do not define. Instead, make sure
21277         that INVOKE__main is set correctly.
21278         (expand_main_function): Test INVOKE__main.
21279         * libgcc2.c: Do not define __main when using .init_array.
21280         * config/arm/arm.c (arm_elf_asm_constructor): New function.
21281         * config/arm/arm.h (CTORS_SECTION_ASM_OP): Define, with specialized
21282         libgcc version.
21283         (DTORS_SECTION_ASM_OP): Likewise.
21284         (CTOR_LIST_BEGIN): Define specially when in libgcc.
21285         (CTOR_LIST_END): Likewise.
21286         (DTOR_LIST_BEGIN): Likewise.
21287         (DTOR_LIST_END): Likewise.
21288         * config/arm/bpapi.h (INIT_SECTION_ASM_OP): Do not define it.
21289         (FINI_SECTION_ASM_OP): Likewise.
21290         (INIT_ARRAY_SECTION_ASM_OP): Define.
21291         (FINI_ARRAY_SECTION_ASM_OP): Likewise.
21292         * config/arm/elf.h (TARGET_ASM_CONSTRUCTOR): Define.
21293         (SUPPORTS_INIT_PRIORITY): Evaluate to false for EABI based targets.
21294         * doc/tm.texi (INIT_ARRAY_SECTION_ASM_OP): Document.
21295         (FINI_ARRAY_SECTION_ASM_OP): Likewise.
21297 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
21299         * config/m68k/m68k.c (m68k_initial_elimination_offset): Use
21300         gcc_assert and gcc_unreachable as appropriate.
21301         (output_dbcc_and_branch, output_scc_di, legitimize_pic_address,
21302         const_int_cost, output_move_const_into_data_reg,
21303         output_move_qimode, output_move_double, find_addr_reg,
21304         print_operand, print_operand_address): Likewise.
21305         * config/m68k/m68k.md (adddi3, subdi3, negsf2, negdf2, abssf2,
21306         absdf2, sordered, sunordered, suneq, sunge, sungt, sunle, sunlt,
21307         sltgt, bordered, bunordered, buneq, bunge, bungt, bunle, bunlt,
21308         bltgt, *bordered_rev, *bunordered_rev, *buneq_rev, *bunge_rev,
21309         *bunle_rev, *bunlt_rev, *bltgt_rev, negxf2, absxf2,
21310         conditional_trap): Likewise.
21311         * config/m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Remove unreachable code.
21313 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
21315         * config/xtensa/xtensa.c (gen_int_relational): Use gcc_assert and
21316         gcc_unreachable as appropriate.
21317         (gen_conditional_move, xtensa_split_operand_pair,
21318         xtensa_split_operand_pair, xtensa_copy_incoming_a7,
21319         xtensa_copy_incoming_a7, xtensa_copy_incoming_a7,
21320         xtensa_copy_incoming_a7, xtensa_output_literal,
21321         xtensa_output_literal, xtensa_output_literal): Likewise.
21322         * config/xtensa/xtensa.h (INITIAL_ELIMINATION_OFFSET): Likewise.
21323         * config/xtensa/xtensa.md (*btrue, *bfalse, *ubtrue, *ubfalse,
21324         *bittrue, *bitfalse, *masktrue, *maskfalse, movsicc_internal0,
21325         movsicc_internal1, movsfcc_internal0,
21326         movsfcc_internal1): Likewise.
21328 2005-04-28  James E Wilson  <wilson@specifixinc.com>
21330         * config/i386/i386.h (HI_REGISTER_NAMES): Fix typos in comment.
21331         (ADDITIONAL_REGISTER_NAMES): Delete obsolete mmx register entries.
21333 2005-04-28  DJ Delorie  <dj@redhat.com>
21335         * opt-functions.awk (var_set): Emit proper initializer for
21336         non-target bitfields.
21338 2005-04-28  Devang Patel  <dpatel@apple.com>
21340         * dbxout.c (have_used_extensions): Remove.
21341         (dbxout_type_fileds, dbxout_type, dbxout_symbol): Remove use of
21342         have_used_extensions.
21344 2005-04-28  James E Wilson  <wilson@specifixinc.com>
21346         * doc/install.texi: Update -enable-languages info.  Correct path to
21347         html docs.
21349 2005-04-28  DJ Delorie  <dj@redhat.com>
21351         * optc-gen.awk (END): Make sure no variable is defined more
21352         than once.
21353         * opth-gen.awk (END): Allocate bits on a per-variable basis.
21354         Allow for bitfield variables other than target_flags.
21355         * doc/options.text (Mask): Document that you may specify a
21356         variable other than target_flags.
21358 2005-04-28  Martin Koegler <mkoegler@auto.tuwien.ac.at>
21360         PR rtl-optimization/18877
21361         * reload.c (decompose) <case REG, case SUBREG>: Handle pseudo reg
21362         number in val.start.
21364 2005-04-28  David Edelsohn  <edelsohn@gnu.org>
21366         PR target/20813
21367         * config/rs6000/aix43.h (SUBSUBTARGET_SWITCHES, aix64): Add
21368         MASK_PPC_GFXOPT.
21369         * config/rs6000/aix51.h (SUBSUBTARGET_SWITCHES, aix64): Same.
21370         * config/rs6000/aix52.h (SUBSUBTARGET_SWITCHES, aix64): Same.
21371         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES, 64): Same.
21373 2005-04-28  Richard Earnshaw  <richard.earnshaw@arm.com>
21375         * arm.c (legitimize_pic_address): Fix sense of assertion test for
21376         creating pseudos when the base offset is too large.
21378 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
21380         * global.c (earlyclobber_regclass): Change the type to
21381         VEC(int,heap).
21382         (check_earlyclobber): Update uses of earlyclobber_regclass.
21383         (mark_reg_use_for_earlyclobber): Likewise.
21384         (calculate_local_reg_bb_info): Allocate and free
21385         earlyclobber_regclass using the VEC API.
21387 2005-04-28  Nathan Sidwell  <nathan@codesourcery.com>
21389         * tree-ssa-alias.c (push_fields_onto_fieldstack): Remove bogus
21390         assert.
21392 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
21394         * modulo-sched.c, tree-stdarg.c: Use targetm.foo instead of
21395         (*targetm.foo).
21397         * config.gcc: Obsolete c4x-* and tic4x-*.
21399         * tree.h (edge_def): Remove.
21401         * bt-load.c, cfgexpand.c, dwarf2out.c, emit-rtl.c, expr.c,
21402         function.c, global.c, lcm.c, loop-invariant.c, optabs.c,
21403         reorg.c, resource.c, tree-ssa-loop-ivopts.c, value-prof.c: Use
21404         JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P
21405         where appropriate.
21407         * attribs.c, c-pragma.c, caller-save.c, cfghooks.h,
21408         coverage.c, cselib.h, domwalk.c, domwalk.h, errors.c,
21409         errors.h, gcov-dump.c, gcov-io.c, gcov-io.h, gen-protos.c,
21410         genattrtab.h, genextract.c, gthr-win32.h, insn-notes.def,
21411         integrate.c, lambda-mat.c, lambda.h, libgcov.c, local-alloc.c,
21412         machmode.def, mips-tfile.c, params.c, pretty-print.c,
21413         print-rtl.c, protoize.c, regmove.c, sched-vis.c, tree-chrec.h,
21414         tree-data-ref.h, vec.h, config/darwin-c.c, config/sol2-c.c,
21415         config/sol2.c, config/arm/arm-cores.def, config/arm/cirrus.md,
21416         config/arm/symbian.h, config/c4x/c4x.c, config/c4x/c4x.h,
21417         config/i386/cygming.h, config/i386/djgpp.h,
21418         config/i386/lynx.h, config/i386/netware.c,
21419         config/i386/winnt.c, config/ia64/ia64-c.c,
21420         config/iq2000/iq2000.c, config/m32r/little.h,
21421         config/m68k/m68k-protos.h, config/m68k/m68k.h,
21422         config/m68k/m68k.md, config/mcore/mcore.c,
21423         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.md,
21424         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
21425         config/mn10300/mn10300.h, config/ns32k/netbsd.h,
21426         config/ns32k/ns32k.c, config/ns32k/ns32k.h,
21427         config/pa/pa-hpux11.h, config/pdp11/pdp11.c,
21428         config/pdp11/pdp11.h, config/rs6000/darwin.h,
21429         config/rs6000/default64.h, config/rs6000/rs6000-c.c,
21430         config/s390/2064.md, config/s390/2084.md,
21431         config/s390/s390-modes.def, config/s390/s390-protos.h,
21432         config/s390/tpf.h, config/sh/sh.h, config/sh/symbian.c,
21433         config/stormy16/stormy16.c, config/vax/vax-protos.h,
21434         config/vax/vax.c, config/vax/vax.h,
21435         config/xtensa/lib1funcs.asm, config/xtensa/xtensa.md: Update
21436         copyright.
21438 2005-04-28  Joseph S. Myers  <joseph@codesourcery.com>
21440         * c-typeck.c (build_compound_expr): Correct logic in last change.
21442 2005-04-27  James E. Wilson  <wilson@specifixinc.com>
21444         * config/ia64/ia64.c (update_set_flags): Delete ppred and pcond
21445         parameters.  Replace conditional move code with assert checking for
21446         ar.lc.  Delete obsolete comments.
21447         (set_src_needs_barrier): Delete cond parameter, and code using it.
21448         (rtx_needs_barrier): Delete initialization of cond.  Fix typo in
21449         assert checking for PR_REGS.  Fix calls to update_set_flags and
21450         set_src_needs_barrier.
21451         (group_barrier_needed): Renamed from group_barrier_needed_p.  Fix all
21452         callers.  Rewrite explanatory comment before the function.
21453         (safe_group_barrier_needed): Renamed from safe_group_barrier_needed_p.
21454         Fix all callers.
21456 2005-04-27  Mike Stump  <mrs@apple.com>
21458         * doc/cpp.texi: gcc now implements universal character names.
21460 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
21462         PR c/21159
21463         * c-typeck.c (build_compound_expr): Don't warn for left-hand side
21464         being a compound expression whose right-hand side is cast to void.
21466 2005-04-27  Caroline Tice  <ctice@apple.com>
21468         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
21469         Remove targetm.have_named_sections test.
21470         (fix_edges_for_rarely_executed_code): Likewise.
21471         (insert_section_boundary_note): Likewise.
21472         (reorder_basic_blocks): Check partitioning flag before calling
21473         verify_hot_cold_block_grouping.
21474         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
21475         the function struct rather than global variables.
21476         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
21477         (COLD_END_LABEL): Likewise
21478         (cold_text_section_label): New static global variable.
21479         (cold_end_label): Likewise.
21480         (dwarf2out_switch_text_section): Get hot/cold section labels from
21481         the function struct rather than global variables; test to make sure
21482         cfun is defined.
21483         (output_aranges): Use cold_text_section_label and cold_end_label;
21484         check partitioning flag before putting out delta.
21485         (output_ranges): Remove incorrect code attempting to use
21486         hot/cold labels.
21487         (output_line_info): Get cold section label from function struct; test
21488         to make sure cfun is defined.
21489         (add_location_or_const_value_attribute): Likewise.
21490         (dwarf2out_var_location): Likewise.
21491         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
21492         write out cold_text_section_label if partition flag is set.
21493         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
21494         * function.h (struct function): Add new fields to point to hot/cold
21495         section labels: hot_section_label, cold_section_label,
21496         hot_section_end_label and cold_section_end_label; also add new field
21497         for cold text section name, unlikely_text_section_name.
21498         * opts.c (decode_options): Turn off partitioning flag if
21499         !targetm.have_named_sections.
21500         * output.h (hot_section_label): Remove.
21501         (hot_section_end_label): Remove.
21502         (cold_section_end_label): Remove.
21503         (unlikely_section_label): Remove.
21504         (unlikely_text_section_name): Remove.
21505         * passes.c (rest_of_handle_final):  Remove extra blank line.
21506         * varasm.c (unlikely_section_label): Remove.
21507         (hot_section_label): Remove.
21508         (hot_section_end_label): Remove.
21509         (cold_section_end_label): Remove.
21510         (unlikely_text_section_name):  Remove.
21511         (initialize_cold_section_name): Modify to call
21512         targetm.strip_name_encoding; to store cold section name in current
21513         function struct, if it exists; and to only use the decl_section_name
21514         if flag_named_sections is true.
21515         (unlikely_text_section): Modify to get section name out of current
21516         function struct, if there is one; otherwise build it from
21517         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
21518         (in_unlikely_text_section): Likewise.
21519         (named_section): Modify to get/put cold section name in current function
21520         struct, if there is one.
21521         (function_section):  Change 'bool unlikely' to 'int reloc'; check
21522         targetm.have_named_sections before calling named_section.
21523         (current_function_section): Likewise.
21524         (assemble_start_function): Modify to get/put unlikely_text_section_name
21525         in current function struct; modify to get hot/cold section labels
21526         from function struct; initialize labels using
21527         ASM_GENERATE_INTERNAL_LABEL;
21528         test partitioning flag before writing out hot section label.
21529         (assemble_end_function): Test partitioning flag before writing out
21530         hot/cold section labels.
21531         (default_section_type_flags_1):  Get cold text section name from
21532         function struct if there is one; Set flags correctly for
21533         cold text section if there is not a current function struct.
21535 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
21537         * tree-ssa-propagate.c (set_rhs): Revert last change.
21539 2005-04-27  Steve Ellcey  <sje@cup.hp.com>
21541         * explow.c (convert_memory_address): Add gcc_assert.
21543 2005-04-27  Mark Mitchell  <mark@codesourcery.com>
21545         * configure.ac: Check for ld --sysroot support.
21546         * gcc.c: Document %R specifier for specs.
21547         (SYSROOT_SPEC): New macro.
21548         (sysroot_spec): New variable.
21549         (static_specs): Add sysroot_spec.
21550         (main): Pass the sysroot spec to the linker if appropriate.
21551         * configure: Regenerated.
21552         * config.in: Likewise.
21554 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
21556         * fold-const.c (fold_binary): Use build_fold_addr_expr
21557         for address calculation and INDIRECT_REF handling.
21559 2005-04-27  Andrew Haley  <aph@redhat.com>
21561         * postreload-gcse.c (hash_scan_set): Remove bogus assertion.
21563 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
21565         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Reserve arm frame
21566         pointer when thumb backtracing is on.
21568         * config/fp-bit.c (abort): Revert change.
21570 2005-04-27  Ian Lance Taylor  <ian@airs.com>
21572         * c-semantics.c (add_stmt): Don't test STATEMENT_CODE_P.
21574 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
21576         * tree-ssa-dce.c: Fix a comment typo.
21578 2005-04-27  David S. Miller  <davem@davemloft.net>
21580         * explow.c (allocate_dynamic_stack_space SETJMP_VIA_SAVE_AREA):
21581         Kill setjmpless_size.  current_function_calls_setjmp is completely
21582         computed when we are called, so just use the optimized size value
21583         instead of using REG_SAVE_AREA notes.
21584         (optimize_save_area_alloca): Delete....
21585         * rtl.h (optimize_save_area_alloca): Likewise...
21586         * passes.c (rest_of_compilation): and don't call it any more.
21587         * reg-notes.def (SAVE_AREA): Delete.
21589 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
21591         * config/fp-bit.c (abort): Add noreturn attribute.
21593         * config/avr/avr.c (avr_naked_function_p): Use gcc_assert and
21594         gcc_unreachable as appropriate.
21595         (ptrreg_to_str, cond_string, avr_normalize_condition): Likewise.
21596         * config/avr/avr.h (ASM_OUTPUT_REG_PUSH,
21597         ASM_OUTPUT_REG_POP): Likewise.
21599 2005-04-27  Paolo Bonzini  <bonzini@gnu.org>
21601         * tree-complex.c (expand_vector_operations_1): Do not build
21602         VIEW_CONVERT_EXPR's for the lhs.
21604 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
21606         * config/pa/pa.h (PRINT_OPERAND_ADDRESS): Use gcc_assert, remove
21607         unnecessary noncanonical RTL handling.
21608         * config/pa/pa64-linux.h (INITIAL_ELIMINATION_OFFSET): Use
21609         gcc_assert and gcc_unreachable.
21611         * config/arm/arm.h (ARM_PRINT_OPERAND_ADDRESS): Use gcc_assert and
21612         gcc_unreachable as appropriate.
21613         (THUMB_PRINT_OPERAND_ADDRESS): Likewise.
21614         * config/arm/arm.c (arm_override_options, arm_compute_func_type,
21615         use_return_insn, const_ok_for_op, arm_gen_constant,
21616         arm_canonicalize_comparison, legitimize_pic_address,
21617         thumb_find_work_register, arm_load_pic_register, arm_rtx_costs_1,
21618         arm_cirrus_insn_p, cirrus_reorg, minmax_code,
21619         load_multiple_sequence, emit_ldm_seq, store_multiple_sequence,
21620         emit_stm_seq, arm_gen_movmemqi, arm_select_dominance_cc_mode,
21621         arm_select_cc_mode, arm_reload_in_hi, arm_reload_out_hi,
21622         move_minipool_fix_forward_ref, move_minipool_fix_backward_ref,
21623         dump_minipool, create_fix_barrier, push_minipool_fix, arm_reorg,
21624         fp_immediate_constant, fp_const_from_val, vfp_output_fstmx,
21625         output_call, output_mov_long_double_fpa_from_arm,
21626         output_mov_long_double_arm_from_fpa,
21627         output_mov_double_fpa_from_arm, output_mov_double_arm_from_fpa,
21628         output_move_double, arithmetic_instr, shift_op, int_log2,
21629         output_return_instruction, arm_output_function_prologue,
21630         arm_output_epilogue, arm_output_function_epilogue,
21631         emit_multi_reg_push, arm_get_frame_offsets,
21632         arm_compute_initial_elimination_offset, arm_expand_prologue,
21633         arm_print_operand, arm_assemble_integer, get_arm_condition_code,
21634         arm_final_prescan_insn, arm_init_iwmmxt_builtins,
21635         arm_expand_binop_builtin, thumb_pushpop, thumb_far_jump_used_p,
21636         thumb_compute_initial_elimination_offset,
21637         thumb_output_function_prologue, thumb_load_double_from_address,
21638         thumb_output_move_mem_multiple, thumb_reload_out_hi,
21639         arm_emit_vector_const, arm_dbx_register_number): Likewise.
21640         * config/arm/pe.c (arm_mark_dllexport, arm_mark_dllimport): Likewise.
21641         * config/arm/arm.md (thumb_extendhisi2,
21642         *thumb_extendhisi2_insn_v6, *thumb_extendqisi2,
21643         *thumb_extendqisi2_v6, movhi, *thumb_movhi_insn,
21644         thumb_movhi_clobber, movqi, *arm_buneq, *arm_bltgt,
21645         *arm_buneq_reversed, *arm_bltgt_reversed, suneq, sltgt): Likewise.
21646         * config/arm/cirrus.md (*cirrus_arm_movdi,
21647         *cirrus_movdf_hard_insn): Likewise.
21648         * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
21650 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
21652         * tree-flow.h (ssa_names): Change the type to VEC(tree,gc).
21653         (num_ssa_names): Use VEC_length.
21654         (ssa_names): Use VEC_index.
21655         * tree-ssanames.c (ssa_names): Change the type to
21656         VEC(tree,gc).
21657         (init_ssanames, fini_ssa_names, make_ssanames,
21658         release_ssa_name): Update uses of ssa_names.
21660         * dojump.c, emit-rtl.c, expmed.c, expr.c, stmt.c, stor-layout.c:
21661         Use fold_buildN instead of fold (buildN (...)).
21663 2005-04-27  Devang Patel <dpatel@apple.com>
21665         * dbxout.c (dbxout_type): Check use_gnu_debug_info_extensions.
21667 2005-04-27  Matt Thomas <matt@3am-software.com>
21668             Jan-Benedict Glaw <jbglaw@microdata-pos.de>
21670         * config/vax/vax.c (vax_rtx_costs): Whitespace cleanup.
21671         (vax_output_mi_thunk): Ditto.
21672         (vax_notice_cc_update): Ditto.
21673         (INDEX_REGISTER_P): Add trailing \.
21674         (BASE_REGISTER_P): Add trailing \.
21675         (legitimate_address_p): Whitespace cleanup.  Remove trailing \.
21677 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
21679         * tree-ssa-propagate.c (set_rhs): Check operand of
21680         ADDR_EXPR for gimpliness, too.
21682 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
21684         * tree-ssa-pre.c: Fix a comment typo.
21686 2005-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
21688         PR tree-optimization/21171
21689         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not
21690         record address uses if the reference is volatile.
21692 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
21694         * tree-complex.c (expand_vector_operation): New, extracted from
21695         expand_vector_operations_1.
21696         (tree_vec_extract): Build a NOP_EXPR.
21697         (expand_vec_parallel): Do not care about returning the correct type.
21698         (expand_vector_operations_1): Call expand_vector_operation.
21699         Build the VIEW_CONVERT_EXPR on the left side of MODIFY_EXPRs.
21701         * tree-complex.c (gate_expand_vector_operations): New.
21702         (pass_lower_vector_ssa): Use it.
21703         * tree-optimize.c (init_tree_optimization_passes): Include
21704         pass_lower_vector_ssa.
21705         * tree-vect-transform.c (vect_min_worthwhile_factor): New.
21706         (vectorizable_operation): Use it.
21707         * tree-vectorizer.c (get_vectype_for_scalar_type): Accept
21708         integer modes for the vector type.
21710         * defaults.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
21711         * tree-vect-analyze.c (vect_enhance_data_refs_alignment):
21712         Do not cope with UNITS_PER_SIMD_WORD == 0.
21713         * tree-vectorizer.c (get_vectype_for_scalar_type): Check
21714         if the scalar type is not bigger than UNITS_PER_SIMD_WORD.
21715         (vectorize_loops): Do not check that UNITS_PER_SIMD_WORD > 0.
21716         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
21717         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
21718         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
21719         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
21721         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): Remove.
21722         * config/bfin/bfin.h (UNITS_PER_SIMD_WORD): Remove.
21723         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): Remove.
21725         * doc/tm.texi (UNITS_PER_WORD): Rephrase more accurately.
21726         (UNITS_PER_SIMD_WORD): New.
21728 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
21730         * config/ia64/ia64.c (ia64_encode_addr_area): Use gcc_assert and
21731         gcc_unreachable as appropriate.
21732         (ia64_expand_load_address, ia64_expand_tls_address,
21733         ia64_split_tmode, ia64_split_tmode_move, ia64_expand_compare,
21734         ia64_expand_vecint_compare, ia64_expand_vecint_minmax,
21735         next_scratch_gr_reg, ia64_initial_elimination_offset,
21736         ia64_expand_prologue, ia64_expand_epilogue,
21737         ia64_output_dwarf_dtprel, ia64_print_operand,
21738         ia64_register_move_cost, first_instruction, rws_access_regno,
21739         update_set_flags, rtx_needs_barrier, group_barrier_needed_p,
21740         ia64_sched_init, ia64_variable_issue,
21741         ia64_first_cycle_multipass_dfs_lookahead_guard,
21742         ia64_dfa_new_cycle, issue_nops_and_insn, get_template, bundling,
21743         ia64_st_address_bypass_p, ia64_ld_address_bypass_p, process_set,
21744         process_for_unwind_directive, ia64_hpux_file_end): Likewise.
21745         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
21746         * config/ia64/ia64.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
21747         * config/ia64/predicates.md (got_symbolic_operand,
21748         sdata_symbolic_operand): Likewise.
21749         * config/ia64/vect.md (vcondv2sf): Likewise.
21751 2005-04-27  Matt Thomas <matt@3am-software.com>
21753         * config/vax/vax.c (legitimate_constant_address_p): New.  Formerly
21754         CONSTANT_ADDRESS_P in config/vax/vax.h
21755         (legitimate_constant_p): Added.  Formerly CONSTANT_P in vax.h.
21756         (INDEX_REGISTER_P): New.
21757         (BASE_REGISTER_P): New.
21758         (indirectable_constant_address_p): New.  Adapted from
21759         INDIRECTABLE_CONSTANT_ADDRESS_P in vax.h. Use SYMBOL_REF_LOCAL_P.
21760         (indirectable_address_p): New.  Adapted from
21761         INDIRECTABLE_ADDRESS_P in vax.h.
21762         (nonindexed_address_p): New.  Adapted from
21763         GO_IF_NONINDEXED_ADDRESS in vax.h.
21764         (index_temp_p): New.  Adapted from INDEX_TERM_P in vax.h.
21765         (reg_plus_index_p): New.  Adapted from GO_IF_REG_PLUS_INDEX in vax.h.
21766         (legitimate_address_p): New.  Adapted from
21767         GO_IF_LEGITIMATE_ADDRESS in vax.h.
21768         (vax_mode_dependent_address_p): New.  Adapted from
21769         GO_IF_MODE_DEPENDENT_ADDRESS in vax.h.
21770         * config/vax/vax.h (CONSTANT_ADDRESS_P): Use
21771         legitimate_constant_address_p.
21772         (CONSTANT_P): Use legitimate_constant_p.
21773         (INDIRECTABLE_CONSTANT_ADDRESS_P): Removed.
21774         (INDIRECTABLE_ADDRESS_P): Removed.
21775         (GO_IF_NONINDEXED_ADDRESS): Removed.
21776         (INDEX_TEMP_P): Removed.
21777         (GO_IF_REG_PLUS_INDEX): Removed.
21778         (GO_IF_LEGITIMATE_ADDRESS): Use legitimate_address_p. Two
21779         definitions, depending on whether REG_OK_STRICT is defined.
21780         (GO_IF_MODE_DEPENDENT_ADDRESS): Use vax_mode_dependent_address_p.
21781         Two definitions, depending on whether REG_OK_STRICT is defined.
21782         * config/vax/vax-protos.h (legitimate_constant_address_p): Prototype
21783         added.
21784         (legitimate_constant_p): Prototype added.
21785         (legitimate_address_p): Prototype added.
21786         (vax_mode_dependent_address_p): Prototype added.
21788 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
21790         * tree.h (phi_arg_d): Expand a comment in phi_arg_d.
21792 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
21794         PR c/21213
21795         * c-decl.c (finish_struct): Don't dereference NULL TYPE_FIELDS of
21796         transparent union.
21798 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
21800         PR c/20740
21801         * c-format.c (init_dynamic_asm_fprintf_info): Give errors, not
21802         assertion failures, if __gcc_host_wide_int__ is not properly
21803         defined.
21804         (init_dynamic_diag_info): Give errors, not assertion failures, if
21805         location_t, tree or __gcc_host_wide_int__ are not properly
21806         defined.
21808 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
21810         * tree-ssa-loop-ivopts.c (ivopts_data, decl_rtl_to_reset,
21811         n_iv_uses, iv_use, n_iv_cands, iv_cand,
21812         tree_ssa_iv_optimize_init, record_use, add_candidate_1,
21813         prepare_decl_rtl, free_loop_data,
21814         tree_ssa_iv_optimize_finalize): Use the VEC API instead of
21815         VARRAY.
21817         * tree.h (tree_phi_node): Add a comment about the order of PHI
21818         arguments.
21820 2005-04-26  Paul Brook  <paul@codesourcery.com>
21822         * config/arm/arm.md (thumb_mulsi3): Use two-operand assembly form.
21824 2005-04-26  Nathan Sidwell  <nathan@codesourcery.com>
21826         * config/mips.mips.c (mips_legitimize_tls_address): Use
21827         gcc_unreachable.
21829         * config/mmix/mmix.c (mmix_assemble_integer): Use gcc_assert.
21830         * config/mmix/crti.asm (_init): Reword comment to avoid 'abort'.
21831         * config/mmix/mmix.md (nonlocal_goto_receiver): Likewise.
21833         * config/sparc/sparc.h (enum reg_class): Reword comment to avoid
21834         'abort'.
21836 2005-04-26  Jeff Law  <law@redhat.com>
21838         * tree-flow-inline.h (op_iter_next_must_and_may_def): New.
21839         (op_iter_init_must_and_may_def): Likewise.
21840         (unmodifiable_var_p): Move to a later point in the file.
21841         * tree-ssa-operands.h (FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): New.
21842         * tree-ssa-dse.c (need_imm_uses_for): Remove, no longer needed.
21843         (dse_record_phis): Directly check for virtual operands rather than
21844         using need_imm_uses_for.
21845         (dse_optimize_stmt): Handle V_MUST_DEF operands.  Handle case where
21846         store has multiple V_{MAY,MUST}_DEF operands.
21848 2005-04-26  Andrew MacLeod  <amacleod@redhat.com>
21850         * tree-cfg.c (bsi_replace): Delink immediate uses for the original
21851         stmt.
21853 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
21855         * tree-cfg.c (lv_adjust_loop_header_phi): Speed up moving a
21856         call to find_edge outside a loop to go through a PHI chain.
21858 2004-04-26  Richard Guenther  <rguenth@gcc.gnu.org>
21860         PR tree-optimization/17598
21861         * fold-const.c (fold_binary): Fold comparisons of addresses
21862         of COMPONENT_REFs which reference the same field to
21863         comparisons of the addresses of the base objects.
21865 2005-04-26  Julian Brown  <julian@codesourcery.com>
21867         * config/arm/arm.c (arm_return_in_msb): New function.
21868         (arm_must_pass_in_stack): New function.
21869         (TARGET_RETURN_IN_MSB): Define target hook.
21870         (TARGET_MUST_PASS_IN_STACK): Define target hook.
21871         (arm_function_value): Pad small aggregate return.
21872         (arm_pad_arg_upward): New function.
21873         (arm_pad_reg_upward): New function.
21874         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Include complex values.
21875         (FUNCTION_ARG_PADDING): Define macro.
21876         (BLOCK_REG_PADDING): Define macro.
21877         (PAD_VARARGS_DOWN): Correct padding for AAPCS.
21878         * config/arm/arm-protos.h (arm_pad_arg_upward): Declare function.
21879         (arm_pad_reg_upward): Declare function.
21881 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
21883         * basic-block.h (ei_cond): New.
21884         (FOR_EACH_EDGE): Call ei_cond.
21886         PR tree-optimization/21047
21887         * fold-const.c (fold_binary): Abort on ASSERT_EXPR.
21888         (fold): Don't handle ASSERT_EXPR.
21890 2005-04-25  Roger Sayle  <roger@eyesopen.com>
21892         * sched-deps.c (sched_analyze_1): On STACK_REGS targets, x87, treat
21893         all writes to any stack register as a read/write dependency on
21894         FIRST_STACK_REG.
21895         (sched_analyze_2): Likewise, for reads from any stack register.
21897 2005-04-25  Richard Henderson  <rth@redhat.com>
21899         * final.c (output_addr_const): Revert 2005-04-09 change.
21901 2005-04-25  Mike Stump  <mrs@apple.com>
21903         * config/darwin.c (darwin_encode_section_info): Always set
21904         MACHO_SYMBOL_STATIC for all ! TREE_PUBLIC symbols.
21906 2005-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21908         * collect2.c, gcc.c, gcov-dump.c, gcov.c, gen-protos.c,
21909         gensupport.c, protoize.c, toplev.c: Replace calls to
21910         `unlock_stream' with `unlock_std_streams'.
21912 2005-04-25  Devang Patel <dpatel@apple.com>
21914         * dbxout.c (dbxout_type): Emit attribute vector.
21916 2005-04-05  Paul Brook  <paul@codesourcery.com>
21918         * target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
21919         * target.h (struct gcc_target): Add cxx.use_aeabi_atexit.
21920         * config/arm/arm.c (arm_cxx_atexit_name): New function.
21921         (TARGET_CXX_USE_AEABI_ATEXIT): New macro.
21922         * cp/decl.c (get_atexit_node): Reorder arguments for __aeabi_atexit.
21923         (register_dtor_fn): Likewise.
21924         * doc/tm.texi: Document TARGET_CXX_USE_AEABI_ATEXIT.
21926 2005-04-25  Ian Lance Taylor  <ian@airs.com>
21928         * c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
21929         * c-common.h (EXPR_STMT_EXPR): Don't define.
21930         (c_common_stmt_codes): Don't define.
21931         * c-dump.c (c_dump_tree): Remove EXPR_STMT case.
21932         * c-gimplify.c (gimplify_expr_stmt): Remove.
21933         (c_gimplify_expr): Remove EXPR_STMT case.
21934         * c-objc-common.c (c_objc_common_init): Remove stmt_codes and call
21935         to INIT_STATEMENT_CODES.
21936         * c-pretty-print.c (pp_c_statement): Just call dump_generic_node.
21938 2005-04-25  Jan Hubicka  <jh@suse.cz>
21940         * tree-cfg.c (tree_duplicate_bb): Duplicate EH region too.
21942         * except.c: Include diagnostic.h
21943         (dump_eh_tree, verify_eh_tree): New functions.
21944         * except.h (verify_eh_tree, dump_eh_tree, verify_eh_edges): Declare.
21945         * tree-cfg.c (tree_verify_flow_info): verify eh edges.
21946         (dump_function_to_file): dump eh tree.
21947         * tree-eh.c (mark_eh_edge): New function.
21948         (mark_eh_edge_found_error): New static variable.
21949         (verify_eh_edges): New function.
21951 2005-04-25  Nathan Sidwell  <nathan@codesourcery.com>
21953         * tree-ssa-alias.c (fieldoff_t): Remove.
21954         (fieldoff_s): typedef the structure itself.  Create a vector of
21955         objects.
21956         (push_fields_onto_fieldstack): Return count of fields pushed.
21957         Remove peeling of first field.  Adjust.
21958         (fieldoff_compare): Adjust.
21959         (create_overlap_variables_for): Adjust.
21961 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
21963         * doc/invoke.texi (Blackfin Options): Avoid empty @opindex line.
21965 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
21967         PR bootstrap/21215
21968         * doc/install.texi: Document correct assembler and linker to use
21969         on i?86-*-solaris2.10.
21971 2005-04-25  Steven Bosscher  <stevenb@suse.de>
21973         Fix PR tree-optimization/21173
21975         * tree-ssa-pre.c (create_expression_by_pieces): Simplify code.
21976         Unshare expression we pass to force_gimple_operand.
21978 2005-04-25  J"orn Rennecke <joern.rennecke@st.com>
21979             Stephen Clarke <stevec@superh.com>
21980             Roger Sayle <roger@eyesopen.com>
21982         PR rtl-optimization/20413
21983         * cfgrtl.c (redirect_edge_and_branch): Use Pmode instead of
21984         VOIDmode for LABEL_REF.
21985         * final.c (shorten_branches): Likewise.
21986         * jump.c (mark_all_labels, redirect_exp_1): Likewise.
21987         * loop.c (reg_dead_after_loop): Likewise.
21988         * varasm.c (decode_addr_const): Likewise.
21989         * doc/rtl.texi: Document mode requirement for LABEL_REF.
21991 2005-04-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
21993         * config.gcc (avr-*-*): Remove redundant "case".
21995 2005-04-25  Kazu Hirata  <kazu@cs.umass.edu>
21997         * tree-vect-analyze.c (vect_mark_relevant): Take
21998         VEC(tree,heap) instead of varray_type as an argument.
21999         (vect_mark_stmts_to_be_vectorized): Change the type of
22000         worklist to VEC(tree,heap).  Adjust uses of worklist.
22002 2005-04-24  Devang Patel  <dpatel@apple.com>
22004         *  config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
22006 2005-04-24  Ian Lance Taylor  <ian@airs.com>
22008         * c-semantics.c (build_stmt): Remove test of specific tree codes
22009         for TREE_SIDE_EFFECTS handling.
22011 2005-04-24  Per Bothner  <per@bothner.com>
22013         * c-opts.c (finish_options):  Make the line-number of the <built-in>
22014         location 0, as assumed elsewhere, rather than 1.
22016 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
22018         * tree-ssa-uncprop.c (equiv_stack): Change the type o
22019         VEC(tree,heap).
22020         (tree_ssa_uncprop, uncprop_finalize_block,
22021         uncprop_initialize_block): Update uses of equiv_stack.
22023 2005-04-24  Richard Henderson  <rth@redhat.com>
22025         PR rtl-opt/21163
22026         * simplify-rtx.c (simplify_binary_operation) <IOR>: Check
22027         for SCALAR_INT_MODE_P instead of not MODE_CC before returning
22028         constm1_rtx.
22029         <AND, LSHIFTRT, UMIN>: Use CONST0_RTX.
22030         <UDIV, UMOD>: Use CONST0_RTX and CONST1_RTX.
22031         <DIV, MOD>: Likewise.
22033 2005-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22035         * collect2.c (main): Unlock the stdio streams.
22036         * gcc.c (main): Likewise.
22037         * gcov-dump.c (main): Likewise.
22038         * gcov.c (main): Likewise.
22039         * gen-protos.c (main): Likewise.
22040         * gensupport.c (init_md_reader_args_cb): Likewise.
22041         * protoize.c (main): Likewise.
22042         * toplev.c (general_init): Likewise.
22044 2005-04-24  Jakub Jelinek  <jakub@redhat.com>
22046         PR middle-end/20991
22047         * cgraph.h (cgraph_local_info): Add vtable_method field.
22048         * varasm.c (mark_decl_referenced): If cgraph_global_info_ready
22049         and node is vtable_method, finalized and not reachable, don't do
22050         anything.
22052 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
22054         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use
22055         COMPARISON_CLASS_P.
22056         * tree-ssa-pre.c (create_value_expr_from): Use
22057         CONSTANT_CLASS_P and REFERENCE_CLASS_P.
22058         * tree-ssa-propagate.c (stmt_makes_single_load,
22059         stmt_makes_single_store): Use REFERENCE_CLASS_P.
22060         * tree-vect-transform.c (vect_is_simple_cond): Use
22061         COMPARISON_CLASS_P.
22062         * tree-vrp.c (extract_range_from_assert,
22063         build_assert_expr_for, fp_predicate, has_assert_expr): Use
22064         COMPARISON_CLASS_P.
22066         * tree-ssa-live.c (build_tree_conflict_graph): Change the type
22067         of tpa_to_clear to VEC(int,heap).  Update uses of
22068         tpa_to_clear.  Free tpa_to_clear at the end.
22070 2005-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
22072         * tree.h (TREE_THIS_VOLATILE): Document the effect on a
22073         function decl.
22075 2005-04-24  Nathan Sidwell  <nathan@codesourcery.com>
22077         * config/rs6000/rs6000.c (rs6000_override_options): Use gcc_assert
22078         and gcc_unreachable as appropriate.
22079         (num_insns_constant, output_vec_const_move,
22080         build_mask64_2_operands, rs6000_output_dwarf_dtprel,
22081         rs6000_emit_set_const, rs6000_emit_move,
22082         spe_build_register_parallel, function_arg,
22083         rs6000_move_block_from_reg, altivec_expand_predicate_builtin,
22084         spe_expand_predicate_builtin, spe_expand_evsel_builtin,
22085         rs6000_expand_builtin, spe_init_builtins, altivec_init_builtins,
22086         rs6000_common_init_builtins, expand_block_clear,
22087         expand_block_move, validate_condition_mode, ccr_bit, extract_MB,
22088         extract_ME, rs6000_get_some_local_dynamic_name,
22089         rs6000_output_function_entry, print_operand,
22090         print_operand_address, rs6000_generate_compare, rs6000_emit_sCOND,
22091         output_cbranch, output_e500_flip_gt_bit,
22092         rs6000_emit_vector_compare, rs6000_emit_vector_compare,
22093         rs6000_emit_cmove, rs6000_emit_minmax, rs6000_split_multireg_move,
22094         compute_save_world_info, rs6000_stack_info,
22095         rs6000_emit_load_toc_table, rs6000_frame_related,
22096         spe_synthesize_frame_save, rs6000_emit_epilogue,
22097         rs6000_output_function_epilogue, rs6000_hash_constant, output_toc,
22098         output_function_profiler, rs6000_trampoline_size,
22099         rs6000_initialize_trampoline, find_addr_reg,
22100         rs6000_machopic_legitimize_pic_address,
22101         rs6000_initial_elimination_offset,
22102         rs6000_dbx_register_number): Likewise.
22103         * config/rs6000/rs6000.md (*fix_truncdfsi2_internal,
22104         *movdf_hardfloat32, *movdf_softfloat32, *fix_trunctfsi2_internal,
22105         *movti_power, *movti_string, call, call_value, sibcall,
22106         sibcall_value): Likewise.
22107         * config/rs6000/spe.md (*movdf_e500_double,
22108         *movv2si_internal): Likewise.
22109         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Remove 'abort'
22110         from comment.
22112 2005-04-24  Richard Henderson  <rth@redhat.com>
22114         PR target/21101
22115         * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Move guts to ...
22116         * config/i386/i386.c (ix86_cannot_change_mode_class): ... here.
22117         Deny modes smaller than 4 bytes.
22118         * config/i386/i386-protos.h: Update.
22120 2005-04-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
22122         * config.gcc (h8300-*-rtems*): Add h8300-*-rtemscoff*.
22123         Switch h8300-*-rtems* to ELF.
22125 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
22127         * vec.h (VEC_safe_grow): Replace grow with safe_grow.
22129 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
22131         * ipa-inline.c, tree-ssa-operands.h: Fix comment typos.
22133 2005-04-23  Richard Guenther  <rguenth@gcc.gnu.org>
22135         PR middle-end/21082
22136         * fold-const.c: Fold &a[i]-&a[j] to i-j.
22138 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
22140         * tree-ssa-loop-niter.c (tree_simplify_using_condition): Expand simple
22141         definitions of ssa names in condition.  Split recusive part to ...
22142         (tree_simplify_using_condition_1): New function.
22143         (expand_simple_operations): New function.
22145 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
22147         * tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
22148         (find_interesting_uses_cond): Do not use integer_zerop and
22149         integer_nonzerop to check for integer constants.
22150         (set_use_iv_cost): Record the value field.
22151         (determine_use_iv_cost_generic, determine_use_iv_cost_address,
22152         determine_use_iv_cost_outer): Set the value field of the cost pair.
22153         (may_eliminate_iv): Do not return the comparison code.
22154         (iv_elimination_compare): New function.
22155         (determine_use_iv_cost_condition): Set the value field.  Record
22156         noneliminable invariants correctly.
22157         (rewrite_use_compare, rewrite_use_outer): Use the value field.
22159 2005-04-23  DJ Delorie  <dj@redhat.com>
22161         * diagnostic.c (warning): Accept parameter to classify warning option.
22162         (warning0): New, for when a pointer to an error() like function is needed.
22163         * errors.c (warning): Likewise.
22164         * errors.h (warning, warning0): Adjust prototypes.
22165         * toplev.h (warning, warning0): Likewise.
22167         * attribs.c, builtins.c, c-common.c, c-decl.c, c-format.c,
22168         c-gimplify.c, c-lex.c, c-objc-common.c, c-opts.c, c-parser.c,
22169         c-pragma.c, c-typeck.c, calls.c, cgraph.c, coverage.c, emit-rtl.c,
22170         fold-const.c, fortran/trans-decl.c, function.c, gcse.c,
22171         genautomata.c, haifa-sched.c, opts.c, passes.c, regclass.c,
22172         reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
22173         tree-dump.c, tree-inline.c, tree-mudflap.c, tree-optimize.c,
22174         tree-ssa.c, tree.c, varasm.c: Adjust warning() callers.
22176         * config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
22177         config/avr/avr.c, config/bfin/bfin.c, config/c4x/c4x-c.c,
22178         config/c4x/c4x.c, config/cris/cris.c, config/darwin-c.c,
22179         config/darwin.c, config/darwin.h, config/h8300/h8300.c,
22180         config/i386/cygming.h, config/i386/djgpp.h, config/i386/i386.c,
22181         config/i386/winnt.c, config/ia64/ia64-c.c, config/ia64/ia64.c,
22182         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
22183         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.c,
22184         config/mmix/mmix.c, config/ns32k/ns32k.c, config/pa/pa-hpux11.h,
22185         config/pa/pa.c, config/rs6000/aix43.h, config/rs6000/aix51.h,
22186         config/rs6000/aix52.h, config/rs6000/darwin.h,
22187         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
22188         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
22189         config/sh/symbian.c, config/sol2-c.c, config/sol2.c,
22190         config/stormy16/stormy16.c, config/v850/v850-c.c,
22191         config/v850/v850.c, config/xtensa/xtensa.c: Adjust warning()
22192         callers.
22194 2005-04-23  Richard Henderson  <rth@redhat.com>
22196         PR rtl-opt/21102
22197         * simplify-rtx.c (simplify_binary_operation): Fix mode check before
22198         performing some integral scalar simplifications.
22200 2005-04-23  Richard Henderson  <rth@redhat.com>
22202         PR target/21099
22203         * config/i386/i386.c (ix86_split_to_parts): Use proper mode when
22204         simplifying CONST_VECTOR.
22206 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
22208         * tree-ssa-live.c (live_worklist): Take a stack allocated on
22209         heap as an argument.  Update uses of stack.
22210         (calculate_live_on_entry): Allocate stack on heap.
22212         * tree-ssa-live.c (build_tree_conflict_graph): Allocate
22213         partition_link and tpa_nodes on heap.
22215         * tree-ssa-dce.c (worklist): Change to VEC(tree,heap).
22216         (mark_stmt_necessary, propagate_necessity,
22217         mark_really_necessary_kill_operand_phis): Update uses of
22218         worklist.
22219         (tree_dce_init): Allocate worklist using VEC_alloc.
22220         (tree_dce_done): Free worklist using VEC_free.
22222 2005-04-23  Mike Stump  <mrs@apple.com>
22224         * config/darwin.c (machopic_indirection_name): Don't use
22225         quotes needlessly.
22226         (darwin_emit_unwind_label): Use user_label_prefix instead of
22227         "_".
22229 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
22231         * final.c, ipa-inline.c, varasm.c: Fix comment typos.
22233 2005-04-23  Hans-Peter Nilsson  <hp@axis.com>
22235         * config.gcc <cris-*>: Specify .opt files.
22236         * config/cris/cris.opt, config/cris/elf.opt, config/cris/aout.opt,
22237         config/cris/linux.opt: New files.
22238         * config/cris/aout.h (CRIS_SUBTARGET_SWITCHES)
22239         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
22240         (TARGET_ELF): Override to 0.
22241         (CRIS_SUBTARGET_HANDLE_OPTION): Override to handle -melinux and
22242         -melinux-stacksize=N.
22243         * config/cris/cris.c: (cris_handle_option): New function.
22244         (TARGET_DEFAULT_TARGET_FLAGS): Override.
22245         (TARGET_HANDLE_OPTION): Override to cris_handle_option.
22246         (cris_override_options): Use MASK_*, not TARGET_MASK_*.
22247         * config/cris/cris.h (TARGET_MASK_SVINTO, TARGET_SVINTO,
22248         (TARGET_MASK_CCINIT, TARGET_CCINIT, TARGET_MASK_PDEBUG)
22249         (TARGET_PDEBUG, TARGET_MASK_SIDE_EFFECT_PREFIXES)
22250         (TARGET_SIDE_EFFECT_PREFIXES, TARGET_MASK_EXPAND_MUL)
22251         (TARGET_EXPAND_MUL, TARGET_MASK_STACK_ALIGN, TARGET_STACK_ALIGN)
22252         (TARGET_MASK_CONST_ALIGN, TARGET_CONST_ALIGN)
22253         (TARGET_MASK_DATA_ALIGN, TARGET_DATA_ALIGN)
22254         (TARGET_MASK_PROLOGUE_EPILOGUE, TARGET_PROLOGUE_EPILOGUE)
22255         (TARGET_MASK_ETRAX4_ADD, TARGET_ETRAX4_ADD)
22256         (TARGET_MASK_ALIGN_BY_32, TARGET_ALIGN_BY_32, TARGET_MASK_ELF)
22257         (TARGET_ELF, TARGET_MASK_LINUX, TARGET_LINUX)
22258         (TARGET_MASK_AVOID_GOTPLT, TARGET_AVOID_GOTPLT)
22259         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG, TARGET_SWITCHES)
22260         (CRIS_SUBTARGET_SWITCHES, TARGET_OPTIONS)
22261         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
22262         (TARGET_LINUX): Define 0.
22263         (TARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
22264         (CRIS_SUBTARGET_DEFAULT): Define to 0, not TARGET_MASK_ELF.
22265         (CRIS_SUBTARGET_DEFAULT): New empty default macro.
22266         * config/cris/linux.h (CRIS_SUBTARGET_SWITCHES): Don't define.
22267         (TARGET_LINUX): Override to 1.
22268         (CRIS_SUBTARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
22270 2005-04-23  Nathan Sidwell  <nathan@codesourcery.com>
22272         * haifa-sched.c (schedule_block): Fix thinko in previous
22273         assertification patch.
22275 2005-04-23  Richard Sandiford  <rsandifo@redhat.com>
22277         * config.gcc (hppa[12]*-*-hpux10*): Add pa/pa-hpux.opt to
22278         $extra_options.  Also add pa/pa-hpux1010.opt for hpux10.[1-9]*.
22279         (hppa*64*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
22280         pa/pa-hpux.opt, pa/pa-hpux1010.opt and pa/pa64-hpux.opt to
22281         $extra_options.  Also add pa/pa-hpux1111.opt for hpux11.[1-9]*.
22282         (hppa[12]*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
22283         pa/pa-hpux.opt to $extra_options.  Also add pa/pa-hpux1111.opt
22284         for hpux11.[1-9]*.
22285         * config/pa/pa.h (architecture_type, rtx_def, pa_arch_string, pa_arch)
22286         (pa_fixed_range_string, pa_cpu_string, pa_unix_string, target_flags)
22287         (MASK_PA_11, MASK_DISABLE_FPREGS, TARGET_DISABLE_FPREGS)
22288         (MASK_NO_SPACE_REGS, TARGET_NO_SPACE_REGS, MASK_JUMP_IN_DELAY)
22289         (TARGET_JUMP_IN_DELAY, MASK_DISABLE_INDEXING, TARGET_DISABLE_INDEXING)
22290         (MASK_PORTABLE_RUNTIME, TARGET_PORTABLE_RUNTIME, MASK_GAS, TARGET_GAS)
22291         (MASK_SOFT_FLOAT, TARGET_SOFT_FLOAT, MASK_LONG_LOAD_STORE)
22292         (TARGET_LONG_LOAD_STORE, MASK_FAST_INDIRECT_CALLS)
22293         (TARGET_FAST_INDIRECT_CALLS, MASK_BIG_SWITCH, TARGET_BIG_SWITCH)
22294         (MASK_PA_20, MASK_SIO, TARGET_SIO, MASK_GNU_LD, TARGET_GNU_LD)
22295         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_PA_11, TARGET_PA_20)
22296         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS)
22297         (SUBTARGET_OPTIONS): Delete.
22298         (TARGET_PA_10): Redefine in terms of TARGET_PA_11 and TARGET_PA_20.
22299         (TARGET_SCHED_DEFAULT): Define to a PROCESSOR_* enum (PROCESSOR_8000)
22300         instead of a string.
22301         * config/pa/pa.c (pa_arch, pa_arch_string, pa_fixed_range_string)
22302         (pa_cpu_string, pa_unix_string): Delete.
22303         (pa_cpu): Initialize to TARGET_SCHED_DEFAULT.
22304         (flag_pa_unix): Initialize based on TARGET_HPUX_11_11 and
22305         TARGET_HPUX_10_10.
22306         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
22307         (pa_handle_option): New function.
22308         (override_options): Remove handling of -march=, -mfixed-range=,
22309         -mschedule= and -munix=.
22310         * config/pa/pa-hpux.h (SUBTARGET_SWITCHES): Delete.
22311         * config/pa/pa-hpux1010.h (SUBTARGET_OPTIONS): Delete.
22312         * config/pa/pa-hpux10.h (SUBTARGET_OPTIONS): Delete.
22313         * config/pa/pa-hpux1111.h (SUBTARGET_OPTIONS): Delete.
22314         * config/pa/pa-hpux11.h (SUBTARGET_OPTIONS): Delete.
22315         * config/pa/pa64-hpux.h (SUBTARGET_SWITCHES): Delete.
22316         * config/pa/pa64-start.h (TARGET_PA_11, TARGET_PA_20): #undef before
22317         redefining.
22318         * config/pa/pa.opt: New file.
22319         * config/pa/pa-hpux.opt: New file.
22320         * config/pa/pa-hpux1010.opt: New file.
22321         * config/pa/pa-hpux1111.opt: New file.
22322         * config/pa/pa64-hpux.opt: New file.
22324 2005-04-22  David S. Miller  <davem@davemloft.net>
22326         * rtl.h (CONST_DOUBLE): Fix comment, a CONST_DOUBLE holds an
22327         integer when it's mode is VOIDmode not DImode.
22329 2005-04-22  Geoffrey Keating  <geoffk@apple.com>
22331         * config/rs6000/rs6000.md (sync_add<mode>_internal,
22332         sync_addshort_internal, sync_sub<mode>_internal, sync_andsi_internal,
22333         sync_anddi_internal, sync_boolsi_internal, sync_booldi_internal,
22334         sync_boolc<mode>_internal, sync_boolc<mode>_internal2,
22335         sync_boolcc<mode>_internal, sync_lock_test_and_set<mode>): Use
22336         "bne- $-xxx" rather than local labels.
22337         (sync_lock_release<mode>): Add second operand.
22338         (lwsync): Use .long rather than a more meaningful opcode.
22339         * doc/md.texi (Standard Names): Add description of second
22340         parameter to sync_lock_test_and_set.
22342 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
22344         PR tree-optimization/21088
22345         * fold-const.c (fold_unary, fold_binary, fold_ternary):
22346         Export.
22347         * tree-vrp.c (compare_values): Use fold_binary to compare
22348         pointers.  Use boolean_type_node as the type of a comparison
22349         expression being folded.
22350         * tree.h: Add prototypes for fold_unary, fold_binary,
22351         fold_ternary.
22353         * tree-ssa-dom.c: Fix formatting.
22355 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
22357         * Makefile.in (tree-into-ssa.o): Add dependency on PARAMS_H.
22358         * lambda-code.c (perfect_nestify): Mark virtual operands in
22359         the moved statement for renaming.
22360         * params.def (PARAM_MIN_VIRTUAL_MAPPINGS): Define.
22361         (PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
22362         * params.h (MIN_VIRTUAL_MAPPINGS): Define.
22363         (VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
22364         * tree-flow.h (struct var_ann_d): Update comments.
22365         (rewrite_to_new_ssa_names_bb, rewrite_to_new_ssa_names,
22366         allocate_ssa_names, find_phi_node_for, dump_tree_ssa,
22367         debug_tree_ssa, debug_def_blocks, dump_tree_ssa_stats,
22368         debug_tree_ssa_stats, rewrite_ssa_into_ssa,
22369         dump_repl_tbl, debug_repl_tbl, dump_names_replaced_by,
22370         debug_names_replaced_by): Remove declarations.
22371         (delete_update_ssa, get_current_def, set_current_def): Declare.
22372         (rewrite_into_loop_closed_ssa): Add new argument.  Update
22373         all callers.
22374         * tree-into-ssa.c: Include params.h.
22375         (old_virtual_ssa_names): Remove.  Update all users.
22376         (need_to_replace_names_p): Remove.  Update all users.
22377         (struct update_ssa_stats_d): Declare.
22378         (update_ssa_stats): New local.
22379         (dump_tree_ssa, debug_tree_ssa, debug_def_blocks,
22380         dump_tree_ssa_stats, debug_tree_ssa_stats,
22381         dump_update_ssa, debug_update_ssa,
22382         dump_names_replaced_by, debug_names_replaced_by): Declare.
22383         (get_current_def, set current_def): Make extern.
22384         (is_old_name, is_new_name): Protect against references
22385         past the end of the sets.
22386         (add_new_name_mapping): Assert that OLD and NEW are
22387         different SSA names for the same symbol.
22388         When adding a virtual mapping, update stats for virtual
22389         mapping heuristic.
22390         (insert_phi_nodes_for): If UPDATE_P is true, create the
22391         LHS of the new PHI by duplicating SSA name VAR.
22392         (insert_phi_nodes_1): Remove.  Update all users.
22393         (insert_phi_nodes): Remove second argument.  Update all
22394         users.
22395         (maybe_replace_use, maybe_replace_def): New.
22396         (rewrite_update_stmt): Call them.
22397         (mark_def_interesting): Remove calls to is_gimple_reg.
22398         (prepare_phi_args_for_update): Remove.  Update all users.
22399         (prepare_block_for_update): Only process virtual operands
22400         and GIMPLE registers in normal form.
22401         (prepare_use_sites_for): New.
22402         (prepare_names_to_update): Rename from prepare_def_sites.
22403         Call prepare_use_sites_for.
22404         (dump_update_ssa): Rename from dump_repl_tbl.
22405         Update all users.
22406         Show statistics for virtual mapping heuristic.
22407         (debug_update_ssa): Rename from debug_debug_repl_tbl.
22408         (init_update_ssa): Initialize UPDATE_SSA_STATS.
22409         (delete_update_ssa): Make extern.
22410         (mark_set_for_renaming): If the set is empty, do nothing.
22411         (release_ssa_name_after_update_ssa): Update comment.
22412         (insert_updated_phi_nodes_for): Do not remove existing
22413         PHI nodes for symbols.
22414         (switch_virtuals_to_full_rewrite_p): New.
22415         (switch_virtuals_to_full_rewrite): New.
22416         (update_ssa): Call them.
22417         Clear REWRITE_THIS_STMT and REGISTER_DEFS_IN_THIS_STMT
22418         for every statement before updating.
22419         If all the names in NEW_SSA_NAMES have been marked for
22420         removal, do nothing.
22421         Only start at the top of the CFG if there are symbols in
22422         SYMS_TO_RENAME.
22423         (ssa_rewrite_finalize_block): Remove.
22424         (ssa_register_new_def): Remove.
22425         (ssa_rewrite_stmt): Remove.
22426         (ssa_rewrite_phi_arguments): Remove.
22427         (ssa_rewrite_initialize_block): Remove.
22428         (ssa_mark_def_sites): Remove.
22429         (ssa_mark_def_sites_initialize_block): Remove.
22430         (ssa_mark_phi_uses): Remove.
22431         (rewrite_ssa_into_ssa): Remove.
22432         * tree-phinodes.c (find_phi_node_for): Remove.
22433         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
22434         Call update_ssa.
22435         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops):
22436         Remove calls to verify_dominators and
22437         verify_loop_structure.
22438         (tree_unswitch_single_loop): Call update_ssa.
22439         * tree-ssa.c (verify_ssa): Assert that need_ssa_update_p
22440         returns false.
22441         Call verify_stmts.
22442         (delete_tree_ssa): Assert that need_ssa_update_p returns
22443         false.
22444         * tree-vect-transform.c (vect_transform_loop): Call update_ssa.
22445         * tree-vectorizer.c (allocate_new_names, rename_def_op,
22446         free_new_names): Remove.  Update all users.
22447         (rename_use_op): Call get_current_def.
22448         (rename_variables_in_bb): Do not handle any real or
22449         virtual definition.
22450         (slpeel_update_phis_for_duplicate_loop): Call
22451         get_current_def and set_current_def instead of using
22452         SSA_NAME_AUX.
22453         (slpeel_update_phi_nodes_for_guard2): Reformat comments.
22454         (slpeel_can_duplicate_loop_p): Call need_ssa_update_p,
22455         ssa_names_to_replace and delete_update_ssa.
22456         * doc/invoke.texi: Document --param min-virtual-mappings
22457         and --param virtual-mappings-ratio.
22459 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
22461         * tree-cfg.c (tree_duplicate_bb): Call create_new_def_for
22462         for newly created PHI nodes.
22463         Call create_new_def_for for every new V_MAY_DEF and
22464         V_MUST_DEF on the copied statement.
22465         (struct ssa_name_map_entry): Remove.
22466         (ssa_name_map_entry_hash): Remove.
22467         (ssa_name_map_entry_eq): Remove.
22468         (allocate_ssa_names): Remove.
22469         (rewrite_to_new_ssa_names_def): Remove.
22470         (rewrite_to_new_ssa_names_use): Remove.
22471         (rewrite_to_new_ssa_names_bb): Remove.
22472         (rewrite_to_new_ssa_names): Remove.
22473         (tree_duplicate_sese_region): Remove variables ver,
22474         definitions, phi, ssa_name_map and bi.
22475         Call need_ssa_update_p instead of any_marked_for_rewrite_p.
22476         Call update_ssa.
22477         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
22478         update_ssa instead of rewrite_ssa_into_ssa.
22479         * tree-ssa-loop-manip.c (add_exit_phis_edge): Call
22480         create_new_def_for.
22481         (find_uses_to_rename_use): Add argument 'need_phis'.
22482         (find_uses_to_rename_stmt): Do not scan virtual operands.
22483         (find_uses_to_rename): Only scan PHI nodes for
22484         non-virtual names.
22485         (rewrite_into_loop_closed_ssa): Call update_ssa.
22486         (check_loop_closed_ssa_use): Ignore virtual operands.
22487         (check_loop_closed_ssa_stmt): Likewise.
22488         (verify_loop_closed_ssa): Do nothing if CURRENT_LOOPS is
22489         NULL.
22490         (rename_variables, set_phi_def_stmts): Remove.
22491         (tree_duplicate_loop_to_header_edge): Reformat comment.
22492         Remove variables BB, I and DEFINITIONS.
22493         Call need_ssa_update_p.
22494         Call update_ssa.
22495         (lv_adjust_loop_header_phi): Reformat comment.
22496         * tree-ssanames.c (ssa_names_to_rewrite): Remove.
22497         (marked_for_rewrite_p, any_marked_for_rewrite_p,
22498         mark_for_rewrite, unmark_all_for_rewrite,
22499         marked_ssa_names): Remove.  Update all users.
22500         (release_ssa_name): If VAR has been registered for SSA
22501         updating, do nothing.
22502         * tree-vrp.c (new_ssa_names, old_ssa_names): Remove.
22503         (build_assert_expr_for): Call register_new_name_mapping.
22504         (insert_range_assertions): Update call to update_ssa.
22505         * tree.h (mark_for_rewrite, unmark_all_for_rewrite,
22506         marked_for_rewrite_p, any_marked_for_rewrite_p,
22507         marked_ssa_names): Remove.
22509 2005-04-22  Jeff Law  <law@redhat.com>
22511         * tree-ssa-dom.c (block_defs_stack): Remove, no longer needed.
22512         (restore_currdefs_to_original_value): Likewise.
22513         (register_definitions_for_stmt): Likewise.
22514         (tree_ssa_dominator_optimize): No longer initialize CURRENT_DEF
22515         for each variable.  Do not allocate/free block_defs_stack either.
22516         Do not iterate if we just thread jumps.  Only iterate if the
22517         tree_cleanup_cfg does useful work (temporary).
22518         (dom_opt_initialize_block): No longer push a marker on
22519         BLOCK_DEFS_STACK.
22520         (dom_opt_finalize_block): Removal call to restore currdefs.
22521         Relax restrictions for recording edge equivalences.
22522         (record_equivalences_from_phis): No longer need to track
22523         CURRENT_DEF.
22524         (optimize_stmt): Similarly.
22525         (thread_across_edge): Simplify by removing the requirement that
22526         statements in the block we are threading through must be nops.
22527         (initialize_hash_element): Handle GOTO_EXPR.
22529 2005-04-22  David S. Miller  <davem@davemloft.net>
22531         * sched-vis.c (print_value): Use CONST_DOUBLE_LOW and
22532         CONST_DOUBLE_HIGH.
22533         * config/sparc/sparc.c (sparc_rtx_costs): Likewise, and
22534         fix check on CONST_DOUBLE mode.  It should be VOIDmode
22535         when it is representing an integer.
22537 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
22539         * builtins.c (gimplify_va_arg_expr): Reword comments to avoid
22540         'abort'. Use gcc_assert and gcc_unreachable as appropriate.
22541         * c-format.c (get_constant, decode_format_attr, get_flag_spec,
22542         find_char_info_specifier_index,
22543         find_length_info_modifier_index): Likewise.
22544         * c-typeck.c (composite_type, pop_init_level): Likewise.
22545         * combine.c (cant_combine_insn_p, try_combine): Likewise.
22546         * cse.c (cse_insn): Likewise
22547         * dominance.c (calc_dfs_tree): Likewise
22548         dwarf2out.c (loc_descriptor_from_tree_1,
22549         add_abstract_origin_attribute, force_decl_die,
22550         force_type_die): Likewise
22551         emit-rtl.c (operand_subword_force): Likewise
22552         explow.c (hard_function_value): Likewise
22553         expmed.c (store_bit_field, expand_divmod,
22554         emit_store_flag_force): Likewise
22555         expr.c (emit_move_multi_word, store_expr,
22556         expand_expr_real_1): Likewise
22557         final.c (this_is_asm_operands, shorten_branches, final_scan_insn,
22558         output_operand): Likewise
22559         flow.c (recompute_reg_usage): Likewise
22560         * function.c (assign_stack_temp_for_type, assign_temp,
22561         handle_epilogue_set): Likewise
22562         * genextract.c (main): Likewise
22563         * gimplify.c (mostly_copy_tree_r, gimplify_return_expr,
22564         gimplify_modify_expr_rhs, gimplify_expr): Likewise
22565         * haifa-sched.c (ready_lastpos, ready_remove_first, ready_element,
22566         ready_remove, rm_line_notes, rm_other_notes,
22567         schedule_block): Likewise
22568         mips-tfile.c (copy_object, out_of_bounds): Likewise
22570 2005-04-22 David Edelsohn  <edelsohn@gnu.org>
22572         PR target/20813
22573         * config/rs6000/default64.h (TARGET_DEFAULT): Add MASK_PPC_GFXOPT.
22574         * config/rs6000/rs6000.c (processor_target_table): Rename rs64a to
22575         rs64.  Add MASK_PPC_GFXOPT to powerpc64 and rs64.
22576         (rs6000_init_libfuncs): Set TFmode optabs to xlq names if
22577         TARGET_XL_COMPAT.
22578         * doc/invoke.texi (PowerPC options): Change rs64a to rs64.
22580 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
22582         * lambda-code.c: Define VEC(int,heap), VEC(lambda_loop,heap).
22583         (gcc_tree_to_linear_expression): Convert to heap allocated
22584         vectors.
22585         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
22586         lbv_to_gcc_expression, lle_to_gcc_expression,
22587         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
22588         perfect_nestify): Likewise.
22589         lambda.h (gcc_loopnest_to_lambda_loopnest,
22590         lambda_loopnest_to_gcc_loopnest): Likewise.
22591         tree-loop-linear.c (linear_transform_loops): Likewise.
22593 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
22595         * config/sparc/predicates.md (arith_double_operand): Use
22596         trunc_int_for_mode if HOST_BITS_PER_WIDE_INT >=64.
22597         * config/sparc/sparc.md (movqi, movhi, movsi, movqi): Use gen_int_mode.
22598         (DImode, DFmode constant splitters): Likewise.  Remove code for
22599         TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT < 64.
22600         (logical constant splitters): Use const_int_operand predicate.
22601         (lshrsi3_extend): Remove code for TARGET_ARCH64 &&
22602         HOST_BITS_PER_WIDE_INT < 64.
22604 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
22606         * config/pa/pa.c (legitimize_pic_address): Use gcc_assert and
22607         gcc_unreachable as appropriate.
22608         (force_mode, emit_move_sequence, singlemove_string,
22609         output_move_double, output_fp_move_double, find_addr_reg,
22610         output_block_move, output_block_clear, output_and,
22611         output_64bit_and, output_ior, output_64bit_ior, store_reg_modify,
22612         pa_adjust_cost, pa_issue_rate, print_operand,
22613         output_global_address, output_arg_descriptor, output_cbranch,
22614         output_lbranch, output_bb, output_bvb, output_dbra, output_movb,
22615         output_call): Likewise.
22616         * config/pa/pa.md (call, call_value, sibcall, sibcall_value,
22617         prefetch, prefetch_cc, prefetch_nocc): Likewise.
22619 2005-04-22  Zdenek Dvorak  <dvorakz@suse.cz>
22621         * Makefile.in (LIBGCOV): Add _gcov_interval_profiler,
22622         _gcov_pow2_profiler and _gcov_one_value_profiler.
22623         (tree-profile.o): Add GGC_H and gt-tree-profile.h dependency.
22624         (GTFILES): Add $(srcdir)/tree-profile.c.
22625         * gcov-io.h (__gcov_interval_profiler, __gcov_pow2_profiler,
22626         __gcov_one_value_profiler): Declare.
22627         * gimplify.c (force_gimple_operand): Check whether the statements
22628         should be produced in ssa form.
22629         (force_gimple_operand_bsi): New function.
22630         * libgcov.c (__gcov_interval_profiler, __gcov_pow2_profiler,
22631         __gcov_one_value_profiler): New functions.
22632         * rtl-profile.c (rtl_gen_pow2_profiler): Only measure whether
22633         the profiled value is a power of two or not.
22634         * tree-cfg.c (tree_block_ends_with_condjump_p): Handle empty blocks.
22635         * tree-flow.h (in_ssa_p): Declare.
22636         (force_gimple_operand_bsi): Declare.
22637         * tree-into-ssa.c (in_ssa_p): New variable.
22638         (rewrite_into_ssa): Set in_ssa_p.
22639         * tree-outof-ssa.c (rewrite_out_of_ssa): Set in_ssa_p.
22640         * tree-profile.c: Include ggc.h and gt-tree-profile.h.
22641         (gcov_type_node, tree_interval_profiler_fn, tree_pow2_profiler_fn,
22642         tree_one_value_profiler_fn): New variables.
22643         (tree_init_edge_profiler): Initialize the profiler function decls.
22644         (tree_gen_edge_profiler): Use global gcov_type_node.
22645         (prepare_instrumented_value): New function.
22646         (tree_gen_interval_profiler, tree_gen_interval_profiler,
22647         tree_gen_one_value_profiler): Call the library functions instead of
22648         creating instrumentation code.
22649         * tree.c (build_fn_decl): New function.
22650         * tree.h (build_fn_decl): Declare.
22651         * value-prof.c (rtl_divmod_values_to_profile,
22652         rtl_find_values_to_profile, rtl_mod_pow2_value_transform,
22653         tree_mod_pow2_value_transform, tree_find_values_to_profile):
22654         Do not handle may_be_other and precise values of exponents at pow2
22655         profiler.
22656         (tree_mod_subtract_transform): Reflect that value field of
22657         histogram has changed meaning.
22658         (tree_divmod_values_to_profile): Record the values correctly.
22659         (tree_values_to_profile): Update comment.
22660         * value-prof.h (struct histogram_value_t): Remove pow2 data.
22662 2005-04-22  Joseph S. Myers  <joseph@codesourcery.com>
22664         * varasm.c (do_assemble_alias): Return early if TREE_ASM_WRITTEN
22665         (decl).
22667 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
22669         * config/i386/i386.md (length_immediate): Use gcc_assert or
22670         gcc_unreachable, as appropriate.
22671         (*movsi_1, *movqi_1, reload_outqi, *movdi_1_rex64, *pushsf,
22672         *pushsf_rex64, *truncxfsf2_mixed, *truncxfsf2_i387,
22673         *truncxfdf2_mixed, *truncxfdf2_i387, *adddi_1_rex64,
22674         *adddi_2_rex64, *adddi_3_rex64, *adddi_4_rex64, *adddi_5_rex64,
22675         *addsi_1, addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
22676         *addsi_3_zext, *addsi_4, *addsi_5, *addhi_1_lea, *addhi_1,
22677         *addhi_2, *addhi_3, *addhi_4, *addhi_5, *addqi_1_lea, *addqi_1,
22678         *addqi_1_slp, *addqi_2, *addqi_3, *addqi_4, *addqi_5, addqi_ext_1,
22679         *addqi_ext_1_rex64, *anddi_1_rex64, *andsi_1, *andhi_1,
22680         *ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashlsi3_1, *ashlsi3_1_zext,
22681         *ashlsi3_cmp, *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1,
22682         *ashlhi3_cmp, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
22683         pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64,
22684         pro_epilogue_adjust_stack_rex64_2, prefetch, *prefetch_sse,
22685         *prefetch_sse_rex): Likewise.
22686         * config/i386/predicates.md (x86_64_immediate_operand,
22687         x86_64_zext_immediate_operand, symbolic_operand,
22688         no_seg_address_operand, aligned_operand,
22689         memory_displacement_operand): Likewise.
22690         * config/i386/sse.md (*mov<mode>_internal,
22691         *movv2df_internal): Likewise.
22693 2005-04-22  Jan Hubicka  <jh@suse.cz>
22695         * Makefile.in (ipa.o, ipa-inline.o): New files.
22696         * cgraph.h (cgraph_remove_unreachable_nodes, cgraph_postorder,
22697         cgraph_decide_inlining_incrementally, cgraph_clone_inlined_nodes,
22698         cgraph_mark_inline_edge, cgraph_default_inline_p): Declare.
22699         * cgraphunit.c (cgraph_default_inline_p,
22700         cgraph_decide_inlining_incrementally,  ncalls_inlined,
22701         nfunctions_inlined, initial_insns, overall_insns,
22702         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
22703         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
22704         cgraph_mark_inline, cgraph_check_inline_limits,
22705         cgraph_default_inline_p, cgraph_recursive_inlining_p,
22706         update_callee_keys, lookup_recursive_calls,
22707         cgraph_decide_recursive_inlining, cgraph_set_inline_failed,
22708         cgraph_decide_inlining_of_small_functions, cgraph_decide_inlining,
22709         cgraph_decide_inlining_incrementally, cgraph_gate_inlining,
22710         pass_ipa_inline): Move to ipa-inline.c
22711         (cgraph_postorder, cgraph_remove_unreachable_nodes): Move to ipa.c
22712         * ipa.c: New file.
22713         * ipa-inline.c: New file.
22715 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
22717         * doc/invoke.texi (SPARC options): Document that -mapp-regs
22718         is turned off by default on Solaris.
22720 2005-04-21  Roger Sayle  <roger@eyesopen.com>
22722         * c-common.h (objc_build_method_signature): Update prototype.
22723         * stub-objc.c (objc_build_method_signature): Update the stub
22724         implementation to accept and ignore additional parameter.
22725         * c-parser.c (c_parser_objc_method_decl): Reorgnize to pass
22726         the value of ellipsis to objc_build_method_signature instead
22727         of setting TREE_OVERFLOW on the parms TREE_LIST node.
22729 2005-04-21  Geoffrey Keating  <geoffk@apple.com>
22731         * config/rs6000/rs6000-protos.h (rs6000_emit_sync): New.
22732         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Use
22733         gen_rtx_* not gen_rtx_fmt_*.
22734         (rs6000_emit_vector_select): Likewise.
22735         (rs6000_emit_sync): New.
22736         * config/rs6000/rs6000.md (GPR, INT, INT1): New mode macros.
22737         (larx, stcx, cmp): New mode substitutions.
22738         (UNSPEC_SYNC, UNSPEC_SYNC_OP, UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC,
22739         UNSPEC_ISYNC): New constants.
22740         (rlwinm): Give name.
22741         (memory_barrier, isync, lwsync): New insns.
22742         (sync_compare_and_swap<mode>, sync_lock_test_and_set<mode>): New insn.
22743         (sync_lock_release<mode>): New expander.
22744         (sync_add<mode>, sync_sub<mode>, sync_ior<mode>, sync_and<mode>,
22745         sync_xor<mode>, sync_nand<mode>, sync_old_add<mode>,
22746         sync_old_sub<mode>, sync_old_ior<mode>, sync_old_and<mode>,
22747         sync_old_xor<mode>, sync_old_nand<mode>, sync_new_add<mode>,
22748         sync_new_sub<mode>, sync_new_ior<mode>, sync_new_and<mode>,
22749         sync_new_xor<mode>, sync_new_nand<mode>): New expanders.
22750         (sync_add<mode>_internal, sync_addshort_internal,
22751         sync_sub<mode>_internal, sync_andsi_internal, sync_anddi_internal,
22752         sync_boolsi_internal, sync_booldi_internal, sync_boolc<mode>_internal,
22753         sync_boolc<mode>_internal2, sync_boolcc<mode>_internal): New insns.
22755         * doc/md.texi (Standard Names): sync_compare_and_swap's operand 0
22756         is the memory before, not after, the operation.  Clarify
22757         barrier requirements.
22759 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
22761         * cfghooks.h (struct cfg_hooks): Reword comments to avoid 'abort'.
22762         * lambda.h (lambda_vector_min_nz): Likewise.
22763         * langhooks.h (struct lang_hooks_for_types,
22764         struct lang_hooks): Likewise.
22765         * output.h (assemble_integer, this_is_asm_operands): Likewise.
22766         * tree.h: Likewise.
22767         * vec.h: Likewise.
22768         * tree-flow-inline.h (relink_imm_use): Use gcc_assert.
22770         * optabs.c (prepare_cmp_insn, emit_cmp_and_jump_insns): Reword
22771         comments to avoid 'abort'.  Use gcc_assert as necessary.
22772         * opts.c (common_handle_option): Likewise.
22773         * pretty-print.c (pp_base_format_text): Likewise.
22774         * print-rtl.c (print_rtx): Likewise.
22775         * read-rtl.c (read_rtx_filename, read_rtx_1): Likewise.
22776         * regmove.c (try_auto_increment): Likewise.
22777         * reload.c (find_valid_class, find_reloads_toplev,
22778         find_equiv_reg): Likewise.
22779         * reload1.c (reload, forget_old_reloads_1, function_invariant_p,
22780         merge_assigned_reloads): Likewise.
22781         * tree-inline.c (inline_forbidden_p_1,
22782         estimate_num_insns_1): Likewise.
22783         * tree-optimize.c (execute_todo): Likewise.
22784         * tree-outof-ssa.c (eliminate_phi): Likewise.
22785         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
22786         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Likewise.
22787         * tree-ssa-operands.c (parse_ssa_operands,
22788         get_indirect_ref_operands, create_ssa_artficial_load_stmt): Likewise.
22789         * tree-ssa-pre.c (find_or_generate_expression): Likewise.
22790         * tree-ssanames.c (release_ssa_name): Likewise.
22791         * tree.c (int_bit_position, int_byte_position, tree_low_cst,
22792         walk_tree): Likewise.
22794         * tree-ssa-operands.c (verify_abort): Fold into ..
22795         (verify_imm_links): ... here.
22797 2005-04-21  Richard Henderson  <rth@redhat.com>
22799         * config/alpha/sync.md (sync_new_nand<I48MODE>): Fix constraints
22800         on non-memory operand for previous inversion.
22802 2005-04-21  Devang Patel  <dpatel@apple.com>
22804         PR optimization/20994
22805         * tree-if-conv.c (find_phi_replacement_condition): Avoid generating
22806         x = !(a == b) : p , q;.
22807         (pass_if_conversion): Verify stmts and flow.
22809 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
22811         * optabs.c (gen_conditional_trap): Restore #define.
22813         * alias.c (true_dependence): Remove 'abort' from comments. Use
22814         gcc_assert and gcc_unreachable as appropriate.
22815         (canon_true_dependence): Likewise.
22816         * bb-reorder.c (connect_traces): Likewise.
22817         * c-common.c (c_add_case_label): Likewise.
22818         * c-decl.c (finish_function): Likewise.
22819         * caller-save.c (insert_restore, insert_save): Likewise.
22820         * cfg.c (update_bb_profile_for_threading): Likewise.
22821         * cfganal.c (flow_active_insn_p): Likewise.
22822         * cfgexpand.c (add_reg_br_prob_note): Likewise.
22823         * cfgrtl.c (rtl_redirect_edge_and_branch_force, rtl_split_edge,
22824         cfg_layout_merge_blocks): Likewise.
22825         * ifcvt.c (cond_exec_process_insns, merge_if_block,
22826         find_if_block): Likewise.
22827         * integrate.c (allocate_initial_values): Likewise.
22828         * jump.c (reverse_condition, reverse_condition_maybe_unordered,
22829         swap_condition, unsigned_condition, signed_condition,
22830         mark_jump_label, invert_jump_1, rtx_renumbered_equal_p,
22831         reg_or_subregno): Likewise.
22832         * lambda-code.c (lambda_compute_auxillary_space,
22833         lambda_transform_legal_p): Likewise.
22834         * lambda-mat.c (lambda_matrix_inverse_hard): Likewise.
22835         * langhooks.c (lhd_set_decl_assembler_name, lhd_type_promotes_to,
22836         lhd_incomplete_type_error, lhd_expand_expr,
22837         lhd_types_compatible_p, lhd_tree_size): Likewise.
22838         * lcm.c (create_pre_exit, optimize_mode_switching): Likewise.
22839         * local-alloc.c (update_equiv_regs): Likewise.
22840         * loop-unroll.c (peel_loop_completely
22841         unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
22842         peel_loop_simple, unroll_loop_stupid,
22843         analyze_iv_to_split_insn): Likewise.
22844         * loop.c (gen_prefetch, find_and_verify_loops,
22845         basic_induction_var): Likewise.
22846         * modulo-sched.c (normalize_sched_times, check_nodes_order): Likewise.
22847         * value-prof.c (tree_find_values_to_profile): Likewise.
22848         * varasm.c (named_section, default_assemble_integer,
22849         decode_addr_const): Likewise.
22851 2005-04-21 Alan Modra  <amodra@bigpond.net.au>
22852            Fariborz Jahanian <fjahanian@apple.com>
22854         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Fix size of
22855         portion of argument passed in fpr.
22856         * expr.c (emit_push_insn): Fix computation of 'offset' used to
22857         decide on partial argument save on stack.
22859 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
22861         * config/sparc/predicates.md, config/sparc/sparc.md: Fix
22862         comment typos.
22864 2005-04-21  Jan Hubicka  <jh@suse.cz>
22866         * cgraphunit.c: Include tree-pass.h
22867         (cgraph_decide_recursive_inlining,
22868         cgraph_decide_inlining_of_small_function, cgraph_set_inline_failed,
22869         cgraph_decide_inlining): Dump goes to dump_file.
22870         (cgraph_optimize): Call ipa passes instead of inliner.
22871         (cgraph_gate_inlining, pass_ipa_inline): New.
22872         * tree-optimize.c (all_ipa_passes): New static variable.
22873         (register_one_dump_file): Dead with IPA passes.
22874         (register_dump_files): Likewise.
22875         (init_tree_optimization_passes): Initialize IPA passes.
22876         (execute_todo): Do cgraph dump when asked to, do not dump function body
22877         for IPA pass.
22878         * tree-pass.h (TODO_dump_cgraph): New macro.
22879         (ipa_passes): Declare.
22880         * Makefile.in (cgraphunit.o): Add dependency on cgraphunit.h
22882 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
22884         * config/i386/i386.c (type_natural_mode): Use gcc_unreachable and
22885         gcc_assert instead of abort.
22886         (classify_argument, examine_argument, construct_container,
22887         contains_128bit_aligned_vector_p, ix86_check_movabs,
22888         standard_80387_constant_opcode, standard_80387_constant_rtx,
22889         ix86_initial_elimination_offset, ix86_compute_frame_layout,
22890         pro_epilogue_adjust_stack, ix86_expand_epilogue,
22891         ix86_address_cost, legitimate_address_p, legitimize_pic_address,
22892         legitimize_tls_address, output_pic_addr_const,
22893         i386_output_dwarf_dtprel, put_condition_code, print_reg,
22894         get_some_local_dynamic_name, print_operand, print_operand_address,
22895         output_387_binary_op, emit_i387_cw_initialization,
22896         output_fix_trunc, output_fp_compare, ix86_output_addr_vec_elt,
22897         ix86_expand_clear, ix86_expand_binary_operator,
22898         ix86_expand_unary_operator, ix86_match_ccmode, ix86_cc_mode,
22899         ix86_cc_modes_compatible, ix86_fp_comparison_codes,
22900         ix86_fp_comparison_arithmetics_cost, ix86_expand_fp_compare,
22901         ix86_expand_branch, ix86_expand_setcc,
22902         ix86_expand_carry_flag_compare, ix86_expand_fp_movcc,
22903         ix86_expand_int_addcc, ix86_split_to_parts, ix86_split_long_move,
22904         ix86_expand_movmem, ix86_expand_call, assign_386_stack_local,
22905         memory_address_length, ix86_attr_length_immediate_default,
22906         ix86_attr_length_address_default, ix86_agi_dependant,
22907         x86_initialize_trampoline, ix86_init_mmx_sse_builtins,
22908         ix86_expand_binop_builtin, ix86_force_to_memory,
22909         ix86_secondary_memory_needed, ix86_avoid_jump_misspredicts,
22910         x86_emit_floatuns): Likewise.
22911         * config/i386/netware.c (gen_regparm_prefix,
22912         i386_nlm_strip_name_encoding): Likewise.
22913         * config/i386/winnt.c (i386_pe_mark_dllexport): Likewise.
22915 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
22917         * optabs.c (gen_condiational_trap): Remove #define.
22918         (add_equal_note): Assertify. Remove explicit indirection from
22919         call via function pointer.
22920         (expand_ternary_op, expand_simple_binop, expand_binop,
22921         expand_twoval_unop, expand_twoval_binop,
22922         expand_twoval_binop_libfunc, expand_simple_unop expand_unop,
22923         emit_unop_insn,  emit_no_conflict_block,  prepare_cmp_insn,
22924         prepare_operand emit_cmp_and_jump_insn_1, emit_cmp_and_jump_insns,
22925         prepare_float_lib_cmp, emit_conditional_move,
22926         emit_conditional_add, gen_add2_insn, gen_add3_insn,
22927         have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn,
22928         expand_float, expand_fix, debug_optab_libfuncs, gen_cond_trap,
22929         vector_compare_rtx, expand_vec_cond_expr): Likewise.
22931 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
22933         * vec.h: Update API to separate allocation mechanism from type.
22934         (VEC_safe_grow): New.
22935         * vec.c (calculate_allocation): New.
22936         (vec_gc_o_reserve, vec_heap_o_reserve): Adjust.
22937         (vec_gc_free, vec_heap_free): Remove.
22938         * gengtype-lex.l (DEF_VEC_): Process mult-argument macros.  Adjust.
22939         (VEC): Likewise.
22940         (mangle_macro_name): New.
22941         (struct macro_def): New.
22942         (struct macro): Add multiple argument values.
22943         (macro_expans_end): New.
22944         (push_macro_expansion):  Chain on new macro. Process multiple
22945         args, create follow on expansion. Return follow on argument.
22946         (macro_input): Deal with multiple arguments.
22948         * tree.h: Define VEC(tree,heap) and VEC(tree,gc).
22949         (struct tree_binfo): Adjust.
22950         * basic-block.h: Define VEC(edge,gc).
22951         (struct edge_def): Adjust.
22952         (struct basic_block_def, struct edge_iterator): Likewise.
22953         (ei_container, ei_start_1, ei_last_1): Likewise.
22954         * cfg.c (connect_src, connect_dest): Likewise.
22955         * cfgrtl.c (force_nonfallthru_and_redirect)
22956         * dbxout.c (dbxout_type)
22957         * dwarf2out.c (gen_member_die)
22958         * lambda-code.c: Define VEC(int,gc), VEC(lambda_loop,gc).
22959         (gcc_tree_to_linear_expression): Adjust.
22960         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
22961         lbv_to_gcc_expression, lle_to_gcc_expression,
22962         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
22963         perfect_nestify): Likewise.
22964         * lambda.h (gcc_loopnest_to_lambda_loopnest,
22965         lambda_loopnest_to_gcc_loopnest): Adjust prototypes.
22966         * profile.c (instrument_values): Adjust.
22967         * tree-cfg.c (modified_noreturn_calls): Adjust.
22968         (remove_fallthru_edge): Likewise.
22969         * tree-dump.c (dequeue_and_dump): Adjust.
22970         * tree-flow-inline.h (mark_stmt_modified): Adjust.
22971         * tree-flow.h (modified_noreturn_calls): Adjust.
22972         (tree_on_heap): Remove. (yay!)
22973         (register_new_def): Adjust.
22974         * tree-into-ssa.c: Define VEC(int,heap).
22975         (block_defs_stack): Adjust.
22976         (find_idf, insert_phi_nodes, register_new_def,
22977         rewrite_initialize_block, rewrite_finalize_block,
22978         register_new_update_single, rewrite_update_init_block,
22979         rewrite_update_fini_block, rewrite_blocks,
22980         ssa_rewrite_finalize_block, ssa_register_new_def,
22981         ssa_rewrite_initialize_block, rewrite_ssa_into_ssa): Likewise.
22982         * tree-loop-linear.c (linear_transform_loops): Adjust.
22983         * tree-ssa-alias.c: Define VEC(fieldoff_t,heap).
22984         (push_fields_onto_fieldstack, create_overlap_variables_for): Adjust.
22985         * tree-ssa-dom.c (avail_exprs_stack, block_defs_stack,
22986         stmts_to_rescan, const_and_copies_stack, nonzero_vars_stack,
22987         vrp_variables_stack): Adjust declarations.
22988         (tree_ssa_dominator_optimize): Adjust.
22989         (dom_opt_initialize_block, remove_local_expressions_from_table,
22990         restore_nonzero_vars_to_original_value,
22991         restore_vars_to_original_value,
22992         restore_currdefs_to_original_value, dom_opt_finalize_block,
22993         record_var_is_nonzero, record_cond, record_const_or_copy_1,
22994         optimize_stmt, update_rhs_and_lookup_avail_expr,
22995         lookup_avail_expr, record_range): Likewise.
22996         * tree-ssa-pre.c: Define VEC(basic_block,heap).
22997         (compute_antic_aux): Adjust.
22998         (inserted_exprs, create_expression_by_pieces,
22999         insert_into_preds_of_block, eliminate, mark_operand_necessary,
23000         remove_dead_inserted_code, fini_pre): Likewise.
23001         * tree-ssa-propagate.c (interesting_ssa_edges): Adjust.
23002         (varying_ssa_edges, add_ssa_edge, process_ssa_edge_worklist.
23003         ssa_prop_init): Likewise.
23004         * tree-ssa.c: Define VEC(bitmap,heap).
23005         (verify_name_tags): Adjust.
23006         * value-prof.c (rtl_divmod_values_to_profile): Adjust.
23007         (insn_prefetch_values_to_profile, rtl_find_values_to_profile,
23008         tree_divmod_values_to_profile, tree_find_values_to_profile,
23009         value_profile_transformations): Likewise.
23010         * value-prof.h: Define VEC(histogram_value,heap).
23011         * varasm.c: Remove alias_pair pointer typedef, define
23012         VEC(alias_pair,gc).
23013         (finish_aliases_1, finish_aliases_2, assemble_alias): Adjust.
23015         * config/pa/pa.c (typedef extern_symbol): Typedef the structure,
23016         not a pointer to it.  Create an object vector.
23017         (extern_symbols): Turn into an object vector.
23018         (pa_hpux_asm_output_external, pa_hpux_file_end): Adjust.
23020 2005-04-21  Sebastian Pop  <pop@cri.ensmp.fr>
23022         PR/20742
23023         * Makefile.in (tree-chrec.o): Depend on params.h.
23024         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): New parameter with
23025         default value 20.
23026         * tree-chrec.c: Depend on params.h.  Replace build with buildN,
23027         and fold build with fold_buildN.
23028         (chrec_fold_plus_1): Fail with a chrec_don_know when the size of
23029         the expression exceeds PARAM_SCEV_MAX_EXPR_SIZE.
23030         (tree_contains_chrecs): Compute an estimation of the size of the
23031         given expression.
23032         * tree-chrec.h (tree_contains_chrecs): Modify its declaration.
23033         (tree_does_not_contain_chrecs): Update the use of tree_contains_chrecs.
23034         * tree-scalar-evolution.c (simple_iv): Ditto.
23035         * doc/invoke.texi (scev-max-expr-size): Documented.
23037 2005-04-21  Richard Sandiford  <rsandifo@redhat.com>
23039         * config.gcc (*-*-darwin*): Add darwin.opt to $extra_options.
23040         (i[34567]86-pc-msdosdjgpp*): Likewise i386/djgpp.opt.
23041         (i[34567]86-*-lynxos*, powerpc-*-lynxos*): Likewise lynx.opt.
23042         (i[34567]86-*-sco3.2v5*): Likewise i386/sco5.opt.
23043         (i[34567]86-*-pe, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
23044         (i[34567]86-*-uwin*): Likewise i386/cygming.opt.
23045         * config/darwin.h (darwin_one_byte_bool, darwin_fix_and_continue)
23046         (darwin_fix_and_continue_switch, SUBTARGET_OPTIONS): Delete.
23047         * config/darwin.c (darwin_one_byte_bool, darwin_fix_and_continue)
23048         (darwin_fix_and_continue_switch): Delete.
23049         * config/lynx.h (SUBTARGET_OS_LYNX_SWITCHES): Delete.
23050         (SUBTARGET_SWITCHES): Delete.
23051         * config/i386/i386.h (target_flags, MASK_80387, MASK_RTD)
23052         (MASK_ALIGN_DOUBLE, MASK_SVR3_SHLIB, MASK_IEEE_FP, MASK_FLOAT_RETURNS)
23053         (MASK_NO_FANCY_MATH_387, MASK_OMIT_LEAF_FRAME_POINTER)
23054         (MASK_STACK_PROBE, MASK_NO_ALIGN_STROPS, MASK_INLINE_ALL_STROPS)
23055         (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS, MASK_MMX)
23056         (MASK_SSE, MASK_SSE2, MASK_SSE3, MASK_3DNOW, MASK_3DNOW_A)
23057         (MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT)
23058         (MASK_TLS_DIRECT_SEG_REFS, MASK_NO_RED_ZONE, TARGET_80387)
23059         (TARGET_RTD, TARGET_ALIGN_DOUBLE, TARGET_PUSH_ARGS)
23060         (TARGET_ACCUMULATE_OUTGOING_ARGS, TARGET_SVR3_SHLIB, TARGET_IEEE_FP)
23061         (TARGET_128BIT_LONG_DOUBLE, TARGET_NO_FANCY_MATH_387)
23062         (TARGET_USE_FANCY_MATH_387, TARGET_OMIT_LEAF_FRAME_POINTER)
23063         (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Delete.
23064         (TARGET_FLOAT_RETURNS_IN_80387): Make an alias of TARGET_FLOAT_RETURNS.
23065         (TARGET_64BIT): Undef before redefining.
23066         (TARGET_TLS_DIRECT_SEG_REFS, TARGET_STACK_PROBE)
23067         (TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS, TARGET_SSE)
23068         (TARGET_SSE2, TARGET_SSE3, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A)
23069         (TARGET_RED_ZONE, TARGET_USE_MS_BITFIELD_LAYOUT, TARGET_SWITCHES)
23070         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS)
23071         (ix86_fpmath_string, ix86_tls_dialect_string, ix86_cmodel_string)
23072         (ix86_asm_string, ix86_regparm, ix86_regparm_string)
23073         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
23074         (ix86_debug_arg_string, ix86_debug_addr_string)
23075         (ix86_align_loops_string, ix86_align_jumps_string)
23076         (ix86_align_funcs_string): Delete.
23077         * config/i386/cygming.h (MASK_NOP_FUN_DLLIMPORT)
23078         (TARGET_NOP_FUN_DLLIMPORT, SUBTARGET_SWITCHES): Delete.
23079         * config/i386/djgpp.h (MASK_BNU210, SUBTARGET_SWITCHES): Delete.
23080         (SUBTARGET_OVERRIDE_OPTIONS): Check TARGET_BNU210.
23081         * config/i386/lynx.h (SUBTARGET_SWITCHES): Delete.
23082         * config/i386/sco5.h (MASK_COFF, TARGET_ELF)
23083         (SUBTARGET_SWITCHES): Delete.
23084         * config/i386/i386.c (ix86_debug_arg_string): Delete.
23085         (ix86_debug_addr_string): Delete.
23086         (ix86_cmodel_string, ix86_asm_string, ix86_tls_dialect_string)
23087         (ix86_fpmath_string, ix86_regparm_string, ix86_regparm)
23088         (ix86_align_loops_string, ix86_align_jumps_string)
23089         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
23090         (ix86_align_funcs_string): Make static.
23091         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
23092         (ix86_handle_option): New function.
23093         (TARGET_USE_MS_BITFIELD_LAYOUT): Delete.
23094         (ix86_ms_bitfield_layout_p): Check TARGET_MS_BITFIELD_LAYOUT.
23095         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove handling
23096         of darwin_fix_and_continue_switch.
23097         (darwin_one_byte_bool): Delete.
23098         * config/rs6000/lynx.h (EXTRA_SUBTARGET_SWITCHES): Delete.
23099         * config/rs6000/rs6000.c (rs6000_override_options): Update assignment
23100         to darwin_one_byte_bool.
23101         * config/darwin.opt, config/lynx.opt, config/i386/cygming.opt,
23102         * config/i386/djgpp.opt, config/i386/i386.opt,
23103         * config/i386/sco5.opt: New files.
23105 2005-04-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
23107         * config/sparc/sparc.c (reg_or_0_operand, const1_operand,
23108         fp_zero_operand, fp_register_operand, intreg_operand,
23109         fcc_reg_operand, fcc0_reg_operand, icc_or_fcc_reg_operand,
23110         call_operand, call_operand_address, tgd_symbolic_operand,
23111         tld_symbolic_operand, tie_symbolic_operand, tle_symbolic_operand,
23112         symbolic_operand, symbolic_memory_operand, label_ref_operand,
23113         sp64_medium_pic_operand, data_segment_operand,
23114         text_segment_operand, splittable_symbolic_memory_operand,
23115         reg_or_nonsymb_mem_operand, splittable_immediate_memory_operand,
23116         eq_or_neq, normal_comp_operator, noov_compare_op,
23117         noov_compare64_op, v9_regcmp_op, extend_op, cc_arithop,
23118         cc_arithopn, arith_operand, arith_4096_operand, arith_add_operand,
23119         const64_operand, const64_high_operand, arith11_operand,
23120         arith10_operand, arith_double_operand, arith_double_4096_operand,
23121         arith_double_add_operand, arith11_double_operand,
23122         arith10_double_operand, small_int, small_int_or_double,
23123         uns_small_int, uns_arith_operand, clobbered_register,
23124         input_operand, compare_operand): Delete.
23125         (sparc_emit_set_const32): Use predicates in assertion.  Remove special
23126         code for TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT != 64.
23127         (sparc_emit_set_const64): Call gcc_unreachable if H_B_P_W_I == 32.
23128         (GEN_HIGHINT64, GEN_INT64): Delete.
23129         (sparc_emit_set_safe_HIGH64, gen_safe_SET64, gen_safe_OR64,
23130         gen_safe_XOR64): Adjust for above deletion.
23131         (sparc_emit_set_const64): Support only H_B_P_W_I == 64 and CONST_INTs.
23132         Use 'unsigned HOST_WIDE_INT' instead of 'long' for bitmask.
23133         (legitimate_constant_p): Use const_zero_operand instead.
23134         (sparc_extra_constraint_check): Likewise.
23135         * config/sparc/sparc.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'O'.
23136         (PREFERRED_RELOAD_CLASS): Use const_zero_operand.
23137         (PREDICATE_CODES): Delete.
23138         * config/sparc/sparc.md: Include predicates.md.
23139         (All patterns): Adjust for new predicate names.
23140         (cmpdi, cmpdi_sp64): Use arith_operand predicate.
23141         (movhi_const64_special, movsi_const64_special): Add 'K' constraint.
23142         (movdi): Use general_operand predicate.
23143         (movdi_sp64_dbl): Delete.
23144         (movdi_const64_special): Add 'N' constraint.
23145         (movdicc): Use arith10_operand predicate.
23146         (movdi_cc_sp64, movdi_cc_sp64_trunc): Use arith11_operand predicate.
23147         (movdi_cc_reg_sp64): Use arith10_operand predicate.
23148         (movdi_cc_reg_sp64_trunc): Delete.
23149         (cmp_zero_extract, cmp_zero_extract_sp64): Use small_int_operand.
23150         (adddi3_sp64, cmp_ccx_plus, cmp_ccx_plus_set): Use arith_operand.
23151         (subdi3_sp32): Delete.
23152         (subdi3_insn_sp32): Change to define_insn_and_split.
23153         (subdi3_sp64, cmp_minus_ccx, cmp_minus_ccx_set): Use arith_operand.
23154         (muldi3, muldi3_sp64, muldi3_v8plus): Likewise.
23155         (smulsi3_highpart_v8plus, const_smulsi3_highpart_v8plus,
23156         umulsi3_highpart_v8plus, const_umulsi3_highpart_v8plus): Use
23157         small_int_operand predicate.
23158         (divdi3, udivdi3): Use arith_operand predicate.
23159         (udivsi3, udivsi3_sp32, udivsi3_sp64): Use nonimmediate_operand.
23160         (and<V64I>3_sp64, ior<V64I>3_sp64, xor<V64I:mode>3_sp64,
23161         xor_not_<V64I:mode>_sp64) : Use arith_operand predicate.
23162         (xordi3_sp64_dbl): Delete.
23163         (cmp_ccx_arith_op, cmp_ccx_arith_op_set, cmp_ccx_xor_not,
23164         cmp_ccx_xor_not_set, cmp_ccx_arith_op_not, cmp_ccx_arith_op_not_set,
23165         cmp_ccx_neg, cmp_ccx_set_neg, one_cmpl<V64I>2_sp64, cmp_ccx_not,
23166         cmp_ccx_set_not): Use arith_operand predicate.
23167         (ashrsi3_extend2, lshrsi3_extend2 et al.): Use small_int_operand.
23168         * config/sparc/predicates.md: New file.
23170 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
23172         PR tree-optimization/14846
23173         * fold-const.c (fold_single_bit_test_into_sign_test): New,
23174         split out from ...
23175         (fold_single_bit_test): ... here.
23176         (fold_binary): Call fold_single_bit_test_into_sign_test
23177         instead of fold_single_bit_test.
23179 2005-04-20  James E Wilson  <wilson@specifixinc.com>
23181         PR c++/20805
23182         * dwarf2out.c (gen_variable_die): Don't emit a specification if this
23183         is another declaration.
23185 2005-04-21  Hans-Peter Nilsson  <hp@axis.com>
23187         * config/cris/predicates.md: New file.
23188         * config/cris/cris-protos.h (cris_store_multiple_op_p)
23189         (cris_movem_load_rest_p): Declare.
23190         * config/cris/cris.c (cris_store_multiple_op): Return bool, not int.
23191         (cris_movem_load_rest_p): Ditto.  Globalize.
23192         (cris_bdap_operand, cris_bdap_biap_operand,
23193         cris_orthogonal_operator, cris_commutative_orth_op,
23194         cris_operand_extend_operator,
23195         cris_additive_operand_extend_operator, cris_extend_operator,
23196         cris_plus_or_bound_operator, cris_mem_op,
23197         cris_general_operand_or_symbol,
23198         cris_general_operand_or_gotless_symbol,
23199         cris_general_operand_or_plt_symbol, cris_mem_call_operand,
23200         cris_load_multiple_op): Remove predicate functions.
23201         (cris_symbol, cris_gotless_symbol) <case UNSPEC>: Return 0, don't
23202         abort, for UNSPECs other than CRIS_UNSPEC_PLT.
23203         * config/cris/cris.h (PREDICATE_CODES): Don't define.
23204         * config/cris/cris.md: Include predicates.md.
23205         ("call", "call_value"): Generate CONSTs of Pmode, not VOIDmode.
23207 2005-04-20  Ian Lance Taylor  <ian@airs.com>
23209         * c-common.def: Remove STMT_EXPR (moved to cp/cp-tree.def).
23210         * c-common.h (STMT_EXPR_STMT): Don't define.
23211         (STMT_EXPR_NO_SCOPE): Don't define.
23212         * c-dump.c (c_dump_tree): Don't handle STMT_EXPR.
23213         * c-pretty-print.c (pp_c_primary_expression): Likewise.
23214         (pp_c_expression): Likewise.
23216 2005-04-20  Richard Henderson  <rth@redhat.com>
23218         PR target/21100
23219         * config/i386/mmx.md (push<MMXMODE>1): Fix predicate thinko.
23221 2005-04-20  Jeff Law  <law@redhat.com>
23223         * reload1.c (reload): Ignore equivalences between pseudos and
23224         read only memory.
23226 2005-04-20  Joseph S. Myers  <joseph@codesourcery.com>
23228         PR c/12913
23229         * c-tree.h (struct c_label_list): Update comment.
23230         (struct c_label_context): Rename to struct c_label_context_se.
23231         (label_context_stack): Rename to label_context_stack_se.
23232         (C_DECL_UNJUMPABLE_VM, C_DECL_UNDEFINABLE_VM, struct
23233         c_label_context_vm, label_context_stack_vm, c_begin_vm_scope,
23234         c_end_vm_scope): New.
23235         (C_DECL_DECLARED_BUILTIN, C_DECL_USED): Use FUNCTION_DECL_CHECK.
23236         * c-decl.c (pop_scope): Call c_end_vm_scope.
23237         (pushdecl): Call c_begin_vm_scope for variably modified
23238         declarations.
23239         (define_label): Check for jumping into scope of identifier with
23240         variably modified type.  Push label on stack for those defined at
23241         current context of identifiers with variably modified type.
23242         (start_function): Create stack level for context of identifiers
23243         with variably modified type.
23244         (finish_function): Pop stack level for context of identifiers with
23245         variably modified type.
23246         * c-typeck.c (label_context_stack): Rename to
23247         label_context_stack_se.
23248         (label_context_stack_vm, c_begin_vm_scope, c_end_vm_scope): New.
23249         (c_finish_goto_label): Check for jumping into scope of identifier
23250         with variably modified type.  Push label on stack for those jumped
23251         to from current context of identifiers with variably modified
23252         type.
23253         (struct c_switch): Add blocked_vm.
23254         (c_start_case): Initialize blocked_vm.
23255         (do_case): Check blocked_vm.
23256         (c_finish_case): Add comment.
23257         (c_begin_stmt_expr, c_finish_stmt_expr): Update for renamed
23258         variable label_context_stack.
23260 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
23262         * tree-ssa-phiopt.c (tree_ssa_phi_opt): Update calls to
23263         conditional_replacement, value_replacement, abs_replacement,
23264         minmax_replacement.
23265         (replace_phi_edge_with_variable): Remove argument BB.
23266         (conditional_replacement, value_replacement,
23267         minmax_replacement, abs_replacement): Remove argument PHI_BB.
23268         Update a call to replace_phi_edge_with_variable.
23270         * tree-ssa-phiopt.c: Fix comments.
23272 2005-04-20  Michael Matz  <matz@suse.de>
23274         PR20973
23275         * reload.c (push_reload, find_dummy_reload): Check for uninitialized
23276         pseudos.
23278 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
23280         * tree-ssa-phiopt.c: Fix comment typos.
23282         PR tree-optimization/21116
23283         * tree-ssa-phiopt.c: Fix a typo.
23285 2005-04-19  Richard Henderson  <rth@redhat.com>
23287         * builtins.c (expand_builtin_sync_operation): Revert last change.
23288         * optabs.c (expand_bool_compare_and_swap): Compare vs old value,
23289         not vs new value.
23290         (expand_compare_and_swap_loop): Likewise.
23291         (expand_sync_operation): Remove fallback from NAND to AND; invert
23292         memory operand when expanding from cmpxchg.
23293         (expand_sync_fetch_operation): Likewise.
23294         * doc/extend.texi (Atomic Builtins): Fix docs for nand and
23295         compare-and-swap.
23297         * config/alpha/alpha.c (alpha_split_atomic_op): Invert memory operand
23298         when implementing NAND.  Fix double-add for AFTER.
23299         * config/alpha/sync.md (sync_nand<I48MODE>): Invert memory operand.
23300         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
23301         (sync_compare_and_swap<I48MODE>): Fix compare vs zero.  Return old
23302         memory value.
23303         (sync_lock_test_and_set<I48MODE>): Remove extra label and last
23304         memory barrier.
23306         * config/i386/sync.md (sync_compare_and_swap<IMODE>): Fix pattern
23307         to return old memory value.
23308         (sync_compare_and_swap_cc<IMODE>): Likewise.
23310         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Early
23311         return pre-reload.  Don't consider output or anti dependencies.
23312         * config/ia64/sync.md (IMODE): New.
23313         (modesuffix): Add QI and HI.
23314         (memory_barrier): Simplify expansion.
23315         (sync_compare_and_swap<IMODE>): Use IMODE, not I48MODE.
23316         (cmpxchg_acq_<IMODE>): Likewise.
23317         (sync_lock_test_and_set<IMODE>): Likewise.
23318         (sync_lock_release<IMODE>): Likewise.
23320 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
23322         * fold-const.c (fold_binary): Fold ~(X ^ Y) to ~X ^ Y or X ^ ~Y if
23323         ~X or ~Y simplify.
23325 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
23327         * fold-const (fold_binary):  Fold ~X ^ ~ Y to X ^ Y.
23329 2005-04-20  Michael Pogue  <michael.pogue@sun.com>
23330             Joseph S. Myers  <joseph@codesourcery.com>
23332         * c.opt (Wint-to-pointer-cast, Wpointer-to-int-cast): New options.
23333         * c-typeck.c (build_c_cast): Check these options.
23334         * doc/invoke.texi: Document these options.
23336 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
23338         * tree-ssa-phiopt.c: Update a comment about the pass.
23340 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
23342         * tree-ssa-phiopt.c, config/arm/arm.c, config/fr30/fr30.md,
23343         config/mcore/mcore.c: Fix comment typos.
23345 2005-04-19  Daniel Jacobowitz  <dan@codesourcery.com>
23347         * Makefile.in (libgcc.mk): Pass GCC_FOR_TARGET.
23348         * mklibgcc.in: Use $GCC_FOR_TARGET instead of ./xgcc.
23350 2005-04-19  Paul Brook  <paul@codesourcery.com>
23352         * config/arm/arm.c (arm_init_libfuncs): Clear mod optabs.
23354 2005-04-19  Andrew Haley  <aph@redhat.com>
23356         PR java/21022
23357         * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before
23358         looking at a field's bitpos.
23360 2005-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23362         * system.h (fopen, fdopen, freopen): Define these to the unlocked
23363         libiberty functions.
23365 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
23367         PR tree-optimization/21096
23368         * tree-ssa-copy.c (fini_copy_prop): Free cached_last_copy_of.
23370 2005-04-19  Alan Modra  <amodra@bigpond.net.au>
23372         PR target/21098
23373         * config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
23374         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.
23376 2005-04-19  Alexandre Oliva  <aoliva@redhat.com>
23378         * tree-cfg.c (dump_function_to_file): Use cfun info only if it
23379         refers to the function being dumped.
23381 2005-04-18  Daniel Jacobowitz  <dan@codesourcery.com>
23383         * varasm.c (assemble_start_function): Remove reset of in_section.
23385 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
23387         PR tree-optimization/21085
23388         * fold-const (fold_binary): Don't change X % -C to X % C if C has
23389         overflowed.
23391 2005-04-19  Ben Elliston  <bje@au.ibm.com>
23393         * doc/invoke.texi (Optimize Options): Refer to the correct
23394         optimisation flag -ftree-dominator-opts, not -ftree-dom.
23396 2005-04-18  Christopher Jaillet <christophe.jaillet@wanadoo.fr>
23398         * config/rs6000/rs6000.c (machopic_output_stub):  Increase
23399         alloca argument to be big enough.
23401 2005-04-18  Alexandre Oliva  <aoliva@redhat.com>
23403         PR middle-end/21049
23404         * tree-cfg.c (dump_function_to_file): Do not crash if cfun or
23405         cfun->cfg are NULL.
23407 2005-04-18  Tom Tromey  <tromey@redhat.com>
23409         * cgraphunit.c (cgraph_finalize_compilation_unit): Fix a comment
23410         typo.
23412 2005-04-18  Richard Henderson  <rth@redhat.com>
23414         * config/alpha/alpha.c (alpha_split_atomic_op): New.
23415         (alphaev5_insn_pipe): Add LD_L, ST_C, MB types.
23416         (alphaev4_insn_pipe): Likewise.  Correct IST and LDSYM pipes.
23417         * config/alpha/alpha-protos.h: Update.
23418         * config/alpha/alpha.md (UNSPECV_MB, UNSPECV_LL, UNSPECV_SC): New.
23419         (UNSPECV_ATOMIC, UNSPECV_CMPXCHG, UNSPECV_XCHG): New.
23420         (attr type): Add ld_l, st_c, mb.
23421         (andsi_internal, andnotsi3, iorsi_internal, one_cmplsi_internal,
23422         iornotsi3, xorsi_internal, xornotsi3): New.
23423         * config/alpha/ev4.md (ev4_ld): Add ld_l.
23424         (ev4_ist_c, ev4_mb): New.
23425         * config/alpha/ev5.md (ev5_st): Add st_c, mb.
23426         (ev5_ld_l): New.
23427         * config/alpha/ev6.md (ev6_ild): Add ld_l.
23428         (ev6_ist): Add st_c.
23429         (ev6_mb): New.
23430         * config/alpha/sync.md: New file.
23432 2005-04-18  Richard Henderson  <rth@redhat.com>
23434         * builtins.c (expand_builtin_sync_operation): Fold nand to and
23435         for constants.
23437         * optabs.c (expand_sync_operation): Fix typo expanding nand to and.
23439 2005-04-18  Devang Patel  <dpatel@apple.com>
23441         * config/rs6000/atlivec.md (mulv4si3): New pattern.
23443 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
23445         PR tree-optimization/20922
23446         * fold-const.c (fold_binary): Fold X - c > X and X + c < X to false.
23447         Fold X + c >= X and fold X - c <= X to true.
23449 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
23451         * config/ia64/unwind-ia64.c (emergency_reg_state_free): Make an
23452         unsigned int.
23453         (emergency_labeled_state_free): Likewise.
23455 2005-04-18  Nick Clifton  <nickc@redhat.com>
23457         * config/h8300/h8300.md (jump): Remove prescan parameter from
23458         calls to final_scan_insn.
23460         * config/arc/arc.c (arc_output_function_epilogue): Remove prescan
23461         parameter from calls to final_scan_insn.
23463         * config.gcc (m68hc12): Use the m68hc11.opt file for target
23464         specific options.
23465         (v850e, v850e1): Use the v850.opt file for target specific
23466         options.
23468 2005-04-18  Kazu Hirata  <kazu@cs.umass.edu>
23470         PR tree-optimization/21001
23471         * tree-optimize.c (init_tree_optimization_passes): Move the
23472         first pass_forwprop immediately before pass_vrp.
23474 2005-04-17  Ian Lance Taylor  <ian@airs.com>
23476         * c-common.def (SIZEOF_EXPR, ARROW_EXPR, ALIGNOF_EXPR): Remove.
23477         * c-common.c (c_sizeof_or_alignof_type): Change second parameter
23478         from enum tree_code op to bool is_sizeof.
23479         * c-common.h (c_sizeof_or_alignof_type): Update declaration.
23480         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
23481         * c-pretty-print.c (pp_c_postfix_expression): Remove ARROW_EXPR
23482         case.
23483         (pp_c_unary_expression): Remove SIZEOF_EXPR and ALIGNOF_EXPR
23484         cases.
23485         (pp_c_expression): Remove ARROW_EXPR, SIZEOF_EXPR, and
23486         ALIGNOF_EXPR cases.
23488 2005-04-17  Ian Lance Taylor  <ian@airs.com>
23490         * system.h: Poison DONT_ACCESS_GBLS_AFTER_EPILOGUE.
23492 2005-04-17  Richard Henderson  <rth@redhat.com>
23494         * config/alpha/alpha.c (va_list_skip_additions): Only define if
23495         TARGET_ABI_OSF.
23496         (TARGET_STDARG_OPTIMIZE_HOOK): Likewise.
23497         (alpha_stdarg_optimize_hook): Likewise.  Allow for one more round
23498         of indirection through ssa names while looking for the gpr counter
23499         field.
23500         (alpha_setup_incoming_varargs) <TARGET_ABI_OSF>: Make use of the
23501         saved va_list_gpr_size and va_list_fpr_size.
23503 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
23505         * tree-vrp.c (compare_values): Check that VAL1 and VAL2 are
23506         both pointers or both integers.
23508         * tree-vrp.c (maybe_add_assert_expr): Don't assert
23509         ASSERT_EXPRs for single-use variable.
23511         * tree-into-ssa.c: Fix a comment typo.
23513 2005-04-17  Richard Sandiford  <rsandifo@redhat.com>
23515         * config/mips/iris6.h (DRIVER_SELF_SPECS): Check -march as well as
23516         -mipsN before forcing a default of -mips2.
23518 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
23520         * predict.h (IS_TAKEN): Remove.
23521         * rtl.h (NOTE_PREDICTION): Likewise.
23523         * modulo-sched.c (CFG_HOOKS): Remove.
23525         * c-parser.c (N_C_TTYPES): Remove.
23527         * tree-flow-inline.h (get_stmt_operands): Remove.
23528         * lambda-code.c, tree-ssa-loop-unswitch.c,
23529         tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa-propagate.c,
23530         tree-ssa-sink.c, tree-ssa.c, tree-tailcall.c,
23531         tree-vect-transform.c, tree-vectorizer.c, tree-vrp.c): Remove
23532         calls to get_stmt_operands.
23533         * doc/tree-ssa.texi: Don't mention get_stmt_operands.
23535 2005-04-17  Richard Henderson  <rth@redhat.com>
23537         PR target/20375
23538         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Advance a copy
23539         of CUMULATIVE_ARGS past the last named argument.
23540         (alpha_va_start): Expect pretend_args_size only if strictly less than
23541         6 named arguments.
23543 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
23545         PR middle-end/21024
23546         * builtins.c (expand_builtin_strcat): Convert the result of
23547         strlen to the right type.
23548         * fold-const.c (fold_binary) <PLUS_EXPR>: Use fold_convert to
23549         avoid creating type mismatches.
23550         <GE_EXPR>: Pass op0 and op1 to fold_build2 to avoid creating
23551         type mismatches.
23553         * c-lex.c (WCHAR_TYPE_SIZE, WCHAR_BYTES): Remove.
23555 2005-04-16  Richard Henderson  <rth@redhat.com>
23557         PR target/21051
23558         * builtins.c (expand_builtin) <BUILT_IN_BOOL_COMPARE_AND_SWAP_*>:
23559         Use the mode of boolean_type_node when the user doesn't provide one.
23560         * config/ia64/sync.md (sync_lock_release<I48MODE>): Use operand 1.
23562 2005-04-16  Alexandre Oliva  <aoliva@redhat.com>
23564         PR target/20126
23565         * loop.c (loop_givs_rescan): Handle non-replaceable (plus (reg)
23566         (const)).
23568         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Fix typo in
23569         comment.
23571 2005-04-16  Roger Sayle  <roger@eyesopen.com>
23572             Steven Bosscher  <stevenb@suse.de>
23574         * fold-const.c (fold_binary_to_constant): Delete obsolete comment.
23575         (fold_unary_to_constant): Likewise.
23577 2005-04-16  Kazu Hirata  <kazu@cs.umass.edu>
23579         * basic-block.h: Adjust the value of PROP_SCAN_DEAD_STORES,
23580         PROP_ASM_SCAN.
23582 2005-04-16  Gerald Pfeifer  <gerald@pfeifer.com>
23584         * doc/install.texi (Specific): Avoid using asterisks in @anchor
23585         names related to target triplets.
23586         Remove i?86-*-esix from platform directory.
23587         Remove powerpc-*-eabiaix from platform directory.
23589 2005-04-16  Joseph S. Myers  <joseph@codesourcery.com>
23591         PR middle-end/20491
23592         * config/ia64/ia64.c (rtx_needs_barrier): Recurse instead of
23593         falling through from SUBREG case to REG.
23595 2005-04-15  Roger Sayle  <roger@eyesopen.com>
23597         * fold-const.c (fold_relational_hi_lo): Delete function and prototype.
23598         (fold_binary): Update comment mentioning fold_relational_hi_lo.
23599         (fold_binary_to_constant): Simplify using fold_binary.
23600         (fold_unary_to_constant): Likewise, simplify using fold_unary.
23602 2005-04-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
23604         * gthr-posix.c (pthread_cancel): Define.
23605         (pthread_mutexattr_init): Likewise.
23606         (pthread_mutexattr_settype): Likewise.
23607         (pthread_mutexattr_destroy): Likewise.
23609 2005-04-15  David S. Miller  <davem@davemloft.net>
23611         PR target/20673
23612         * config/sparc/sparc.h (sparc_hard_reg_printed): Mark as GTY(()).
23614 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
23616         PR tree-optimization/21031
23617         * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): New.
23618         (forward_propagate_into_cond_1): Call it.  Forward propagate
23619         integer-integer casts into COND_EXPRs.
23621 2005-04-15  Dave Korn  <dave.korn@artimi.com>
23623         * gcc.c (default_compilers): Clarify obscure error message when
23624         reading from standard input.
23626 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
23628         * basic-block.h (PROP_EQUAL_NOTES): Remove.
23629         * flow.c (propagate_one_insn): Don't use PROP_EQUAL_NOTES.
23631         * tree-ssa-alias.c (init_alias_info): Remove a call to
23632         get_stmt_operands.
23634 2005-04-15  Andrew MacLeod  <amacleod@redhat.com>
23636         * tree-vect-analyze.c (vect_stmt_relevant_p): Process immediate uses
23637         of non-virtual PHI nodes like we use to.
23639 2005-05-15  Paolo Bonzini  <bonzini@gnu.org>
23641         * genattrtab.c (ATTR_EQ_ATTR_P): Remove.
23642         (attr_copy_rtx): Do not use it.
23644 2005-04-15  Andrew Macleod  <amacleod@redhat.com>
23646         * doc/tree-ssa.texi: Grammer/abbreviation updates.
23648 2005-04-15  Diego Novillo  <dnovillo@redhat.com>
23650         * tree-vect-transform.c (vectorizable_store): Mark necessary
23651         objects in the vectorized store needing renaming.  Update the
23652         SSA graph for V_MAY_DEF operands in the original store.
23654 2005-04-14  Daniel Berlin <dberlin@dberlin.org>
23656         * tree-ssa-pre.c (compute_avail): It's okay to have
23657         TREE_INVARIANT's here, and value number the resulting expressions.
23658         (create_expression_by_pieces): Make sure operands that were
23659         min_invariant when we started, stay that way.
23661 2005-04-15  David Edelsohn  <edelsohn@gnu.org>
23663         * doc/install.texi (*-ibm-aix*): Add comment about system limits.
23665 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
23667         PR tree-optimization/20936.
23668         * tree-ssa-ccp.c (visit_assignment): Fix a typo.
23670 2005-04-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
23672         * doc/invoke.texi: Fix typos.
23673         * doc/md.texi: Likewise.
23674         * doc/rtl.texi: Likewise.
23675         * doc/sourcebuild.texi: Likewise.
23676         * doc/tm.texi: Likewise.
23678 2005-04-15  Uros Bizjak  <uros@kss-loka.si>
23680         PR tree-optimization/21004
23681         * convert.c (convert_to_integer): Convert ceilf, ceill, floorf
23682         and floorl in c99 mode only.
23683         * builtins.c (expand_builtin_int_roundingfn): Assert that
23684         fallback_fndecl is not NULL_TREE.
23686 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
23688         * cfgrtl.c (purge_all_dead_edge): Remove an unused argument.
23689         * basic-block.h: Update the prototype for
23690         purge_all_dead_edges.
23691         * cfgexpand.c (tree_expand_cfg): Update a call to
23692         purge_all_dead_edges.
23693         * combine.c (combine_instructions): Likewise.
23694         * passes.c (rest_of_handle_old_regalloc, rest_of_handle_cse,
23695         rest_of_handle_cse2, rest_of_handle_gcse,
23696         rest_of_handle_postreload): likewise.
23698 2005-04-15  Alexandre Oliva  <aoliva@redhat.com>
23700         PR middle-end/20739
23701         * gimplify.c (gimplify_addr_expr): Compensate for removal of
23702         e.g. cv-qualification conversions.
23704 2005-04-14  Mike Stump  <mrs@apple.com>
23706         * config/darwin-c.c (framework_construct_pathname): We must
23707         find all headers of a framework in the first instance of it
23708         found in the seach path.
23710 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
23712         PR tree-optimization/21021
23713         * tree-vrp.c (compare_values): Work around a bug in the front
23714         end that produces a comparison of mismatched types.
23716 2004-04-14  Richard Henderson  <rth@redhat.com>
23718         * config/ia64/ia64.h (enum fetchop_code): Remove.
23719         (enum ia64_builtins): Move ...
23720         * config/ia64/ia64.c (enum ia64_builtins): ... here.  Remove all
23721         members except BSP and FLUSHRS.
23722         (ia64_init_builtins): Remove __sync builtins.
23723         (ia64_expand_builtin): Likewise.
23724         (ia64_expand_fetch_and_op, ia64_expand_op_and_fetch): Remove.
23725         (ia64_expand_compare_and_swap, ia64_expand_lock_test_and_set): Remove.
23726         (ia64_expand_lock_release): Remove.
23727         * config/ia64/ia64.md (mf): Move to sync.md.
23728         (mf_internal, fetchadd_acq_si, fetchadd_acq_di, cmpxchg_acq_si,
23729         cmpxchg_acq_di, xchgsi, xchgdi): Likewise.
23730         * config/ia64/sync.md: New file.
23731         (memory_barrier): Rename from mf.
23732         (fetchadd_acq_<I48MODE>): Macroize from _si/_di patterns.
23733         (cmpxchg_acq_<I48MODE>): Likewise.
23734         (sync_lock_test_and_set<I48MODE>): Likewise.
23736         * config/ia64/ia64intrin.h: Define nothing for C; limit #defines
23737         to c++.  Remove __sync* declarations.  s/_si/_4/.  s/_di/_8/.
23739 2004-04-14  Richard Henderson  <rth@redhat.com>
23741         * config/i386/i386.c (x86_cmpxchg, x86_xadd): New.
23742         (ix86_compare_emitted): New.
23743         (ix86_expand_compare): Use ix86_compare_emitted if set.
23744         (ix86_expand_setcc): Only emit REG_EQUAL if both ix86_compare_op0
23745         and ix86_compare_op0 are set.
23746         * config/i386/i386.h (x86_cmpxchg, x86_xadd): Declare.
23747         (TARGET_CMPXCHG, TARGET_XADD): New.
23748         (ix86_compare_emitted): Declare.
23749         * config/i386/i386.md: Include sync.md
23750         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2): New.
23751         (UNSPECV_XCHG, UNSPECV_LOCK): New.
23752         * config/i386/sync.md: New file.
23754 2004-04-14  Richard Henderson  <rth@redhat.com>
23756         PR middle-end/14311
23757         * builtin-types.def (BT_BOOL, BT_VOLATILE_PTR, BT_I1, BT_I2,
23758         BT_I4, BT_I8, BT_FN_VOID_VPTR, BT_FN_I1_VPTR_I1, BT_FN_I2_VPTR_I2,
23759         BT_FN_I4_VPTR_I4, BT_FN_I8_VPTR_I8, BT_FN_BOOL_VPTR_I1_I1,
23760         BT_FN_BOOL_VPTR_I2_I2, BT_FN_BOOL_VPTR_I4_I4, BT_FN_BOOL_VPTR_I8_I8,
23761         BT_FN_I1_VPTR_I1_I1, BT_FN_I2_VPTR_I2_I2, BT_FN_I4_VPTR_I4_I4,
23762         BT_FN_I8_VPTR_I8_I8): New.
23763         * builtins.def (DEF_SYNC_BUILTIN): New.
23764         (BUILT_IN_FETCH_AND_ADD_N, BUILT_IN_FETCH_AND_ADD_1,
23765         BUILT_IN_FETCH_AND_ADD_2, BUILT_IN_FETCH_AND_ADD_4,
23766         BUILT_IN_FETCH_AND_ADD_8, BUILT_IN_FETCH_AND_SUB_N,
23767         BUILT_IN_FETCH_AND_SUB_1, BUILT_IN_FETCH_AND_SUB_2,
23768         BUILT_IN_FETCH_AND_SUB_4, BUILT_IN_FETCH_AND_SUB_8,
23769         BUILT_IN_FETCH_AND_OR_N, BUILT_IN_FETCH_AND_OR_1,
23770         BUILT_IN_FETCH_AND_OR_2, BUILT_IN_FETCH_AND_OR_4,
23771         BUILT_IN_FETCH_AND_OR_8, BUILT_IN_FETCH_AND_AND_N,
23772         BUILT_IN_FETCH_AND_AND_1, BUILT_IN_FETCH_AND_AND_2,
23773         BUILT_IN_FETCH_AND_AND_4, BUILT_IN_FETCH_AND_AND_8,
23774         BUILT_IN_FETCH_AND_XOR_N, BUILT_IN_FETCH_AND_XOR_1,
23775         BUILT_IN_FETCH_AND_XOR_2, BUILT_IN_FETCH_AND_XOR_4,
23776         BUILT_IN_FETCH_AND_XOR_8, BUILT_IN_FETCH_AND_NAND_N,
23777         BUILT_IN_FETCH_AND_NAND_1, BUILT_IN_FETCH_AND_NAND_2,
23778         BUILT_IN_FETCH_AND_NAND_4, BUILT_IN_FETCH_AND_NAND_8,
23779         BUILT_IN_ADD_AND_FETCH_N, BUILT_IN_ADD_AND_FETCH_1,
23780         BUILT_IN_ADD_AND_FETCH_2, BUILT_IN_ADD_AND_FETCH_4,
23781         BUILT_IN_ADD_AND_FETCH_8, BUILT_IN_SUB_AND_FETCH_N,
23782         BUILT_IN_SUB_AND_FETCH_1, BUILT_IN_SUB_AND_FETCH_2,
23783         BUILT_IN_SUB_AND_FETCH_4, BUILT_IN_SUB_AND_FETCH_8,
23784         BUILT_IN_OR_AND_FETCH_N, BUILT_IN_OR_AND_FETCH_1,
23785         BUILT_IN_OR_AND_FETCH_2, BUILT_IN_OR_AND_FETCH_4,
23786         BUILT_IN_OR_AND_FETCH_8, BUILT_IN_AND_AND_FETCH_N,
23787         BUILT_IN_AND_AND_FETCH_1, BUILT_IN_AND_AND_FETCH_2,
23788         BUILT_IN_AND_AND_FETCH_4, BUILT_IN_AND_AND_FETCH_8,
23789         BUILT_IN_XOR_AND_FETCH_N, BUILT_IN_XOR_AND_FETCH_1,
23790         BUILT_IN_XOR_AND_FETCH_2, BUILT_IN_XOR_AND_FETCH_4,
23791         BUILT_IN_XOR_AND_FETCH_8, BUILT_IN_NAND_AND_FETCH_N,
23792         BUILT_IN_NAND_AND_FETCH_1, BUILT_IN_NAND_AND_FETCH_2,
23793         BUILT_IN_NAND_AND_FETCH_4, BUILT_IN_NAND_AND_FETCH_8,
23794         BUILT_IN_BOOL_COMPARE_AND_SWAP_N, BUILT_IN_BOOL_COMPARE_AND_SWAP_1,
23795         BUILT_IN_BOOL_COMPARE_AND_SWAP_2, BUILT_IN_BOOL_COMPARE_AND_SWAP_4,
23796         BUILT_IN_BOOL_COMPARE_AND_SWAP_8, BUILT_IN_VAL_COMPARE_AND_SWAP_N,
23797         BUILT_IN_VAL_COMPARE_AND_SWAP_1, BUILT_IN_VAL_COMPARE_AND_SWAP_2,
23798         BUILT_IN_VAL_COMPARE_AND_SWAP_4, BUILT_IN_VAL_COMPARE_AND_SWAP_8,
23799         BUILT_IN_LOCK_TEST_AND_SET_N, BUILT_IN_LOCK_TEST_AND_SET_1,
23800         BUILT_IN_LOCK_TEST_AND_SET_2, BUILT_IN_LOCK_TEST_AND_SET_4,
23801         BUILT_IN_LOCK_TEST_AND_SET_8, BUILT_IN_LOCK_RELEASE_N,
23802         BUILT_IN_LOCK_RELEASE_1, BUILT_IN_LOCK_RELEASE_2,
23803         BUILT_IN_LOCK_RELEASE_4, BUILT_IN_LOCK_RELEASE_8,
23804         BUILT_IN_SYNCHRONIZE: New.
23805         * builtins.c (called_as_built_in): Rewrite from CALLED_AS_BUILT_IN
23806         as a function.  Accept __sync_ as a prefix as well.
23807         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
23808         expand_builtin_lock_test_and_set, expand_builtin_synchronize,
23809         expand_builtin_lock_release): New.
23810         (expand_builtin): Call them.
23811         * c-common.c (DEF_BUILTIN): Don't require __builtin_ prefix if
23812         neither BOTH_P nor FALLBACK_P are defined.
23813         (builtin_type_for_size): New.
23814         (sync_resolve_size, sync_resolve_params, sync_resolve_return): New.
23815         (resolve_overloaded_builtin): New.
23816         * c-common.h (resolve_overloaded_builtin): Declare.
23817         (builtin_type_for_size): Declare.
23818         * c-typeck.c (build_function_call): Invoke resolve_overloaded_builtin.
23819         * expr.c (sync_add_optab, sync_sub_optab, sync_ior_optab,
23820         sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab,
23821         sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab,
23822         sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab,
23823         sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab,
23824         sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap,
23825         sync_compare_and_swap_cc, sync_lock_test_and_set,
23826         sync_lock_release): New.
23827         * optabs.h: Declare them.
23828         * expr.h (expand_val_compare_and_swap, expand_bool_compare_and_swap,
23829         expand_sync_operation, expand_sync_fetch_operation,
23830         expand_sync_lock_test_and_set): Declare.
23831         * genopinit.c (optabs): Add sync optabs.
23832         * optabs.c (init_optabs): Initialize sync optabs.
23833         (expand_val_compare_and_swap_1, expand_val_compare_and_swap,
23834         expand_bool_compare_and_swap, expand_compare_and_swap_loop,
23835         expand_sync_operation, expand_sync_fetch_operation,
23836         expand_sync_lock_test_and_set): New.
23837         * doc/extend.texi (Atomic Builtins): New section
23838         * doc/md.texi (Standard Names): Add sync patterns.
23840 2005-04-14  Alexandre Oliva  <aoliva@redhat.com>
23842         * tree-eh.c (lower_try_finally_copy): Generate new code in
23843         response to goto_queue entries as if the queue was sorted by
23844         index, not pointers.
23845         (lower_try_finally_switch): Likewise.
23847 2005-04-14  Richard Henderson  <rth@redhat.com>
23849         * config/i386/i386.c (ix86_expand_sse_cmp): Split out from ...
23850         (ix86_expand_sse_movcc): ... here.  Take cmp as a pre-computed
23851         register.
23852         (ix86_expand_fp_movcc): Update to match.
23853         (ix86_expand_fp_vcond, ix86_expand_int_vcond): New.
23854         * config/i386/i386-protos.h: Update.
23855         * config/i386/sse.md (vcondv4sf, vcondv2df): New.
23856         (vcond<SSEMODE124>, vcondu<SSEMODE12>): New.
23858 2005-04-14  Joseph S. Myers  <joseph@codesourcery.com>
23860         * doc/cpp.texi, doc/install.texi: Change references to GCC 3.5 to
23861         refer to 4.0.
23863 2005-04-14  Julian Brown  <julian@codesourcery.com>
23865         * Revert elfos.h part of my patch from 2005-04-13 for causing libstdc++
23866         link failures on ppc64 Linux.
23868 2005-04-14  Andreas Krebbel  <krebbel1@de.ibm.com>
23870         * config.gcc: Set cpu_type for s390.
23872 2005-04-14  Daniel Berlin  <dberlin@dberlin.org>
23874         Fix PR tree-optimization/20963
23875         * tree-ssa-pre.c (compute_avail): Remove special case for
23876         TREE_INVARIANT.
23877         (create_expression_by_pieces): Add value numbers for forced out
23878         statements.
23880 2005-04-14  Hans-Peter Nilsson  <hp@axis.com>
23882         * config/cris/cris.md: Replace references to (reg:SI 16) with
23883         (reg:SI CRIS_SRP_REGNUM).
23885 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
23887         PR tree-optimization/20657
23888         * tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
23889         create an appropriate range from it.
23891 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
23893         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST_FLOOR> and
23894         <UNSPEC_FIST_CEIL> case.
23896         * config/i386/i386.md (UNSPEC_FIST_FLOOR, UNSPEC_FIST_CEIL): New.
23897         (*fist<mode>2_floor_1, fistdi2_floor, fistdi2_floor_with_temp)
23898         (fist<mode>2_floor, fist<mode>2_floor_with_temp): New isns patterns
23899         to implement lfloor and llfloor built-ins as x87 intrinsic function.
23900         (fistdi2_floor, fist<mode>2_floor splitters): New splitters.
23901         (lfloor<mode>2): New expanders.
23902         (*fist<mode>2_ceil_1, fistdi2_ceil, fistdi2_ceil_with_temp)
23903         (fist<mode>2_ceil, fist<mode>2_ceil_with_temp): New isns patterns
23904         to implement lceil and llceil built-ins as x87 intrinsic function.
23905         (fistdi2_ceil, fist<mode>2_ceil splitters): New splitters.
23906         (lceil<mode>2): New expanders.
23908 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
23910         * convert.c (convert_to_integer): Convert (long int)trunc{,f,l},
23911         and (long long int)ceil{,f,l} into FIX_TRUNC_EXPR.
23913 2005-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
23915         PR target/20927
23916         * config/s390/s390-modes.def: Define TFmode.
23918 2005-04-13  Richard Sandiford  <rsandifo@redhat.com>
23920         * config/mips/mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
23921         (JUMP_TABLES_IN_TEXT_SECTION): Define.
23922         * config/mips/mips.c (mips16_insn_length): Remove reference to
23923         JUMP_TABLES_IN_TEXT_SECTION.
23925 2005-04-13 Fariborz Jahanian <fjahanian@apple.com>
23927         * simplify-rtx.c (simplify_binary_operation_1): Return
23928         scalar or vector of constant 0, depending on the xor's
23929         mode.
23931 2005-04-13  Dale Johannesen  <dalej@apple.com>
23933         * objc/Make-lang.in (objc-lang.o):  Depend on tree-gimple.h.
23934         (objc-act.o):  Ditto.
23935         * objc/objc-act.c (objc_gimplify_expr):  New.
23936         (objc_get_callee_fndecl):  New.
23937         * objc/objc-act.h:  Include tree-gimple.h.  Declare new functions.
23938         * objc/objc-lang.c (LANG_HOOKS_GIMPLIFY_EXPR):  Define.
23939         (LANG_HOOKS_GET_CALLEE_FNDECL):  Define.
23941 2005-04-13  Devang Patel  <dpatel@apple.com>
23943         * tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
23944         temp variables.
23946 2005-04-13  Hans-Peter Nilsson  <hp@axis.com>
23948         CRIS prologue as RTL.
23949         * config/cris/cris-protos.h (cris_emit_movem_store)
23950         (cris_expand_prologue): Prototype.
23951         * config/cris/cris.c (struct machine_function): New member
23952         stdarg_regs.
23953         (cfa_label_num, cris_target_asm_function_prologue): Remove.
23954         (TARGET_ASM_FUNCTION_PROLOGUE): Don't override.
23955         (cris_general_operand_or_gotless_symbol): Accept CRIS_UNSPEC_GOT.
23956         (cris_load_multiple_op, cris_return_address_on_stack)
23957         (cris_return_address_on_stack_for_return): ISO-Cify.
23958         (cris_store_multiple_op): New predicate function.
23959         (cris_expand_prologue, cris_emit_movem_store): New functions.
23960         (cris_print_operand) <case 'O'>: Handle modifications other than
23961         post-increment.
23962         (cris_symbol, cris_got_symbol): Return 0 for CRIS_UNSPEC_GOT.
23963         (cris_gotless_symbol): Return 1 for CRIS_UNSPEC_GOT.
23964         (cris_gen_movem_load): Rearrange slightly to make local variable
23965         src a parameter, removing osrc.
23966         (cris_setup_incoming_varargs): Set machine_function member
23967         stdarg_regs to correspond to the number of registers that need to
23968         be saved.
23969         * config/cris/cris.h (EXTRA_CONSTRAINT_S): Accept
23970         CRIS_UNSPEC_GOT.
23971         (PREDICATE_CODES): Add cris_store_multiple_op.  Make
23972         cris_general_operand_or_gotless_symbol accept UNSPEC.
23973         * config/cris/cris.md (CRIS_UNSPEC_GOT): New constant.
23974         ("*movsi_internal") <alternative 8>: Handle CRIS_UNSPEC_GOT.
23975         ("*cris_store_multiple"): New pattern.  Tweak common comment above
23976         this and "*cris_load_multiple".
23977         ("prologue"): New define_expand.
23979         * config/cris/cris.md ("epilogue"): Conditionalize on
23980         TARGET_PROLOGUE_EPILOGUE.
23982 2005-04-13  Steve Ellcey  <sje@cup.hp.com>
23984         PR target/20924
23985         * config/ia64/ia64.md (divsf3_internal_lat): Generate frcpa with
23986         fpsr 0 instead of fpsr 1.
23987         (divsf3_internal_thr): Ditto.
23988         (divdf3_internal_lat): Ditto.
23989         (divdf3_internal_thr): Ditto.
23990         (divxf3_internal_lat): Ditto.
23991         (divxf3_internal_thr): Ditto.
23993 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
23995         PR tree-optimization/20913
23996         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.
23998         PR tree-optimization/20702
23999         * tree-vrp.c (maybe_add_assert_expr): Recurse into
24000         dominator children that haven't been walked into.
24002 2005-04-13  Julian Brown  <julian@codesourcery.com>
24004         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from
24005         being used for symbols with vague linkage when HAVE_GAS_COMDAT_GROUP
24006         is true.
24008 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
24010         * basic-block.h, tree-ssa-uncprop.c, varasm.c,
24011         config/i386/sse.md: Fix comment typos.
24013         * genattrtab.c (NULL_ATTR): Remove.
24014         * ifcvt.c (NULL_EDGE): Likewise.
24016         * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
24018         * rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
24019         NOTE_PREDICT): Remove.
24021 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
24023         * configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
24024         * configure: Regenerate.
24025         * config.in: Likewise.
24026         * system.h: Declare vsnprintf if not already declared.
24028 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
24030         * optc-gen.awk: Handle stand-alone Mask records.
24031         * opth-gen.awk: Likewise.
24032         * doc/options.texi (Option file format): Document them.
24033         * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
24034         sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
24035         (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
24036         * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
24037         MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
24038         MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
24039         MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
24040         MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
24041         MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
24042         (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
24043         TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
24044         TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
24045         TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
24046         TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
24047         TARGET_LONG_DOUBLE_128): Likewise.
24048         (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
24049         (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
24050         * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
24051         * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
24052         * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
24053         * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
24054         * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
24055         * config/sparc/sparc.c (fpu_option_set): New global.
24056         (sparc_handle_option): New function.
24057         (sparc_override_options): Test fpu_option_set.
24058         (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
24059         (TARGET_HANDLE_OPTION): Set to sparc_handle_option.
24060         * config/sparc/sparc.opt: New file.
24061         * config/sparc/little-endian.opt: Likewise.
24062         * config/sparc/long-double-switch.opt: Likewise.
24064 2005-04-13  Bernd Schmidt  <bernd.schmidt@analog.com>
24066         * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
24067         (bfin_handle_options): Set it if -mshared-library-id= is seen.
24068         * config/bfin/bfin.opt (mshared-library-id=): Lose
24069         Var(bfin_lib_id_given).
24071 2005-04-13  Matt Thomas  <matt@3am-software.com>
24073         * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
24074         defining.
24076 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
24078         * rtl.h (CLEAR_RTX_FLAGS): Remove.
24080         * cgraphunit.c (INSNS_PER_CALL): Remove.
24082         * tree-ssa-forwprop.c (vars,
24083         record_single_argument_cond_exprs,
24084         substitute_single_use_vars): Remove.
24085         (forward_propagate_into_cond_1, forward_propagate_into_cond):
24086         New.
24087         (tree_ssa_forward_propagate_single_use_vars): Call
24088         forward_propagate_into_cond for each COND_EXPR.
24090         * tree-inline.c (INSNS_PER_STMT): Remove.
24092 2005-04-12  Richard Henderson  <rth@redhat.com>
24094         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
24095         (ix86_expand_sse_fp_minmax): ... from ...
24096         (ix86_expand_fp_movcc): ... here.
24097         (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
24098         * config/i386/i386-protos.h: Update.
24099         * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
24100         (sse_setccsf, sse_setccdf): Allow before reload.
24101         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
24102         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
24103         (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
24104         * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
24105         (anddf3, nanddf3, iordf3, xordf3): New.
24107 2005-04-12  Jeff Law  <law@redhat.com>
24109         * Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
24110         (tree-ssa-uncprop.o): Add dependencies.
24111         * tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
24112         * tree-flow.h (remove_useless_stmts): Remove prototype.
24113         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
24114         remove_useless_stmts.
24115         * timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
24116         * tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
24117         * tree-pass.h (pass_uncprop): Declare.
24118         * tree-ssa-uncprop.c: New file.
24120 2005-04-12  James E. Wilson  <wilson@specifixinc.com>
24122         PR target/20670
24123         * unwind-ia64.c (uw_intall_context): Add missing load of r27.
24125 2005-04-12  Caroline Tice  <ctice@apple.com>
24127         Temporary fix for partitioning problems.
24128         * passes.c (rest_of_handle_final): Remove code that
24129         frees unlikely_text_section_name,
24130         * varasm.c (assemble_start_function): Test for partitioning
24131         flag before writing out section labels.
24132         (assemble_end_function): Test for partitioning flag before
24133         writing out section labels.
24135 2005-04-12  Steven Bosscher  <stevenb@suse.de>
24136             Stuart Hastings <stuart@apple.com>
24137             Jan Hubicka  <jh@suse.cz>
24139         * Makefile.in: Add function.h to BASIC_BLOCK_H.  Remove all
24140         references to gt-tree-cfg.h.
24141         * basic-block.h (struct basic_block_def): Don't skip rbi
24142         for garbage collection.
24143         (struct reorder_block_def): Make GTY-able.
24144         (struct control_flow_graph): New structure.
24145         (n_edges, n_basic_blocks, last_basic_block, basic_block_info,
24146         BASIC_BLOCK, EXIT_BLOCK_PTR, ENTRY_BLOCK_PTR): No longer vars,
24147         but instead defines to the control_flow_graph for cfun.
24148         (label_to_block_map): New define, points to the label map of
24149         the control_flow_graph for cfun.
24150         (n_edges_for_function, n_basic_blocks_for_function,
24151         last_basic_block_for_function, basic_block_info_for_function,
24152         EXIT_BLOCK_PTR_FOR_FUNCTION, ENTRY_BLOCK_PTR_FOR_FUNCTION,
24153         basic_block_info_for_function, label_to_block_map_for_function):
24154         Counterparts for the above, taking a struct function as an extra
24155         argument.
24156         (alloc_rbi_pool, free_rbi_pool): Remove prototypes.
24157         * cfg.c: (n_edges, n_basic_blocks, last_basic_block,
24158         basic_block_info, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Remove.
24159         (alloc_rbi_pool, free_rbi_pool): Remove.
24160         (initialize_bb_rbi): Use ggc_alloc_cleared instead of pool_alloc.
24161         * cfglayout.c: (cfg_layout_initialize): Don't allocate the rbi pool
24162         here...
24163         (cfg_layout_finalize) ... and don't free it here.
24164         * cfgrtl.c (cfg_layout_delete_block): Zero out rbi so it gets
24165         garbage collected.
24166         * flow.c (free_basic_block_vars): Set label_to_block_map and
24167         n_edges to zero too.
24168         * function.h (struct function): Add cfg field.
24169         * function.c (allocate_struct_function): Allocate the cfg.
24170         * tree-cfg.c (label_to_block_map): Remove.
24171         (build_tree_cfg): Don't allocate the rbi pool here...
24172         (delete_tree_cfg_annotations): ...and don't free it here.
24173         Also don't nullify label_to_block_map for cfun.
24175 2005-04-12  Caroline Tice  <ctice@apple.com>
24177         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
24178         Revert my patch from April 9.
24179         (fix_edges_for_rarely_executed_code): Revert my patch from April 9.
24180         (reorder_basic_blocks): Revert my patch from April 9.
24181         (insert_section_boundary_note): Revert my patch from April 9.
24182         * dbxout.c (dbxout_function_end): Revert my patch from April 9.
24183         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): Revert my patch from April 9.
24184         (COLD_END_LABEL):  Revert my patch from April 9.
24185         (cold_text_section_label):  Revert my patch from April 9.
24186         (cold_end_label): Revert my patch from April 9.
24187         (dwarf2out_switch_text_section): Revert my patch from April 9.
24188         (output_aranges): Revert my patch from April 9.
24189         (output_ranges):  Revert my patch from April 9.
24190         (output_line_info): Revert my patch from April 9.
24191         (add_location_or_const_value_attribute):  Revert my patch from April 9.
24192         (dwarf2out_var_location): Revert my patch from April 9.
24193         (dwarf2out_init):  Revert my patch from April 9.
24194         (dwarf2out_finish): Revert my patch from April 9.
24195         * function.h (struct function): Revert my patch from April 9.
24196         * opts.c (decode_options): Revert my patch from April 9.
24197         * output.h (unlikely_section_label, hot_section_label,
24198         hot_section_end_label, cold_section_end_label,
24199         unlikely_text_section_name): Revert my patch from April 9.
24200         * passes.c (rest_of_handle_final): Revert my patch from April 9.
24201         * varasm.c (unlikely_section_label, hot_section_label,
24202         hot_section_end_label, cold_section_end_label,
24203         unlikely_text_section_name): Revert my patch from April 9.
24204         (initialize_cold_section_name): Revert my patch from April 9.
24205         (unlikely_text_section): Revert my patch from April 9.
24206         (in_unlikely_text_section): Revert my patch from April 9.
24207         (named_section): Revert my patch from April 9.
24208         (function_section): Revert my patch from April 9.
24209         (current_function_section): Revert my patch from April 9.
24210         (assemble_start_function): Revert my patch from April 9.
24211         (assemble_end_function): Revert my patch from April 9.
24212         (default_section_type_flags_1): Revert my patch from April 9.
24214 2005-04-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
24216         * config/sparc/sparc.h (APPLY_RESULT_SIZE): Set to 24 in 64-bit mode.
24217         * config/sparc/sparc.md (untyped_call): Save the registers manually.
24219         * config/sparc/sparc.c (legitimate_address_p): Use TARGET_ARCH32.
24221 2005-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
24223         PR middle-end/20917
24224         * config/s390/s390.md ("*set_tp"): Use SET in pattern.
24225         ("set_tp_64", "set_tp_31"): Adapt expanded pattern.
24227 2004-04-12  Richard Henderson  <rth@redhat.com>
24229         * config/i386/i386.md (UNSPEC_FIX, UNSPEC_MOVA, UNSPEC_SHUFFLE,
24230         UNSPEC_PSHUFLW, UNSPEC_PSHUFHW, UNSPEC_ADDSUB, UNSPEC_HADD,
24231         UNSPEC_HSUB, UNSPEC_MOVSHDUP, UNSPEC_MOVSLDUP, UNSPEC_MOVDDUP): Remove.
24232         (UNSPEC_*, UNSPECV_*): Renumber.
24234 2005-04-12  Frank Ch. Eigler  <fche@redhat.com>
24236         PR mudflap/19266
24237         From Richard Henderson <rth@redhat.com>:
24238         * tree-mudflap.c (mf_build_check_statement_for): Correct block
24239         splitting logic.
24241 2005-04-12  Dorit Naishlos  <dorit@il.ibm.com>
24243         * tree-cfg.c (tree_verify_flow_info): Use LABEL_EXPR_LABEL.
24245 2005-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
24247         * config/bfin/bfin.c (bfin_library_id_string): Remove.
24248         (bfin_library_id): New variable.
24249         (bfin_expand_prologue): Use bfin_library_id and bfin_lib_id_given
24250         instead of bfin_library_id_string.
24251         (bfin_handle_option): New function.
24252         (override_options): Remove most code to deal with shared library IDs,
24253         just check they aren't used without -mid-shared-library.
24254         (TARGET_HANDLE_OPTION): Define.
24255         * config/bfin/bfin.h (TARGET_OPTIONS): Delete macro.
24256         * config/bfin/bfin.opt (mshared-library-id=): New.
24258 2005-04-12  Kazu Hirata  <kazu@cs.umass.edu>
24260         * tree-vect-transform.c: Fix comment typos.
24262 2005-04-12 Mostafa Hagog <mustafa@il.ibm.com>
24264         * postreload-gcse.c (eliminate_partially_redundant_load): Don't
24265         split critical edges when not possible/profitable.
24267 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
24269         * config/ns32k/ns32k.h (target_flags, MASK_32081, MASK_RTD)
24270         (MASK_REGPARM, MASK_32532, MASK_32332, MASK_NO_SB, MASK_NO_BITFIELD)
24271         (MASK_HIMEM, MASK_32381, MASK_MULT_ADD, MASK_SRC, MASK_IEEE_COMPARE)
24272         (TARGET_32081, TARGET_32381, TARGET_MULT_ADD, TARGET_RTD)
24273         (TARGET_REGPARM, TARGET_32532, TARGET_32332, TARGET_SB, TARGET_HIMEM)
24274         (TARGET_BITFIELD, TARGET_IEEE_COMPARE, TARGET_SWITCHES): Delete.
24275         (OVERRIDE_OPTIONS): Clear MASK_SB instead of setting MASK_NO_SB.
24276         * config/ns32k/netbsd.h (TARGET_DEFAULT): Remove MASK_NO_SB and
24277         MASK_NO_BITFIELD.
24278         * config/ns32k/ns32k.c (ns32k_handle_option): New function.
24279         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
24280         * config/ns32k/ns32k.opt: New file.
24282 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
24284         * config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.
24285         * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020)
24286         (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY)
24287         (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200)
24288         (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x)
24289         (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881)
24290         (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT)
24291         (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL)
24292         (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD)
24293         (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY)
24294         (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES)
24295         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete.
24296         (MASK_COLDFIRE): Formatting fixes.
24297         (TARGET_COLDFIRE): Turn into a boolean value for consistency.
24298         * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete.
24299         * config/m68k/m68k.c (m68k_library_id_string): Initialize to
24300         "_current_shared_library_a5_offset_".
24301         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
24302         (MASK_ALL_CPU_BITS): New macro.
24303         (m68k_handle_option): New function.
24304         (override_options): Remove handling of m68k_library_id_string.
24305         * config/m68k/m68k.opt: New file.
24306         * config/m68k/ieee.opt: New file.
24308 2005-04-11  Mark Mitchell  <mark@codesourcery.com>
24310         * target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
24311         (TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
24312         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
24313         (TARGET_CXX): Adjust accordingly.
24314         * target.h (struct gcc_target): Remove epxort_class_data.  Add
24315         determine_class_data_visibility and class_data_always_comdat.
24316         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
24317         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
24318         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
24319         * config/arm/arm.c (arm_cxx_export_class_data): Remove.
24320         (arm_cxx_determine_class_data_visibility): New.
24321         (arm_cxx_class_data_always_comdat): Likewise.
24322         (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
24323         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
24324         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
24325         * config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
24326         * config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
24327         Define.
24329 2005-04-11  Devang Patel  <dpatel@apple.com>
24331         * tree-data-ref.c (build_classic_dist_vector,
24332         compute_subscript_distance): Make externally visible.
24333         * tree-data-ref.h (build_classic_dist_vector,
24334         compute_subscript_distance): Same.
24335         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
24336         Check distance vector against vectorization factor.
24337         (vect_analyze_loop): Determine vectorizaion factor before
24338         analyzing data dependences.
24339         * tree-vectorizer.c (loops_num): Make it externally visible and
24340         rename ...
24341         * tree-vectorizer.c (vect_loops_num): ... new name.
24342         * tree-vectorizer.h  (vect_loops_num): New.
24344 2005-04-11  Devang Patel  <dpatel@apple.com>
24346         * tree-vect-analyze.c (vect_analyze_operations): Check
24347         vectorizable codition.
24348         * tree-vect-transform.c (vect_is_simple_cond): New function.
24349         (vectorizable_condition): New function.
24350         (vect_transform_stmt): Handle condition_vec_info_type.
24351         * tree-vectorizer.h (enum stmt_vec_info_type): Add
24352         condition_vec_info_type.
24353         (vectorizable_condition): New.
24355 2005-04-11  Geoffrey Keating  <geoffk@apple.com>
24357         * config/i386/i386.h (TARGET_FPMATH_DEFAULT): New.
24358         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT): New.
24359         * config/i386/i386.c (override_options): Use TARGET_FPMATH_DEFAULT.
24361         * config/i386/darwin.h (ASM_SPEC): Use -arch i386 not -arch i686.
24362         (SUBTARGET_EXTRA_SPECS): Always 'i386'.
24364         * dwarf2out.c (output_line_info): Don't try to dereference
24365         a NULL current_function_decl.
24367         * config/t-slibgcc-darwin: Don't put shared libraries in
24368         directories other than $(slibdir).
24369         * config/rs6000/darwin.h: Find -m64 libgcc under the name the
24370         OS uses for it.
24372 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
24374         PR tree-optimization/20933
24375         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Move
24376         logic to reject aliases between read-only and writable
24377         variables ...
24378         (may_alias_p): ... here.
24379         (get_tmt_for): Do not associate read-only tags to pointers
24380         whose pointed-to type is not read-only.
24381         * tree-ssa.c (verify_ssa): Check that memory stores have at
24382         least one V_MAY_DEF or V_MUST_DEF.
24384 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24386         PR/17092
24387         * configure.ac (gcc_UNLOCKED_FUNCS): New.
24388         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
24389         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
24390         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
24391         _unlocked function.
24392         (fwrite_unlocked): Fix prototype.
24394         * configure, config.in: Regenerate.
24396 2005-04-11  David Edelsohn  <edelsohn@gnu.org>
24398         * tree-ssa-loop-im.c: Include real.h.
24399         (determine_invariantness_stmt): If real division divisor is
24400         invariant and flag_unsafe_math_optimizations enabled, generate
24401         invariant reciprocal for hoisting.
24402         * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
24404 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
24406         Fix PR tree-optimization/20926
24408         * tree-ssa-alias.c (add_type_alias): Handle subvars.
24410 2005-04-11  Devang Patel  <dpatel@apple.com>
24412         * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
24413         operand ordering.
24415 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
24417         * fold-const.c (fold_binary_op_with_conditional_arg):
24418         use fold_buildN instead of "fold (buildN" in some
24419         non obvious places.
24420         (fold_unary): Likewise.
24421         (fold_binary): Likewise.
24423 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
24425         Fix PR tree-optimization/20612
24426         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
24427         handling
24428         (perfect_nestify): preheaderbb is *not* part of loop of the
24429         old destination.
24431 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
24433         * tree-ssa-alias.c (may_alias_p): If the variable
24434         is a global variable and the pointer is parameter
24435         and -fargument-noalias-global is used, then
24436         the pointer cannot alias the variable.
24438 2005-04-11  James A. Morrison  <phython@gcc.gnu.org>
24440         * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
24441         * config/sparc/sparc.h: Likewise.
24442         * config/sparc/sparc.md: Likewise.
24444 2005-04-11  Kazu Hirata  <kazu@cs.umass.edu>
24446         * tree-vrp.c (maybe_add_assert_expr): Move a comment.
24448         * tree-vrp.c: Fix a comment typo.
24450 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
24452         PR tree-optimization/20920
24453         * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
24454         SSA_NAME flows through an abnormal edge.
24455         * tree-vrp.c (infer_value_range): Ignore SSA names that flow
24456         through abnormal edges.
24457         (maybe_add_assert_expr): Likewise.
24459 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
24461         * config/s390/s390.h (s390_tune_string, s390_arch_string)
24462         (s390_warn_framesize_string, s390_warn_dynamicstack_string)
24463         (s390_stack_size_string, s390_stack_guard_string, target_flags)
24464         (MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
24465         (MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
24466         (MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
24467         (TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
24468         (TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
24469         (TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
24470         (TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
24471         * config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
24472         (TARGET_HANDLE_OPTION): Likewise.
24473         (s390_tune): Initialize to PROCESSOR_max.
24474         (s390_arch_string): Make static.
24475         (s390_tune_string, s390_warn_framesize_string): Delete.
24476         (s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
24477         (s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
24478         (s390_handle_arch_option, s390_handle_option): New functions.
24479         (override_options): Remove parsing of option strings.
24480         * config/s390/s390.opt: New file.
24482 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
24484         * tree-complex.c (expand_vector_operations): Call
24485         update_stmt_if_modified.
24487 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
24489         * tree-vect-analyze (vect_determine_vectorization_factor):
24490         Do not use GET_MODE_NUNITS.
24491         * tree-vect-transform.c (vect_get_vec_def_for_operand,
24492         (vectorizable_load, vect_transform_loop): Likewise.
24494 2005-04-11  Uros Bizjak  <uros@kss-loka.si>
24496         * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL)
24497         (BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
24498         * optabs.h (enum optab_index): Add new OTI_lceil.
24499         (lceil_optab): Define corresponding macro.
24500         * optabs.c (init_optabs): Initialize lceil_optab.
24501         * genopinit.c (optabs): Implement lceil_optab using lceilsi2
24502         and lceildi2 patterns.
24503         * builtins.c (expand_builtin_int_roundingfn): Handle
24504         BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
24505         (fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
24506         BUILT_IN_LLCEIL{,F,L}.
24507         (fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
24508         BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
24509         (mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
24510         (expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
24511         BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
24512         * convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
24513         into lceil built-in function and (long long int)ceil{,f,l} into
24514         llceil built-in function.
24515         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
24516         BUILT_IN_LLCEIL.
24518 2005-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24520         * pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
24521         zero.
24523 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
24525         * config/arm/arm.c: Fix a comment typo.
24526         * doc/tree-ssa.texi: Fix a typo.
24528 2005-04-10  Steven Bosscher  <stevenb@suse.de>
24530         * cselib.c (clear_table): Rename to cselib_clear_table.
24531         * cselib.h (cselib_clear_table): Add prototype.
24532         * gcse.c (gcse_main): Make 'f' argument unused.
24533         (alloc_gcse_mem): Do not walk the insn chain, walk the contents
24534         of each basic block instead.
24535         (compute_sets, compute_hash_table_work): Likewise.
24536         (constprop_register): Change int 'alter_jumps' argument to bool.
24537         (do_local_cprop): Likewise.
24538         (local_cprop_pass): Likewise.  Also walk basic blocks instead of
24539         the insn chain.  Explicitly clear the cselib tables after finishing
24540         one basic block.  Make sure there are no unterminated libcall blocks.
24541         Update compute_sets call.
24542         (cprop): Walk basic blocks instead of the insn chain.
24543         (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
24544         Likewise.
24545         (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
24546         one_cprop_pass calls.
24548 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
24550         * combine.c (combine_simplify_rtx): Remove a transformation that
24551         relies on an invalid assumption about rtl sign-extension semantics.
24553 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
24555         * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
24556         to build_int_cst_wide.
24558 2005-04-09  Alexandre Oliva  <aoliva@redhat.com>
24560         PR target/20126
24561         * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
24562         set the original address pseudo to the correct value before the
24563         original insn, if possible, and leave the insn alone, otherwise
24564         create a new pseudo, set it and replace it in the insn.
24565         * recog.c (validate_change_maybe_volatile): New.
24566         * recog.h (validate_change_maybe_volatile): Declare.
24568 2005-04-09  Caroline Tice  <ctice@apple.com>
24570         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
24571         Remove targetm.have_named_sections test.
24572         (fix_edges_for_rarely_executed_code): Likewise.
24573         (insert_section_boundary_note): Likewise.
24574         (reorder_basic_blocks): Check partitioning flag before calling
24575         verify_hot_cold_block_grouping.
24576         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
24577         the function struct rather than global variables.
24578         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
24579         (COLD_END_LABEL): Likewise
24580         (cold_text_section_label): New static global variable.
24581         (cold_end_label): Likewise.
24582         (dwarf2out_switch_text_section): Get hot/cold section labels from
24583         the function struct rather than global variables.
24584         (output_aranges): Use cold_text_section_label and cold_end_label;
24585         check partitioning flag before putting out delta.
24586         (output_ranges): Remove incorrect code attempting to use
24587         hot/cold labels.
24588         (output_line_info): Get cold section label from function struct.
24589         (add_location_or_const_value_attribute): Likewise.
24590         (get_subprogram_die): Get hot/cold section labels from function struct.
24591         (dwarf2out_var_location): Likewise.
24592         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
24593         write out cold_text_section_label if partition flag is set.
24594         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
24595         * function.h (struct function): Add new fields to point to hot/cold
24596         section labels: hot_section_label, cold_section_label,
24597         hot_section_end_label and cold_section_end_label; also add new field
24598         for cold text section name, unlikely_text_section_name.
24599         * opts.c (decode_options): Turn off partitioning flag if
24600         !targetm.have_named_sections.
24601         * output.h (hot_section_label): Remove.
24602         (hot_section_end_label): Remove.
24603         (cold_section_end_label): Remove.
24604         (unlikely_section_label): Remove.
24605         (unlikely_text_section_name): Remove.
24606         * passes.c (rest_of_handle_final):  Remove code that frees
24607         unlikely_text_section_name.
24608         * varasm.c (unlikely_section_label): Remove.
24609         (hot_section_label): Remove.
24610         (hot_section_end_label): Remove.
24611         (cold_section_end_label): Remove.
24612         (unlikely_text_section_name):  Remove.
24613         (initialize_cold_section_name): Modify to call
24614         targetm.strip_name_encoding; to store cold section name in current
24615         function struct, if it exists; and to only use the decl_section_name
24616         if flag_named_sections is true.
24617         (unlikely_text_section): Modify to get section name out of current
24618         function struct, if there is one; otherwise build it from
24619         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
24620         (in_unlikely_text_section): Likewise.
24621         (named_section): Modify to get/put cold section name in current function
24622         struct, if there is one.
24623         (function_section):  Change 'bool unlikely' to 'int reloc'; check
24624         targetm.have_named_sections before calling named_section.
24625         (current_function_section): Likewise.
24626         (assemble_start_function): Modify to get/put unlikely_text_section_name
24627         in current function struct; modify to get hot/cold section labels
24628         from function struct; initialize labels using
24629         ASM_GENERATE_INTERNAL_LABEL;
24630         test partitioning flag before writing out hot section label.
24631         (assemble_end_function): Test partitioning flag before writing out
24632         hot/cold section labels.
24633         (default_section_type_flags_1):  Modify to use array instead of
24634          char* for unlikely_text_section_name; set flags correctly for
24635          cold text section if there is not a current function decl.
24637 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
24639         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
24640         and TI_VA_LIST_FPR_COUNTER_FIELD.
24641         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
24642         * tree-pass.h (pass_stdarg): Add.
24643         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
24644         * tree-stdarg.c: New file.
24645         * tree-stdarg.h: New file.
24646         * Makefile.in (OBJS-common): Add tree-stdarg.o.
24647         (tree-stdarg.o): Add dependencies.
24648         * function.h (struct function): Add va_list_gpr_size and
24649         va_list_fpr_size fields.
24650         * function.c (allocate_struct_function): Initialize them.
24651         * target.h (struct gcc_target): Add stdarg_optimize_hook.
24652         * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
24653         (TARGET_INITIALIZER): Add it.
24655         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
24656         va_list_{g,f}pr_counter_field.
24657         (ix86_setup_incoming_varargs): Don't do anything if reg_save
24658         area will not be used.  Only save registers that tree-stdarg.c
24659         detected they need saving.
24660         (ix86_va_start): Don't set up fields that won't be used.
24662         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
24663         va_list_{g,f}pr_counter_field.
24664         (setup_incoming_varargs): Don't do anything if reg_save
24665         area will not be used.  Only save registers that tree-stdarg.c
24666         detected they need saving.
24667         (rs6000_va_start): Don't set up fields that won't be used.
24669         * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
24670         (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
24671         (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
24672         (TARGET_STDARG_OPTIMIZE_HOOK): Define.
24674 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
24676         PR target/20795
24677         * config/i386/i386.c (construct_container): Pass empty aligned
24678         struct, union or class in memory.
24680 2005-04-09  Kazu Hirata  <kazu@cs.umass.edu>
24682         * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
24683         tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
24684         config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
24685         config/rs6000/predicates.md: Fix comment typos.
24687         * sched-int.h (haifa_insn_data): Remove blockage and units.
24688         (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
24689         ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
24690         MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
24692 2005-04-09  Jan Hubicka  <jh@suse.cz>
24693             Steven Bosscher  <stevenb@suse.de>
24695         * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
24696         * cfgloop.c (get_loop_exit_edges): Likewise.
24697         * cfgloopmanip.c (fix_irreducible_loops): Likewise.
24698         (unloop): Likewise.
24699         * loop-unroll.c (analyze_insns_in_loop): Likewise.
24700         * tree-cfg.c (dump_cfg_status): Likewise.
24702 2005-04-09  David Edelsohn  <edelsohn@gnu.org>
24704         * config/rs6000/predicates.md (altivec_register_operand): Remove
24705         redundant match_code test.
24706         (gpc_reg_operand): Same.
24707         (cc_reg_operand): Same.
24708         (cc_reg_not_cr0_operand): Same.
24710 2005-04-09  Jan Hubicka  <jh@suse.cz>
24712         Forgotten hunk from my last merge patch:
24713         * final.c (output_addr_const): Do not call mark_referenced.
24715 2005-04-09  Andrew MacLeod  <amacleod@redhat.com>
24717         * doc/tree-ssa.texi: Add immediate use documentation.
24719 2005-04-09  Richard Earnshaw <richard.earnshaw@arm.com>
24721         * arm.c (FL_WBUF): Define.
24722         (arm_tune_strongarm): Renamed from arm_is_strong.  All uses changed.
24723         (arm_is_6_or_7): Delete.
24724         (arm_tune_wbuf): New.
24725         (arm_override_options): Set arm_tune_wbuf.
24726         * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
24727         (arm_is_6_or_7): Delete declaration.
24728         (arm_tune_wbuf): New declartion.
24729         * arm.md (is_strongarm): Derive from arm_tune_strongarm.
24730         (model_wbuf): Derive from arm_tune_wbuf.
24731         * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
24732         (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
24733         (arm740t): Mark CPUs as having a write buffer.
24735 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
24737         * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
24738         of 'const_double_operand' in operand 2 constraints.  Update enable
24739         condition.
24741 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
24743         * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
24744         (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
24745         * optabs.h (enum optab_index): Add new OTI_lfloor.
24746         (lfloor_optab): Define corresponding macro.
24747         * optabs.c (init_optabs): Initialize lfloor_optab.
24748         * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
24749         and lfloordi2 patterns.
24750         * builtins.c (expand_builtin_int_roundingfn): New prototype.
24751         (expand_builtin_int_roundingfn): New function.
24752         (fold_builtin_int_roundingfn): New prototype.
24753         (fold_builtin_int_roundingfn): New function, renamed from
24754         fold_builtin_lround.
24755         Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
24756         BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
24757         (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
24758         BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
24759         (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
24760         (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
24761         BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
24762         * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
24763         into lfloor built-in function and (long long int)floor{,f,l} into
24764         llfloor built-in function.
24765         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
24766         BUILT_IN_LLFLOOR.
24768 2005-04-08  Ian Lance Taylor  <ian@airs.com>
24770         * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
24771         CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
24772         * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
24773         (DO_COND, DO_BODY): Likewise.
24774         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
24775         (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
24776         (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
24777         BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
24778         (build_continue_stmt, build_break_stmt): Don't declare.
24779         (c_do_switch_warnings): Update declaration.
24780         * c-gimplify.c (enum bc_t): Remove.
24781         (struct c_gimplify_ctx, ctxp): Remove.
24782         (push_context, pop_context): Remove static functions.
24783         (c_genericize): Don't call push_context or pop_context.
24784         (begin_bc_block, finish_bc_block): Remove static functions.
24785         (build_bc_goto): Likewise.
24786         (gimplify_c_loop): Likewise.
24787         (gimplify_for_stmt, gimplify_while_stmt): Likewise.
24788         (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
24789         (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
24790         DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
24791         * c-common.c (c_do_switch_warnings): Rename from
24792         c_do_switch_warnings_1.
24793         (c_do_switch_warnings) [old version]: Remove.
24794         (c_do_switch_expr_warnings): Remove.
24795         * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
24796         function instead of c_do_switch_expr_warnings.
24797         * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
24798         CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
24799         * c-pretty-print.c (pp_c_statement): Likewise.
24800         * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
24802 2005-04-08  Devang Patel  <dpatel@apple.com>
24804         * tree-if-conv.c (find_phi_replacement_condition): New parameter, loop.
24805         While selecting replacement condition pay attention to loop header.
24807 2005-04-08  Diego Novillo  <dnovillo@redhat.com>
24809         Merge from tree-cleanup-branch: VRP, store CCP, store
24810             copy-prop, incremental SSA updating of FUD chains and
24811             newly exposed symbols.
24813         * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
24814         (OBJS-common): Add tree-vrp.o.
24815         (tree-vrp.o): New rule.
24816         * basic-block.h (nearest_common_dominator_for_set): Declare.
24817         * common.opt (ftree-store-ccp): New flag.
24818         (ftree-copy-prop): New flag.
24819         (ftree-vrp): New flag.
24820         (ftree-store-copy-prop): New flag.
24821         * dominance.c (nearest_common_dominator_for_set): New.
24822         * domwalk.c (walk_dominator_tree): Only traverse
24823         statements in blocks marked in walk_data->interesting_blocks.
24824         * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
24825         * fold-const.c (fold): Handle ASSERT_EXPR.
24826         * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
24827         Set flag_tree_store_ccp, flag_tree_store_copy_prop and
24828         flag_tree_vrp at -O2.
24829         * timevar.def (TV_TREE_VRP): Define.
24830         (TV_TREE_COPY_PROP): Define.
24831         (TV_TREE_STORE_COPY_PROP): Define.
24832         (TV_TREE_SSA_INCREMENTAL): Define.
24833         (TV_TREE_STORE_CCP): Define.
24834         * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
24835         to kill_redundant_phi_nodes from comment.
24836         (verify_expr): Handle ASSERT_EXPR.
24837         * tree-dfa.c (mark_new_vars_to_rename): Remove second
24838         argument.  Update all users.
24839         (mark_call_clobbered_vars_to_rename): Remove.  Update all
24840         users.
24841         * tree-flow-inline.h (unmodifiable_var_p): New.
24842         * tree-flow.h (enum value_range_type): Declare.
24843         (struct value_range_def): Declare.
24844         (value_range): Declare.
24845         (remove_all_phi_nodes_for): Remove.  Update all users.
24846         (find_phi_node_for): Declare.
24847         (add_type_alias): Declare.
24848         (count_uses_and_derefs): Declare.
24849         (kill_redundant_phi_nodes): Remove.
24850         (rewrite_into_ssa): Remove.
24851         (rewrite_def_def_chains): Remove.
24852         (update_ssa, register_new_name_mapping, create_new_def_for,
24853         need_ssa_update_p, name_registered_for_update_p,
24854         release_ssa_name_after_update_ssa, dump_repl_tbl,
24855         debug_repl_tbl, dump_names_replaced_by,
24856         debug_names_replaced_by, mark_sym_for_renaming,
24857         mark_set_for_renaming, get_current_def, set_current_def,
24858         get_value_range, dump_value_range, debug_value_range,
24859         dump_all_value_ranges, debug_all_value_ranges,
24860         expr_computes_nonzero, loop_depth_of_name,
24861         unmodifiable_var_p): Declare.
24862         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
24863         ASSERT_EXPR.
24864         * tree-into-ssa.c (block_defs_stack): Update comment.
24865         (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
24866         syms_to_rename, names_to_release, repl_tbl,
24867         need_to_initialize_update_ssa_p, need_to_update_vops_p,
24868         need_to_replace_names_p): New locals.
24869         (NAME_SETS_GROWTH_FACTOR): Define.
24870         (struct repl_map_d): Declare.
24871         (struct mark_def_sites_global_data): Add field
24872         interesting_blocks.
24873         (enum rewrite_mode): Declare.
24874         (REGISTER_DEFS_IN_THIS_STMT): Define.
24875         (compute_global_livein): Use last_basic_block instead of
24876         n_basic_blocks.
24877         (set_def_block): Remove last argument.  Update all callers.
24878         (prepare_use_operand_for_rename): Remove.  Update all callers.
24879         (prepare_def_operand_for_rename): Remove.  Update all callers.
24880         (symbol_marked_for_renaming): New.
24881         (is_old_name): New.
24882         (is_new_name): New.
24883         (repl_map_hash): New.
24884         (repl_map_eq): New.
24885         (repl_map_free): New.
24886         (names_replaced_by): New.
24887         (add_to_repl_tbl): New.
24888         (add_new_name_mapping): New.
24889         (mark_def_sites): Assume that all the operands in the
24890         statement are in normal form.
24891         (find_idf): Assert that the block in the stack is valid.
24892         (get_default_def_for): New.
24893         (insert_phi_nodes_for): Add new argument 'update_p'.
24894         Add documentation.
24895         If update_p is true, add a new mapping between the LHS of
24896         each new PHI and the name that it replaces.
24897         (insert_phi_nodes_1): Only call find_idf if needed.
24898         (get_reaching_def): Call get_default_def_for.
24899         (rewrite_operand): Remove.
24900         (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
24901         and REWRITE_THIS_STMT are false.
24902         Assume that all the operands in the statement are in
24903         normal form.
24904         (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
24905         (rewrite_virtual_phi_arguments): Remove.
24906         (invalidate_name_tags): Remove.
24907         (register_new_update_single, register_new_update_set,
24908         rewrite_update_init_block, replace_use,
24909         rewrite_update_fini_block, rewrite_update_stmt,
24910         rewrite_update_phi_arguments): New.
24911         rewrite_blocks): Remove argument 'fix_virtual_phis'.
24912         Add arguments 'entry', 'what' and 'blocks'.
24913         Initialize the dominator walker according to 'what' and
24914         'blocks'.
24915         Start the dominator walk at 'entry'.
24916         (mark_def_site_blocks): Add argument 'interesting_blocks'.
24917         Use it to configure the dominator walker.
24918         (rewrite_into_ssa): Remove argument 'all'.
24919         Make internal.
24920         (rewrite_all_into_ssa): Remove.
24921         (rewrite_def_def_chains): Remove.
24922         (mark_def_interesting, mark_use_interesting,
24923         prepare_phi_args_for_update, prepare_block_for_update,
24924         prepare_def_site_for, prepare_def_sites,
24925         dump_names_replaced_by, debug_names_replaced_by,
24926         dump_repl_tbl, debug_repl_tbl, init_update_ssa,
24927         delete_update_ssa, create_new_def_for,
24928         register_new_name_mapping, mark_sym_for_renaming,
24929         mark_set_for_renaming, need_ssa_update_p,
24930         name_registered_for_update_p, ssa_names_to_replace,
24931         release_ssa_name_after_update_ssa,
24932         insert_updated_phi_nodes_for, update_ssa): New.
24933         * tree-loop-linear.c (linear_transform_loops): Call
24934         update_ssa instead of rewrite_into_ssa.
24935         * tree-optimize.c (vars_to_rename): Remove.
24936         Update all users.
24937         (init_tree_optimization_passes): Replace
24938         pass_redundant_phi with pass_copy_prop.
24939         Add pass_vrp.
24940         Replace pass_ccp with pass_store_ccp.
24941         Add pass_store_copy_prop after pass_store_ccp.
24942         (execute_todo): If the TODO_ flags don't include updating
24943         the SSA form, assert that it does not need to be updated.
24944         Call update_ssa instead of rewrite_into_ssa and
24945         rewrite_def_def_chains.
24946         If TODO_verify_loops is set, call verify_loop_closed_ssa.
24947         (tree_rest_of_compilation):
24948         * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
24949         TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
24950         TODO_cleanup_cfg): Renumber.
24951         (TODO_verify_loops, TODO_update_ssa,
24952         TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
24953         TODO_update_ssa_only_virtuals): Define.
24954         (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
24955         Declare.
24956         * tree-phinodes.c (make_phi_node): Update documentation.
24957         (remove_all_phi_nodes_for): Remove.
24958         (find_phi_node_for): New.
24959         * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
24960         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
24961         (interpret_rhs_modify_expr): Likewise.
24962         * tree-sra.c (decide_instantiations): Mark all symbols in
24963         SRA_CANDIDATES for renaming.
24964         (mark_all_v_defs_1): Rename from mark_all_v_defs.
24965         (mark_all_v_defs): New function.  Update all users to call it
24966         with the whole list of scalarized statements, not just the
24967         first one.
24968         * tree-ssa-alias.c (count_ptr_derefs): Make extern.
24969         (compute_flow_insensitive_aliasing): If the tag is
24970         unmodifiable and the variable isn't or vice-versa, don't
24971         make them alias of each other.
24972         (setup_pointers_and_addressables): If the type tag for
24973         VAR is about to change, mark the old one for renaming.
24974         (add_type_alias): New.
24975         * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
24976         (ccp_lattice_t): Rename from latticevalue.
24977         (value): Remove.  Update all users.
24978         (const_val): New local variable.
24979         (do_store_ccp): New local variable.
24980         (dump_lattice_value): Handle UNINITIALIZED.
24981         (debug_lattice_value): New.
24982         (get_default_value): Re-write.
24983         (set_lattice_value): Re-write.
24984         (def_to_varying): Remove.  Update all users.
24985         (likely_value): Return VARYING for statements that make
24986         stores when STORE_CCP is false.
24987         Return VARYING for any statement other than MODIFY_EXPR,
24988         COND_EXPR and SWITCH_EXPR.
24989         (ccp_initialize): Re-write.
24990         (replace_uses_in, replace_vuse_in, substitute_and_fold):
24991         Move to tree-ssa-propagate.c.
24992         (ccp_lattice_meet): Handle memory stores when
24993         DO_STORE_CCP is true.
24994         (ccp_visit_phi_node): Likewise.
24995         (ccp_fold): Likewise.
24996         (evaluate_stmt): Likewise.
24997         (visit_assignment): Likewise.
24998         (ccp_visit_stmt): Likewise.
24999         (execute_ssa_ccp): Add argument 'store_ccp'.  Copy it
25000         into DO_STORE_CCP.
25001         (do_ssa_ccp): New.
25002         (pass_ccp): Use it.
25003         (do_ssa_store_ccp): New.
25004         (gate_store_ccp): New.
25005         (pass_store_ccp): Declare.
25006         * tree-ssa-copy.c: Include tree-ssa-propagate.h.
25007         (may_propagate_copy): Reformat.
25008         Don't abort if ORIG is a virtual and DEST isn't.
25009         If NEW does not have alias information but DEST does,
25010         copy it.
25011         (copy_of, cached_last_copy_of, do_store_copy_prop, enum
25012         copy_prop_kind, which_copy_prop): Declare.
25013         (stmt_may_generate_copy, get_copy_of_val,
25014         get_last_copy_of, set_copy_of_val, dump_copy_of,
25015         copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
25016         copy_prop_visit_stmt, copy_prop_visit_phi_node,
25017         init_copy_prop, fini_copy_prop, execute_copy_prop,
25018         gate_copy_prop, do_copy_prop, gate_store_copy_prop,
25019         store_copy_prop): New.
25020         (pass_copy_prop, pass_store_copy_prop): Declare.
25021         * tree-ssa-dom.c (struct opt_stats_d): Add fields
25022         'num_const_prop' and 'num_copy_prop'.
25023         (cprop_operand): Update them.
25024         (dump_dominator_optimization_stats): Dump them.
25025         (tree_ssa_dominator_optimize): Call update_ssa instead of
25026         rewrite_into_ssa.
25027         (loop_depth_of_name): Declare extern.
25028         (simplify_cond_and_lookup_avail_expr): Guard against NULL
25029         values for LOW or HIGH.
25030         (cprop_into_successor_phis): Only propagate if NEW != ORIG.
25031         (record_equivalences_from_stmt): Call expr_computes_nonzero.
25032         (cprop_operand): Only propagate if VAL != OP.
25033         * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
25034         statement for renaming.
25035         * tree-ssa-loop-im.c (move_computations): Call update_ssa.
25036         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
25037         add_type_alias if necessary.
25038         Call mark_new_vars_to_rename.
25039         (tree_ssa_iv_optimize): If new symbols need to be renamed,
25040         mark every statement updated, call update_ssa and
25041         rewrite_into_loop_closed_ssa.
25042         * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
25043         from LIVEIN if VAR is a virtual.
25044         * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
25045         * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
25046         (get_call_expr_operands): Reformat statement.
25047         (add_stmt_operand): Don't create V_MAY_DEFs for read-only
25048         symbols.
25049         * tree-ssa-propagate.c (ssa_prop_init): Initialize
25050         SSA_NAME_VALUE for every name.
25051         (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
25052         get_value_loaded_by): New.
25053         (replace_uses_in, replace_vuses_in, replace_phi_args_in,
25054         substitute_and_fold): Move from tree-ssa-ccp.c.
25055         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
25056         first_vdef, stmt_makes_single_load, stmt_makes_single_store,
25057         get_value_loaded_by, replace_uses_in, substitute_and_fold):
25058         Declare.
25059         * tree-ssa.c (verify_use): Fix error message.
25060         (propagate_into_addr, replace_immediate_uses, get_eq_name,
25061         check_phi_redundancy, kill_redundant_phi_nodes,
25062         pass_redundant_phi): Remove.  Update all users.
25063         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
25064         add_type_alias, if necessary.
25065         * tree-vectorizer.h (struct _stmt_vect_info): Update
25066         documentation for field 'memtag'.
25067         * tree-vrp.c: New file.
25068         * tree.def (ASSERT_EXPR): Define.
25069         * tree.h (ASSERT_EXPR_VAR): Define.
25070         (ASSERT_EXPR_COND): Define.
25071         (SSA_NAME_VALUE_RANGE): Define.
25072         (struct tree_ssa_name): Add field 'value_range'.
25073         (PHI_REWRITTEN): Remove.
25074         (struct tree_phi_node): Remove field 'rewritten'.
25075         * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
25076         -ftree-store-copy-prop): Document.
25077         * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
25078         Document usage of update_ssa.
25080 2005-04-08  David Edelsohn  <edelsohn@gnu.org>
25082         PR target/20814
25083         * config/rs6000/predicates.md (altivec_register_operand): Accept
25084         SUBREG.
25085         (and64_operand): Do not limit CONST_INT to mask64_operand.
25086         (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
25087         (and_operand): Do not limit CONST_INT to mask_operand.
25089 2005-04-09  Hans-Peter Nilsson  <hp@axis.com>
25091         PR rtl-optimization/20466
25092         * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
25093         for overlap of the address of each list member.
25094         (mark_set_1): Call invalidate_mems_from_set for MEMs too.
25096 2005-04-08  Mike Stump  <mrs@apple.com>
25098         * config/darwin.c (indirect_data): Fix typo in strncmp logic.
25100         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
25101         instead of 4.
25103 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
25105         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
25107         * function.c (push_function_context_to): Don't set
25108         contains_functions.
25109         * function.h (function): Remove contains_functions.
25110         (current_function_contains_functions): Remove.
25112         * function.h (function): Remove instrument_entry_exit.
25113         (current_function_instrument_entry_exit): Remove.
25115         * function.h (nonlocal_labels): Remove.
25117         * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
25119         * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
25120         (check_attr_value, write_attr_get, write_expr_attr_cache,
25121         find_attr, make_internal_attr): Don't reference negative_ok or
25122         unsigned_p.
25123         * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
25124         ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
25125         (ATTR_STATIC): Adjust the value.
25127         * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
25129 2005-04-08  Ulrich Weigand  <uweigand@de.ibm.com>
25131         * config/s390/tpf.h (ASM_SPEC): Define.
25133 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
25135         * tree-flow.h: Remove the prototype for
25136         redirect_immediate_uses.
25137         (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
25139 2005-04-08  Richard Earnshaw  <richard.earnshaw@arm.com>
25141         * arm.c (arm_const_double_by_parts): New function.
25142         * arm-protos.h (arm_const_double_by_parts): Add prototype.
25143         * arm.md (define_split for 64-bit constants): Add another one.
25145 2005-04-08  Andrew MacLeod  <amacleod@redhat.com>
25147         * tree-ssa-operands.c (correct_use_link): Remove linear scan.
25149 2005-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25151         * system.h: Revert last change.
25153 2005-04-08  Richard Sandiford  <rsandifo@redhat.com>
25155         * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
25156         (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
25157         (TARGET_SWITCHES): Delete.
25158         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
25159         * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
25160         TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
25161         * config/xtensa/xtensa.opt: New file.
25163 2005-04-08  Ben Elliston  <bje@au.ibm.com>
25165         * config/fp-bit.c: Include L_mul_tf in #endif comment.
25166         * config/fp-bit.h: Tidy comments.
25168 2005-04-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25170         * system.h: Poison PARAMS.
25172 2005-04-07  Richard Sandiford  <rsandifo@redhat.com>
25174         * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
25175         (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
25176         (TARGET_SWITCHES): Delete.
25177         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
25178         * config/vax/vax.opt: New file.
25180 2005-04-07  Daniel Berlin  <dberlin@dberlin.org>
25182         * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
25184 2005-04-07  Ian Lance Taylor  <ian@airs.com>
25186         * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
25187         define.
25188         * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
25189         * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
25190         Likewise.
25192 2005-04-07  Kazu Hirata  <kazu@cs.umass.edu>
25194         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
25195         all immediate uses in PHI nodes.
25197 2005-04-07  Richard Earnshaw  <richard.earnshaw@arm.com>
25199         * arm.c (arm_const_double_inline_cost): Handle any constant by
25200         using gen_lowpart and gen_highpart_mode.
25201         (note_invalid_constants): All constants in an RTX with a constraint
25202         that permits memory are now pushed to the constant pool.
25203         (output_move_double): Delete code to handle reg to reg and
25204         constant to reg moves.
25205         (const_double_needs_minipool, output_mov_immediate): Delete.
25206         * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
25207         CONST_INT and CONST_VECTOR.
25208         * arm.md (ANY64): New mode macro.
25209         (arm_movdi): Split reg-reg and const-reg moves.  Simplify constraints.
25210         (movdf_soft_insn): Split reg-reg and const-reg moves.
25211         (split patterns for 64-bit constant and register moves): New.
25212         * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
25213         (cirrus_movdf_hard_insn): Likewise.
25214         * fpa.md (movdf_fpa): Likewise.
25215         * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
25216         (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
25217         constraints.
25218         (movv2si_internal_2): Likewise.
25219         * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
25220         (movdf_vfp): Likewise.
25221         * arm-protos.h (output_mov_immediate): Delete prototype.
25223 2005-04-07  Joseph S. Myers  <joseph@codesourcery.com>
25225         PR target/20093
25226         * simplify-rtx.c (simplify_unary_operation_1): Check
25227         SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
25229 2005-04-06  James E Wilson  <wilson@specifixinc.com>
25231         PR target/20717
25232         * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
25233         ADDR_EXPR.
25235 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
25237         * coverage.h (GCOV_TYPE_NODE): Delete.
25238         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
25239         (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
25240         * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
25241         (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
25242         * value-prof.c (tree_divmod_fixed_value_transform): Delete.
25244 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
25246         PR other/20792
25247         * Makefile.in (gcc.pot): Remove options.c dependency.
25248         * optc-gen.awk: Don't quote help strings with N_().
25250 2005-04-06  James A. Morrison  <phython@gcc.gnu.org>
25252         * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
25253         the function returns a pointer type.
25255 2005-04-06  Daniel Berlin  <dberlin@dberlin.org>
25257         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
25258         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
25259         * doc/invoke.texi: Documnet salias-max-implicit-fields.
25260         * tree-ssa-alias.c (struct used_part): Add implicit_uses and
25261         explicit_uses members.
25262         (get_or_create_used_part_for): Initialize new fields.
25263         (fieldoff_compare): New function.
25264         (create_overlap_variables_for): Count number of fields, use
25265         heuristic to determine whether to create subvars for vars with
25266         only implicit uses.
25267         Sort the field list by offset and avoid creating duplicate SFT's.
25269 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
25271         * c.opt (-F): Remove trailing whitespace from help string.
25272         (-finput-charset): Use a tab to separate the switch name and help
25273         string.
25274         * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
25275         (-ftree-vectorizer-verbose): Likewise.
25277 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
25279         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
25280         a PHI argument where a use occurs instead of all PHI arguments.
25282 2005-04-06  Joseph S. Myers  <joseph@codesourcery.com>
25284         * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
25285         scope.
25287 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
25289         * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
25290         tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
25291         config/bfin/bfin.h: Fix comment typos.
25293 2005-04-06  Ranjit Mathew  <rmathew@hotmail.com>
25295         * doc/install.texi: Update the URL for Jacks.
25296         * doc/sourcebuild.texi: Likewise.
25298 2005-04-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
25300         PR target/17245
25301         * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
25302         Revert 2004-10-08 patch.  Reject TFmode LO_SUM in 32-bit mode.
25304 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
25306         * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
25308 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
25310         * config/v850/v850-protos.h (override_options): Delete.
25311         * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
25312         (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
25313         (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
25314         (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
25315         (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
25316         (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
25317         (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
25318         (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
25319         (OVERRIDE_OPTIONS): Delete.
25320         (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
25321         (small_memory_info): Remove the value field.
25322         (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
25323         TARGET_NO_APP_REGS.
25324         * config/v850/v850.c (small_memory): Remove the value field.
25325         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
25326         (override_options): Delete.
25327         (v850_handle_memory_option, v850_handle_option): New functions.
25328         * config/v850/v850.opt: New file.
25330 2005-04-06  Geoffrey Keating  <geoffk@apple.com>
25332         * config.host: Add a section for generic hosts, and a subsection
25333         for Darwin.  Add a case for x86-darwin.  Update ppc-darwin case.
25334         * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
25335         * config/host-darwin.h: New.
25336         * config/x-darwin: New.
25337         * config/i386/host-i386-darwin.c: New.
25338         * config/i386/x-darwin: New.
25339         * config/rs6000/host-darwin.c: Include host-darwin.h.
25340         (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
25341         (darwin_rs6000_gt_pch_use_address): Likewise.
25342         * config/rs6000/x-darwin: Change name of .o built, update
25343         dependencies for changes to rs6000/host-darwin.c.
25345 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
25347         PR target/17824
25348         * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
25350 2005-04-06  Dorit Naishlos  <dorit@il.ibm.com>
25352         * tree-vect-analyze.c (vect_analyze_loop_form): Call
25353         split_loop_exit_edge instead of loop_split_edge_with.
25355 2005-04-06  Paolo Bonzini  <bonzini@gnu.org>
25357         * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
25358         UNSPEC_SET_VSCR): New constants, used throughout.
25359         (*andc3_v4sf): New.
25360         (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
25361         Replace with...
25362         (altivec_vspltis<VI_char>): ... this pattern, using
25363         a QImode const_int_operand for the immediate.
25364         (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
25365         define_expands.
25367 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
25369         PR target/17822
25370         * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
25372 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
25374         * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
25376 2005-04-06  Ben Elliston  <bje@au.ibm.com>
25378         * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
25379         DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
25380         macros as living in "this file" and not gcc.h.
25382 2005-04-06  Ben Elliston  <bje@au.ibm.com>
25384         * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
25385         -ftree-live_range_split.  Perhaps renamed at some point?
25387 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
25389         PR target/20625
25390         * tree-ssa-loop-ivopts.c (generic_type_for): New function.
25391         (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
25393 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
25395         * tree-flow.h (number_of_iterations_cond): Declaration removed.
25396         * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
25397         (number_of_iterations_special): New function.
25398         (number_of_iterations_exit): Use number_of_iterations_special.
25399         Use simplify_using_outer_evolutions only at -O3.
25400         (number_of_iterations_cond, tree_simplify_using_condition,
25401         simplify_using_initial_conditions, loop_niter_by_eval,
25402         compare_trees, can_count_iv_in_wider_type_bound,
25403         simplify_using_outer_evolutions): Use fold_build.
25405 2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
25407         * doc/install.texi (Configuration): Document --with-java-home.
25409 2005-04-05  Richard Henderson  <rth@redhat.com>
25411         PR target/20342
25412         PR target/20447
25413         * config/i386/i386.c (print_operand): Handle vector zeros.
25414         (ix86_split_to_parts): Handle CONST_VECTOR.
25415         (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
25416         (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
25417         what modes to tie for MMX and SSE registers.
25418         * config/i386/i386.h (MMX_REG_MODE_P): Remove.
25419         * config/i386/i386.md: Extend move 0 -> xor peephole to apply
25420         to vector modes as well.
25421         * config/i386/predicates.md (const0_operand): Handle VOIDmode
25422         properly as an input mode.
25424 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
25426         * tree-ssa-operands.c (verify_abort): Use %p for pointers.
25428 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
25430         * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
25432 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
25434         * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
25435         and local functions, set sse_nregs to 8 and float_in_sse.
25436         (function_arg_advance, function_arg): If float_in_sse, pass
25437         SFmode and DFmode arguments in SSE registers.
25438         * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
25440         * config/i386/i386.c (ix86_value_regno): Only optimize local functions
25441         of -funit-at-a-time.
25443 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
25445         * config/i386/i386-protos.h (ix86_function_value): Accept two
25446         arguments, like the target macro.
25447         * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
25448         * config/i386/i386.c (ix86_function_value): Accept the second
25449         argument of the target macro.
25450         (ix86_function_ok_for_sibcall): Pass a function pointer to
25451         ix86_function_value.
25452         (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
25453         call to ix86_value_regno).
25454         (ix86_value_regno): Add support for returning floating point values
25455         in SSE registers.
25457 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
25459         PR tree-optimization/20076
25460         * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
25461         that call __builtin_return or __builtin_apply_args.
25463 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
25465         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
25466         Use immediate use iterator.
25467         (stmt_is_bumper_for_loop): Use immediate use iterator.
25468         * predict.c (strip_builtin_expect): Use update_stmt.
25469         * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
25470         on all elements of a STATEMENT_LIST.
25471         (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
25472         (bsi_remove): Remove imm_use links and mark the stmt as modified.
25473         (bsi_replace): Mark stmt as modified and the update it.
25474         * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
25475         (expand_complex_libcal): Call update_stmt.
25476         (expand_complex_comparison): Call mark_stmt_modified.
25477         (expand_complex_operations_1): Call update_stmt_if_modified.
25478         (expand_vector_operations_1): Call mark_stmt_modified.
25479         * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
25480         compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
25481         add_immediate_use, redirect_immediate_use,
25482         redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
25483         dump_immediate_uses_for, debug_immediate_uses_for): Delete.
25484         (mark_new_vars_to_rename): Call update_stmt.
25485         * tree-dump.c (dump_option_value_in): Add "stmtaddr".
25486         * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.
25487         Ignore PHI nodes.
25488         (unmodify_stmt): Delete.
25489         (update_stmt): New.  Force an update of a stmt.
25490         (update_stmt_if_modified): update a stmt if it is out of date.
25491         (get_stmt_operands): Verify stmt is NOT modified.
25492         (stmt_modified_p): Update comment.
25493         (delink_imm_use): Remove a use node from its immuse list.
25494         (link_imm_use_to_list): Link a use node to a specific list.
25495         (link_imm_use): Link a node to the correct list.
25496         (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
25497         it in the correct list, if appropriate.
25498         (link_imm_use_stmt): Link a use node, and set the stmt pointer.
25499         (relink_imm_use): Link a use node in place of another node in a list.
25500         (relink_imm_use_stmt): LInk a node in place of another node, and set
25501         the stmt pointer.
25502         (end_safe_imm_use_traverse): New.  Terminate a safe immuse iterator.
25503         (end_safe_imm_use_p): New.  Check for the end of a safe immuse iterator.
25504         (first_safe_imm_use): New.  Initialize a safe immuse iterator.
25505         (next_safe_imm_use): New.  Proceed to next safe immuse iterator value.
25506         (end_readonly_imm_use_p): New.  Check for end of a fast immuse iterator.
25507         (first_readonly_imm_use): New.  Initialize a fast immuse iterator.
25508         (next_readonly_imm_use): New.  Get the next fast immuse iterator value.
25509         (has_zero_uses): New.  Return true if there are no uses of a var.
25510         (has_single_use): New.  Return true if there is only a single use of a
25511         variable.
25512         (single_imm_use): New.  Return the simgle immediate use.
25513         (num_imm_uses): New.  Return the number of immediate uses.
25514         (get_v_must_def_ops): Use is now a pointer.
25515         (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
25516         get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of
25517         the use node.
25518         (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
25519         (delink_stmt_imm_use): Delink all immuses from a stmt.
25520         (phi_arg_index_from_use): New.  Return a phi arg index for a use.
25521         * tree-flow.h (struct dataflow_d): Delete.
25522         (immediate_use_iterator_d): New.  Immediate use iterator struct.
25523         (FOR_EACH_IMM_USE_FAST): New.  Macro for read only immuse iteration.
25524         (FOR_EACH_IMM_USE_SAFE): New.  Macro for write-safe immuse iteration.
25525         (BREAK_FROM_SAFE_IMM_USE): New.  Macro for earlyu exit from write-safe
25526         iteration.
25527         (struct stmt_ann_d): Remove dataflow_t from struct.
25528         * tree-if-conv.c (tree_if_conversion).  Don't call free_df.
25529         (if_convertible_phi_p): Use FAST immuse iterator.
25530         (if_convertible_loop_p): Don't call compute_immediate_uses.
25531         (replace_phi_with_cond_modify_expr): Call update_stmt.
25532         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call
25533         update_stmt_if_modified.
25534         (rewrite_all_into_ssa): Initialize ssa operands.
25535         * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
25536         compute_immediate_uses.
25537         * tree-optimize.c (execute_todo): Call verify_ssa whenever the
25538         ssa_property is available.
25539         (execute_one_pass):  Change parameters passed to execute_todo.
25540         * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
25541         (remove_ssa_form): Call fini_ssa_operands.
25542         (insert_backedge_copies): Delete call to modify_stmt.
25543         * tree-phinodes.c (make_phi_node): Initialize use nodes.
25544         (release_phi_node): Delink any use nodes before releasing.
25545         (resize_phi_node): Relink any use nodes.
25546         (remove_phi_arg_num): Delink the use node.
25547         (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
25548         (remove_all_phi_nodes_for): Release phi node first.
25549         * tree-pretty-print.c (dump_generic_node): Print stmt address.
25550         * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
25551         (scalarize_use, scalarize_copy): Call update_stmt.
25552         * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
25553         (compute_points_to_and_addr_escape): Call mark_stmt_modified.
25554         * tree-ssa-cpp.c (need_imm_uses_for): Delete.
25555         (ccp_initialize): Remove call to compute_immediate_uses.
25556         (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
25557         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified
25558         stmts.
25559         (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
25560         (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
25561         (eliminate_redundant_computations): Call mark_stmt_modified.
25562         (cprop_operand): Call mark_stmt_modified.
25563         (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
25564         * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
25565         (dse_optimize_stmt): Use new immuse interface.
25566         (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
25567         * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
25568         (substitute_single_use_vars): Use new immuse interface.
25569         (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
25570         and compute_immediate_uses.
25571         * tree-ssa-loop-im.c (single_reachable_address): Use new immuse
25572         interface.
25573         (rewrite_mem_refs): Call update_stmt.
25574         (determine_lsm): Remove call to compute_imm_uses and free_df.
25575         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
25576         (try_unroll_loop_completely): Call update_stmt.
25577         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
25578         (rewrite_use_compare): Call update_stmt.
25579         (compute_phi_arg_on_exit): Insert each stmt before trying to process.
25580         (rewrite_use) : Call update_stmt.
25581         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
25582         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call
25583         update_stmt.
25584         * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
25585         (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
25586         (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
25587         use nodes.
25588         (initialize_vuse_operand): New.  Initialize a vuse operand.
25589         (initialize_v_may_def_operand): New.  Initialize a maydef operand.
25590         (initialize_v_must_def_operand): New.  Initialize a mustdef operand.
25591         (finalize_ssa_defs): Use stmt parameter.
25592         (correct_use_link): Ensure a use node is in the correct list, and has
25593         the correct stmt pointer.
25594         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
25595         finalize_ssa_v_must_defs): Also initialize use nodes.
25596         (finalize_ssa_stmt_operands): Pass extra stmt operands.
25597         (build_ssa_operands): Seperate parsing from final operand construction.
25598         (parse_ssa_operands): New.  Parse entry point for operand building.
25599         (swap_tree_operands): New.  Swap 2 tree operands.
25600         (update_stmt_operands): Ranamed from get_stmt_operands.  Always builds
25601         operands.
25602         (get_expr_operands): Call swap_tree_operands when needed.
25603         (copy_virtual_operands): Use initialize routines for virtual use ops.
25604         (create_ssa_artficial_load_stmt): Add extra stmt parameter.
25605         (verify_abort): New.  Issue imm_use error.
25606         (verify_imm_links): New Verify imm_use links for a var.
25607         (dump_immediate_uses_for): New.  Dump imm_uses for a var to file.
25608         (dump_immediate_uses): New.  Dump imm_uses for all vars to file.
25609         (debug_immediate_uses): New.  Dump imm_uses for all vars to stderr.
25610         (debug_immediate_uses_for): New.  Dump imm_uses for a var to stderr.
25611         * tree-ssa-operands.h (struct use_operand_ptr): Delete.
25612         (NULL_USE_OPERAND_P) Define.
25613         (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
25614         use node.
25615         (struct vuse_operand_type): New struct.
25616         (SET_USE): Call set_ssa_use_from_ptr.
25617         (USE_STMT): Define.
25618         (PHI_ARG_INDEX_FROM_USE): Define.
25619         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi
25620         argument via SET_USE, not PHI_ARG_DEF_TREE.
25621         * tree-ssa-pre.c (eliminate): Call update_stmt.
25622         * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators.  Don't
25623         call free_df.
25624         * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
25625         (nearest_common_dominator_of_uses): Use imm_use iterator.
25626         (statement_sink_location): Use imm_use iterator and interface.
25627         (execute_sink_code): Don't call compute_immediate_uses or free-df.
25628         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
25629         PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
25630         * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
25631         (verify_ssa): Ensure no stmt is marked modify after optimization pass
25632         if new parameter is true.
25633         (init_tree_ssa): Don't initialize operand cache here.
25634         (delete_tree_ssa): Don't destroy operand cache here.
25635         (propagate_into_addr): Pass in a use pointer, return true if anything
25636         was changed.
25637         (replace_immediate_uses): Use imm_use iterator, call update_stmt.
25638         (check_phi_redundancy): Use imm_use iterator.
25639         (kill_redundant_phi_nodes): Don't call compute_immediate_uses or
25640         free_df.
25641         * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
25642         (release_ssa_name): Delink node and all elements in its imm_use list.
25643         * tree-tailcall.c (adjust_return_value): Call update_stmt.
25644         * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
25645         * tree-vectorizer.c (need_imm_uses_for): Delete.
25646         (vectorize_loops): Dont call compute_immediate_uses or free_df.
25647         * tree.h (struct ssa_imm_use_d): Define.
25648         (SSA_NAME_IMM_USE_NODE): Define.
25649         (struct tree_ssa_name): Add imm_use node.
25650         (PHI_DF): Delete.
25651         (PHI_ARG_IMM_USE_NODE): Define.
25652         (struct phi_arg_d): Add imm_use node.
25653         (struct tree_phi_node): Remove struct dataflow_d element.
25654         (TDF_STMTADDR): Define.
25656 2005-04-05  Dale Johannesen  <dalej@apple.com>
25658         * doc/invoke.texi (Optimization Options):  Remove
25659         duplicate -fcse-follow-jumps.  Add -fweb.
25660         (-ftree-lim):  Fix spelling (-ftree-loop-im, invariants).
25661         (-fivcanon):  Fix spelling (-ftree-loop-ivcanon).
25663 2005-04-05  Per Bothner  <per@bothner.com>
25665         * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
25666         to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
25667         (warn_uninit): Get EXPR_LOCUS from context now instead.
25668         This fixes a USE_MAPPED_LOCATION testsuite failure.
25670         * tree-ssa.c (warn_uninitialized_var): Remove useless local.
25672 2005-04-05  Per Bothner  <per@bothner.com>
25674         * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
25675         of the artification 'return 0' in main() to BUILTINS_LOCATION.
25676         * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
25677         before warning.
25679 2004-04-05  Devang Patel  <dpatel@apple.com>
25681         * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
25682         (lhsr<mode>3): ... new name.
25683         (altivec_vsra<VI_char>): Rename to ..
25684         (ashr<mode>3): ... new name.
25685         * config/rs6000/rs6000.c (builtin_description): Rename shift
25686         operations.
25688 2004-04-05  Paolo Bonzini  <bonzini@gnu.org>
25690         * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
25691         gen_lowpart_for_combine.
25692         * cse.c (gen_lowpart_if_possible): Move...
25693         * rtlhooks.c (gen_lowpart_if_possible): ... here.  Also try
25694         gen_lowpart_SUBREG.
25695         (gen_lowpart_no_emit_general): Use it.
25697 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
25699         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
25700         overriding.
25702 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
25704         * system.h: Fix typo.
25706 2005-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
25708         * config/bfin/bfin-modes.def: New file.
25709         * config/bfin/bfin-protos.h: New file.
25710         * config/bfin/bfin.c: New file.
25711         * config/bfin/bfin.h: New file.
25712         * config/bfin/bfin.md: New file.
25713         * config/bfin/bfin.opt: New file.
25714         * config/bfin/crti.s: New file.
25715         * config/bfin/crtn.s: New file.
25716         * config/bfin/elf.h: New file.
25717         * config/bfin/lib1funcs.asm: New file.
25718         * config/bfin/predicates.md: New file.
25719         * config/bfin/t-bfin: New file.
25720         * config/bfin/t-bfin-elf: New file.
25721         * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
25722         Document new attributes.
25723         (interrupt, interrupt_handler, saveall): Update documentation for
25724         these attributes.
25725         * doc/install.texi (Specific): Add entry for the Blackfin.
25726         * doc/invoke.texi (Blackfin Options): New section.
25727         * doc/md.texi (Blackfin family): New section to document constraints.
25728         * config.gcc: Add bfin*-* and bfin*-elf configurations.
25730 2005-04-05  Olivier Hainque  <hainque@adacore.com>
25732         * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
25733         match what the system unwinder expects.
25734         * config/mips/mips.c (mips_frame_set): If we're saving the return
25735         address register and the dwarf return address column number differs
25736         from the hard register number, adjust the note reg to refer to the
25737         former.
25739 2004-04-05  Richard Sandiford  <rsandifo@redhat.com>
25741         * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
25742         * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
25743         (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
25744         (processor_type): New enum.
25745         (mn10300_processor): New variable.
25746         (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
25747         (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
25748         * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
25749         (PROCESSOR_DEFAULT): New macro.
25750         * config/mn10300/mn10300.c (mn10300_processor): New variable.
25751         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
25752         (mn10300_handle_option, mn10300_override_options): New functions.
25753         * config/mn10300/mn10300.opt: New file.
25755 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
25756             Sebastian Pop <sebastian.pop@cri.ensmp.fr>
25758         PR tree-optimization/19903
25759         * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
25760         that don't fit in their type after conversion.
25762 2005-04-05  Uros Bizjak <uros@kss-loka.si>
25764         PR target/20421
25765         * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
25766         (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
25767         Allocate local stack slots here.  Set ix86_optimize_mode_switching.
25768         flag here. Implement using define_insn_and_split.
25769         (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
25770         (frndintxf2_mask_pm_i387): New insn patterns.
25771         (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
25772         Do not set ix86_optimize_mode_switching flag.
25773         (ceilsf2, ceildf2, ceilxf2): Same.
25774         (btruncsf2, btruncdf2, btruncxf2): Same.
25775         (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
25777 2005-04-05  Ian Lance Taylor  <ian@airs.com>
25779         PR debug/9963
25780         * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
25781         i386_pe_record_external_function.
25782         (i386_pe_record_external_function): Update declaration.
25783         * config/i386/winnt.c (struct extern_list): Add decl field.
25784         (i386_pe_record_external_function): Add decl parameter.
25785         (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
25786         identifier.
25787         * config/i386/i386-protos.h (i386_pe_record_external_function):
25788         Update declaration.
25790 2005-04-05  Kazu Hirata  <kazu@cs.umass.edu>
25792         * config/m68k/m68k-protos.h: Add a prototype for
25793         valid_dbcc_comparison_p_2.
25794         * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
25795         extend_operator, const_uint32_operand, const_sint32_operand,
25796         general_src_operand, nonimmediate_src_operand,
25797         memory_src_operand, post_inc_operand, pre_dec_operand,
25798         pcrel_address): Move to predicates to predicates.md.
25799         * config/m68k/m68k.h (PREDICATE_CODES): Remove.
25800         * config/m68k/m68k.md: Include predicates.md.
25801         * config/m68k/predicates.md: New.
25803 2005-04-04  Roger Sayle  <roger@eyesopen.com>
25805         * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
25807         * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
25809 2005-04-04  Ian Lance Taylor  <ian@airs.com>
25811         * c-typeck.c (struct c_switch): Rename switch_stmt field to
25812         switch_expr.
25813         (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
25814         (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
25815         (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
25816         Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
25817         * c-common.c (c_do_switch_warnings_1): New static function broken
25818         out of c_do_switch_warnings.
25819         (c_do_switch_warnings): Call c_do_switch_warnings_1.
25820         (c_do_switch_expr_warnings): New function.
25821         * c-common.h (c_do_switch_expr_warnings): Declare.
25823 2005-04-04  David Edelsohn  <edelsohn@gnu.org>
25824             Daniel Jacobowitz  <dan@codesourcery.com>
25826         * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
25827         trapping divide.
25828         * rtlanal.c (may_trap_p): Same.
25830 2005-04-04  Dale Johannesen  <dalej@apple.com>
25832         * ChangeLog:  remove reference to ChangeLog.12.
25834 2005-04-05  Hans-Peter Nilsson  <hp@axis.com>
25836         CRIS epilogue as RTL.
25837         * config/cris/cris.md: Change all 0 in unspec 0 to
25838         CRIS_UNSPEC_PLT.
25839         (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
25840         ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
25841         patterns.
25842         ("return"): Change to define_expand.  Call cris_expand_return for
25843         actual expansion.
25844         ("*return_expanded"): New pattern.
25845         ("epilogue"): New define_expand.
25846         * config/cris/cris.h (PREDICATE_CODES): Add
25847         cris_load_multiple_op.
25848         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
25849         type.
25850         (enum cris_retinsn_type): New.
25851         (struct machine_function): New member return_type.
25852         (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
25853         (cris_target_asm_function_epilogue): Remove, moving RTLified
25854         contents to...
25855         (cris_expand_epilogue): New function.
25856         (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
25857         (cris_gen_movem_load, cris_load_multiple_op)
25858         (cris_return_address_on_stack_for_return, cris_expand_return): New
25859         functions.
25860         (cris_target_asm_function_prologue)
25861         (cris_initial_frame_pointer_offset): Call
25862         cris_reg_saved_in_regsave_area instead of complicated expression.
25863         Call cris_return_address_on_stack instead of an expression.
25864         (cris_print_operand) <case 'o', case 'O'>: New cases.
25865         (cris_return_address_on_stack): Change return-type to bool.
25866         (cris_simple_epilogue): Ditto.  Return false if registers are
25867         saved.
25868         * config/cris/cris-protos.h (cris_simple_epilogue)
25869         (cris_return_address_on_stack): Adjust prototype return type.
25870         (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
25871         (cris_return_address_on_stack_for_return): New prototypes.
25873 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
25875         * config/frv/frv.h (PREDICATE_CODES): Add CONST to
25876         gpr_or_int12_operand.
25878         * config/frv/frv-protos.h: Add a prototype to
25879         frv_legitimate_memory_operand and frv_const_unspec_p.
25880         (frv_unspec): Move from frv.c.
25881         * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
25882         (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
25883         (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
25884         gpr_or_fpr_operand, gpr_or_int12_operand,
25885         gpr_fpr_or_int12_operand, fpr_or_int6_operand,
25886         gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
25887         int6_operand, int5_operand, uint5_operand, uint4_operand,
25888         uint1_operand, int_2word_operand, uint16_operand,
25889         upper_int16_operand, integer_register_operand,
25890         gpr_no_subreg_operand, fpr_operand, even_reg_operand,
25891         odd_reg_operand, even_gpr_operand, odd_gpr_operand,
25892         quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
25893         dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
25894         move_destination_operand, movcc_fp_destination_operand,
25895         frv_function_symbol_referenced_p, move_source_operand,
25896         condexec_dest_operand, condexec_source_operand,
25897         reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
25898         const_unspec_operand, gpr_or_memory_operand,
25899         gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
25900         icc_operand, fcc_operand, cc_operand, icr_operand,
25901         fcr_operand, cr_operand, call_operand, sibcall_operand,
25902         symbolic_operand, relational_operator,
25903         integer_relational_operator, float_relational_operator,
25904         ccr_eqne_operator, minmax_operator,
25905         condexec_si_binary_operator, condexec_si_media_operator,
25906         condexec_si_divide_operator, condexec_si_unary_operator,
25907         condexec_sf_conv_operator, condexec_sf_add_operator,
25908         condexec_memory_operand, intop_compare_operator, acc_operand,
25909         even_acc_operand, quad_acc_operand, accg_operand: Move to
25910         predicates.md.
25911         * config/frv/frv.h (PREDICATE_CODES): Remove.
25912         * config/frv/frv.md: Include predicates.md.
25913         * config/frv/predicates.md: New.
25915 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
25917         PR target/19537
25918         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
25919         * tree-ssa-loop-ivopts.c: Include langhooks.h.
25920         (add_standard_iv_candidates_for_size): New function, extracting code
25921         from add_standard_iv_candidates and parameterizing it by type size.
25922         (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
25924 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
25926         * system.h (GCOV_SIZE_TYPE): Unposion.
25927         * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
25928         (GCOV_TYPE_SIZE): ...this new macro.
25929         * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
25930         * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
25931         (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
25932         (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
25933         (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
25934         instead of unsigned_intSI_type_node.
25935         * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
25936         (rtl_gen_one_value_profiler_no_edge_manipulation)
25937         (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
25938         * value-prof.c: Include coverage.h.
25940 2005-04-02  Daniel Berlin  <dberlin@dberlin.org>
25941             Diego Novillo <dnovillo@redhat.com>
25943         Fix PR tree-optimization/20703
25944         Fix PR tree-optimization/20725
25946         * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
25947         (create_expression_by_pieces): Ditto.
25948         (valid_in_set): Ditto. Also handle tcc_declaration.
25949         (find_or_generate_expression): Handle comparison class.
25950         (insert_into_preds_of_block): Ditto.
25951         (insert_aux): Ditto.
25952         (create_value_expr_from): Handle comparison class, recursively
25953         handle reference nodes.
25954         (compute_avail): Handle comparison classes, rewrite a little cleaner.
25955         (execute_pre): Fix spacing.
25956         (do_fre): Renamed to execute_fre.
25958 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
25960         * doc/invoke.texi (SPARC options): Document that
25961         -mlittle-endian is not supported on Linux either.
25963 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
25965         PR target/4198
25966         PR target/12027
25967         * config.gcc (Obsolete configurations): Remove
25968         sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
25969         (sparclite-*-coff*): Delete.
25970         (sparclite-*-elf*): Likewise.
25971         (sparc86x-*-elf*): Likewise.
25972         (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
25973         * config/sparc/lite.h: Delete.
25974         * config/sparc/litecoff.h: Likewise.
25975         * config/sparc/liteelf.h: Likewise.
25976         * config/sparc/sp86x-elf.h: Likewise.
25977         * config/sparc/t-sparclite: Likewise.
25978         * config/sparc/t-sp86x: Likewise.
25980 2005-04-04  Adrian Straetling  <straetling@de.ibm.com>
25982         * config/s390/s390-protos.h: (s390_comparison,
25983         s390_alc_comparison, s390_slb_comparison, const0_operand,
25984         consttable_operand, larl_operand, s_operand,
25985         shift_count_operand, bras_sym_operand, load_multiple_operation,
25986         store_multiple_operation, s390_plus_operand): Remove prototypes.
25987         (s390_legitimate_address_without_index_p): New prototype.
25988         * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
25989         to s390.h.
25990         (s390_comparison, s390_alc_comparison, s390_slb_comparison,
25991         const0_operand, consttable_operand, larl_operand, s_operand,
25992         shift_count_operand, bras_sym_operand, load_multiple_operation,
25993         store_multiple_operation, s390_plus_operand): Move to
25994         predicates.md.
25995         (check_mode): Remove.
25996         (s390_branch_condition_mask): Remove 'static'. Move prototype to
25997         s390-protos.h.
25998         (s390_legitimate_address_without_index_p): New.
25999         * config/s390/s390.h (PREDICATE_CODES): Remove.
26000         * config/s390/s390.md: Include predicates.md.
26001         * config/s390/predicates.md: New.
26003 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
26005         PR target/20446
26006         * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
26007         * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
26008         (NEED_INDICATE_EXEC_STACK): Define to 1.
26009         * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
26010         (NEED_INDICATE_EXEC_STACK): Define to 1.
26011         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
26012         (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
26013         (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
26014         (pic_helper_emitted_p): New global.
26015         (emit_pic_helper): New function extracted from...
26016         (load_pic_register): ...here.  Add 'delay_pic_helper' parameter.
26017         Do not call emit_pic_helper if delay_pic_helper is true.
26018         (sparc_expand_prologue): Pass 'false' to load_pic_register.
26019         (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
26020         (sparc_file_end): New function.
26022 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
26024         * config/mcore/mcore-protos.h: Remove the prototypes for
26025         mcore_arith_reg_operand, mcore_general_movsrc_operand,
26026         mcore_general_movdst_operand, mcore_reload_operand,
26027         mcore_arith_J_operand, mcore_arith_K_operand,
26028         mcore_arith_K_operand_not_0, mcore_arith_M_operand,
26029         mcore_arith_K_S_operand, mcore_arith_imm_operand,
26030         mcore_arith_any_imm_operand, mcore_arith_O_operand,
26031         mcore_literal_K_operand, mcore_addsub_operand,
26032         mcore_compare_operand, mcore_load_multiple_operation,
26033         mcore_store_multiple_operation, mcore_call_address_operand.
26034         Add a prototype for const_ok_for_mcore.
26035         * config/mcore/mcore.c (mcore_call_address_operand,
26036         mcore_general_movsrc_operand, mcore_general_movdst_operand,
26037         mcore_arith_reg_operand, mcore_reload_operand,
26038         mcore_arith_J_operand, mcore_arith_K_operand,
26039         mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
26040         mcore_arith_M_operand, mcore_arith_imm_operand,
26041         mcore_arith_any_imm_operand, mcore_arith_O_operand,
26042         mcore_literal_K_operand, mcore_addsub_operand,
26043         mcore_compare_operand, mcore_load_multiple_operation,
26044         mcore_store_multiple_operation): Move to predicates.md.
26045         (const_ok_for_mcore): Export.
26046         * config/mcore/mcore.h (PREDICATE_CODES): Remove.
26047         * config/mcore/mcore.md: Include predicates.md.
26048         * config/mcore/predicates.md: New.
26050         * config/mcore/predicates.md: Fix a comment typo.
26052 2005-04-04  Andreas Krebbel  <krebbel1@de.ibm.com>
26053             Adrian Straetling  <straetling@de.ibm.com>
26055         * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
26056         * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
26057         * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
26058         attribute.
26059         ("imul"): Removed from "type" attribute.
26060         ("*muldi3_sign", "muldi3"): Changed type to imuldi.
26061         ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
26062         Changed type to imulsi.
26063         ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
26065 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
26067         * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
26068         (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
26069         (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
26070         (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
26071         (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
26072         (TARGET_SWITCHES, mcore_stack_increment_string)
26073         (TARGET_OPTIONS): Delete.
26074         (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
26075         than *_BIT constants.
26076         (TARGET_8ALIGN): #undef old definition before redefining to 1.
26077         * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
26078         (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
26079         (mcore_override_options): Delete mcore_stack_increment code.
26080         Change use of M340_BIT to MASK_M340.
26081         * config/mcore/mcore.opt: New file.
26083 2005-04-04  Ian Lance Taylor  <ian@airs.com>
26085         * config/arm/arm.c (replace_symbols_in_block): Remove static
26086         function.
26088 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
26090         * config/fr30/fr30-protos.h: Remove the prototypes for
26091         stack_add_operand, add_immediate_operand,
26092         high_register_operand, low_register_operand, call_operand,
26093         di_operand, and nonimmediate_di_operand.
26094         * config/fr30/fr30.c (stack_add_operand,
26095         add_immediate_operand, high_register_operand,
26096         low_register_operand, call_operand, di_operand,
26097         nonimmediate_di_operand): Move to predicates.md.
26098         * config/fr30/fr30.h (PREDICATE_CODES): Remove.
26099         * config/fr30/fr30.md: Include predicates.md.
26100         * config/fr30/predicates.md: New.
26102         * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
26103         LABEL_REF to mcore_general_movsrc_operand.  Add SYMBOL_REF to
26104         mcore_call_address_operand.
26106         * config/sh/sh.h (PREDICATE_CODES): Add CONST to
26107         general_movsrc_operand.
26109 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
26111         * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
26112         after freeing.
26114 2005-04-04  Richard Earnshaw  <richard.earnshaw@arm.com>
26116         PR target/14812
26117         * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
26118         a negated value.
26120 2005-04-04  Richard Henderson  <rth@redhat.com>
26121             Jakub Jelinek  <jakub@redhat.com>
26123         PR rtl-optimization/16104
26124         * fold-const.c (fold_unary): Fix folding of vector conversions.
26126 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
26128         * config.gcc (xstormy16-*-elf): Set extra_options.
26129         * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
26130         * config/stormy16/stormy16.opt: New file.
26132 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
26134         * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
26135         (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
26136         (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
26137         (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
26138         (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
26139         (TARGET_UNIX_ASM): Delete.
26140         (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
26141         * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
26142         * config/pdp11/pdp11.c (pdp11_handle_option): New function.
26143         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
26144         * config/pdp11/pdp11.opt: New file.
26146 2005-04-03  Roger Sayle  <roger@eyesopen.com>
26147             Alexandre Oliva  <aoliva@redhat.com>
26149         PR c++/19199
26150         * fold-const.c (non_lvalue): Split tests into...
26151         (maybe_lvalue_p): New function.
26152         (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
26153         C++ front-end prior to lowering into gimple form.
26155 2005-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26157         * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
26158         BUILT_IN_STRNCASECMP): New.
26159         * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
26160         and strndup.
26162 2005-04-03  Richard Earnshaw  <richard.earnshaw@arm.com>
26164         PR target/14812
26165         * arm.md (addsi3_compare0_for_combiner): Delete.
26166         (addsi3_compare0_scratch_for_combiner): Delete.
26167         (cmpsi_neg_shiftsi): Delete.
26168         (compare_negsi_si): New pattern.
26169         (cmpsi_negshiftsi_si): New pattern.
26170         (negated_cbranchsi4): Restrict to equality_operator.
26172         * arm.md (movhi_insn_arch4): delete trailing white space from assembler
26173         template.
26175 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
26177         * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
26178         Fix comment typos.
26180         * doc/install.texi: Fix a typo.
26182 2005-04-03  Steven Bosscher  <stevenb@suse.de>
26184         PR middle-end/20648
26185         * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
26186         a computed goto if the edge to the computed goto block has
26187         incoming abnormal edges.  Clarify how the function works.
26189 2005-04-03  Nathan Sidwell  <nathan@codesourcery.com>
26191         * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
26192         * passes.c (open_dump_file, rest_of_handle_final): Likewise.
26193         * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
26194         hash_scan_set, reg_set_between_after_reload_p,
26195         reg_used_between_after_reload_p, get_avail_load_store_reg,
26196         eliminate_partially_redundant_load): Likewise.
26197         * postreload.c (reload_cse_simplify_set,
26198         reload_combine_note_use): Likewise.
26199         * predict.c (predict_insn, expected_value_to_br_prob,
26200         propagate_freq, expensive_function_p): Likewise.
26201         * print-rtl.c (print_rtx): Likewise.
26202         * profile.c (instrument_edges, instrument_values,
26203         compute_branch_probabilities, branch_prob, union_groups,
26204         tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
26205         * protoize.c (in_system_include_dir, file_could_be_converted,
26206         file_normally_convertible, gen_aux_info_file, seek_to_line,
26207         do_cleaning): Likewise.
26208         * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
26209         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
26210         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
26212 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
26214         * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
26215         * modulo-sched.c (undo_replace_buff_elem): New structure.
26216         (kernel_number_of_cycles, ps_unschedule_node,
26217         undo_generate_reg_moves,free_undo_replace_buff,
26218         undo_permute_partial_schedule,  loop_single_full_bb_p,
26219         SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
26220         build_loops_structure, get_sched_window): New.
26221         (generate_reg_moves): Return undo_replace_buff_elem and other
26222         fixes.
26223         (generate_prolog_epilog): Remove old loop versioning.
26224         (sms_schedule): Use loop information and loop_version.
26225         (sms_schedule_by_order): Split part of it to get_sched_window.
26226         * passes.c (rest_of_handle_sms): call cfg_layout_initialize
26227         cfg_layout_finalize and free_dominance_info before/after SMS.
26229 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
26231         * cfghooks.c (lv_flush_pending_stmts,
26232         cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
26233         lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
26234         * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
26235         lv_add_condition_to_bb,
26236         lv_adjust_loop_header_phi, extract_cond_bb_edges,
26237         flush_pending_stmts): New in cfg_hooks structure.
26238         (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
26239         extract_cond_bb_edges, lv_adjust_loop_header_phi,
26240         lv_add_condition_to_bb): New declarations.
26241         * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
26242         bool.
26243         (loop_version): Declare.
26244         * cfgloopmanip.c (cfghooks.h): Include.
26245         (duplicate_loop_to_header_edge): Change return type to bool.
26246         (loop_version, lv_adjust_loop_entry_edge): Move here.
26247         * cfgrtl.c (cfgloop.h): Include.
26248         (rtl_verify_flow_info_1): Fix.
26249         (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
26250         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
26251         initialization.
26252         * tree-cfg.c (tree_lv_adjust_loop_header_phi,
26253         tree_lv_add_condition_to_bb): New.
26254         (tree_cfg_hooks): Add new hooks to initialization.
26255         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
26256         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
26258 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
26260         * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
26261         xstormy16_below100_or_register,
26262         xstormy16_splittable_below100_or_register, and
26263         nonimmediate_nonstack_operand.
26265         * config/stormy16/stormy16-protos.h: Remove the prototypes for
26266         xstormy16_ineqsi_operator, equality_operator,
26267         inequality_operator, shift_operator,
26268         xstormy16_below100_operand, xstormy16_below100_or_register,
26269         xstormy16_splittable_below100_or_register,
26270         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
26271         * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
26272         equality_operator, inequality_operator,
26273         xstormy16_below100_operand, xstormy16_below100_or_register,
26274         xstormy16_splittable_below100_or_register,
26275         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
26276         nonimmediate_nonstack_operand, shift_operator): Move to
26277         predicates.md.
26278         * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
26279         * config/stormy16/stormy16.md: Include predicates.md.
26280         * config/stormy16/predicates.md: New.
26282 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
26284         * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
26285         small_int, large_int, reg_or_0_operand, simple_memory_operand,
26286         equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
26287         move_operand, power_of_2_operand): Move to predicates.md.
26288         * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
26289         PREDICATE_CODE): Remove.
26290         * config/iq2000/iq2000.md: Include predicates.md.
26291         * config/iq2000/predicates.md: New.
26293 2005-04-02  Richard Sandiford  <rsandifo@redhat.com>
26295         * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
26296         (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
26297         (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
26298         (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
26299         (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
26300         (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
26301         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
26302         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
26303         (TARGET_M68HC11): Delete.
26304         (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
26305         * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
26306         * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
26307         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
26308         (nb_soft_regs): Delete.
26309         (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
26310         (m68hc11_override_options): Remove the code that caters for MASK_M6811
26311         and MASK_M6812 being set simultaneously.  Change the code that sets
26312         the default m68hc11_soft_reg_count to use integers instead of strings.
26313         (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
26314         m68hc11_soft_reg_count (which now has an int type) as the number
26315         of soft registers.
26316         * config/m68hc11/m68hc11.opt: New file.
26318 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
26320         * config/fr30/fr30.h (PREDICATE_CODES): Remove
26321         fp_displacement_operand, sp_displacement_operand.
26323         * config/m68hc11/m68hc11-protos.h: Add a prototype for
26324         m68hcc_auto_inc_p.
26325         Remove the prototypes for tst_operand, cmp_operand,
26326         stack_register_operand, d_register_operand,
26327         hard_addr_reg_operand, splitable_operand,
26328         m68hc11_logical_operator, m68hc11_arith_operator,
26329         m68hc11_non_shift_operator, m68hc11_shift_operator,
26330         m68hc11_unary_operator, m68hc11_eq_compare_operator,
26331         non_push_operand, hard_reg_operand, and
26332         reg_or_some_mem_operand.
26333         * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
26334         extern.
26335         (tst_operand, cmp_operand, non_push_operand,
26336         splitable_operand, reg_or_some_mem_operand,
26337         stack_register_operand, d_register_operand,
26338         hard_addr_reg_operand, hard_reg_operand,
26339         m68hc11_eq_compare_operator, m68hc11_logical_operator,
26340         m68hc11_arith_operator, m68hc11_non_shift_operator,
26341         m68hc11_shift_operator, m68hc11_unary_operator): Move to
26342         predicates.md.
26343         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
26344         * config/m68hc11/m68hc11.md: Include predicates.md.
26345         * config/m68hc11/predicates.md: New.
26347 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
26349         PR debug/19345
26350         * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
26351         change checked in along with 2005-03-03's patch for debug/20253.
26352         * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
26353         (remap_decl): Insert type decl in map earlier.
26355 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
26357         PR tree-optimization/20640
26358         * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
26359         post-dominator if it has phi nodes.
26360         (eliminate_unnecessary_stmts): Remove dead phis in all blocks
26361         before dead statements.
26363 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
26365         PR middle-end/20491
26366         * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
26368 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
26370         PR rtl-optimization/20290
26371         * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
26372         in every iteration if the entry point is the exit test.
26374 2005-04-02  Hans-Peter Nilsson  <hp@axis.com>
26376         * config/cris/cris.md (attribute "length"): Define.
26378 2005-04-02  Geoffrey Keating  <geoffk@apple.com>
26380         * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
26381         (word_offset_memref_operand): New.
26382         * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
26383         (indexed_or_indirect_operand): Delete.
26384         * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
26385         (indexed_or_indirect_operand): Delete.
26387         * config/rs6000/t-darwin8: Comment out ppc64 multilib.
26389         PR 20650
26390         * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
26391         a register.
26393         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
26394         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
26396 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26398         * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
26400 2005-04-01  Ian Lance Taylor  <ian@airs.com>
26402         * gcc.c: Don't include <sys/resource.h> or declare getrusage.
26403         (rus, prus): Remove static variables.
26404         (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
26405         (process_command): Permit report_times and use_pipes together.
26407 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
26409         * c-decl.c (validate_proto_after_old_defn): Look at
26410         TYPE_MAIN_VARIANT of argument types.
26412 2005-04-01  Paul Brook  <paul@codesourcery.com>
26414         * config/arm/arm.c (thumb_call_via_label): Include space for SP.
26415         (arm_output_function_epilogue): Allow call_via_SP.
26416         (thumb_call_via_reg, arm_file_end): Ditto.
26417         * config/arm/arm.h (struct machine_function): Include space for SP.
26418         (thumb_call_via_label): Update declaration.
26420 2005-04-01  Ian Lance Taylor  <ian@airs.com>
26422         * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
26423         doing a peephole optimization, once again put any notes in the
26424         proper position.
26426 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26428         * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
26430 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
26432         * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
26433         (block_alloc, find_free_reg): Likewise.
26434         * loop-doloop.c (doloop_modify): Likewise.
26435         * loop-invariant.c (record_use): Likewise.
26436         * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
26437         get_iv_value, canon_condition, eliminate_implied_condition,
26438         eliminate_implied_condition, simplify_using_initial_values,
26439         shorten_into_mode, canonicalize_iv_subregs,
26440         iv_number_of_iterations): Likewise.
26441         * loop-unroll.c (expand_var_during_unrolling): Likewise.
26442         * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
26443         unswitch_loop): Likewise.
26444         * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
26445         move_movables, replace_call_address, find_and_verify_loops,
26446         rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
26447         record_giv, final_giv_value, general_induction_var,
26448         simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
26449         loop_giv_dump): Likewise.
26451         * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
26452         GCOV_CHECK_WRITING): Remove.
26453         (gcov_position, gcov_rewrite): Use gcc_assert.
26454         * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
26455         gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
26456         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
26457         gcc_assert.
26459 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26461         * tree-inline.c: Fix a typo.
26463 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
26465         * configure.ac (enable-checking): Explicitly set all variables for
26466         collective switch values.  Alphabetize variables. Rename
26467         ac_checking_valgrind to ac_valgrind_checking.  Allow 'none' as
26468         synonym for 'no'.
26469         * doc/install.texi (enable-checking): Update documentation.
26470         * configure: Rebuilt.
26472 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26474         * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
26475         possible.
26477 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
26479         * arm.c (adjacent_mem_locations): Reject volatile memory refs.
26480         Also reject cases where this pattern will cause load delay stalls
26481         unless optimizing for size and it will produce a shorter sequence.
26482         * arm.md (arith_adjacent_mem): Make better use of ldm addressing
26483         variants to avoid pre-adjusting the base when possible.
26485 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
26487         * arm.md (minmax_arithsi): Reject all eliminable registers, not just
26488         the frame and argument pointers.
26489         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
26490         (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
26491         (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
26492         (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
26493         (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
26494         (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
26496 2005-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
26498         * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
26499         with entry for selectany attribute.
26500         * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
26501         Declare.
26502         * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
26503         (i386_pe_asm_named_section): Handle sections generated by
26504         selectany attribute.
26505         * doc/extend.texi (selectany): Document attribute.
26507 2005-04-01  Paolo Bonzini  <bonzini@gnu.org>
26508             Jan Hubicka  <jh@suse.cz>
26510         * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
26511         to fix addresses involving EBP and ESP.
26512         (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
26513         for SUBREGed registers.
26514         (legitimate_address_p): Accept SUBREGed registers.
26516 2005-04-01  Jakub Jelinek  <jakub@redhat.com>
26518         PR c++/19406
26519         * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
26520         (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
26521         for FIELD_DECLs.
26523 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26525         * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
26527 2005-04-01  James E Wilson  <wilson@specifixinc.com>
26529         PR c++/20505
26530         * dwarf2out.c (rtl_for_decl_init): New function.
26531         (rtl_for_decl_location): Extracted from here.
26532         (tree_add_const_value_attribute): Call rtl_for_decl_init and
26533         add_const_value_attribute.  Delete initializer_constant_valid_p call.
26535 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26537         * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
26538         lambda-code.c, loop.c, machmode.def, mips-tfile.c,
26539         modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
26540         tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
26541         config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
26542         config/i386/i386.md, config/rs6000/predicates.md,
26543         config/rs6000/rs6000.c, config/s390/fixdfdi.h,
26544         config/s390/s390.c, config/stormy16/stormy16.c,
26545         config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
26546         typos.
26548 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
26550         PR c/17855
26551         * gimplify.c (gimplify_expr): Create a temporary for lvalue
26552         COND_EXPR and CALL_EXPR.
26554 2005-03-31  Vladimir Makarov  <vmakarov@redhat.com>
26556         PR target/20632
26557         * genautomata.c (first_cycle_unit_presence): Check all alternative
26558         states for unit presence.
26560         * doc/md.texi: Remove remark about impossibility to query unit
26561         presence in non nondeterministic automaton state.
26563         * config/ia64/ia64.c (get_template): Change order of unit querying.
26565 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
26567         * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
26568         obsolete comment.
26570 2005-03-31  Zdenek Dvorak  <dvorakz@suse.cz>
26572         * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
26573         flag for edges outside any loops.
26575 2005-03-31  Janis Johnson  <janis187@us.ibm.com>
26577         * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
26579 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
26581         * tree-ssa-alias.c: Follow spelling conventions.
26582         * doc/tree-ssa.texi: Fix a typo.
26584 2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
26586         * postreload-gcse.c: Include target.h.
26587         (gcse_after_reload_main): Return early if we cannot modify jumps.
26588         * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
26590 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
26592         * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
26593         expensive operations.
26595 2005-03-31  Ian Lance Taylor  <ian@airs.com>
26597         * collect2.c (lderrout): New variable.
26598         (collect_exit): Dump ldout to stdout.  Dump and unlink lderrout,
26599         if it is set, to stderr.
26600         (handler): Unlink lderrout if it is set.
26601         (dump_file): Add "to" parameter.  Change all callers.
26602         (main): Initialize lderrout.
26603         (collect_execute): Add errname parameter.  Change all callers.
26604         Rename redir parameter to outname.  Never pass
26605         PEX_STDERR_TO_STDOUT to pex_run.
26606         * collect2.h (collect_execute, dump_file): Update declarations.
26607         * tlink.c (tlink_execute): Add errname parameter.  Change all
26608         callers.
26609         (do_tlink): Check lderrout as well as ldout.
26611 2005-03-31  Caroline Tice  <ctice@apple.com>
26613         * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
26614         (bb-reorder.o): Add errors.h to list of requirements.
26615         (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
26616         profiledbootstrap flags.
26617         * bb-reorder.c (errors.h): Add new include.
26618         (struct bbro_basic_block_data_def): Add new field, in_trace.
26619         (add_unlikely_executed_notes):  Remove function.
26620         (mark_bb_for_unlikely_executed_section): Remove function.
26621         (insert_section_boundary_note): New function.
26622         (verify_hot_cold_block_grouping): New function.
26623         (push_to_next_round_p): Remove variables and tests that push all
26624         cold blocks to last round.
26625         (find_traces): Remove code that added extra round of trace finding
26626         when doing partitioning.
26627         (find_traces_1_round) :  Remove variable last_round;  add code to
26628         update new struct field, in_trace; correct trace_length where it was
26629         incorrect before (after call to copy_bb); change code that pushed all
26630         cold blocks to last round. Instead verify that all blocks going into
26631         a trace belong in the same partition.
26632         (connect_traces): Modify to connect the traces in two passes, if the
26633         function contains both hot and cold blocks.  The first pass connects
26634         all the traces for blocks in the partition that the first block in
26635         the function belongs to; the second pass connnects all the traces
26636         containing blocks that belong in the other partition.
26637         (find_rarely_executed_basic_blocks_and_crossing_edges):  Remove
26638         code that automatically put the first block in a function into the
26639         hot partition if the function had any hot blocks.
26640         (fix_crossing_unconditional_branches): Check number of succ edges
26641         before attempting to get one.
26642         (fix_edges_for_rarely_executed_code):  Update comment describing
26643         function.
26644         (reorder_basic_blocks):  Add code to initialize new field (in_trace);
26645         remove call to add_unlikely_executed_notes; add call to
26646         verify_hot_cold_block_grouping.
26647         (duplicate_computed_gotos): Don't change computed goto if it's a
26648         crossing edge.
26649         (partition_hot_cold_basic_blocks):  Update function comment.
26650         * cfgcleanup.c (try_simplify_condjump): Remove redundacy from
26651         condition.
26652         (try_forward_edges): Likewise.
26653         (merge_blocks_move_predecessor_nojumps): Likewise.
26654         (merge_blocks_move_successor_nojumps): Likewise.
26655         (merge_blocks_move): Likewise.
26656         (try_crossjump_bb): Likewise.
26657         * cfglayout.c (update_unlikely_executed_notes): Remove function.
26658         (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
26659         notes to cold bb's; remove call to update_unlikely_executed_notes.
26660         (duplicate_insn_chain):  change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
26661         NOTE_INSN_SWITCH_TEXT_SECTIONS.
26662         * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
26663         function declaration.
26664         * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
26665         from consideration.
26666         (rtl_can_merge_blocks): Remove redundancy from condition.
26667         (try_redirect_by_replacing_jump): Likewise.
26668         (force_nonfallthru_and_redirect): Remove code for adding
26669         UNLIKELY_EXECUTED_CODE notes to cold bb's.
26670         (commit_one_edge_insertion): Likewise.
26671         (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
26672         * dbxout.c (FORCE_TEXT): Replace function_section with
26673         current_function_section.
26674         (struct dbx_debug_h): Add do_nothing function for new debug_hooks
26675         function, switch_text_section.
26676         (struct xcoff_debug): Likewise.
26677         (dbxout_function_end): Add code to put out label diffs for both
26678         hot and cold sections.
26679         * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
26680         for new debug_hooks funciton, switch_text_section..
26681         * debug.h (struct gcc_debug_hooks):  Add new function to debug_hooks,
26682         switch_text_section.
26683         * dwarf2out.c (struct dw_fde_struct):  Add five new fields:
26684         dw_fde_hot_section_label, dw_fde_hot_section_end_label,
26685         dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and
26686         dw_fde_switched_sections.
26687         (output_call_frame_info):  Add test to see if function switches text
26688         sections in the middle; if so, use appropriate extra hot and cold
26689         section labels to compute size deltas for the hot and cold sections.
26690         (dwarf2out_begin_prologue): Add code to initialize new fields in
26691         dw_fde_struct.
26692         (dwarf2out_switch_text_section): New function (invoked through
26693         debug_hook); updates new fields in dw_fde_struct appropriately and
26694         increments separate_line_info_table_in_use.
26695         (dwarf2_debug_hooks): Initialize switch_text_section function to be
26696         dwarf2out_switch_text_section.
26697         (struct var_loc_node): Add new field, section_label.
26698         (output_aranges): Add code to check whether in hot or cold section and
26699         use the appropriate label in calculating deltas.
26700         (output_ranges): Likewise.
26701         (output_line_info): Add code to check which section we're in and
26702         use appropriate hot/cold label.
26703         (add_location_or_constant_value_attribute): Likewise.
26704         (gen_subprogam_die): Modify arange attributes to use correct labels.
26705         (dwarf2out_begin_block): Change call to function_section into call to
26706         current_function_section.
26707         (dwarf2out_end_block): Likewise.
26708         (dwarf2out_source_line): Likewise.
26709         (dwarf2out_var_location): Add code to check whether in hot or cold
26710         section and use the appropriate label.
26711         * except.c (output_function_exception_table): Change call to
26712         function_section into call to current_function_section.
26713         * final.c (profile_function): Likewise.
26714         (scan_ahead_for_unlikely_executed_note): Remove function.
26715         (final_scan_insn):  Remove calls to
26716         scan_ahead_for_unlikely_executed_note, and related code for switching
26717         to cold section, except for the single time
26718         NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered;  add calls to
26719         debug_hooks->switch_text_sections; replace appropriate calls to
26720         function_section with calls to current_function_section.
26721         * ifcvt.c (find_if_case_1): Remove redundancy from condition, add
26722         test_bb to condition.
26723         (find_if_case_2): Likewise.
26724         * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
26725         NOTE_INSN_SWITCH_TEXT_SECTIONS.  Update comment appropriately.
26726         * opts.c (decode_options): Change warning about hot/cold partitioning
26727         with exceptionss to inform (so as not to cause bootstrap failures);
26728         remove warning about partitioning with DWARF debug info.
26729         * output.h (current_function_section): Add new function decl.
26730         (insert_section_boundary_note): Likewise.
26731         (enum in_section): Move this declaration here from varasm.c.
26732         (unlikely_section_label): Likewise.
26733         (unlikely_text_section_name): Likewise.
26734         (last_text_section_name): New global variable.
26735         (last_text_section): Likewise.
26736         (hot_section_label): Likewise.
26737         (hot_section_end_label): Likewise.
26738         (cold_section_end_label): Likewise.
26739         * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
26740         * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
26741         to NOTE_INSN_SWITCH_TEXT_SECTIONS.
26742         * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note
26743         insn from consideration.
26744         * sdbout.c (sdb_debug_hooks): Add do_nothing for new function,
26745         switch_text_section.
26746         * varasm.c (basic-block.h): Add new include.
26747         (unlikely_section_label_printed): Remove global variable.
26748         (unlikely_section_label): Make global variable not be static any more.
26749         (unlikely_text_section_name): Likewise.
26750         (hot_section_end_label): New global variable (not static)
26751         (first_function_block_is_cold): Likewise.
26752         (hot_section_label): Likewise.
26753         (cold_section_end_label): Likewise..
26754         (last_text_section): New global variable, not static.
26755         (last_text_section_name): New global variable, not static.
26756         (initialize_cold_section_name): New function.
26757         (enum in_section): Move declaration to output.h.
26758         (text_section): Update last_text_section.
26759         (unlikely_text_section): Replace code to determine cold section name
26760         with call to initialize_cold_section_name; Add code to update
26761         last_text_section; remove code for printing out label.
26762         (named_section_real): Add code to update last_text_section and
26763         last_text_section_name as appropriate.
26764         (function_section): Change test for 'unlikely' to depend on
26765         first_function_block_is_cold (moved old test to
26766         current_function_section).
26767         (current_function_section): New function.
26768         (assemble_start_function): Move code that frees
26769         unlikely_text_section_name; initialize hot_section_end_label;
26770         print hot and cold section labels at the start of the function;
26771         set first_function_block_is_cold, if appropriate; initialize l
26772         ast_text_section; add call to insert_section_boundary_note.
26773         (assemble_end_function):  Add code to write out hot and cold section
26774         end labels.
26775         *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
26776         switch_text_section.
26777         * config/darwin.c (machopic_select_section): Replace incorrect
26778         function in base_funs; update reloc for cold sections if necessary.
26779         * config/darwin.h (SECTION_FUNCTION):  Add code to update
26780         last_text_section if appropriate.
26781         (text_unlikely_section): Remove.
26782         * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
26783         * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
26784         * config/xtensa/xtensa.c (override_options): Turn off hot/cold
26785         partitioning for this architecture.
26787 2005-03-31  Olivier Hainque  <hainque@adacore.com>
26789         * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
26790         defined and non-zero.
26792 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
26794         PR c++/18644
26795         * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
26796         semantics.
26798 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
26800         PR target/20611
26801         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
26802         label operand.  Remove (use (unspec..)).  Don't emit a label on
26803         the offset word.
26804         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
26805         generate inline label for load_toc_v4_PIC_1b.
26806         (rs6000_emit_load_toc_table): Likewise.
26808 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
26810         * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
26811         ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
26813 2005-03-29  Devang Patel  <dpatel@apple.com>
26815         * tree-sra.c (decide_block_copy): Disable scalarization of
26816         sub-elements.
26818 2005-03-30  Stuart Hastings  <stuart@apple.com>
26819             Dale Johannesen  <dalej@apple.com>
26821         * Makefile.in (print-tree.o):  Depend on tree-iterator.h.
26822         * print-tree.c (print_node):  Add case STATEMENT_LIST.
26824 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
26826         * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
26827         (powerpc64-*-linux*): Use it.  Rearrange tm_file assignment.
26828         (powerpc-*-linux*): Build a biarch compiler when --enable-targets
26829         is given with "powerpc64*" or "all", or when --with-cpu chooses
26830         a 64-bit cpu.
26832 2005-03-30  James E. Wilson  <wilson@specifixinc.com>
26834         PR debug/20268
26835         * dwarf2out.c (add_high_low_attributes): New function, extracted from
26836         gen_lexical_block_die.
26837         (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
26839 2005-03-31  Jan Hubicka  <jh@suse.cz>
26841         2004-11-02  Jan Hubicka  <jh@suse.cz>
26843         * cgraph.c (cgraph_varpool_node_name): New function.
26844         (dump_cgraph_varpool_node): New function.
26845         (dump_varpool): New function.
26846         * cgraphunit.c (cgraph_optimize): Dump varpool.
26848         2004-10-16  Jan Hubicka  <jh@suse.cz>
26850         * cgraph.c (decide_is_variable_needed): New function.
26851         (cgraph_varpool_finalize_decl): Use it.
26852         * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
26853         unit-at-a-time.
26854         * final.c (output_addr_const): Do not call mark_referenced.
26855         * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
26856         always go via cgraph.
26857         * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
26858         (check_global_declarations): Ifdef out code clearing DECL_RTL.
26859         * tree-optimize.c (execute_inline): Mark functions called.
26860         * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
26862         2004-10-11  Jan Hubicka  <jh@suse.cz>
26864         * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
26865         (cgraph_varpool_last_needed_node): New static variable.
26866         (enqueue_needed_varpool_node): Break out from ...; add items to the
26867         end of queue; update first pointers.
26868         (cgraph_varpool_mark_needed_node): ... here.
26869         (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
26870         (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
26871         * cgraph.h (cgraph_varpool_node): Add analyzed field.
26872         (cgraph_varpool_first_unanalyzed_node): Declare.
26873         * cgraphunit.c: Include output.h.
26874         (cgraph_varpool_analyze_pending_decls): New function.
26875         (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
26876         for errors, analyze pending decls.
26877         (cgraph_finalize_compilation_unit): Only analyze decls.
26878         (cgraph_optimize): Assemble the decls after expanding.
26880 2005-03-30  Daniel Berlin  <dberlin@dberlin.org>
26882         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
26883         subvars get marked properly in tags for grouping.
26884         (add_pointed_to_var): Mark only actual pointed to
26885         variables/subvars in addresses needed.
26886         (create_overlap_variables_for): Clear call clobbered on original
26887         variable.
26888         * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
26889         addresable vars with subvars into list.
26890         * tree-ssa.c (verify_ssa_name): Verify original is not used where
26891         subvar should be.
26893 2005-03-30  Richard Henderson  <rth@redhat.com>
26895         * cgraph.h (struct cgraph_node): Add alias.
26896         * varasm.c (assemble_alias): Set it.
26897         * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
26898         avoid calling cgraph_expand_function.
26900 2005-03-30  Tom Tromey  <tromey@redhat.com>
26902         * tree.def (FILE_TYPE): Removed.
26903         * typeclass.h (enum type_class): Removed file_type_class.
26904         * dwarf2out.c (is_base_type): Updated.
26905         (gen_type_die): Likewise.
26906         * dbxout.c (dbxout_type): Updated.
26907         * builtins.c (type_to_class): Updated.
26908         * tree.c (type_contains_placeholder_1): Updated.
26909         * config/sparc/sparc.c (sparc_type_code): Updated.
26910         * config/ia64/ia64.c (hfa_element_mode): Updated.
26911         * expr.c (count_type_elements): Updated.
26912         * stor-layout.c (layout_type): Updated.
26913         * tree-inline.c (remap_type): Updated.
26914         * tree-pretty-print.c (dump_generic_node): Updated.
26916 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
26918         * builtins.c (expand_builtin_powi): Fix mode of
26919         2nd argument to match int.
26920         * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
26921         2nd argument type to int.
26922         * libgcc2.c: Change prototype of __powi* functions to use
26923         int.
26925 2005-03-30  Dale Johannesen  <dalej@apple.com>
26927         PR middle-end/19225
26928         * calls.c (expand_call):  Flush pending deferrals before
26929         throwing call.
26931 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
26933         PR c/772
26934         PR c/17913
26935         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
26936         C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
26937         c_label_context, label_context_stack): New.
26938         * c-decl.c (define_label): Check for jumps into statement
26939         expressions.  Add label to list of defined labels.
26940         (start_function): Push context on label_context_stack.
26941         (finish_function): Pop context from label_context_stack.
26942         * c-typeck.c (label_context_stack): New.
26943         (c_finish_goto_label): Check for jumps into statement
26944         expressions.  Add label to list of jumped to labels.
26945         (struct c_switch): Add blocked_stmt_expr.
26946         (c_start_case): Initialize it.
26947         (do_case): Check it.
26948         (c_finish_case): Verify !blocked_stmt_expr.
26949         (c_begin_stmt_expr):  Push context on label_context_stack.
26950         Increment blocked_stmt_expr.  Mark labels jumped to from outside
26951         as undefinable.
26952         (c_finish_stmt_expr): December blocked_stmt_expr.  Mark labels
26953         defined in the statement expression and no longer jumpable to.
26954         Mark labels jumped to from just outside the statement expression
26955         as again definable.  Pop context from label_context_stack.
26956         * doc/extend.texi (Statement Exprs): Update.
26958 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
26960         PR c/20368
26961         * c-decl.c (start_function): Check for old_decl being
26962         error_mark_node.
26964 2005-03-30  Ian Lance Taylor  <ian@airs.com>
26966         * final.c (final): Remove prescan parameter.  Change all callers.
26967         (final_scan_insn): Remove prescan parameter.  Change all callers.
26969 2005-03-30  Kazu Hirata  <kazu@cs.umass.edu>
26971         * tree-vectorizer.c: Fix comment typos.
26973 2005-03-30  Sebastian Pop  <pop@cri.ensmp.fr>
26975         * tree-scalar-evolution.c (instantiate_parameters_1): Return
26976         as soon as a chrec_dont_know is detected.
26978 2005-03-31  Danny Smith  <dannysmith@users.sourceforge.net>
26980         Merge from csl-arm-branch.
26981         2004-02-12  Mark Mitchell  <mark@codesourcery.com>
26983         * tlink.c (recompile_files): Do not assume that "rename" can
26984         overwrite an existing file.
26986 2005-03-31  Paolo Bonzini  <bonzini@gnu.org>
26988         * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
26989         * gcc/configure: Regenerate.
26991 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
26993         * doc/install.texi: Update binutils requirement for powerpc*-linux.
26995         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
26997         * calls.c (struct arg_data): Update "partial" comment.
26998         (load_register_parameters): Update "nregs" comment.
27000 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
27002         * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
27003         (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
27004         (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
27005         (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
27006         (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
27007         (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
27008         than target_flags & 0.
27009         * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
27010         (iq2000_arch, iq2000_parse_cpu): Delete.
27011         (TARGET_HANDLE_OPTION): Override default.
27012         (iq2000_handle_option): New function.
27013         (override_options): Remove -march= and -mcpu= handling.
27014         * config/iq2000/iq2000.opt: New file.
27016 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
27018         * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
27019         * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
27020         (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
27021         (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
27022         (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
27023         (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
27024         (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
27025         (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
27026         (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
27027         (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
27028         (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
27029         (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
27030         (c4x_rpts_cycles_string, c4x_cpu_version_string)
27031         (TARGET_OPTIONS): Delete.
27032         (c4x_rpts_cycles, c4x_cpu_version): Declare.
27033         (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
27034         (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
27035         * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
27036         (c4x_cpu_version_string): Delete.
27037         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
27038         (c4x_handle_option): New function.  Map -m3x and -m4x options to the
27039         equivalent -mcpu= option.
27040         (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
27041         Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
27042         TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
27043         or clearing the appropriate MASK_* bit.
27044         (c4x_file_start): Use c4x_cpu_version.
27045         * config/c4x/c4x.opt: New file.
27047 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
27049         * doc/options.texi: Document the new MaskExists flag.
27050         * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
27051         if the option has the MaskExists flag.
27053 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
27055         * opt-functions.awk (flag_set_p, test_flag): New functions.
27056         (switch_flags): Use them.
27057         * opth-gen.awk: Use flag_set_p to check for flags.
27058         * optc-gen.awk: Likewise.  Use opt_args to check for Init(...) flags.
27060 2005-03-30  Ian Lance Taylor  <ian@airs.com>
27062         * config.host (i[34567]86-*-mingw32*): Don't set
27063         host_can_use_collect2 to no.
27065 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
27067         PR target/20203
27068         * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
27069         Remove convert_memory_address call duplicating that in memory_address.
27071 2005-03-29  Richard Henderson  <rth@redhat.com>
27073         PR c/20519
27074         * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
27075         (build_compound_literal): Likewise.  Propagate decl type into the
27076         initializer.
27077         (finish_decl): Likewise.  Use new return value from complete_array_type
27078         for zero sized arrays.
27079         (complete_array_type): Move ...
27080         * c-common.c (complete_array_type): ... here.  Change first argument
27081         to pointer-to-type-node.  Consistently use sizetype for the index
27082         except for zero sized arrays.  Detect zero sized arrays for pedantic
27083         mode diagnostics.  Create a new type node instead of modifying the
27084         old node in place.
27085         * c-tree.h (complete_array_type): Move decl ...
27086         * c-common.h (complete_array_type): ... here.
27088 2005-03-29  Richard Henderson  <rth@redhat.com>
27090         PR tree-opt/19108
27091         * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
27093 2005-03-29  Kazu Hirata  <kazu@cs.umass.edu>
27095         * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
27096         debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
27097         rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
27098         tree-profile.c, tsystem.h, value-prof.h: Update copyright.
27100 2005-03-29  Eric Christopher  <echristo@redhat.com>
27102         * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
27103         truthvalue conversion removal.
27105 2005-03-29  Ian Lance Taylor  <ian@airs.com>
27107         PR bootstrap/14316
27108         * collect2.c: Never include <vfork.h>.
27109         (VFORK_STRING, vfork): Don't define.
27110         (pid): Remove global variable.
27111         (handler): Call raise instead of kill (getpid(), ...).
27112         (collect_wait): Add pex parameter.  Change all callers.  Use
27113         pex_get_status rather than pwait.
27114         (do_wait): Add pex parameter.  Change all callers.
27115         (collect_execute): Return struct pex_obj * rather than void.  Use
27116         pex routines rather than pexecute.
27117         (fork_execute): Get pex_obj from collect_execute, and pass it to
27118         do_wait.
27119         (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
27120         Only declare quit_handler if SIGQUIT is defined.
27121         (scan_libraries): Likewise.
27122         * collect2.h (collect_execute): Update declaration.
27123         (collect_wait): Update declaration.
27124         * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
27125         pass it to collect_wait.
27127 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
27129         PR c/20672
27130         * c-parser.c (c_parser_compound_statement_nostart): Give error
27131         message for EOF instead of just setting parser->error.
27133 2005-03-29  Dorit Naishlos  <dorit@il.ibm.com>
27135         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
27136         (slpeel_update_phi_nodes_for_guard1): New function.
27137         (slpeel_update_phi_nodes_for_guard2): New function.
27138         (slpeel_tree_peel_loop_to_edge): Call above new functions instead
27139         of slpeel_update_phi_nodes_for_guard.
27140         (vectorize_loops): Remove call to loop_closed_rewrite.
27141         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
27142         assertion.
27144 2005-03-29  Richard Sandiford  <rsandifo@redhat.com>
27146         * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
27147         (TARGET_LITTLE_ENDIAN): New macro.
27148         * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
27149         (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
27150         (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
27151         (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
27152         (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
27153         (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
27154         (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
27155         (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
27156         (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
27157         (TARGET_OPTIONS): Delete.
27158         (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
27159         (CACHE_FLUSH_TRAP): Turn into an integer.
27160         (TARGET_LITTLE_ENDIAN): Define to 0 by default.
27161         (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
27162         -mflush-trap is in use.
27163         * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
27164         (m32r_cache_flush_trap_string): Delete.
27165         (m32r_model) Initialize to M32R_MODEL_DEFAULT.
27166         (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
27167         (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
27168         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
27169         (m32r_handle_option): New function.  Move -mflush-trap=, -mflush-func=,
27170         -mmodel= and -msdata= handling from...
27171         (m32r_init): ...here.
27172         * config/m32r/m32r.opt: New file.
27174 2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
27176         * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
27177         (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
27178         * tree-vect-analyze.c (vect_object_analysis): additional parm
27179         pass back a "struct ptr_info_def *" with the points-to info.
27180         (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
27181         statement using info returned from vect_object_analysis.
27182         * tree-vect-transform.c (update_vuses_to_preheader): New function.
27183         (vect_create_data_ref_ptr): Remove updates to vars_to_rename
27184         for virtual uses and defs when creating a replacement vector
27185         reference.  Call duplicate_ssa_name_ptr_info to define points-to
27186         info for vector pointer replacement using STMT_VINFO_PTR_INFO.
27187         (vectorizable_store): copy_virtual_operands and update
27188         definition statements.
27189         (vectorizable_load): copy_virtual_operands.  Remove call to
27190         mark_call_clobbered_vars_to_rename for call to "const" builtin.
27191         * tree-vectorizer.c (vectorize_loops): Remove calls to
27192         rewrite_into_ssa and bitmap_clear (vars_to_rename).
27193         (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
27194         * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
27195         define macro STMT_VINFO_PTR_INFO for use in accessing.
27196         * tree.h add export of duplicate_ssa_name_ptr_info.
27197         * rs6000.c (altivec_init_builtins): Declare builtin function
27198         __builtin_altivec_mask_for_load to be "const".
27200 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
27202         PR middle-end/20622
27203         * cgraph.h (struct cgraph_varpool_node): Add alias field.
27204         * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
27205         assemble_variable on aliases.
27206         * varasm.c (assemble_alias): Set node->alias.
27207         * toplev.c (wrapup_global_declarations): Don't call
27208         rest_of_decl_compilation on aliases again.
27210 2005-03-29  Paul Brook  <paul@codesourcery.com>
27212         * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
27213         * config/arm/arm.c (arm_dbx_register_number): New function.
27214         * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
27216 2005-03-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
27218         PR middle-end/20263
27219         * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
27220         the DECL_NAME, not the DECL_ASSEMBLER_NAME.
27222 2005-03-29  Dale Johannesen <dalej@apple.com>
27224         * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
27225         $(TREE_H) and $(COVERAGE_H).
27226         * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
27227         * opts.c (common_handle_option): Enable tree-based value transforms.
27228         * toplev.c (process_options): Ditto.
27229         * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
27230         refers to references to this type.
27231         * tree-flow.h: (struct stmt_ann_d): Add histograms field.
27232         * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
27233         for may_be_more, may_be_less.
27234         (rtl_gen_pow2_profiler): Adjust.
27235         (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
27236         (rtl_gen_one_value_profiler): Adjust.
27237         (rtl_gen_const_delta_profiler): Adjust.
27238         * tree-profile.c (tree_gen_interval_profiler): Implement.
27239         (tree_gen_pow2_profiler): Ditto.
27240         (tree_gen_one_value_profiler): Ditto.
27241         (tree_profiling): New.
27242         (pass_tree_profile): Reference it.
27243         * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
27244         tree.h, gcov-io.h.
27245         (insn_divmod_values_to_profile): Rename to
27246         rtl_divmod_values_to_profile. Adjust.
27247         (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
27248         (insn_prefetch_values_to_profile): Adjust.
27249         (rtl_value_profile_transformations): Adjust.
27250         (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
27251         (gen_mod_pow2): Rename to rtl_mod_pow2.
27252         (gen_mod_subtract): Rename to rtl_mod_subtract.
27253         (divmod_fixed_value_transform): Rename to
27254         rtl_divmod_fixed_value_transform.
27255         (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
27256         (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
27257         (rtl_find_values_to_profile): Adjust.
27258         (tree_value_profile_transformations): Implement.
27259         (tree_divmod_values_to_profile): New.
27260         (tree_values_to_profile): New.
27261         (tree_divmod_fixed_value): New.
27262         (tree_mod_pow2): New.
27263         (tree_mod_subtract): New.
27264         (tree_divmod_fixed_value_transform): New.
27265         (tree_mod_pow2_value_transform): New.
27266         (tree_mod_subtract_transform): New.
27267         (tree_find_values_to_profile): Implement.
27268         * profile.c (instrument_values):  Free histograms.
27269         (compute_value_histograms): Adjust. Implement tree version.
27271 2005-03-29  Uros Bizjak  <uros@kss-loka.si>
27273         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
27274         * config/i386/i386.c (output_fix_trunc): Add new round_mode
27275         variable.  Output "fldcw" depending on round_mode.
27276         * config/i386/i386.md (UNSPEC_FIST): New.
27277         (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
27278         New isns patterns to implement lrint and llrint built-ins as x87
27279         intrinsic function.
27280         (fistdi2, fist<mode>2 splitters): New splitters.
27281         (lrint<mode>2): New expanders.
27283 2005-03-28  Ian Lance Taylor  <ian@airs.com>
27285         * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
27286         0 when calling final_scan_insn.
27288 2005-03-28  Jan Hubicka  <jh@suse.cz>
27290         PR middle-end/20635
27291         * varasm.c (mark_decl_referenced): Do not mark extern inline functions
27292         as needed.
27294         * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
27295         types where possible.
27297 2005-03-26  Per Bothner  <per@bothner.com>
27299         Make -f[no-]show-column also control non-cpp diagnostics.
27300         * c.opt (fshow-column): Move option from here ...
27301         * common.opt (fshow-column): ... to here.
27302         * diagnostic.c (diagnostic_build_prefix): Only print column number
27303         if flag_show_column.
27305 2005-03-27  Steven Bosscher  <stevenb@suse.de>
27307         * vax-protos.h (vax_output_int_move, vax_output_int_add,
27308         vax_output_conditional_branch): New prototypes.
27309         * vax.c (vax_output_int_move, vax_output_int_add): New functions,
27310         extracted from vax.md mov and add patterns.
27311         (vax_output_conditional_branch): New function to output conditional
27312         branch instructions.
27313         * vax.md: Use mode macros for arithmetic and mov patterns.
27314         Use code macros for the jump patterns.
27316 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
27318         * Makefile.in (libbackend.o): Depend on version files;
27319         add custom generation command.
27321 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
27323         PR target/20636
27324         * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
27325         sure that we have a REG before getting its REGNO.
27327 2005-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27329         * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
27330         * builtins.def (BUILT_IN_STRNDUP): New.
27332 2005-03-25  Pat Haugen  <pthaugen@us.ibm.com>
27334         PR tree-optimization/20470
27335         * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
27336         ABS(x-y).
27338 2005-03-25  Mike Stump  <mrs@apple.com>
27340         * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
27341         sized objects.
27343 2005-03-25  Geoffrey Keating  <geoffk@apple.com>
27345         * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
27346         Use our own structure definitions.
27348         * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
27349         (fix_truncdfsi2): Allow registers or memory as destination.
27350         When TARGET_PPC_GFXOPT, generate simplified pattern.
27351         (fix_truncdfsi2_internal): Use define_insn_and_split.
27352         (fix_truncdfsi2_internal_gfxopt): New.
27353         (fctiwz): Don't confuse register allocation by giving it no choices.
27354         (stfiwx): New.
27355         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
27356         (EXTRA_MEMORY_CONSTRAINT): Likewise.
27357         * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
27358         * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
27360 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
27362         * dominance.c (free_dominance_info): Speed up by freeing et
27363         data structures without maintaining other nodes.
27364         * et-forest.c (et_free_tree_force): New.
27365         * et-forest.h: Add a prototype for et_free_tree_force.
27367         * tree.c (get_set_constructor_bits,
27368         get_set_constructor_bytes): Remove.
27369         * tree.h: Remove the corresponding prototypes.
27371 2005-03-25  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
27373         PR target/15491
27374         * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
27375         (vax_rtx_costs): Return false when passed unsupported rtx's.  Handle
27376         FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE.  Fix costs for POST_INC,
27377         PRE_DEC, NEG and NOT.
27379 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
27381         * fold-const.c: Convert uses of fold (build (...)) to
27382         fold_buildN.
27384 2005-03-25  Zdenek Dvorak  <dvorakz@suse.cz>
27386         PR rtl-optimization/20249
27387         * cse.c (insert_regs): Do not record equivalence of registers in
27388         different modes.
27390 2005-03-24  Kazu Hirata  <kazu@cs.umass.edu>
27392         * emit-rtl.c (reverse_comparison): Remove.
27393         * rtl.h: Remove the corresponding prototype.
27395 2005-03-24  James E Wilson  <wilson@specifixinc.com>
27397         * doc/install.texi (--enable-altivec): Delete docs.
27399 2005-03-24  David Edelsohn  <edelsohn@gnu.org>
27401         * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
27402         SFmode and DFmode before reload when
27403         flag_unsafe_math_optimizations not enabled.
27405 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
27407         * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
27409         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
27410         MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
27412 2005-03-24  Nathan Sidwell  <nathan@codesourcery.com>
27414         * configure.ac (enable-checking): Add 'runtime' option.
27415         * doc/install.texi (enable-checking): Document 'runtime' checking.
27416         * tsystem.h (gcc_assert, gcc_unreachable): Define.
27417         * config.in: Regenerated.
27418         * configure: Regenerated.
27420 2005-03-23  Uros Bizjak  <uros@kss-loka.si>
27422         * optabs.h (enum optab_index): Remove OTI_llrint.
27423         (llrint_optab): Remove macro.
27424         * optabs.c (init_optabs): Remove llrint_optab initialization.
27425         * genopinit.c (optabs): Remove llrint_optab implementation.
27426         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
27427         using lrint_optab.
27429 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
27431         PR rtl-optimization/20532
27432         * simplify-rtx.c (simplify_binary_operation_1): Protect from
27433         overflow when adding coefficients for PLUS or MINUS.
27434         (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
27435         two as multiplier.
27437 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
27439         * langhooks.h (truthvalue_conversion): Remove.
27440         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
27441         LANG_HOOKS_TRUTHVALUE_CONVERSION.
27442         * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
27443         * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
27444         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
27446 2005-03-23  Kazu Hirata  <kazu@cs.umass.edu>
27448         * params.def: Fix a typo.
27449         * config/mips/mips.c: Follow the spelling convensions.
27450         * doc/invoke.texi: Fix typos.
27452 2005-03-23  Daniel Berlin  <dberlin@dberlin.org>
27454         Fix PR tree-optimization/20601
27456         * tree-ssa-pre.c (insert_aux): Add missing condition to
27457         constification.
27459 2005-03-23  Ian Lance Taylor  <ian@airs.com>
27461         * final.c (final_scan_insn): Don't remove no-op instructions.
27462         * reload1.c (reload): Remove simple no-op instructions even when
27463         not optimizing.
27465 2005-03-23  Dorit Naishlos  <dorit@il.ib.com>
27467         PR tree-optimization/20501
27468         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
27469         reporting that peeling for alignment is applied moved to...
27470         * (vect_analyze_data_refs_alignment): Here.
27472 2005-03-23  Ian Lance Taylor  <ian@airs.com>
27474         * reorg.c (dbr_schedule): Remove #if 0 code to call final.
27476 2005-03-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
27478         * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
27479         Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
27481 2005-03-23  Hans-Peter Nilsson  <hp@axis.com>
27483         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
27484         imply that this is called once, independent of asms in code.
27485         Adjust to now being pased output and input lists.  Mention helper
27486         function decl_overlaps_hard_reg_set_p.
27487         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
27488         hook_tree_tree_identity and to take three trees, returning third.
27489         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
27490         prototype.
27491         * stmt.c: include hard-reg-set.h before tree.h.
27492         (decl_overlaps_hard_reg_set_p): New function, broken out from...
27493         (decl_conflicts_with_clobbers_p): Call
27494         decl_overlaps_hard_reg_set_p.
27495         (expand_asm_operands): Pass output and input lists in call to
27496         targetm.md_asm_clobbers.
27497         * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
27498         hook_tree_tree_tree_tree_3rd_identity.
27499         * target.h (struct gcc_target.md_asm_clobbers): Take three tree
27500         parameters.
27501         * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
27502         * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
27503         parameters, first two unused.
27504         * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
27505         parameters.  Only add MOF to clobbers if there's no 'h' mentioned
27506         in constraint letters and MOF is not mentioned as a asm-declared
27507         register in neither of the input and output lists.
27509 2005-03-23  DJ Delorie  <dj@redhat.com>
27511         * optabs.c (expand_binop): Make sure the first subword's result
27512         gets stored.
27514 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
27516         * c-common.c (c_common_truthvalue_conversion): Adjust comment.
27517         Call c_common_truthvalue_conversion rather than
27518         lang_hooks.truthvalue_conversion.
27519         * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
27520         * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
27521         c-typeck.c.
27522         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
27523         c_common_truthvalue_conversion.
27524         * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
27525         c_parser_conditional_expression, c_parser_binary_expression): Call
27526         c_objc_common_truthvalue_conversion.
27527         * c-typeck.c (build_unary_op): Call
27528         c_objc_common_truthvalue_conversion.
27529         (build_conditional_expr): Do not call
27530         lang_hooks.truthvalue_conversion.
27531         (build_binary_op): Call c_common_truthvalue_conversion.
27532         (c_objc_common_truthvalue_conversion): Moved from
27533         c-objc-common.c.  Call default_function_array_conversion instead
27534         of default_conversion.
27536 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
27538         * c-common.h (default_conversion): Remove.
27539         (perform_integral_promotions): Add.
27540         * c-tree.h (default_conversion): Add.
27541         * c-typeck.c (perform_integral_promotions): New, split out from
27542         default_conversion.
27543         * c-common.c (check_case_value): Use perform_integral_promotions,
27544         not default_conversion.
27545         (c_add_case_label): Don't continue processing case label after
27546         found to be pointer.
27548 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
27550         * gcc.c (do_spec_1): Do not add a -L path for a directory in
27551         the prefix list if we have already added a multilib directory
27552         based on that path.
27553         (main): Do not add MD_EXEC_PREFIX to the list of directories to
27554         search with -L.
27556 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
27558         * reload1.c (indirect_symref_ok, reload_obstack): Make them
27559         static.
27560         * reload.h: Remove the prototype for indirect_symref_ok.
27562         * reload1.c (indirect_symref_ok): Make it global.
27563         * reload.h: Add a prototype for indirect_symref_ok.
27565 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
27567         * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
27568         ashlhi3 expander.
27570 2005-03-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
27572         * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
27574 2005-03-22  Daniel Berlin  <dberlin@dberlin.org>
27576         * c-opts.c (c_common_parse_file): Only start/end main source file
27577         if debug hooks says the writer wants it.
27578         * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
27579         member.
27580         (xcoff_debug_hooks): Ditto.
27581         * debug.c (do_nothing_hooks): Ditto.
27582         * debug.h (gcc_debug_hooks): Ditto.
27583         * dwarf2out.c (dwarf2_debug_hooks): Ditto.
27584         * sdbout.c (sdb_debug_hooks): Ditto.
27585         * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
27587 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
27589         * doc/extend.texi: Deprecate C++ min/max operators.
27591 2005-03-22  Zdenek Dvorak  <dvorakz@suse.cz>
27593         * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
27594         artificial original candidates.
27596 2005-03-22  Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
27597             Jan Hubicka  <jh@suse.cz>
27598             Steven Bosscher <stevenb@suse.de>
27600         * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
27601         call cost based on argument sizes.
27602         (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
27603         inlining.
27604         * params.def: (max-inline-inssn-single): Set to 450.
27605         (max-inline-insns-auto): Set to 90.
27606         (max-inline-insns-recursive): Set to 450
27607         (max-inline-insns-recursive-auto): Set to 450.
27608         (large-function-insns): Set to 2700.
27609         (inline-call-cost): New parameter.
27610         * tree-inline.c (estimate_move_cost): New function.
27611         (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
27612         for non-gimple-regs, set cost to 0 for gimple-regs.  Compute call size
27613         based on arguments.
27614         * tree-inline.h (estimate_move_cost): Declare.
27615         * invoke.texi: (max-inline-inssn-single): Change default to 450.
27616         (max-inline-insns-auto): Change default to 90.
27617         (max-inline-insns-recursive): Change default to 450
27618         (max-inline-insns-recursive-auto): Change default to 450.
27619         (large-function-insns): Change default to 2700.
27620         (inline-call-cost): Document new parameter.
27622 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
27624         * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
27625         (TARGET_DEFAULT): Delete.
27626         * config/i860/i860.opt: New file.
27628 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
27630         * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
27631         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
27632         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
27633         (frv_sched_lookahead): Delete.
27634         * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
27635         (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
27636         (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
27637         (MASK_LIBPIC, MASK_ACC_4,  MASK_PACK, MASK_LONG_CALLS)
27638         (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
27639         (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
27640         (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
27641         (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
27642         (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
27643         (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
27644         (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
27645         (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
27646         (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
27647         (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
27648         (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
27649         (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
27650         (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
27651         (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
27652         (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
27653         (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
27654         (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
27655         (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
27656         * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
27657         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
27658         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
27659         (frv_sched_lookahead): Delete.
27660         (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
27661         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
27662         (frv_handle_option): New function.  Move -mcpu= handling from...
27663         (frv_override_options): ...here.  Remove handling of other
27664         TARGET_OPTIONS.
27665         (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
27666         TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
27667         (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
27668         and TARGET_NO_MULTI_CE.
27669         (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
27670         !TARGET_VLIW_BRANCH.
27671         * config/frv/frv.opt: New file.
27673 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
27675         * fold-const.c (fold_ternary): Take decomposed arguments of
27676         CALL_EXPR.
27677         (fold): Update a call to fold_ternary.
27679         * fold-const.c (fold_build1, fold_build2, fold_build3): New.
27680         * tree.h: Add corresponding prototypes.
27682 2005-03-22  Jakub Jelinek  <jakub@redhat.com>
27684         PR target/20561
27685         * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
27686         between jump table and its label.
27687         * final.c (shorten_branches): Handle notes in between ADDR_VEC
27688         resp. ADDR_DIFF_VEC and the label preceeding it.
27689         (final_scan_insn): Likewise.  Ensure ADDR_VEC resp. ADDR_DIFF_VEC
27690         is emitted in the right section.
27692 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
27694         * fold-const.c (fold_unary, fold_binary): Update comments
27695         about arguments.
27697 2005-03-22  Hans-Peter Nilsson  <hp@axis.com>
27699         PR rtl-optimization/20527
27700         * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
27701         REG_INC note, test that the register also isn't mentioned in PRED
27702         or SUCC.
27704 2005-03-22  Ben Elliston  <bje@au.ibm.com>
27706         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
27707         and definition.
27709 2005-03-21  Mike Stump  <mrs@apple.com>
27711         * varasm.c (default_assemble_visibility): Remove extra ().
27713 2005-03-21  Roger Sayle  <roger@eyesopen.com>
27715         PR middle-end/20557
27716         * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
27717         to determine whether a block can be duplicated, rather than test
27718         whether the block contains noncopyable insns ourselves.
27720 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
27722         * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
27723         predicates.
27725 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
27727         * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
27729 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
27731         * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
27732         (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
27733         * config/fr30/fr30.opt: New file.
27735 2005-03-18  Daniel Berlin  <dberlin@dberlin.org>
27737         Fix PR tree-optimization/20542
27739         * tree-flow-inline.h (overlap_subvar): Move to here.
27740         * tree-ssa-operands.c: From here.
27741         * tree-flow.h (overlap_subvar): Declare.
27742         * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
27743         * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
27744         for variables with subvars.
27746 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
27748         PR middle-end/20177
27749         * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
27750         * modulo-sched.c (const_iteration_count): Return on NULL
27751         pre-header.
27752         (print_node_sched_params): Return on NULL dump_file.
27753         (generate_reg_moves): Handle reg-anti dependencies and disregard
27754         closing branch when generating register moves.
27755         (sms_schedule): Mark the SMSed block dirty.
27756         * passes.c (rest_of_handle_sms): Call update_life_info for all
27757         basic-blocks.
27758         * testsuite/gcc.dg/20050321-1.c: New test.
27760 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
27762         * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
27763         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
27764         movqi_internal): Likewise.
27766 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
27768         * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
27769         xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
27770         xtensa_b4const): Delete prototypes.
27771         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
27772         xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
27773         (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
27774         xtensa_extra_constraint): New prototypes.
27775         (add_operand, arith_operand, nonimmed_operand, mem_operand,
27776         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
27777         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
27778         move_operand, const_float_1_operand, fpmem_offset_operand,
27779         branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
27780         * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
27781         (xtensa_b4const_or_zero): ...this.  Change return type to bool and
27782         argument type to HOST_WIDE_INT.
27783         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
27784         xtensa_mask_immediate): Likewise.
27785         (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
27786         Likewise.  Also make these functions static.
27787         (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
27788         (xtensa_const_ok_for_letter_p): New.
27789         (add_operand, arith_operand, nonimmed_operand, mem_operand,
27790         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
27791         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
27792         move_operand, const_float_1_operand, fpmem_offset_operand,
27793         branch_operator, ubranch_operator, boolean_operator): Move to
27794         predicates.md.
27795         (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
27796         (xtensa_mem_offset): Change return type to bool.
27797         (xtensa_extra_constraint): New.
27798         (gen_int_relational): Update type of const_range_p function pointer.
27799         Use xtensa_b4const_or_zero.
27800         * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
27801         xtensa_const_ok_for_letter_p.  Update comments.
27802         (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
27803         (PREDICATE_CODES): Delete.
27804         * config/xtensa/xtensa.md: Include predicates.md.
27805         * config/xtensa/predicates.md: New file.
27807 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
27809         * config/v850/v850-protos.h: Remove the prototypes for
27810         reg_or_int9_operand, reg_or_const_operand,
27811         pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
27812         reg_or_0_operand, reg_or_int5_operand, call_address_operand,
27813         movsi_source_operand, power_of_two_operand,
27814         not_power_of_two_operand, special_symbolref_operand,
27815         pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
27816         register_is_ok_for_epilogue.
27817         * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
27818         reg_or_int9_operand, reg_or_const_operand,
27819         call_address_operand, special_symbolref_operand,
27820         movsi_source_operand, power_of_two_operand,
27821         not_power_of_two_operand, register_is_ok_for_epilogue,
27822         pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
27823         pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
27824         predicates.md.
27825         * config/v850/v850.h (PREDICATE_CODES): Remove.
27826         * config/v850/v850.md: Include predicates.md.
27827         * config/v850/predicates.md: New.
27829 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
27831         * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
27832         (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
27833         (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
27834         (itoolsdir, itoolsdatadir): Move definition above new first use.
27835         (install-itoolsdirs): New rule.
27836         (install-mkheaders): Depend on install-itoolsdirs, not
27837         install-include-dir.
27839 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
27841         * tree-into-ssa.c: Remove obsolete comments.
27843 2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>
27845         * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
27846         unrolling if -fpeel-loops is specified, too.
27847         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
27848         Remove superfluous check for flag_unroll_loops.
27850 2005-03-21  Uros Bizjak  <uros@kss-loka.si>
27852         * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
27853         (lrint_optab, llrint_optab): Define corresponding macros.
27854         * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
27855         * genopinit.c (optabs): Implement lrint_optab using lrintsi2
27856         pattern and llrint_optab using llrintdi2 patterns.
27857         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
27858         using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
27859         (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
27860         BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
27861         flag_unsafe_math_optimizations is set.
27863 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
27865         * combine.c (combine_simplify_rtx, simplify_if_then_else,
27866         simplify_logical, if_then_else_cond, known_cond,
27867         simplify_comparison): Adjust calls to reverse_comparison.
27868         Don't use combine_reversed_comparison_code).
27869         (combine_reversed_comparison_code): Remove.
27870         (reversed_comparison): Using reversed_comparison_code, move it...
27871         * jump.c (reversed_comparison): ... here.
27872         * rtl.h (reversed_comparison): Add prototype.
27874 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
27876         * builtins.c (fold_builtin): Take decomposed arguments of
27877         CALL_EXPR.
27878         * fold-const.c (fold_ternary): Update a call to fold_builtin.
27879         * gimplify.c (gimplify_call_expr): Likewise.
27880         * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
27881         * tree.h: Update the prototype of fold_builtin.
27883 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
27885         * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
27886         * rtlhooks.c (gen_lowpart_no_emit_general): New.
27887         * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
27888         (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
27889         * simplify-rtx.c (simplify_binary_operation_1): Use it.
27891 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
27893         * builtins.c (fold_builtin_1): Take decomposed arguments of
27894         CALL_EXPR.
27895         (fold_builtin): Update a call to fold_builtin_1.
27897 2005-03-21  Nathan Sidwell  <nathan@codesourcery.com>
27899         PR other/20564
27900         * gcov.c (output_lines): Only output function block summary when
27901         outputting branch information.
27902         * doc/gcov.texi: Document format of preamble and additional block
27903         information lines.
27905 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
27907         * libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
27908         (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make
27909         the defaults false if BITS_PER_UNIT != 8.
27910         (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI)
27911         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather
27912         than BITS_PER_UNIT != 8.
27913         (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi)
27914         (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi)
27915         (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove
27916         #undefs.
27917         * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI)
27918         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE.
27920 2005-03-20  Roger Sayle  <roger@eyesopen.com>
27922         PR middle-end/20539
27923         * fold-const.c (fold_binary): Fix type mismatch between
27924         TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types.
27925         (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue
27926         for non-truth-valued expressions.
27928         * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK
27929         and FUNCTION_DECL in the main switch.
27930         <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
27931         TRUTH_XOR_EXPR>: When changing the result type of these tree nodes,
27932         we also need to convert their operands to match.
27933         <TRUTH_NOT_EXPR>: Likewise.
27935 2005-03-21  Joseph S. Myers  <joseph@codesourcery.com>
27937         * c-common.c (lvalue_or_else): Replace by lvalue_error; only give
27938         diagnostic without checking whether an lvalue.
27939         * c-common.h (lvalue_p): Remove.
27940         (enum lvalue_use): Update comment.
27941         (lvalue_or_else): Replace by lvalue_error.
27942         * c-typeck.c (lvalue_p): Make static.
27943         (lvalue_or_else): New.  Call lvalue_error.
27945 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
27947         * config/rs6000/rs6000.c (rs6000_parm_start): New function.
27948         (function_arg_advance): Use rs6000_parm_start.
27949         (function_arg, rs6000_arg_partial_bytes): Likewise.
27951 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
27953         * c-common.c (check_case_value): Adjust comment about stripping
27954         NOPs.
27955         (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
27956         * c-typeck.c (default_conversion, convert_arguments,
27957         build_modify_expr, convert_for_assignment, store_init_value,
27958         digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
27959         manually.  Remove inaccurate comments.
27961 2005-03-20  Roger Sayle  <roger@eyesopen.com>
27962             Joseph S. Myers  <joseph@codesourcery.com>
27964         * varasm.c (do_assemble_alias): Restore comment describing function.
27965         Annotate the target parameter as potentially unused.
27967 2005-03-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
27969         PR target/18551
27970         * config/avr/avr.c (avr_output_function_prologue): Do not use
27971         current_function_name() in a label, use a local label instead.
27973 2005-03-20  David Edelsohn  <edelsohn@gnu.org>
27975         * config/rs6000/rs6000.c (rs6000_generate_compare): Test
27976         flag_finite_math_only, not flag_unsafe_math_optimizations.
27978 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
27980         * builtins.c (fold_builtin_1): Update a call to
27981         targetm.fold_builtin.
27982         * hooks.c (hook_tree_tree_bool_null): Rename to
27983         hook_tree_tree_tree_bool_null.  Take one more argument of type
27984         tree.
27985         * hooks.h: Update the prototype of hook_tree_tree_bool_null.
27986         * target-def.h (TARGET_FOLD_BUILTIN): Define it as
27987         hook_tree_tree_tree_bool_null.
27988         * target.h (gcc_target): Update the prototype of fold_builtin.
27989         * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
27990         arguments of CALL_EXPR.
27991         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update.  Mention the
27992         new prototype.
27994 2005-03-20  Jan Hubicka  <jh@suse.cz>
27996         * cgraph.h (cgraph_node): Add prev_clone pointer.
27997         * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
27998         (cgraph_clone_node): Produce doubly linked chain.
28000 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
28002         * c-common.c (handle_aligned_attribute, check_function_sentinel,
28003         get_nonnull_operand, handle_sentinel_attribute,
28004         check_function_arguments_recurse): Do not strip NOPS from
28005         INTEGER_CSTs.
28006         * c-decl.c (check_bitfield_type_and_width, build_enumerator):
28007         Likewise.
28008         * c-format.c (get_constant): Likewise.
28009         * c-parser.c (c_parser_postfix_expression): Likewise.
28010         * c-typeck.c (set_init_index): Likewise.
28011         (convert_arguments): Don't check for NOP_EXPR containing integer
28012         constant.
28014 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
28016         * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
28017         fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
28018         Take decomposed arguments of CALL_EXPR.
28019         (fold_builtin_1): Update calls to the functions mentioned
28020         above.
28022 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
28024         * c-decl.c (check_bitfield_type_and_width): Require bit-field
28025         width to have integer type.
28026         (build_enumerator): Require enumerator value to have integer type.
28028 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
28030         * doc/extend.texi (__builtin_inf): Move statement about INFINITY
28031         to __builtin_inff.
28033 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
28035         * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
28036         std=iso9899:199x): Correct descriptions.
28038 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
28040         * config.gcc: Consistently use solaris2.1[0-9]* instead of
28041         solaris2.1[0-9].
28043 2005-03-19  Kazu Hirata  <kazu@cs.umass.edu>
28045         * builtins.c (fold_builtin_memcpy): Take decomposed arguments
28046         of CALL_EXPR.
28047         (expand_builtin_memcpy, fold_builtin_1): Update calls to
28048         fold_builtin_memcpy.
28050         * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
28051         arguments of CALL_EXPR.
28052         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
28053         fold_builtin_found, fold_builtin_1): Update calls to
28054         fold_trunc_transparent_mathfn.
28056 2005-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28058         PR middle-end/20493
28059         * fold-const.c (fold_widened_comparison): Don't optimize casts of
28060         function pointers on targets that require function pointer
28061         canonicalization.
28062         (fold_sign_changed_comparison): Likewise.
28064 2005-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
28066         * combine.c (try_combine): When changing the mode of a hard reg, make
28067         sure that doing so is valid.
28069 2005-03-19  Richard Sandiford  <rsandifo@redhat.com>
28071         * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
28072         (TARGET_HANDLE_OPTION): Override default.
28073         (avr_handle_option): New function.
28074         * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
28075         (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
28076         (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
28077         (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
28078         (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
28079         (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
28080         (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
28081         (TARGET_OPTIONS): Delete.
28082         * config/avr/avr.opt: New file.
28084 2005-03-18  2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28086         * config/m32r/m32r-protos.h: Remove the prototypes for
28087         call_address_operand, symbolic_operand, seth_add3_operand,
28088         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
28089         reg_or_uint16_operand, reg_or_cmp_int16_operand,
28090         two_insn_const_operand, move_src_operand,
28091         move_double_src_operand, move_dest_operand,
28092         eqne_comparison_operator, signed_comparison_operator,
28093         large_insn_p, conditional_move_operand, carry_compare_operand,
28094         m32r_block_immediate_operand, extend_operand,
28095         reg_or_eq_int16_operand, int8_operand, and
28096         reg_or_zero_operand.
28097         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
28098         seth_add3_operand, int8_operand, cmp_int16_operand,
28099         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
28100         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
28101         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
28102         move_double_src_operand, move_dest_operand,
28103         eqne_comparison_operator, signed_comparison_operator,
28104         extend_operand, small_insn_p, large_insn_p,
28105         conditional_move_operand, carry_compare_operand,
28106         m32r_block_immediate_operand): Move to predicates.md.
28107         (MAX_MOVE_BYTES): Move to m32r.h.
28108         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
28109         * config/m32r/m32r.md: Include predicates.md.
28110         * config/m32r/predicates.md: New.
28112 2005-03-18  James E Wilson  <wilson@specifixinc.com>
28114         PR c++/19769
28115         * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
28116         origin.
28118 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28120         * config/mn10300/mn10300-protos.h: Remove the prototypes for
28121         call_address_operand, const_8bit_operand.
28122         * config/mn10300/mn10300.c (call_address_operand,
28123         const_8bit_operand, const_1f_operand): Move to predicates.md.
28124         * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
28125         * config/mn10300/mn10300.md: Include predicates.md.
28126         * config/mn10300/predicates.md: New.
28128 2005-03-18  Joseph S. Myers  <joseph@codesourcery.com>
28130         * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
28131         declarations in diagnostics and %E for identifiers, not %s.
28133 2005-03-18  Jan Hubicka  <jh@suse.cz>
28134             Dale Johannesen  <dalej@apple.com>
28136         * basic-block.h (scale_bbs_frequencies_int,
28137         scale_bbs_frequencies_gcov_type): Declare.
28138         * cfg.c (RDIV): New macro.
28139         (update_bb_frequency_for_threading): Fix.
28140         * basic-block.h (scale_bbs_frequencies_int,
28141         scale_bbs_frequencies_gcov_type): New.
28142         * cfgloopmanip.c (scale_bbs_frequencies): Kill.
28143         (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
28144         scale_bbs_frequencies_int.
28145         * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
28147 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28149         * config/m32r/m32r-protos.h: Remove the prototypes for
28150         call_address_operand, symbolic_operand, seth_add3_operand,
28151         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
28152         reg_or_uint16_operand, reg_or_cmp_int16_operand,
28153         two_insn_const_operand, move_src_operand,
28154         move_double_src_operand, move_dest_operand,
28155         eqne_comparison_operator, signed_comparison_operator,
28156         large_insn_p, conditional_move_operand, carry_compare_operand,
28157         m32r_block_immediate_operand, extend_operand,
28158         reg_or_eq_int16_operand, int8_operand, and
28159         reg_or_zero_operand.
28160         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
28161         seth_add3_operand, int8_operand, cmp_int16_operand,
28162         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
28163         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
28164         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
28165         move_double_src_operand, move_dest_operand,
28166         eqne_comparison_operator, signed_comparison_operator,
28167         extend_operand, small_insn_p, large_insn_p,
28168         conditional_move_operand, carry_compare_operand,
28169         m32r_block_immediate_operand): Move to predicates.md.
28170         (MAX_MOVE_BYTES): Move to m32r.h.
28171         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
28172         * config/m32r/m32r.md: Include predicates.md.
28173         * config/m32r/predicates.md: New.
28175         * config/pa/pa-protos.h: Add prototypes for magic_milli and
28176         shadd_constant_p.
28177         * config/pa/pa.c (reg_or_0_operand, call_operand_address,
28178         symbolic_operand, symbolic_memory_operand,
28179         reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
28180         indexed_memory_operand, move_dest_operand, move_src_operand,
28181         prefetch_cc_operand, prefetch_nocc_operand,
28182         reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
28183         arith_operand, arith11_operand, pre_cint_operand,
28184         post_cint_operan, arith_double_operand, ireg_or_int5_operand,
28185         ireg_operand, int5_operand, uint5_operand, int11_operand,
28186         uint32_operand, arith5_operand, and_operand, ior_operand,
28187         lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
28188         pc_or_label_operand, div_operand, plus_xor_ior_operator,
28189         shadd_operand, movb_comparison_operator,
28190         cmpib_comparison_operator): Move to predicates.md.
28191         (magic_milli, shadd_constant_p): Make it extern.
28192         * config/pa/pa.h (PREDICATE_CODES): Remove.
28193         * config/pa/pa.md: Include predicates.md.
28194         * config/pa/predicates.md: New.
28196         * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
28197         predicate.
28199 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28201         * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
28202         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
28203         config/alpha/freebsd.h, config/alpha/linux.h,
28204         config/alpha/netbsd.h, config/alpha/osf5.h,
28205         config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
28206         config/h8300/h8300-protos.h, config/h8300/h8300.c,
28207         config/h8300/h8300.h, config/ia64/unwind-ia64.c,
28208         doc/cppopts.texi: Update copyright.
28210 2005-03-18  Jan Hubicka  <jh@suse.cz>
28212         PR middle-end/20225
28213         * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
28214         too late.
28215         * varasm.c (find_decl_and_mark_needed): Mark needed only when not
28216         called too late.
28218 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28220         * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
28221         VEC_safe_push.
28223 2005-03-18  Paolo Bonzini  <bonzini@gnu.org>
28225         * combine.c (gen_binary): Remove.
28226         (known_cond, simplify_shift_const, find_split_point,
28227         combine_simplify_rtx, simplify_if_then_else, simplify_set,
28228         simplify_logical, expand_field_assignment, extract_left_shift,
28229         force_to_mode, if_then_else_cond, apply_distributive_law,
28230         simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
28231         simplify_comparison, reversed_comparison): Replace with
28232         simplify_gen_binary, simplify_gen_relational or
28233         distribute_and_simplify_rtx.
28234         (distribute_and_simplify_rtx): New function.
28236 2005-03-18  Alexey Neyman  <alex.neyman@auriga.ru>
28237             Paolo Bonzini  <gcc.gnu.org>
28239         * calls.c (setjmp_call_p, special_function_p): Update comments
28240         at the head of the functions.
28242 2005-03-18  Jan Hubicka  <jh@suse.cz>
28244         * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
28246         * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
28247         function body should be released; do not proactively release function
28248         bodies in non-unit-at-a-time mode.
28250 2005-03-18  Ralf Corsepius  <ralf.corsepius@rtems.org>
28252         * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
28253         mno-fp-ret-in-387 multilib variants.
28255 2005-03-18  Richard Sandiford  <rsandifo@redhat.com>
28257         * common.opt (m): Remove.
28258         * opts.c (handle_option): Pass 'm' options to set_target_switch if
28259         table lookup fails.
28260         (common_handle_option): Remove OPT_m case.
28262 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28264         * builtins.c (fold_builtin_bitop): Take decomposed arguments
28265         of CALL_EXPR.
28266         (fold_builtin_1): Update a call to fold_builtin_bitop.
28268         * builtins.c (fold_builtin_signbit): Take decomposed arguments
28269         of CALL_EXPR.
28270         (fold_builtin_1): Update a call to fold_builtin_signbit.
28272 2005-03-17  Dorit Naishlos  <dorit@il.ibm.com>
28274         PR tree-optimization/20474
28275         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
28276         size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
28278 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
28280         * config/h8300/h8300-protos.h: Remove prototypes for
28281         general_operand_src, general_operand_dst, single_one_operand,
28282         single_zero_operand, call_insn_operand,
28283         two_insn_adds_subs_operand, small_call_insn_operand,
28284         jump_address_operand, bit_operand, bit_memory_operand,
28285         stack_pointer_operand, const_int_gt_2_operand,
28286         const_int_ge_8_operand, const_int_qi_operand,
28287         const_int_hi_operand, incdec_operand, bit_operator,
28288         nshift_operator, eqne_operator, gtle_operator,
28289         gtuleu_operator, iorxor_operator.
28290         Add prototypes for h8sx_shift_type h8sx_classify_shift and
28291         h8300_ldm_stm_parallel.
28292         * config/h8300/h8300.c (h8sx_shift_type,): Move to
28293         h8300-protos.h.
28294         (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
28295         SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
28296         (h8300_ldm_stm_parallel): Make it extern.
28297         (h8300_ldm_parallel, h8300_stm_parallel,
28298         h8300_return_parallel, general_operand_src,
28299         general_operand_dst, h8300_dst_operand, h8300_src_operand,
28300         nibble_operand, reg_or_nibble_operand, single_one_operand,
28301         single_zero_operand, call_insn_operand,
28302         two_insn_adds_subs_operand, small_call_insn_operand,
28303         jump_address_operand, bit_operand, bit_memory_operand,
28304         stack_pointer_operand, const_int_gt_2_operand,
28305         const_int_ge_8_operand, const_int_qi_operand,
28306         const_int_hi_operand, incdec_operand, eqne_operator,
28307         gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
28308         h8sx_binary_memory_operator, h8sx_unary_memory_operator,
28309         h8sx_unary_shift_operator, h8sx_binary_shift_operator,
28310         nshift_operator): Move to predicates.md.
28311         * config/h8300/h8300.h (PREDICATE_CODES): Remove.
28312         * config/h8300/h8300.md: Include predicates.md.
28313         * config/h8300/predicates.md: New.
28315 2005-03-17  Richard Henderson  <rth@redhat.com>
28317         * config.gcc (ia64*-*-hpux*): Add extra_options.
28318         * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
28319         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
28320         * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
28321         (ia64_tls_size_string, ia64_tune_string): Remove.
28322         (ia64_tune): Init to PROCESSOR_ITANIUM2.
28323         (TARGET_DEFAULT_TARGET_FLAGS): New.
28324         (TARGET_HANDLE_OPTION): New.
28325         (ia64_override_options): Move options parsing ...
28326         (ia64_handle_option): ... here.  New.
28327         * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
28328         MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
28329         MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
28330         MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
28331         MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
28332         MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
28333         MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
28334         TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
28335         TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
28336         TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
28337         TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
28338         TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
28339         TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
28340         TARGET_EARLY_STOP_BITS): Remove.
28341         (TARGET_ILP32): Default false.
28342         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
28343         (enum ia64_inline_type): New.
28344         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
28345         * config/ia64/ia64.md: Update for new definitions of
28346         TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
28347         * config/ia64/ia64.opt: New file.
28348         * config/ia64/ilp32.opt: New file.
28350 2005-03-17  H.J. Lu  <hongjiu.lu@intel.com>
28352         PR target/18380
28353         * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
28355 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
28357         * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
28358         instead of MASK_H8300S.
28359         * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
28360         MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
28361         MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
28362         MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
28363         TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
28364         TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
28365         TARGET_SWITCHES): Remove.
28366         (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
28367         TARGET_H8300SX.
28368         * config/h8300/h8300.opt: New.
28370         * config/alpha/alpha.opt, config/arc/arc.opt,
28371         config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
28372         notices.
28374 2005-03-17  Ian Lance Taylor  <ian@airs.com>
28376         * gmon.c: Remove.
28378 2005-03-17  Richard Sandiford  <rsandifo@redhat.com>
28380         * config/arc/arc.c (arc_cpu_string): Make static.  Default to "base"
28381         (arc_text_string, arc_data_string, arc_rodata_string): Make static.
28382         (TARGET_HANDLE_OPTION): Override default.
28383         (arc_handle_option): New function.
28384         (arc_init): Remove code to set arch_cpu_string.
28385         * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
28386         (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
28387         (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
28388         (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
28389         (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
28390         (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
28391         (arc_rodata_string, TARGET_OPTIONS): Delete.
28392         * config/arc/arc.opt: New file.
28394 2005-03-17  Richard Henderson  <rth@redhat.com>
28396         * doc/extend.texi (Weak Pragmas): New section.
28397         (attribute alias): Clarify that target must be in the same
28398         translation unit.
28400 2005-03-17  Richard Henderson  <rth@redhat.com>
28402         * config/alpha/alpha.opt: New file.
28403         * config/alpha/alpha.c (alpha_tune): New.  Rename all existing uses
28404         of alpha_cpu.
28405         (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
28406         alpha_fprm_string, alpha_fptm_string): Make static.
28407         (alpha_tls_size_string): Remove.
28408         (alpha_handle_option): New.
28409         (override_options): Update for alpha_cpu/alpha_tune split.
28410         (alpha_file_start): Likewise.
28411         (TARGET_DEFAULT_TARGET_FLAGS): New.
28412         (TARGET_HANDLE_OPTION): New.
28413         * config/alpha/alpha.h (alpha_tune): Declare.
28414         (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
28415         MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
28416         MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
28417         TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
28418         TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
28419         TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
28420         MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
28421         MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
28422         TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
28423         TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
28424         (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
28425         (TARGET_DEFAULT): Remove MASK_FP.
28426         (TARGET_FP): Redefined based on TARGET_SOFT_FP.
28427         (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
28428         (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
28429         alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
28430         alpha_tls_size_string): Remove.
28431         * config/alpha/alpha.md (prefetch): Use alpha_cpu.
28432         (attribute tune): Rename from attribute cpu.
28433         * config/alpha/ev4.md: Update to match.
28434         * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
28435         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
28436         * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
28437         * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
28438         * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
28439         * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
28441 2005-03-16  James E. Wilson  <wilson@specifixinc.com>
28443         * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
28444         and return without creating new state if before_nops_num is nonzero.
28445         * config/ia64/ia64.md (first_insn): New attribute.
28446         (alloc): Set it to yes.
28448 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
28450         * tree-vectorizer.c (new_vec_stmt_info): Initialize
28451         STMT_VINFO_SUBVARS to NULL.
28452         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
28454 2005-03-16 Dale Johannesen  <dalej@apple.com>
28456         * rtlanal.c (find_first_parameter_load):  Rewrite to
28457         return actual first param load or the call if none,
28458         instead of first in block, when not all loads exist.
28460 2005-03-16  Roger Sayle  <roger@eyesopen.com>
28462         * optabs.c (expand_copysign_absneg): Make static.
28463         * optabs.h (expand_copysign_absneg): Delete prototype.
28464         * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
28466 2005-03-16  Richard Henderson  <rth@redhat.com>
28468         PR middle-end/15700
28469         * varasm.c (struct alias_pair): Rename from struct output_def_pair.
28470         (alias_pairs): Rename from output_defs.
28471         (find_decl_and_mark_needed): Split out from assemble_alias.
28472         (do_assemble_alias): New.
28473         (assemble_output_def): Remove.
28474         (finish_aliases_1, finish_aliases_2): New.
28475         (process_pending_assemble_output_defs): Remove.
28476         (assemble_alias): Defer aliases for which we don't yet have a
28477         non-external decl for the target symbol.
28478         * passes.c (rest_of_decl_compilation): Register variables with cgraph.
28479         * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
28480         * toplev.c (compile_file): Use finish_aliases_2 instead of
28481         process_pending_assemble_output_defs.
28482         * tree.h (finish_aliases_1, finish_aliases_2): Declare.
28483         (process_pending_assemble_output_defs): Remove.
28485 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
28487         Fix PR tree-optimization/20489
28489         * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
28490         for empty structures.
28492 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
28494         Fix PR tree-optimization/20490
28496         * tree-ssa-pre.c (create_expression_by_pieces): Use
28497         force_gimple_operand on result of fold.
28499 2005-03-16  Andrew Pinski  <pinskia@physics.uc.edu>
28501         * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
28502         of closing parenthesis.
28504 2005-03-16  Kazu Hirata  <kazu@cs.umass.edu>
28506         * builtins.c (expand_movstr): Update a call to
28507         fold_builtin_strcpy.
28508         (expand_builtin_strncpy): Update a call to
28509         fold_builtin_strncpy.
28510         (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
28511         arguments of CALL_EXPR.
28512         (fold_builtin_1): Update calls to fold_builtin_strcpy and
28513         fold_builtin_strncpy.
28514         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
28515         * tree.h: Update the prototypes of fold_builtin_strcpy and
28516         fold_builtin_strncpy.
28518 2005-03-16  Steven Bosscher  <stevenb@suse.de>
28519             Dorit Naishlos  <dorit@il.ibm.com>
28521         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
28522         UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
28523         error.
28525 2005-03-16  Steven Bosscher  <stevenb@suse.de>
28527         * tree-inline.c (walk_type_fields, walk_tree,
28528         walk_tree_without_duplicates): Move from here...
28529         * tree.c: ...to here.
28531 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
28533         * BASE-VER, DATESTAMP, DEV-PHASE: New files.
28534         * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
28535         (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
28536         (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
28537         (version): Define using $(BASEVER_c).
28538         (Makefile, config.status, build/gcov-iov.o): No longer depends on
28539         version.c.
28540         (version.o): Depend on version files; add custom generation command.
28541         (prefix.o): Define BASEVER on command line.
28542         (s-iov): Depend on version files; adjust command.
28543         (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
28544         Add gcc-vers.texi.
28545         (gcc-vers.texi): New rule.
28546         (doc/%.info, doc/%.dvi): Add -I . to command line.
28547         (doc/gccinstall.dvi): Likewise.
28548         (PACKAGE): Delete.  All uses replaced with "gcc".
28549         * aclocal.m4: Do not include gcc-version.m4.
28550         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
28551         Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
28552         Set is_release based on contents of DEV-PHASE.
28553         Set gcc_version based on contents of BASE-VER.
28554         Define WIN32_REGISTRY_KEY only if the user overrode the default.
28555         * config.in, configure: Regenerate.
28556         * gccbug.in: Determine version of GCC in use at runtime.
28557         * gcov-iov.c: Get version number and development phase from
28558         command line, not by including version.c.
28559         * intl.c: Replace all uses of PACKAGE with "gcc".
28560         * libada-mk.in: Delete unused "gcc_version" variable.
28561         * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
28562         * version.c: (VERSUFFIX): New hook for redistributors; adjust
28563         commentary to match.
28564         (version_string): Put together from pieces.
28565         * config/alpha/x-vms: Do not use $(gcc_version).
28566         * config/i386/t-nwld: Likewise.
28567         * doc/include/gcc-common.texi: Include gcc-vers.texi for
28568         version-GCC and DEVELOPMENT.
28570 2005-03-15  Roger Sayle  <roger@eyesopen.com>
28572         PR tree-optimization/17454
28573         * tree.c (tree_size): Add case for TREE_BINFO.
28574         * fold-const.c (fold_checksum_tree): Only clear the overloaded
28575         field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
28577 2005-03-15  Roger Sayle  <roger@eyesopen.com>
28579         * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
28580         op1 whilst expanding the signed widenening multiply variant.
28582 2005-03-15  Richard Sandiford  <rsandifo@redhat.com>
28584         * toplev.c (display_target_options): Avoid unused variable warning if
28585         TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
28586         * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
28587         (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
28588         (mips_isa): Initialize to MIPS_ABI_DEFAULT.
28589         (mips_isa_info): New variable.
28590         (mips_parse_cpu): Remove the first argument and leave the caller
28591         to report errors.
28592         (TARGET_HANDLE_OPTION): Override default.
28593         (mips_handle_option): New function.  Move option validation code from...
28594         (override_options): ...here.  Update calls to mips_parse_cpu.
28595         * config/mips/mips.h (mips_arch_string, mips_tune_string)
28596         (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
28597         (SUBTARGET_TARGET_OPTIONS): Delete.
28598         * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
28599         (mno-flush-func, mtune=): New options.
28601 2005-03-15  Roger Sayle  <roger@eyesopen.com>
28602             Richard Henderson  <rth@redhat.com>
28604         * real.c (c4x_single_format, c4x_extended_format): Provide values
28605         for signbit_ro for c4x's single and extended floating point formats.
28606         * optabs.c (expand_copysign): Use the floating point format's
28607         signbit_ro for expanding via expand_copysign_absneg, and it's
28608         signbit_rw field for expanding via expand_copysign_bit.
28610 2005-03-15  Dorit Naishlos  <dorit@il.ibm.com>
28612         * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
28613         known_alignment_for_access_p.
28614         (known_alignment_for_access_p): New.
28615         (do_peeling_for_alignment): Field made int instead of bool and renamed
28616         to peeling_for_alignment.
28617         (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
28618         * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
28619         functionality used to be in vect_analyze_operations.
28620         (vect_analyze_operations): Code to determine vectorization factor was
28621         moved to vect_determine_vectorization_factor.
28622         (vect_enhance_data_refs_alignment): Update to correct alignment when it
28623         is known instead of -1.  Set LOOP_PEELING_FOR_ALIGNMENT to peeling
28624         factor.
28625         (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
28626         be part of vect_analyze_operations).
28627         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
28628         creating the guard condition, as the number of iterations may be
28629         constant.
28630         (slpeel_tree_peel_loop_to_edge): Use new name of
28631         LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
28632         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
28633         alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
28634         (vect_do_peeling_for_alignment): Use fold.
28635         (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
28637         (vect_update_inits_of_dr): Renamed to
28638         vect_update_init_of_dr.
28639         (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
28640         (vectorizable_store): Fix assertion to use == instead of =.
28642 2005-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
28644         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
28645         call_used_regs for wCG registers.
28647 2005-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
28649         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
28650         for non-offsettable memory references to cope with outstanding reload
28651         replacements, take 2.
28653 2005-03-15  Uros Bizjak  <uros@kss-loka.si>
28655         PR target/18668
28656         * config/i386/i386.h (x86_fisttp): New.
28657         (TARGET_FISTTP): New macro.
28658         * config/i386/i386.c (x86_fisttp): Set for NOCONA.
28659         (output_fix_trunc): Add fisttp parameter.  Generate fisttp x87
28660         instruction when fisttp flag is set.
28661         * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
28663         * config/i386/i386.md (type attribute): Add fisttp.
28664         (unit attribute): Set to i387 for fisttp type.
28665         (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
28666         (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
28667         TARGET_FISTTP.
28668         (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
28669         Generate fisttp patterns for TARGET_FISTTP. Implement using mode
28670         macros.
28671         (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
28672         patterns for TARGET_FISTTP.  Enable patterns for
28673         (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
28674         (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
28675         fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
28676         implement fisttp x87 insn.
28677         (fix_trunc*_i387_fisttp splitters): New patterns.
28678         (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
28679         Rename to *fix_trunc<mode>_i387_1.  Implement using mode macros.
28680         Disable patterns for TARGET_FISTTP.  Add comment about FLAGS_REG
28681         clobber.
28682         (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
28683         Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
28684         Implement using mode macros. Disable patterns for TARGET_FISTTP.
28685         (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
28686         fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
28687         fix_trunc<mode>_i387_with_temp. Implement using mode macros.
28688         Disable patterns for TARGET_FISTTP.
28689         (fix_trunc*_i387 splitters): Implement usign mode macros.
28690         (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
28691         fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
28692         (fix_trunx*_sse peephole2s): Implement using mode macros.
28694 2005-03-15  J"orn Rennecke <joern.rennecke@st.com>
28696         PR rtl-optimization/20291
28697         * combine.c (try_combine): If splitting fails, re-try with
28698         original combined pattern, i.e. before clobber stripping.
28700 2005-03-14  Eric Christopher  <echristo@redhat.com>
28702         * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
28703         STACK_GROWS_DOWNWARD.
28705 2005-03-14  Roger Sayle  <roger@eyesopen.com>
28707         * real.h (struct real_format): Split the signbit field into two
28708         two fields, signbit_ro and signbit_rw.
28709         * real.c (ieee_single_format, mips_single_format, ieee_double_format,
28710         mips_double_format, ieee_extended_motorola_format,
28711         ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
28712         ieee_extended_intel_128_format, ibm_extended_format,
28713         mips_extended_format, ieee_quad_format, mips_quad_format,
28714         vax_f_format, vax_d_format, vax_g_format, i370_single_format,
28715         i370_double_format, c4x_single_format, c4x_extended_format,
28716         real_internal_format): Update initializers for new field.
28717         * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
28718         real_format structure.
28719         * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
28720         field of the real_format structure.
28722 2005-03-14  Daniel Berlin <dberlin@dberlin.org>
28724         Fix PR tree-optimization/20458
28726         * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
28727         DECL_EXTERNAL on STRUCT_FIELD tags.
28728         (clear_call_clobbered): Ditto.
28729         * tree-ssa-operands.c (note_addressable): Make sure the original
28730         variable doesn't slip into the addressable list if we have
28731         subvars.
28732         * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
28733         tags too.
28735 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
28737         * doc/cppopts.texi (-fexec-charset): Add concept index entry.
28738         (-fwide-exec-charset): Likewise.
28739         (-finput-charset): Likewise.
28740         * doc/invoke.texi (Warning Options): Document -Wnormalized=.
28741         * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
28742         * c.opt (Wnormalized): New.
28744 2005-03-14  Devang Patel  <dpatel@apple.com>
28746         * doc/invoke.texi: Add reference to Visibility document.
28748 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
28750         * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
28751         MASK_SPLIT_ADDRESSES.
28752         * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
28753         (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
28754         (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
28755         (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
28756         (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
28757         (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
28758         (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
28759         (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
28760         (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
28761         (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
28762         (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
28763         (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
28764         (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
28765         (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
28766         (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
28767         (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
28768         (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
28769         (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
28770         (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
28771         (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
28772         (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
28773         (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
28774         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
28775         (TARGET_EXPLICIT_RELOCS): Delete.
28776         (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
28777         (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
28778         * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
28779         (override_options): Set MASK_LONG64 if -mint64 is given and no
28780         -mlongXX option is.  Complain about -mint64 -mlong32.
28781         (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
28782         MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
28783         * config/mips/mips.opt: New file.
28785 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
28787         * config.gcc (extra_options): New variable for listing option files.
28788         Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
28789         * configure.ac (extra_opt_files): New AC_SUBST variable.
28790         (tm_file_list, tm_include_list): Include options.h first.
28791         * configure: Regenerate.
28792         * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
28793         (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
28794         (s-options-h): New rule.
28795         (options.h): Depend on it.
28796         (TEXI_GCCINT_FILES): Add options.texi.
28797         * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
28798         * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
28799         * target.h (gcc_target): Add default_target_flags and handle_option.
28800         * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
28801         (TARGET_HANDLE_OPTION): New macros.
28802         (TARGET_INITIALIZER): Include them.
28803         * opt-functions.awk (opt_args, nth_arg): New functions.
28804         (switch_flags): Handle the "Target" flag.
28805         (var_args): Delete.
28806         (var_name): Use opt_args and nth_arg.
28807         (var_set, var_ref): Likewise.  Handle "Mask" and "InverseMask".
28808         * opth-gen.awk: Declare target_flags.  Declare MASK_* and TARGET_*
28809         macros for the "Mask" and "InverseMask" options.
28810         * opts.h (cl_var_cond): New enum.
28811         (cl_option): Replace the "has_set_value" and "set_value" fields with
28812         "var_cond" and "var_value".
28813         (CL_TARGET): New macro.
28814         (option_enabled, print_filtered_help): Declare.
28815         (decode_options): Move definition.
28816         * opts.c (handle_option): Search for the original option before
28817         removing any "no-" prefix.  Handle CL_TARGET.  Adjust for the new
28818         var_cond and var_value fields.  Use targetm.handle_option to handle
28819         target options.
28820         (decode_options): Set target_flags to targetm.default_target_flags.
28821         (print_filtered_help): Make global.  Handle CL_TARGET.
28822         (option_enabled): New function.
28823         * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
28824         (display_target_options, set_target_switch, print_switch_values)
28825         (default_pch_valid_p): Guard uses of target_switches with
28826         #ifdef TARGET_SWITCHES.  Also...
28827         (display_target_options): Display the CL_TARGET entries in cl_options.
28828         (set_target_option): Don't complain about the "" option when
28829         TARGET_SWITCHES is undefined.
28830         (print_switch_values): Use option_enabled.
28831         (default_pch_valid_p): Check cl_options[] when looking for something
28832         that has changed the value of target_flags.
28833         * c.opt: Remove documentation from top of file.
28834         * doc/gccint.texi: Add an "Options" chapter.  Include options.texi.
28835         * doc/sourecebuild.texi: Refer to the new options documentation
28836         instead of c.opt.  Document machine-specific .opt files.
28837         * doc/tm.texi (target_flags): Say that this variable is declared
28838         by options.h.
28839         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
28840         (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
28841         an alternative.
28842         * doc/options.texi: New file.
28844 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
28846         PR middle-end/18628
28847         * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
28848         register.
28850 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
28852         PR c++/20280
28853         * gimplify.c (gimplify_cond_expr): Add fallback argument.  Use a
28854         temporary variable of pointer type if an lvalues is required.
28855         (gimplify_modify_expr_rhs): Request an rvalue from it.
28856         (gimplify_expr): Pass fallback on.
28858 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
28860         * cfgbuild.c: Update comments.
28862 2005-03-14  Roger Sayle  <roger@eyesopen.com>
28864         PR rtl-optimization/17236
28865         * optabs.c (expand_doubleword_mult): New helper function split out
28866         from expand_binop.  Permute the order in which instructions are
28867         emitted to minimize the number of simultaneously live registers.
28868         (expand_binop): Call expand_doubleword_mult to synthesize a double
28869         word multiplication.
28871 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
28873         * basic-block.h: Update the prototypes of cached_make_edge and
28874         rtl_make_eh_edge.
28875         * cfg.c (cached_make_edge): Take edge_cache representing one
28876         row of the adjacency matrix of edges.
28877         * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
28878         (make_edges): Initialize edge_cache to represent one row of
28879         the adjacency matrix of edges.
28881 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
28883         * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
28884         New functions.
28885         (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
28886         Remove unused removed_phis variable.
28887         (conditional_replacement): Use build1/build2.
28888         (abs_replacement): Use last_and_only_stmt and build1/build2.
28890 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
28892         * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
28893         ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
28894         * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
28895         (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
28896         * c-common.c (handle_novops_attribute): New function.
28897         (c_common_attribute_table): Add "no vops" entry.
28898         * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
28899         * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
28900         * tree-ssa-operands.c (get_call_expr_operands): Do not
28901         create virtual operands for calls with ECF_NOVOPS flag.
28902         * tree.h (DECL_IS_NOVOPS): New macro.
28903         (struct tree_decl): Add novops_flag.
28904         (ECF_NOVOPS): New constant.
28906 2005-03-14  Uros Bizjak  <uros@kss-loka.si>
28908         PR target/17688
28909         * config/i386/i386.c (x86_use_himode_fiop): New.
28910         (x86_use_simode_fiop): Rename from x86_use_fiop.
28911         * config/i386/i386.h (x86_use_himode_fiop): Declare.
28912         (TARGET_USE_HIMODE_FIOP): New.
28913         (x86_use_simode_fiop): Rename from x86_use_fiop.
28914         (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
28916         * config/i386/i386.md (X87MODEI12): New mode macro define.
28917         (*cmpfp_<mode>): Rename from *cmpfp_si.  Use X87MODEI12 mode macro
28918         to implement x87 FP compare with HImode input operands.
28919         (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
28920         Use X87MODEI12 mode macro to handle HImode input operands.
28921         (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
28922         *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
28923         Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
28924         *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
28925         macro to implement x87 operators with HImode input operands.
28926         (fop splitters): Use X87MODEI12 mode macro to handle HImode
28927         input operands.
28929 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
28931         * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
28932         integer_zerop.
28933         * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
28934         constants invariant.
28936 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
28938         * basic-block.h (BB_VISITED): Removed.
28939         * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
28941 2005-03-14  Falk Hueffner  <falk@debian.org>
28943         PR bootstrap/20424
28944         * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
28946 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
28948         * ggc-zone.c: Fix comment typos.
28950         * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
28951         stringpool.c, config/mips/mips-protos.h: Update copyright.
28953 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
28955         * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
28956         throughout with its typedef, "rtx".
28957         * config/rs6000/rs6000.c: Likewise.  Formatting fixes.
28958         (rs6000_tls_symbol_ref_1): Remove inline keyword.
28959         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting.  Reorder
28960         regs in comment to match code.
28962 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
28964         * except.c (check_handled): Make it static.
28965         * except.h: Remove the corresponding prototype.
28967         * function.c (get_func_frame_size): Make it static.
28968         * function.h: Remove the corresponding type.
28970         * regclass.c (reg_class_superclasses, reg_class_subclasses):
28971         Make them static.
28972         * hard-reg-set.h: Remove the corresponding declarations.
28974         * tree-cfg.c (verify_stmts): Check that
28975         bb_for_stmt (stmt) == bb for every PHI node and statement.
28977 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
28979         * config.gcc: Remove excess indentation.
28980         (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
28982 2005-03-13  Roger Sayle  <roger@eyesopen.com>
28984         PR middle-end/19331
28985         * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
28986         * fold-const.c (fold_sign_changed_comparison): Likewise.
28987         (fold_binary): Optimize comparisons against widened operands if
28988         the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
28990 2005-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
28992         * config/sparc/sparc.c (struct_value_alias_set): New global variable.
28993         (sparc_override_options): Initialize it.
28994         (sparc_struct_value_rtx): Set it on the MEM to be returned.
28996 2005-03-13  David Edelsohn  <edelsohn@gnu.org>
28998         * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
28999         (reg_or_none500mem_operand): New predicate.
29000         (zero_reg_mem_operand): New predicate.
29001         * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
29002         to reg_or_none500mem_operand.
29003         (extendsfdf2_fpr): Add MEM alternative.
29004         (extenddftf2_internal): Change operand2 predicate to
29005         zero_reg_mem_operand.
29007 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
29009         * ggc-zone.c: Rewritten.
29011         * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
29012         if there are none.
29013         * configure.ac: Define GGC_ZONE for --with-gc=zone.
29014         * config.in: Regenerated.
29015         * configure: Regenerated.
29016         * gengtype.c (write_types_process_field, write_func_for_structure):
29017         Pass new argument to gt_pch_note_object.
29018         * ggc-common.c (struct ptr_data): Add TYPE.
29019         (gt_pch_note_object): Take TYPE argument and save it.
29020         (call_count): Update call to ggc_pch_count_object.
29021         (call_alloc): Update call to ggc_pch_alloc_object.
29022         (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
29023         file.
29024         * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
29025         * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
29026         (ggc_alloc_zone_stat): Delete.
29027         (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
29028         * ggc.h (gt_pch_note_object, ggc_pch_count_object)
29029         (ggc_pch_alloc_object): Update prototypes.
29030         (garbage_zone): Delete.
29031         (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
29032         GGC_ZONE conditional.  Update.  Change tree_zone and rtl_zone into
29033         pointers.
29034         (tree_id_zone): New variable.
29035         (ggc_alloc_cleared_zone): Remove unused.
29036         (ggc_alloc_zone): Define.
29037         (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
29038         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
29039         ggc_alloc_zone_stat.
29040         * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
29041         * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
29042         (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
29043         (make_node_stat): Likewise.  Use tree_id_zone.
29045 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
29046             Joseph S. Myers  <joseph@codesourcery.com>
29048         * configure.ac: Check for MIPS TLS.
29049         * configure: Regenerated.
29050         * config/mips/mips-protos.h (enum mips_symbol_type): Add
29051         SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
29052         SYMBOL_GOTTPREL, and SYMBOL_TPREL.
29053         * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
29054         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
29055         (mips_classify_symbol, mips_symbolic_constant_p)
29056         (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
29057         (mips_tls_operand_p, mips_call_tls_get_addr)
29058         (mips_legitimize_tls_address, mips_cannot_force_const_mem)
29059         (mips_tls_symbol_ref_1): New functions.
29060         (mips_legitimize_address, mips_legitimize_const_move): Call
29061         mips_legitimize_tls_address.
29062         (override_options): Handle V1_REG and TLS symbols.  Disable TLS
29063         for MIPS16.
29064         * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
29065         (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
29066         (mips_char_to_class): Document V1_REG.
29067         (HAVE_AS_TLS): Provide default.
29068         * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
29069         constants.
29070         (load_got<mode>): Renamed from *load_got<mode>.  Allow when
29071         !TARGET_ABICALLS.
29072         (tls_get_tp_<mode>): New instruction.
29074 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
29076         * configure.ac: Update checks for target tools.
29077         * configure: Regenerated.
29079 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
29081         * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
29083 2005-03-13  Roger Sayle  <roger@eyesopen.com>
29085         * expmed.c (expand_mult): Use synthetic multiplication sequences for
29086         more classes of DImode multiplication by constant.  Allow both
29087         multiplication by small negative constants (by performing a
29088         multiplication by a positive constant and negating the result) and
29089         multiplications by large powers of two, by using a left shift.
29091 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
29093         * tree-into-ssa.c (find_idf): Speed up by putting the indexes
29094         of basic blocks into work_stack.
29096         * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
29097         config/mips/vr.h: Update copyright.
29099         * c-decl.c (c_init_decl_processing): Remove useless calls to
29100         build_function_type.
29102         * builtins.c (fold_trunc_transparent_mathfn,
29103         fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
29104         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
29105         fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
29106         fold_builtin_strcpy, fold_builtin_strncpy,
29107         fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
29108         TREE_TYPE (exp).
29110         * builtins.c (expand_builtin_mathfn_3): Remove local variable
29111         before_call.
29113         * lambda-code.c (lambda_compute_auxillary_space): Remove local
29114         variable determinant.
29116         * tree-cfg.c (group_case_labels): Remove local variable type.
29118         * tree-ssa-live.c (build_tree_conflict_graph): Remove local
29119         variable ann.
29121         * tree-ssa-phiopt.c (value_replacement): Remove local variable
29122         result.
29124 2005-03-13  Andy Hutchinson  <HutchinsonAndy@netscape.net>
29126         PR target/18251
29127         * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
29128         (*movmemqi_insn): Delete.
29129         (*movmemhi): Delete.
29131 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
29133         * builtins.c (fold_builtin_classify): Take decomposed
29134         arguments of CALL_EXPR.
29135         (fold_builtin_1): Update a call to fold_builtin_classify.
29137 2005-03-13  Joseph S. Myers  <joseph@codesourcery.com>
29139         PR c/20402
29140         * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
29141         through into call to parser_xref_tag after parse error.
29142         (c_parser_struct_declaration): Consistently return NULL_TREE on
29143         error.
29145 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
29147         * tree-flow-inline.h (ref_contains_array_ref): New function.
29148         (lookup_subvars_for_var): Ditto.
29149         (get_subvars_for_var): Ditto.
29150         (var_can_have_subvars): Ditto.
29152         * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
29153         (struct subvar): New type.
29155         * tree-dfa.c (okay_component_ref_for_subvars): New function.
29157         * tree-optimize.c (init_tree_optimization_passes): Call
29158         pass_create_structure_vars.
29160         * tree-ssa-alias.c: Include vec.h.
29161         (init_alias_info): Don't auto-clear call clobbered on struct-field
29162         tags.
29163         (compute_flow_insensitive_aliasing): Handle subvars.
29164         (group_aliases): Handle STRUCT_FIELD aliases.
29165         (setup_pointers_and_addressables): Ditto.
29166         Don't mark variables non-addressable if they still have
29167         addressable subvars.
29168         Also mark subvars addressable when the real variable is marked
29169         addressable.
29170         (add_pointed_to_var): Try to prune the pointed-to set by only
29171         pointing to subvars when possible.
29172         Otherwise, make sure we set addresses_needed and pt_vars to
29173         properly include subvars.
29174         (bitpos_of_field): New function.
29175         (push_fields_onto_fieldstack): Ditto.
29176         (get_or_create_used_part_for): Ditto.
29177         (create_overlap_variables_for): Ditto.
29178         (find_used_portions): Ditto.
29179         (create_structure_vars): Ditto.
29180         (pass_create_structure_vars): New structure.
29182         * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
29183         (get_expr_operands): Handle subvars.  Also try to turn
29184         COMPONENT_REF accesses into must-defs now that we can accurately
29185         portray it.
29186         (note_addressable): Try to only mark as addressable those subvars
29187         we know a COMPONENT_REF touches.
29188         (overlap_subvar): New function.
29190         * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
29191         Handle subvar storing.
29192         (vect_address_analysis): Update caller of vect_object_analysis.
29194         * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
29196         * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
29197         (STMT_VINFO_SUBVARS): New macro.
29199         * common.opts: add flag_tree_salias.
29201         * opts.c (decode_options): flag_tree_salias defaults to on.
29203         * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
29205         * doc/tree-ssa.texi: Document structural alias analysis.
29207 2005-03-12  Steven Bosscher  <stevenb@suse.de>
29209         * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
29210         * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
29211         * tree-ssa-operands.c (get_expr_operands): Likewise.
29212         (get_expr_operands): Likewise for ERROR_MARK.
29214 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
29216         * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
29217         var.
29219         * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
29220         removed_phis.
29222         * tree-ssa-pre.c (compute_avail): Remove local variable val.
29223         (mark_operand_necessary): Remove local variable ver.
29225         * tree-vect-transform.c (vect_get_new_vect_var): Remove local
29226         variable prefix_len.
29228         * value-prof.c (mod_subtract_transform): Remove local variable
29229         value.
29231         * builtins.c (fold_builtin_exponent): Take decomposed
29232         arguments of CALL_EXPR.
29233         (fold_builtin_1): Update a call to fold_builtin_exponent.
29235         * builtins.c (fold_builtin_logarithm): Take decomposed
29236         arguments of CALL_EXPR.
29237         (fold_builtin_1): Update a call to fold_builtin_logarithm.
29239         * c-decl.c (c_init_decl_processing): Remove local variables
29240         ptr_ftype_void and ptr_ftype_ptr.
29242         * gimplify.c (gimplify_expr): Remove local variables r0 and
29243         r1.
29245         * reg-stack.c (move_for_stack_reg): Remove local variable
29246         push_insn.
29247         (compare_for_stack_reg): Remove local variable flags_user.
29248         (convert_regs_1): Remove local variable deleted.
29250         * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
29251         variable new_cond.
29252         (combine_blocks): Remove local variables exits and new_e.
29254         * tree-inline.c (expand_call_inline): Remove local variable
29255         decl.
29257         * tree-ssa-live.c (create_ssa_var_map,
29258         calculate_live_on_entry): Remove local variable snn.
29260 2005-03-12  Geoffrey Keating  <geoffk@apple.com>
29262         * c-lex.c (c_lex_with_flags): Add parameter to call to
29263         cpp_spell_token.
29265 2005-03-11  Per Bothner  <per@bothner.com>
29267         * c-tree.h (struct c_declarator): New id_loc field.
29268         * c-pragma.h (c_lex_with_flags): Take position reference.
29269         * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
29270         iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
29271         (c_lex): Pass dummy location to c_lex_with_flags.
29272         * c-parser.c (c_lex_one_token): Set c_token's location using
29273         c_lex_with_flags, instead of input_location, which might be "ahead".
29274         (c_parser_direct_declarator): Set declarator's id_loc from
29275         c_token's id_loc.
29276         * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
29277         declarator's id_loc, rather than probably-imprecise input_location.
29278         (build_id_declarator): Initialize c_declarator's id_loc field.
29280 2005-03-11  Roger Sayle  <roger@eyesopen.com>
29282         PR middle-end/20419
29283         * builtins.c (expand_builtin_signbit): Force the signbit's word
29284         into an integer register to avoid SUBREGs of floating point modes.
29286 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
29288         * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
29289         target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
29290         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
29291         config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
29293 2005-03-11  David Edelsohn  <edelsohn@gnu.org>
29295         PR rtl-optimization/20306
29296         * expr.c (emit_move_complex): Set try_int false if mode is
29297         MODE_COMPLEX_FLOAT and mov_optab exists for inner mode.  Only try
29298         emit_block_move if try_int is true.
29300 2005-03-11  Richard Henderson  <rth@redhat.com>
29302         PR target/20415
29303         * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
29304         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
29305         to match.
29307 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
29309         * config/mips/mips.h (mips_fix_vr4130_string): Declare.
29310         (TARGET_FIX_VR4130): New macro.
29311         (TARGET_OPTIONS): Add -mfix-vr4130.
29312         (ISA_HAS_MACCHI): New macro.
29313         (ASM_SPEC): Add -mfix-vr4130.
29314         * config/mips/mips.c (mips_fix_vr4130_string): New variable.
29315         (override_options): Handle mips_fix_vr4130_string.
29316         (mips_avoid_hazards): Clear all_noreorder_p
29317         if we're working around VR4130 errata and the macc alternatives
29318         are not available.
29319         * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
29320         (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
29321         * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
29322         (MULTILIB_DEFAULTS): Remove leading "march=".
29323         (DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
29324         if no architecture option is given.
29325         * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
29326         VR4130 multilibs.
29327         (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
29328         * doc/invoke.texi: Document -mfix-vr4130.
29330 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
29332         * config/mips/mips.c (override_options): Only warn about -mint64
29333         deprecation if TARGET_INT64.
29335 2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29337         * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
29338         ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
29339         ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
29340         are non-specific regarding the nonnull parameter positions.
29341         (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
29342         ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
29343         ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
29344         ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
29346         * builtins.def: Use the non-specific "nonnull" attibute lists.
29348 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
29350         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
29351         single_pred_edge, single_succ, single_pred): Improve comments.
29353 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
29355         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
29356         single_pred_edge, single_succ, single_pred): New inline functions.
29357         * bb-reorder.c (rotate_loop, find_traces_1_round,
29358         add_labels_and_missing_jumps, fix_up_fall_thru_edges,
29359         duplicate_computed_gotos): Use the single_succ/pred functions.
29360         * cfganal.c (forwarder_block_p): Ditto.
29361         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
29362         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
29363         outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
29364         merge_seq_blocks): Ditto.
29365         * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
29366         * cfglayout.c (fixup_reorder_chain): Ditto.
29367         * cfgloop.c (mark_single_exit_loops, update_latch_info,
29368         canonicalize_loop_headers, verify_loop_structure): Ditto.
29369         * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
29370         mfb_update_loops, create_preheader, force_single_succ_latches,
29371         create_loop_notes): Ditto.
29372         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
29373         force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
29374         commit_one_edge_insertion, purge_dead_edges,
29375         cfg_layout_can_merge_blocks_p): Ditto.
29376         * except.c (sjlj_emit_function_enter): Ditto.
29377         * flow.c (init_propagate_block_info): Ditto.
29378         * function.c (thread_prologue_and_epilogue_insns): Ditto.
29379         * gcse.c (find_implicit_sets, bypass_conditional_jumps,
29380         insert_insn_end_bb): Ditto.
29381         * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
29382         find_if_case_2): Ditto.
29383         * lambda-code.c (perfect_nestify): Ditto.
29384         * lcm.c (optimize_mode_switching): Ditto.
29385         * loop-doloop.c (doloop_modify): Ditto.
29386         * loop-init.c (loop_optimizer_init): Ditto.
29387         * loop-iv.c (simplify_using_initial_values): Ditto.
29388         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
29389         * loop-unswitch.c (unswitch_loop): Ditto.
29390         * modulo-sched.c (generate_prolog_epilog): Ditto.
29391         * predict.c (combine_predictions_for_insn, estimate_probability,
29392         tree_estimate_probability, last_basic_block_p,
29393         estimate_bb_frequencies): Ditto.
29394         * profile.c (branch_prob): Ditto.
29395         * regrename.c (copyprop_hardreg_forward): Ditto.
29396         * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
29397         * tracer.c (layout_superblocks): Ditto.
29398         * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
29399         cfg_remove_useless_stmts_bb, cleanup_control_flow,
29400         cleanup_control_expr_graph, disband_implicit_edges,
29401         tree_find_edge_insert_loc, bsi_commit_edge_inserts,
29402         tree_verify_flow_info, tree_make_forwarder_block,
29403         tree_forwarder_block_p, remove_forwarder_block,
29404         remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
29405         * tree-if-conv.c (tree_if_conversion): Ditto.
29406         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
29407         * tree-ssa-dce.c (remove_dead_stmt): Ditto.
29408         * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
29409         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
29410         copy_loop_headers): Ditto.
29411         * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
29412         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
29413         * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
29414         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
29415         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
29416         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
29417         * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
29418         * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
29419         * tree-ssa-threadupdate.c (redirect_edges): Ditto.
29420         * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
29421         eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
29422         * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
29423         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
29424         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
29425         slpeel_add_loop_guard): Ditto.
29427 2005-03-11  James A. Morrison  <phython@gcc.gnu.org>
29429         PR tree-optimization/15784
29430         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
29431         and -1 - A to ~A.
29433         * stmt.c (expand_case): Don't change index_type.  Convert minval
29434         to the proper type.
29436         PR tree-optimization/20130
29437         * fold-const.c (fold): Fold x * -1 into -x.
29439 2005-03-11  Kaz Kojima  <kkojima@gcc.gnu.org>
29441         PR rtl-optimization/20331
29442         * rtlanal.c (modified_between_p): Check its address first for MEM.
29443         (modified_in_p): Likewise.
29445 2005-03-11  Joseph S. Myers  <joseph@codesourcery.com>
29447         * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
29449 2005-03-10  Steven Bosscher  <stevenb@suse.de>
29451         * expr.c (expand_expr_real_1): If possible, use a conditional
29452         move for expanding MIN_EXPR and MAX_EXPR.
29453         Use temp for moving around rtx-en.
29455 2005-03-10  Andrew Pinski  <pinskia@physics.uc.edu>
29457         PR rtl-opt/20412
29458         * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
29459         correct mode.
29461 2005-03-10  Roger Sayle  <roger@eyesopen.com>
29463         * builtins.c (expand_builtin_signbit): Extend to handle floating
29464         point modes wider than the largest integer type, using the
29465         operand_subword_force function to obtain the signbit's word.
29467 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
29469         PR target/20322
29470         * combine.c (try_combine): If recog_for_combine added CLOBBERs
29471         to NEWI2PAT, fail to combine if they are used by NEWPAT.
29473 2005-03-10  Aldy Hernandez  <aldyh@redhat.com>
29475         * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
29477 2005-03-10  Kazu Hirata  <kazu@cs.umass.edu>
29479         * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
29480         type void.
29481         (perform_edge_inserts): Unconditionally call
29482         free_dominator_info.
29484         * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
29486 2005-03-10  Bob Wilson  <bob.wilson@acm.org>
29488         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
29490 2005-03-10  Nathan Sidwell  <nathan@codesourcery.com>
29492         * bitmap.c (bitmap_copy): Remove manual loop unrolling.
29494         * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
29495         gcc_unreachable.
29496         (rtl_register_value_prof_hooks,
29497         tree_value_profile_transformations,
29498         tree_register_value_prof_hooks): Likewise.
29499         * var-tracking.c (stack_adjust_offset_pre_post,
29500         variable_htab_free, variable_union, dataflow_set_different_2,
29501         count_uses, variable_was_changed, set_frame_base_location,
29502         set_variable_part, emit_note_insn_var_location, vt_emit_notes,
29503         vt_add_function_parameters): Likewise.
29504         * varasm.c (named_section_real, named_section, make_decl_rtl,
29505         asm_emit_uninitialised, assemble_integer, decode_addr_const,
29506         const_hash_1, compare_constant, copy_constant, force_const_mem,
29507         output_constant_pool_2, output_constant_pool_1, output_constant,
29508         output_constructor, make_decl_one_only, decl_tls_model,
29509         default_no_named_section, default_elf_select_section_1,
29510         default_unique_section_1): Likewise.
29511         * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
29512         * vmsdbgout.c (addr_const_to_string): Likewise.
29514         PR c++/20375
29515         * function.c (struct assign_parm_data_one): Remove last_named
29516         field.
29517         (assign_parm_find_data_types): Don't determine last_named.
29518         Reorder named_parm determination.
29519         (assign_parms): Only setup varargs on the last non-varadic
29520         parameter.
29522 2005-03-10  Kazuhiro Inaoka  <inaoka.lazuhiro@renesas.com>
29524         * config/m32r/m32r.md (load_sda_base_32): New pattern.  Loads
29525         sda base address on medium model.
29527 2005-03-10  Zdenek Dvorak  <dvorakz@suse.cz>
29529         * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
29530         * cfgloop.c (flow_loop_nodes_find): Export.
29531         * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
29532         Declare.
29533         * cfgloopmanip.c (fix_loop_structure): New function.
29534         * predict.c (predict_loops): Clean up the loops information.
29535         * tree-cfg.c (cleanup_tree_cfg_loop): New function.
29536         (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
29537         loop structure.
29538         * tree-flow.h (cleanup_tree_cfg_loop): Declare.
29539         (rewrite_into_loop_closed_ssa): Declaration changed.
29540         * tree-loop-linear.c (linear_transform_loops): Add argument to
29541         rewrite_into_loop_closed_ssa call.
29542         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
29543         * tree-ssa-loop-im.c (move_computations): Ditto.
29544         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
29545         * tree-vectorizer.c (vectorize_loops): Ditto.
29546         * tree-optimize.c: Include cfgloop.h.
29547         (execute_todo): Choose whether to call cleanup_tree_cfg or
29548         cleanup_tree_cfg_loop.
29549         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
29550         (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
29551         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
29552         cleanup_tree_cfg_loop call.
29553         * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
29554         (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
29555         work on part of cfg.
29557 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
29559         PR inline-asm/20314
29560         * gimplify.c (gimplify_asm_expr): Handle input/output constraints
29561         with multiple alternatives.
29563         * stmt.c (parse_output_constraint): Fix a typo.
29565 2005-03-09  Bob Wilson  <bob.wilson@acm.org>
29567         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
29568         assembly directive instead of deprecated "no-generics".
29570 2005-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
29572         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
29573         for non-offsettable memory references to cope with outstanding reload
29574         replacements.
29575         * config/s390/s390.md ("reload_outti"): Call find_replacement to
29576         avoid losing outstanding address reloads.
29577         ("reload_outdi", "reload_outdf"): Likewise.
29579 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29581         * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
29582         code.  Add more cbrt transformations.
29584 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29586         * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
29588 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
29590         * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
29591         NULL_TREE when a given tree is not simplified.
29592         (fold): Return the original tree when any of the functions
29593         mentioned above NULL_TREE.
29595         * fold-const.c (fold_unary, fold_binary): Take decomposed
29596         arguments, code, type, op0, and op1 in case of fold_binary.
29597         (fold): Update calls to fold_unary and fold_binary.
29599 2005-03-09  Roger Sayle  <roger@eyesopen.com>
29601         * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
29602         a fndecl and an arglist instead of a CALL_EXPR, exp.
29604 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
29606         * cfglayout.c (fixup_reorder_chain): Remove old_bb.
29608         * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
29610         * expr.c (expand_assignment): Remove orig_to_rtx.
29612         * fold-const.c (int_const_binop): Remove no_overflow.
29614         * ifcvt.c (noce_emit_move_insn): Remove inmode.
29616         * loop-iv.c (get_biv_step_1): Remove lhs.
29618         * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
29620         * real.c (real_nan): Remove neg.
29622         * function.c (thread_prologue_and_epilogue_insns): Remove i
29623         and newinsn.
29625         * tree-data-ref.c (array_base_name_differ_p): Remove ta and
29626         tb.
29628         * tree-eh.c (tree_could_trap_p): Remove idx.
29630         * tree-into-ssa.c (ann): Remove ann.
29632         * tree-outof-ssa.c (num_nodes): Remove num_nodes.
29634         * tree-sra.c (decide_block_copy): Remove inst_count.
29636         * tree-ssa-alias.c (may_alias_p): Remove v_ann.
29638         * tree-ssa-loop-im.c (lhs): Remove.
29640         * cfgbuild.c (state, STATE, SET_STATE,
29641         BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
29642         make_edges.
29643         (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
29644         (find_basic_blocks): Set the state of each basic block to
29645         BLOCK_NEW.
29647 2005-03-08  Jeff Law  <law@redhat.com>
29649         * tree-cfg.c (cleanup_control_flow): If removal of a computed
29650         goto results in the removal of edges in the CFG, then we need
29651         to recompute dominators.
29653 2005-03-09  Ben Elliston  <bje@au.ibm.com>
29655         * c-common.c (c_do_switch_warnings): Comment fix.
29657 2005-03-08  Julian Brown  <julian@codesourcery.com>
29659         * Patch from 2005-03-08 reverted for causing regressions and
29660         ppc-darwin bootstrap failure.
29662 2005-03-08  Fariborz Jahanian <fjahanian@apple.com>
29664         * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
29665         Define the real function for ppc-darwin.
29666         * c-typeck.c (convert_arguments): Check for target-specific
29667         invalid argument call to unprototyped function.
29668         * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
29669         New Macro.
29670         * target.h (invalid_arg_for_unprototyped_fn): New field
29671         in struct calls.
29672         * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
29673         default target hook.
29674         * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
29675         Declare.
29677 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
29679         * c-typeck.c (constructor_stack, constructor_range_stack,
29680         initializer_stack): Make them static.
29682         * cfg.c (rbi_pool): Make it static.
29684         * gimple-low.c (lower_stmt_body): Make it static.
29685         * tree-flow.h: Remove the corresponding prototype.  Don't
29686         declare lower_data.
29688         * sched-deps.c (cache_size): Make it static.
29690         * stor-layout.c (lang_adjust_rli): Make it static.
29692 2005-03-08  Julian Brown  <julian@codesourcery.com>
29694         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
29695         from being used for symbols with vague linkage when
29696         HAVE_GAS_COMDAT_GROUP is true.
29698 2005-03-08  J"orn Rennecke <joern.rennecke@st.com>
29700         * jump.c (invert_jump_1): Don't call redirect_jump_1 with
29701         nlabel == JUMP_LABEL (jump).
29703 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
29705         * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
29706         gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
29707         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
29708         tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
29710 2005-03-08  Alexey Neyman  <alex.neyman@auriga.ru>
29712         PR c/14411
29713         * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
29714         * c-common.c (handle_returns_twice): New function.
29715         (c_common_attribute_table): Declare eturns_twice' attribute.
29716         * doc/extend.texi: Document eturns_twice' attribute.
29717         * tree.h (DECL_IS_RETURNS_TWICE): New macro.
29718         (struct tree_decl): Add returns_twice_flag.
29720 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
29722         * tree-ssa-phiopt.c: Fix a comment typo.
29724         * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
29725         loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
29726         config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
29727         copyright.
29729 2005-03-08  Richard Henderson  <rth@redhat.com>
29731         * config/alpha/alpha.c (code_for_builtin): Replace special-case
29732         builtin codes with ctzdi2, clzdi2, popcountdi2.
29733         (struct alpha_builtin_def): Add is_const.
29734         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
29735         (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
29736         (alpha_init_builtins): Init them.  Set nothrow and const attributes
29737         on builtins.
29738         (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
29739         alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
29740         alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
29741         alpha_fold_vector_minmax, alpha_fold_builtin_perr,
29742         alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
29743         alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
29744         alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
29745         alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
29746         (TARGET_FOLD_BUILTIN): New.
29747         * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
29748         (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
29749         (ffsdi2): Use ctz.
29750         (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
29752 2005-03-08  Ira Rosen  <irar@il.ibm.com>
29754         PR tree-optimization/20122
29755         * tree-vect-analyze.c (vect_object_analysis): Analyze initial
29756         condition of access function instead of base.
29758 2005-03-07  Jeff Law  <law@redhat.com>
29759             Steven Bosscher  <stevenb@suse.de>
29761         * tree-cfg.c (find_taken_edge_computed_goto): New function.
29762         (find_taken_edge): Call find_taken_edge_computed_goto as
29763         appropriate.  Allow any gimple invariant rather than just
29764         INTEGER_CST for VAL.
29765         (cleanup_control_flow): Cleanup a computed goto which has turned
29766         into a simple goto.
29767         (tree_merge_blocks): If block B has any forced labels, move
29768         them to the start of block A.
29769         * tree-ssa-dom.c (thread_across_edge): Allow threading across
29770         computed gotos as well.
29771         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
29772         removal of unnecessary computed gotos too.
29773         (lookup_redirection_data): Fix type of INSERT argument.  Callers
29774         updated.
29776 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
29778         * tree-ssa-phiopt.c: Update copyright.  Fix indentations.
29779         Remove trailing spaces.
29781         * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
29782         unshare_all_trees): Make them static.
29783         * tree-gimple.h: Remove the corresponding prototypes.
29785         * diagnostic.h: Remove unused prototype
29786         debug_output_buffer.
29787         * modulo-sched.c: Remove unused prototype
29788         set_row_column_for_ps.
29790         * tree-ssa-phiopt.c (tree_ssa_phiopt,
29791         replace_phi_edge_with_variable): Remove unused variable i.
29793 2005-03-07  Per Bothner  <per@bothner.com>
29795         * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
29797 2005-03-06  Andrew Pinski  <pinskia@physics.uc.edu>
29799         PR tree-opt/17671
29800         * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
29801         bbs on the COND_EXPR instead of the PHI_NODEs.
29802         (candidate_bb_for_phi_optimization): Remove.
29803         (replace_phi_with_stmt): Rename to ...
29804         (replace_phi_edge_with_variable): this and change so that we
29805         replace the phi argument instead of removing the PHI.
29806         (conditional_replacement): Change so we deal with PHI with more
29807         than two arguments.
29808         (value_replacement): Likewise.
29809         (abs_replacement): Likewise.
29811 2005-03-07  Aldy Hernandez  <aldyh@redhat.com>
29813         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
29814         output_e500_flip_gt_bit.
29816         * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
29817         as bit 31.
29818         (rs6000_generate_compare): Fix logic to look at the correct bits.
29819         (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
29820         Look at GT bit.
29821         (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
29822         gen_e500_flip_gt_bit.  Rename gen_move_from_CR_eq_bit to
29823         gen_move_from_CR_gt_bit.
29825         * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
29826         ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
29827         (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
29829         * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
29830         (E500_CR_IOR_COMPARE): New constant.
29832 2005-03-08  Earl Chew <earl_chew@agilent.com>
29833             David Billinghurst <David.Billinghurst@riotinto.com>
29835         * config/i386/host-cygwin.c: New file to support precompiled
29836         headers on cygwin
29837         * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
29838         * config.host: Use above files for cygwin host.
29840 2005-03-07  David Edelsohn  <edelsohn@gnu.org>
29842         * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
29843         ordering ops from earlier change.
29845 2005-03-07  Per Bothner  <per@bothner.com>
29847         Various fixes to allow us to again build if --enable-mapped-location:
29848         * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
29849         unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
29850         * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
29851         local variable loc. Change logic appropriately.
29852         * tree-vect-transform.c (vect_finish_stmt_generation): Use
29853         EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
29854         * c-parser.c (c_parser_for_statement): Initialize loc variable.
29855         * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
29856         DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
29858 2005-03-07  Richard Sandiford  <rsandifo@redhat.com>
29860         PR rtl-optimization/19683
29861         * reload1.c (choose_reload_regs): Pass the number of bits, not the
29862         number of bytes, to smallest_int_for_mode.  Fix arguments to
29863         REG_CANNOT_CHANGE_MODE_P.
29865 2005-03-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
29867         * reorg.c (relax_delay_slots): Check that the jump is
29868         conditional before trying to invert it.
29870 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
29872         * bb-reorder.c (max_entry_frequency, max_entry_frequency):
29873         Make them static.
29875         * calls (stack_arg_under_construction): Make it static.
29877         * flow.c (regs_live_at_setjmp): Make it static.
29878         * flow.h: Remove the corresponding prototype.
29880         * reload1.c (reload_startobj, reload_firstobj,
29881         something_needs_operands_changed, reload_inherited,
29882         reload_inheritance_insn, reload_override_in,
29883         reload_spill_index): Make them static.
29885         * recog.c (verify_changes): Make it static.
29886         * recog.h: Remove the corresponding prototype.
29888         * cfgbuild.c (find_sub_basic_blocks): Remove.
29889         * basic-block.h: Remove the corresponding prototype.
29890         * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
29891         in comments.
29892         * doc/cfg.texi: Don't mention find_sub_basic_blocks.
29894         * tree-ssa-operands.c (check_build_stmt): Remove.
29896         * stor-layout.c (set_alignment): Remove.
29897         * tree.h: Remove the corresponding prototype.
29899         * tree-ssa-pre.c (has_abnormal_preds): Make it static.
29901         * tree-ssa-dce.c (control_dependence_map,
29902         visited_control_parents): Make them static.
29904         * cfghooks.c (verify_flow_info): Remove local variable
29905         num_bb_notes.
29907         * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
29908         last_bb_seen.
29910         * loop-unswitch.c (unswitch_loop): Remove local variable src.
29912 2005-03-07  David Billinghurst <David.Billinghurst@riotinto.com>
29914         * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
29916 2005-03-07  Joseph S. Myers  <joseph@codesourcery.com>
29918         * config/ia64/hpux.h (LINK_SPEC): Add -z.
29919         * config/ia64/ia64.c (ia64_function_value): Return a REG not a
29920         PARALLEL for an empty structure.
29922 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
29924         * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
29926         * fold-const.c (fold_binary): Unroll the very first "for"
29927         loop.
29929 2005-03-06  David Edelsohn  <edelsohn@gnu.org>
29931         * config/rs6000/predicates.md (branch_comparison_operator): Remove
29932         redundant match_code test.
29933         (scc_comparison_operator): Swap match_operand and match_code
29934         tests.
29935         (branch_positive_comparison_operator): Same.
29936         (trap_comparison_operator): Use comparison_operator and swap with
29937         match_code test.
29939 2005-03-06  Marek Michalkiewicz  <marekm@amelek.gda.pl>
29941         PR target/20288
29942         * config/avr/avr.c (print_operand): Add 'p' and 'r'.
29943         (out_movhi_r_mr): Read low byte of volatile MEM first.
29944         (out_movhi_mr_r): Write high byte of volatile MEM first.
29946 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
29948         * cselib.c (reg_values, reg_values_size): Make them static.
29950         * cse.c (cse_reg_info_table): Make it static.
29952         * fold-const.c (fold_unary): Use build1 instead of copy_node.
29954 2005-03-06  Zdenek Dvorak  <dvorakz@suse.cz>
29956         * cse.c (find_best_addr): Use canon_for_address.
29958 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
29960         * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
29961         (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
29962         SUBREG and MEM, respectively.
29964         * fold-const.c (fold_binary): Use code instead of t.
29966         * fold-const.c (optimize_minmax_comparison): Take decomposed
29967         arguments code, type, op0, and op1 instead of t.
29968         (fold_binary): Update a call to optimize_minmax_comparison.
29970         * fold-const.c (fold_range_test): Take decomposed arguments
29971         code, type, op0, and op1 instead of t.
29972         (fold_binary): Update a call to fold_range_test.
29974         * fold-const.c (fold_binary_op_with_conditional_arg): Take
29975         decomposed arguments code, type, op0, and op1 instead of t.
29976         (fold_binary): Update a call to fold_range_test.
29978 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
29980         * fold-const.c (fold_binary): Avoid directly using the original
29981         expression t as much as possible.
29983 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
29985         * c-semantics.c (build_stmt): Use TYPE_P instead of
29986         IS_NON_TYPE_CODE_CLASS.
29987         * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
29988         (NON_TYPE_CHECK): Use TYPE_P instead of
29989         IS_NON_TYPE_CODE_CLASS.
29991         * fold-const.c (fold): Remove handling of binary expressions.
29993 2005-03-05  James A. Morrison  <phython@gcc.gnu.org>
29995         * doc/c-tree.texi: Wrap comments in @r{}.
29996         * doc/cpp.texi: Likewise.
29997         * doc/cppinternals.texi: Likewise.
29998         * doc/extend.texi: Likewise.
29999         * doc/md.texi: Likewise.
30000         * doc/objc.texi: Likewise.
30001         * doc/sourcebuild.texi: Likewise.
30002         * doc/tm.texi: Likewise.
30003         * doc/tree-ssa.texi
30005 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
30007         * predict.c (apply_return_prediction): Standardize PHI chain
30008         walking.
30009         * tree-ssa.c (ssa_redirect_edge): Likewise.
30011         * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
30012         gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
30013         Update copyright.
30015         * tree-phinodes.c (remove_phi_node): Drop the last argument.
30016         * tree-flow.h: Adjust the prototype for remove_phi_node.
30017         * lambda-code.c (perfect_nestify): Adjust a call to
30018         remove_phi_node.
30019         * tree-cfg.c
30020         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
30021         * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
30022         Likewise.
30023         * tree-ssa-dce.c (remove_dead_phis): Likewise.
30024         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
30025         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
30026         * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
30028         * combine.c (simplify_and_const_int): Use gen_int_mode instead
30029         of GEN_INT (trunc_int_for_mode (...)).
30030         * loop-iv.c (iv_number_of_iterations): Likewise.
30031         * postreload.c (reload_cse_move2add): Likewise.
30032         * simplify-rtx.c (simplify_const_unary_operation,
30033         simplify_const_binary_operation): Likewise.
30034         * stor-layout.c (get_mode_bounds): Likewise.
30036         * fold-const.c (fold_binary): New.
30037         (fold): Call fold_binary on binary expressions.
30039 2005-03-05  Richard Sandiford  <rsandifo@redhat.com>
30041         * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
30042         * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
30043         (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
30044         (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
30045         (ASM_SPEC): Pass down -msym32 and -mno-sym32.
30047 2005-03-04  Devang Patel  <dpatel@apple.com>
30049         PR tree-optimization/18815
30050         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
30051         loops with zero exit edges.
30053 2005-03-04  Devang Patel  <dpatel@apple.com>
30055         * doc/invoke.texi: Remove reference to webpage that does not exist.
30057 2005-03-04  John David Anglin  <dave.danglin@nrc-cnrc.gc.ca>
30058             Joseph S. Myers  <joseph@codesourcery.com>
30060         PR c++/19797
30061         * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
30062         (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
30063         * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
30064         * pa.c (get_plabel): Change argument to symbol_ref.  Call
30065         maybe_get_identifier instead of get_identifier.
30066         (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
30067         (struct deferred_plabel): Replace name field with symbol field.
30068         (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
30069         ASM_OUTPUT_EXTERNAL_REAL is defined.
30070         (output_global_address): Use output_addr_const for output of all
30071         symbol_refs.
30072         (output_deferred_plabels): Use symbol_ref instead of name for address
30073         output.
30074         * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
30075         ASM_OUTPUT_SYMBOL_REF): New macros.
30076         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw.  Update
30077         comment.
30078         (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
30079         label.
30081 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
30083         * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
30084         *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
30086 2005-03-04  Jeff Law  <law@redhat.com>
30088         * basic-block.h (rediscover_loops_after_threading): Declare.
30089         * tree-ssa-dom.c: Include cfgloop.h.
30090         (tree_ssa_dominator_optimize): Discover loops and some basic
30091         properties.  Remove forwarder blocks recreated by loop header
30092         canonicalization.  Also mark backedges in the CFG.
30093         * tree-ssa-threadupdate.c: Include cfgloop.h
30094         (rediscover_loops_after_threading): Define.
30095         (struct local_info): New field, JUMP_THREADED.
30096         (prune_undesirable_thread_requests): New function.
30097         (redirect_edges): Clear EDGE_ABNORMAL.  If edges were threaded
30098         then record that fact for the callers of redirct_edges.
30099         (thread_block): If BB has incoming backedges, then call
30100         prune_undesirable_thraed_requests.    Note when we are
30101         going to have to rediscover loop information.  Return a
30102         boolean indicating if any jumps were threaded.
30103         (thread_through_all_blocks): Bubble up boolean indicating
30104         if any jumps were threaded.
30105         * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
30106         (tree-ssa-threadupdate.o): Similarly.
30108 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
30110         * fold-const.c (fold_ternary): Unroll the "for" loop to
30111         extract operands.
30113 2005-03-04  Andrew Haley  <aph@redhat.com>
30115         * unwind-dw2-fde-glibc.c (struct
30116         unw_eh_callback_data.check_cache): New field.
30117         (frame_hdr_cache): New.
30118         (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
30119         Cache frame header info.
30121 2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
30123         * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
30124         (print_c_condition): Declare.
30125         * read-rtl.c (ptr_loc): New structure.
30126         (ptr_locs, ptr_loc_obstack, joined_conditions)
30127         (joined_conditions_obstack): New variables.
30128         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
30129         (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
30130         (join_c_conditions, print_c_condition): New functions.
30131         (apply_macro_to_string): Associate the new string with the same
30132         source location as the old one.
30133         (add_condition_to_string): Use join_c_conditions.
30134         (read_string): Use set_rtx_ptr_loc to record a filename and line
30135         number for the string.
30136         (read_rtx): Initialize the new variables above.
30137         * genattrtab.c (write_test_expr, write_attr_value): Use
30138         print_c_condition.
30139         * genconditions.c (write_header): Don't define MAYBE_EVAL.  Move its
30140         comment above the GCC_VERSION check.
30141         (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
30142         Inline the definition of MAYBE_EVAL.
30143         * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
30144         * genoutput.c (process_template): Likewise.
30145         * genpreds.c (write_predicate_subfunction): Likewise.
30146         (write_predicate_expr): Use print_c_condition.
30147         * genrecog.c (write_cond): Likewise.
30148         * gensupport.c (process_rtx): Use join_c_conditions to join the
30149         conditions of a define_insn_and_split.  Record a source location
30150         for the string after the "&&".
30151         (alter_test_for_insn): Use join_c_conditions.
30153 2005-03-04  Andrew Pinski  <pinskia@physics.uc.edu>
30155         Revert for now:
30156         2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
30157         PR tree-optimization/15784
30158         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
30159         and -1 - A to ~A.
30161 2005-03-04  Ben Elliston  <bje@au.ibm.com>
30163         * gcc.c (option_map): Add --coverage.
30164         (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
30165         (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
30166         * config/darwin.h: Pass -lgcov for `coverage'.
30167         * doc/invoke.texi (Debugging Options): Document --coverage.
30169 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
30171         * gcse.c (bypass_block): Use find_edge wherever possible.
30173 2005-03-03  Daniel Berlin <dberlin@dbrelin.org>
30175         Fix PR debug/20253
30177         * c-opts.c (c_common_parse_file): Call start_source_file
30178         and end_source_file at the approriate times.
30180         * dwarf2out.c (dwarf2out_finish): Don't auto-end
30181         the main file, it will be done for us now.
30183 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
30185         * fold-const.c (fold_ternary): New.
30186         (fold): Call fold_ternary on ternary expressions.  Remove
30187         handling of ternary expressions.
30189 2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
30191         PR tree-optimization/15784
30192         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
30193         and -1 - A to ~A.
30195 2005-03-03  David Edelsohn  <edelsohn@gnu.org>
30197         * config/rs6000/predicates.md (branch_comparison_operator):
30198         Convert from C block to conditional format.
30200 2005-03-03  Jan Hubicka  <jh@suse.cz>
30202         * tree-dfa.c (add_referenced_var): Don't walk initializer of external
30203         and non-constant public variables.
30205 2005-03-03  Kazu Hirata  <kazu@cs.umass.edu>
30207         * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
30208         with LABEL_EXPR.
30210         * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
30211         EDGE_I.
30213         * tree-phinodes.c (remove_phi_node): Clean up by factoring out
30214         calls to release_ssa_name and release_phi_node.
30216         * fold-const.c (fold): Remove handling of unary expressions.
30218         * fold-const.c (fold_unary): Avoid directly using the original
30219         expression t as much as possible.
30221 2005-03-03  Roger Sayle  <roger@eyesopen.com>
30222             Andrew Pinski  <pinskia@physics.uc.edu>
30224         * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
30225         RETURN rtx, and not a LABEL_REF containing a NULL pointer.
30227 2005-03-03  Hans-Peter Nilsson  <hp@axis.com>
30229         Describe special registers SRP and MOF as allocatable registers.
30230         * config/cris/cris.c (cris_md_asm_clobbers): New function.
30231         (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
30232         (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
30233         TARGET_HAS_MUL_INSNS.
30234         (cris_print_operand) <case 'd'>: New case.
30235         <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
30236         * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
30237         define.
30238         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
30239         (REG_ALLOC_ORDER): Update for MOF.
30240         (enum reg_class): New members MOF_REGS, GENERAL_REGS and
30241         SPECIAL_REGS.
30242         (GENERAL_REGS): No longer a define of ALL_REGS.
30243         (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
30244         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
30245         Adjust accordingly.
30246         (CRIS_SPECIAL_REGS_CONTENTS): New macro.
30247         (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
30248         (SECONDARY_RELOAD_CLASS): Define.
30249         (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
30250         (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
30251         (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
30252         (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
30253         (REGISTER_MOVE_COST): Define.
30254         (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
30255         * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
30256         (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
30257         (CRIS_MOF_REGNUM): New define_constants.
30258         ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
30259         special registers.
30260         ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
30261         New patterns.
30262         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
30263         ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
30264         Adjust for MOF being properly described as a register.
30265         (indir_to_reg_split): Name this split.  Conditionalize on the
30266         destination register being a general register.
30267         (movei): Conditionalize on on operands 0 and 1 having the same
30268         register class.
30270 2005-03-03  Alan Modra  <amodra@bigpond.net.au>
30272         PR target/20277
30273         * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
30274         -mcpu to override any other explicitly given flags.
30276 2005-03-02  J"orn Rennecke <joern.rennecke@st.com>
30278         * recog.c (verify_changes, confirm_change_group): New functions,
30279         broken out of apply_change_group.
30280         (apply_change_group): Use them.
30281         * recog.h (verify_change, confirm_change_group): Declare.
30282         * rtl.h (redirect_jump_2): Declare.
30283         * jump.c (redirect_exp, invert_exp): Delete.
30284         (invert_exp_1): Take second parameter.  Return value.  Changed caller.
30285         (redirect_jump_2): New function, broken out of redirect_jump.
30286         (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
30287         (invert_jump): Use invert_jump_1 and redirect_jump_2.
30288         * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
30290 2005-03-02  Geoffrey Keating  <geoffk@apple.com>
30292         * varasm.c (named_section): Use xstrdup rather than doing it by
30293         hand.
30295         * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
30297 2005-03-02  Devang Patel  <dpatel@apple.com>
30299         Undo PR tree-optimization/18815 fix.
30301 2005-03-02  Devang Patel  <dpatel@apple.com>
30303         PR tree-optimization/18815
30304         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
30305         loops with zero exit edges.
30307 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
30309         * cfg.c (connect_src, connect_dest, disconnect_src,
30310         disconnct_dest): New.
30311         (unchecked_make_edge, remove_edge, redirect_edge_succ,
30312         redirect_edge_pred): Use the new functions.
30314         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
30315         free_dominance_info only when needed.
30317 2005-03-02  David Edelsohn  <edelsohn@gnu.org>
30319         PR target/20276
30320         * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
30321         (reg_or_sub_cint64_operand): Same.
30323 2005-03-02  Jeff Law  <law@redhat.com>
30325         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
30326         CFG_ALTERED in the main DOM iteration loop.
30328 2005-03-02  Mark Mitchell  <mark@codesourcery.com>
30330         PR c++/19916
30331         * varasm.c (initializer_constant_valid_p): Allow conversions
30332         between OFFSET_TYPEs.  Tidy.
30334 2005-03-02  Hans-Peter Nilsson  <hp@axis.com>
30336         * config/cris/cris.md ("return"): Remove epilogue delay list
30337         sanity check.
30339 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
30341         * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
30342         for Thumb.
30343         * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
30345 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
30347         * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
30348         loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
30349         config/m68k/m68k.c, config/mips/mips.h,
30350         config/rs6000/rs6000-protos.h, doc/contrib.texi,
30351         doc/include/gcc-common.texi: Update copyright.
30353         PR middle-end/18029 and PR middle-end/18030
30354         * expr.c (optimize_bitfield_assignment_op): Add a special case
30355         to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
30357         * fold-const.c (fold_unary): New.
30358         (fold): Call fold_unary on unary expressions.
30360 2005-03-02  Richard Guenther  <rguenth@gcc.gnu.org>
30362         * cgraph.h (struct cgraph_edge): Add prev_caller and
30363         prev_callee fields.
30364         (cgraph_node_remove_callees): Export.
30365         * cgraph.c (cgraph_create_edge): Initialize prev_caller
30366         and prev_callee.
30367         (cgraph_edge_remove_callee): New function.
30368         (cgraph_edge_remove_caller): Likewise.
30369         (cgraph_remove_edge): Use.
30370         (cgraph_redirect_edge_callee): Likewise.
30371         (cgraph_node_remove_callees): New function.
30372         (cgraph_node_remove_callers): Likewise.
30373         (cgraph_remove_node): Use.
30374         * tree-optimize.c (tree_rest_of_compilation): Use
30375         cgraph_node_remove_callees instead of manual loop.
30376         * cgraphunit.c (cgraph_finalize_function): Likewise.
30377         (cgraph_expand_function): Likewise.
30378         (cgraph_remove_unreachable_nodes): Likewise.
30380 2005-03-02  Joseph S. Myers  <joseph@codesourcery.com>
30382         PR c/8927
30383         * c-tree.h (undeclared_variable, build_external_ref): Add extra
30384         argument.
30385         * c-decl.c (undeclared_variable): Take location as argument.
30386         * c-typeck.c (build_external_ref): Likewise.
30387         * c-parser.c (c_parser_postfix_expression): Pass location of
30388         identifier to build_external_ref.
30390 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
30392         * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
30393         CCEQ mode for branch_positive_comparison_operator test.
30394         * config/rs6000/predicates (branch_comparison_operator): Revert to
30395         define_predicate.
30396         (scc_comparison_operator): Same.
30397         (branch_positive_comparison_operator): Same.
30399 2005-03-01  Hans-Peter Nilsson  <hp@axis.com>
30401         * config/cris/cris.c (cris_eligible_for_epilogue_delay)
30402         (cris_delay_slots_for_epilogue): Remove.
30403         (save_last): Move into cris_target_asm_function_epilogue.
30404         (cris_target_asm_function_epilogue): Remove tests for file being
30405         NULL.
30406         * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
30407         (cris_delay_slots_for_epilogue): Remove prototypes.
30408         * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
30409         (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
30411 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
30413         * config/rs6000/predicates.md (branch_comparison_operator): Change
30414         to define_special_predicate.
30415         (scc_comparison_operator): Same.
30416         (branch_positive_comparison_operator): Same.
30418 2005-03-01  Daniel Berlin <dberlin@dberlin.org>
30420         * Makefile.in (tree-ssa-sink.o): New.
30421         (OBJS-common): Add tree-ssa-sink.o.
30422         * common.opt: Add -ftree-sink
30423         * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
30424         * timevar.def (TV_TREE_SINK): new timevar.
30425         * tree-flow.h (is_hidden_global_store): Prototype.
30426         * tree-optimize.c (init_tree_optimization_passes): Add
30427         pass_sink_code.
30428         * tree-pass.h (pass_sink_code): New.
30429         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
30430         for non-obvious global store store to is_hidden_global_store, and
30431         call that new function.
30432         * tree-ssa-sink.c: New file.
30433         * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
30434         * doc/passes.texi: Document forward store motion.
30435         * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
30436         * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
30437         * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
30438         * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
30440 2005-03-01  Per Bothner  <per@bothner.com>
30442         * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
30443         and we have a non-zero column-number, add it to the message.
30444         Also factor out the diagnostic_kind_text.
30446 2005-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
30448         * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
30449         flow_loop_pre_header_scan, flow_loop_pre_header_find,
30450         flow_loop_scan): Removed.
30451         (flow_loop_dump): Do not dump removed fields.
30452         (flow_loop_free): Do not free removed fields.
30453         (flow_loops_find): Flags argument removed.  Do not call flow_loop_scan.
30454         (loop_exit_edge_p): New function.
30455         * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
30456         num_pre_header_edges, entry_edges, num_entries, exit_edges,
30457         num_exits, exits_doms.
30458         (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
30459         LOOP_EDGES, LOOP_ALL): Removed.
30460         (flow_loop_scan): Declaration removed.
30461         (loop_exit_edge_p, mark_loop_exit_edges): Declare.
30462         * cfgloopmanip.c (create_loop_notes): Do not pass flags to
30463         flow_loops_find.
30464         * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
30465         (if_convert): Call flow_loops_find and flow_loops_free
30466         when calling mark_loop_exit_edges.
30467         * cfgloopanal.c (mark_loop_exit_edges): Moved from
30468         ifcvt.c.  Removed the flow_loops_find, flow_loops_free and
30469         free_dominance_info calls.
30470         * loop-init.c (flow_loops_find): Ditto.
30471         * passes.c (rest_of_handle_branch_prob): Ditto.
30472         * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
30473         * loop-unroll.c (analyze_insns_in_loop): Do not use
30474         EDGE_LOOP_EXIT.
30475         * predict.c (predict_loops): Do not call flow_loop_scan.
30476         Use get_loop_exit_edges.
30477         (tree_estimate_probability): Do not pass flags to flow_loops_find.
30478         * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
30479         Do not use EDGE_LOOP_EXIT.
30480         (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
30481         to bb_with_exit_edge_p.
30482         (if_convertible_loop_p): Do not call flow_loop_scan.  Use
30483         loop->single_exit.  Do not use EDGE_LOOP_EXIT.  Pass loop
30484         to bb_with_exit_edge_p.
30485         (combine_blocks): Pass loop to bb_with_exit_edge_p.  Do not use
30486         EDGE_LOOP_EXIT.
30487         * tree-loop-linear.c (linear_transform_loops): Do not call
30488         flow_loop_scan.  Use loop->single_exit.
30489         * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
30490         (vect_analyze_loop_form): Do not call flow_loop_scan.
30491         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
30492         loop->single_exit.
30493         (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
30494         loop->single_exit.
30495         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
30496         slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
30497         slpeel_tree_duplicate_loop_to_edge_cfg,
30498         slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
30499         Use loop_preheader_edge and loop->single_exit.  Do not call
30500         flow_loop_scan.
30502 2005-03-01  Nick Clifton  <nickc@redhat.com>
30504         * config/arm/arm.c (thumb_find_work_register): Check all of the
30505         argument registers to see if they are free, and a couple of
30506         special cases where the last argument register but can be proved
30507         to be available during the function's prologue.
30508         (print_multi_reg, arm_compute_save_reg0_reg12_mask,
30509         output_return_instruction, emit_multi_reg_push, thumb_pushpop,
30510         thumb_unexpanded_epilogue): Use unsigned long as the type for the
30511         register bit-mask.
30512         (thumb_compute_save_reg_mask): Likewise.  Also use
30513         thumb_find_work_register() to ensure that there is agreement about
30514         which work register is going to be used in the prologue.
30515         (thumb_output_function_prologue): Use unsigned long as the type
30516         for the register bit-mask.  Also delay pushing the link register if
30517         other high registers are going to be pushed.
30518         (thumb_compute_save_reg_mask, emit_multi_reg_push,
30519         print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
30520         redundant prototypes.
30522 2005-02-28  John David Anglin  <dave.anglin#nrc-cnrc.gc.ca>
30524         PR target/19819
30525         * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
30526         and after reload in REG+REG indexed addresses without REG_POINTER
30527         set in the base and not set in the index.
30529 2005-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
30531         * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
30532         Don't undefine here.
30533         (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
30534         (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
30535         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
30536         (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
30537         LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
30538         Delete.
30539         * config.gcc (sh*-*-linux*): Use config/linux.h.
30541 2005-02-28  Dale Johannesen  <dalej@apple.com>
30542             Stan Shebs  <shebs@apple.com>
30544         Rewrite of 64-bit Darwin structure-by-value pass/return.
30545         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
30546         intoffset, use_stack, named.
30547         * config/rs6000/rs6000.c (rs6000_darwin64_function_arg):  Remove.
30548         (rs6000_darwin64_record_arg_advance_flush):  New.
30549         (rs6000_darwin64_record_arg_advance_recurse): New.
30550         (rs6000_darwin64_record_arg_flush):  New.
30551         (rs6000_darwin64_record_arg_recurse):  New.
30552         (rs6000_darwin64_record_arg):  New.
30553         (rs6000_return_in_memory):  Remove AGGREGATE_TYPE_P check.
30554         (function_arg_boundary):  Handle 128-bit aligned structs.
30555         (function_arg_advance):  Rewrite darwin64 struct handling.
30556         (function_arg):  Call rs6000_darwin64_record_arg.
30557         (function_arg_partial_nregs):  Handle darwin64 structs.
30558         (rs6000_darwin64_function_value):  Remove.
30559         (rs6000_function_value):  Call rs6000_darwin64_record_arg.
30561 2005-02-28  Roger Sayle  <roger@eyesopen.com>
30563         PR tree-optimization/20216
30564         * tree-chrec.c (tree_fold_factorial): Delete.
30565         (tree_fold_binomial): Change argument list to take a return type
30566         and change the type of K to unsigned int.  Rewrite to avoid explicit
30567         evaluation of factorials, and (recursively) calling fold to perform
30568         compile-time arithmetic.  Return NULL on (internal) overflow.
30569         (chrec_evaluate): Change type of K to an unsigned int.  Avoid
30570         calling tree_fold_binomial unnecessarily.  Return chrec_dont_know
30571         if any intermediate calculation overflows.
30572         (chrec_apply): Update call to chrec_evaluate.
30574 2005-02-28  James E Wilson  <wilson@specifixinc.com>
30576         * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
30578 2005-02-28  Joseph S. Myers  <joseph@codesourcery.com>
30580         PR c/20245
30581         * c-parser.c (c_parser_compound_statement): Return error_mark_node
30582         instead of NULL_TREE on error.
30584 2005-02-28  David Edelsohn  <edelsohn@gnu.org>
30586         * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
30587         (EASY_VECTOR_15_ADD_SELF): Remove.
30588         (num_insns_constant_wide): Not static.
30589         (validate_condition_mode): Not static.
30590         (toc_relative_expr_p): Not static.
30591         (legitimate_indirect_address_p): Not static.
30592         (macho_lo_sum_memory_operand): Not static.
30593         (invalid_e500_subreg): Not static.
30594         (easy_vector_same): Not static.
30595         (easy_vector_splat_const): Not static.
30596         (RS6000_SYMBOL_REF_TLS_P): Remove.
30597         (any_operand): Delete.
30598         (any_parallel_operand): Delete.
30599         (count_register_operand): Delete.
30600         (altivec_register_operand): Delete.
30601         (xer_operand): Delete.
30602         (s8bit_cint_operand): Delete.
30603         (short_cint_operand): Delete.
30604         (u_short_cint_operand): Delete.
30605         (non_short_cint_operand): Delete.
30606         (exact_log2_cint_operand): Delete.
30607         (gpc_reg_operand): Delete.
30608         (cc_reg_operand): Delete.
30609         (cc_reg_not_cr0_operand): Delete.
30610         (reg_or_short_operand): Delete.
30611         (reg_or_neg_short_operand): Delete.
30612         (reg_or_aligned_short_operand): Delete.
30613         (reg_or_u_short_operand): Delete.
30614         (reg_or_cint_operand): Delete.
30615         (reg_or_arith_cint_operand): Delete.
30616         (reg_or_add_cint64_operand): Delete.
30617         (reg_or_sub_cint64_operand): Delete.
30618         (reg_or_logical_cint_operand): Delete.
30619         (got_operand): Delete.
30620         (got_no_const_operand): Delete.
30621         (easy_fp_constant): Delete.
30622         (easy_vector_constant): Delete.
30623         (easy_vector_constant_add_self): Delete.
30624         (zero_constant): Delete.
30625         (zero_fp_constant): Delete.
30626         (volatile_mem_operand): Delete.
30627         (offsettable_mem_operand): Delete.
30628         (mem_or_easy_const_operand): Delete.
30629         (add_operand): Delete.
30630         (non_add_cint_operand): Delete.
30631         (logical_operand): Delete.
30632         (non_logical_cint_operand): Delete.
30633         (mask_operand): Delete.
30634         (mask_operand_wrap): Delete.
30635         (mask64_operand): Delete.
30636         (mask64_2_operand): Delete.
30637         (and64_operand): Delete.
30638         (and64_2_operand): Delete.
30639         (and_operand): Delete.
30640         (reg_or_mem_operand): Delete.
30641         (lwa_operand): Delete.
30642         (symbol_ref_operand): Delete.
30643         (call_operand): Delete.
30644         (current_file_function_operand): Delete.
30645         (input_operand): Delete.
30646         (rs6000_nonimmediate_operand): Delete.
30647         (rs6000_tls_symbol_ref): Delete.
30648         (save_world_operation): Delete.
30649         (restore_world_operation): Delete.
30650         (load_multiple_operation): Delete.
30651         (store_multiple_operation): Delete.
30652         (vrsave_operation): Delete.
30653         (mfcr_operation): Delete.
30654         (mtcrf_operation): Delete.
30655         (lmw_operation): Delete.
30656         (stmw_operation): Delete.
30657         (branch_comparison_operator): Delete.
30658         (branch_positive_comparison_operator): Delete.
30659         (scc_comparison_operator): Delete.
30660         (trap_comparison_operator): Delete.
30661         (boolean_operator): Delete.
30662         (boolean_or_operator): Delete.
30663         (min_max_operator): Delete.
30664         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
30665         (EASY_VECTOR_15): Moved to here.
30666         (EASY_VECTOR_15_ADD_SELF): Move to here.
30667         (PREDICATE_CODES): Delete.
30668         * config/rs6000/rs6000-protos.h: Delete predicate functions.
30669         Declare functions no longer static.
30670         * config/rs6000/predicates.md: New.
30671         * config/rs6000/rs6000.md: Include predicates.md
30673 2005-02-28  Kazu Hirata  <kazu@cs.umass.edu>
30675         * calls.c (emit_call_1): Don't use  REG_ALWAYS_RETURN.
30676         (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
30677         REG_ALWAYS_RETURN.
30678         * cfgrtl.c (need_fake_edge_p): Likewise.
30679         * combine.c (distribute_notes): Likewise.
30680         * emit-rtl.c (try_split): Likewise.
30681         * recog.c (peephole2_opimize): Likewise.
30682         * reg-notes.def (ALWAYS_RETURN): Remove.
30683         * rtl.h (LCT_ALWAYS_RETURN): Remove.
30684         * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
30685         * tree.h (ECF_ALWAYS_RETURN): Remove.
30687 2005-02-28  Roger Sayle  <roger@eyesopen.com>
30689         PR middle-end/19874
30690         * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
30691         between different machine modes is never a "useless" conversion.
30693 2005-02-28  Geert Bosch  <bosch@gnat.com>
30695         PR ada/15977
30696         * doc/contrib.texi: List contributors for Ada front end
30698 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
30700         * simplify-rtx.c (simplify_unary_operation_1,
30701         simplify_const_unary_operation): New, extracted from...
30702         (simplify_unary_operation): ... this one.
30703         (simplify_binary_operation_1,
30704         simplify_const_binary_operation): New, extracted from...
30705         (simplify_binary_operation): ... this one.
30706         * rtl.h (simplify_const_unary_operation,
30707         simplify_const_binary_operation): Add prototypes.
30709 2005-02-28  Julian Brown  <julian@codesourcery.com>
30711         * config/elfos.h: Revert my patch from 2005-02-25 since it broke
30712         building libjava and caused PR regression/20228.
30714 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
30716         PR bootstrap/17383
30717         * Makefile.in (host_subdir): New.
30718         (build_objdir): New.  Replace ../$(build_subdir) with it throughout.
30719         * configure: Regenerate.
30721 2005-02-27  Zack Weinberg  <zack@codesourcery.com>
30723         * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
30724         * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
30725         installation directory first.
30727 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
30729         PR target/19065.
30730         * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
30731         not including (reg). Do not check for reg being CRIS_PC_REGNUM.
30732         (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
30733         * config/cris/cris.md: Tweak comments referring to Q.
30734         ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
30735         ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
30736         ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
30737         ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
30738         ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
30739         Insert spaces in constraints to align alternatives vertically for
30740         readability.
30741         ("cmphi"): Ditto.  Add separate alternative for operand 0 "r",
30742         operand 1: "M".
30744 2005-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30746         PR rtl-optimization/17728
30747         * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
30748         operand 0 from general_operand to move_dest_operand.
30750 2005-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30752         * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
30753         instead of trying to save and restore TREE_SYMBOL_REFERENCED.
30754         * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
30755         (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
30757 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
30759         * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
30760         * configure: Regenerate.
30761         * libada-mk.in: Remove CC; rename
30762         cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
30764 2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>
30766         PR tree-opt/20188
30767         * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
30768         for the lhs, also walk over the tree.  Likewise for rhs.
30770 2005-02-26  Zdenek Dvorak  <dvorakz@suse.cz>
30772         * tree-ssa-dom.c (simple_iv_increment_p): New function.
30773         (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
30774         Do not propagate value of iv before increment over the increment.
30776 2005-02-25  Joseph S. Myers  <joseph@codesourcery.com>
30778         * c-parser.c: New file.
30779         * c-parse.in: Remove.
30780         * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
30781         Remove.
30782         (c-parser.o): Add dependencies.
30783         (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
30784         maintainer-clean, TAGS): Update.
30785         * c-config-lang.in (gtfiles): Update.
30786         * gengtype-lex.l: Don't handle "@@".
30787         * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
30788         objc_build_synchronized, objc_begin_try_stmt,
30789         objc_begin_catch_clause, objc_finish_catch_clause,
30790         objc_build_finally_clause, objc_finish_try_stmt): New.
30791         * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
30792         type_seen_p.
30793         (c_parse_init): Update comment.
30794         * c-decl.c (c_init_decl_processing): Update comment.
30795         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
30796         declspecs_add_scspec, declspecs_add_attrs): Initialize and update
30797         new c_declspecs members.
30799 2005-02-25  Julian Brown  <julian@codesourcery.com>
30801         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
30802         from being used for symbols with vague linkage when
30803         HAVE_GAS_COMDAT_GROUP is true.
30805 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
30807         * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
30809 2005-02-25  Steve Ellcey  <sje@cup.hp.com>
30811         PR target/19930
30812         * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
30813         (LIBGCC2_HAS_DF_MODE): New.
30814         (LIBGCC2_HAS_XF_MODE): New.
30815         (LIBGCC2_HAS_TF_MODE): New.
30816         * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
30817         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
30818         * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
30819         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
30820         (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
30821         * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
30822         and add _fixtfdi, _fixunstfdi, _floatditf
30823         * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
30824         L_fixunstfdi, L_floatditf.
30825         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
30826         (LIBGCC2_HAS_TF_MODE): Define.
30828 2005-02-25  Diego Novillo  <dnovillo@redhat.com>
30830         PR tree-optimization/20204
30831         * tree-into-ssa.c (insert_phi_nodes_for): Do not use
30832         REWRITE_THIS_STMT markers on PHI nodes.
30833         (rewrite_initialize_block): Likewise.
30835 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
30837         * version.c (version_string): Update to 4.1.
30839 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
30841         * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
30842         Clarify that the alternative way doesn't work in GNU C++.
30844 2005-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
30846         PR tree-optimization/19937
30847         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
30848         to the type of the induction variable.
30850 2005-02-25  Kaz Kojima  <kkojima@gcc.gnu.org>
30852         PR rtl-optimization/20117
30853         * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
30854         the block including noncopyable insn.
30856 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
30858         * cse.c (delete_trivially_dead_insns): Speed up by minimizing
30859         calls to find_reg_note.
30861 2005-02-24  Richard Henderson  <rth@redhat.com>
30863         PR tree-opt/20127
30864         * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
30865         the type.
30867 2005-02-24  Fariborz Jahanian <fjahanian@apple.com>
30869         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
30870         vector types if to use base reg for misaligned non-word ld/std.
30872 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
30874         PR target/14619
30875         * config/cris/cris.c (cris_target_asm_function_prologue): Create
30876         dwarf2 label manually and put it after, not before the prologue.
30878 2005-02-24  David Edelsohn  <edelsohn@gnu.org>
30880         PR target/19019
30881         * reload.c (operands_match_p): Only increment register number for
30882         SCALAR_INT_MODE_P modes in multiple hard registers.
30884         * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
30885         Fix formatting.
30887 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
30889         * ChangeLog.5: Fix log message typo(s).
30890         * ChangeLog.7: Likewise.
30891         * ChangeLog.tree-ssa: Likewise.
30892         * cfgexpand.c: Fix comment typo(s).
30893         * conflict.c: Likewise.
30894         * defaults.h: Likewise.
30895         * dwarf2out.c: Likewise.
30896         * gcse.c: Likewise.
30897         * ggc-page.c: Likewise.
30898         * tree-eh.c: Likewise.
30899         * tree-ssa-dom.c: Likewise.
30901 2005-02-24  Jakub Jelinek  <jakub@redhat.com>
30903         PR target/19019
30904         * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
30905         * config/rs6000/darwin-ldouble.c: Only use the .symver directives
30906         if SHARED is defined.
30908         PR target/20196
30909         * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
30910         allow splitting only if operands 0 and 3 don't overlap.
30912 2005-02-24  Richard Henderson  <rth@redhat.com>
30914         PR middle-end/19953
30915         * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
30916         (fold_builtin_1): Call them.
30917         * fold-const.c (fold_complex_mult_parts): Split out from ...
30918         (fold_complex_mult): ... here.  Fix typo in both imaginary case.
30919         (fold_complex_div_parts, fold_complex_div): New.
30920         (fold): Use them.
30921         * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
30923 2005-02-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30925         * tree-ssa-ccp.c (visit_assignment): Verify that result of
30926         VIEW_CONVERT_EXPR is_gimple_min_invariant.
30928         * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
30929         (print_node): Likewise.
30930         Print TYPE_SIZES_GIMPLIFIED.
30932 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
30934         * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
30935         ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
30936         operands as commutative in constraints.
30938 2005-02-24  Diego Novillo  <dnovillo@redhat.com>
30940         * tree-into-ssa.c: Re-organize internal functions.
30942 2005-02-24  Richard Henderson  <rth@redhat.com>
30944         PR middle-end/18902
30945         * c-opts.c (c_common_post_options): Set flag_complex_method to 2
30946         for c99.
30947         * common.opt (fcx-limited-range): New.
30948         * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
30949         * toplev.c (flag_complex_method): Initialize to 1.
30950         (process_options): Set flag_complex_method to 0 if
30951         flag_cx_limited_range.
30952         * doc/invoke.texi (-fcx-limited-range): New.
30954 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
30956         * cse.c (delete_trivially_dead_insns): Speed up by using
30957         NEXT_INSN and PREV_INSN directly instead of next_real_insn and
30958         prev_real_insn.
30960 2005-02-24  Andrea Tarani  <andrea.tarani@gilbarco.com>
30962         * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
30963         functions when -mid-shared-library is being used.
30965 2005-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
30967         * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
30968         (LINK_LIBGCC_SPECIAL_1): Don't mention it.
30969         * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
30970         * system.h: Poison LINK_LIBGCC_SPECIAL.
30972 2005-02-23  James E Wilson  <wilson@specifixinc.com>
30974         * gengtype.c (note_insn_name): Make 1 element larger.
30976 2005-02-23  Roger Sayle  <roger@eyesopen.com>
30978         PR target/20018
30979         PR rtl-optimization/20097
30980         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
30981         BImode SUBREGs of SImode registers which confuse the ia64 backend.
30983 2005-02-23  David Edelsohn  <edelsohn@gnu.org>
30985         * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
30986         * t-aix52 (SHLIB_INSTALL): Same.
30988 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
30990         * genpreds.c: Update copyright.
30992 2005-02-23  Michael Beach  <michaelb@ieee.org>
30994         PR target/20159
30995         * config/sparc/t-elf (startup files): Assemble with CPP.
30997 2005-02-23  Paolo Bonzini  <bonzini@gnu.org>
30999         * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
31000         (write_predicate_expr): Likewise.
31002 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
31004         PR tree-optimization/20100
31005         PR tree-optimization/20115
31006         * tree-optimize.c (init_tree_optimization_passes): Remove
31007         pass_maybe_create_global_var.
31008         * tree-pass.h (pass_maybe_create_global_var): Remove.
31009         * tree-ssa-alias.c (aliases_computed_p): Declare.
31010         (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
31011         (count_calls_and_maybe_create_global_var): Remove.
31012         (pass_maybe_create_global_var): Remove.
31013         (init_alias_info): Do not declare aliases_computed_p.
31014         (maybe_create_global_var): If the function contains no
31015         call-clobbered variables and a mix of pure/const and regular
31016         function calls, create .GLOBAL_VAR.
31017         Mark all call-clobbered variables for renaming.
31018         (merge_pointed_to_info): Update comment.
31019         (add_pointed_to_var): Likewise.
31020         (is_escape_site): Likewise.
31021         Accept struct alias_info * instead of size_t *.
31022         Update all users.
31023         Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
31024         as necessary.
31025         * tree-ssa-operands.c (get_call_expr_operands): If
31026         ALIASES_COMPUTED_P is false, do not add call-clobbering
31027         operands.
31028         * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
31029         (delete_tree_ssa): Likewise.
31031 2005-02-22  James E Wilson  <wilson@specifixinc.com>
31033         * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
31034         (do_compile): Do call it here.
31036 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
31038         PR rtl-optimization/20017.
31039         * passes.c (rest_of_handle_combine, rest_of_handle_cse,
31040         rest_of_handle_cse2, rest_of_handle_gcse): Call
31041         delete_dead_jumptables immediately before calling cleanup_cfg.
31043 2005-02-22  Devang Patel  <dpatel@apple.com>
31045         PR 19952
31046         * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
31047         all labels
31049 2005-02-22  David Edelsohn  <edelsohn@gnu.org>
31051         * config/rs6000/aix.h (WINT_TYPE): Define.
31053 2005-02-22  Stan Shebs  <shebs@apple.com>
31055         * config/rs6000/rs6000.c (rs6000_override_options): Default to
31056         natural alignment for 64-bit Darwin.
31057         (rs6000_parse_alignment_option): Warn about uses of -malign-power
31058         on 64-bit Darwin.
31059         * doc/invoke.texi: Document this.
31061 2005-02-22  DJ Delorie  <dj@redhat.com>
31063         * c-common.c (c_common_type_for_mode): Pass the mode's precision
31064         to make_[un]signed_type, not the mode itself.
31066 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
31068         * cfg.c (cached_make_edge): Call make_edge if edge cache is
31069         not available.  Use tail calls wherever possible.
31070         (make_edge): Call unchecked_make_edge to create an edge.
31072         * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
31073         (coalesce_ssa_name): Don't check for
31074         SSANORM_USE_COALESCE_LIST.
31075         (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
31077 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
31079         * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
31080         (rewrite_into_ssa): ... here.
31082 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
31084         PR tree-optimization/19786
31085         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
31086         tag to another's may-alias bitmap when adding to the other's list.
31088 2005-02-21  DJ Delorie  <dj@redhat.com>
31090         * tree-ssa-loop-ivopts.c (computation_cost): Start register
31091         numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
31092         registers in unsupported ways.
31093         * expmed.c (init_expmed): Likewise.
31095 2005-02-21  Stan Cox  <scox@redhat.com>
31097         * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
31099 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
31101         * tree-cfg.c (fold_cond_expr_cond): New.
31102         (make_edges): Call fold_cond_expr_cond.
31103         (find_taken_edge): Accept nothing but INTEGER_CST.
31104         (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
31105         and 1.
31106         (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
31108         * flow.c (delete_dead_jumptables): Speed up by scanning insns
31109         that do not belong to any basic block.
31111 2005-02-21  Jeff Law  <law@redhat.com>
31113         * cfganal.c (find_unreachable_blocks): Manually CSE load of
31114         e->dest.
31116 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
31118         * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
31119         (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
31120         Adjust their definitions.
31121         (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
31122         (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
31124         * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
31125         genautomata.c, langhooks.c, langhooks.h, system.h,
31126         config/arm/lib1funcs.asm: Update copyright.
31128 2005-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
31130         * dbxout.c (dbxout_function_end): Emit Lscope label always.
31132 2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>
31134         PR bootstrap/13770
31135         * doc/install.texi: Document --with-gc.
31137 2005-02-21  Paolo Bonzini  <bonzini@gnu.org>
31139         * simplify-rtx.c (simplify_unary_operation): Add a missing
31140         "break" statement.
31142 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
31144         PR tree-optimization/18663
31145         * tree-ssa-dom.c (extract_range_from_cond): Return 0
31146         if the type has variable bounds.
31148 2005-02-20  Kazu Hirata  <kazu@cs.umass.edu>
31150         * gcse.c: Remove an obsolete comment.
31152         * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
31154 2005-02-20  Hans-Peter Nilsson  <hp@axis.com>
31156         * doc/extend.texi (Function Attributes) <Attribute const>: The
31157         attribute "pure" is below this text, not above.
31159 2005-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31161         * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
31162         (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
31163         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
31165 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
31167         PR 18785
31168         * langhooks.h (struct lang_hooks): Add to_target_charset.
31169         * langhooks.c (lhd_to_target_charset): New function.
31170         * langhooks-def.h: Declare lhd_to_target_charset.
31171         (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
31172         (LANG_HOOKS_INITIALIZER): Update.
31173         * c-common.c (c_common_to_target_charset): New function.
31174         * c-common.h: Declare it.
31175         * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
31176         c_common_to_target_charset.
31178         * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
31179         (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
31180         Delete definitions.
31181         * system.h: Poison them.
31182         * doc/tm.texi: Don't discuss them.
31183         * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
31184         * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
31185         (pp_c_char): Do not attempt to generate letter escapes for
31186         newline, tab, etc.
31187         * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
31188         * config/mips/mips.c (mips_output_ascii): Likewise.
31190 2005-02-20  Dorit Naishlos  <dorit@il.ibm.com>
31192         PR tree-optimization/19951
31193         * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
31194         is abnormal.
31196 2005-02-19  Steven Bosscher  <stevenb@suse.de>
31198         PR middle-end/19698
31199         * function.h (struct function): New field `max_loop_depth'.
31200         * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
31201         (flow_loops_find): Reset the max loop depth count before finding loops.
31202         * flow.c (MAX_LIVENESS_ROUNDS): New constant.
31203         (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
31204         (calculate_global_regs_live): Make sure the loop will terminate
31205         when the initial sets are not empty.
31207 2005-02-19  Zack Weinberg  <zack@codesourcery.com>
31209         * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
31210         object inside.
31211         * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
31213 2005-02-19  Richard Sandiford  <rsandifo@redhat.com>
31215         PR other/19525
31216         * doc/invoke.texi: Remove documentation of %M spec.
31217         * gcc.c: Likewise.
31218         (init_spec): Remove %M suffix from -lgcc_s.
31219         (do_spec_1): Remove 'M' case.
31220         * mklibgcc.in: Remove SHLIB_MULTILIB handling.  Expect SHLIB_LINK
31221         to put shared libraries in the multilib directory.  Remove the
31222         shlib_so_soname substitution variable.  Don't add a multilib encoding
31223         to shlib_base_name.  Set shlib_slibdir_qual to the full pathname
31224         reported by -print-multi-os-directory.  Pass @multilib_dir@ to
31225         SHLIB_INSTALL as well as SHLIB_LINK.
31226         * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
31227         (SHLIB_NAME): Delete.
31228         (SHLIB_DIR): New macro.
31229         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
31230         (SHLIB_INSTALL): Adjust accordingly.
31231         * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
31232         * config/t-slibgcc-sld: Likewise.
31233         * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
31234         (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
31235         (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
31236         in $(SHLIB_DIR).
31237         (SHLIBUNWIND_INSTALL): Adjust accordingly.
31238         * config/i386/t-nwld (SHLIB_SONAME): Delete.
31239         (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
31240         Use @shlib_base_name@ instead of @shlib_so_name@.
31241         * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
31242         and @shlib_base_name@.so in @multilib_dir@.
31243         (SHLIB_INSTALL): Adjust accordingly.  Add @shlib_slibdir_qual@
31244         to the install path.
31245         * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
31246         (SHLIB_LINK): Remove previous workaround.
31247         * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
31248         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
31249         (SHLIB_INSTALL): Adjust accordingly.  Add $(SHLIB_SLIBDIR_QUAL) to
31250         the install path.
31251         * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
31252         @multilib_dir@.  Use @multilib_dir@ to check for threading libraries.
31253         (SHLIB_INSTALL): Adjust accordingly.
31254         (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
31255         * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
31256         * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
31257         config/t-slibgcc-elf-ver.
31259 2005-02-19  Zdenek Dvorak  <dvorakz@suse.cz>
31260             Jakub Jelinek  <jakub@redhat.com>
31262         PR tree-optimization/19828
31263         * tree-ssa-loop-im.c: Add a TODO comment.
31264         (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
31265         without side-effects.
31267 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
31269         * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
31270         call fold_convert.
31272 2005-02-18  James E. Wilson  <wilson@specifixinc.com>
31274         * doc/invoke.texi (IA-64 Options): Delete -mb-step.
31275         * config/ia64/ia64.c (last_group, group_idx): Delete variables.
31276         (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
31277         functions.
31278         (ia64_reorg): Delete fixup_errata call.
31279         * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
31280         (TARGET_SWITCHES): Delete -mb-step entry.
31282 2005-02-19  Jakub Jelinek  <jakub@redhat.com>
31284         PR c/20043
31285         * c-typeck.c (composite_type): Handle quals in transparent unions.
31286         (type_lists_compatible_p): Likewise.
31288 2005-02-18  Stan Shebs  <shebs@apple.com>
31290         * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
31291         expressions in the .literal8 section.
31293 2005-02-18  Geoffrey Keating  <geoffk@apple.com>
31295         * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
31297 2005-02-18  Roger Sayle  <roger@eyesopen.com>
31299         * fold-const.c (constant_boolean_node): Always create values of the
31300         specified type, don't bother calling truthvalue_conversion.
31302 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
31304         * except.c (output_function_exception_table): Call
31305         assemble_external_libcall (eh_personality_libfunc).
31307 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
31309         PR target/19886
31310         * config/ia64/ia64.h (struct machine_function): Add state_num.
31311         * config/ia64/ia64.c (process_epilogue,
31312         process_for_unwind_directive): Use new unwind state numbers each
31313         time rather than state 1.
31315 2005-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
31317         PR target/20054
31318         * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
31319         before the "*llgt_didi" pattern.
31321 2005-02-18  Jason Merrill  <jason@redhat.com>
31323         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
31325 2005-02-18  Richard Earnshaw  <rearnsha@arm.com>
31327         * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
31328         (div0): Use it in place of ARM_FUNC_ALIAS.
31329         (lshrdi3, ashrdi3, ashlrdi3): Likewise.
31331 2005-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
31333         PR middle-end/20030
31334         * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
31335         access, the lower bound of the array type if it exists.
31337 2005-02-18  Alexandre Oliva  <aoliva@redhat.com>
31339         PR c++/20008
31340         * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
31341         cases that are out-of-range for the index type.
31343 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
31345         * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
31346         (estimate_case_costs): Don't call convert.
31347         * expmed.c (expand_shift): Likewise.
31348         (make_tree): Call fold_convert instead of convert.
31350 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
31352         PR c++/19813
31353         * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
31354         that ref to be marked MEM_READONLY_P doesn't have base that needs
31355         constructing.
31357 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
31359         * genautomata.c (output_get_cpu_unit_code_func,
31360         output_cpu_unit_reservation_p): Don't generate old-style function
31361         definitions.
31363 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
31365         PR c++/20023
31366         PR tree-optimization/20009
31367         * convert.c (convert_to_integer): Revert 2005-02-16 change.
31369         PR tree-optimization/18947
31370         * cgraphunit.c (cgraph_finalize_function): When redefining an extern
31371         inline, remove all nodes that are inlined into the extern inline
31372         being redefined.
31374 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
31376         * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
31377         loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
31378         tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
31379         config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
31380         Update copyright.
31382 2005-02-17  Roger Sayle  <roger@eyesopen.com>
31384         PR tree-optimization/19917
31385         * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
31386         to be potentially trapping.
31388 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
31390         * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
31392 2005-02-17  Andreas Krebbel  <krebbel1@de.ibm.com>
31394         * builtins.c (expand_builtin_return_addr): Remove tem parameter.
31395         tem becomes a local variable which is set to the value of the
31396         back end defined INITIAL_FRAME_ADDRESS macro.
31397         (expand_builtin_frame_address): Omit the base parameter to
31398         expand_builtin_return_addr.
31399         (expand_builtin_profile_func): Likewise.
31400         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
31401         (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
31402         * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
31404 2005-02-17  Jakub Jelinek  <jakub@redhat.com>
31406         * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
31407         s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
31408         * config/frv/frv.c (frv_function_epilogue): Likewise.
31410 2005-02-17  Daniel Berlin  <dberlin@dberlin.org>
31412         * lambda-code (perfect_nestify): Remove mark/unmark
31413         for rewriting hack.
31414         * tree-loop-linear.c (linear_transform_loops): Add
31415         rewrite_into_ssa call so that ssa is correct for
31416         rewriting into loop closed.
31418 2005-02-17  Nathan Sidwell  <nathan@codesourcery.com>
31420         * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
31421         * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
31422         BITMAP_FREE.
31423         * bt-load.c (btr_def_live_range, combine_btr_defs,
31424         migrate_btr_def, migrate_btr_defs): Likewise.
31425         * cfgcleanup.c (thread_jump): Likewise.
31426         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
31427         * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
31428         df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
31429         df_rd_local_compute, df_reg_info_compute): Likewise.
31430         * dominance.c (init_dom_info, free_dom_info): Likewise.
31431         * flow.c (init_propagate_block_info,
31432         free_propagate_block_info): Likewise.
31433         * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
31434         * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
31435         modify_reg_pav): Likewise.
31436         * loop-invariant.c (find_defs, find_invariant_insn,
31437         find_invariants, free_inv_motion_data): Likewise.
31438         * predict.c (tree_predict_by_opcode,
31439         estimate_bb_frequencies): Likewise.
31440         * stmt.c (expand_case): Likewise.
31441         * tree-cfg.c (tree_duplicate_sese_region): Likewise.
31442         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
31443         * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
31444         * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
31445         get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
31446         rewrite_ssa_into_ssa): Likewise.
31447         * tree-optimize.c (tree_rest_of_compilation): Likewise.
31448         * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
31449         analyze_edges_for_bb, perform_edge_inserts): Likewise.
31450         * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
31451         * tree-sra.c (tree_sra): Likewise.
31452         * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
31453         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
31454         * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
31455         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
31456         * tree-ssa-dse.c (tree_ssa_dse): Likewise.
31457         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
31458         Likewise.
31459         * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
31460         calculate_live_on_entry, calculate_live_on_exit,
31461         build_tree_conflict_graph): Likewise.
31462         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
31463         record_important_candidates, set_use_iv_cost, find_depends,
31464         determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
31465         tree_ssa_iv_optimize_finalize): Likewise.
31466         * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
31467         find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
31468         tree_duplicate_loop_to_header_edge): Likewise.
31469         * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
31470         * tree-ssa.c (verify_flow_insensitive_alias_info,
31471         verify_name_tags, verify_ssa, init_tree_ssa,
31472         delete_tree_ssa): Likewise.
31473         * tree-ssanames.c (marked_ssa_names, init_ssanames,
31474         fini_ssanames): Likewise.
31475         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
31477 2005-02-17  Ralf Corsepius  <ralf.corsepius@rtems.org>
31479         * config/rs6000/t-rtems: Completely reworked.
31481 2005-02-17  Ira Rosen  <irar@il.ibm.com>
31483         * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
31485 2005-02-17  Ira Rosen  <irar@il.ibm.com>
31487         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
31488         POINTER_TYPE_P when checking that type is a pointer.
31489         (vect_get_memtag): Remove.
31490         (vect_address_analysis): Use POINTER_TYPE_P. Call
31491         vect_object_analysis with dummy parameter for memtag.
31492         (vect_object_analysis): Extract memtag (functionality that
31493         used to be in vect_get_memtag and moved here). Fix printings.
31494         (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
31495         with correct parameters. Remove call to vect_get_memtag.
31497 2005-02-17  Dorit Naishlos  <dorit@il.ibm.com>
31499         * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
31500         (tree-vectorizer.o): Added missing dependencies.
31502         * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
31503         decleration.
31504         (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
31505         declaration in tree-vectorizer.c, now has an extern declaration in
31506         tree-vectorizer.h).
31507         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
31508         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
31509         get_vectype_for_scalar_type, vect_is_simple_use,
31510         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
31511         vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
31512         new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
31513         vectorizable_store, vectorizable_operation, vectorizable_assignment,
31514         vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
31515         find_loop_location): Likewise.
31517         * tree-vectorizer.c (langhooks.h): #include removed.
31518         (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
31519         moved to tree-vectorized.h.
31520         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
31521         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
31522         get_vectype_for_scalar_type, vect_is_simple_use,
31523         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
31524         vect_supportable_dr_alignment, new_loop_vec_info,
31525         destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
31526         vect_set_verbosity_level, find_loop_location): Likewise.
31528         (vect_analyze_loop): Function externalized. Declaration moved to
31529         tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
31530         (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
31531         (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
31532         vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
31533         vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
31534         vect_enhance_data_refs_alignment, vect_analyze_operations,
31535         exist_non_indexing_operands_for_use_p, vect_mark_relevant,
31536         vect_stmt_relevant_p, vect_get_loop_niters,
31537         vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
31538         vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
31539         vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
31540         vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
31541         vect_get_memtag): Likewise.
31543         (vectorizable_load): Function externalized. Declaration moved to
31544         tree-vectorized.h. Function definition moved to tree-vect-transform.c.
31545         (vectorizable_store, vectorizable_operation, vectorizable_assignment,
31546         vect_transform_loop): Likewise.
31547         (vect_transform_stmt): Moved to tree-vect-transform.c.
31548         (vect_align_data_ref, vect_create_destination_var,
31549         vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
31550         vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
31551         vect_get_vec_def_for_operand, vect_init_vector,
31552         vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
31553         vect_build_loop_niters, vect_update_ivs_after_vectorizer,
31554         vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
31555         vect_update_inits_of_drs, vect_do_peeling_for_alignment,
31556         vect_do_peeling_for_loop_bound): Likewise.
31558         * tree-vect-analyze.c: New file.
31559         * tree-vect-transform.c: New file.
31561 2005-02-17  Jason Merrill  <jason@redhat.com>
31563         PR mudflap/19319, c++/19317
31564         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
31565         slot explicit.
31567 2005-02-17  Gerald Pfeifer  <gerald@pfeifer.com>
31569         * doc/install.texi (Specific): Update link for Darwin-specific
31570         tool binary site.
31572 2005-02-16  James A. Morrison  <phython@gcc.gnu.org>
31574         * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
31575         constant_boolean_node.
31577 2005-02-16  David Edelsohn  <edelsohn@gnu.org>
31579         PR target/19019
31580         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
31581         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
31583 2005-02-16  Richard Henderson  <rth@redhat.com>
31585         PR 19920
31586         * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
31587         with W_TYPE_SIZE.
31588         (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
31589         replace uses with Wtype_MAXp1_F.
31590         (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
31591         L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
31592         L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
31593         L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
31594         and HAVE_TFMODE as appropriate.
31595         (__fixunssfDI): Provide an implementation that doesn't need DFmode.
31596         (__floatdisf): Likewise.
31597         * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
31598         (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
31599         (Wtype_MAXp1_F): New.
31600         (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
31601         __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
31603 2005-02-16  Richard Earnshaw  <rearnsha@arm.com>
31605         * PR target/19162
31606         * arm.c (arm_apply_result_size): New function.
31607         * arm.h (APPLY_RESULT_SIZE): Define.
31608         * arm-protos.h (arm_apply_result_size): Add prototype.
31609         * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
31610         (movxf): New expand.
31611         (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
31612         (call_value_symbol): Remove predicate for operand 0.
31613         (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
31614         (untyped_call): Rework to correclty return values for any type.
31615         (untyped_return): New expand.
31616         * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
31618 2005-02-16  Stan Shebs  <shebs@apple.com>
31620         * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
31621         * config/rs6000/t-darwin8: New, for 64-bit multilib.
31623 2005-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
31625         * doc/install.texi (sparc-sun-solaris2*): Document required GMP
31626         configure settings on Solaris 7 and later.
31628 2005-02-16  Diego Novillo  <dnovillo@redhat.com>
31630         PR tree-optimization/19865
31631         * tree-optimize.c (init_tree_optimization_passes): Run
31632         pass_may_alias after pass_sra.
31634 2005-02-16  Richard Henderson  <rth@redhat.com>
31635             Stuart Hastings  <stuart@apple.com>
31637         PR debug/19521
31638         * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
31639         Do nothing if debug info suppressed for this function.
31640         (dbxout_begin_function): Early exit if debug info suppressed for
31641         this function.
31643 2005-02-16  Kazu Hirata  <kazu@cs.umass.edu>
31645         PR target/20007
31646         * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
31647         find_basic_blocks.
31648         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
31650         PR tree-optimization/19967
31651         * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
31652         expand_builtin_strchr, expand_builtin_strrchr): Take a new
31653         argument TYPE.  Adjust calls to fold_builtin_XXX.
31654         (expand_builtin, fold_builtin_1): Adjust calls to
31655         expand_builtin_XXX.
31656         (fold_builtin_strchr, fold_builtin_strpbrk,
31657         fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
31658         result to a requested type TYPE.
31660 2005-02-16  Jakub Jelinek  <jakub@redhat.com>
31662         PR middle-end/19857
31663         * fold-const.c (fold): Don't optimize (T)(x & cst) to
31664         (T)x & (T)cst if (T)cst overflows.
31665         * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
31666         TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
31668 2005-02-15  Jeff Law  <law@redhat.com>
31670         * gcse.c (blocks_with_calls): New bitmap.
31671         (alloc_gcse_mem): Allocate it.
31672         (free_gcse_mem): Free it.
31673         (clear_modifY_mem_tables): Clear it.
31674         (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
31675         when we encounter CALL_INSNs.
31676         (compute_transp, case MEM): Handle blocks with calls separate
31677         from blocks without calls.  Use bitmap iterators rather than
31678         FOR_EACH_BB.
31680 2005-02-15  Peter O'Gorman  <peter@pogma.com>
31682         PR bootstrap/18810
31683         * mklibgcc.in (vis_hide): Use a temporary object file, not
31684         -o /dev/null.
31686 2005-02-15  Andy Hutchinson  <HutchinsonAndy@netscape.net>
31688         PR target/19924
31689         * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
31690         access optimization.
31692 2005-02-15  David Edelsohn  <edelsohn@gnu.org>
31693             Alan Modra  <amodra@bigpond.net.au>
31695         PR target/19019
31696         * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
31697         (_xlqsub): Rename to __gcc_qsub.
31698         (_xlqmul): Rename to __gcc_qmul.
31699         (_xlqdiv): Rename to __gcc_qdiv.
31700         Provide versioned symbol aliases with old names.
31701         * config/rs6000/libgcc-ppc64.ver: Rename symbols.
31702         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
31703         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
31704         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
31705         * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
31707 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
31709         * fold-const.c (fold): Fold -(~A) to A + 1.  Fold ~(-A) to A - 1.
31710         Fold ~(A - 1) and ~(A + -1) to -A.
31712 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
31714         PR pch/14940
31715         PR target/19300
31716         * config/host-linux.c (linux_gt_pch_use_address): Copy from
31717         config/pa/pa-host.c:pa_gt_pch_use_address.
31719 2005-02-15  Daniel Berlin  <dberlin@dberlin.org>
31721         * tree-vn.c (get_value_handle): Make sure that given an
31722         is_gimple_min_invariant expression, we always return it.
31724 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
31726         * passes.c (rest_of_handle_gcse): Fix a comment.
31728 2005-02-15  Jeff Law  <law@redhat.com>
31730         * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
31731         bitmap.
31732         (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
31733         (canon_list_insert, record_last_mem_set_info): Similarly.
31734         (clear_modify_mem_tables): Similarly.
31736 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
31738         * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
31739         tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
31740         config/mips/mips.md, config/rs6000/aix.h,
31741         config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
31743 2005-02-15  Richard Henderson  <rth@redhat.com>
31745         * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
31746         call to be best_edge.
31748 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
31750         * basic-block.h: Adjust the prototype for find_basic_blocks.
31751         * cfgbuild.c (find_basic_blocks): Remove unused arguments.
31752         * passes.c (rest_of_handle_loop_optimize): Adjust the call to
31753         find_basic_blocks.
31755         * flow.c (recompute_reg_usage): Remove all arguments.
31756         * passes.c (rest_of_compilation): Adjust the call to
31757         recompute_reg_usage.
31758         * rtl.h: Adjust the prototype for recompute_reg_usage.
31760 2005-02-14  Daniel Berlin  <dberlin@dberlin.org>
31762         * tree-dump.c (dump_files): Update to reflect new member
31763         of dump_file_info.
31764         (dump_register): Add new argument.
31765         Set glob name.
31766         (dump_switch_p_1): Check against glob name if doglob was passed.
31767         (dump_switch_p): Check against regular first, then glob if
31768         we didn't have any hits on the dump name.
31769         * tree-optimize.c (register_one_dump_file):
31770         Pass in glob name as well.
31771         * tree-pass.h (struct dump_file_info): Add glob
31772         member.
31774 2005-02-14  Joseph S. Myers  <joseph@codesourcery.com>
31776         PR preprocessor/16323
31777         * doc/invoke.texi: Document that -Wendif-labels is on by default.
31779 2005-02-14  David Edelsohn  <edelsohn@gnu.org>
31781         PR target/19019
31782         * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
31783         (trunctfdf2_internal1): New.
31784         (trunctfdf2_internal2): Renamed from trunctfdf2.
31786 2005-02-14  Diego Novillo  <dnovillo@redhat.com>
31788         PR tree-optimization/19853
31789         * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
31791 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
31793         * passes.c (rest_of_handle_loop_optimize): Remove calls to
31794         delete_dead_jumptables and cleanup_cfg.
31796 2005-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
31798         * reload.c (find_reloads): Swap address_reloaded flags when
31799         swapping commutative operands.
31801 2005-02-14  Sebastian Pop  <pop@cri.ensmp.fr>
31803         * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
31804         Use standard_iv_increment_position for computing the bsi position
31805         for create_iv.
31806         * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
31807         the bsi position.
31809 2005-02-13  Zdenek Dvorak  <dvorakz@suse.cz>
31811         PR target/17428
31812         * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
31813         life range of hard registers.
31814         * value-prof.c (insn_prefetch_values_to_profile): Only
31815         scan normal insns.
31817         * value-prof.c (rtl_find_values_to_profile): Do not look for values to
31818         profile in libcalls.
31820 2005-02-13  Nathan Sidwell  <nathan@codesourcery.com>
31822         * bitmap.h (bitmap_and_compl_into): Return bool.
31823         * bitmap.c (bitmap_and_compl_into): Return changed flag.
31825 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
31827         PR tree-optimization/19944
31828         * fold-const.c (fold): Re-add ABS_EXPR folding.
31830 2005-02-13  David Edelsohn  <edelsohn@gnu.org>
31832         PR target/19019
31833         * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
31834         {TARGET,MASK}_XL_COMPAT.
31835         (SUBTARGET_SWITCHES): Rename xl-call to xl-compat.  Use
31836         MASK_XL_COMPAT.
31837         * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
31838         * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
31839         TARGET_XL_COMPAT.
31840         (rs6000_arg_partial_bytes): Same.
31841         (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
31842         and XL compatibility enabled.
31843         * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
31844         * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
31845         test to final condition.
31846         (cmptf_internal2): New.
31847         * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
31848         xl-compat.  Add TFmode information to description.
31850 2005-02-13  Kazu Hirata  <kazu@cs.umass.edu>
31852         * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
31854 2005-02-13  Jason Merrill  <jason@redhat.com>
31856         PR c++/16405
31857         * fold-const.c (fold_indirect_ref_1): Split out from...
31858         (build_fold_indirect_ref): Here.
31859         (fold_indirect_ref): New fn.
31860         * tree.h: Declare it.
31861         * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
31862         (gimplify_modify_expr_rhs): Likewise.
31863         (gimplify_expr): Likewise.
31865 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
31867         PR tree-optimization/14303
31868         PR tree-optimization/15784
31869         * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
31870         Fold ABS_EXPR<x> < 0 to false.  Fold ABS_EXPR<x> == 0 to x == 0 and
31871         ABS_EXPR<x> != 0 to x != 0.
31873 2005-02-12  Kazu Hirata  <kazu@cs.umass.edu>
31875         * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
31876         simplify-rtx.c, tree-ssa-live.h: Fix comment typos.  Follow
31877         spelling conventions.
31879         * passes.c (rest_of_handle_gcse): Don't run cse_main and
31880         delete_trivially_dead_insns too many times.
31882         * passes.c (rest_of_handle_gcse): Remove dead assignments to
31883         tem and tem2.
31885 2005-02-12  Ira Rosen  <irar@il.ibm.com>
31887         * tree-vectorizer.c (vect_get_base_and_offset): Remove.
31888         (vect_is_simple_iv_evolution): Remove redundant parameter
31889         and step check.
31890         (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
31891         without last parameter.
31892         (vect_analyze_pointer_ref_access): Get access_fn as parameter.
31893         Return pointer step. Call vect_is_simple_iv_evolution without
31894         last parameter. Check only that the step is multiple of size
31895         type. Remove stmt_vinfo updates.
31896         (vect_get_memtag_and_dr): Remove.
31897         (vect_get_memtag): New function.
31898         (vect_address_analysis): New function.
31899         (vect_object_analysis): New function.
31900         (vect_analyze_data_refs): Call vect_object_analysis and
31901         vect_get_memtag. Update stmt_vinfo fields.
31903 2005-02-12  Ira Rosen  <irar@il.ibm.com>
31905         * tree-data-ref.c (array_base_name_differ_p): Check that the bases
31906         exist and are objects. Remove checks for pointer.
31907         * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
31908         STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
31909         (vect_create_data_ref_ptr): Likewise.
31910         (vect_base_addr_differ_p): New function.
31911         (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
31912         (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
31913         Don't set the DR_BASE_NAME field of data-ref.
31914         (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
31916 2005-02-12  Uros Bizjak  <uros@kss-loka.si>
31918         * optabs.h (enum optab_index): Add new OTI_ldexp.
31919         (ldexp_optab): Define corresponding macro.
31920         * optabs.c (init_optabs): Initialize ldexp_optab.
31921         * genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
31922         patterns.
31923         * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
31924         using ldexp_optab.
31925         (expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
31926         expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
31928         * config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
31929         to implement ldexpf, ldexp and ldexpl built-ins as inline x87
31930         intrinsics.
31932 2005-02-12  Ira Rosen  <irar@il.ibm.com>
31934         * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
31935         to base_address.
31936         * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
31937         stmt_vec_info.
31938         (vect_get_base_and_offset): Always return an address.
31939         (vect_create_addr_base_for_vector_ref): Remove treatment for
31940         different data reference types.
31941         (vect_compute_data_ref_alignment): Rename base to base_address in
31942         stmt_vec_info. Get the object in order to force its alignment.
31943         (vect_get_memtag_and_dr): Rename base to base_address in
31944         stmt_vec_info. Extract the object for memtag analysis.
31946 2005-02-12  Hans-Peter Nilsson  <hp@axis.com>
31948         PR regression/19898.
31949         * config/cris/cris.c (cris_notice_update_cc): When testing if insn
31950         changes cc_status, use apply modified_in_p to part of cc_status
31951         and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
31952         body.
31954 2005-02-11  Richard Henderson  <rth@redhat.com>
31956         * tree-complex.c (expand_complex_libcall): New.
31957         (expand_complex_multiplication): Use it for c99 compliance.
31958         (expand_complex_division): Likewise.
31959         * fold-const.c (fold_complex_add, fold_complex_mult): New.
31960         (fold): Call them.
31961         * builtins.c (built_in_names): Remove const.
31962         * tree.c (build_common_builtin_nodes): Build complex arithmetic
31963         builtins.
31964         * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
31965         (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
31966         (built_in_names): Remove const.
31967         * c-common.c (c_common_type_for_mode): Handle complex modes.
31968         * flags.h, toplev.c (flag_complex_method): Rename from
31969         flag_complex_divide_method.
31970         * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
31971         __mulsc3, __muldc3, __mulxc3, __multc3): New.
31972         * libgcc2.h: Declare them.
31973         * libgcc-std.ver: Export them.
31974         * mklibgcc.in (lib2funcs): Build them.
31976 2005-02-11  Steven Bosscher  <stevenb@suse.de>
31978         PR tree-optimization/19876
31979         Partially revert my change from 2005-01-14
31980         * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
31981         (compute_antic): ...and remove the loop here.
31983 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
31985         PR middle-end/19858
31986         * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
31987         is number of inner's bits, avoid creating a BIT_FIELD_REF.
31989         * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
31990         crtend.o if -pie.  Use %{x:a;:b} spec syntax.
31992 2005-02-11  Daniel Jacobowitz  <dan@codesourcery.com>
31994         * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
31995         offsets for the big-endian 32-bit case.
31997 2005-02-11  Joseph S. Myers  <joseph@codesourcery.com>
31999         * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
32001 2005-02-11  Dale Johannesen  <dalej@apple.com>
32003         * cselib.c (cselib_process_insn):  Clear out regs where
32004         HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
32005         * reload.c (find_equiv_reg): Ditto.
32007 2005-02-11  Ian Lance Taylor  <ian@airs.com>
32009         * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
32010         with no elements.
32012         * tree.c (build_function_type_list): Work correctly if there are
32013         no arguments.
32015 2005-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
32017         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
32018         "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
32019         ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
32020         TARGET_ZARCH instead of TARGET_64BIT.
32022 2005-02-11  Ralf Corsepius  <ralf.corsepius@rtems.org>
32024         * config/rs6000/t-rtems:
32025         (MULTILIB_OPTIONS): Remove mcpu=602.
32026         (MUTLILIB_DIRNAMES): Remove m602.
32027         (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
32028         Let mcpu=602 match mcpu=603.
32029         (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
32031 2005-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32033         * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
32034         signal trampolines.
32036 2005-02-10  David Daney  <ddaney@avtrex.com>
32038         * config/alpha/linux-unwind.h: Add exception clause to copyright.
32039         * config/i386/linux-unwind.h: Likewise.
32040         * config/ia64/linux-unwind.h: Likewise.
32041         * config/mips/linux-unwind.h: Likewise.
32042         * config/pa/linux-unwind.h: Likewise.
32043         * config/rs6000/linux-unwind.h: Likewise.
32044         * config/s390/linux-unwind.h: Likewise.
32045         * config/sh/linux-unwind.h: Likewise.
32046         * config/sparc/linux-unwind.h: Likewise.
32048 2005-02-10  Steven Bosscher  <stevenb@suse.de>
32050         PR tree-optimization/17549
32051         * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
32052         TER to replace a DEF with its expression if the DEF and the
32053         rhs of the expression we replace into have the same root
32054         variable.
32056 2005-02-10  Richard Sandiford  <rsandifo@redhat.com>
32058         * config/mips/mips.md: Fix the placement of the match_scratch in the
32059         lea64 peephole2.
32061 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
32063         * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
32064         Fix comment typos.
32066 2005-02-10  Zdenek Dvorak  <dvorakz@suse.cz>
32068         * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
32069         (strip_offset): Handle addresses.
32070         (add_address_candidates): Use strip_offset.
32071         (difference_cost): Reflect strip_offset change.
32072         (force_var_cost, difference_cost): Strip nops.
32074 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
32076         * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
32078         * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
32079         tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
32080         config/cris/cris-protos.h, config/cris/cris.c: Update
32081         copyright.
32083 2005-02-10  Jeff Law  <law@redhat.com>
32085         * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
32086         (lookup_avail_expr): Similarly.
32088 2005-02-10  Richard Guenther  <rguenth@gcc.gnu.org>
32090         * builtins.c (fold_builtin_powi): New function.
32091         (fold_builtin_1): Call it.
32093 2005-02-10  Steven Bosscher  <stevenb@suse.de>
32095         PR documentation/19309
32096         * doc/cpp.texi: The __GNUC__ and related predefined macros
32097         are also defined for the "standalone" cpp.
32098         Some non-GCC compilers may also define __GNUC__.
32100 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
32102         PR c/19342
32103         * c-typeck.c (common_type): New routine.  Old common_type renamed
32104         to...
32105         (c_common_type): ...this.
32106         (build_conditional_expr, build_binary_op): Use c_common_type instead
32107         of common_type.
32109 2005-02-10  Steven Bosscher  <stevenb@suse.de>
32111         * doc/md.texi: Replace @samp{length} with @code{length}.
32113 2005-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
32115         PR tree-optimization/18687
32116         * tree-flow.h (find_loop_niter): Declare.
32117         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
32118         Try using scev even for loops with more than one exit.
32119         * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
32120         (struct ivopts_data): Added niters field.
32121         (struct nfe_cache_elt): New.
32122         (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
32123         functions.
32124         (tree_ssa_iv_optimize_init): Initialize niters cache.
32125         (determine_number_of_iterations): Removed.
32126         (find_induction_variables): Do not call determine_number_of_iterations.
32127         Access niters for single exit through niter_for_single_dom_exit.
32128         (add_iv_outer_candidates): Access niters for single exit through
32129         niter_for_single_dom_exit.
32130         (may_eliminate_iv): Take data argument.  Use niter_for_exit.  Do not use
32131         number_of_iterations_cond.
32132         (iv_period): New function.
32133         (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
32134         (may_replace_final_value): Take data argument.  Use
32135         niter_for_single_dom_exit.
32136         (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
32137         (rewrite_use_compare): Pass data to may_eliminate_iv.
32138         (rewrite_use_outer): Pass data to may_replace_final_value.
32139         (free_loop_data): Clean up the niters cache.
32140         (tree_ssa_iv_optimize_finalize): Free the niters cache.
32141         (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
32142         * tree-ssa-loop-niter.c (find_loop_niter): New function.
32143         (find_loop_niter_by_eval): Use tree_int_cst_lt.
32144         (num_ending_zeros): Moved to tree.c.
32145         * tree.h (num_ending_zeros): Declare.
32146         * tree.c (num_ending_zeros): Moved from tree.c.
32148 2005-02-09  Richard Henderson  <rth@redhat.com>
32150         * builtins.c (DEF_BUILTIN): Add COND argument.
32151         * tree.h (DEF_BUILTIN): Likewise.
32152         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
32153         DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
32154         match.
32155         (DEF_BUILTIN_STUB): New.
32156         (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
32157         BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
32158         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
32159         * c-common.c (DEF_BUILTIN): Add COND argument.
32160         * tree.c (local_define_builtin): New.
32161         (build_common_builtin_nodes): New.
32163 2005-02-09  Roger Sayle  <roger@eyesopen.com>
32165         * fold-const.c (fold_strip_sign_ops): New function to simplify a
32166         floating point expression ignoring the sign of the result.
32167         (fold) <ABS_EXPR>: Use it to simplify fabs(x).
32168         (fold) <MULT_EXPR>: Use it to simplify x*x.
32169         * tree.h (fold_strip_sign_ops): Prototype here.
32170         * builtins.c (fold_builtin_copysign): Take an additional FNDECL
32171         argument.  Use fold_strip_sign_ops to simplify the first argument.
32172         (fold_builtin_pow):  Use fold_strip_sign_ops to simplify the
32173         first argument when the second argument is an even integer
32174         constant, but only with -funsafe_math_optimizations.
32175         (fold_builtin_1): Update call to fold_builtin_copysign.
32177 2005-02-09  Ian Lance Taylor  <ian@airs.com>
32179         PR middle-end/19583
32180         * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
32181         just check whether EH_FILTER_FAILURE falls through.
32183 2005-02-09  Andreas Krebbel  <krebbel1@de.ibm.com>
32185         * gcc/haifa-sched.c (schedule_block): Make queued sched group
32186         insns return to ready list in the next turn.
32188 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
32190         PR middle-end/19402
32191         * builtins.def: New __builtin_powi[lf].
32192         * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
32193         (expand_builtin_powi): New function.
32194         (expand_builtin): Dispatch to expand_builtin_powi.
32195         * libgcc2.h: Add prototypes for __builtin_powi[lf].
32196         * libgcc2.c: Add __builtin_powi[lf] implementation.
32197         * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
32198         * optabs.h: Add powi_optab.
32199         * optabs.c (init_optabs): Initialize powi_optab.
32200         * doc/extend.texi: Document __builtin_powi[lf].
32202 2005-02-09  Dorit Naishlos  <dorit@il.ibm.com>
32204         * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file
32205         exists.
32207 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
32209         PR middle-end/19854
32210         * fold-const.c (try_move_mult_to_index): Remove redundant
32211         type argument.  Create ADDR_EXPR with correct type.
32212         (fold): Update callers of try_move_mult_to_index.  Convert
32213         result to the appropriate type.
32215 2005-02-09  Roger Sayle  <roger@eyesopen.com>
32217         PR target/19597
32218         * config/avr/avr.c (default_rtx_costs): Delete.
32219         (avr_operand_rtx_cost): New function.
32220         (avr_rtx_costs): Completely rewrite.
32222 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
32224         PR target/19806
32225         * config/cris/cris.c (in_code): New variable.
32226         (cris_output_addr_const): Now a static function, a wrapper for
32227         output_addr_const.
32228         (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
32229         case from old cris_output_addr_const.
32230         (cris_asm_output_label_ref): Similar for LABEL_REF.
32231         (cris_output_addr_const_extra): Similar for UNSPEC.
32232         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
32233         (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
32234         * config/cris/cris-protos.h (cris_output_addr_const): Remove
32235         declaration.
32236         (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
32237         (cris_asm_output_label_ref): Declare.
32239 2005-02-08  Paolo Bonzini  <bonzini@gnu.org>
32241         PR preprocessor/19801
32242         * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
32243         filenames that changed when libcpp was moved to the toplevel.
32245 2005-02-07  Roger Sayle  <roger@eyesopen.com>
32247         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
32248         zero extensions of BImode operands.  Call lowpart_subreg instead
32249         of gen_lowpart_common and gen_lowpart_SUBREG.
32251 2005-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
32253         PR ada/19489
32254         * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
32255         * configure.ac: Set cc_for_cross_gnattools.
32256         * configure: Regenerate.
32258 2005-02-08  Alan Modra  <amodra@bigpond.net.au>
32260         PR target/19803
32261         * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
32263 2005-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
32265         PR debug/19327
32266         * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
32267         of nested functions.
32269 2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>
32271         * doc/extend.texi: Document deprecated extensions allowing
32272         static floating-point members to have initializers and allowing
32273         floating-point literals in integral constant expressions.
32275 2005-02-07  Kazu Hirata  <kazu@cs.umass.edu>
32277         * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
32278         config/darwin7.h, config/mips/mips.c,
32279         config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
32280         Update copyright.
32282         * cse.c: Update comments.
32284 2005-02-07  Richard Guenther  <rguenth@gcc.gnu.org>
32286         PR middle-end/19775
32287         * builtins.c (fold_builtin_sqrt): Transform
32288         sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
32289         pow(x,y*0.5).
32291 2005-02-07  Leehod Baruch  <leehod@il.ibm.com>
32292             Dorit Naishlos  <dorit@il.ibm.com>
32294         * doc/invoke.texi (ftree-vectorizer-verbose): New.
32295         * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
32296         * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
32297         was added.
32298         * tree.h (vect_set_verbosity_level): New extern function declaration
32299         added.
32300         * tree-vectorizer.h (verbosity_levels): New enum type.
32301         * tree-vectorizer.c (vect_debug_stats): Function removed.
32302         (vect_debug_details): Likewise.
32303         (vect_verbosity_level): Global variable was defined and initialized.
32304         (vect_dump): Global variable definition.
32305         (vect_print_dump_info): New function.
32306         (vect_set_dump_settings): New function.
32307         (vect_set_verbosity_level): New function.
32308         (vectorize_loops): Add call to vect_set_dump_settings.
32310         (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
32311         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
32312         (slpeel_tree_peel_loop_to_edge): Likewise.
32314         (vect_analyze_offset_expr): Call to vect_print_dump_info with
32315         appropriate verbosity level instead of call to vect_debug_details
32316         or vect_debug_stats.
32317         (vect_get_base_and_offset):
32318         (vect_create_addr_base_for_vector_ref):
32319         (get_vectype_for_scalar_type):
32320         (vect_create_data_ref_ptr):
32321         (vect_init_vector):
32322         (vect_get_vec_def_for_operand):
32323         (vect_finish_stmt_generation):
32324         (vectorizable_assignment):
32325         (vectorizable_operation):
32326         (vectorizable_store):
32327         (vectorizable_load):
32328         (vect_transform_stmt):
32329         (vect_update_ivs_after_vectorizer):
32330         (vect_do_peeling_for_loop_bound):
32331         (vect_update_inits_of_drs):
32332         (vect_do_peeling_for_alignment):
32333         (vect_transform_loop):
32334         (vect_is_simple_use):
32335         (vect_analyze_operations):
32336         (vect_is_simple_iv_evolution):
32337         (vect_analyze_scalar_cycles):
32338         (vect_analyze_data_ref_dependence):
32339         (vect_analyze_data_ref_dependences):
32340         (vect_compute_data_ref_alignment):
32341         (vect_enhance_data_refs_alignment):
32342         (vect_analyze_data_refs_alignment):
32343         (vect_analyze_data_ref_access):
32344         (vect_analyze_data_ref_accesses):
32345         (vect_analyze_pointer_ref_access):
32346         (vect_get_memtag_and_dr):
32347         (vect_analyze_data_refs):
32348         (vect_mark_relevant):
32349         (vect_stmt_relevant_p):
32350         (vect_mark_stmts_to_be_vectorized):
32351         (vect_can_advance_ivs_p):
32352         (vect_get_loop_niters):
32353         (vect_analyze_loop_form):
32354         (vect_analyze_loop):
32355         (vectorize_loops): Likewise.
32357         (vect_do_peeling_for_loop_bound): Dump format slightly changed.
32358         (vect_update_inits_of_drs):
32359         (vect_do_peeling_for_alignment):
32360         (vect_transform_loop):
32361         (vect_analyze_operations):
32362         (vect_analyze_scalar_cycles):
32363         (vect_analyze_data_ref_dependences):
32364         (vect_analyze_data_refs_alignment):
32365         (vect_analyze_data_ref_accesses):
32366         (vect_analyze_data_refs):
32367         (vect_mark_stmts_to_be_vectorized):
32368         (vect_get_loop_niters):
32369         (vect_analyze_loop_form):
32370         (vect_analyze_loop): Likewise.
32371         (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
32373 2005-02-07  Richard Sandiford  <rsandifo@redhat.com>
32375         PR bootstrap/19796
32376         Revert:
32377         2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
32378         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
32379         either -ffast-math or -funsafe-math-optimizations is in use.
32381         2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
32382         * config/mips/irix-csr.c: New file.
32383         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
32384         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
32385         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
32386         executables.
32388 2005-02-07  Alexandre Oliva  <aoliva@redhat.com>
32390         * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
32391         redundant, incorrect definitions.
32393         * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
32394         expand.
32395         ("*tls_indirect_call"): New, reference hard regs directly.
32396         * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
32398 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
32400         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC):
32401         Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
32403 2005-02-06  Roger Sayle  <roger@eyesopen.com>
32405         PR rtl-optimization/19800
32406         * simplify_rtx.c (simplify_relational_operation_1): Explicitly
32407         call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
32408         gen_lowpart.
32410 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
32412         * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
32414 2005-02-07  Joseph S. Myers  <joseph@codesourcery.com>
32416         PR other/17135
32417         * doc/invoke.texi: Correct documentation of -freorder-functions.
32419 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
32421         PR other/14402
32422         * doc/invoke.texi: Don't mention gccbug.
32424 2005-02-06  Roger Sayle  <roger@eyesopen.com>
32425             Andrew Pinski  <pinskia@physics.uc.edu>
32426             Paolo Bonzini  <paolo.bonzini@lu.unisi.ch>
32428         * simplify-rtx.c (simplify_relational_operation_1): Simplify
32429         (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
32430         into just (zero_extract:SI FOO (const_int 1) BAR).
32432 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
32434         * doc/cpp.texi: Include gcc-common.texi.  Don't define gcctabopt
32435         macro locally.  Don't give last revision date.  Use GCC version
32436         number from gcc-common.texi.
32437         * doc/cppinternals.texi: Include gcc-common.texi.  Don't give last
32438         revision date.  Use GCC version number from gcc-common.texi.
32439         Describe being a library as current state rather than as 3.x
32440         history.
32441         * doc/gcc.texi: Remove last update date.
32442         * doc/gccint.texi: Likewise.  Update copyright dates.
32443         * doc/install.texi: Update copyright dates.
32445 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
32447         PR other/7549
32448         * doc/invoke.texi: Mention for each option included in -Wall that
32449         it is included in -Wall.
32450         * doc/gcc.texi: Update copyright and last modification date.
32452 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
32454         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
32455         unnecessary cast to original induction variable increments.
32457 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
32459         PR tree-optimization/18219
32460         * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
32461         in distributed form.
32463 2005-02-06  Richard Sandiford  <rsandifo@redhat.com>
32465         * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
32466         Set bitpos and offset later in the function.  Do nothing if the
32467         target is a register and if the bitfield lies completely outside
32468         that register.
32469         (extract_bit_field): Make the same SUBREG, bitpos and offset changes
32470         here.  Return an uninitialised register if the source value is stored
32471         in a register and the bitfield lies completely outside that register.
32473 2005-02-06  Steven Bosscher  <stevenb@suse.de>
32475         * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
32476         not SET_DEST.
32478 2005-02-06  Marcin Dalecki  <martin@dalecki.de>
32480         * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
32482 2005-02-06  Geoffrey Keating  <geoffk@apple.com>
32484         * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
32485         * config/darwin8.h: New.
32486         * config/darwin7.h: Update comment.
32488 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
32489             Dorit Naishlos  <dorit@il.ibm.com>
32491         * tree-vectorizer.h (LOC): New type.
32492         (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
32493         (loop_line_number): New field in struct _loop_vec_info.
32494         (LOOP_VINFO_LOC, LOOP_LOC): New macros.
32496         * tree-vectorizer.c (input.h): Included.
32497         (find_loop_location): New function.
32498         (vect_debug_stats): Argument changed from loop to LOC. Computation of
32499         loop line number removed.
32500         (vect_debug_details): Likewise.
32501         (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
32503         (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
32504         call to vect_debug_details/stats changed from loop to loop_loc.
32505         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
32506         (slpeel_tree_peel_loop_to_edge): Likewise.
32508         (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
32509         changed from NULL to UNKNOWN_LOC.
32510         (vect_get_base_and_offset):
32511         (vect_create_addr_base_for_vector_ref):
32512         (get_vectype_for_scalar_type):
32513         (vect_create_data_ref_ptr):
32514         (vect_init_vector):
32515         (vect_get_vec_def_for_operand):
32516         (vect_finish_stmt_generation):
32517         (vectorizable_assignment):
32518         (vectorizable_operation):
32519         (vectorizable_store):
32520         (vectorizable_load):
32521         (vect_transform_stmt):
32522         (vect_update_ivs_after_vectorizer):
32523         (vect_do_peeling_for_loop_bound):
32524         (vect_do_peeling_for_alignment):
32525         (vect_transform_loop):
32526         (vect_is_simple_use):
32527         (vect_analyze_operations):
32528         (vect_is_simple_iv_evolution):
32529         (vect_analyze_scalar_cycles):
32530         (vect_analyze_data_ref_dependences):
32531         (vect_compute_data_ref_alignment):
32532         (vect_enhance_data_refs_alignment):
32533         (vect_analyze_data_ref_access):
32534         (vect_analyze_data_ref_accesses):
32535         (vect_analyze_pointer_ref_access):
32536         (vect_get_memtag_and_dr):
32537         (vect_analyze_data_refs):
32538         (vect_mark_relevant):
32539         (vect_stmt_relevant_p):
32540         (vect_mark_stmts_to_be_vectorized):
32541         (vect_can_advance_ivs_p):
32542         (vect_get_loop_niters):
32543         (vect_analyze_loop):
32544         (vectorize_loops): Likewise.
32546         (vectorizable_load): Argument in call to vect_debug_details/stats
32547         changed from loop to LOOP_LOC (loop_vinfo).
32548         (vect_transform_loop):
32549         (vect_analyze_operations):
32550         (vect_analyze_scalar_cycles):
32551         (vect_analyze_data_ref_dependence):
32552         (vect_enhance_data_refs_alignment):
32553         (vect_analyze_data_ref_accesses):
32554         (vect_analyze_pointer_ref_access):
32555         (vect_analyze_data_refs):
32556         (vect_analyze_loop): Likewise.
32558         (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
32559         changed from loop to loop_loc.
32561         (vect_enhance_data_refs_alignment): Removed unused variable loop.
32563 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
32564             Dorit Naishlos  <dorit@il.ibm.com>
32566         * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
32567         declaration added.
32568         (vect_analyze_data_ref_dependences): Likewise.
32570         (vect_is_simple_use): Argument changed from loop structure to
32571         loop_vect_info structure.
32572         (vect_can_advance_ivs_p): Likewise.
32573         (vect_create_index_for_vector_ref): Likewise.
32574         (vect_update_ivs_after_vectorizer): Likewise.
32575         (new_stmt_vec_info): Likewise.
32577         (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
32578         changed from loop to loop_vinfo.
32579         (vect_create_data_ref_ptr): First argument in call to
32580         vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
32581         (vectorizable_assignment): Second argument in call to vect_is_simple_use
32582         was changed from loop to loop_vinfo.
32583         (vectorizable_operation): Likewise.
32584         (vectorizable_store): Likewise.
32585         (vect_mark_stmts_to_be_vectorized): Likewise.
32586         (vect_do_peeling_for_loop_bound): First argument in call to
32587         vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
32588         (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
32589         was changed from loop to loop_vinfo.
32590         (vect_analyze_data_ref_dependences): Third argument in call to
32591         vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
32593         (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
32594         (vect_create_data_ref_ptr): Likewise.
32595         (vect_init_vector): Likewise.
32596         (vect_get_vec_def_for_operand): Likewise.
32597         (vectorizable_assignment): Likewise.
32598         (vectorizable_operation): Likewise.
32599         (vectorizable_store): Likewise.
32600         (vectorizable_load): Likewise.
32601         (vect_update_ivs_after_vectorizer): Likewise.
32602         (vect_is_simple_use): Likewise.
32603         (vect_analyze_data_ref_dependence): Likewise.
32604         (vect_analyze_pointer_ref_access): Likewise.
32605         (vect_can_advance_ivs_p): Likewise.
32607         * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
32608         before _stmt_vec_info.
32609         (_stmt_vec_info): Loop field replaced by loop_vec_info.
32610         (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
32611         (new_stmt_vec_info): Argument changed from loop structure to
32612         loop_vect_info structure
32614         (vect_analyze_data_ref_dependences): Unnecessary line was removed.
32615         (vect_analyze_offset_expr): Avoid 80 columns overflow.
32616         (vect_create_addr_base_for_vector_ref): Likewise.
32617         (vect_analyze_pointer_ref_access): Likewise.
32619 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
32621         PR tree-opt/19768
32622         * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
32623         phi flag if the phi is abnormal.
32625 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
32627         PR tree-opt/19736
32628         * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
32629         information for the new statement.
32631 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
32633         PR driver/19117
32634         * gcc.c (main): Include the target in -v output.
32636 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
32638         * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
32639         Do not drop the extend if we'd have to add a paradoxical subreg
32640         later.  Include optabs.h and insn-codes.h.
32641         * Makefile.in (combine.o): Depend on $(OPTABS_H).
32643 2005-02-02  Roger Sayle  <roger@eyesopen.com>
32645         PR middle-end/19405
32646         * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
32647         * fold-const.c (const_binop): Avoid constant folding floating
32648         point operations in modes that use composite representations.
32649         * simplify-rtx.c (simplify_binary_operation): Likewise.
32651 2005-02-02  Geoffrey Keating  <geoffk@apple.com>
32653         * config/rs6000/altivec.md (altivec_dst): Make the first operand
32654         a REG, not a MEM.
32655         (altivec_dstt): Likewise.
32656         (altivec_dstst): Likewise.
32657         (altivec_dststt): Likewise.
32658         * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
32659         of first operand.
32661 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
32663         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
32664         EXPR_LOCUS from orig_cond to the new cond_stmt.
32665         (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
32666         the new vec_stmt.
32668 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
32670         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
32671         standard_iv_increment_position. Remove call to bsi_next
32672         (no need to bump the iterator anymore).
32673         (vect_create_index_for_vector_ref): Call
32674         standard_iv_increment_position. Remove second function argument.
32675         (vect_finish_stmt_generation): Remove call to bsi_next
32676         (no need to bump the iterator anymore).
32677         (vect_create_data_ref_ptr): Remove second argument (bsi) in call
32678         to vect_create_index_for_vector_ref.
32680 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
32682         * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
32683         phis are used out of the loop.
32685 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
32687         PR c/17807
32688         * c-decl.c (undef_nested_function): New variable.
32689         (pop_scope): Diagnose undefined nested functions.
32690         (finish_function): Don't attempt cgraph processing or genericizing
32691         if current top-level function contained an undefined nested
32692         function.  Reset undef_nested_function at the end of a top-level
32693         function.
32695 2005-02-02  Zdenek Dvorak  <dvorakz@suse.cz>
32697         * tree.c (build_int_cst_type): Take sign of the value into account
32698         when deciding whether sign extend the value.
32700 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
32702         PR c/18502
32703         * gcc.c (cpp_unique_options): Remove %{trigraphs}.
32704         (cpp_options, cc1_options): Change %{std*&ansi} to
32705         %{std*&ansi&trigraphs}.
32707 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
32709         * cse.c: Update comments.
32711 2005-02-02  Aldy Hernandez  <aldyh@redhat.com>
32713         * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
32714         arguments go on the stack.  Do not put complex doubles in odd/even
32715         pairs.
32717 2005-02-02  Steven Bosscher  <stevenb@suse.de>
32719         * doc/invoke.texi: Update the options enabled at -O1, -O2,
32720         and -O3.  Update the documentation for -fgcse-sm, -fgcse-las,
32721         -ftree-pre, and -fthread-jumps.
32723 2005-02-02  Richard Sandiford  <rsandifo@redhat.com>
32725         PR tree-optimization/19578
32726         * tree-flow.h (modified_noreturn_calls): Declare.
32727         (noreturn_call_p): Declare.
32728         * tree-flow-inline.h (noreturn_call_p): New function.
32729         (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
32730         * tree-cfg.c (modified_noreturn_calls): New variable.
32731         (cleanup_control_flow): Use noreturn_call_p.  Split basic blocks
32732         that contain a mid-block noreturn call.
32733         * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
32735 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
32737         * df.c (df_def_record_1, df_uses_record): Don't use
32738         DF_FOR_REGALLOC.
32739         * df.h (DF_FOR_REGALLOC): Remove.
32741 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
32743         PR c/19435
32744         * c-typeck.c (really_start_incremental_init): Reset
32745         constructor_max_index for arrays of incomplete type.
32747 2005-02-02  Jeff Law  <law@redhat.com>
32749         * gcse.c (struct reg_set): Store the block index where the register
32750         was set rather than the setting insn.
32751         (record_one_set, compute_transp): Corresponding changes.
32752         (pre_insert_copy_insn): Do not call replace_one_set.
32753         (replace_one_set): Remove.
32755 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
32757         PR other/15514
32758         * doc/gcov.texi: Fix typo.
32760 2005-02-01  Richard Henderson  <rth@redhat.com
32762         PR target/19680
32763         * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
32764         * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
32765         type to bool.
32766         (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
32767         * config/i386/i386-protos.h: Update.
32769 2005-02-01  Steven Bosscher  <stevenb@suse.de>
32771         PR tree-optimization/19217
32772         * tree-cfg.c (verify_expr): Use the data field to see if TP was
32773         seen inside a PHI node.  Do not do the ADDR_EXPR check if it was.
32774         (verify_stmts): Pass (void*)1 as data to verify_expr to signal
32775         that it is walking a PHI node.
32777 2005-02-01  Joseph S. Myers  <joseph@codesourcery.com>
32779         * doc/extend.texi (Nested Functions): Update.
32781 2005-02-01  Richard Henderson  <rth@redhat.com>
32783         PR 19696
32784         * optabs.c (expand_copysign_absneg): Export.
32785         * optabs.h (expand_copysign_absneg): Declare.
32786         * config/rs6000/rs6000.md (copysigntf3): New.
32788 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
32790         PR tree-optimization/19633
32791         * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
32792         * tree-ssa-alias.c (init_alias_info): Initialize.
32793         (merge_pointed_to_info): Set.
32794         (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
32795         (dump_points_to_info_for): Show value of pt_null.
32796         (struct count_ptr_d): Declare.
32797         (find_ptr_dereference): Remove.
32798         (ptr_is_dereferenced_by): Remove.
32799         (count_ptr_derefs): New local function.
32800         (count_uses_and_derefs): New local function.
32801         (compute_points_to_and_addr_escape): Call it.  If the number
32802         of dereferences is greater than zero, mark the pointer as
32803         dereferenced.  If there are fewer dereferences than uses of
32804         the pointer, the pointer's value escapes.
32806 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
32808         PR tree-optimization/19670
32809         * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
32810         here...
32811         (verify_use): ... set it here, instead.
32813 2005-02-01  Janis Johnson  <janis187@us.ibm.com>
32815         * doc/sourcebuild.texi (Test directives): Fix formatting.
32817         * doc/sourcebuild.texi (Test directives): Describe selector
32818         expressions.
32820 2005-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
32822         * config.gcc (powerpc64-*-linux*): Default to -m64 also for
32823         specific 64-bit CPUs.
32825 2005-02-01  Richard Earnshaw  <rearnsha@arm.com>
32827         PR target/16201
32828         * arm.c (arm_eliminable_register): New function.
32829         (adjacent_mem_locations): Don't allow eliminable registers.  Use
32830         HOST_WIDE_INT for address offsets.
32831         * arm-protos.h (arm_eliminable_register): Add prototype.
32833 2005-02-01  Steven Bosscher  <stevenb@suse.de>
32835         PR optimization/15242
32836         * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
32837         * basic-block.h (duplicate_computed_gotos): Add prototype.
32838         * bb-reorder.c (duplicate_computed_gotos): New function to
32839         duplicate sufficiently small blocks ending in a computed jump.
32840         * passes.c (rest_of_compilation): Call duplicate_computed_gotos
32841         if not optimizing for size.
32842         * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
32843         never do tail merging for blocks ending in a computed jump.
32844         * doc/invoke.texi: Document the max-goto-duplication-insns param.
32846 2005-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
32848         Patch from Richard Sandiford <rsandifo@redhat.com>
32849         * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
32850         from inheriting a subreg equivalence with a non-spill register.
32852         * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
32854 2005-02-01  Alexandre Oliva  <aoliva@redhat.com>
32856         * config/frv/frv.c (movcc_fp_destination_operand): New.
32857         (gpr_or_memory_operand): Fix typo in comment.
32858         (gpr_or_memory_operand_with_scratch): New.
32859         * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
32860         * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
32861         movcc_fp_destination_operand.
32862         (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
32863         Legitimize memory addresses using a scratch register.
32865 2005-01-31  Jeff Law  <law@redhat.com>
32867         * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
32868         bitmap a sparse bitmap instead of a simple bitmap.
32869         (mark_def_sites_initialize_block):  Corresponding changes.
32870         (ssa_mark_def_sites_initialize_block): Likewise.
32871         (ssa_mark_phi_uses): Likewise.
32872         (mark_def_site, ssa_mark_def_sites): Likewise.
32873         (mark_def_site_blocks): Likewise.
32874         (rewrite_ssa_into_ssa): Likewise.
32876         * tree-ssa-dom.c (record_cond): Pass correct variable type
32877         for last argument to htab_find_slot_with_hash.
32879         * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
32880         effects when optimizing 0 % X.  Do not try to optimize X % 0.
32882 2005-01-31  James E. Wilson  <wilson@specifixinc.com>
32884         * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
32885         1_mmalua.
32887 2005-02-01  Eric Christopher  <echristo@redhat.com>
32889         * config/mips/mips.c (override_options): Warn if -mint64
32890         is used.
32891         * doc/invoke.texi (MIPS Options): Document that -mint64 is
32892         deprecated.
32894 2005-02-01  Kazu Hirata  <kazu@cs.umass.edu>
32896         * cse.c (cse_reg_info): Remove hash_next, next, regno.  Add
32897         timestamp.
32898         (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
32899         REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
32900         cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
32901         (cached_regno): Initialize to INVALID_REGNUM.
32902         (cse_reg_info_table_size,
32903         cse_reg_info_table_first_uninitialized,
32904         cse_reg_info_timestamp): New.
32905         (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
32906         get_cse_reg_info.
32907         (init_cse_reg_info, get_cse_reg_info_1): New.
32908         (get_cse_reg_info): Cache the last look-up.
32909         (new_basic_block): Update the code to clear mappings from
32910         registers to cse_reg_info entries.
32911         (cse_main): Call init_cse_reg_info.
32913         * cse.c (get_cse_reg_info): Update a comment.
32915 2005-01-31  Steven Bosscher  <stevenb@suse.de>
32917         PR c/19333
32918         * c-decl.c (start_decl): Do not warn about arrays of elements with
32919         an incomplete type here.
32920         (grokdeclarator): Do it here by making a pedwarn an error.
32921         * c-typeck.c (push_init_level): If there were previous errors with
32922         the constructor type, do not warn about braces for initializers.
32923         (process_init_element): Likewise for excess initializer elements.
32925 2005-01-31  Kazu Hirata  <kazu@cs.umass.edu>
32927         * cse.c (delete_trivially_dead_insn): Don't iterate.
32929 2005-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
32931         * config/rs6000/rs6000.md (copysignsf3): New expand.
32932         (copysigndf3): Likewise.
32934 2005-01-31  Steven Bosscher  <stevenb@suse.de>
32936         * recog.c (constrain_operands): Only look for earlyclobber operand
32937         conflicts if an '&' constraint was seen.
32939 2005-01-31  Marc Espie <espie@openbsd.org>
32941         * config.gcc: Don't include embedded systems fragment, switches default
32942         debugging format to ELF.
32943         * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
32944         longer pick it up there.
32946 2005-01-31  Dale Johannesen  <dalej@apple.com>
32948         * doc/extend.texi (nested functions): Fix linkage description.
32949         Clarify that static is not allowed.
32951 2005-01-31  Dale Johannesen  <dalej@apple.com>
32953         * config/rs6000/darwin.md (movsf_low_di):  Make work.
32954         (movdf_low_di):  Make work.
32956 2005-01-31  Dale Johannesen  <dalej@apple.com>
32958         * config/rs6000/darwin-tramp.asm (__trampoline_setup):
32959         Make work for 64 bit.
32961 2005-01-31  Roger Sayle  <roger@eyesopen.com>
32962             Dale Johannesen  <dalej@apple.com>
32964         PR middle-end/19650
32965         * fold-const.c (fold_binary_op_with_conditional_arg):
32966         Make types match original operands, before STRIP_NOPS.
32968 2005-01-31  Alan Modra  <amodra@bigpond.net.au>
32970         * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
32971         (struct gcc_regs): Rename from gcc_pt_regs.  Add more regs.
32972         (struct gcc_sigcontext): Delete.  Merge contents to..
32973         (struct gcc_ucontext): ..here.
32974         (get_sigcontext): Delete.
32975         (get_regs): New function, like get_sigcontext but return regs ptr.
32976         64-bit version finds regs from r1 to support vdso.
32977         (ppc_linux_aux_vector): New function.
32978         (ppc_fallback_frame_state): Modify for get_regs.  Restore fprs
32979         and vector regs.
32981 2005-01-31  Ira Rosen  <irar@il.ibm.com>
32983         * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
32984         sizetype.
32985         (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
32986         redundant fold. Fix misalignment for MINUS_EXPR.
32987         (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
32988         (vect_analyze_pointer_ref_access): Likewise.
32989         (vect_get_memtag_and_dr): Likewise.
32991 2005-01-31  Richard Henderson  <rth@redhat.com>
32993         * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
32994         (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
32995         absnegdf2_i387, absnegxf2_i387): Likewise.
32997 2005-01-31  Richard Henderson  <rth@redhat.com>
32999         PR 19696
33000         * optabs.c (expand_copysign_absneg): New.
33001         (expand_copysign_bit): Split out from ...
33002         (expand_copysign): ... here.  Use expand_copysign_absneg.
33004 2005-01-30  Roger Sayle  <roger@eyesopen.com>
33006         PR middle-end/19697
33007         * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
33008         constant as the second operand and a register as the third.
33010 2005-01-31  Danny Smith  <dannysmith@users.sourceforge.net>
33012         PR target/19704
33013         * config/i386/i386.c (ix86_function_ok_for_sibcall):  Also check
33014         that dllimport'd functions do not use all call-clobbered registers
33015         to pass parameters.
33017 2005-01-30  Richard Henderson  <rth@redhat.com>
33019         PR 19696
33020         * optabs.c (expand_absneg_bit): Split out from expand_unop and
33021         expand_abs_nojump and generalize.  Use operand_subword and
33022         emit_no_conflict_block.  Support large modes.
33023         (expand_abs_nojump): Use it.  Use HONOR_SIGNED_ZEROS to fall
33024         back to maximum.
33025         (expand_unop): Likewise.  Use HONOR_SIGNED_ZEROS to fall back
33026         negation to subtraction.
33027         (expand_copysign): Check that the format has signed zeros.
33028         Use operand_subword and emit_no_conflict_block.  Support large modes.
33030 2005-01-30  Daniel Berlin  <dberlin@dberlin.org>
33032         Fix PR tree-optimization/19624
33034         * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
33035         * tree-ssa-pre.c: Add cfgloop.h.
33036         Update comment.
33037         (pre_stats): New member, constified.
33038         (inserted_exprs): New static variable.
33039         (NECESSARY): New macro.
33040         (create_expression_by_pieces): Fold the expression, and
33041         mark it as defaulting to not necessary. Also put in
33042         inserted_exprs.
33043         (fully_constant_expression): New function.
33044         (insert_into_preds_of_block): Modify to not insert phis when we
33045         are playing with induction variables.
33046         Push phis onto the inserted_exprs vector, and mark them as not
33047         necessary by default.
33048         (insert_aux): Call fully_constant_expression on eprime.
33049         If all edges produce the same value, mark it constant.
33050         (mark_operand_necessary): New function.
33051         (remove_dead_inserted_code): New function.
33052         (init_pre): Init loop optimizer to get loop info.
33053         (fini_pre): Free loop_optimizer, and inserted_exprs vec.
33054         (execute_pre): Commit edge inserts, then remove dead code.
33056 2005-01-30  Richard Henderson  <rth@redhat.com>
33058         * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
33059         * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
33061 2005-01-30  Richard Henderson  <rth@redhat.com>
33063         PR target/19700
33064         * config/i386/i386.c (ix86_expand_copysign): New.
33065         (ix86_split_copysign_const): New.
33066         (ix86_split_copysign_var): Rename from ix86_split_copysign,
33067         rearrange op1/nmask operands.
33068         * config/i386/i386-protos.h: Update.
33069         * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
33070         (copysigndf3): Likewise.
33071         (copysignsf3_const, copysigndf3_const): New.
33072         (copysignsf3_var): Rename from copysignsf3, split out splitter
33073         and fix split predicate for X constraint.
33074         (copysigndf3_var): Similarly.
33076 2005-01-30  Kazu Hirata  <kazu@cs.umass.edu>
33078         * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
33079         doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
33080         doc/tm.texi, doc/tree-ssa.texi: Update copyright.
33082 2005-01-29  Richard Henderson  <rth@redhat.com>
33084         PR target/19690
33085         * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
33086         of # and * in constraints.
33088 2005-01-29  Richard Henderson  <rth@redhat.com>
33090         PR middle-end/19689
33091         * expr.c (store_field): Don't strip sub-mode cast when the input
33092         data is even smaller.
33094 2005-01-29  Richard Henderson  <rth@redhat.com>
33096         PR middle-end/19687
33097         * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
33098         union being empty.
33100 2005-01-29  Richard Henderson  <rth@redhat.com>
33102         * combine.c (make_field_assignment): Fix argument order
33103         to gen_int_mode.
33105 2005-01-29  Richard Guenther <richard.guenther@uni-tuebingen.de>
33107         PR tree-optimization/15791
33108         * fold-const.c (extract_array_ref): New function.
33109         (fold): Fold comparisons between &a[i] and &a[j] or
33110         semantically equivalent trees.
33112 2005-01-29  Jeff Law  <law@redhat.com>
33114         * gcse.c (insert_expr_in_table): Revamp handling of available
33115         and anticipatable occurrence lists to avoid unnecessary list
33116         walking.
33117         (insert_set_in_table): Similarly.
33119 2005-01-29  Joseph S. Myers  <joseph@codesourcery.com>
33121         * c-common.c (fix_string_type): Just use c_build_qualified_type to
33122         build string type.
33123         (c_build_qualified_type): Build qualified array types with
33124         TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
33125         * c-decl.c (c_make_fname_decl): Build unqualified array type
33126         before qualified type.
33127         (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
33128         type is qualified, not just if type itself is.  Don't apply
33129         qualifiers to array type when declarator is processed.  Apply
33130         qualifiers to field type whether or not it is an array type.
33131         Don't handle array types specially for applying qualifiers to
33132         variables.
33133         * c-typeck.c (composite_type): Build unqualified element type and
33134         array type when forming composite of array types.
33135         (common_pointer_type, comptypes, comp_target_types,
33136         type_lists_compatible_p, build_indirect_ref, build_array_ref,
33137         convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
33138         types.
33139         (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
33140         (args2) in variables a1 and a2.
33142 2005-01-29  Kazu Hirata  <kazu@cs.umass.edu>
33144         * cse.c (n_elements_made, max_elements_made): Remove.
33145         (insert): Don't touch n_elements_made.
33146         (cse_main): Don't touch n_elements_made or max_elements_made.
33148 2005-01-28  Stephane Carrez  <stcarrez@nerim.fr>
33150         PR target/15384
33151         * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
33152         configuration part of dp-bit.c to be lost.
33154 2005-01-28  Roger Sayle  <roger@eyesopen.com>
33156         * expmed.c (expand_mult_highpart_optab): When attempting to use
33157         a non-widening multiplication in a wider mode, the operands need
33158         to be converted (zero or sign extended) to that mode.
33160 2005-01-28  Ian Lance Taylor  <ian@airs.com>
33162         PR middle-end/16558
33163         PR middle-end/19583
33164         * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
33165         through if both operands fall through.
33167 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
33169         * cse.c (fold_rtx) <PC>: Don't optimize.
33171 2005-01-28  Jeff Law  <law@redhat.com>
33173         * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
33174         (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
33176 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
33178         * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
33179         cse_reg_info_used_list_end): Remove.
33180         (cse_reg_info_list, cse_reg_info_list_free): New.
33181         (get_cse_reg_info): When allocating an instance of
33182         cse_reg_info, add it to the beginning of the cse_reg_info_list
33183         list.  Remove code to maintain cse_reg_info_used_list.
33184         (new_basic_block): Reset the free list to the beginning of
33185         cse_reg_info_list.
33187 2005-01-28  Richard Sandiford  <rsandifo@redhat.com>
33189         * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
33190         (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
33191         (frv_expand_mdpackh_builtin): New function.
33192         (frv_expand_builtin): Use it to expand __MDPACKH.
33193         * doc/extend.texi (__MDPACKH): Update documentation.
33195 2005-01-28  Uros Bizjak  <uros@kss-loka.si>
33197         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
33198         SSE_FLOAT_MODE_P for use_sse computation.
33200 2005-01-28  Ralf Corsepius  <ralf.corsepius@rtems.org>
33202         PR target/19663
33203         * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
33205 2005-01-27  Richard Henderson  <rth@redhat.com>
33207         * builtins.c (expand_builtin_copysign): New.
33208         (expand_builtin): Call it.
33209         * genopinit.c (optabs): Add copysign_optab.
33210         * optabs.c (init_optabs): Initialize it.
33211         (expand_copysign): New.
33212         * optabs.h (OTI_copysign, copysign_optab): New.
33213         (expand_copysign): Declare.
33215         * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
33216         (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
33218         * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
33219         (ix86_expand_fp_absneg_operator): ... here.
33220         (ix86_split_copysign): New.
33221         * config/i386/i386-protos.h: Update.
33222         * config/i386/i386.md (UNSPEC_COPYSIGN): New.
33223         (copysignsf3, copysigndf3): New.
33225         * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
33226         (copysignsf3, ncopysignsf3): New.
33227         (copysigndf3, ncopysigndf3): New.
33228         (copysignxf3, ncopysignxf3): New.
33229         * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
33231 2005-01-27  Arend Bayer  <arend.bayer@web.de>
33232             Kazu Hirata  <kazu@cs.umass.edu>
33234         * cse.c: (find_best_addr): Don't call copy_rtx before calling
33235         fold_rtx.  Save cost recomputation if fold_rtx did nothing.
33236         (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
33237         NULL_RTX.
33239 2005-01-27  Jeff Law  <law@redhat.com>
33241         * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
33242         definitions of SSA_NAMEs which are not being rewritten.
33243         (rewrite_ssa_into_ssa): Only initialize the current definition
33244         of an SSA_NAME if that SSA_NAME has been marked for rewriting.
33245         If checking is enabled, assert that SSA_NAME_AUX is clear for all
33246         SSA_NAMEs before returning.
33248 2005-01-27  Kazu Hirata  <kazu@cs.umass.edu>
33250         * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
33251         cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
33252         tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
33253         config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
33254         config/mips/iris6.h, config/sh/sh.c: Update copyright.
33256 2005-01-27  Steven Bosscher  <stevenb@suse.de>
33258         PR middle-end/17278
33259         * opts.c (decode_options): Move flag_thread_jumps from -O1 and
33260         higher to -O2 and higher.  Likewise for tree PRE.
33261         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
33262         and better.
33264 2005-01-27  Ian Lance Taylor  <ian@airs.com>
33266         PR middle-end/19583
33267         * gimple-low.c (try_catch_may_fallthru): New static function.
33268         (block_may_fallthru): Handle TRY_CATCH_EXPR.
33269         * tree-inline.c (expand_call_inline): Don't warn about reaching
33270         the end of a non-void function being inlined if the function uses
33271         a return slot.
33273 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
33275         * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
33277         PR c/18946
33278         * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
33279         (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
33280         (implicitly_declare): Handle error_mark_node.
33282 2005-01-27  Richard Henderson  <rth@redhat.com>
33284         PR tree-opt/14329
33285         * tree.h (struct tree_decl): Add debug_expr_is_from.
33286         (DECL_DEBUG_EXPR_IS_FROM): New.
33287         (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
33288         * dwarf2out.c (dwarf2out_var_location): Update to match.
33289         * tree-outof-ssa.c (create_temp): Likewise.
33290         * var-tracking.c (track_expr_p): Likewise.
33291         * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
33292         * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
33293         * toplev.c (default_tree_printer): Likewise.
33295 2005-01-27  Alexandre Oliva  <aoliva@redhat.com>
33297         * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
33298         GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
33300 2005-01-27  Steven Bosscher  <stevenb@suse.de>
33302         * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
33303         CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
33304         ASM_CLOBBERS): Add tree checks.
33306         * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
33307         (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
33308         * c-common.def (SWITCH_STMT): Update to match.
33309         * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
33310         macros instead of SWITCH_EXPR ones.
33311         * c-dump.c (c_dump_tree): Likewise.
33312         * c-gimplify.c (gimplify_switch_stmt): Likewise.
33313         * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
33315         * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
33317 2005-01-27  Alan Modra  <amodra@bigpond.net.au>
33319         * unwind-dw2.c (execute_stack_op): Add missing cases for
33320         DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
33322 2005-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
33324         * config.gcc (Obsolete configurations): Remove 'dummy', add
33325         sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
33326         sparc-*-openbsd*.
33328 2005-01-26  Diego Novillo  <dnovillo@redhat.com>
33330         PR tree-optimization/19633
33331         * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
33332         CALL_EXPRs.
33333         (maybe_create_global_var): Do not create .GLOBAL_VAR if there
33334         are no call-clobbered variables.
33335         * tree-outof-ssa.c (check_replaceable): Return false for calls
33336         with side-effects.
33338 2005-01-26  Ulrich Weigand  <uweigand@de.ibm.com>
33340         * dbxout.c (dbxout_symbol_location): Resolve constant pool references
33341         even for variables with NULL DECL_INITIAL.
33343 2005-01-26  Stuart Hastings  <stuart@apple.com>
33345         * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
33347 2005-01-26  Richard Henderson  <rth@redhat.com>
33349         PR middle-end/18008
33350         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
33351         field's type.
33352         * expr.c (store_field): Strip conversions to odd-bit-sized types
33353         if the destination field width matches.
33355 2005-01-26  Richard Henderson  <rth@redhat.com>
33357         * c-decl.c, expmed.c, expr.c: Revert last change.
33359 2005-01-26  Richard Henderson  <rth@redhat.com>
33361         PR middle-end/18008
33362         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
33363         field's type.
33364         * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
33365         if we don't need the bits above those present in the current mode.
33366         * expr.c (store_field): Strip conversions to odd-bit-sized types
33367         if the destination field width matches.
33369 2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
33371         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
33372         either -ffast-math or -funsafe-math-optimizations is in use.
33374 2005-01-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
33376         PR target/19293
33377         PR target/19329
33378         * config/avr/avr.c (notice_update_cc): Only set condition code for
33379         ashrqi3 if shift count > 0.
33380         (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
33381         (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
33382         ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
33383         count <= 0 as a no-op, and shift count >= width by copying zero
33384         or sign bit to all bits of the result.
33385         * config/avr/avr.md (all shifts): Add alternatives for zero shift
33386         count, with attribute "length" set to 0 and "cc" set to "none".
33388 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
33390         * doc/invoke.texi: Document -mTLS.
33392         * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
33393         * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
33394         * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
33395         * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
33396         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
33397         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
33398         * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
33399         * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
33401         * configure.ac: Check for a TLS capable gas.
33403         * configure: Regenerate.
33405 2005-01-26  Richard Henderson  <rth@redhat.com>
33407         PR middle-end/18008
33408         * combine.c (make_field_assignment): Simplify store to zero_extract
33409         from a source with an overlapping mask.
33411 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
33413         2004-11-11  Eric Christopher  <echristo@redhat.com>
33415         * config/frv/frv.md: Add fr400_integer automaton. Don't
33416         allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
33417         to TYPE_MACC.
33419 2005-01-26  Steven Bosscher  <stevenb@suse.de>
33421         PR middle-end/16585
33422         * cfgbuild.c (make_edges): Do not clear or set
33423         current_function_has_computed_jump.
33424         * function.h (struct function): Remove the has_computed_jump field.
33425         (current_function_has_computed_jump): Do not define.
33426         * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
33427         in a computed jump.  Ignore current_function_has_computed_jump.
33429 2005-01-26  Richard Henderson  <rth@redhat.com>
33431         PR middle-end/19515
33432         * expr.c (categorize_ctor_elements): New argument p_must_clear.
33433         (categorize_ctor_elements_1): Likewise.  Detect a union that isn't
33434         fully initialized.
33435         (mostly_zeros_p): Update for new categorize_ctor_elements argument.
33436         * gimplify.c (gimplify_init_constructor): Likewise.  Only shove
33437         objects into static storage if they have more than one non-zero value.
33438         * tree.h (categorize_ctor_elements): Update decl.
33440 2005-01-26  Steven Bosscher  <stevenb@suse.de>
33442         PR middle-end/19616
33443         * tree.h (CALL_EXPR_TAILCALL): Add comment.
33444         * calls.c (check_sibcall_argument_overlap_1): Revert the change
33445         to this function from 2004-07-10.
33446         * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
33447         the current function for tail call optimizations if the address
33448         of one of it its arguments is taken.
33450 2005-01-26  Kazu Hirata  <kazu@cs.umass.edu>
33452         * cse.c (fold_rtx): Call equiv_constant only when necessary.
33454 2005-01-26  Bernd Schmidt  <bernd.schmidt@analog.com>
33456         * function.c (expand_function_end): If current_function_calls_alloca,
33457         emit stack restore in a place that is reached when the function falls
33458         through at the end.
33460 2005-01-26  Alexandre Oliva  <aoliva@redhat.com>
33462         * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
33463         rule to avoid matching inappropriate suffix rule.
33465 2005-01-26  Jan Hubicka  <jh@suse.cz>
33467         PR tree-optimization/19241
33468         * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
33470 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
33472         * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
33473         -lsyssim.  Wrap -lc -lsyssim in --start-group --end-group instead
33474         of doubling.
33475         (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
33476         <sim*>: Always use crt1.o, regardless of N in simN.
33477         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
33478         (ENDFILE_SPEC): Add crtn.o, after crtend.o.
33479         (CRT_CALL_STATIC_FUNCTION): Remove.
33480         * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
33481         use crt1.o, regardless of N in simN.
33482         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
33483         (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
33484         (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
33485         case isystem setting.
33486         (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
33488 2005-01-25  Ian Lance Taylor  <ian@airs.com>
33490         * gimple-low.c (block_may_fallthru): Correct handling of
33491         SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
33493 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
33495         * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
33496         handlers to match indentation; nested under the mtune=* handler.
33497         Similar for mcpu= and march=.
33499 2005-01-25  Daniel Jacobowitz  <dan@codesourcery.com>
33501         * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
33502         * config/mips/linux64.h (LIB_SPEC): Likewise.
33503         * config/mn10300/linux.h (LIB_SPEC): Likewise.
33504         * config/sh/linux.h (LIB_SPEC): Likewise.
33506 2005-01-25  Aldy Hernandez  <aldyh@redhat.com>
33508         * config/frv/frv.c (frv_legitimize_tls_address): New.
33509         (TARGET_HAVE_TLS): Define.
33510         (FRV_SYMBOL_REF_TLS_P): Define.
33511         (frv_override_options): Handle new register classes.
33512         (frv_legitimate_address_p): Reject tls addresses.
33513         (frv_legitimize_address): Handle TLS addresses.
33514         (gen_inlined_tls_plt): New.
33515         (gen_tlsmoff): New.
33516         (frv_legitimize_tls_address): New.
33517         (unspec_got_name): Add TLS entries.
33518         (got12_operand): Add R_FRV_TLSMOFF12 case.
33519         (frv_emit_move): Fixup TLS addresses.
33520         (frv_emit_movsi): Legitimize TLS addresses.
33522         * config/frv/frv.h (MASK_BIG_TLS): New.
33523         (TARGET_BIG_TLS): New.
33524         (HAVE_AS_TLS): Define.
33525         (TARGET_SWITCHES): Add -mTLS and -mtls options.
33526         (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
33527         (REG_CLASS_NAMES): Same.
33528         (REG_CLASS_CONTENTS): Same.
33529         (CONSTRAINT_LEN): New.
33530         (REG_CLASS_FROM_CONSTRAINT): New.
33531         (PREDICATE_CODES): Add symbolic_operand.
33533         * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
33534         UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
33535         UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
33536         UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
33537         R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
33538         R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
33539         R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
33540         GR9_REG, GR14_REG, LRREG.
33541         (type): Add load_or_call attribute.
33542         ("load_or_call"): New reservation.
33543         ("call_gettlsoff"): New.
33544         ("tls_indirect_call"): New.
33545         ("tls_load_gottlsoff12"): New.
33546         ("tlsoff_hilo"): New.
33547         ("tls_tlsdesc_ldd"): New.
33548         ("tls_tlsoff_ld"): New.
33549         ("tls_lddi"): New.
33551         * config/frv/frv-protos.h (symbolic_operand): Protoize.
33553         2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
33555         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
33556         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
33557         * config/frv/frv.c (TLS_BIAS): Define.
33558         (frv_output_dwarf_dtprel): New.
33560 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
33562         PR rtl-optimization/19579
33563         * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
33564         both A and B, see if they don't clobber registers the other expr uses.
33566 2005-01-25  J"orn Rennecke <joern.rennecke@st.com>
33568         * real.c (do_add): Initialize signalling and canonical members.
33570         * real.c (real_from_integer): Zero out destination.
33572 2005-01-18  Jan Hubicka  <jh@suse.cz>
33574         PR tree-optimize/19337
33575         * tree-inline.c (initialize_inlined_parameters): Copy
33576         saved_static_chain_decl only.
33578 2005-01-25  Richard Henderson  <rth@redhat.com>
33580         PR target/19556
33581         PR target/19584
33582         * config/i386/i386.c (x86_inter_unit_moves): Zero.
33583         (ix86_preferred_reload_class): Rewrite fp-constant section, with
33584         80387 enabled, to return a proper subclass.  Return the subset that
33585         overlaps with GENERAL_REGS for PLUS.
33586         * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
33588 2005-01-25  Richard Henderson  <rth@redhat.com>
33590         PR middle-end/19609
33591         * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
33593 2005-01-25  Roger Sayle  <roger@eyesopen.com>
33595         * expmed.c (choose_multiplier): Change interface to return the
33596         multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
33597         (expand_divmod): Update calls to choose_multiplier.
33599 2005-01-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33601         PR middle-end/19330
33602         * expmed.c (extract_bit_field): Use adjust_address instead of
33603         gen_lowpart when op0 is a MEM.
33605 2005-01-24  Steven Bosscher  <stevenb@suse.de>
33607         * cfgexpand.c (expand_gimple_tailcall): Fix typo.
33609 2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
33611         * config/mips/irix-csr.c: New file.
33612         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
33613         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
33614         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
33615         executables.
33617 2005-01-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
33619         PR bootstrap/19364
33620         * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
33621         sparc/elf.h, add sparc/sp-elf.h.
33622         (sparc-*-rtems*): Likewise.
33623         (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
33624         tm-dwarf2.h, add sparc/sp-elf.h.
33625         (sparc86x-*-elf): Likewise.
33626         (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
33627         * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
33628         TARGET_OS_CPP_BUILTINS.
33629         * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
33630         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
33631         Undefine it.
33632         * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
33633         * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
33634         (SWITCH_TAKES_ARG): Likewise.
33635         (LOCAL_LABEL_PREFIX): Likewise.
33636         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
33637         (TARGET_N_FORMAT_TYPES): Delete.
33638         (TARGET_FORMAT_TYPES): Likewise.
33639         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
33640         * config/sparc/elf.h: Delete.
33641         * config/sparc/sp-elf.h: New file.
33643 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
33645         * tree-flow-inline.h (phi_arg_from_edge): Remove.
33646         * tree-flow.h: Remove the corresponding prototype.
33647         * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
33648         tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
33650 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
33652         PR target/17751
33653         * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
33654         for AIX ABI or ELF -fPIC.
33655         (rs6000_emit_load_toc_table): Don't create toc_section here.
33656         (rs6000_xcoff_file_start): Nor here.
33658 2005-01-24  J"orn Rennecke <joern.rennecke@st.com>
33660         * sh.c (ra.h): Don't #include.
33661         (hard_regs_intersect_p): New function, resurrected from ra.c.
33663         * sh.c: Fix 1996 Copyright.
33665 2005-01-24  Richard Henderson  <rth@redhat.com>
33666             Aldy Hernandez  <aldyh@redhat.com>
33668         * regrename.c (note_sets): Handle subregs.
33670 2005-01-24  Joseph S. Myers  <joseph@codesourcery.com>
33672         PR bootstrap/18058
33673         * genconditions.c (write_header, write_conditions): Elide file if
33674         not GCC >= 3.0.1.
33676 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
33678         * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
33679         config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
33680         Update copyright.
33682 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
33684         * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
33685         expand_builtin_printf, expand_builtin_fprintf,
33686         expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
33687         checking against POINTER_TYPE.
33688         (validate_arglist): Handle POINTER_TYPE code by checking
33689         POINTER_TYPE_P.
33691 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
33693         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
33694         init_rtlanal): New.
33695         (for_each_rtx): Call for_each_rtx_1.
33696         * rtl.h (init_rtlanal): Declare.
33697         * toplev.c (backend_init): Call init_rtlanal.
33699 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
33701         * flow.c (propagate_one_insn): Formatting.
33703         PR middle-end/19551
33704         * flow.c (libcall_dead_p): Be more conservative if unsure.
33705         If there are any instructions between insn and call, see if they are
33706         all dead before saying the libcall is dead.
33708 2005-01-24  Uros Bizjak  <uros@kss-loka.si>
33710         * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
33711         operand constraint for operand 0.
33713 2005-01-23  Richard Henderson  <rth@redhat.com>
33715         PR 19486
33716         * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
33717         edges leading to join block.
33719 2005-01-23  Roger Sayle  <roger@eyesopen.com>
33721         * expmed.c (expand_mult_highpart): Make static.  Change type of
33722         constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
33723         (expand_divmod): Updates calls to expand_mult_highpart by using
33724         gen_int_mode to pass a CONST_INT rtx.
33725         * rtl.h (expand_mult_highpart): Remove prototype.
33727 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
33729         * flow.c (regset_bytes, regset_size): Remove.
33731         * cfganal.c: Fix a reference to Harvey's paper.
33733 2005-01-23  Steven Bosscher  <stevenb@suse.de>
33735         PR rtl-optimization/19464
33736         * tree-optimize.c (init_tree_optimization_passes): Add one more
33737         copyrename pass just before out-of-ssa.
33739 2005-01-23  Joseph S. Myers  <joseph@codesourcery.com>
33741         PR bootstrap/18058
33742         * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
33743         * ggc-none.c (ggc_free): Define.
33745 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
33747         * cse.c (max_reg, max_insn_uid): Remove.
33748         (cse_main): Don't access max_reg or max_insn_uid.
33750         * c-common.c (explicit_flag_signed_bitfields,
33751         lang_statement_code_p, lang_expand_function_end): Remove.
33752         * c-common.h: Remove the corresponding declarations.
33753         * c-opts.c (c_common_handle_option): Remove all write access
33754         to explicit_flag_signed_bitfields.
33756         * cgraph.c (cgraph_varpool_n_nodes): Remove.
33757         (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
33758         * cgraph.h: Remove the corresponding declaration.
33760         * gcse.c (null_pointer_info): Remove.
33762 2005-01-23  Roger Sayle  <roger@eyesopen.com>
33763             Eric Botcazou  <ebotcazou@libertysurf.fr>
33765         * combine.c (simplify_logical): Only simplify logical expressions
33766         of the form ior(and(x,y),z) by the inverse distributive law if the
33767         result is cheaper than the original.
33769 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
33771         * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
33772         fold-const.c, gimplify.c, params.h, tree-data-ref.c,
33773         tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
33774         tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
33775         config/freebsd-spec.h, config/arm/arm.h,
33776         config/h8300/h8300.md, config/i386/i386.md,
33777         config/i386/predicates.md, config/i386/sse.md,
33778         config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
33779         config/vax/vax.md: Fix comment typos.  Follow spelling
33780         conventions.
33782 2005-01-23  Steven Bosscher  <stevenb@suse.de>
33784         * gengtype.c (walk_type): Produce `not equal to' compares for loop
33785         tests, instead of `less than'.
33787 2005-01-23  Richard Sandiford  <rsandifo@redhat.com>
33789         * function.c (assign_parm_setup_block): When creating a new stack slot
33790         for a parameter, get its alignment from the parameter's DECL_ALIGN
33791         rather than the type's TYPE_ALIGN.  Make sure that the parameter
33792         is at least word aligned.
33794 2005-01-22  Roger Sayle  <roger@eyesopen.com>
33796         PR middle-end/19378
33797         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
33799 2005-01-22  Richard Henderson  <rth@redhat.com>
33801         PR target/19506
33802         * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
33803         in both compare operands.
33804         (movdfcc_1_sse_max): Likewise.
33805         (movsfcc_1_sse): Likewise.  Add earlyclobber for scratch.
33806         (movdfcc_1_sse): Likewise.
33807         * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
33808         scratch register as needed.
33810 2005-01-22  Richard Henderson  <rth@redhat.com>
33812         * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
33814         * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
33816 2005-01-22  Richard Henderson  <rth@redhat.com>
33818         * genopinit.c (optabs): Use smin/smax for floating point too.
33819         * doc/md.texi: Update to match.  Clarify that floating point
33820         results are undefined for +0/-0 and NaN.
33821         * doc/rtl.texi: Likewise.
33822         * rtl.def (SMIN, SMAX): Likewise
33823         * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
33825         * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
33826         leading 's' to the name.
33827         * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
33828         smaxxf3, sminxf3): Likewise.
33829         * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
33830         Likewise.
33832 2005-01-22  Paul Brook  <paul@codesourcery.com>
33834         * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
33836 2005-01-21  Mark Dettinger  <dettinge@de.ibm.com>
33838         * config/s390/s390.c (struct processor_costs): New fields
33839         dlgr, dlr, dr, dsgfr, dsgr.
33840         (z900_cost, z990_cost): Values for new fields.
33841         (s390_rtx_costs): New cases MEM und COMPARE in switch
33842         statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
33843         DIV, MOD, UDIV, UMOD.
33845 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
33847         * config/s390/s390.md ("doloop_si64"): Reload input value directly
33848         into the register being decremented.
33849         ("doloop_si31", "doloop_di"): Likewise.
33850         ("*doloop_si_long"): Adapt pattern.
33852 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
33854         * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
33855         access registers.
33856         (CLASS_MAX_NREGS): Likewise.
33858 2005-01-21  Daniel Berlin  <dberlin@dberlin.org>
33860         * doc/tree-ssa.texi (Statement Operands): Add example for new
33861         must-def macro. Note deprecation of old operands interface.
33863 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
33865         PR tree-optimization/19484
33866         * tree-cfg.c (remove_fallthru_edge): New function.
33867         (cleanup_control_flow): Remove fallthru edges from calls that are
33868         now known not to return.
33870 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
33872         Fix PR tree-optimization/19038
33873         * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
33874         copies with loop variant ones.
33876 2005-01-22  Kazu Hirata  <kazu@cs.umass.edu>
33878         * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
33879         config/alpha/alpha-protos.h, config/alpha/alpha.h,
33880         config/alpha/alpha.md, config/alpha/predicates.md,
33881         config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
33882         config/sparc/sol2.h: Update copyright.
33884         * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
33885         first label to see if it is a nonlocal label.
33887 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
33888             Andrew Pinski  <pinskia@physics.uc.edu>
33890         PR target/19491
33891         * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
33892         maximum number of GPRs.  Saturate n_fpr at maximum number of FPRs.
33894 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
33896         * config/rs6000/rtems.h: Update copyright.
33898 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
33900         PR target/19548
33901         * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
33902         (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
33903         (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
33905 2005-01-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
33907         PR c/18809
33908         * c-typeck.c (convert_arguments): Check for error_mark_node.
33910 2005-01-21  Ian Lance Taylor  <ian@airs.com>
33912         PR tree-optimization/13000
33913         * tree-inline.c: Include "tree-flow.h".
33914         (expand_call_inline): If warn_return_type, warn if non-void inline
33915         function falls through.
33916         * tree-cfg.c (execute_warn_function_return): Don't warn about
33917         control reaching end if TREE_NO_WARNING is set.  Set
33918         TREE_NO_WARNING.
33919         * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
33920         has been lowered.
33921         * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
33922         branch if we don't need one.
33923         * c-typeck.c: Include "tree-flow.h"
33924         (c_finish_bc_stmt): Don't add a goto if the current statement
33925         list doesn't fall through to the current point.
33927 2005-01-21  Roger Sayle  <roger@eyesopen.com>
33929         PR rtl-optimization/576
33930         * real.c (real_arithmetic): Change return type from void to bool
33931         to return an indication that the result may be inexact.
33932         * real.h (real_arithmeric): Update prototype.
33933         * fold-const.c (const_binop):  Don't constant fold floating
33934         point expressions when the user specifies -frounding-math and
33935         the result may depend upon the run-time rounding mode.
33936         (fold_convert_const_real_from_real): Clean-up.
33937         (fold_initializer): Ignore flag_rounding_math for initializers.
33938         * simplify-rtx.c (simplify_binary_operation): Likewise, don't
33939         constant fold FP operations with flag_rounding_math if the
33940         result may depend upon the run-time rounding mode.
33942 2005-01-21  Tom Tromey  <tromey@redhat.com>
33944         * c-cppbuiltin.c (define__GNUC__): Correct assertion.
33946 2005-01-21  Kazu Hirata  <kazu@cs.umass.edu>
33948         * tree-cfg.c: Fix comment typos.
33950 2005-01-21  J"orn Rennecke <joern.rennecke@st.com>
33952         * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
33953         around the call to rest_of_handle_branch_target_load_optimize.
33955 2005-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
33957         * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
33958         (sparc64-*-openbsd*): Likewise.
33959         (sparclite-*-elf*): Include tm-dwarf2.h.
33960         (sparc86x-*-elf*): Likewise.
33961         (sparc64-*-elf*): Likewise.
33962         * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
33963         (DBX_DEBUGGING_INFO): Likewise.
33964         * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
33965         (PREFERRED_DEBUGGING_TYPE): Likewise.
33966         * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
33967         * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
33968         (PREFERRED_DEBUGGING_TYPE): Likewise.
33969         * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
33970         (PREFERRED_DEBUGGING_TYPE): Likewise.
33971         * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
33973 2005-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
33975         PR target/18701
33976         * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
33978 2005-01-20  Paul Brook  <paul@codesourcery.com>
33980         * doc/rtl.texi: Document value extension requirements for CONST_INT.
33982 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
33984         * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
33985         label is first in a sequence of labels.
33987         * tree-cfg.c (tree_verify_flow_info): Fix a typo.
33989 2005-01-20  Janis Johnson  <janis187@us.ibm.com>
33990             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
33992         * doc/sourcebuild.texi (Test Directives): New.
33994 2005-01-20  Roger Sayle  <roger@eyesopen.com>
33996         * real.c (real_floor): Don't leave the result uninitialized when
33997         mode is VOIDMode, but return the unrounded intermediate value.
33998         (real_ceil): Likewise.
34000 2005-01-20  Paul Brook  <paul@codesourcery.com>
34002         * config/arm/arm.md (insv): Use gen_int_mode.
34004 2005-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
34006         * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
34007         * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
34008         * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
34009         * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
34010         * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
34012 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
34014         Fix PR debug/19124
34015         * dwarf2out.c (concat_loc_descriptor): We don't know we can use
34016         fbreg, so we have to assume we can't.
34017         (loc_descriptor_from_tree_1): Ditto.
34018         (containing_function_has_frame_base): New function.
34019         (add_location_or_const_value_attribute): Use it.
34020         Also try to generate a frame_base from a single element location
34021         list.
34023 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
34025         PR tree-optimization/15349
34026         * timevar.def (TV_TREE_MERGE_PHI): New.
34027         * tree-cfg.c (tree_forwarder_block_p): Add a new argument
34028         PHI_WANTED.
34029         (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
34030         calls to tree_forwarder_block_p.
34031         (remove_forwarder_block_with_phi, merge_phi_nodes,
34032         gate_merge_phi, pass_merge_phi): New.
34033         * tree-optimize.c (init_tree_optimization_passes): Add
34034         pass_merge_phi.
34035         * tree-pass.h: Add an extern for pass_merge_phi;
34037 2005-01-20  Richard Henderson  <rth@redhat.com>
34039         PR target/19418
34040         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
34041         (_mm_castps_pd, _mm_castps_si128): New.
34042         (_mm_castsi128_ps, _mm_castsi128_pd): New.
34044 2005-01-20  Richard Henderson  <rth@redhat.com>
34046         PR target/19530
34047         * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
34048         __builtin_ia32_vec_init_v2si.
34049         (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
34050         * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
34051         (ix86_init_mmx_sse_builtins): Create it.
34052         (ix86_expand_builtin): Expand it.
34053         (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
34054         * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
34055         (vec_extractv2si_0, vec_extractv2si_1): New.
34057 2005-01-20  Richard Henderson  <rth@redhat.com>
34059         PR target/16533
34060         * config/i386/i386.c (ix86_expand_push): New.
34061         * config/i386/mmx.md (push<MMXMODE>1): New.
34062         * config/i386/sse.md (push<SSEMODE>1): New.
34063         * config/i386/i386-protos.h: Update.
34065 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
34067         * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
34068         copyright.
34070 2005-01-20  Richard Henderson  <rth@redhat.com>
34072         * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
34073         * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
34075 2005-01-19  Richard Henderson  <rth@redhat.com>
34077         PR target/19350
34078         * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
34079         to V4SFmode in SSE1 fallback load path.
34081 2005-01-19  Richard Henderson  <rth@redhat.com>
34083         * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
34084         in QImode expansion to ix86_expand_vector_set.
34085         (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
34087 2005-01-19  Richard Henderson  <rth@redhat.com>
34089         PR target/19511
34090         * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
34091         subclass of the input class.
34092         (ix86_secondary_memory_needed): Always true for cross-MMX classes.
34093         Always true for cross-SSE1 classes.  Rationalize conditionals.
34094         * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
34095         * config/i386/i386.md (movsi_1): Add MMX/SSE zeros.  Fix alternatives
34096         for SSE1.  Don't check TARGET_INTER_UNIT_MOVES.
34097         (movdi_2): Add MMX/SSE zeros.
34098         (movdi_1_rex64): Likewise.  Don't check TARGET_INTER_UNIT_MOVES.
34099         (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
34100         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
34101         (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
34102         (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
34103         (zero_extendsidi2_rex64_1): Remove.
34104         (MOV0 peephole): Check GENERAL_REG_P.
34106 2005-01-19  Richard Henderson  <rth@redhat.com>
34108         PR target/19427
34109         * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
34110         shufps elements.
34111         (ix86_expand_vector_extract): Likewise.
34113 2005-01-19  Richard Henderson  <rth@redhat.com>
34115         PR middle-end/19304
34116         * expr.c (emit_move_change_mode): New argument force; use
34117         simplify_gen_subreg if true.
34118         (emit_move_via_alt_mode): Merge into ...
34119         (emit_move_via_integer): ... here.
34120         (emit_move_ccmode): Use emit_move_change_mode directly.
34122 2005-01-19  Richard Henderson  <rth@redhat.com>
34124         PR target/19518
34125         * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
34126         (alpha_preferred_reload_class): Handle CONST_VECTOR.
34127         (alpha_emit_set_const_1): Add no_output parameter; don't emit
34128         rtl if true.
34129         (alpha_emit_set_const): Likewise.  Make static.
34130         (alpha_emit_set_long_const): Make static.
34131         (alpha_extract_integer): Split out from alpha_expand_mov.
34132         (alpha_split_const_mov): Likewise.
34133         (alpha_expand_mov): Use them.  Handle CONST_VECTOR.
34134         (alpha_legitimate_constant_p): New.
34135         * config/alpha/alpha-protos.h: Update.
34136         * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
34137         (LEGITIMATE_CONSTANT_P): Re-implement with a function.
34138         * config/alpha/alpha.md (movsi): Add n alternative.
34139         (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
34140         (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
34141         (splitters for all of the above): Use alpha_split_const_mov.
34142         * config/alpha/predicates.md (non_add_const_operand): New.
34143         (non_zero_const_operand): New.
34144         (input_operand): Use alpha_legitimate_constant_p after reload.
34146 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
34148         PR tree-optimization/19038
34149         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
34150         (add_candidate): Add ivs with increment in latch only if
34151         allow_ip_end_pos_p is true.
34152         (determine_iv_cost): Use empty_block_p.
34154 2005-01-19  Daniel Berlin  <dberlin@dberlin.org>
34156         * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
34157         (compute_dominance_frontiers): Ditto.
34159 2005-01-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
34161         PR target/19529
34162         * config/sh/t-rtems: New.
34163         * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
34165 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
34167         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
34168         the offset of the selected field.
34170 2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
34172         * tree-cfg.c (remove_forwarder_block): Fix the check to
34173         prevent a nonlocal label from appearing in the middle of a
34174         basic block.
34176 2005-01-19  Hans-Peter Nilsson  <hp@axis.com>
34178         PR rtl-optimization/19462
34179         * reorg.c (find_end_label): Create return insn only if
34180         current_function_epilogue_delay_list is empty.
34182 2005-01-19  Paolo Bonzini  <bonzini@gnu.org>
34184         * doc/passes.texi: Remove paragraph mentioning new-ra.
34186 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
34188         PR rtl-optimization/15139
34189         * combine.c: Include params.h.
34190         (count_rtxs): New function.
34191         (record_value_for_reg): If replace_rtx would replace at least
34192         2 occurrences of REG in VALUE and TEM is really large, replace REG with
34193         (clobber (const_int 0)) instead of TEM.
34194         * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
34195         * params.h (MAX_LAST_VALUE_RTL): New.
34196         * Makefile.in (combine.o): Depend on $(PARAMS_H).
34197         * doc/invoke.texi (--param max-last-value-rtl=N): Document.
34199         PR c/17297
34200         * c-typeck.c (digest_init): Only call build_vector if all constructor
34201         elements are *_CST nodes.
34202         * gimplify.c (gimplify_init_constructor): Likewise.
34204         PR middle-end/19164
34205         * c-typeck.c (digest_init): Only call build_vector if inside_init
34206         is a CONSTRUCTOR.
34208 2005-01-18  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
34210         * toplev.c (init_asm_output): Remove dead #ifdef.
34212 2005-01-18  Kaz Kojima  <kkojima@gcc.gnu.org>
34214         * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
34216 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
34218         * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
34219         accessing DECL_FUNCTION_CODE.
34220         * dojump.c (do_jump): Likewise.
34221         * gimplify.c (gimplify_call_expr): Likewise.
34222         * predict.c (expr_expected_value): Likewise.
34223         (strip_builtin_expect): Likewise.
34224         * tree-inline.c (estimate_num_insns_1): Likewise.
34225         * tree-ssa-loop-im.c (stmt_cost): Likewise
34226         * fold-const.c (fold): Test for BUILT_IN_NORMAL.
34227         (tree_expr_nonnegative_p): Likewise.
34229 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
34231         * config/sparc/sparc.c (load_pic_register): Emit the appropriate
34232         variant of the load_pcrel_sym pattern.
34233         * config/sparc/sparc.md (P macro): Move to the top.
34234         (load_pcrel_sym): Macroize using P.
34235         (save_register_window): Likewise.
34237 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
34239         * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
34240         ("sordered"): Same.
34242 2005-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
34244         PR C/19472
34245         * c-typeck.c (build_asm_expr): Strip nops off
34246         input memory operands.
34248 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
34250         * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
34251         _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
34252         * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
34253         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
34255 2005-01-18  Joel Sherrill <joel.sherrill@oarcorp.com>
34257         PR target/19379
34258         * config/i386/i386.c (override_options): If the 80387 is disabled,
34259         then do not return FP values using FP registers.
34261 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
34263         * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
34264         c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
34265         combine.c, config.gcc, coverage.h, cse.c, cselib.c,
34266         defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
34267         flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
34268         gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
34269         output.h, postreload-gcse.c, postreload.c, recog.c,
34270         resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
34271         targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
34272         tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
34273         tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
34274         tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
34275         tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
34276         tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
34277         unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
34279         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
34280         config/alpha/alpha.c, config/arm/vfp.md,
34281         config/i386/emmintrin.h, config/i386/i386-modes.def,
34282         config/i386/i386-protos.h, config/i386/i386.h,
34283         config/i386/pmmintrin.h, config/i386/ppro.md,
34284         config/i386/predicates.md, config/i386/xmmintrin.h,
34285         config/i860/i860.c, config/ia64/ia64-modes.def,
34286         config/ia64/ia64-protos.h, config/ia64/ia64.h,
34287         config/ia64/ia64.md, config/ia64/itanium1.md,
34288         config/ia64/itanium2.md, config/ia64/predicates.md,
34289         config/iq2000/iq2000.h, config/mips/linux64.h,
34290         config/rs6000/aix41.h, config/rs6000/aix43.h,
34291         config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
34292         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
34293         config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
34294         config/sparc/linux64.h, config/sparc/litecoff.h,
34295         config/sparc/sp64-elf.h, config/sparc/sparc.c,
34296         config/sparc/sparc.h, config/sparc/sparc.md,
34297         config/sparc/sysv4-only.h: Update copyright.
34299 2005-01-18  Richard Henderson  <rth@redhat.com>
34301         PR target/19496
34302         * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
34304 2005-01-18  Marc Espie  <espie@openbsd.org>
34305         * config/i386/openbsdelf.h: Typo.
34307 2005-01-18  Richard Henderson  <rth@redhat.com>
34309         * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
34310         special case for sse.
34311         * config/i386/predicates.md (sse_comparison_operator): Likewise.
34313 2005-01-18  Dorit Naishlos  <dorit@il.ibm.com>
34315         * tree-inline.c (estimate_num_insns_1): Added cases for
34316         ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
34318 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
34320         PR rtl-optimization/19296
34321         * combine.c (simplify_comparison): Rewrite the condition under
34322         which a non-paradoxical SUBREG of a PLUS can be lifted when
34323         compared against a constant.
34325 2005-01-18  Andi Kleen <ak@muc.de>
34327         * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
34328         * c.opt (-Wpointer-sign): Add.
34329         * doc/invoke.texi: (-Wpointer-sign): Add.
34331 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
34333         * config/i386/i386.c (override_options): Revert 2004-11-24 change.
34334         * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
34335         *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
34336         logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
34337         exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
34338         nearbyintsf2): Disable for TARGET_SSE_MATH.  Leave patterns enabled
34339         for TARGET_MIX_SSE_I387.
34340         (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
34341         sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
34342         atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
34343         log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
34344         floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
34345         (TARGET_SSE2 && TARGET_SSE_MATH).  Leave patterns enabled for
34346         TARGET_MIX_SSE_I387.
34347         (atan2sf3, atan2df3, atan2xf3): Remove register constraints
34348         from expander.
34350 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
34352         PR target/19424
34353         * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
34354         Add movaps alternative for xmm reg->reg move.
34356 2005-01-17  Jeff Law  <law@redhat.com>
34358         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
34359         at the end of the main DOM loop rather than just before DOM exits.
34361 2005-01-17  Diego Novillo  <dnovillo@redhat.com>
34363         PR tree-optimization/19121
34364         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
34365         adding aliases to a name tag, also add them to the pointer's
34366         type tag.
34367         * tree-ssa-copy.c (merge_alias_info): Do not merge flow
34368         sensitive alias info at all.  Only check that the two pointers
34369         have compatible pointed-to sets.
34370         * tree-ssa.c (verify_name_tags): Verify that the alias set of
34371         a pointer's type tag is a superset of the alias set of the
34372         pointer's name tag.
34374 2005-01-17  James E Wilson  <wilson@specifixinc.com>
34376         PR target/19357
34377         * config/ia64/ia64.md (movxf): Handle general register source.  Adjust
34378         comment to document why.
34380 2005-01-17  Richard Henderson  <rth@redhat.com>
34382         * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
34383         sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
34384         sse2_vmsmaxv2df3_finite, sminv2df3_finite,
34385         sse2_vmsminv2df3_finite): New.
34386         (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
34387         sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
34388         Force op1 into register.
34390 2005-01-17  Kelley Cook  <kcook@gcc.gnu.org>
34392         * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
34393         bubblestrap from always rebuilding build directory.
34395 2005-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
34397         * config/s390/s390.md ("*clc"): Remove incorrect '='.
34398         ("*cmpmem_short"): Likewise.
34400 2005-01-17  Steven Bosscher  <stevenb@suse.de>
34402         * basic-block.h: Document BB_* flags.
34403         * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
34404         use an sbitmap instead.
34405         * sched-rgn.c (compute_trg_info): Likewise.
34407 2005-01-17  Richard Sandiford  <rsandifo@redhat.com>
34409         * config.gcc (mips64*-*-linux*): Set the default abi to n32.  Remove
34410         redundant target_cpu_default and extra_parts lines.  Use the default
34411         "from-abi" ISA.
34412         * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
34413         (SUBTARGET_EXTRA_SPECS): Delete.
34414         (DRIVER_SELF_SPECS): Remove architecture lines.  Set the ABI directly.
34415         (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
34416         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
34417         and "n32" for -mabi=n32.
34419 2005-01-17  Ian Lance Taylor  <ian@airs.com>
34421         PR c/5675
34422         * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
34423         fold constant variables into initial values.
34425 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
34427         * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
34429         * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
34430         through the statements backward.
34432 2005-01-17  Ian Lance Taylor  <ian@airs.com>
34434         PR middle-end/13127:
34435         * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
34436         a variable set to the return value of the inlined function.
34438 2005-01-17  Mark Dettinger  <dettinge@de.ibm.com>
34440         * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
34441         when modes are tieable.
34443 2005-01-17  Ranjit Mathew  <rmathew@hotmail.com>
34445         * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
34446         of pthread_create to find out if threads are enabled.
34447         * gthr-posix95.h (__gthread_active_p): Likewise.
34449 2005-01-17  Paolo Bonzini  <bonzini@gnu.org>
34451         * common.opt (-fnew-ra): Remove.
34452         * ra*.*: Remove.
34453         * toplev.h (flag_new_regalloc): Remove.
34454         * Makefile.in (ra*.*): Don't mention.
34455         * passes.c (rest_of_handle_new_regalloc): Remove.
34456         (rest_of_handle_combine, rest_of_compilation): Always consider
34457         flag_new_regalloc as false.
34458         * doc/invoke.texi: Don't document -fnew-ra.
34460 2005-01-17  Paolo Bonzini <bonzini@gnu.org>
34462         * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
34463         last parameter to reg_scan.
34464         * loop.c (loop_optimize): Likewise.
34465         * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
34466         rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
34467         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
34468         rest_of_handle_gcse, rest_of_handle_loop_optimize,
34469         rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
34470         * regclass.c (reg_scan): Likewise, for the declaration.
34471         * rtl.h (reg_scan): Likewise, for the prototype.
34473 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
34475         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
34476         mark_dfs_back_edges.
34478 2005-01-16  Daniel Berlin  <dberlin@dberlin.org>
34480         * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
34481         (compute_avail): Uses don't go in tmp_gen.
34483 2005-01-16  Steven Bosscher  <stevenb@suse.de>
34485         * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
34486         loop to look for a free slot in a page entry.
34488 2005-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34490         PR target/16304
34491         * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
34492         * toplev.c (compile_file): Call process_pending_assemble_output_defs
34493         just before targetm.asm_out.file_end.
34494         * tree.h (process_pending_assemble_output_defs): Declare.
34495         * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
34496         New functions.
34497         (assemble_alias): Defer generation of assembly code for defines when
34498         TARGET_DEFERRED_OUTPUT_DEFS is true.
34499         * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
34500         * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
34501         * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
34503 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34505         PR target/19336
34506         * pa.c (pa_scalar_mode_supported_p): New function.
34507         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
34508         * pa.h (MIN_UNITS_PER_WORD): Add comment.
34510         * pa-protos.h (prefetch_operand): Delete.
34511         (prefetch_cc_operand, prefetch_nocc_operand): New declations.
34512         * pa.c (prefetch_operand): Delete.
34513         (prefetch_cc_operand, prefetch_nocc_operand): New functions.
34514         * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
34515         (PREDICATE_CODES): Delete prefetch_operand.  Add prefetch_cc_operand
34516         and prefetch_nocc_operand.
34517         * pa.md (prefetch): Rework to avoid reload problems handling short
34518         displacements when a cache control completer needs to be provided.
34519         (prefetch_32, prefetch_64): Delete.
34520         (prefetch_cc, prefetch_nocc): New patterns.
34522 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
34524         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
34526 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34528         PR ada/19388
34529         * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
34530         exceeds maximum alignment for global common data.
34531         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
34532         * som.h (MAX_OFILE_ALIGNMENT): Likewise.
34534 2004-01-15  Roger Sayle  <roger@eyesopen.com>
34536         * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
34538 2004-01-15  Roger Sayle  <roger@eyesopen.com>
34540         * harg-reg-set.h (reg_class_names): Prototype global array.
34541         * regclass.c (reg_class_names): Declare here and initialize to
34542         REG_CLASS_NAMES.
34543         (dump_regclass): Remove local declaration of reg_class_names.
34544         (regclass): Likewise.
34545         * cfg.c (dump_flow_info): Likewise.
34546         * ra-debug.c (reg_class_names): Likewise.
34547         * regrename.c (reg_class_names): Likewise.
34548         * reload.c (reg_class_names): Likewise.
34549         * reload1.c (spill_failure): Likewise.
34550         * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
34552 2005-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
34554         * config/s390/s390.md ("reload_outti"): Remove predicate for
34555         output operand.  Abort if operand is not a MEM.
34556         ("reload_outdi", "reload_outdf"): Likewise.
34558 2005-01-15  Marc Espie  <espie@openbsd.org>
34560         * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
34561         (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
34562         * config/openbsd.h:  Fix C++ includes for native configurations.
34563         Add proper OS_CPP_BUILTINS.  Fix libspec for recent OpenBSD.
34564         Add trampoline support.
34565         * config/i386/openbsdelf.h: New.
34567 2005-01-15  Marc Espie  <espie@openbsd.org>
34569         * collect2.c (main): Explicitly parse -dynamic-linker option.
34571 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
34573         PR tree-optimization/19060
34574         * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
34575         Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
34576         (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
34577         and handle extract_range_from_cond returning false.
34578         * fold-const.c (fold): Optimize comparisons with min/max even for
34579         width > HOST_BITS_PER_WIDE_INT.
34581 2005-01-15  Ralf Corsepius  <ralf.corsepius@rtems.org>
34583         * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
34584         * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
34585         Remove little endian multilib variants.
34586         Add mips32 multilib variant.
34588 2005-01-15  Kazu Hirata  <kazu@cs.umass.edu>
34590         * explow.c (copy_all_reg, stabilize): Remove.
34591         * expr.h: Remove the corresponding prototypes.
34593         * rtlanal.c (regs_set_between_p): Remove.
34594         * rtl.h: Remove the corresponding prototype.
34596 2005-01-14  David Edelsohn  <edelsohn@gnu.org>
34598         * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
34599         to rs6000_nonimmediate_operand.
34600         * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
34601         rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
34602         * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
34603         rs6000_nonimmediate_operand.
34604         * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
34605         rs6000_nonimmediate_operand.
34607 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
34609         * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
34611 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
34613         * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
34614         on e500v2.
34615         (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
34616         (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
34618         * config/rs6000/rs6000.c (invalid_e500_subreg): New.
34619         (rs6k_nonimmediate_operand): New.
34620         (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
34621         correctly.
34622         (legitimate_lo_sum_address_p): Same.
34623         (rs6000_legitimize_address): Same.
34624         (rs6000_legitimize_reload_address): Same.
34625         (rs6000_legitimate_address): Same.
34626         (spe_build_register_parallel): Pass DF and DC modes in a DI
34627         register.
34629         * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
34630         to rs6k_nonimmediate_operand.
34632         * config/rs6000/spe.md ("*frob_df_di"): New.
34633         ("*frob_di_df"): New.
34634         ("*frob_di_df_2"): New.
34635         ("*mov_sidf_e500_subreg0"): New.
34636         ("*mov_sidf_e500_subreg4"): New.
34637         ("*movdf_e500_double"): Change predicate to
34638         rs6k_nonimmediate_operand.
34640 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
34642         * postreload.c (move2add_note_store): Only call
34643         trunc_int_for_mode on scalar integers.
34645 2005-01-14  Steven Bosscher  <stevenb@suse.de>
34647         * tree-ssa-dce.c (visited_control_parents): New sbitmap to
34648         replace BB_VISITED uses.
34649         (find_obviously_necessary_stmts): Don't clear BB_VISITED.
34650         (propagate_necessity): Check the bitmap instead of BB_VISITED.
34651         (tree_dce_done): Free visited_control_parents.
34652         (perform_tree_ssa_dce): Allocate and clear it.
34653         * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
34654         (compute_antic): Iterate from here using a DFS.  Use an sbitmap
34655         instead of BB_VISITED.
34657 2005-01-14  Kazu Hirata  <kazu@cs.umass.edu>
34659         * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
34660         rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
34661         Remove unused prototypes.
34663 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
34665         * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
34666         64-bit register usage.
34667         (spe_func_has_64bit_regs_p): Add FIXME note.
34669 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
34671         * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
34672         flag_finite_math_only with flag_unsafe_math_optimizations.
34674 2005-01-14  J. D. Johnston  <jjohnst@us.ibm.com>
34676         * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
34677         end-of-stack check.
34678         (__tpf_eh_return): Copy TPF private stack area from the module
34679         boundary stack frame.  Add check for when module addresses are
34680         equal, but no stub address is found.
34682 2005-01-14  Richard Earnshaw  <rearnsha@arm.com>
34684         PR target/7525
34685         * arm.h (struct machine_function): Add call_via field.
34686         (thumb_call_via_label): Declare.
34687         * arm.c (thumb_call_via_label): New variable.
34688         (thumb_call_reg_needed): New variable.
34689         (arm_output_function_epilogue): For Thumb code, output any per-function
34690         call-indirect trampolines.
34691         (thumb_call_via_reg): New function.
34692         (arm_file_end): New function.
34693         (TARGET_ASM_FILE_END): Call arm_file_end.
34694         (aof_file_end): Likewise.
34695         * arm-protos.h (thumb_call_via_reg): Declare.
34696         * arm.md (call_reg_thumb, call_value_reg_thumb): Call
34697         thumb_call_via_reg in normal case.
34699 2005-01-14  Jakub Jelinek  <jakub@redhat.com>
34701         PR middle-end/19084
34702         PR rtl-optimization/19348
34703         * recog.c (peephole2_optimize): Do global life update if some peephole
34704         decides it doesn't need at least one of its inputs and that change
34705         influences liveness at the start of the basic block.
34707         * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
34708         arguments instead of 1.
34710 2005-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
34712         PR middle-end/18820
34713         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
34714         zero for nested functions needing a static chain or functions
34715         with a non-constant address.
34717 2005-01-13  Roger Sayle  <roger@eyesopen.com>
34719         * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
34720         (and (sign_extend X) C) into (zero_extend (and X C)).
34722 2005-01-13  David O'Brien  <obrien@FreeBSD.org>
34724         * config/freebsd-spec.h:  Make KSE pthread lib logic the default.
34726 2005-01-13  Richard Henderson  <rth@redhat.com>
34728         PR target/19009
34729         PR target/19250
34730         PR target/19252
34731         * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
34732         bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
34733         not just TARGET_SSE.
34734         (cmpfp_i_387): Rename from cmpfp_i.  Move after sse patterns.
34735         (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
34736         (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
34737         (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
34738         (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
34739         (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
34740         (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
34741         fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
34742         (movdicc_c_rex64): Rename with '*'.
34743         (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
34744         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
34745         (movsfcc_1_387): Rename from movsfcc_1.
34746         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
34747         (movdfcc_1, movdfcc_1_rex64): Add check for 387.
34748         (sminsf3, smaxsf3, smindf3, smaxdf3): New.
34749         (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
34750         mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
34751         maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
34752         sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
34753         sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
34754         sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
34755         sse_movdfcc_const0_4): Remove.
34756         * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
34757         recognize min/max early.  Update for changed sse cmove patterns.
34758         (ix86_split_sse_movcc): New.
34759         * config/i386/i386-protos.h: Update.
34761 2005-01-13  Steven Bosscher  <stevenb@suse.de>
34763         * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
34764         (fix_stmt_v_may_defs): Likewise.
34766 2005-01-13  Richard Henderson  <rth@redhat.com>
34768         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
34769         for converting the mask.
34771 2005-01-13  David Edelsohn  <edelsohn@gnu.org>
34773         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
34774         definition to 600.
34776 2005-01-13  Richard Henderson  <rth@redhat.com>
34778         * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
34779         IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
34780         IX86_BUILTIN_MOVDQ2Q): Remove.
34781         (IX86_BUILTIN_VEC_EXT_V4SI): New.
34782         (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
34783         (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
34784         shuffling.
34785         * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
34786         (sse2_pextrw): Fix immediate constraint.
34787         (sse2_loadq, sse2_loadq_rex64): Remove.
34788         * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
34789         Use __builtin_ia32_vec_ext_<size>.
34790         (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
34792 2005-01-13  Aldy Hernandez  <aldyh@redhat.com>
34794         * function.c (assign_parm_setup_block): Look inside original
34795         entry_parm when inspecting PARALLEL.
34797 2005-01-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
34798             Joel Sherrill  <joel@oarcorp.com>
34800         PR target/19399
34801         * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
34802         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
34803         rtems_gxx_recursive_mutex_init.
34804         (__gthread_recursive_mutex_lock): New function.
34805         (__gthread_recursive_mutex_trylock): Likewise.
34806         (__gthread_recursive_mutex_unlock): Likewise.
34808 2005-01-13  Ralf Corsepius <ralf.corsepius@rtems.org>
34810         * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
34812 2005-01-13  Jan Beulich  <jbeulich@novell.com>
34814         * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
34815         (ashrti3_internal): Indicate output is early clobber. Generate result
34816         into output rather than first input. Use move for low word of output
34817         if shift count is exactly 64.
34818         (lshrti3_internal): Likewise.
34820 2005-01-13  Hans-Peter Nilsson  <hp@bitrange.com>
34822         PR target/18329
34823         PR target/18330
34824         * reload1.c (delete_output_reload): Don't delete an output reload
34825         if the pseudo lives longer than a single basic block.  Adjust and
34826         improve wording of comment.
34828 2005-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
34830         PR target/19334
34831         * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
34832         of TYPE_SIZE where we mean the number of bytes.
34834 2005-01-12  Aldy Hernandez  <aldyh@redhat.com>
34836         * function.c (assign_parm_setup_block): Relax condition on
34837         multi-register optimization.
34839 2005-01-12  Nick Clifton  <nickc@redhat.com>
34841         * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
34842         an "in_delay_slot" attribute of "no" to prevent them being used in
34843         delay slots.  This is forbidden because they might generate
34844         exceptions.
34846 2005-01-12  Alan Modra  <amodra@bigpond.net.au>
34848         PR target/19389
34849         * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
34850         with r->Y and Y->r.
34852 2005-01-12  Nick Clifton  <nickc@redhat.com>
34854         * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
34855         passed on to GAS) but do not define, as GAS no longer supports or
34856         needs the -m2000 option.
34858 2005-01-11  Roger Sayle  <roger@eyesopen.com>
34860         * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
34861         type as args of unprototyped builtins aren't automatically promoted.
34862         (fold_builtin_abs): Likewise.
34864 2005-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
34866         * Makefile.in: Set a `build-warn' variable.
34868 2005-01-11  Zdenek Dvorak  <dvorakz@suse.cz>
34870         PR tree-optimization/17949
34871         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
34872         (find_interesting_uses_address): Use it.
34874 2005-01-11  Aldy Hernandez  <aldyh@redhat.com>
34876         * regrename.c (kill_value): Handle subreg's that won't simplify.
34878 2005-01-11  Richard Henderson  <rth@redhat.com>
34880         PR target/13366
34881         * config/i386/i386.h (enum ix86_builtins): Move ...
34882         * config/i386/i386.c: ... here.
34883         (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
34884         IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
34885         IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
34886         IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
34887         IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD,  IX86_BUILTIN_STOREHPD,
34888         IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
34889         IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
34890         IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
34891         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
34892         IX86_BUILTIN_LOADDDUP): Remove.
34893         (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
34894         IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
34895         IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
34896         IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
34897         IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
34898         (ix86_init_builtins): Make static.
34899         (ix86_init_mmx_sse_builtins): Update for changed builtins.
34900         (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
34901         if all the modes match.  Otherwise, fake it.
34902         (get_element_number, ix86_expand_vec_init_builtin,
34903         ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
34904         (ix86_expand_builtin): Make static.  Update for changed builtins.
34905         (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
34906         operand instead of sse2_loadsd.  Cast sse1 fallback to V4SFmode.
34907         (ix86_expand_vector_init_duplicate): New.
34908         (ix86_expand_vector_init_low_nonzero): New.
34909         (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
34910         Split out from ix86_expand_vector_init; handle integer modes.
34911         (ix86_expand_vector_init): Use them.
34912         (ix86_expand_vector_set, ix86_expand_vector_extract): New.
34913         * config/i386/i386-protos.h: Update.
34914         * config/i386/predicates.md (reg_or_0_operand): New.
34915         * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
34916         (movv2sf_internal): Likewise.  And a splitter to match them all.
34917         (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
34918         vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
34919         vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
34920         vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
34921         (mmx_pinsrw): Fix operand ordering.
34922         * config/i386/sse.md (movv4sf splitter): Use direct pattern,
34923         rather than sse_loadss expander.
34924         (movv2df splitter): Similarly.
34925         (sse_loadss, sse_loadlss): Remove.
34926         (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
34927         (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
34928         (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
34929         (sse3_movddup): Rename with '*'.
34930         (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
34931         (sse2_loadsd): Remove.
34932         (vec_dupv2df_sse3): Rename from sse3_loadddup.
34933         (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
34934         (sse2_pinsrw): Fix argument ordering.
34935         (sse2_loadld, sse2_loadq): Add sse1 alternatives.
34936         (sse2_stored): Remove 'r' destination.
34937         (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
34938         vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
34939         vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
34940         vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
34941         vec_extractv16qi, vec_initv16qi): New.
34943         * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
34944         (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x,
34945         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
34946         constructor form.
34947         (_mm_load_pd, _mm_store_pd): Use plain dereference.
34948         (_mm_load_si128, _mm_store_si128): Likewise.
34949         (_mm_load1_pd): Use _mm_set1_pd.
34950         (_mm_load_sd): Use _mm_set_sd.
34951         (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
34952         (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
34953         (_mm_set_epi64): Use _mm_set_epi64x.
34954         (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
34955         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
34956         _mm_setr_epi8): Use _mm_set_foo form.
34957         (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
34958         (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
34959         (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
34960         (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
34961         * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
34962         (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
34963         (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
34964         (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
34965         (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
34966         * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
34967         (_mm_movedup_pd): Use _mm_shuffle_pd.
34968         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
34969         _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
34970         (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
34971         _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
34972         Use _mm_setzero_ps.
34973         (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
34974         (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
34975         (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
34976         (_mm_store_ps): Use raw dereference.
34977         (_mm_store1_ps): Use _mm_storeu_ps.
34978         (_mm_storer_ps): Use _mm_store_ps.
34979         (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
34980         (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
34982 2005-01-11  Stan Shebs  <shebs@apple.com>
34984         * config/rs6000/rs6000.c (machopic_output_stub): Issue
34985         ldu instead of lwzu if 64-bit -mdynamic-no-pic.
34987 2005-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
34989         PR target/18761
34990         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
34991         Skip all DECLs except for FIELD_DECLs.
34993 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
34995         * config/s390/s390.c (override_options): Return error if
34996         -mbackchain, -mpacked-stack and -mhard-float are used together.
34997         (s390_va_start): Remove the backchain && packed-stack special case.
34998         (s390_gimplify_va_arg): Likewise.
34999         * doc/invoke.texi: Remove the ABI incompatibility note.
35001 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
35003         * config/s390/s390.c (struct s390_frame_layout): Remove
35004         save_backchain_p.
35005         (s390_frame_info, s390_emit_prologue): Replace occurrences of
35006         save_backchain_p with TARGET_BACKCHAIN.
35008 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
35010         PR target/18916
35011         * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
35012         * expr.h (struct locate_and_pad_arg_data): Add "boundary".
35013         * function.c (locate_and_pad_parm): Set new field.
35014         (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
35015         Tweak where_pad test to include "none".  Always set mem align for
35016         stack_parm.
35017         (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
35018         not sufficient for type.
35019         (assign_parm_setup_block): If stack_parm is zero on entry, always
35020         make a new stack local.  Block move old stack parm if necessary
35021         to new aligned stack local.
35022         (assign_parm_setup_stack): Use a block move to handle
35023         potentially misaligned entry_parm.
35024         (assign_parms_unsplit_complex): Specify required alignment when
35025         creating stack local.
35026         * calls.c (compute_argument_addresses): Override alignment of stack
35027         arg calculated from its type with the alignment given by
35028         FUNCTION_ARG_BOUNDARY.
35029         (store_one_arg): Likewise.
35031 2005-01-11  Jan Beulich  <jbeulich@novell.com>
35033         * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
35034         Change respective itanium_class attribute to ialu.
35035         (shladdp4_internal): New.
35036         * config/ia64/predicates.md (shladd_log2_operand): New.
35038 2005-01-11  Richard Henderson  <rth@redhat.com>
35040         * expr.c (store_constructor): Use rtvec_alloc instead of
35041         alloca+gen_rtvec_v, and an incorrect number passed to alloca.
35043 2005-01-11  Kazu Hirata  <kazu@cs.umass.edu>
35045         * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
35047 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
35049         * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
35050         * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
35051         (TARGET_RWRELOC): Define.
35052         (ia64_rwreloc_section_type_flags): Delete.
35053         (ia64_section_type_flags): New function.
35054         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
35055         (TARGET_RWRELOC): Define.
35057 2005-01-10  David Mosberger  <davidm@hpl.hp.com>
35059         PR target/18987
35060         * config/ia64/ia64.c (process_set): For alloc insn, only call
35061         process_epilogue is !frame_pointer_needed.
35063 2005-01-10  Roger Sayle  <roger@eyesopen.com>
35065         PR c++/19355
35066         * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
35067         unary operator and can't be treated as a binary/comparison operator.
35069 2005-01-10  Richard Henderson  <rth@redhat.com>
35071         * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
35072         (ix86_return_in_memory): Likewise.
35073         (function_arg_advance):  Likewise.  Mirror structure in function_arg
35074         for choosing register to advance.
35076 2005-01-10  Kazu Hirata  <kazu@cs.umass.edu>
35078         * tree-vectorizer.c, tree.def: Fix comment typos.
35080 2005-01-10  Mark Dettinger  <dettinge@de.ibm.com>
35082         * config/s390/s390.c (struct processor_costs): 4 new fields:
35083         ddbr, ddr, debr, der.
35084         (s390_rtx_costs): More precise handling of divide instructions.
35086 2005-01-10  David Edelsohn  <edelsohn@gnu.org>
35088         * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
35090 2005-01-10  Jan Beulich  <jbeulich@novell.com>
35092         * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
35093         names resulting from -ffunction-sections/-fdata-sections and linkonce
35094         ones.
35095         * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
35096         based on the section name. Rearrange the section name comparison logic
35097         slightly so that each section name is compared against at most once.
35099 2005-01-10  Ben Elliston  <bje@au.ibm.com>
35101         * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
35102         targets for which -fPIC reduces limitations on the GOT size.
35104 2005-01-09  Falk Hueffner  <falk@debian.org>
35106         * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
35107         X/C1 cmpop C2.
35109 2005-01-09  David Edelsohn  <edelsohn@gnu.org>
35111         PR target/18720
35112         * collect2.c (main): Set aixrtl_flag for -brtl option.
35113         (resolve_lib_name): Search for .so file extension before .a
35114         if aixrtl_flag set.
35116 2005-01-09  Dorit Naishlos  <dorit@il.ibm.com>
35118         * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
35119         (vect_analyze_data_refs_alignment): Add dump prints.
35121 2005-01-09  Ira Rosen  <irar@il.ibm.com>
35123         * tree-vectorizer.c (vect_analyze_offset_expr): Use
35124         expr_invariant_in_loop_p.
35125         Initialize outputs first thing in the function.
35126         (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
35127         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
35128         (vect_analyze_pointer_ref_access): Check that the initial condition of
35129         the access function is loop invariant.
35131 2005-01-09  Richard Henderson  <rth@redhat.com>
35133         * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
35134         (ix86_expand_builtin): Likewise.  Frob MASKMOVQ wrt the input mem
35135         just like MASKMOVDQU.  Return plain zero for MMX_ZERO.
35136         * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
35137         mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
35138         movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
35139         movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
35140         sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
35141         ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
35142         mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
35143         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
35144         sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
35145         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
35146         mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
35147         gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
35148         ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
35149         mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
35150         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
35151         mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
35152         eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
35153         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
35154         pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
35155         pswapdv2sf2): Move to mmx.md; rename as necessary with leading
35156         mmx_ prefix.
35157         (mmx_clrdi, pavgusb): Remove.
35158         (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
35159         with leading sse_ prefix.
35160         * config/i386/sse.md: Receive them.
35161         * config/i386/mmx.md: New file.
35162         (MMXMODE12, MMXMODE24, mmxvecsize): New.
35163         (subrv2sf3): Turn into expander for normal subtraction.
35164         (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
35165         mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
35166         mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
35167         mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
35168         commutative; use ix86_binary_operator_ok.
35169         (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
35170         mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
35171         mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
35172         mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
35173         mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
35174         Macroize from existing patterns; use ix86_binary_operator_ok.
35175         (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
35176         (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
35177         mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise.  Model
35178         with vec_select+vec_concat.
35179         (mmx_pshufw, mmx_pshufw_1): Likewise.
35180         (mmx_uavgv8qi3): Merge pavgusb.  Model correcty.
35181         (mmx_uavgv4hi3): Model correctly.
35182         * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
35183         _mm_xor_si64): Remove casts.
35185 2005-01-09  Zdenek Dvorak  <dvorakz@suse.cz>
35187         PR tree-optimization/19224
35188         * tree-scalar-evolution.c (get_instantiated_value,
35189         set_instantiated_value): New functions.
35190         (instantiate_parameters_1): Cache the results.
35191         (instantiate_parameters, resolve_mixers): Initialize and free
35192         the cache.
35194 2005-01-08  David Edelsohn  <edelsohn@gnu.org>
35196         * config/i386/i386.md (addhi_4): Correct reference in comment.
35197         (addqi_4): Same.
35199 2005-01-08  Richard Henderson  <rth@redhat.com>
35201         * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
35202         (_mm_cvtsi128_si64x): Likewise.
35203         (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
35204         _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
35205         the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
35206         * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
35207         * config/i386/i386-protos.h: Update.
35208         * config/i386/i386.c (print_operand): Add 'H'.
35209         (ix86_fixup_binary_operands): Split out from ...
35210         (ix86_expand_binary_operator): ... here.
35211         (ix86_fixup_binary_operands_no_copy): New.
35212         (ix86_expand_fp_absneg_operator): Handle vector mode results.
35213         (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
35214         (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
35215         (safe_vector_operand): Use CONST0_RTX.
35216         (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
35217         (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
35218         CODE_FOR_sse2_maskmovdqu.  Special case SSE version of MASKMOVDQU
35219         expansion.  Update names for sse{,2,3}_ prefixes.  Remove *maskncmp*
35220         special cases.
35221         * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
35222         (IX86_BUILTIN_CMPNGESS): New.
35223         * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
35224         (attr type): Add sselog1.
35225         (attr unit, attr memory): Handle it.
35226         (movti, movti_internal, movti_rex64): Move near other integer moves.
35227         (movtf, movtf_internal): Move near other fp moves.
35228         (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
35229         vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
35230         movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
35231         movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
35232         sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
35233         sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
35234         sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
35235         mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
35236         rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
35237         sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
35238         sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
35239         sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
35240         vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
35241         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
35242         cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
35243         cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
35244         vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
35245         vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
35246         sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
35247         sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
35248         cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
35249         cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
35250         cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
35251         cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
35252         ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
35253         subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
35254         smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
35255         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
35256         sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
35257         sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
35258         gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
35259         ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
35260         ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
35261         sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
35262         sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
35263         sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
35264         sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
35265         sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
35266         sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
35267         sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
35268         mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
35269         addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
35270         movsldup, lddqu, loadddup, movddup): Move to sse.md.  Any with
35271         non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
35272         same time.
35273         (SSEPUSH, push<SSEPUSH>): Remove.
35274         (MMXPUSH, push<MMXPUSH>): Remove.
35275         (sse_movaps, sse_movaps_1, sse_movups): Remove.
35276         (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
35277         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
35278         (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
35279         (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
35280         (maskncmpv2df3, vmmaskncmpv2df3): Remove.
35281         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
35282         (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
35283         * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
35284         (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
35285         * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
35286         (ppro_sse_log_V4SF_load): Similarly.  Handle sselog1.
35287         (ppro_sse_log_V4SF): Handle sselog1.
35288         * config/i386/predicates.md (const_0_to_1_operand): New.
35289         (const_0_to_255_mul_8_operand): New.
35290         (const_1_to_31_operand): Rename from const_int_1_31_operand.
35291         (const_2_to_3_operand, const_4_to_7_operand): New.
35292         * config/i386/sse.md: New file.
35293         (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
35294         (sse_movups): Rename from sse_movups_1.
35295         (sse_loadlss): Rename from sse_loadss_1.
35296         (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
35297         from the name.
35298         (negv4sf2): Use ix86_expand_fp_absneg_operator.
35299         (absv4sf2, negv2df, absv2df): New.
35300         (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
35301         (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
35302         iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
35303         smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
35304         umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
35305         (sse3_addsubv4sf3): Model correctly.
35306         sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
35307         sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
35308         (sse_movhlps): Model with vec_select+vec_concat.
35309         (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
35310         sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
35311         sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
35312         sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
35313         sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
35314         sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
35315         sse2_pshufhw_1): Likewise.
35316         (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
35317         (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
35318         sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
35319         ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
35320         sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
35321         ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
35322         (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
35323         sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
35324         mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
35325         sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
35326         sminv8hi3): Mark commutative
35327         operands.  Use ix86_binary_operator_ok.
35328         (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
35329         sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
35330         sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
35331         sse2_punpcklqdq): Allow operand2 in memory.
35332         (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
35333         sse2_movsd): Add memory alternatives.
35334         (sse_storelps): Turn expander into an insn; split after reload.
35335         (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
35336         (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
35338 2005-01-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
35340         * configure.ac (DWARF-2 debug_line): Use objdump.
35341         * configure: Regenerate.
35343 2005-01-08  Jeff Law  <law@redhat.com>
35344             Diego Novillo  <dnovillo@redhat.com>
35346         PR tree-optimization/18241
35347         * tree-nrv.c (tree_nrv): Ignore volatile return values.
35348         * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
35349         statements with volatile operands.
35350         * tree-ssa-operands.c (add_stmt_operand): Do add volatile
35351         operands after marking a statement with has_volatile_ops.
35353 2005-01-08  Roger Sayle  <roger@eyesopen.com>
35355         * tree.c (int_fits_type_p): Always honor integer constant
35356         TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
35358 2005-01-08  Roger Sayle  <roger@eyesopen.com>
35360         * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
35361         the latent bug in rtl_delete_block has been resolved.
35363 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
35365         * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
35366         (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
35368 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
35370         * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
35371         library as @multilib_dir@/$(SHLIB_SONAME).
35373 2005-01-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
35375         * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
35376         * configure: Regenerate.
35378 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
35380         * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
35381         TYPE_MODE.
35383 2005-01-07  David Edelsohn  <edelsohn@gnu.org>
35385         PR target/13674
35386         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
35387         Convert non-word aligned offset address using ld/std into
35388         indirect address.
35390 2005-01-07  Richard Henderson  <rth@redhat.com>
35392         * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
35394 2005-01-07  Richard SAndiford  <rsandifo@redhat.com>
35396         * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
35398 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
35400         PR tree-optimization/19283
35401         * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
35402         is not shorter than the original type.
35404         PR rtl-optimization/19012
35405         * config/i386/i386.md (addqi_1_slp): Set memory attribute.
35407         PR rtl-optimization/18861
35408         * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
35409         (FULL_STATE): Define.
35410         (mark_tablejump_edge): New function.
35411         (purge_dead_tablejump_edges): New function.
35412         (find_bb_boundaries): Use it.
35414         PR tree-optimization/18828
35415         * builtins.c (expand_builtin_next_arg): Remove argument and all
35416         the argument checking.
35417         (expand_builtin): Adjust caller.
35418         (expand_builtin_va_start): Likewise.  Remove error for too many
35419         arguments.
35420         (fold_builtin_next_arg): Issue error for too many arguments.
35421         After checking arguments, replace them with magic arguments that
35422         prevent further checking of the args.
35424 2005-01-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35426         * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
35428 2005-01-06  Roger Sayle  <roger@eyesopen.com>
35430         PR target/6077
35431         * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
35432         and %{.S:...} (and their negative variants) to test whether the
35433         input file is assembler or pre-processed-assembler independent of
35434         the actual filename extension.
35436 2005-01-06  Roger Sayle  <roger@eyesopen.com>
35438         * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
35439         of sign or zero extended values.
35441 2005-01-06  Geoffrey Keating  <geoffk@apple.com>
35443         * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
35444         for IBM long double format correctly.
35446 2005-01-06  Daniel Berlin <dberlin@dberlin.org>
35448         Fix PR tree-optimization/18792
35450         * tree-data-ref.c (build_classic_dist_vector): Change first_loop
35451         to first_loop_depth, and use loop depth instead of loop number.
35452         (build_classic_dir_vector): Ditto.
35453         (compute_data_dependences_for_loop): Use depth, not loop number.
35454         * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
35455         number. Pass in loops, instead of loop numbers.
35456         (gather_interchange_stats): Ditto.
35457         (linear_transform_loops): Ditto.
35459 2005-01-06  Richard Sandiford  <rsandifo@redhat.com>
35461         PR rtl-opt/13299
35462         * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
35463         biv_fits_mode_p, extension_within_bounds_p): New functions.
35464         (check_ext_dependent_givs): Use them.
35466 2005-01-06  Roger Sayle  <roger@eyesopen.com>
35468         * cfgrtl.c (rtl_delete_block): A basic block may be followed by
35469         more than one barrier, in which case we should delete them all.
35471 2005-01-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
35473         * gcc.c (process_command): Change year in 'gcc --version' to 2005.
35475 2005-01-05  Daniel Berlin  <dberlin@dberlin.org>
35477         Fix PR middle-end/19286
35478         Fix PR debug/19267
35479         * dwarf2out.c (gen_subprogram_die): If we've already tried to
35480         output this subprogram, simply ignore this attempt to do it again.
35481         (add_abstract_origin_attribute): Don't abort trying to add the abstract
35482         origin attribute if it's not possible.
35483         (gen_block_die): Don't ignore subblocks of "unused" blocks.
35484         (decls_for_scope): Ditto.
35485         * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
35486         (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
35488 2005-01-05  Richard Henderson  <rth@redhat.com>
35490         PR target/11327
35491         * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
35492         (bdesc_2arg): Use it.
35493         (ix86_expand_binop_builtin): Force operands into registers
35494         when optimizing.
35495         (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
35496         ix86_expand_sse_compare, ix86_expand_sse_comi,
35497         ix86_expand_builtin): Likewise.
35499 2005-01-05  Richard Henderson  <rth@redhat.com>
35501         * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
35502         and VEC_SELECT.
35503         * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
35504         (mulv4hi3): Set itanium_class mmmul.
35505         (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
35506         (fpack): Rename from fpack_sfsf.
35508 2005-01-05  Richard Henderson  <rth@redhat.com>
35510         PR rtl-opt/10692
35511         * reload1.c (do_input_reload): Restrict the optimization deleteing
35512         a previous output reload to RELOAD_FOR_INPUT.
35514 2005-01-05  Steven Bosscher  <stevenb@suse.de>
35516         * combine.c (expand_compound_operation)  <ZERO_EXTRACT>: Add
35517         comment that we fall through after case.
35518         (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
35519         (distribute_links): Likewise.
35520         * cse.c (cse_insn): Likewise.
35521         * cselib.c (cselib_invalidate_mem): Likewise.
35522         * df.c: Update comments at the top of the file.
35523         (read_modify_subreg_p): Update comments here too.
35524         (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
35525         * flow.c (mark_set_1): Likewise.
35526         (mark_used_regs): Likewise.
35527         * gcse.c (mems_conflict_for_gcse_p): Likewise.
35528         (canon_list_insert): Likewise.
35529         (mark_set): Likewise.
35530         (try_replace_reg): Likewise.
35531         (store_killed_in_insn): Likewise.
35532         * loop.c (count_one_set): Likewise.
35533         (basic_induction_var): Likewise.
35534         * postreload-gcse.c (find_mem_conflicts): Likewise.
35535         * postreload.c (reload_combine_note_store): Likewise.
35536         (move2add_note_store): Likewise.
35537         * reload.c (find_equiv_reg): Likewise.
35538         (mark_referenced_resources): Likewise.
35539         * rtlanal.c (set_noop_p): Likewise.
35540         (note_stores): Likewise.
35541         (note_uses): Likewise.
35542         * sched-deps.c (sched_analyze_1): Likewise.
35543         * sched-rgn.c (check_live_1): Likewise.
35544         (update_live_1): Likewise.
35545         * config/i860/i860.c: Likewise.
35547         * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
35548         an lvalue.
35549         (ZERO_EXTRACT): Mention that this one can be an lvalue.
35551         * doc/rtl.texi: Update documentation for bit-fields and SET.
35553 2005-01-05  Roger Sayle  <roger@eyesopen.com>
35555         * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
35557 2005-01-05  Jan Hubicka  <jh@suse.cz>
35558             Richard Henderson  <rth@redhat.com>
35560         PR target/18910
35561         * config/i386/i386.c (ix86_expand_move): Handle tls symbols
35562         with an offset.
35564 2005-01-05  Richard Henderson  <rth@redhat.com>
35566         PR target/12902
35567         * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
35568         (sse_shufps): Change operand 3 to const_int_operand.
35569         (sse2_storelps): Fix typo in template.
35570         (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
35571         * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
35572         (ix86_expand_builtin): Likewise.
35574 2005-01-05  Julian Brown  <julian@codesourcery.com>
35576         * config/arm/arm.c (arm_return_in_memory): Treat complex types
35577         as aggregates for AAPCS ABIs.
35579 2005-01-05  Stan Shebs  <shebs@apple.com>
35581         * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
35582         Mach-O getters if ppc64.
35583         * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
35584         size argument.
35585         * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
35586         signed four-byte field for global code case.
35587         (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
35589 2005-01-05  Roger Sayle  <roger@eyesopen.com>
35591         PR middle-end/19100
35592         * c-common.c: Include real.h.
35593         (c_common_truthvalue_conversion): Avoid destructively modifying expr.
35594         Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
35595         Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
35596         * Makefile.in (c-common.o): Update dependencies.
35598 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
35600         * c-parse.in (asm_string): Add trailing semicolon.
35602 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
35604         * c-parse.in (asm_string): New.  Don't allow wide strings in
35605         'asm'.
35606         (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
35607         asm_string instead of STRING.
35609 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
35611         * c-typeck.c (constructor_no_implicit): Remove.
35612         (set_designator, process_init_element): Don't check
35613         constructor_no_implicit.
35615 2005-01-05  J"orn Rennecke <joern.rennecke@st.com>
35616             Kaz Kojima  <kkojima@gcc.gnu.org>
35618         PR target/16482
35619         * lcm.c (create_pre_exit): New.
35620         (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
35621         ENTRY_EXIT_EXTRA to 3.  Use create_pre_exit.
35623 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
35625         * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
35626         -msoft-float in target_float_switch.
35627         * arm.c (arm_override_options): Fix processing of target_float_switch.
35629 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
35631         * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
35632         preferencing.
35634 2004-01-05  Uros Bizjak  <uros@kss-loka.si>
35636         * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
35637         Replace i387 with 'i386 compiler' in -mfpmath=sse option.
35639 2005-01-04  Roger Sayle  <roger@eyesopen.com>
35641         * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
35642         if deleting the then-block allows the test-block to fallthru to the
35643         else-block.
35645 2005-01-04  Andrew Pinski  <pinskia@physics.uc.edu>
35647         PR c/19152
35648         * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
35649         after the full declaration if the are in two different TUs.
35651 2005-01-04  Richard Henderson  <rth@redhat.com>
35653         PR tree-opt/19158
35654         * tree-sra.c (generate_one_element_init): Just
35655         call gimplify_and_add.
35656         (generate_element_init): Record the
35657         new referenced variables and mark them for renaming
35658         and split out to ...
35659         (generate_element_init_1): This.
35660         (scalarize_init): Don't call push_gimplify_context/
35661         pop_gimplify_context.
35663 2005-01-04  Geoffrey Keating  <geoffk@apple.com>
35665         * toplev.c (get_src_pwd): Handle failure of getpwd().
35667 2005-01-04  Roger Sayle  <roger@eyesopen.com>
35669         * fold-const.c (fold_single_bit_test): Delete unreachable handling
35670         of TRUTH_NOT_EXPR.
35671         (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
35672         all the cases handled by it are inverted by invert_truthvalue.
35674 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
35676         * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
35677         (save_register_windowsi): Likewise.
35679 2005-01-04  Richard Henderson  <rth@redhat.com>
35681         * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
35683 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
35685         PR middle-end/17767
35686         * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
35687         any simplifications of vector mode comparison operators.
35688         * simplify-rtx.c (simplify_relational_operation): Fix variable name.
35690 2005-01-04  Paolo Bonzini  <bonzini@gnu.org>
35691             Devang Patel  <dpatel@apple.com>
35693         PR tree-optimization/18308
35694         * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
35695         the operands before creating a new expression.
35696         * dojump.c (do_jump): Make drop_through_label available
35697         for all cases.  Add expansion of COND_EXPR.
35699 2005-01-04  Ira Rosen  <irar@il.ibm.com>
35701         * tree-vectorizer.c (vect_analyze_offset_expr): Test for
35702         INTEGER_CST instead of TREE_CONSTANT.
35703         (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
35704         instead of TREE_CONSTANT.
35705         (vect_analyze_pointer_ref_access): Test for INTEGER_CST
35706         instead of TREE_CONSTANT.
35708 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
35710         * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
35712 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
35714         PR target/19240
35715         * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
35716         (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
35718 2005-01-03  Richard Henderson  <rth@redhat.com>
35720         * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
35721         (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
35722         fold_convert_const_real_from_real): Split out from ...
35723         (fold_convert_const): ... here.
35725 2005-01-03  Richard Henderson  <rth@redhat.com>
35727         PR target/19235
35728         * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
35729         (mov<MMXMODEI>_internal): Likewise.
35730         (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
35731         Add V2SF case; use it for SSE1; don't use TI.
35732         (movdf_integer): Likewise.
35733         (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
35735 2005-01-03  Ira Rosen  <irar@il.ibm.com>
35737         * tree-vectorizer.c (vect_strip_conversions): New function.
35738         (vect_analyze_offset_expr): Call vect_strip_conversions. Add
35739         check for binary class.
35741 2005-01-03  Daniel Berlin  <dberlin@dberlin.org>
35743         Fix PR debug/17924
35744         Fix PR debug/19191
35745         * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
35746         is a decl.
35747         * gimple-low.c (mark_blocks_with_used_vars): New function.
35748         (mark_blocks_with_used_subblocks): Ditto.
35749         (mark_used_blocks): Ditto.
35750         (pass_mark_used_blocks): New pass.
35751         * tree-inline.c: Include debug.h.
35752         (expand_call_inline): Call outlining_inline_function here.
35753         * tree-optimize.c (init_tree_optimization_passes): Add
35754         pass_mark_used_blocks.
35755         * tree-pass.h (pass_mark_used_blocks): New.
35756         * Makefile.in (tree-inline.o): Add debug.h dependency.
35758 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
35760         * config/darwin.c (darwin_handle_weak_import_attribute): Permit
35761         VAR_DECLs to have weak_import attribute.
35763         * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
35764         'struct ucontext'.
35766 2004-01-03  Steven Bosscher  <stevenb@suse.de>
35768         * passes.c (rest_of_compilation): Don't run regmove if only
35769         flag_expensive_optimizations, require flag_regmove instead.
35771 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
35773         * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
35774         register "sparc".
35775         * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
35776         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
35777         * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
35778         * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
35780 2005-01-03  Richard Henderson  <rth@redhat.com>
35782         * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
35783         (ia64_const_ok_for_letter_p): New.
35784         (ia64_const_double_ok_for_letter_p): New.
35785         (ia64_extra_constraint): New.
35786         (ia64_expand_vecint_compare): New.
35787         (ia64_expand_vcondu_v2si): New.
35788         (ia64_expand_vecint_cmov): New.
35789         (ia64_expand_vecint_minmax): New.
35790         (ia64_print_operand): Add 'v'.
35791         (ia64_preferred_reload_class): New.
35792         (ia64_vector_mode_supported_p): New.
35793         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
35794         (PREFERRED_RELOAD_CLASS): Move to function.
35795         (CONST_OK_FOR_LETTER_P): Move to function.
35796         (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
35797         (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
35798         (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
35799         (EXTRA_CONSTRAINT): Move to function.
35800         * config/ia64/ia64.md: Include vect.md.
35801         (itanium_class): Add mmalua.
35802         (type): Handle it.
35803         * config/ia64/itanium1.md (1_mmalua): New.  Add it to bypasses.
35804         (1b_mmalua): New.
35805         * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
35806         * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
35807         CONST0_RTX.
35808         (const_int_2bit_operand): New.
35809         (fr_reg_or_0_operand): New.
35810         * config/ia64/ia64-modes.def: Add vector modes.
35811         * config/ia64/ia64-protos.h: Update.
35812         * config/ia64/vect.md: New file.
35814 2005-01-03  Richard Henderson  <rth@redhat.com>
35816         * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
35818 2005-01-03  Uros Bizjak  <uros@kss-loka.si>
35820         PR target/19236
35821         * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
35822         to SFmode.
35823         (log1pdf2): Change mode of operands[0,1] to DFmode.
35825 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
35827         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
35828         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
35829         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
35830         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
35831         SPARC_RELAXED_ORDERING.
35833 2005-01-03  Richard Henderson  <rth@redhat.com>
35834             Uros Bizjak  <uros@kss-loka.si>
35836         PR target/14631
35837         * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
35838         IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
35839         * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
35840         handling.
35841         (*mmx_pinsrw, *sse2_pinsrw): New patterns.
35842         * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
35843         const_pow2_1_to_128_operand): New predicates.
35845 2005-01-02  Greg McGary  <greg@mcgary.org>
35847         * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
35848         anonymous decls.
35849         (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
35850         object.  [ptr_type]: Remove unused variable.
35851         Remember nearest addressable array-element or record-component
35852         when checking bitfield components.  Tolerate empty BIND_EXPR.
35854 2005-01-01  Richard Henderson  <rth@redhat.com>
35856         * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
35857         that don't narrow the value.  Fail for other conversions.
35859 2005-01-01  Richard Henderson  <rth@redhat.com>
35861         PR c/19031
35862         * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
35863         * c-lang.c (finish_file): Don't do it here.
35864         * objc/objc-act.c (objc_finish_file): Likewise.
35866         * cgraph.c (decl_assembler_name_equal): New.
35867         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
35868         (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
35869         * cgraph.h (struct cgraph_varpool_node): Add next.
35870         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
35871         * varasm.c (assemble_alias): Mark the target as needed.
35873 2005-01-01  Andrew Pinski  <pinskia@physics.uc.edu>
35875         PR middle-end/19221
35876         * function.c (get_arg_pointer_save_area): Use entry_of_function
35877         instead of get_insns.
35879 2005-01-01  Roger Sayle  <roger@eyesopen.com>
35880             Andrew Pinski  <pinskia@physics.uc.edu>
35881             James E. Wilson  <wilson@specifixinc.com>
35883         PR rtl-optimization/12092
35884         * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
35885         is zero.
35887 2005-01-01  Roger Sayle  <roger@eyesopen.com>
35888             Olivier Hainque  <hainque@act-europe.fr>
35890         * tree.c (int_fits_type_p): A narrower type always fits in a
35891         wider one, except for negative values into unsigned types.
35893 2005-01-01  Roger Sayle  <roger@eyesopen.com>
35895         * tree.c (int_fits_type_p): Compare the result of force_fit_type
35896         with the original constant rather than require TREE_OVERFLOW.
35898 2005-01-01  Steven Bosscher  <stevenb@suse.de>
35900         PR middle-end/17544
35901         * c-decl.c (finish_function): If compiling C99, annotate the
35902         compiler generated return with the current file name and line 0.
35903         * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
35904         the source line is greater than 0.
35905         (remove_bb): Likewise.