OSDN Git Service

changelog rotated for gcc
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog-2005
1 2005-12-31  Andrew Pinski  <pinskia@physics.uc.edu>
2
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.
6
7 2005-12-30  Kazu Hirata  <kazu@codesourcery.com>
8
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.
13
14 2005-12-29  Daniel Berlin  <dberlin@dberlin.org>
15
16         * tree.h (VALUE_HANDLE_VUSES): New.
17         (struct tree_value_handle): Add vuses.
18
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.
36
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.
105
106 2005-12-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
107
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.
112
113 2005-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
114
115         PR fortran/25586
116         * pa.md: Remove REG_POINTER check from REG+REG peephole2 floating-point
117         store patterns.
118
119 2005-12-29  Mike Stump  <mrs@apple.com>
120
121         * doc/invoke.texi (Objective-C and Objective-C++ Dialect Options
122         -fobjc-exceptions): Don't imply this doesn't work with the GNU
123         runtime.
124
125 2005-12-29  Nathan Sidwell  <nathan@codesourcery.com>
126
127         * varasm.c (get_section): Use gcc_assert.
128
129 2005-12-29  Paul Brook  <paul@codesourcery.com>
130
131         * config/m68k/m68k.h (RETURN_ADDR_RTX): Define.
132         * config/m68k/m68k.c (m68k_initial_elimination_offset): Remove FIXME.
133         Include offset due to FIRST_PARM_OFFSET.
134
135 2005-12-29  Paul Brook  <paul@codesourcery.com>
136
137         * config/m68k/lb1sf68.asm (__cmpdf2): Fix typo in immediate mask.
138         Create wrapper and rename body...
139         (__cmpdf2_internal): ... to this.  Return correct value for unordered
140         result.
141         (__cmpsf2): Create wrapper and rename body...
142         (__cmpsf2_internal): ... to this.  Return corerct value for unordered
143         result.
144         (__eqdf2, __nedf2, __gtdf2, __gedf2, __ltdf2, __ledf2): Use
145         __cmpdf2_internal.
146         (__eqsf2, __nesf2, __gtsf2, __gesf2, __ltsf2, __lesf2): Use
147         __cmpsf2_internal.
148
149 2005-12-29  Paul Brook  <paul@codesourcery.com>
150
151         * config/m68k/fpgnulib.c (__extendsfdf2): Handle negative zero.
152         (__truncdfsf2): Ditto.
153         (__extenddfxf2): Ditto.
154         (__truncxfdf2): Ditto.
155         * config/m68k/lb1sf68.asm (__addsf3): Return -0.0 for -0.0 + -0.0.
156         (__adddf3): Ditto.
157
158 2005-12-29  Daniel Jacobowitz  <dan@codesourcery.com>
159         Paul Brook  <paul@codesourcery.com>
160
161         * config/m68k/m68k.c (m68k_output_pic_call): Don't use bsr.l for
162         !TARGET_68020.
163         * config/m68k/t-m68kelf (EXTRA_PARTS): Remove.
164         (EXTRA_MULTILIB_PARTS): Set.
165         * config/m68k/t-uclinux (EXTRA_PARTS): Remove.
166         (EXTRA_MULTILIB_PARTS): Set.
167
168 2005-12-29  Alan Modra  <amodra@bigpond.net.au>
169
170         PR target/25572
171         * config/rs6000/rs6000.c (create_TOC_reference): Set regs_ever_live.
172
173 2005-12-28  Nathan Sidwell  <nathan@codesourcery.com>
174
175         * config.gcc (mt-*-*): Add --with-arch support.
176         (--with): Print accepted options on error.
177         * config/mt/mt.h (OPTION_DEFAULT_SPECS): Define.
178
179         * config/mt/mt.c (DEF_VEC_P(basic_block),
180         DEF_VEC_ALLOC_P(basic_bloc,heap)): Remove from here.
181
182 2005-12-28  Daniel Berlin  <dberlin@dberlin.org>
183
184         Fix PR tree-optimization/25394
185         * fold-const.c (fold_checksum_tree): Guard 
186         portions of checksumming with correct structure checks.
187
188 2005-12-27  Kazu Hirata  <kazu@codesourcery.com>
189
190         * global.c, tree-ssa-pre.c: Move DEF_VEC_P(basic_block) and
191         DEF_VEC_ALLOC_P(basic_block,{gc,heap}) to ...
192         * basic-block.h: ... here.
193
194 2005-12-27  Roger Sayle  <roger@eyesopen.com>
195
196         * fold-const.c (int_const_binop): Return NULL_TREE when an expression
197         can't be evaluated at compile-time (instead of calling abort).
198         Return NULL_TREE for division (and modulus) by zero.
199         (const_binop):  Return NULL_TREE for floating point operators that
200         aren't handled by real_arithmetic.
201         (fold_binary):  Eliminate "wins" variable, and "binary" label, by
202         folding operators with constant operands early.  Assert that
203         operands are non-NULL.
204
205 2005-12-27  Kazu Hirata  <kazu@codesourcery.com>
206
207         * tree-vrp.c (extract_range_from_binary_expr): Use
208         build_int_cst instead of fold_convert.
209
210 2005-12-26  Mark Mitchell  <mark@codesourcery.com>
211
212         PR c++/23171, c++/23172, c++/25417.
213         * c-decl.c (compound_literal_number): Remove.
214         (build_compound_literal): Use set_compound_literal_name.
215         * c-common.c (compound_literal_number): New variable.
216         (set_compound_literal_name): New function.
217         * c-common.h (set_compound_literal_name): Declare.
218         
219 2005-12-26  Kazu Hirata  <kazu@codesourcery.com>
220
221         PR tree-optimization/25125
222         * convert.c (convert_to_integer): Don't narrow the type of a
223         PLUX_EXPR or MINUS_EXPR if !flag_wrapv and the unwidened type
224         is signed.
225
226 2005-12-26  Graham Stott  <graham.stott@btinternet.com>
227
228         PR middle-end/25568
229         * combine.c (simplify_shift_const_1 <case PLUS>):Fix enable-checking
230         rtl bootstrap failure.
231
232 2005-12-25  Kazu Hirata  <kazu@codesourcery.com>
233
234         * final.c (compute_alignments): Make it static.
235         * gcse.c (gcse_main, bypass_jumps): Likewise.
236         * web.c (web_main): Likewise.
237         * output.h: Remove the prototype for compute_alignments.
238         * rtl.h: Remove the prototypes for web_main, gcse_main, and
239         bypass_jumps.
240
241 2005-12-24  Roger Sayle  <roger@eyesopen.com>
242
243         * expr.c (force_operand): Use expand_fix and expand_float to
244         implement integer <-> FP conversions instead of convert_to_mode.
245
246 2005-12-24  Mark Mitchell  <mark@codesourcery.com>
247
248         PR c++/23171
249         * varasm.c (initializer_constant_valid_p): An ADDR_EXPR of a
250         CONSTRUCTOR is invalid.
251
252 2005-12-23  Daniel Berlin  <dberlin@dberlin.org>
253
254         * tree-pass.h (pass_eliminate_useless_stores): Remove.
255         * tree-ssa-pre.c (is_copy_stmt): Ditto.
256         (follow_copies_till_vuse): Ditto.
257         (do_eustore): Ditto.
258         (gate_eustores): Ditto.
259         (pass_eliminate_useless_stores): Ditto.
260         * passes.c (init_optimization_passes): Ditto.
261
262 2005-12-23  Paolo Bonzini  <bonzini@gnu.org>
263
264         * combine.c (simplify_shift_const): Fix typo.  Use, whenever
265         applicable, simplify_const_binary_operation.
266
267         (simplify_shift_const): Leave only the fallback
268         case when no simplification is possible.  Extract to...
269         (simplify_shift_const_1): ... here.  Always create a new
270         RTX instead of substituting.  Remove the signed_count variable.
271         Return NULL_RTX if no substitution is possible.
272
273         (simplify_and_const_int): Leave only the fallback
274         case when no simplification is possible.  Extract to...
275         (simplify_and_const_int_1): ... here.  Always create a new
276         RTX instead of substituting.  Return NULL_RTX if no substitution
277         is possible.
278
279         (force_to_mode, simplify_comparison): Don't pass a non-NULL first
280         parameter to simplify_and_const_int and simplify_shift_const,
281         unless it is equal to the expected non-simplified result.
282
283 2005-12-23  Jakub Jelinek  <jakub@redhat.com>
284
285         PR target/25005
286         * regrename.c (replace_oldest_value_reg): Use validate_change with
287         IN_GROUP set to 1 instead of doing direct modifications.
288         (copyprop_hardreg_forward_1): Likewise.  If any replace_oldest_*
289         replacements have been performed on an instruction, use
290         apply_change_group ().
291
292 2005-12-23  Hans-Peter Nilsson  <hp@axis.com>
293
294         * config/cris/arit.c (do_31div): Clarify what "31" refers to.
295         [L_divsi3] (__Udiv): Don't use as inline function.
296         [L_modsi3] (__Umod): Ditto.
297         (__Div): Rearrange to call do_31div directly instead of __Udiv.
298         (__Mod): Similarly regarding __Umod.
299
300         PR target/24342
301         * config/cris/cris.c (cris_split_movdx): Add REG_INC notes for
302         emitted insns with post-increments.
303         (cris_expand_epilogue): Ditto.
304
305 2005-12-22  Jakub Jelinek  <jakub@redhat.com>
306             Richard Henderson  <rth@redhat.com>
307
308         Merge from gomp-branch.
309         * builtins.def: Move all DEF_SYNC_BUILTIN to ...
310         * sync-builtins.def: ... new file.
311         (BUILT_IN_FETCH_AND_ADD_16,
312         BUILT_IN_FETCH_AND_SUB_16, BUILT_IN_FETCH_AND_OR_16,
313         BUILT_IN_FETCH_AND_AND_16, BUILT_IN_FETCH_AND_XOR_16,
314         BUILT_IN_FETCH_AND_NAND_16, BUILT_IN_ADD_AND_FETCH_16,
315         BUILT_IN_SUB_AND_FETCH_16, BUILT_IN_OR_AND_FETCH_16,
316         BUILT_IN_AND_AND_FETCH_16, BUILT_IN_XOR_AND_FETCH_16,
317         BUILT_IN_NAND_AND_FETCH_16, BUILT_IN_BOOL_COMPARE_AND_SWAP_16,
318         BUILT_IN_VAL_COMPARE_AND_SWAP_16, BUILT_IN_LOCK_TEST_AND_SET_16,
319         BUILT_IN_LOCK_RELEASE_16): New builtins.
320         * builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
321         BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
322         * builtins.c (expand_builtin): Handle sync BUILT_IN_*_16 builtins.
323         * c-common.c (enum c_builtin_type): Move to top-level from
324         c_common_nodes_and_builtins enum builtin_type.
325         (builtin_types): Move from c_common_nodes_and_builtins.
326         (def_fn_type): New.
327         (c_common_nodes_and_builtins): Use it.
328         (def_builtin_1): Check for error_mark_node.
329         (sync_resolve_size): Handle also 128 bit sync builtins.
330         * Makefile.in (BUILTINS_DEF): New.  Use it instead of builtins.def.
331
332         * config/i386/i386.h (x86_cmpxchg8b, x86_cmpxchg16b): New decls.
333         (TARGET_CMPXCHG8B, TARGET_CMPXCHG16B): Define.
334         * config/i386/i386.c (x86_cmpxchg8b, x86_cmpxchg16b): New variables.
335         * config/i386/sync.md (CASMODE, DCASMODE): New mode macros.
336         (doublemodesuffix, DCASHMODE): New mode attrs.
337         (sync_compare_and_swap<mode>): Change into expand, use CASMODE
338         instead of IMODE, if mode is wider than a word, expand into
339         sync_double_compare_and_swap*.
340         (*sync_compare_and_swap<mode>): New insn.
341         (sync_double_compare_and_swap<mode>): Likewise.
342         (*sync_double_compare_and_swapdi_pic): Likewise.
343         (sync_compare_and_swap_cc<mode>): Use CASMODE instead of IMODE, if
344         mode is wider than a word, expand into
345         sync_double_compare_and_swap_cc*.
346         (sync_double_compare_and_swap_cc<mode>): New insn.
347         (*sync_double_compare_and_swap_ccdi_pic): Likewise.
348
349 2005-12-22  Richard Henderson  <rth@redhat.com>
350
351         * config/i386/mmintrin.h (_mm_add_si64): Only define for SSE2.
352         (_mm_sub_si64): Likewise.
353         * config/i386/xmmintrin.h (_mm_shuffle_pi16, _m_pshufw): Likewise.
354
355 2005-12-23  Alan Modra  <amodra@bigpond.net.au>
356
357         PR rtl-optimization/25432
358         * reload1.c (eliminate_regs_in_insn): Update insn code on
359         successfully re-recognizing modified insn.
360
361 2005-12-22  Richard Guenther  <rguenther@suse.de>
362
363         * tree.c (tree_fold_gcd): Use build_int_cst where appropriate.
364         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
365         * varasm.c (array_size_for_constructor): Likewise.
366         * fold-const.c (size_diffop, invert_truthvalue,
367         optimize_bit_field_compare, make_range, build_range_check,
368         fold_cond_expr_with_comparison, fold_truthop,
369         fold_single_bit_test_into_sign_test, fold_binary): Likewise.
370
371 2005-12-22  Dale Johannesen  <dalej@apple.com>
372
373         * config/i386/sse.md (sse_movhlps):  Reverse operands for
374         2nd and 3rd alternatives.
375
376 2005-12-22  Andrew Pinski <pinskia@physics.uc.edu>
377
378         PR tree-opt/25513
379         * tree-dfa.c (make_rename_temp): Set DECL_COMPLEX_GIMPLE_REG_P complex
380         variables.
381
382 2005-12-22  Zdenek Dvorak <dvorakz@suse.cz>
383             Steven Bosscher <stevenb@suse.de>
384
385         * df.c (df_bitmaps_free): Only work for bbs for that structures are
386         allocated.
387         (df_bb_modify): Realloc tables to the new index.
388         (df_find_use): New function.
389         (df_find_def, df_reg_used): Handle subregs.
390         * df.h (df_find_use): Declare.
391
392         * loop-invariant.c: Include hashtab.h.
393         (struct invariant): Remove processed field, add eqto and reg fields.
394         (struct invariant_expr_entry): New.
395         (invariant_for_use, hash_invariant_expr_1, invariant_expr_equal_p,
396         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv,
397         find_identical_invariants, merge_identical_invariants): New functions.
398         (create_new_invariant): Return the new invariant.  Initialize new
399         fields.
400         (find_invariants): Call merge_identical_invariants.
401         (get_inv_cost, best_gain_for_invariant, set_move_mark,
402         move_invariant_reg): Handle equivalent invariants.
403         * Makefile.in (loop-invariant.o): Add HASHTAB_H dependency.
404
405 2005-12-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
406
407         PR c++/23333
408         * c-lex.c (c_lex_with_flags): Add PURE_ZERO to cpp_flags if
409         number is a single digit '0'.
410
411 2005-12-22  Kazu Hirata  <kazu@codesourcery.com>
412
413         PR tree-optimization/23518
414         * fold-const.c (make_range): Don't move a constant to the
415         other side of the comparison if the type is signed and -fwrapv
416         is given.
417
418 2005-12-22  Kazu Hirata  <kazu@codesourcery.com>
419
420         * tree-vrp.c (extract_range_from_binary_expr): Clean up uses
421         of vr0.type.
422
423 2005-12-21  Joseph S. Myers  <joseph@codesourcery.com>
424
425         PR middle-end/24998
426         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add _floatundidf and
427         _floatundisf.
428
429 2005-12-21  Andrew Haley  <aph@redhat.com>
430
431         PR middle-end/25121
432         * recog.c (peephole2_optimize): Don't peephole any
433         RTX_FRAME_RELATED_P insns.
434
435 2005-12-21  Kazu Hirata  <kazu@codesourcery.com>
436
437         * tree-data-ref.c (estimate_niter_from_size_of_data): Replace
438         fold_build2 with fold_binary.
439         * tree-ssa-ccp.c (visit_assignment, maybe_fold_stmt_addition):
440         Replace fold_build1 with fold_unary.
441         * tree-ssa-reassoc.c (optimize_ops_list): Replace fold_build2
442         with fold_binary.
443
444 2005-12-21  Steven Bosscher  <stevenb@suse.de>
445
446         PR rtl-optimization/25196
447         * postreload-gcse.c (record_last_set_info): Notice stack pointer
448         changes in push insns without REG_INC notes.
449
450 2005-12-21  Kazu Hirata  <kazu@codesourcery.com>
451
452         PR tree-optimization/25382.
453         * tree-vrp.c (extract_range_from_binary_expr): Extract a range
454         from BIT_AND_EXPR.
455
456 2005-12-21  Janis Johnson  <janis187@us.ibm.com>
457             Ben Elliston  <bje@au.ibm.com>
458
459         * configure.ac: Enable C extension for decimal float if invoked
460         with --enable-decimal-float.
461         * doc/install.texi (Configuration): Document it.
462         * configure, config.in: Regenerate.
463
464 2005-12-20  Mike Stump  <mrs@apple.com>
465
466         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Handle the
467         ambiguity between -seg_addr_table and -seg_addr_table_filename.
468         (WORD_SWITCH_TAKES_ARG): Likewise.
469         (LINK_SPEC): Likewise.
470
471 2005-12-20  Kenneth Zadeck <zadeck@naturalbridge.com>
472
473         * cfganal.c (flow_reverse_top_sort_order_compute):
474         Renamed to post_order_compute and additional parameter added which
475         allows the inclusion of entry and exit blocks into list.
476         (mark_dfs_back_edges): Fixed comment.
477         (flow_depth_first_order_compute): Renamed to
478         pre_and_rev_post_order_compute additional parameter added which
479         allows the inclusion of entry and exit blocks into list.
480         * global.c (set_up_bb_rts_numbers): Call to
481         flow_reverse_top_sort_order_compute renamed to
482         post_order_compute.
483         * var-tracking.c (vt_stack_adjustments): Fixed comment.
484         (vt_find_locations): Call to
485         flow_depth_first_order_compute renamed to
486         pre_and_rev_post_order_compute.
487         * cfgloop.c (flow_find_loops): Ditto.
488         * tree-ssa-reassoc.c (init_reassoc): Ditto.
489         * df.c (df_analyze_1, df_analyze_subcfg): Calls to
490         flow_reverse_top_sort_order_compute renamed to post_order_compute
491         and calls to flow_reverse_top_sort_order_compute renamed to
492         post_order_compute.
493         * basic_block.h: Ditto.
494
495
496 2005-12-20  Roger Sayle  <roger@eyesopen.com>
497             Paolo Bonzini  <bonzini@gnu.org>
498
499         PR rtl-optimization/25115
500         * gcse.c (pre_insert_copy_insn): Fall back to the sole
501         SET in the insn if there is no SET for an
502         expression that is equivalent to EXPR.
503
504 2005-12-20  Richard Guenther  <rguenther@suse.de>
505
506         PR middle-end/24306
507         * builtins.c (std_gimplify_va_arg_expr): Do not align
508         va frame for zero sized types.
509         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
510
511 2005-12-20  Kazu Hirata  <kazu@codesourcery.com>
512
513         PR tree-optimization/25501
514         * tree-cfgcleanup.c (merge_phi_nodes): Check that RESULT is
515         used in the PHI argument corresponding to the edge from BB to
516         DEST.
517
518 2005-12-20  Richard Guenther  <rguenther@suse.de>
519
520         Revert
521         2005-12-02  Richard Guenther  <rguenther@suse.de>
522
523         * tree-cfg.c (mark_used_vars): New function.
524         (dump_function_to_file): Dump only used VAR_DECLs.
525
526 2005-12-19  Roger Sayle  <roger@eyesopen.com>
527
528         * combine.c (try_combine): Improve splitting of binary operators
529         by taking advantage of reassociative transformations.
530
531 2005-12-19  Jeff Law  <law@redhat.com>
532
533         * tree-ssa-dom.c (thread_across_edge): Do not use local_fold.
534         Strip away all type conversions after simplifying the
535         condition.
536
537         * tree-cfgcleanup.c (merge_phi_nodes): Allow merging in some
538         cases the forwarder block dominates the destination.
539
540 2005-12-19  DJ Delorie  <dj@redhat.com>
541
542         * reload1.c (spill_failure): Dump reload data to dump file.
543         (find_reload_regs): Likewise.
544
545 2005-12-19  Zdenek Dvorak <dvorakz@suse.cz>
546
547         PR tree-optimization/24793
548         * tree-ssa-loop-ivopts.c (get_ref_tag): Remember the
549         original reference if there are subvars.
550         * tree-ssa-operands.c (get_tmr_operands): Handle subvars.
551
552 2005-12-19  Kenneth Zadeck <zadeck@naturalbridge.com>
553
554         * df.c (df_analyze_1, df_analyze_subcfg, iterative_dataflow):
555         Corrected basic block number calculations for changes in entry and
556         exit numbering.
557         
558 2005-12-19  Zdenek Dvorak <dvorakz@suse.cz>
559
560         * tree-flow.h (struct var_ann_d): Change type of
561         may_aliases field to VEC(tree, gc) *.
562         (may_aliases): Declaration changed.
563         * tree-ssa-alias.c (group_aliases, add_may_alias,
564         replace_may_alias, dump_may_aliases_for,
565         is_aliased_with, add_type_alias, new_type_alias):
566         Work with VEC(tree, gc) * instead of varray.
567         * tree-flow-inline.h (may_aliases): Ditto.
568         * tree-ssa.c (verify_flow_insensitive_alias_info,
569         verify_name_tags): Ditto.
570         * tree-ssa-operands.c (add_stmt_operand): Ditto.
571
572 2005-12-19  J"orn Rennecke <joern.rennecke@st.com>
573
574         * cfgcleanup.c: Temporarily revert patches for PR 20070 till Bernd
575         comes back.
576
577 2005-12-19  J"orn Rennecke <joern.rennecke@st.com>
578
579         * struct-equiv.c (struct_equiv_improve_checkpoint): Fix sets_cc0_p
580         check.
581
582 2005-12-19  Ben Elliston  <bje@au.ibm.com>
583
584         * doc/install.texi (Configuration): Typo in Fortran subheading.
585
586 2005-12-19  Nathan Sidwell  <nathan@codesourcery.com>
587
588         * config/mt/mt.md (decrement_and_branch_until_zero): Add another
589         scratch.  Correct its reload split. Adjust its peephole.
590         (doloop_end): Add additional scratch.
591         (nop): Use 'nop'.
592         * config/mt/mt.c (MT_INT_ARG_FIRST): Remove.
593         (mt_asm_output_opcode, mt_print_operand): Use 'nop'.
594         (mt_function_arg_slotno): Use FIRST_ARG_REGNUM.
595         (mt_builtin_saveregs): Replace with ...
596         (mt_setup_incoming_varargs): ... here.  Save just the varadic
597         args.
598         (mt_va_start): Remove.
599         (mt_reorg_hazard): Ignore USE insns.  Don't call set_noop_p.
600         (mt_machine_reorg): Split all insns here.
601         (TARGET_SETUP_INCOMING_VARARGS): Override.
602         * config/mt/mt.h (TARGET_CPU_CPP_BUILTINS): Define __mt__ only.
603         Set to CPU type.
604         (EXPAND_BUILTIN_VA_START): Remove.
605
606 2005-12-17  Kenneth Zadeck <zadeck@naturalbridge.com>
607
608         * flow.c (update_life_info, count_or_remove_death_notes): Fixed
609         latent bug that could happen if update_life_info was called with a
610         blocks parameter and the call to cleanup_cfg actually deleted one
611         of those blocks. 
612
613 2005-12-19  Zdenek Dvorak <dvorakz@suse.cz>
614
615         * tree-ssa-structalias.c (update_alias_info): Remove handling
616         of may_be_aliased (SSA_NAME_VAR (op)) case.
617
618 2005-12-19  Zdenek Dvorak <dvorakz@suse.cz>
619
620         * tree-flow.h (struct stmt_ann_d): Remove
621         makes_aliased_loads and makes_aliased_stores fields.
622         * tree-ssa-ccp.c (likely_value): Do not use makes_aliased_stores
623         and makes_aliased_loads fields.
624         * tree-ssa-dom.c (eliminate_redundant_computations): Do not
625         use makes_aliased_stores.
626         * tree-ssa-operands.c (clobbered_aliased_loads,
627         clobbered_aliased_stores, ro_call_aliased_loads): Removed.
628         (build_ssa_operands, add_stmt_operand, add_call_clobber_ops,
629         add_call_read_ops): Do not set makes_aliased_stores and
630         makes_aliased_loads fields.
631         * tree-ssa.c (verify_ssa): Do not verify makes_aliased_stores
632         field.
633
634 2005-12-18  Geoffrey Keating  <geoffk@apple.com>
635
636         * config/darwin.h: Don't include darwin-sections.def to declare
637         global variables; instead create darwin_section_enum.
638         (darwin_section_enum): New.
639         (darwin_sections): New.
640         * config/darwin.c: Don't include darwin-sections.def to define
641         global variables.
642         (darwin_sections): New.
643         (output_objc_section_asm_op): Rewrite to take advantage of
644         darwin_sections.
645         (darwin_init_sections): Rewrite to use darwin_sections.
646         (machopic_output_indirection): Update for darwin_sections array.
647         (machopic_select_section): Likewise.
648         (machopic_select_rtx_section): Likewise.
649         (machopic_asm_out_constructor): Likewise.
650         (machopic_asm_out_destructor): Likewise.
651         (darwin_file_end): Likewise.
652         * config/rs6000/rs6000.c (machopic_output_stub): Likewise.
653         * config/i386/i386.c (machopic_output_stub): Likewise.
654
655 2005-12-18  Richard Guenther  <rguenther@suse.de>
656
657         PR tree-optimization/25481
658         * tree-ssa-structalias.c (handle_ptr_arith): Handle accesses we
659         don't have a varinfo for.
660
661 2005-12-18  Jon Grimm  <jgrimm2@us.ibm.com>
662             Janis Johnson  <janis187@us.ibm.com>
663             Ben Elliston  <bje@au.ibm.com>
664
665         * optabs.c (init_floating_libfuncs): Handle decimal float modes.
666         (init_optabs): Handle libfuncs for decimal float.
667         * genopinit.c (gen_insn): Handle MODE_DECIMAL_FLOAT.
668         * stor-layout.c (int_mode_for_mode): Likewise.
669         * simplify-rtx.c (simplify_immed_subreg): Likewise.
670         (simplify_unary_operation_1): Skip optimisations for decimal float
671         modes.
672         * varasm.c (output_constant_pool_2): Handle MODE_DECIMAL_FLOAT.
673         * emit-rtl.c (gen_const_vector): Add assertion check.
674         (init_emit_once): Populate const_tiny_rtx with constants in each
675         decimal float mode.
676         * expmed.c (extract_high_half, expand_mult_highpart_optab,
677         expand_mult_highpart): Assert that mode is not a scalar float
678         mode.
679         * expr.c (convert_move): Handle conversion between decimal and
680         binary floats of the same size.
681         * convert.c (convert_to_real): Consider decimal float types when
682         folding.
683         * dwarf2out.c (base_type_die): Use DW_ATE_decimal_float to
684         describe decimal floating point types.
685         
686 2005-12-18  Ulrich Weigand  <uweigand@de.ibm.com>
687
688         PR rtl-optimization/21041
689         * reload.c (find_reloads_subreg_address): Replace paradoxical
690         subreg of MEM by widened access only if the resulting memory
691         is properly aligned, even on !STRICT_ALIGNMENT targets.
692
693 2005-12-18  Andreas Krebbel  <krebbel1@de.ibm.com>
694
695         * tree-cfg.c (tree_flow_call_edges_add): Check for empty basic blocks.
696
697 2005-12-18  Steven Bosscher  <stevenb@suse.de>
698
699         * gcse.c (gcse_main, bypass_jumps): Fix non-GNU-isms from
700         the 2005-12-17 patch to renumber the entry and exit blocks.
701
702 2005-12-18  Gabriel Dos Reis  <gdr@integrable-solutions.net>
703
704         * doc/objc.texi (Type encoding): Fix typo.
705
706 2005-12-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
707
708         * tree-tailcall.c (find_tail_calls): Use XNEW.
709         * tree-ssa-dom.c (allocate_edge_info): Use XCNEW.
710         (free_all_edge_infos): Use explicit cast to convert from void *.
711         (vrp_free): Likewise.
712         (dom_opt_finalize_block): Likewise.
713         (record_equivalences_from_incoming_edge): Likewise.
714         (thread_across_edge): Likewise.  Use XCNEWVEC.
715         (record_cond): Use XCNEW.
716         (record_conditions): Use XNEWVEC.
717         (record_edge_info): Use XCNEWVEC.
718         (lookup_avail_expr): Use XNEW.
719         (record_range): Likewise.  Use GGC_NEW.
720         * tree-nested.c (var_map_hash): Use explicit cast to convert from
721         void *.
722         (var_map_eq): Likewise.
723         (lookup_field_for_decl): Likewise.
724         (convert_nonlocal_reference): Likewise.
725         (convert_local_reference): Likewise.
726         (convert_nl_goto_reference): Likewise.
727         (convert_nl_goto_receiver): Likewise.
728         (convert_call_expr): Likewise.
729         (convert_tramp_reference): Likewise.
730         (lookup_tramp_for_decl): Likewise.Use GGC_NEW.
731         (convert_nl_goto_reference): Likewise.
732         (lookup_field_for_decl): Use GGC_NEW.
733         (create_nesting_tree): Use GGC_CNEW.
734         * tree-ssa-phiopt.c (blocks_in_phiopt_order): Use XNEWVEC.
735         * tree-ssa-alias.c (init_alias_info): Use XCNEW.
736         (create_alias_map_for): Likewise.
737         (setup_pointers_and_addressables): Use XCNEWVEC.
738         (get_ptr_info): Use GGC_NEW.
739         (used_part_map_eq): Use explicit cast to convert from void *.
740         (up_lookup): Likewise.
741         (up_insert): Use XNEW.
742         (get_or_create_used_part_for): Use XCNEW.
743         (get_tmt_for): Likewise.
744         * tree-ssa-operands.c (ssa_operand_alloc): Use GGC_NEW.
745         * tree-ssa-pre.c (phi_trans_add): Use XNEW.
746         (bitmap_set_new): Use explicit cast to convert from void *.
747         (set_new): Likewise.
748         (insert_into_set): Likewise.
749         (pool_copy_list): Likewise.
750         (phi_translate): Likewise.
751         (create_value_expr_from): Likewise.
752         (insert_aux): Use XCNEWVEC.
753         (compute_avail): Use XNEWVEC.
754         * tree-ssa-live.c (calculate_live_on_entry): Likewise.
755         (sort_coalesce_list): Likewise.
756         (build_tree_conflict_graph): Use XCNEWVEC.
757         * tree-ssa-dce.c (tree_dce_init): Use XNEWVEC.
758         * tree-ssa-copy.c (init_copy_prop): Likewise.
759         (fini_copy_prop): Likewise.
760         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use XNEW
761         and XCNEWVEC.
762         (record_equiv): Use XNEW.
763         (uncprop_into_successor_phis): Use explicit cast to convert from
764         void *.
765         (uncprop_initialize_block): Likewise.
766
767 2005-12-18  Dorit Nuzman  <dorit@il.ibm.com>
768
769         PR tree-optimization/24378      
770         * tree-vect-transform.c (vect_transform_loop): Create single-predecessor
771         basic-block after loop-versioning. 
772
773 2005-12-18  Jeff Law  <law@redhat.com>
774
775         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Code
776         to simplify SWITCH_EXPR_CODE moved from here to ...
777         * tree-ssa-forwprop.c (simplify_switch_expr): Here.
778         (tree-ssa-forward_propagate_single_use_vars): Call
779         simplify_switch_expr when appropriate.
780
781 2005-12-17  Andrew Pinski  <pinskia@physics.uc.edu>
782
783         * doc/objc.texi (Type encoding): Add documentation about encoding
784         complex types and _Bool.
785
786 2005-12-17  Paul Brook  <paul@codesourcery.com>
787
788         * config/m68k/m68k.md (m68k_output_function_prologue): Always call
789         dwarf2out_def_cfa. Only add space for frame pointer to cfa_offset
790         when frame_pointer_needed. 
791
792 2005-12-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
793
794         * tree-vn.c (vn_add): Use XNEW.
795         * tree-ssa-ccp.c (ccp_initialize): Use XNEWVEC.
796         (ccp_fold): Likewise.
797         (fold_stmt_r): Use explicit cast to convert from void *.
798         * tree-outof-ssa.c (new_temp_expr_table): Use XCNEWVEC.
799         (new_temp_expr_table): Likewise.
800         * gimplify.c (lookup_tmp_var): Use XNEW.
801         (gimplify_asm_expr): Use explcit cast to convert from void *.
802         * tree-into-ssa.c (get_ssa_name_ann): Likewise.
803         (get_def_blocks_for): Use XNEW.
804         (add_to_repl_tbl): Likewise.
805         (mark_def_sites): Use explicit cast to convert from void *.
806         (def_blocks_free): Likewise.
807         (mark_def_sites_initialize_block): Likewise.
808         (update_ssa): Use XNEWVEC.
809         * tree-dfa.c (create_var_ann): Use GGC_NEW.
810         (create_stmt_ann): Likewise.
811         (create_tree_ann): Likewise.
812         (referenced_var_insert): Likewise.
813         (set_default_def): Likewise.
814         (referenced_var_lookup_if_exists): Use explicit cast to convert
815         from void *.
816         (referenced_var_lookup): Likewise.
817         (default_def): Likewise.
818         (set_default_def): Likewise.
819         * tree-cfg.c (create_bb): Likewise.
820         (edge_to_cases_cleanup): Likewise.
821         (verify_node_sharing): Likewise.
822         (record_switch_edge): Use XNEW.
823         (cleanup_dead_labels): Use XCNEWVEC.
824         (tree_duplicate_sese_region): Use XNEWVEC.
825         * tree-scalar-evolution.c (get_instantiated_value): Likewise.
826         * tree-ssa.c (verify_ssa): Use XCNEWVEC.
827         (int_tree_map_eq): Use explicit cast to convert from void *.
828         * libgcov.c (gcov_exit): Use explicit cast to convert from void *.
829         (__gcov_execl): Likewise.
830         (__gcov_execlp): Likewise.
831         (__gcov_execle): Likewise.
832         * tree-eh.c (struct_ptr_eq): Likewise.
833         (struct_ptr_hash): Likewise.
834         (lookup_stmt_eh_region_fn): Likewise.
835         (outside_finally_tree): Likewise.
836         (find_goto_replacement): Likewise.
837         (make_eh_edge): Likewise.
838         (mark_eh_edge): Likewise.
839         (add_stmt_to_eh_region_fn): Use GGC_NEW.
840         (record_in_finally_tree): Use XNEW.
841         (maybe_record_in_goto_queue): Use XRESIZEVEC.
842         (lower_try_finally_copy): Use XCNEWVEC.
843
844 2005-12-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
845
846         * tree-inline.c (copy_body_r): Use explicit cast when converting
847         from void *.
848         (copy_bb): Likewise.
849         (copy_edges_for_bb): Likewise.
850         (remap_decl_1): Likewise.
851         (estimate_num_insns_1): Likewise.
852         * cgraph.c (hash_node): Use explicit cast when converting from
853         void *.
854         (eq_node): Likewise.
855         (cgraph_create_node): Use GGC_CNEW.
856         (cgraph_create_edge): Use GGC_NEW.
857         (cgraph_remove_node): Use explicit cast when converting from void *.
858         (hash_varpool_node): Likewise.
859         (eq_varpool_node): Likewise.
860         (cgraph_varpool_node): Use GGC_CNEW.
861         * lambda.h (lambda_vector_new): Use GGC_CNEWVEC.
862         * tree-scalar-evolution.c (new_scev_info_str): Use XNEW.
863         (eq_scev_info): Use explicit cast when converting from void *.
864         (find_var_scev_info): Likewise.
865         (set_instantiated_value): Likewise.
866         (gather_stats_on_scev_database_1): Likewise.
867         * cfgloop.h (simple_loop_desc): Use explicit cast when converting
868         from void *.
869         * c-pch.c (c_common_write_pch): Use XNEWVEC.
870         (c_common_read_pch): Likewise.
871         * prefix.c (save_string): Use XNEWVEC.
872         (translate_name): Use explicit cast when converting from void *.
873         * c-ppoutput.c (print_line): Use explicit cast when converting
874         from void *.
875         (pp_dir_change): Likewise.
876         * c-cppbuiltin.c (builtin_define_std): Likewise.
877         (builtin_define_with_value): Likewise.
878         (builtin_define_with_value_n): Likewise.
879         (builtin_define_with_int_value): Likewise.
880         (builtin_define_type_max): Likewise.
881         * c-incpath.c (add_env_var_paths): Use XNEWVEC.
882         (add_path): Use XNEW.
883         * c-format.c (check_format_info_main): Use GGC_NEW.
884         (format_type_warning): Use explicit cast when converting from void *.
885         * c-typeck.c (alloc_tagged_tu_seen_cache): Use XNEW instead of
886         xmalloc. 
887         (start_init): Likewise.
888         * tree-flow-inline.h (first_referenced_var): Use explicit cast
889         when converting from void *.
890         (next_referenced_var): Likewise.
891         * c-pragma.c (push_alignment): Use GGC_NEW instead of ggc_alloc.
892         * gensupport.c (lookup_predicate): Use explicit cast to convert
893         from void *.
894         (init_predicate_table): Use XCNEW instead of xcalloc.
895         * genpreds.c (process_define_predicate): Likewise.
896
897 2005-12-17  Danny Berlin <dberlin@dberlin.org>
898             Kenneth Zadeck <zadeck@naturalbridge.com>
899
900         * basic-block.h: Changed basic block numbering so that the entry
901         block is 0 and the exit block is 1.  Changed insn iterators so
902         that they are tolerant of blocks with no insns.
903         * regrename.c (copyprop_hardreg_forward): Changed basic block
904         numbering so that the entry block is 0 and the exit block is 1.
905         * sched-ebb.c (sehedule_ebbs): Ditto.
906         * tracer.c (branch_ratio_cutoff): Ditto.
907         * cfgloopmanip.c (fix_loop_structure): Ditto.
908         * cfghooks.c (verify_flow_info): Ditto.
909         * cfg.c (compact_blocks): Ditto.
910         * reorg.c (dbr_schedule): Ditto.
911         * flow.c (calculate_global_regs_live, libcall_dead_p): Ditto.
912         * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
913         calculate_dominance_info): Ditto.
914         * cfganal.c (create_edge_list, print_edge_list,
915         flow_depth_first_order_compute, flow_dfs_compute_reverse_init,
916         flow_dfs_compute_reverse_add_bb, flow_dfs_compute_reverse_execute,
917         dfs_enumerate_from): Ditto.
918         * global.c (global_alloc, set_up_bb_rts_numbers): Ditto.
919         * ifcvt.c (find_if_case_2): Ditto.
920         * cfgbuild.c (control_flow_insn_p, count_basic_blocks,
921         find_basic_blocks): Ditto.
922         * predict.c (predict_loops, tree_bb_level_predictions,
923         predict_paths_leading_to, propagate_freq): Ditto.
924         * lcm.c (compute_antinout_edge, compute_laterin,
925         compute_available): Ditto.
926         * function.c (thread_prologue_and_epilogue_insns): Ditto.
927         * gcse.c (gcse_main, bypass_jumps): Ditto.
928         * profile.c (compute_branch_probabilities,
929         compute_value_histograms, branch_prob): Ditto.
930         * tree-flow-inline.h (bsi_start, bsi_after_labels,
931         bsi_last): Ditto.
932         * tree-ssa-phiopt.c (tree_ssa_phiopt,
933         blocks_in_phiopt_order): Ditto.
934         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
935         compute_out, link_btr_uses, migrate_btr_defs): Ditto.
936         * tree-dfa.c (collect_dfa_stats): Ditto.
937         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Ditto.
938         * cfglayout.c (fixup_reorder_chain): Ditto.
939         * bb-reorder.c (reorder_basic_blocks, duplicate_computed_gotos,
940         partition_hot_cold_basic_blocks): Ditto.
941         * var-tracking.c (vt_find_locations): Ditto.
942         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find, get_loop_body): Ditto.
943         * sched-rgn.c (compute_trg_info, init_regions, schedule_insns): Ditto.
944         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, make_edges
945         label_to_block_fn, print_loop_ir, tree_flow_call_edges_add): Ditto.
946         * tree-ssa-reassoc.c (init_reassoc): Ditto.
947         * cfgrtl.c (entry_of_function, rtl_verify_flow_info,
948         rtl_flow_call_edges_add, rtl_flow_call_edges_add): Ditto.
949         * df.c (df_analyze_1, hybrid_search, iterative_dataflow): Ditto
950         and removed unused reverse orders.
951         * df.h (): Ditto.
952         * combine.c: Fix document typo.
953
954 2005-12-17  Jan Hubicka  <jh@suse.cz>
955
956         * tree-flow-inline.h (set_default_def, default_def): Kill.
957         * tree-dfa.c (default_defs): New global variable.
958         (default_def, set_default_def): New functions.
959         * tree-ssa.c (init_tree_ssa, delete_tree_ssa): Add default_def hash.
960         * tree-flow.h (struct var_ann_d): Kill default_def field.
961         (set_default_def, default_def): Update prototype.
962         (default_defs): Declare.
963
964 2005-12-16  Jeff Law  <law@redhat.com>
965
966         * tree-ssa-dom.c (update_rhs_and_lookup_avail_expr): Kill.
967         (simplify_rhs_and_lookup_avail_expr): Kill.  Remnants moved
968         into tree-ssa-forwprop.c.
969         (eliminate_redundant_computations): Do not call
970         simplify_rhs_and_lookup_avail_expr anymore.
971         * tree-ssa-forwprop.c (simplify_not_neg_expr): New function
972         extracted from remnants of simplify_rhs_and_lookup_avail_expr.
973         (tree_ssa_forward_propagate_single_use_vars): Call
974         simplify_not_neg_expr appropriately.
975
976 2005-12-16  Bernd Trog  <berndtrog@yahoo.com>
977
978         PR target/20016
979         * config/avr/t-avr: Add -Os to TARGET_LIBGCC2_CFLAGS.
980
981 2005-12-17  Kazu Hirata  <kazu@codesourcery.com>
982
983         PR rtl-optimization/25456
984         * struct-equiv.c (struct_equiv_improve_checkpoint): Replace
985         info->x_start with p->x_start.
986
987 2005-12-17  Alan Modra  <amodra@bigpond.net.au>
988
989         * simplify-rtx.c (simplify_binary_operation_1 <IOR>): Correct bug
990         introduced 2005-12-16.
991
992 2005-12-16  Steven Bosscher  <stevenb@suse.de>
993
994         PR rtl-optimization/23837
995         * optabs.c (expand_binop): For a multi-word rotate, never emit
996         a REG_NO_CONFLICT block.
997
998 2005-12-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
999
1000         PR middle-end/25457
1001         * reorg.c (mostly_true_jump): Remove unused variable 'insn'.
1002
1003         PR target/25447
1004         * config/pa/pa.c (pa_scalar_mode_supported_p): Handle
1005         MODE_DECIMAL_FLOAT.
1006
1007 2005-12-16  Steven Bosscher  <stevenb@suse.de>
1008
1009         * loop-invariant.c (move_loop_invariants): Add missing hunk from
1010         the previous patch, to nullify df.
1011
1012 2005-12-16  Steven Bosscher  <stevenb@suse.de>
1013
1014         * reorg.c (mostly_true_jump): Clean up code depending on
1015         LABEL_OUTSIDE_LOOP_P and loop notes.  Remove code doing
1016         poor man's branch prediction, instead rely on REG_BR_PROB
1017         notes to be available.
1018
1019 2005-12-16  Jakub Jelinek  <jakub@redhat.com>
1020
1021         PR rtl-optimization/24899
1022         * loop.c (strength_reduce): Don't reduce giv that is not always
1023         computable and where add_val or mult_val can trap.
1024
1025         * doc/invoke.texi (-fdump-tree-*): Remove note about C/C++ only.
1026
1027 2005-12-16  Nathan Sidwell  <nathan@codesourcery.com>
1028
1029         * config/mt/mt.h (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Correct
1030         names of ms1-16-002 files.
1031
1032 2005-12-16  Alan Modra  <amodra@bigpond.net.au>
1033
1034         PR driver/20425
1035         * gcc.c (for_each_path): New function.
1036         (add_to_obstack, file_at_path): New functions.
1037         (struct file_at_path_info, struct add_to_obstack_info): New.
1038         (build_search_list): Rewrite using for_each_path.  Constify struct
1039         path_prefix pointer.  Add do_multi param.  Adjust all callers.
1040         (find_a_file): Similarly, but just change existing param to bool.
1041         (putenv_from_prefixes): Add do_multi param, make "paths" const.
1042         (do_spec_path): Delete.
1043         (struct spec_path_info): New.
1044         (spec_path): New function.
1045         (do_spec_1): Use for_each_path for %D and %I.
1046         (find_file): Adjust for find_a_file changes.
1047         (main): Search multilibs for specs.  Print multilib lib path for
1048         -print-search-dirs.  Likewise add multilibs to LIBRARY_PATH_ENV.
1049         (read_specs): Search multilibs for %include and %include_noerr.
1050         (is_directory): Remove second string param.  Change last param
1051         to a bool.  Don't use concat.  Remove SMALL_ARG_MAX test, always
1052         check path is a dir.  Update all callers.
1053         * doc/hostconfig.texi (SMALL_ARG_MAX): Remove mention.
1054         * system.h (SMALL_ARG_MAX): Poison.
1055         * config.gcc: Don't define SMALL_ARG_MAX.
1056         * config.host: Likewise.
1057         * config.build: Likewise.
1058
1059 2005-12-16  Paolo Bonzini  <bonzini@gnu.org>
1060
1061         * combine.c (combine_simplify_rtx <case NOT, NEG, TRUNCATE,
1062         FLOAT_TRUNCATE, FLOAT_EXTEND, PLUS, MINUS, AND, IOR, XOR,
1063         ABS, VEC_SELECT, POPCOUNT, PARITY, FFS, FLOAT>,
1064         simplify_logical): Move simplifications that do not require
1065         additional infrastructure...
1066         * simplify-rtx.c (simplify_unary_operation_1,
1067         simplify_binary_operation_1): ... here.
1068
1069 2005-12-16  Andreas Krebbel  <krebbel1@de.ibm.com>
1070
1071         PR 24823
1072         * flow.c (mark_used_dest_regs): New function.
1073         (mark_used_regs): Call mark_used_dest_regs.
1074
1075 2005-12-16  Jeff Law  <law@redhat.com>
1076
1077         * tree-ssa-dse.c (dse_optimize_stmt): Correctly handle PHI nodes which
1078         represent a use and definition of the same SSA_NAME.
1079
1080 2005-12-16  Jon Grimm  <jgrimm2@us.ibm.com>
1081             Janis Johnson  <janis187@us.ibm.com>
1082             Ben Elliston  <bje@au.ibm.com>
1083
1084         * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): New.
1085         (TARGET_INITIALIZER): Add TARGET_DECIMAL_FLOAT_P.
1086         * target.h (struct gcc_target): Add decimal_float_supported_p.
1087         * targhooks.c (default_scalar_mode_supported_p): Handle
1088         MODE_DECIMAL_FLOAT.
1089         * builtins.def: Add new builtins for 32, 64 and 128 bit variants
1090         of inf, nan, finite, isinf and isnan.
1091         * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128,
1092         BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR,
1093         BT_FN_DFLOAT32, BT_FN_DFLOAT64, BT_FN_DFLOAT128,
1094         BT_FN_INT_DFLOAT32, BT_FN_INT_DFLOAT64, BT_FN_INT_DFLOAT128,
1095         BT_FN_DFLOAT32_CONST_STRING, BT_FN_DFLOAT64_CONST_STRING,
1096         BT_FN_DFLOAT32_CONST_STRING, BT_FN_DFLOAT32_DFLOAT32,
1097         BT_FN_DFLOAT64_DFLOAT64, BT_FN_DFLOAT128_DFLOAT128): New.
1098         * c-decl.c (declspecs_add_type): Verify combos on type qualifiers.
1099         Pedwarn if decimal floating point types are used.  Error if
1100         decimal floating point is not supported by the target.
1101         (finish_declspecs): Return type from DFP typespec_word.
1102         * c-typeck.c (c_common_type): Choose the decimal floating point
1103         type with the greater precision when determining a common type.
1104         (convert_arguments): Warn if there is a mismatch between argument
1105         and prototype for decimal float types.  Warn of conversions with
1106         binary float types and of precision narrowing due to prototype.
1107         * c-parser.c (reswords): Add _Decimal32, _Decimal64, _Decimal128.
1108         (c_token_starts_typename): Handle RID_DFLOAT32/64/128.
1109         (c_token_starts_declspecs): Likewise.
1110         (c_parser_attributes): Likewise.
1111         * c-common.h (enum rid): Add new enumeration values RID_DFLOAT32,
1112         RID_DFLOAT64, RID_DFLOAT128.
1113         (T_D32, TEX_D32, T_D64, TEX_D64, T_D128, TEX_D128): New macros.
1114         * c-common.c (c_common_type_for_mode): Handle decimal float modes.
1115         (shorten_compare): Convert DFP/BFP operands to a common type.
1116         (c_common_modes_and_builtins): Register built-in decimal float
1117         types if the target supports them.
1118         (handle_mode_addtribute): Handle MODE_DECIMAL_FLOAT.
1119         * builtins.c (fold_builtin_1): Handle 32, 64 and 128 bit cases of
1120         inf, nan, finite, isinf and isnan builtins.
1121         * c-cppbuiltin.c (builtin_define_decimal_float_constants): New.
1122         (builtin_define_float_constants): Assert non-decimal radix.
1123         (c_cpp_builtins): Register built-in __DEC_EVAL_METHOD__ define.
1124         Call builtin_define_decimal_float_constants for each type.
1125         * c-lex.c (interpret_float): Decode decimal float types from CPP_N
1126         flags.  Use real_from_string3, which can handle binary or decimal
1127         floats.
1128         * c-tree.h (enum c_typespec_keyword): Add cts_dfloat32,
1129         cts_dfloat64, cts_dfloat128.
1130         * tree.c (build_common_tree_nodes_2): Add decimal float types.
1131         * tree.h (enum tree_index): Add new enumeration values
1132         TI_DFLOAT32_TYPE, TI_DFLOAT64_TYPE, TI_DFLOAT128_TYPE,
1133         TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE, TI_DFLOAT128_PTR_TYPE.
1134         (dfloat32_type_node): New macro.
1135         (dfloat64_type_node, dfloat128_type_node): Likewise.
1136         (dfloat32_ptr_type_node, dfloat64_ptr_type_node): Likewise.
1137         (dfloat128_ptr_type_node): Likewise.
1138         * c-pretty-print.c (pp_c_floating_constant): Append 32, 64 and 128
1139         bit decimal floating point types with "df", "dd" and "dl".
1140         * c-format.h (enum format_lengths): Add new enumeration values
1141         FMT_LEN_H, FMT_LEN_D and FMT_LEN_DD.
1142         * c-format.c (printf_length_specs, scanf_length_specs): Add
1143         entries for H, D, DD.
1144         (print_char_table, scan_char_table): Use new entries.
1145         (asm_fprintf_char_table, gcc_diag_char_table,
1146         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Adjust for longer
1147         length arrays.
1148         * defaults.h (DECIMAL32_TYPE_SIZE): Define.
1149         (DECIMAL64_TYPE_SIZE): Likewise.
1150         (DECIMAL128_TYPE_SIZE): Likewise.
1151         (TARGET_DEC_EVAL_METHOD): Likewise.
1152         * doc/extend.texi (Decimal Float): New node.
1153         (Constructing Calls): Document decimal float built-ins.
1154         * doc/tm.texi: Document TARGET_DECIMAL_FLOAT_SUPPORTED_P hook.
1155         * Makefile.in (USER_H): Add $(srcdir)/ginclude/decfloat.h.
1156         * ginclude/decfloat.h: New file.
1157
1158 2005-12-16  Alan Modra  <amodra@bigpond.net.au>
1159
1160         * reload.c (find_reloads): Fix comment typo.
1161         * recog.h (recog_memoized): Correct comment.
1162
1163 2005-12-16  Kazu Hirata  <kazu@codesourcery.com>
1164
1165         * basic-block.h, config/i386/winnt.c, config/pa/pa.c,
1166         config/s390/s390.c, dfp.c, expr.c, fold-const.c, params.def,
1167         reload.c, struct-equiv.c, tree-ssa-ccp.c, tree-ssa-pre.c,
1168         tree-ssa-reassoc.c, tree-ssa-structalias.c: Fix comment typos.
1169         * doc/invoke.texi, doc/tm.texi: Fix typos.
1170
1171 2005-12-16  Ben Elliston  <bje@au.ibm.com>
1172
1173         * real.c (decimal_quad_format): Correct values for emin, emax.
1174
1175 2005-12-15  DJ Delorie  <dj@redhat.com>
1176
1177         * config/m32c/predicates.md (m32c_psi_scale): New.
1178         * config/m32c/m32c.c (m32c_expand_neg_mulpsi3): New.
1179         * config/m32c/muldiv.md (mulpsi3): Support negative constants.
1180
1181 2005-12-16  Jan Hubicka  <jh@suse.cz>
1182
1183         PR rtl-optimization/25224
1184         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free copy
1185         tables.
1186
1187 2005-12-15  Zdenek Dvorak <dvorakz@suse.cz>
1188             Steven Bosscher <stevenb@suse.de>
1189
1190         * loop-invariant.c (df): New global variable.
1191         (find_defs, check_dependencies, find_invariant_insn, record_uses,
1192         find_invariants_bb, find_invariants_body, find_invariants,
1193         find_invariants_to_move, move_invariants, free_inv_motion_data,
1194         move_single_loop_invariants, move_loop_invariants): Do not pass df in
1195         arguments.
1196
1197 2005-12-15  Jakub Jelinek  <jakub@redhat.com>
1198
1199         * varasm.c (default_unique_section_1): Use special section
1200         names for SECCAT_DATA_REL{,_RO}{,_LOCAL}.
1201
1202 2005-12-16  Ben Elliston  <bje@au.ibm.com>
1203
1204         * doc/invoke.texi (Warning Options): Document -Walways-true being
1205         enabled by -Wall.
1206
1207 2005-12-15  Joseph S. Myers  <joseph@codesourcery.com>
1208
1209         PR other/25028
1210         * libgcc2.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Define.
1211         * libgcc2.c (__floatdixf, __floatundixf, __floatditf,
1212         __floatunditf): Use #error if type sizes don't match requirements
1213         of implementation.
1214         (__floatdisf, __floatdidf): Unify.  Possibly use XFmode or TFmode
1215         as wider floating-point type.  Use #error if type sizes don't
1216         match requirements of implementation.  Avoid overflow in computing
1217         Wtype_MAXp1_F * Wtype_MAXp1_F.  When special casing conversion,
1218         shift one more bit.  Cast 1 to DWtype or UDWtype for shifting.
1219         (__floatundisf, __floatundidf): Likewise.
1220         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Define.
1221         * config/ia64/ia64.c (ia64_init_libfuncs): Use
1222         _U_Qfcnvfxt_quad_to_quad and _U_Qfcnvxf_quad_to_quad for
1223         TFmode-TImode conversions.
1224         * doc/tm.texi (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Document.
1225
1226 2005-12-14  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1227
1228         * freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS):
1229         Use builtin_define_with_int_value() instead of
1230         adding a new check for every new major FreeBSD version.
1231
1232 2005-12-14  Andrew Pinski  <pinskia@physics.uc.edu>
1233
1234         * config/t-darwin (darwin-c.o): Depend on $(TREE_H) instead of tree.h.
1235
1236 2005-12-15  Richard Sandiford  <richard@codesourcery.com>
1237
1238         * config/arm/predicates.md (call_memory_operand): New.
1239         * config/arm/arm.md (*call_mem, *call_value_mem): Use it.
1240
1241 2005-12-15  Andrew Haley  <aph@redhat.com>
1242
1243         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Guard
1244         against prev_cache_entry == NULL when moving a cache entry to the
1245         head of the list.
1246         
1247 2005-12-15  Nathan Sidwell  <nathan@codesourcery.com>
1248
1249         * config/mt/mt.c (mt_override_options): Require lower case
1250         architectures.  Revert accidental default to ms2.
1251         * config/mt/mt.h (ASM_SPEC, LIBSPEC, STARTFILE_SPEC,
1252         ENDFILE_SPEC): Require lower case architectures.  Revert default
1253         to ms2.
1254
1255         * doc/invoke.texi (MT Options): Rename and update.
1256         * doc/md.texi (MorphoTech family): Rename and update.
1257
1258 2005-12-15  Olivier Hainque  <hainque@adacore.com>
1259
1260         * stor-layout.c (layout_type): Don't complain about a too small
1261         an array element type size compared to its alignment when the
1262         size overflows.
1263
1264 2005-12-15  Jan Hubicka  <jh@suse.cz>
1265
1266         PR target/24969
1267         * i386.c (classify_argument): Properly adjust offset of bitfield for
1268         substructures.
1269
1270 2005-12-15  Richard Sandiford  <richard@codesourcery.com>
1271
1272         * final.c (final_scan_insn): Flip in_cold_section_p when changing
1273         between the hot and cold sections.  Use current_function_section
1274         to get the new section.
1275         * dwarf2out.c (output_line_info): Use in_cold_section_p to
1276         determine whether we are assembling hot or cold code.
1277         (secname_for_decl, dwarf2out_var_location): Likewise.
1278         (dwarf2out_init, dwarf2out_finish): Use switch_to_section.
1279         * varasm.c (last_text_section): Delete.
1280         (in_cold_section_p): New variable.
1281         (hot_function_section): New function.
1282         (current_function_section): Pass in_cold_section_p as the
1283         reloc argument to select_section.  Use it to decide between
1284         unlikely_function_section and hot_function_section.
1285         (assemble_start_function): Use switch_to_section.  Set
1286         in_cold_section_p instead of last_text_section.
1287         (assemble_end_function): Use switch_to_section.
1288         (switch_to_section): Don't set last_text_section.
1289         * config/darwin/darwin.c (machopic_select_section): Trust the reloc
1290         argument to make the right choice between hot and cold sections.
1291
1292 2005-12-15  Nathan Sidwell  <nathan@codesourcery.com>
1293
1294         Second part of MS1->MT renaming
1295         * config/mt/mt.md (doloop_end): Call mt_add_loop.
1296         (movqi, movhi): Call mt_set_memflags.
1297         (*movdf_internal): Call mt_split_words. 
1298         (reload_inqi, reload_outqi, reload_inhi, reload_outhi): Call
1299         mt_set_memflags.
1300         (cmpsi): Store to mt_compare_op[01].
1301         (beq, bne, bge, bgt, ble, blt, bgeu, bgtu, bleu, bltu, bunge,
1302         bungt, bunle, bunlt): Call mt_emit_cbranch.
1303         (prologue): Call mt_expand_prologue.
1304         (epilogu): Call mt_expend_epilogue.
1305         (eh_return): Call mt_expand_eh_return.
1306         (eh_epilogue): Call me_emit_eh_epilogue.
1307         (conditional_trap): Store to mt_compare_op[01].
1308         * config/mt/crti.asm: Adjust comment.
1309         * config/mt/crtn.asm: Adjust comment.
1310         * config/mt/mt.c (MT_INT_ARG_FIRST): Renamed.
1311         (mt_compare_op0, mt_compare_op1): Renamed.
1312         (current_frame_info, zero_frame_info): Adjust type.
1313         (mt_ucmpsi3_libcall): Renamed.
1314         (mt_flag_delayed_branch): Renamed.
1315         (mt_struct_value_rtx, mt_return_addr_rtx): Renamed.
1316         (mt_nops_required, mt_nop_reasons): Renamed.
1317         (mt_asm_output_opcode, mt_get_attr_type, mt_final_prescan_insn,
1318         mt_debug_stack, mt_print_operand_simple_address,
1319         mt_print_operand_address, mt_print_operand): Renamed, adjusted.
1320         (mt_init_cumulative_args, mt_function_arg_slotno, mt_function_arg,
1321         mt_function_arg_advance, mt_arg_partial_bytes,
1322         mt_pass_by_reference, mt_function_arg_boundary,
1323         mt_reg_ok_for_base_p, mt_legitimate_simple_address_p,
1324         mt_legitimate_address_p): Renamed, adjusted.
1325         (mt_cpu): Renamed.
1326         (mt_init_machine_status, mt_override_options, mt_builtin_saveregs,
1327         mt_va_start, mt_compute_frame_size, mt_emit_save_restore,
1328         mt_emit_save_fp, mt_emit_save_regs, mt_interrupt_function_p, 
1329         mt_expand_prologue, mt_epilogue_uses, mt_expand_epilogue,
1330         mt_expand_eh_return, mt_emit_eh_prologue,
1331         mt_handl_interrupt_attribute): Renamed, adjusted.
1332         (mt_attribute_table): Renamed, adjusted.
1333         (mt_initial_elimination_offset, mt_generate_compare,
1334         mt_emit_cbranch, mt_set_memflags_1, mt_set_memflags,
1335         mt_secondary_reload_class, mt_function_value, mt_split_words,
1336         mt_pass_in_stack, mt_add_loop, mt_loop_nesting, mt_block_length,
1337         mt_scan_loop, mt_reorg_loops): Renamed, adjusted.
1338         (mt_labels): Renamed.
1339         (mt_add_branches, mt_check_delay_slot, mt_reorg_hazard,
1340         mt_machine_reorg): Renamed, adjusted.
1341         (mt_attribute_table: Renamed.
1342         (TARGET_ATTRIBUTE_TABLE, TARGET_STRUCT_VALUE_RTX,
1343         TARGET_PASS_BY_REFERENCE, TARGET_MUST_PASS_IN_STACK,
1344         TARGET_ARG_PARTIAL_BYTES, TARGET_MACHINE_DEPENDENT_REORG): Adjust.
1345         * config/mt/mt.opt (march): Set mt_cpu_string.
1346         * config/mt/mt.h (mt_ucmpsi3_libcall, mt_cpu): Renamed.
1347         (TARGET_CPU_CPP_BUILTINS): Adjust.
1348         (TARGET_MS1_64_001, TARGET_MS1_16_002, TARGET_MS1_16_003,
1349         TARGET_MS2): Adjust.
1350         (TARGET_VERSION, OVERRIDE_OPTIONS, SECONDARY_RELOAD_CLASS): Adjust.
1351         (MT_MIN_INT): Renamed.
1352         (RETURN_ADDR_RTX): Adjust.
1353         (struct mt_frame_info): Renamed.
1354         (current_frame_info): Adjust type.
1355         (INITIAL_ELIMINATION_OFFSET): Adjust.
1356         (MT_NUM_ARG_REGS): Renamed.
1357         (REG_PARM_STACK_SPACE, FUNCTION_ARG, INIT_CUMULATVE_ARGS,
1358         FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY, FUNCTION_VALUE,
1359         LIBCALL_VALUE, EPILOGUE_USES, EXPAND_BUILTIN_VA_START,
1360         GO_IF_LEGITIMATE_ADDRESS, REG_OK_FOR_BASE_P, ASM_OUTPUT_OPCODE,
1361         FINAL_REPSCAN_INSN, PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Adjust.
1362         (mt_compare_op0, mt_compare_op1): Renamed.
1363         * config/mt/mt-protos.h: Rename prototypes.
1364
1365 2005-12-15  Richard Guenther  <rguenther@suse.de>
1366
1367         * tree-flow.h (okay_component_ref_for_subvars): Remove.
1368         (get_ref_base_and_extent): Declare.
1369         * tree-dfa.c (okay_component_ref_for_subvars): Remove.
1370         (get_ref_base_and_extent): New function.
1371         * tree-ssa-alias.c (find_used_portions): Use it.
1372         * tree-ssa-structalias.c (get_constraint_for_component_ref):
1373         Likewise.
1374         * tree-ssa-operands.c (get_expr_operands): Likewise.
1375
1376 2005-12-15  Paolo Bonzini  <bonzini@gnu.org>
1377
1378         * combine.c: Remove force_to_mode's fourth parameter.
1379         (force_to_mode): Do not handle REG.
1380         (canon_reg_for_combine): New.
1381         (make_field_assignment): Use it where the removed argument was non-NULL.
1382
1383 2005-12-15  Alan Modra  <amodra@bigpond.net.au>
1384
1385         PR target/25406
1386         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Handle
1387         error_mark_node.  Make alignment params unsigned.
1388         * config/rs6000/rs6000-protos.h
1389         (rs6000_special_round_type_align): Update prototype.
1390         (rs6000_machopic_legitimize_pic_address): Remove arg names.
1391
1392 2005-12-14  Ulrich Weigand  <uweigand@de.ibm.com>
1393
1394         PR rtl-optimization/25310
1395         * reload1.c (eliminate_regs_in_insn): Handle lowpart SUBREGs
1396         of the eliminable register when substituting into a PLUS.
1397
1398 2005-12-14  Jakub Jelinek  <jakub@redhat.com>
1399
1400         PR debug/25023
1401         * config/i386/i386.c (ix86_force_to_memory): Always use
1402         SImode push for HImode in -m32.
1403         (ix86_free_from_memory): Likewise.
1404
1405 2005-12-14  Richard Sandiford  <richard@codesourcery.com>
1406
1407         * gcc/config/arm/arm.md: Provide a big-endian version of the
1408         (zero_extend:SI (subreg:QI ...)) splitter.
1409
1410 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
1411
1412         * struct-equiv.c (note_local_live): Handle hard regs with different
1413         hard_regno_nregs.
1414
1415 2005-12-14  Jeff Law  <law@redhat.com>
1416
1417         * tree-ssa-ccp.c (fold_stmt_r): DATA argument is now a pointer
1418         to a structure containing state rather than a pointer to bool.
1419         (case ARRAY_REF): New code to handle folding some array references.
1420         (case ADDR_EXPR): Note when we are processing expressions found
1421         within an ADDRE_EXPR.
1422         (fold_stmt, fold_stmt_inplace): Pass in a structure to fold_stmt_r
1423         for state variables rather than just a pointer to a boolean.
1424         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
1425         handling of constant string references.
1426
1427 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
1428
1429         * config/s390/s390.md ("*tstdi_extimm", "*tstsi_extimm"): Merge.
1430         ("*tstdi_cconly_extimm", "*tstsi_cconly_extimm"): Merge.
1431         ("*tstdi_cconly2", "*tstsi_cconly2"): Merge.
1432         Move other tst* patterns to retain partial order.
1433
1434 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
1435
1436         * config/s390/s390.md ("d0", "1"): New mode attributes.
1437         ("<shift>di3", "<shift>si3"): Merge.
1438         ("*<shift>di3_and", "*<shift>si3_and"): Merge.
1439         ("ashrdi3", "ashrsi3"): Merge.
1440         ("*ashrdi3_cc", "*ashrsi3_cc"): Merge.
1441         ("*ashrdi3_cc_and", "*ashrsi3_cc_and"): Merge.
1442         ("*ashrdi3_cconly", "*ashrsi3_cconly"): Merge.
1443         ("*ashrdi3_cconly_and", "*ashrsi3_cconly_and"): Merge.
1444         ("*ashrdi3", "*ashrsi3"): Merge.
1445         ("*ashrdi3_and", "*ashrsi3_and"): Merge.
1446
1447 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
1448
1449         * config/s390/s390.md ("extend<mode>di2", "extend<mode>si2"): Merge.
1450         ("*extendqidi2_extimm", "*extendqisi2_extimm"): Merge.
1451         ("*extendqidi2", "*extendqisi2") Merge.
1452         ("*extendqidi2_short_displ", "*extendqisi2_short_displ"): Merge.
1453         ("zero_extendhidi2", "zero_extendqidi2"): Merge.
1454         ("*zero_extend<mode>di2_extimm", "*zero_extend<mode>si2_extimm"): Merge.
1455         Move some patterns to retain partial ordering.
1456
1457 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
1458
1459         * config/s390/s390.md ("atype", "length"): Rewrite.
1460         ("*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): Add mode.
1461
1462 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
1463
1464         * tree-ssa-operands.c (build_ssa_operands): Update leading comment.
1465
1466 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
1467
1468         * struct-equiv.c (rtx_equiv_p): Allow arbitrary RVALUE values for
1469         PARALLELs with a mode.
1470
1471 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
1472
1473         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Adjust the type of
1474         cond_expr parameter.
1475
1476 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
1477
1478         * loop-unswitch.c (unswitch_loop): Free zero_bitmap before returning.
1479
1480 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
1481
1482         PR bootstrap/25397:
1483
1484         * struct-equiv.c (struct_equiv_init): Fix off-by-one error in clearing
1485         of STACK_REGS bits.
1486
1487         * struct-euiv.c (rtx_equiv_p): Remove SUBREG case.
1488
1489 2005-12-14  Jakub Jelinek  <jakub@redhat.com>
1490
1491         PR target/25254
1492         PR target/24188
1493         * config/i386/i386.c (x86_64_elf_select_section): If DECL is not
1494         DECL_P, call get_section rather than get_named_section.  Supply
1495         section flags to it.
1496
1497 2005-12-14  Ben Elliston  <bje@au.ibm.com>
1498
1499         * c-common.c (c_common_truthvalue_conversion): Generalise warning
1500         for addresses converted to booleans; not just function addresses.
1501         * c-typeck.c (build_binary_op): Warn for address comparisons which
1502         can never be NULL (eg. func == NULL or &var == NULL).
1503         * common.opt (Walways-true): New option.
1504         * c-opts.c (c_common_handle_option): Set it with -Wall.
1505         * doc/invoke.texi: Document it.
1506
1507 2005-12-13  Paul Brook  <paul@codesourcery.com>
1508
1509         * config/m68k/fpgnulib.c (__unordsf2, __unorddf2, __unordxf2,
1510         __floatunsidf, __floatunsisf, __floatunsixf): New functions.
1511
1512 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
1513
1514         * config/mt/t-mt (crti.o, crtn.o): Add multilib options.
1515         (EXTRA_MULTILIB_PARTS): Define.
1516
1517 2005-12-13  J"orn Rennecke <joern.rennecke@st.com>
1518
1519         PR rtl-optimization/20070 / part1
1520         * flow.c (update_life_info): If PROP_POST_REGSTACK is set, call
1521         count_or_remove_death_notes with kill == -1.
1522         (mark_set_1): Don't add REG_DEAD / REG_UNUSED notes for stack
1523         registers if PROP_POST_REGSTACK is set.
1524         (mark_used_reg): Likewise.
1525         (count_or_remove_death_notes): If kill is -1, don't remove REG_DEAD /
1526         REG_UNUSED notes for stack regs.
1527         * cfgcleanup.c (condjump_equiv_p): Change parameters and processing
1528         to match rtx_equiv_p machinery.  Change caller.
1529         (outgoing_edges_match): Likewise.
1530         (try_crossjump_to_edge): Use struct_equiv_block_eq
1531         instead of flow_find_cross_jump.
1532         * basic-block.h (PROP_POST_REGSTACK, STRUCT_EQUIV_START): Define.
1533         (STRUCT_EQUIV_RERUN, STRUCT_EQUIV_FINAL): Likewise.
1534         (STRUCT_EQUIV_NEED_FULL_BLOCK, STRUCT_EQUIV_MATCH_JUMPS): Likewise.
1535         (STRUCT_EQUIV_MAX_LOCAL): Likewise.
1536         (struct struct_equiv_checkpoint, struct equiv_info): Likewise.
1537         (insns_match_p): Update prototype.
1538         (flow_find_cross_jump): Remove prototype.
1539         (struct_equiv_block_eq, struct_equiv_init): Declare.
1540         (rtx_equiv_p, condjump_equiv_p): Likewise.
1541         * struct-equiv.c: Include reload.h.
1542         (IMPOSSIBLE_MOVE_FACTOR): Define.
1543         (assign_reg_reg_set, struct_equiv_make_checkpoint): New functions.
1544         (struct_equiv_improve_checkpoint): Likewise.
1545         (struct_equiv_restore_checkpoint, rtx_equiv_p): Likewise.
1546         (set_dest_equiv_p, set_dest_addr_equiv_p, struct_equiv_init): Likewise.
1547         (struct_equiv_merge, find_dying_input): Likewise.
1548         (resolve_input_conflict, note_local_live): Likewise.
1549         (death_notes_match_p): Change parameters and processing
1550         to match rtx_equiv_p machinery.  Change caller.
1551         (insns_match_p): Likewise.
1552         (flow_find_cross_jump): Replace with:
1553         (struct_equiv_block_eq).
1554
1555         Back out this change:
1556         2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
1557           * recog.c (verify_changes): Make it static.
1558           * recog.h: Remove the corresponding prototype.
1559
1560 2005-12-13  J"orn Rennecke <joern.rennecke@st.com>
1561
1562         * rtlhooks.c (gen_lowpart_general): Handle SUBREGs of floating point
1563         values.
1564
1565 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
1566
1567         * config/mt/t-mt (MULTILIB_OPTIONS): Add ms2
1568         (MULTILIB_DIRNAMES): Add ms2.  Prefix ms1 dirs with 'ms1'.
1569         * config/mt/mt.c (ms1_final_prescan): Use TARGET_MS2,
1570         TARGET_MS1_64_001 appropriately.
1571         (ms1_machine_reorg): Use TARGET_MS2.
1572
1573 2005-12-13  Jakub Jelinek  <jakub@redhat.com>
1574
1575         PR debug/25023
1576         PR target/25293
1577         * expr.c (emit_move_resolve_push): Handle PRE_MODIFY
1578         and POST_MODIFY with CONST_INT adjustment equal to PUSH_ROUNDING.
1579         Fix POST_INC/POST_DEC handling if PUSH_ROUNDING is not identity.
1580         * config/i386/i386.md (pushhi2, pushqi2): Use pushl instead of pushw.
1581         Set mode to SI, adjust constraints.
1582         (pushhi2_rex64, pushqi2_rex64): Set mode to DI.
1583         * config/i386/i386.h (PUSH_ROUNDING): Round up to 4 instead of 2 for
1584         32-bit code.
1585
1586 2005-12-13  Carlos O'Donell <carlos@codesourcery.com>
1587
1588         * c-cppbuiltin.c (builtin_define_float_constants): Add
1589         fp_cast parameter, pass to builtin_define_with_hex_fp_value.
1590         Define __FLT_HAS_DENORM__, __DBL_HAS_DENORM__, __LDBL_HAS_DENORM__.
1591         (builtin_define_with_hex_fp_value): Use fp_cast when building macro.
1592         (c_cpp_builtins): If flag_single_precision_constant then set fp_cast
1593         to "((double)%sL)" otherwise "%s".
1594
1595 2005-12-13  Paul Brook  <paul@codesourcery.com>
1596
1597         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for
1598         apcs/atpcs.
1599
1600 2005-12-11 Rafael vila de Espndola <rafael.espindola@gmail.com>
1601
1602         * tree-flow.h: Allow compilation with a C++ compiler.
1603         (struct edge_prediction): Prefix all field names  with "ep_".
1604         * predict.c (tree_predicted_by_p): Likewise for struct edge_prediction.
1605         (tree_predict_edge, combine_predictions_for_bb): Likewise.
1606         (remove_predictions_associated_with_edge): Likewise.
1607         
1608 2005-12-12  Jeff Law  <law@redhat.com>
1609
1610         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
1611         reassociation code.
1612         * passes.c (init_optimization_passes): Run reassociation again
1613         after loop optimizations.
1614
1615 2005-12-12  Daniel Berlin  <dberlin@dberlin.org>
1616
1617         * tree-ssa-dom.c (thread_across_edge): Canonicalize condition
1618         if necessary.
1619         (optimize_stmt): Ditto.
1620         (canonicalize_comparison): New function.
1621         * tree-ssa-operands.c (swap_tree_operands): Make external.
1622         (get_expr_operands): Stop auto-canonicalization.
1623         * tree-ssa-reassoc.c: Rewrite.
1624         (init_optimization_passes): 
1625         * tree-flow.h (swap_tree_operands): Prototype.
1626         * Makefile.in (tree-ssa-reassoc.o): Update dependencies.
1627
1628 2005-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1629
1630         * pa.c (pa_output_function_epilogue): Set cfun->machine->in_nsubspa to
1631         indicate function epilogue has been output.
1632         (pa_asm_output_mi_thunk): Likewise.
1633         (output_deferred_plabels): Put plabels in readonly data section when
1634         not generating PIC code.
1635         (som_output_text_section_asm_op): Use .NSUBSPA to output debug
1636         information.  Add assert.
1637         (som_output_comdat_data_section_asm_op): New function.
1638         (pa_som_asm_init_sections): Use som_output_comdat_data_section_asm_op
1639         instead of output_section_asm_op for COMDAT sections.
1640
1641 2005-12-12  J"orn Rennecke <joern.rennecke@st.com>
1642
1643         * cfgcleanup.c (condjump_equiv_p, try_crossjump_to_edge):
1644         Fix whitespace in vincinity of to-be-installed changes.
1645         * struct-equiv.c (merge_memattrs, death_notes_match_p): Fix whitespace.
1646         (insns_match_p): Likewise.
1647
1648 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
1649
1650         * config.gcc (ms1): Replace with ...
1651         (mt): ... this.
1652         * config/ms1: Rename to ...
1653         * config/mt: ... here.  Rename ms1 files to mt.
1654         * config/mt/mt.c: Adjust gt-mt.h #include.
1655         * config/mt/t-mt (LIB1ASMSRCS, LIB2FUNCS_EXTRA): Adjust.
1656         (crti.o, crtn.o): Adjust file names.
1657
1658 2005-12-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1659
1660         * varray.h: Allow compilation with a C++ compiler.
1661         (union varray_data_tag): Prefix all field names with "vdt_".
1662         (VARRAY_CHAR, VARRAY_UCHAR, VARRAY_SHORT, VARRAY_USHORT,
1663         VARRAY_INT, VARRAY_UINT, VARRAY_LONG, VARRAY_ULONG,
1664         VARRAY_WIDE_INT, VARRAY_UWIDE_INT, VARRAY_GENERIC_PTR,
1665         VARRAY_GENERIC_PTR_NOGC, VARRAY_CHAR_PTR, VARRAY_RTX,
1666         VARRAY_RTVEC, VARRAY_TREE, VARRAY_BITMAP, VARRAY_REG, VARRAY_BB,
1667         VARRAY_ELT_LIST, VARRAY_EDGE, VARRAY_TREE_PTR): Adjust definition.
1668         (VARRAY_PUSH_CHAR, VARRAY_PUSH_UCHAR, VARRAY_PUSH_SHORT,
1669         VARRAY_PUSH_USHORT, VARRAY_PUSH_INT, VARRAY_PUSH_UINT, 
1670         VARRAY_PUSH_LONG, VARRAY_PUSH_ULONG, VARRAY_PUSH_WIDE_INT, 
1671         VARRAY_PUSH_UWIDE_INT, VARRAY_PUSH_GENERIC_PTR, 
1672         VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_CHAR_PTR, 
1673         VARRAY_PUSH_RTX, VARRAY_PUSH_RTVEC, VARRAY_PUSH_TREE, 
1674         VARRAY_PUSH_BITMAP, VARRAY_PUSH_REG, VARRAY_PUSH_BB, 
1675         VARRAY_PUSH_EDGE, VARRAY_PUSH_TREE_PTR): Likewise.
1676         (VARRAY_TOP_CHAR, VARRAY_TOP_UCHAR, VARRAY_TOP_SHORT, 
1677         VARRAY_TOP_USHORT, VARRAY_TOP_INT, VARRAY_TOP_UINT, 
1678         VARRAY_TOP_LONG, VARRAY_TOP_ULONG, VARRAY_TOP_WIDE_INT, 
1679         VARRAY_TOP_UWIDE_INT, VARRAY_TOP_GENERIC_PTR, 
1680         VARRAY_TOP_GENERIC_PTR_NOGC, VARRAY_TOP_CHAR_PTR, VARRAY_TOP_RTX, 
1681         VARRAY_TOP_RTVEC, VARRAY_TOP_TREE, VARRAY_TOP_BITMAP, 
1682         VARRAY_TOP_REG, VARRAY_TOP_BB, VARRAY_TOP_EDGE, 
1683         VARRAY_TOP_TREE_PTR): Likewise.
1684         * varray.c (varray_grow): Likewise.
1685         (varray_clear): Likewise.
1686
1687 2005-12-12  Alan Modra  <amodra@bigpond.net.au>
1688
1689         PR target/25299
1690         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Increase
1691         alignment to doubleword if the first field is a double array.
1692         * config/rs6000/linux64.h (TARGET_ALIGN_NATURAL): Define.
1693
1694 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
1695
1696         * tree-ssa-structalias.c (process_constraint): Remove code to
1697         transform addressofs into scalar.
1698         (create_variable_info_for): In whole-program IPA, globals don't
1699         point to ANYTHING by default.
1700
1701 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
1702
1703         * timevar.def (TV_IPA_PTA): New.
1704         * tree-pass.h (pass_ipa_pta): New
1705         * tree-ssa-structalias.c: Include cgraph.h
1706         (in_ipa_mode): New.
1707         (predbitmap_obstack): New.
1708         (EXECUTE_IF_IN_NONNULL_BITMAP): New.
1709         (struct constraint_stats): Add num_edges.
1710         (new_var_info): Don't call bitmap_clear.
1711         (struct constraint_edge): Update docs.
1712         (new_constraint_edge): Remove src param.
1713         (struct constraint_graph): Add zero_weight_succs,
1714         zero_weight_preds.  Update docs.
1715         (constraint_expr_equal): Reformat.
1716         (constraint_edge_equal): Update for removal of src.
1717         (constraint_edge_less): Ditto.
1718         (constraint_edge_vec_find): Ditto.
1719         (erase_graph_self_edge): Update for removal of src and and zero
1720         weight bitmap.
1721         (clear_edges_for_node): Ditto.
1722         (add_graph_edge): Ditto.
1723         (get_graph_weights): Ditto.
1724         (allocate_graph_weights): Ditto.
1725         (merge_graph_nodes): Ditto.
1726         (int_add_graph_edge): Ditto.
1727         (valid_graph_edge): Ditto.
1728         (valid_weighted_graph_edge): Ditto.
1729         (build_constraint_graph): Ditto.
1730         (scc_visit): Ditto.
1731         (collapse_nodes): Ditto.
1732         (process_unification_queue): Ditto.
1733         (topo_visit): Ditto.
1734         (solve_graph): Ditto.
1735         (do_structure_copy): Ditto.
1736         (perform_var_substitution): Ditto.
1737         Init and release obstack.
1738         (handle_ptr_arith): Try to resolve directly.
1739         (find_func_aliases): Don't call update_alias_info here
1740         Handle RETURN_EXPR, and CALL_EXPR's in IPA mode.
1741         (do_sd_constraint): Add code for propagating faster.
1742         Update.
1743         (do_ds_constraint): Ditto.
1744         (count_num_arguments): New function.
1745         (create_function_info_for): Ditto.
1746         (create_variable_info_for): Handle FUNCTION_DECL.
1747         (intra_create_variable_infos): Use make_constraint_to_anything.
1748         (init_alias_vars): Init obstacks here.
1749         (need_to_solve): Handle zero weight graph changes.
1750         (compute_points_to_sets): Call update_alias_info here.
1751         (delete_points_to_sets): Free zero weight preds/succs here.
1752         (gate_ipa_pta): New.
1753         (ipa_pta_execute): New
1754
1755 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
1756
1757         * tree-ssa-structalias.c (var_anyoffset): Removed.
1758         (anyoffset_tree): Ditto.
1759         (anyoffset_id): Ditto.
1760         (do_deref): Take vector of constraints, no return value.
1761         Update to work on vector.                
1762         (get_constraint_for): Ditto.
1763         (get_constraint_for_component_ref): Ditto.
1764         (do_structure_copy): Ditto.
1765         (handle_ptr_arith): Ditto.
1766         (find_func_aliases): Ditto.
1767         (set_uids_in_ptset): Remove anyoffset handling.
1768         (init_base_vars): Ditto.
1769
1770 2005-12-10  Mark Mitchell  <mark@codesourcery.com>
1771
1772         PR c++/25010
1773         * ipa-inline.c (cgraph_clone_inlined_nodes): Do not assume that
1774         DECL_EXTERNAL functions have no bodies.  Tidy.
1775
1776 2005-12-10  Andreas Schwab  <schwab@suse.de>
1777
1778         * except.c (switch_to_exception_section): Only define if
1779         TARGET_UNWIND_INFO is not defined.
1780
1781 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
1782
1783         * config/darwin.h (HAS_INIT_SECTION): Remove definition.
1784         (INIT_SECTION_ASM_OP): Restore empty definition from before 2005-12-07.
1785
1786 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
1787
1788         * output.h (init_section, fini_section): Delete.
1789         * varasm.c (init_section, fini_section): Delete.
1790         (init_varasm_once): Don't initialize them.
1791         * doc/tm.texi (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Say that
1792         there are no corresponding varasm.c variables.
1793
1794 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
1795
1796         * dwarf2out.c (default_eh_frame_section): Delete, moving handling
1797         of EH_FRAME_SECTION_NAME into...
1798         (switch_to_eh_frame_section): ...here.  Try to set eh_frame_section
1799         if it is still null.
1800         * except.c (default_exception_section): Delete, moving most
1801         of the code to...
1802         (switch_to_exception_section): ...this new function.  Set
1803         exception_section if it is still null, then switch to it.
1804         (output_function_exception_table): Use switch_to_exception_section.
1805         * varasm.c (exception_section, eh_frame_section): Update comments.
1806         (get_section): Hoist use of SECTION_NAMED.
1807         (init_varasm_once): Don't set exception_section and eh_frame_section.
1808         * output.h (default_exception_section): Delete.
1809         (default_eh_frame_section): Delete.
1810
1811 2005-12-09  Bernd Schmidt  <bernd.schmidt@analog.com>
1812
1813         * config/bfin/bfin.c: Include "cgraph.h".
1814         (bfin_load_pic_reg): Omit loading pic reg if in a local function.
1815         Return the reg that holds the pointer to the GOT.
1816         (bfin_expand_prologue): Use return value of bfin_load_pic_reg when
1817         doing stack checking.
1818
1819 2005-12-09  Diego Novillo  <dnovillo@redhat.com>
1820
1821         * tree.c (recompute_tree_invariant_for_addr_expr): Rename from
1822         recompute_tree_invarant_for_addr_expr.
1823         Update uses everywhere.
1824
1825 2005-12-09  Aldy Hernandez  <aldyh@redhat.com>
1826
1827         * config/ms1/t-ms1 (MULTILIB_OPTIONS): Define.
1828         (MULTILIB_DIRNAMES): Define.
1829
1830 2005-12-09  Ulrich Weigand  <uweigand@de.ibm.com>
1831
1832         PR target/25311
1833         * config/s390/s390.c (struct s390_address): New field literal_pool.
1834         (s390_decompose_address): Compute literal_pool field.  Do not 
1835         assume register %r13 is always (and solely) used as pool base.
1836         (s390_extra_constraint_str): Use literal_pool field.
1837
1838 2005-12-09  Thiemo Seufer  <ths@networkno.de>
1839
1840         * config/mips/mips.c (override_options): Don't allow too small
1841         integers in FP registers.
1842
1843 2005-12-09  Ulrich Weigand  <uweigand@de.ibm.com>
1844
1845         * config/s390/s390.c (s390_function_ok_for_sibcall): Use
1846         targetm.binds_local_p to check for local function calls.
1847
1848 2005-12-09  Alan Modra  <amodra@bigpond.net.au>
1849
1850         PR debug/24908
1851         * dwarf2out.c (dwarf2out_frame_debug_expr): Don't assert that
1852         call_used_regs can't be used to save reg in another reg.
1853
1854 2005-12-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1855             Christophe Jaillet  <christophe.jaillet@wanadoo.fr>
1856
1857         * ipa-type-escape.c (analyze_variable): Use gcc_assert instead of
1858         abort.
1859         * except.c (output_ttype): Likewise.
1860         * tree-object-size.c (collect_object_sizes_for): Likewise.
1861         (check_for_plus_in_loops_1): Likewise.
1862         (check_for_plus_in_loops): Likewise.
1863         (compute_object_sizes): Use gcc_unreachable instead of abort.
1864
1865 2005-12-08  Nathan Sidwell  <nathan@codesourcery.com>
1866
1867         * config/ms1/ms1.md (UNSPEC_LOOP): New constant.
1868         (loop_end, loop_init, doloop_end): New insns.
1869         * config/ms1/ms1.h (LOOP_FIRST, LOOP_LAST): New.
1870         (SPECIAL_REG_FIRST, FIRST_PSEUDO_REGISTER): Adjust.
1871         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
1872         (REG_CLASS_CONTENTS, REGISTER_NAMES): Adjust.
1873         * config/ms1/ms1.c: #include basic-block.h
1874         (struct machine_function): Add has_loops field.
1875         (ms1_add_loop): New.
1876         (MAX_LOOP_DEPTH, MAX_LOO_LENGTH): New.
1877         (struct loop_info, struct loop_work): New.
1878         (ms1_loop_nesting, ms1_block_length, ms1_scan_loop): New workers.
1879         (ms1_reorg_loops): New loop optimization.
1880         (ms1_machine_reorg): Call it.
1881         * config/ms1/ms1-protos.h (ms1_add_loop): Declare.
1882
1883 2005-12-08  Zdenek Dvorak  <dvorakz@suse.cz>
1884
1885         PR tree-optimization/25248
1886         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Do not use
1887         evolution_of_loop from the failed attempt.  Remove handling
1888         of MULT_EXPR.
1889
1890 2005-12-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1891
1892         * tree.h (DECL_EXTERNAL): Clarify documentation.
1893
1894 2005-12-08  Andreas Krebbel  <krebbel1@de.ibm.com>
1895             Jakub Jelinek  <jakub@redhat.com>
1896
1897         PR target/25268
1898         * config/s390/s390.c (s390_decompose_shift_count): Remove BITS
1899         argument.  Don't drop outer ANDs.
1900         (s390_extra_constraint_str, print_shift_count_operand): Adjust callers.
1901         * config/s390/s390-protos.h (s390_decompose_shift_count): Adjust
1902         prototype.
1903         * config/s390/predicates.md (setmem_operand): Remove.
1904         (shift_count_operand): Rename to...
1905         (shift_count_or_setmem_operand): ... this.  Adjust
1906         s390_decompose_shift_count caller.
1907         * config/s390/s390.md (<shift>di3_31_and, <shift>di3_64_and,
1908         ashrdi3_cc_31_and, ashrdi3_cconly_31_and, ashrdi3_31_and,
1909         ashrdi3_cc_64_and, ashrdi3_cconly_64_and, ashrdi3_64_and,
1910         <shift>si3_and, ashrsi3_cc_and, ashrsi3_cconly_and, ashrsi3_and,
1911         rotl<mode>3_and, setmem_long_and): New insns.
1912         (<shift>di3_31, <shift>di3_64, ashrdi3_cc_31, ashrdi3_cconly_31,
1913         ashrdi3_31, ashrdi3_cc_64, ashrdi3_cconly_64, ashrdi3_64,
1914         <shift>si3, ashrsi3_cc, ashrsi3_cconly, ashrsi3, rotl<mode>3,
1915         <shift>di3, ashrdi3): Use shift_count_or_setmem_operand instead
1916         of shift_count_operand.
1917         (setmem_long): Use shift_count_or_setmem_operand instead of
1918         setmem_operand.
1919
1920 2005-12-08  Daniel Jacobowitz  <dan@codesourcery.com>  
1921             Andreas Tobler  <a.tobler@schweiz.ch>
1922
1923         * Makefile.in (ALL_GTFILES_H): Replace sed statement with more portable
1924         tr expression.
1925
1926 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
1927
1928         * expr.c (force_operand): Use convert_to_mode for conversions.
1929
1930 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
1931
1932         * reload.h (reg_equiv_invariant): Declare.
1933         * reload.c (refers_to_regno_for_reload_p): Allow R to be a pseudo
1934         register also when reg_equiv_invariant[R] is set.
1935
1936 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
1937             Andreas Tobler  <a.tobler@schweiz.ch>
1938
1939         * config/darwin.h: Guard section variables with #ifndef USED_FOR_TARGET.
1940
1941 2005-12-07  Daniel Berlin  <dberlin@dberlin.org>
1942
1943         * tree-ssa-pre.c (bitmap_set_and): New function.
1944         (bitmap_set_and_compl): New function.
1945         (bitmap_set_empty_p): New function.
1946         (insert_extra_phis): New function.
1947         (compute_avail): Use insert_extra_phis.
1948
1949 2005-12-07  Adrian Straetling  <straetling@de.ibm.com>
1950
1951         * config/s390/s390.c (s390_expand_atomic): New function.
1952         Adjust comment of helper functions.
1953         * config/s390/s390-protos.h (s390_expand_atomic): Declare.
1954         * config/s390/s390.md ("ATOMIC"): New code macro.
1955         ("atomic"): Corresponding new code attribute.
1956         ("sync_lock_test_and_set[hq]i", 
1957         "sync_{new_,old_,}{and,ior,xor,add,sub,nand}[hq]i"): New pattern.
1958
1959 2005-12-07  Adrian Straetling  <straetling@de.ibm.com>
1960
1961         * config/s390/s390.c (s390_expand_mask_and_shift, 
1962         struct alignment_context, init_alignment_context, 
1963         s390_expand_cs_hqi): New.
1964         * config/s390/s390-protos.h (s390_expand_cs_hqi): Declare.
1965         * config/s390/s390.md ("sync_compare_and_swaphi",
1966         "sync_compare_and_swapqi"): New pattern.
1967
1968 2005-12-07  Daniel Berlin <dberlin@dberlin.org>
1969
1970         Fix PR tree-optimization/25291
1971         * tree-ssa-operands.c (add_call_clobber_ops): Remove
1972         redundant and crashing check.
1973
1974 2005-12-08  Alan Modra  <amodra@bigpond.net.au>
1975
1976         PR target/25212
1977         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Relax
1978         tests further when !strict && reload_in_progress.
1979         (print_operand): Check that both operands of indexed address are regs.
1980         (print_operand_address): Likewise.
1981         * config/rs6000/rs6000.h (INT_REG_OK_FOR_INDEX_P): Simplify.
1982         (INT_REG_OK_FOR_BASE_P): Correct.
1983
1984 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
1985
1986         Preparation for PR rtl-optimization/20070 / part1
1987         * basic-block.h (insns_match_p, flow_find_cross_jump): Declare.
1988         * cfgcleanup.c (condjump_equiv_p): New function, broken out of
1989         outgoing_edges_match.
1990         (outgoing_edges_match): Use condjump_equiv_p.
1991         (merge_memattrs, insns_match_p, flow_find_cross_jump): Move from here
1992         into..
1993         * struct-equiv.c: New file.
1994         (death_notes_match_p) New function, broken out of insns_match_p.
1995         * Makefile.in (OBJS-common): Add struct-equiv.o.
1996         (struct-equiv.o): New target.
1997
1998 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
1999
2000         * coretypes.h: Revert previous change.
2001         * config/darwin.h: Revert previous reversion.
2002         * config/avr/avr.h (progmem_section): Guard with #ifndef IN_LIBGCC2.
2003
2004 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
2005
2006         * coretypes.h (section): Provide dummy definition for target files.
2007         * config/darwin.h: Revert previous change.
2008
2009 2005-12-07  Rafael vila de Espndola  <rafael.espindola@gmail.com>
2010
2011         * doc/sourcebuild.texi (all.build, install-normal): Remove.
2012         * configure.ac: Remove all.build and install-normal from target_list
2013         * configure: Regenerate.
2014         * Makefile.in (install): Don't depend on install-normal.
2015
2016 2005-12-07  Rafael vila de Espndola  <rafael.espindola@gmail.com>
2017
2018         * Makefile.in: Document the use of stamps.
2019
2020 2005-12-07  Rafael vila de Espndola  <rafael.espindola@gmail.com>
2021
2022         * doc/gty.texi: Remove instructions for adding a dependency on s-gtype.
2023         * Makefile.in: Add code to compute some dependencies on s-gtype
2024         automatically.  Remove the declaration of those dependencies.
2025
2026 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
2027
2028         * gcc/reload.c (push_secondary_reload): Fix typo:
2029         s/insn_constraint/scratch_constraint/.
2030
2031 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
2032
2033         * config/darwin.h: Guard section variables with #ifndef IN_LIBGCC2.
2034
2035 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
2036
2037         * config/alpha/alpha.c (alpha_start_function): Use switch_to_section.
2038         (alpha_elf_select_rtx_section): Return the selected section rather
2039         than emitting assembly code.
2040         (alpha_write_linkage): Emit a ".link" directive directly and then
2041         set in_section to NULL.
2042         (vms_asm_out_constructor): Use switch_to_section.
2043         (vms_asm_out_destructor): Likewise.
2044         (unicosmk_output_common): Set in_section to NULL instead of calling
2045         the dummy common_section function.
2046         (unicosmk_text_section): Delete in favor of...
2047         (unicosmk_output_text_section_asm_op): ...this new function.
2048         (unicosmk_data_section): Delete in favor of...
2049         (unicosmk_output_data_section_asm_op): ...this new function.
2050         (unicosmk_init_sections): New function.
2051         (unicosmk_output_deferred_case_vectors): Use switch_to_section.
2052         (unicosmk_output_ssib): Set in_section to NULL instead of calling
2053         the dummy ssib_section function.
2054         (unicosmk_section_buf): Delete.
2055         * config/alpha/alpha-protos.h (unicosmk_text_section): Delete.
2056         (unicosmk_data_section): Delete.
2057         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
2058         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, sbss_section, sdata_section)
2059         (SECTION_FUNCTION_TEMPLATE): Delete.
2060         * config/alpha/unicosmk.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP)
2061         (READONLY_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2062         (common_section, COMMON_SECTION, ssib_section, SSIB_SECTION): Delete.
2063         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
2064         (TARGET_ASM_INIT_SECTIONS): Define.
2065         * config/alpha/vms.h (LINK_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP)
2066         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2067         (link_section, literals_section): Delete.
2068         (ASM_OUTPUT_DEF): Emit the ".literal" directive directly and then
2069         set in_section to NULL.
2070
2071         * config/arm/aof.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Delete.
2072         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, ZERO_INIT_SECTION): Delete.
2073         (COMMON_SECTION): Delete.
2074         (TARGET_ASM_INIT_SECTIONS): Define.
2075         (ASM_OUTPUT_COMMON): Set in_section to NULL rather than calling
2076         the dummy common_section function.
2077         * config/arm/aout.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
2078         * config/arm/arm.c (get_jump_table_size): Use pointer comparison
2079         between readonly_data_section and text_section to check whether
2080         read-only data is being put in the text section.
2081         (arm_output_function_epilogue): Use switch_to_section.
2082         (arm_elf_asm_constructor): Likewise.
2083         (thumb_call_via_reg): Replace call to in_text_section with
2084         a comparison between in_section and text_section.
2085         (arm_file_end): Use switch_to_section.
2086         (aof_text_section): Delete in favor of...
2087         (aof_output_text_section_asm_op): ...this new function.
2088         (aof_data_section): Delete in favor of...
2089         (aof_output_data_section_asm_op): ...this new function.
2090         (aof_asm_init_sections): New function.
2091         (zero_init_section): Moved from config/arm/aof.h.
2092         (aof_dump_imports, aof_file_start): Use switch_to_section.
2093         * config/arm/arm.h (thumb_call_via_label): Update comment.
2094         * config/arm/arm-protos.h (aof_text_section, aof_data_section): Delete.
2095         (common_section): Delete.
2096         * config/arm/pe.h (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
2097         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
2098         global switch_to_section function instead of the old port-local one.
2099         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION)
2100         (SWITCH_TO_SECTION_FUNCTION): Delete.
2101         (drectve_section): Redefine as a macro.
2102         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS):
2103         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use get_named_section and
2104         switch_to_section.
2105
2106         * config/avr/avr.c (progmem_section): New variable.
2107         (avr_output_progmem_section_asm_op): New function.
2108         (avr_asm_init_sections): New function.
2109         (avr_output_addr_vec_elt): Use switch_to_section.
2110         * config/avr/avr.h (progmem_section): Declare.
2111         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2112         (READONLY_DATA_SECTION): Delete.
2113         (TARGET_ASM_INIT_SECTIONS): Define.
2114         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
2115         * config/avr/avr-protos.h (progmem_section): Delete.
2116
2117         * config/bfin/bfin.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
2118
2119         * config/c4x/c4x.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2120         (INIT_SECTION_FUNCTION, FINI_SECTION_FUNCTION): Delete.
2121
2122         * config/darwin-sections.def: New file.
2123         * config/darwin.c: Define all sections in darwin-sections.def.
2124         (output_objc_section_asm_op, darwin_init_sections): New functions.
2125         (machopic_output_indirection): Use switch_to_section.
2126         (machopic_select_section): Return the selected section rather than
2127         emitting assembly code.  Replace the static function table with
2128         inline conditional expressions.  Update the tests of last_text_section
2129         and move them into the FUNCTION_DECL block.
2130         (machopic_select_rtx_section): Return the selected section rather than
2131         emitting assembly code.
2132         (machopic_asm_out_constructor, machopic_asm_out_destructor)
2133         (darwin_file_end): Use switch_to_section.
2134         * config/darwin.h: Use darwin-sections.def to declare sections.
2135         (INIT_SECTION_ASM_OP): Remove empty definition.
2136         (HAS_INIT_SECTION): Define this instead.
2137         (SECTION_FUNCTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2138         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
2139         (TARGET_ASM_EH_FRAME_SECTION): Delete.
2140         (TARGET_ASM_INIT_SECTIONS): Define.
2141         * config/darwin-protos.h (darwin_init_sections): Declare.
2142         (machopic_picsymbol_stub_section, machopic_picsymbol_stub1_section)
2143         (machopic_symbol_stub_section, machopic_symbol_stub1_section): Delete.
2144         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
2145         (constructor_section, destructor_section, mod_init_section): Delete.
2146         (mod_term_section): Delete.
2147         (darwin_exception_section, darwin_eh_frame_section): Delete.
2148         (machopic_select_section): Return a section.
2149         (machopic_select_rtx_section): Likewise.
2150         (text_coal_section, text_unlikely_section, text_unlikely_coal_section)
2151         (const_section, const_coal_section, const_data_section): Delete.
2152         (const_data_coal_section, data_coal_section, cstring_section): Delete.
2153         (literal4_section, literal8_section, constructor_section): Delete.
2154         (mod_init_section, mod_term_section, destructor_section): Delete.
2155         (objc_class_section, objc_meta_class_section, objc_category_section)
2156         (objc_class_vars_section, objc_instance_vars_section): Delete.
2157         (objc_cls_meth_section, objc_inst_meth_section): Delete.
2158         (objc_cat_cls_meth_section, objc_cat_inst_meth_section): Delete.
2159         (objc_selector_refs_section, objc_selector_fixup_section): Delete.
2160         (objc_symbols_section, objc_module_info_section): Delete.
2161         (objc_image_info_section, objc_protocol_section): Delete.
2162         (objc_string_object_section, objc_constant_string_object_section)
2163         (objc_class_names_section, objc_meth_var_names_section): Delete.
2164         (objc_meth_var_types_section, objc_cls_refs_section): Delete.
2165         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
2166         (machopic_symbol_stub_section, machopic_picsymbol_stub_section)
2167         (darwin_exception_section, darwin_eh_frame_section): Delete.
2168         * config/t-darwin (darwin.o): Depend on config/darwin-sections.def.
2169
2170         * config/frv/frv.c (frv_asm_out_constructor): Use switch_to_section.
2171         (frv_asm_out_destructor): Likewise.
2172         * config/frv/frv.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2173         (SDATA_SECTION_FUNCTION, FIXUP_SECTION_FUNCTION): Delete.
2174         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use switch_to_section and
2175         get_named_section.
2176         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
2177         * config/frv/frv-protos.h (fixup_section, sdata_section, sbss_section)
2178         (data_section): Delete.
2179
2180         * config/i386/cygming.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2181         (DRECTVE_SECTION_FUNCTION): Delete.
2182         (drectve_section): Redefine as a macro that sets in_section after
2183         emitting the directive.
2184         (SWITCH_TO_SECTION_FUNCTION): Delete.
2185         * config/i386/darwin.h (ASM_OUTPUT_ALIGN): Replace call to
2186         in_text_section with comparison between in_section and text_section.
2187         * config/i386/i386.c (x86_64_elf_select_section): Return the section
2188         rather than emitting assembly code.  Use get_named_section.
2189         (x86_output_aligned_bss, ix86_file_end): Use switch_to_section and
2190         get_named_section.
2191         (machopic_output_stub): Use switch_to_section.
2192         * config/i386/nwld.c (nwld_named_section_asm_out_constructor)
2193         (nwld_named_section_asm_out_destructor): Use get_section and
2194         switch_to_section.
2195
2196         * config/ia64/ia64.c (ia64_select_rtx_section): Return the section
2197         rather than emitting assembly code.
2198         (ia64_rwreloc_select_section): Likewise.
2199         (ia64_rwreloc_select_rtx_section): Likewise.
2200         * config/ia64/ia64-protos.h (sdata_section, sbss_section): Delete.
2201         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
2202         switch_to_section.
2203         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2204         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Delete.
2205
2206         * config/iq2000/iq2000.c (iq2000_select_rtx_section): Return the
2207         section rather than emitting assembly code.
2208         (iq2000_select_section): Likewise.
2209         * config/iq2000/iq2000.h (rdata_section, sdata_section): Delete.
2210         (sbss_section): Delete.
2211
2212         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use switch_to_section
2213         and get_named_section.
2214         * config/m32r/m32r-protos.h (sbss_section, sdata_section): Delete.
2215
2216         * config/mcore/mcore-elf.h (EXPORTS_SECTION_ASM_OP): Delete.
2217         (SUBTARGET_EXTRA_SECTIONS, SUBTARGET_EXTRA_SECTION_FUNCTIONS): Delete.
2218         (EXPORT_SECTION_FUNCTION, SUBTARGET_SWITCH_SECTIONS): Delete.
2219         (MCORE_EXPORT_NAME): Emit the exports directive directly, then set
2220         in_section to NULL.
2221         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
2222         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
2223         global switch_to_section function instead of the old port-local one.
2224         * config/mcore/mcore.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2225         (SWITCH_SECTION_FUNCTION): Delete.
2226         * config/mcore/mcore-pe.h (SUBTARGET_SWITCH_SECTIONS): Delete.
2227         (DRECTVE_SECTION_ASM_OP, SUBTARGET_EXTRA_SECTIONS): Delete.
2228         (SUBTARGET_EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION): Delete.
2229         (MCORE_EXPORT_NAME): Emit ".section .drectve" directly, then set
2230         in_section to NULL.
2231         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
2232         global switch_to_section function instead of the old port-local one.
2233         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
2234
2235         * config/mips/mips.c (mips_file_start): Update comment.
2236         (mips_output_aligned_bss): Use switch_to_section and get_named_section.
2237         (mips_output_aligned_decl_common): Use switch_to_section.
2238         (mips_select_rtx_section): Return the section rather than emitting
2239         assembly code.  Use get_named_section.
2240         (mips_function_rodata_section: Likewise get_section.
2241         (build_mips16_function_stub): Use switch_to_section.
2242         * config/mips/mips.h (ASM_OUTPUT_IDENT): Use switch_to_section.
2243         (SDATA_SECTION_ASM_OP): Delete.
2244         * config/mips/vxworks.h (EXTRA_SECTIONS): Delete.
2245         (EXTRA_SECTION_FUNCTIONS): Delete.
2246
2247         * config/mmix/mmix.c (mmix_file_start, mmix_file_end)
2248         (mmix_asm_output_aligned_local): Use switch_to_section.
2249
2250         * config/pa/pa.c (som_readonly_data_section, som_one_only_data_section)
2251         (som_one_only_readonly_data_section): New variables.
2252         (pa_output_function_epilogue): Set in_section to NULL instead of
2253         calling forget_section.
2254         (output_deferred_plabels): Use select_section.
2255         (pa_asm_output_mi_thunk): Likewise.  Set in_section to NULL instead
2256         of calling forget_section.
2257         (pa_asm_output_aligned_bss, pa_asm_output_aligned_common)
2258         (pa_asm_output_aligned_local): Use select_section.
2259         (som_text_section_asm_op): Delete in favor of...
2260         (som_output_text_section_asm_op): ...this new function.
2261         (pa_som_asm_init_sections): New function.
2262         (pa_select_section): Return the section rather than emitting
2263         assembly code.
2264         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2265         (SOM_READONLY_DATA_SECTION_FUNCTION): Delete.
2266         (SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION): Delete.
2267         (SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): Delete.
2268         * config/pa/pa-protos.h (som_text_section_asm_op): Delete.
2269         (som_readonly_data_section, som_one_only_readonly_data_section)
2270         (som_one_only_data_section, forget_section): Delete.
2271         * config/pa/som.h (TEXT_SECTION_ASM_OP): Delete.
2272         (TARGET_ASM_INIT_SECTIONS): Define.
2273         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
2274
2275         * config/rs6000/rs6000.c (read_only_data_section): New variable.
2276         (private_data_section, read_only_private_data_section): New variables.
2277         (sdata2_section, toc_section): New variables.
2278         (rs6000_file_start): Use switch_to_section.
2279         (rs6000_assemble_integer): Use comparisons against in_section
2280         instead of calling in_toc_section and in_text_section.  Use
2281         unlikely_text_section_p.
2282         (rs6000_elf_output_toc_section_asm_op): New function, derived
2283         from the old rs6000/sysv4.h toc_section function.
2284         (rs6000_elf_asm_init_sections): New function.
2285         (rs6000_elf_select_rtx_section, rs6000_elf_select_section): Return
2286         the section rather than emitting assembly code.
2287         (machopic_output_stub): Use switch_to_section.
2288         (toc_section): Delete dummy function.
2289         (rs6000_elf_asm_out_constructor, rs6000_elf_asm_out_destructor): Use
2290         switch_to_section and get_section.
2291         (rs6000_xcoff_output_readonly_section_asm_op): New function.
2292         (rs6000_xcoff_output_readwrite_section_asm_op): New function.
2293         (rs6000_xcoff_output_toc_section_asm_op): New function, derived from
2294         the old rs6000/xcoff.h toc_section function.
2295         (rs6000_xcoff_asm_init_sections): New function.
2296         (rs6000_xcoff_select_section, rs6000_xcoff_select_rtx_section): Return
2297         the section rather than emitting assembly code.
2298         (rs6000_xcoff_file_start): Use switch_to_section.
2299         (rs6000_xcoff_file_end): Likewise.
2300         * config/rs6000/rs6000-protos.h (toc_section, sdata_section): Delete.
2301         (sdata2_section, sbss_section, private_data_section): Delete.
2302         (read_only_data_section, read_only_private_data_section): Delete.
2303         * config/rs6000/sysv4.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2304         (TOC_SECTION_FUNCTION, SDATA_SECTION_FUNCTION, SDATA2_SECTION_FUNCTION)
2305         (SBSS_SECTION_FUNCTION, INIT_SECTION_FUNCTION): Delete.
2306         (FINI_SECTION_FUNCTION): Delete.
2307         (TARGET_ASM_INIT_SECTIONS): Define.
2308         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
2309         * config/rs6000/xcoff.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2310         (READ_ONLY_DATA_SECTION_FUNCTION, PRIVATE_DATA_SECTION_FUNCTION)
2311         (READ_ONLY_PRIVATE_DATA_SECTION_FUNCTION, TOC_SECTION_FUNCTION)
2312         (READONLY_DATA_SECTION): Delete.
2313         (TARGET_ASM_INIT_SECTIONS): Define.
2314         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.  Set in_section
2315         to NULL rather than no_section.
2316         (TARGET_ASM_EXCEPTION_SECTION): Delete.
2317
2318         * config/sh/sh.c (sh_file_start): Use switch_to_section.
2319
2320         * config/sparc/sparc.c (emit_pic_helper): Use switch_to_section.
2321         (sparc_output_deferred_case_vectors): Likewise.  Remove argument
2322         from call to current_function_section.
2323
2324         * config/stormy16/stormy16.c: Include ggc.h and gt-storm16.h.
2325         (bss100_section): New variable.
2326         (xstormy16_asm_output_aligned_common): Use switch_to_section.
2327         (xstormy16_asm_init_sections): New function.
2328         (xstormy16_asm_out_destructor, xstormy16_asm_out_constructor): Use
2329         switch_to_section and get_section.
2330         (xstormy16_output_addr_vec): Use switch_to_section.  Remove argument
2331         from calls to current_function_section.
2332         * config/stormy16/stormy16.h (EXTRA_SECTIONS): Delete.
2333         (XSTORMY16_SECTION_FUNCTION, EXTRA_SECTION_FUNCTIONS): Delete.
2334         (TARGET_ASM_INIT_SECTIONS): Define.
2335         * config/stormy16/stormy16-protos.h (bss100_section): Delete.
2336
2337         * config/svr3.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
2338         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, INIT_SECTION_FUNCTION)
2339         (FINI_SECTION_FUNCTION): Delete.
2340
2341         * config/v850/v850.c: Include gt-v850.h.
2342         (rosdata_section, rozdata_section, tdata_section, zdata_section)
2343         (zbss_section): New variables.
2344         (v850_output_aligned_bss): Use switch_to_section.
2345         (v850_asm_init_sections): New function.
2346         (v850_select_section): Return the section rather than emitting
2347         assembly code.
2348         * config/v850/v850.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
2349         (ZDATA_SECTION_ASM_OP, ZBSS_SECTION_ASM_OP, TDATA_SECTION_ASM_OP)
2350         (ROSDATA_SECTION_ASM_OP, ROZDATA_SECTION_ASM_OP): Delete.
2351         (TARGET_ASM_INIT_SECTIONS): Define.
2352         * config/v850/v850-protos.h (sdata_section, rosdata_section): Delete.
2353         (sbss_section, tdata_section, zdata_section, rozdata_section): Delete.
2354         (zbss_section): Delete.
2355
2356         * config/vax/vaxv.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
2357
2358         * config/vx-common.h (vxworks_exception_section): Delete.
2359         (TARGET_ASM_EXCEPTION_SECTION): Delete.
2360
2361         * config/xtensa/xtensa.c (xtensa_select_rtx_section): Return the
2362         section rather than emitting assembly code.
2363         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Use
2364         switch_to_section.
2365
2366         * Makefile.in (GTFILES): Add $(srcdir)/output.h.
2367         * coretypes.h (section): New union and typedef.
2368         * dbxout.c (FORCE_TEXT): Use switch_to_section.  Remove argument
2369         from call to current_function_section.
2370         (dbxout_function_end, dbxout_init, dbxout_source_file, dbxout_finish)
2371         (dbxout_symbol_location): Use switch_to_section.
2372         * dwarf2out.c (named_section_eh_frame_section): Delete, moving
2373         most of the code into...
2374         (default_eh_frame_section): ...here.  Return a section.
2375         (collect2_eh_frame_section): Delete, moving most of the code into..
2376         (switch_to_eh_frame_section): ...this new function.
2377         (debug_info_section, debug_abbrev_section, debug_aranges_section)
2378         (debug_macinfo_section, debug_line_section, debug_loc_section)
2379         (debug_pubnames_section, debug_str_section, debug_ranges_section): New
2380         variables.
2381         (output_call_frame_info): Call switch_to_eh_frame_section instead of
2382         eh_frame_section.  Use switch_to_section and get_section.
2383         (dwarf2out_begin_prologue): Use switch_to_section.
2384         (AT_string_form): Check the flags in debug_str_section instead of
2385         DEBUG_STR_SECTION_FLAGS.
2386         (output_comp_unit): Use switch_to_section, get_section, and
2387         debug_info_section.
2388         (output_line_info, secname_for_decl): Use unlikely_text_section_p.
2389         (dwarf2out_begin_block): Use switch_to_section.  Remove argument
2390         from call to current_function_section.
2391         (dwarf2out_var_location): Use unlikely_text_section_p.
2392         (dwarf2out_source_line): Use switch_to_section.  Remove argument
2393         from call to current_function_section.
2394         (dwarf2out_start_source_file, dwarf2out_end_source_file)
2395         (dwarf2out_define, dwarf2out_undef: Use switch_to_section and
2396         debug_macinfo_section.
2397         (dwarf2out_init): Initialize the new section variables.  Use them
2398         instead of calls to named_section_flags.  Use switch_to_section.
2399         (output_indirect_string): Use switch_to_section and debug_str_section.
2400         (dwarf2out_finish): Use switch_to_section and the new section
2401         variables.
2402         * except.c (default_exception_section): Return the section instead
2403         of emitting assembly code.
2404         (output_function_exception_table): Use the global exception_section
2405         variable instead of the target hook.  Use switch_to_section.  Remove
2406         argument from call to current_function_section.
2407         * final.c (HAVE_READONLY_DATA_SECTION): Delete.
2408         (shorten_branches): Use pointer comparisons to detect whether the
2409         text section is the same as readonly_data_section.
2410         (profile_function): Use switch_to_section.  Remove argument from
2411         call to current_function_section.
2412         (final_scan_insn): Likewise.  Update use of last_text_section.
2413         * gengtype.c (open_base_files): Add an include of output.h.
2414         * output.h (text_section, data_section, readonly_data_section)
2415         (ctors_section, dtors_section, bss_section, init_section)
2416         (fini_section, sdata_section): Turn into section pointers.
2417         (in_text_section, in_unlikely_text_section, exports_section)
2418         (drectve_section, named_section, mergeable_string_section)
2419         (last_text_section_name): Delete.
2420         (default_exception_section, default_eh_frame_section): Return sections.
2421         (SECTION_DECLARED, SECTION_NAMED): New macros.
2422         (SECTION_MACH_DEP): Bump value.
2423         (section_common, named_section, unnamed_section): New structures.
2424         (unnamed_section_callback): New typedef.
2425         (section): New union.
2426         (sbss_section, exception_section, eh_frame_section): New variables.
2427         (in_section, last_text_section): Turn into section pointers.
2428         (get_unnamed_section, get_section, get_named_section): New functions.
2429         (mergeable_constant_section, function_section): Return a section.
2430         (unlikely_text_section): Likewise.
2431         (current_function_section): Likewise.  Remove the decl argument.
2432         (unlikely_text_section_p, switch_to_section): New functions.
2433         (output_section_asm_op): New function.
2434         (set_named_section_flags, named_section_flags, named_section_real)
2435         (named_section_first_declaration): Delete.
2436         (default_select_section, default_elf_select_section): Return a section.
2437         (default_elf_select_section_1, default_function_rodata_section)
2438         (default_no_function_rodata_section, default_select_rtx_section)
2439         (default_elf_select_rtx_section): Likewise.
2440         * rtl.h (in_data_section): Delete.
2441         * sdbout.c (sdbout_one_type): Use switch_to_section.
2442         * system.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Poison.
2443         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Poison.
2444         (TARGET_ASM_EH_FRAME_SECTION): Poison.
2445         * target-def.h (TARGET_ASM_INIT_SECTIONS): New macro.
2446         (TARGET_ASM_EXCEPTION_SECTION, TARGET_ASM_EH_FRAME_SECTION): Delete.
2447         (TARGET_ASM_OUT): Update after above changes.
2448         * target.h (init_sections): New hook.
2449         (exception_section, eh_frame_section): Delete.
2450         (select_section, select_rtx_section, function_rodata_section): Return
2451         a section rather than emitting assembly code.
2452         * varasm.c (text_section, data_section, readonly_data_section)
2453         (ctors_section, dtors_section, bss_section, init_section)
2454         (fini_section): Turn into section pointers.
2455         (sdata_section, sbss_section, exception_section): New variables.
2456         (eh_frame_section): New variable.
2457         (in_section): Make global and turn into a section pointer.
2458         (last_text_section): Turn into a section pointer.
2459         (unnamed_sections): New variable.
2460         (in_named_name, last_text_section_name): Delete.
2461         (EXTRA_SECTION_FUNCTIONS): Delete.
2462         (in_named_entry): Delete.
2463         (section_htab): New variable, replacing...
2464         (in_named_htab): ...this deleted variable.
2465         (section_entry_eq, section_entry_hash): New functions, based on...
2466         (in_named_entry_eq, in_named_entry_hash): ...these deleted functions.
2467         (get_unnamed_section, get_section): New functions.
2468         (unlikely_text_section): Return a section instead of emitting
2469         assembly code.
2470         (in_text_section, in_unlikely_text_section, in_data_section): Delete.
2471         (get_named_section_flags, named_section_first_declaration): Delete.
2472         (unlikely_text_section_p): New function.
2473         (named_section_real, named_section): Delete.
2474         (get_named_section): New function.
2475         (asm_output_bss, asm_output_aligned_bss): Use switch_to_section.
2476         (function_section): Return a section rather than emitting
2477         assembly code.
2478         (current_function_section): Likewise.  Remove argument.  Use
2479         last_text_section if nonnull, otherwise use function_section.
2480         (default_function_rodata_section): Return a section rather than
2481         emitting assembly code.  Use get_section.
2482         (default_no_function_rodata_section): Return a section rather than
2483         emitting assembly code.
2484         (variable_section): Use switch_to_section and get_named_section.
2485         (mergeable_string_section): Return a section rather than emitting
2486         assembly code.  Use get_section.  Make static.  Don't take special
2487         countermeasures for empty strings.
2488         (mergeable_constant_section): Return a section rather than emitting
2489         assembly code.  Use get_section.
2490         (default_named_section_asm_out_destructor): Use switch_to_section
2491         and get_section.
2492         (default_dtor_section_asm_out_destructor): Use switch_to_section.
2493         (default_named_section_asm_out_constructor): Use switch_to_section
2494         and get_section.
2495         (default_ctor_section_asm_out_constructor): Use switch_to_section.
2496         (assemble_start_function): Likewise.  Set last_text_section to
2497         NULL rather than no_section.  Change the type of save_section.
2498         (assemble_zeros, assemble_variable): Use the section flags to detect
2499         whether or not a section is text.
2500         (assemble_static_space): Use switch_to_section.
2501         (assemble_trampoline_template): Likewise.
2502         (output_constant_def_contents): Use switch_to_section and
2503         get_named_section.
2504         (output_constant_pool_1): Use switch_to_section.  Use the section
2505         flags to see whether sections contain mergeable data.
2506         (init_varasm_once): Initialize section_htab instead of in_named_htab.
2507         Initialize new section variables.  Call TARGET_ASM_INIT_SECTIONS.
2508         (default_elf_asm_named_section): Use SECTION_DECLARED to detect
2509         whether a section has already been declared.
2510         (default_select_section, default_elf_select_section): Return a
2511         section rather than emitting assembly code.
2512         (default_elf_select_section_1): Likewise.  Use bss_section for
2513         SECCAT_BSS if nonnull.  Use get_named_section.
2514         (default_select_rtx_section): Return a section rather than
2515         emitting assembly code.
2516         (default_elf_select_rtx_section): Likewise.  Use get_named_section.
2517         (file_end_indicate_exec_stack): Use switch_to_section and get_section.
2518         (output_section_asm_op, switch_to_section): New functions.
2519         * vmsdbgout.c (vmsdbgout_finish): Use switch_to_section and
2520         get_named_section.
2521
2522         * doc/tm.texi: Expand the introduction to the sections documentation.
2523         (TRAMPOLINE_SECTION): Document new interface.
2524         (SDATA_SECTION_ASM_OP): Document new macro.
2525         (READONLY_DATA_SECTION): Delete.
2526         (SDATA_SECTION_ASM_OP): Document new macro.
2527         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2528         (TARGET_ASM_INIT_SECTIONS): Document new hook.
2529         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_FUNCTION_RODATA_SECTION)
2530         (TARGET_ASM_SELECT_RTX_SECTION): Adjust for new interface.
2531         (TARGET_EXCEPTION_SECTION, TARGET_EH_FRAME_SECTION): Delete.
2532
2533 2005-12-07  Alan Modra  <amodra@bigpond.net.au>
2534
2535         * gcc.c (init_gcc_specs): Match braces inside conditionally
2536         compiled strings.
2537
2538 2005-12-06  Geoffrey Keating  <geoffk@apple.com>
2539
2540         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): New.
2541
2542 2005-12-06  Aldy Hernandez  <aldyh@redhat.com>
2543
2544         PR C++/24138
2545         * tree.c (integer_all_onesp): Always return true if all bits on.
2546
2547         * testsuite/g++.dg/init/array0.C: New.
2548
2549 2005-12-06  Adrian Straetling  <straetling@de.ibm.com>
2550
2551         * doc/md.texi: Adapt to implementation.
2552
2553 2005-12-06  Andreas Schwab  <schwab@suse.de>
2554
2555         * opts.c (decode_options): Fix typo in message.
2556
2557 2005-12-06  Alan Modra  <amodra@bigpond.net.au>
2558
2559         PR other/13873
2560         * longlong.h: Merge PPC tests from upstream.
2561
2562 2005-12-06  Richard Guenther  <rguenther@suse.de>
2563
2564         * fold-const.c (fold_convert): Do not build and fold
2565         CONVERT_EXPR, but always use NOP_EXPR.
2566
2567 2005-12-06  Jan Beulich  <jbeulich@novell.com>
2568
2569         * config/i386/i386.c (builtin_description): Use MASK_SSE2 for
2570         __builtin_ia32_paddq and __builtin_ia32_psubq.
2571         (ix86_init_mmx_sse_builtins): Use MASK_SSE|MASK_3DNOW_A for
2572         __builtin_ia32_pshufw.
2573         * config/i386/i386.md (mmx_adddi3, mmx_subdi3): Depend on TARGET_SSE2.
2574
2575 2005-12-05  James E Wilson  <wilson@specifix.com>
2576
2577         PR target/24934
2578         * opts.c (decode_options): Turn off partitioning if flag_unwind_tables
2579         is set.
2580
2581 2005-12-05  Daniel Berlin  <dberlin@dberlin.org>
2582         
2583         * print-tree.c (print_node): Ditto.
2584         * tree-dfa.c (add_referenced_var): Tag's don't have DECL_INITIAL.
2585         * tree-dump.c (dequeue_and_dump): Check for decl_common structure
2586         before accessing DECL_ARTIFICIAL. 
2587         Handle new tag tree codes.
2588         * tree-flow-inline.h (clear_call_clobbered): Update for tag
2589         changes.
2590         (unmodifiable_var_p): Ditto.
2591         * tree-flow.h (mem_tag_kind): Remove.
2592         (struct var_ann_d): Remove mem_tag_kind member.
2593         * tree-gimple.c (is_gimple_reg): Tags are not gimple registers.
2594         * tree-pretty-print.c (dump_generic_node): Handle memory tags.
2595         * tree-ssa-alias.c (init_alias_info): Update for memory tag changes.
2596         (group_aliases): Ditto.
2597         (setup_pointers_and_addressables): Ditto.
2598         (is_escape_site): Ditto.                                          
2599         (may_alias_p): Ditto.
2600         (create_tag_raw): New function.
2601         (create_memory_tag): Use it.
2602         (dump_alias_info): Update for tags.
2603         (may_be_aliased): Ditto.
2604         (add_type_alias): Ditto.
2605         (new_type_alias): Ditto.
2606         (create_sft): Ditto.
2607         (create_structure_vars): Ditto.
2608         * tree-ssa-ccp.c (get_default_value): Ditto.
2609         * tree-ssa-operands.c (get_expr_operands): Ditto.
2610         (add_stmt_operand): Ditto.
2611         (add_call_clobber_ops): Remove duplicated condition.
2612         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
2613         tags.
2614         * tree-tailcall.c (suitable_for_tail_opt_p): Ditto.
2615         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
2616         * tree.c (init_ttree): Update structures for new tree codes.
2617         (tree_code_size): Update sizes for new tree codes.
2618         (make_node_stat): Don't try to set common things on minimal
2619         structures.
2620         (tree_node_structure): Update for tags.
2621         (is_global_var): Ditto.
2622         * tree.def: Add new tree codes.
2623         * tree.h (MTAG_P): New macro.
2624         (TREE_MEMORY_TAG_CHECK): Ditto.
2625         (SSA_VAR_P): Update for tags.
2626         (struct tree_memory_tag): New structure.
2627         (MTAG_GLOBAL): New macro.
2628         (union tree_node): Add memory tag member.
2629         * treestruct.def (TS_MEMORY_TAG): New.
2630         
2631 2005-12-05  Dale Johannesen  <dalej@apple.com>
2632
2633         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS):  Fix to match
2634         what was approved (PR 24323).
2635
2636 2005-12-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2637
2638         * doc/c-tree.texi (Function Bodies): Remove description of
2639         RETURN_INIT.
2640
2641 2005-12-05  Joseph S. Myers  <joseph@codesourcery.com>
2642
2643         * doc/libgcc.texi (__floatunsisf, __floatunsidf, __floatunsitf,
2644         __floatunsixf, __floatundisf, __floatundidf, __floatunditf,
2645         __floatundixf, __floatuntisf, __floatuntidf, __floatuntitf,
2646         __floatuntixf, __powisf2, __powidf2, __powixf2, __mulsc3,
2647         __muldc3, __multc3, __mulxc3, __divsc3, __divdc3, __divtc3,
2648         __divxc3): Document.
2649
2650 2005-12-05  Geoffrey Keating  <geoffk@apple.com>
2651
2652         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Preserve
2653         previous behaviour.
2654         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Define to
2655         hook_bool_void_false.
2656         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
2657         * config/darwin.c (darwin_cxx_determine_class_data_visibility): New.
2658
2659         * config/darwin.c (machopic_select_section): It's not defined
2660         as weak if it's only marked as weak_import.
2661         
2662         * config/darwin-protos.h (darwin_cxx_determine_class_data_visibility):
2663         Prototype.
2664
2665         * varasm.c (default_binds_local_p_1): Weakrefs don't bind locally.
2666         A hidden weak object does bind locally.  Strong linkonce data
2667         counts like any other strong symbol for binding.
2668         (weak_finish_1): Don't specially handle weakrefs, they no longer
2669         arrive here.
2670         (assemble_alias): Weakrefs can't be TREE_PUBLIC yet.
2671         * c-common.c (handle_alias_attribute): Allow static aliases
2672         of variables.
2673         (handle_weakref_attribute): Don't call declare_weak on weakrefs.
2674         * gthr-dce.h: Make weakrefs static.
2675         * gthr-tpf.h: Likewise.
2676         * gthr-solaris.h: Likewise.
2677         * gthr-posix.h: Likewise.
2678         * gthr-posix95.h: Likewise.
2679         * config/darwin.c (darwin_encode_section_info): static weakref
2680         variables are not necessarily defined in this translation unit.
2681         * doc/extend.texi (Function Attributes): Mention that an alias
2682         attribute creates a definition for the thing it's attached to.
2683         Change the documentation for weakref to say that the thing
2684         it's attached to must be static.
2685
2686         * config/rs6000/host-darwin.c (segv_handler): Unblock SEGV so
2687         we don't go into an infinite loop.
2688
2689 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
2690
2691         * config/rs6000/predicates.md (logical_const_operand): Split
2692         out of logical_operand.
2693         (logical_operand): Use it.
2694         * config/rs6000/rs6000.md (cmp -> xor peephole2): Use
2695         logical_const_operand.
2696
2697 2005-12-05  Jan Beulich  <jbeulich@novell.com>
2698
2699         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_CMPNEPS
2700         and IX86_BUILTIN_CMPNESS.
2701         (ix86_init_mmx_sse_builtins): Remove ti_ftype_ti_ti.
2702         * config/i386/i386.h (ALIGN_MODE_128): Don't check TFmode explicitly.
2703         * config/i386/i386.md (movti_internal): Correct type attribute.
2704         Simplify mode attribute.
2705         (movti_rex64, movsf_1, movdf_nointeger, movdf_integer, movtf_internal):
2706         Correct type attribute.
2707         (absxf2): Correct operator.
2708         * config/i386/mmx.md (mov<mode>_internal_rex64, mov<mode>_internal,
2709         movv2sf_internal_rex64, movv2sf_internal): Correct type attribute.
2710         * config/i386/sse.md (mov<mode>_internal, movv2df_internal): Simplify
2711         mode attribute.
2712         (sse2_vmsqrtv2df2): Correct mode attribute.
2713
2714 2005-12-05  Jan Beulich  <jbeulich@novell.com>
2715
2716         * config/ia64/ia64.md (rotlsi3_internal): Don't split if rotating by
2717         16 bits. Provide insn pattern for this case.
2718
2719 2005-12-05  Jan Beulich  <jbeulich@novell.com>
2720
2721         * libgcc2.c (__popcountSI2): Don't use wide type for iterator and
2722         result.
2723         (__popcountDI2): Likewise.
2724
2725 2005-12-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2726
2727         PR target/25166
2728         * pa/pa.c (pa_hpux_init_libfuncs): Add _U_Qfcnvxf_usgl_to_quad and
2729         _U_Qfcnvxf_udbl_to_quad to set of initialized libfuncs.
2730         * pa/quadlib.c (_U_Qfcnvxf_usgl_to_quad, _U_Qfcnvxf_udbl_to_quad): New
2731         functions.
2732
2733 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
2734
2735         * c-typeck.c (null_pointer_constant_p): New function.
2736         (build_conditional_expr, build_c_cast, convert_for_assignment,
2737         build_binary_op): Use it.
2738
2739 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
2740
2741         * c-common.c (binary_op_error): Do not allow NOP_EXPR.
2742         (c_common_truthvalue_conversion): Handle NOP_EXPR the same as
2743         CONVERT_EXPR.
2744         (check_function_arguments_recurse): Allow both NOP_EXPR and
2745         CONVERT_EXPR but check conversions preserve precision.
2746         * c-typeck.c (pointer_diff): Allow both NOP_EXPR and CONVERT_EXPR
2747         but check conversions preserve precision.
2748         (build_unary_op): Don't allow NOP_EXPR.  Use gcc_unreachable () in
2749         default case.
2750
2751 2005-12-04  Roger Sayle  <roger@eyesopen.com>
2752
2753         PR c/7776
2754         * common.opt (Wstring-literal-comparison): New command line option.
2755         * c-opts.c (c_common_handle_option): Set it with -Wall.
2756         * c-typeck.c (parser_build_binary_op): Issue warning if either
2757         operand of a comparison operator is a string literal, except for
2758         testing equality or inequality against NULL.
2759
2760         * doc/invoke.texi: Document new -Wstring-literal-comparison option.
2761
2762 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
2763
2764         * c-common.c (c_sizeof_or_alignof_type): Use fold_convert instead
2765         of building a NOP_EXPR.
2766         (c_alignof_expr): Likewise.  Handle CONVERT_EXPR the same as
2767         NOP_EXPR.
2768         * c-convert.c (convert): Use fold_convert instead of building
2769         NOP_EXPRs and CONVERT_EXPRs directly.  Don't special case
2770         c_objc_common_truthvalue_conversion returning a NOP_EXPR.  Remove
2771         #if 0 code.
2772         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Handle
2773         NOP_EXPR the same as CONVERT_EXPR.
2774         * c-typeck.c (build_function_call): Use fold_convert instead of
2775         building a NOP_EXPR directly.
2776         (build_compound_expr): Handle NOP_EXPR the same as CONVERT_EXPR.
2777
2778 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
2779
2780         PR rtl-optimization/25197
2781         * dwarf2out.c (dwarf2out_frame_debug_expr <rule 12>): Assert we
2782         have a reg.
2783
2784 2005-12-02  Stuart Hastings  <stuart@apple.com>
2785
2786         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove -fpic
2787         warning.
2788
2789 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
2790
2791         * c-typeck.c (default_function_array_conversion,
2792         build_function_call): Allow for CONVERT_EXPR as well as NOP_EXPR.
2793         (build_conditional_expr): Apply integer_zerop to orig_op1 and
2794         orig_op2.  Don't check them for NOP_EXPR.
2795         (build_c_cast, convert_for_assignment): Don't check for NOP_EXPR
2796         around integer zero.
2797
2798 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
2799
2800         * config/rs6000/rs6000.c (rs6000_stack_t): Remove toc_save_p,
2801         toc_save_offset, toc_size, lr_size.
2802         (rs6000_stack_info): Use memset rather than bss struct copy to init.
2803         Test rs6000_ra_ever_killed last in condition setting lr_save_p.
2804         Adjust for removal of unused rs6000_stack_t fields.
2805         (debug_stack_info): Adjust.
2806         (rs6000_ra_ever_killed): Expand FIND_REG_INC_NOTE.  Test for calls
2807         first, and don't bother checking for set/inc of lr on sibcalls.
2808         (rs6000_emit_epilogue): Tidy code restoring stack pointer.
2809
2810 2005-12-02  Jakub Jelinek  <jakub@redhat.com>
2811
2812         PR target/25199
2813         * config/i386/i386.md (movqi_1): Only force imovx for alternative
2814         5 if operand 1 is not aligned.  Undo previous constraint change.
2815         * config/i386/predicates.md (aligned_operand): Use MEM_ALIGN.
2816
2817 2005-12-02  Richard Guenther  <rguenther@suse.de>
2818
2819         * tree.h (build): Remove prototype.
2820         (build, _buildN1, _buildN2, _buildC1, _buildC2): Remove macros.
2821         * tree.c (build): Remove.
2822         (build0_stat): Update comment.
2823
2824 2005-12-02  Richard Guenther  <rguenther@suse.de>
2825
2826         * tree-ssa-loop-im.c (schedule_sm): Use buildN instead of build.
2827         * tree-complex.c (update_complex_assignment, expand_complex_div_wide):
2828         Likewise.
2829         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref,
2830         maybe_fold_offset_to_component_ref): Likewise.
2831         * tree-ssa-dom.c (thread_across_edge,
2832         simplify_rhs_and_lookup_avail_expr,
2833         find_equivalent_equality_comparison, record_equivalences_from_stmt):
2834         Likewise.
2835         * gimple-low.c (lower_function_body, lower_return_expr): Likewise.
2836         * tree-eh.c (do_return_redirection, honor_protect_cleanup_actions,
2837         lower_try_finally_switch): Likewise.
2838         * tree-if-conv.c (add_to_dst_predicate_list,
2839         replace_phi_with_cond_modify_expr, ifc_temp_var): Likewise.
2840         * gimplify.c (internal_get_tmp_var, gimple_build_eh_filter,
2841         voidify_wrapper_expr, build_stack_save_restore, gimplify_bind_expr,
2842         gimplify_return_expr, gimplify_decl_expr, gimplify_switch_expr,
2843         gimplify_case_label_expr, gimplify_exit_expr, gimplify_self_mod_expr,
2844         shortcut_cond_r, shortcut_cond_expr, gimplify_cond_expr,
2845         gimplify_init_ctor_eval, gimplify_init_constructor,
2846         gimplify_variable_sized_compare, gimplify_boolean_expr,
2847         gimplify_cleanup_point_expr, gimple_push_cleanup, gimplify_target_expr,
2848         gimplify_expr, gimplify_body, gimplify_function_tree,
2849         force_gimple_operand): Likewise.
2850         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
2851         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for,
2852         mx_register_decls): Likewise.
2853         * tree-nested.c (init_tmp_var, save_tmp_var, get_static_chain,
2854         get_frame_field, finalize_nesting_tree_1): Likewise.
2855         * tree-inline.c (setup_one_parameter): Likewise.
2856         * tree-vect-transform.c (vectorizable_condition): Likewise.
2857         * tree-outof-ssa.c (insert_copy_on_edge, insert_backedge_copies):
2858         Likewise.
2859         * tree-profile.c (tree_gen_edge_profiler): Likewise.
2860         * tree-cfg.c (factor_computed_gotos, gimplify_val): Likewise.
2861         * c-parser.c (c_parser_if_body, c_parser_switch_statement): Likewise.
2862         * tree-chrec.h (build_polynomial_chrec): Likewise.
2863
2864 2005-12-02  Richard Guenther  <rguenther@suse.de>
2865
2866         * config/alpha/alpha.c (alpha_va_start, alpha_gimplify_va_arg_1i,
2867         alpha_gimplify_va_arg): Use buildN and fold_buildN where applicable.
2868         * config/frv/frv.c (frv_expand_builtin_va_start): Likewise.
2869         * config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise.
2870         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2871         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
2872         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg):
2873         Likewise.
2874         * config/sh/sh.c (sh_va_start, sh_gimplify_va_arg_expr,
2875         sh_adjust_unroll_max): Likewise.
2876         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
2877         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2878         * config/xtensa/xtensa.c (xtensa_va_start, xtensa_gimplify_va_arg_expr):
2879         Likewise.
2880         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
2881         Likewise.
2882         * config/mips/mips.c (mips_va_start, mips_gimplify_va_arg_expr):
2883         Likewise.
2884
2885 2005-12-02  Richard Guenther  <rguenther@suse.de>
2886
2887         * tree-vrp.c (build_assert_expr_for, process_assert_insertions_for,
2888         simplify_cond_using_ranges): Use buildN instead of build.
2889         * tree-tailcall.c (adjust_accumulator_values,
2890         adjust_return_value): Likewise.
2891         * tree-sra.c (generate_one_element_ref, generate_copy_inout,
2892         generate_element_copy, generate_element_zero,
2893         generate_one_element_init): Likewise.
2894         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Likewise.
2895         * lambda-code.c (gcc_loop_to_lambda_loop, lbv_to_gcc_expression,
2896         lle_to_gcc_expression, lambda_loopnest_to_gcc_loopnest,
2897         perfect_nestify): Likewise.
2898
2899 2005-12-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2900
2901         * pa.c (pa_secondary_reload): Revise initialization of variable regno.
2902
2903 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2904
2905         * ggc.h (GGC_RESIZEVEC): New.
2906
2907 2005-12-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2908
2909         * gcc.c (execute): Improve readability.
2910
2911 2005-12-02  Richard Guenther  <rguenther@suse.de>
2912
2913         * tree-cfg.c (mark_used_vars): New function.
2914         (dump_function_to_file): Dump only used VAR_DECLs.
2915
2916 2005-12-02  Richard Guenther  <rguenther@suse.de>
2917
2918         * convert.c (convert_to_integer): Fix compare for nonpositive
2919         constant to use tree_int_cst_sgn <= 0.
2920
2921 2005-12-02  Richard Guenther  <rguenther@suse.de>
2922
2923         * convert.c (convert_to_integer): Use fold_convert instead
2924         of fold_build1 (NOP_EXPR, ...).  Use tree_int_cst_sgn < 0
2925         instead of comparing against 0.  Use build_int_cst instead
2926         of converting integer_zero_node.
2927
2928 2005-12-02  Richard Guenther  <rguenther@suse.de>
2929
2930         * tree-pretty-print.c (op_symbol): Handle LROTATE_EXPR
2931         and RROTATE_EXPR.
2932  
2933 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
2934
2935         PR target/21017
2936         * combine.c (simplify_logical <IOR>): Simplify more patterns to
2937         rotates.
2938
2939 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
2940
2941         PR middle-end/25176
2942         * function.c (expand_function_end): Emit blockage for unwinder
2943         after return label.
2944
2945 2005-12-01  Roger Sayle  <roger@eyesopen.com>
2946
2947         * tree.h (TREE_OVERFLOW): Make this flag/predicate specific to
2948         constant nodes, i.e. INTEGER_CST, REAL_CST, etc...
2949         * tree-vrp.c (compare_values): Only check TREE_OVERFLOW for
2950         integer constant comparisons.
2951
2952 2005-12-02  Jon Grimm  <jgrimm2@us.ibm.com>
2953             Janis Johnson  <janis187@us.ibm.com>
2954             David Edelsohn  <dje@watson.ibm.com>
2955             Ben Elliston  <bje@au.ibm.com>
2956
2957         * dfp.h, dfp.c: New files.
2958         * Makefile.in (DECNUM, DECNUMINC, LIBDECNUMBER): New variables.
2959         (DECNUM_H): Likewise.
2960         (LIBDEPS, LIBS, BACKEND): Append $(LIBDECNUMBER).
2961         (INCLUDES): Append $(DECNUMINC).
2962         (OBJS-common): Add dfp.o.
2963         (dfp.o): New rule.
2964         * real.h (EXP_BITS): Pinch one bit to ..
2965         (struct real_value): Add decimal field.
2966         (real_format): Change table size, update documentation.
2967         (REAL_MODE_FORMAT): Update for to handle float, decimal float.
2968         (real_from_string3): Declare.
2969         (decimal_single_format): Declare.
2970         (decimal_double_format): Declare.
2971         (decimal_quad_format): Declare.
2972         (REAL_VALUE_TO_TARGET_DECIMAL32): New.
2973         (REAL_VALUE_TO_TARGET_DECIMAL64): New.
2974         (REAL_VALUE_TO_TARGET_DECIMAL128): New.
2975         * real.c: Include dfp.h.
2976         (normalize): Early return for decimal floats.
2977         (do_add): Zero decimal field.
2978         (do_compare): Call do_decimal_compare for decimal floats.
2979         (do_fix_trunc): Likewise, call decimal_do_fix_trunc.
2980         (real_arithmetic): Call decimal_real_arithmetic for decimal
2981         floating point operands.
2982         (real_identical): If a and b are of differing radix, return false.
2983         (real_to_integer): Call decimal_real_to_integer if the value is a
2984         decimal float.
2985         (real_to_integer2): Likewise, call decimal_real_to_integer2.
2986         (real_to_decimal): Likewise, call decimal_real_to_decimal.
2987         (real_to_hexadecimal): Place "N/A" in the return string for
2988         decimal float.
2989         (real_from_string3): New variant, given a mode.
2990         (real_maxval): Use decimal_real_maxval for decimal floats.
2991         (round_for_format): Use decimal_round_for_format for decimals.
2992         (real_convert): Use decimal_real_convert where appropriate.
2993         (significand_size): Handle base 10.
2994         (encode_decimal_single, decode_decimal_single,
2995         encode_decimal_double, decode_decimal_double, encode_decimal_quad,
2996         decode_decimal_quad): New functions.
2997         (decimal_single_format): New.
2998         (decimal_double_format): New.
2999         (decimal_quad_format): New.
3000         * machmode.def: Add SD, DD and TD decimal floating point modes.
3001         * machmode.h (FLOAT_MODE_P, SCALAR_FLOAT_MODE_P, MODES_WIDEN_P):
3002         Include MODE_DECIMAL_FLOAT.
3003         (DECIMAL_FLOAT_MODE_P): New.
3004         * mode-classes.def (MODE_DECIMAL_FLOAT): New mode class.
3005         * genmodes.c (struct mode_data): Add counter field.
3006         (struct mode_data): Update comment for format.
3007         (blank_mode): Initialise counter field.
3008         (new_mode): Increment counter field for each mode defined.
3009         (complete_mode): Handle MODE_DECIMAL_FLOAT, update check for mode
3010         using a format.
3011         (make_complex_modes): Handle modes containing `D'.
3012         (DECIMAL_FLOAT_MODE, FRACTIONAL_DECIMAL_FLOAT_MODE): New.
3013         (make_decimal_float_mode): New.
3014         (reset_float_format): Handle MODE_DECIMAL_FLOAT.
3015         (cmp_modes): Compare counter field if other characteristics
3016         similar.
3017         (emit_real_format_for_mode): Support formats for decimal floats.
3018         * doc/rtl.texi (Machine Modes): Document SD, DD and TDmodes.
3019         Document MODE_DECIMAL_FLOAT.
3020
3021 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
3022
3023         * simplify-rtx.c (simplify_plus_minus): Do simplify constants.
3024         Delete dead code.
3025
3026 2005-12-01  Richard Henderson  <rth@redhat.com>
3027
3028         * optabs.c (expand_vec_cond_expr): Use EXPAND_NORMAL.
3029
3030 2005-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3031
3032         * builtins.def (BUILT_IN_PUTC, BUILT_IN_PUTC_UNLOCKED): New.
3033
3034         * config/pa/pa.c (pa_init_builtins): If we detect
3035         DONT_HAVE_FPUTC_UNLOCKED, set builtin fputc_unlocked to
3036         putc_unlocked.
3037
3038 2005-12-01  Richard Guenther  <rguenther@suse.de>
3039
3040         * fold-const.c (fold_binary): Use fold_build2, not
3041         fold (build (...)).
3042
3043 2005-12-01  Nathan Sidwell  <nathan@codesourcery.com>
3044
3045         * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves.
3046
3047         * vec.h (VEC_block_remove): New.
3048
3049 2005-12-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3050
3051         PR c/13384
3052         * c-common.c (lvalue_error): Fix wording.
3053
3054 2005-12-01  Richard Guenther  <rguenther@suse.de>
3055
3056         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Fix
3057         thinko in last patch.
3058
3059 2005-12-01  Geoffrey Keating  <geoffk@apple.com>
3060
3061         * config/t-slibgcc-darwin (SHLIB_LINK): Use -single_module rather
3062         than -flat_namespace.
3063
3064 2005-12-01  Ben Elliston  <bje@au.ibm.com>
3065
3066         * mklibgcc.in: Parameterise the script to build soft float
3067         functions by iterating over each type, rather than cloning the
3068         code for each type.
3069
3070 2005-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3071
3072         PR middle-end/25158
3073         * builtins.c (fold_builtin_fputs): Defer check for missing
3074         replacement functions.
3075
3076 2005-11-30  Kean Johnston  <jkj@sco.com>
3077
3078         * config/i386/i386.c: Check the value of SUPPORTS_ONE_ONLY, not
3079         simply its presense in case targets #define SUPPORTS_ONE_ONLY 0.
3080
3081 2005-11-30  Richard Guenther  <rguenther@suse.de>
3082
3083         PR tree-optimization/22501
3084         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
3085         function split out from ...
3086         (forward_propagate_addr_expr): ... here.  Use it to propagate
3087         ADDR_EXPRs to all uses.
3088
3089 2005-11-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3090
3091         * tree.h (CASE_FLT_FN, CASE_INT_FN): New macros.
3092         * builtins.c (expand_builtin_mathfn): Use them.
3093         (expand_builtin_mathfn_2): Likewise.
3094         (expand_builtin_mathfn_3): Likewise.
3095         (expand_builtin_int_roundingfn): Likewise.
3096         (expand_builtin): Likewise.
3097         (integer_valued_real_p): Likewise.
3098         (fold_builtin_int_roundingfn): Likewise.
3099         (fold_builtin_bitop): Likewise.
3100         (fold_builtin_logarithm): Likewise.
3101         (fold_builtin_1): Likewise.
3102         * convert.c (convert_to_integer): Likewise.
3103         * fold-const.c (negate_mathfn_p): Likewise.
3104         (tree_expr_nonnegative_p): Likewise.
3105
3106 2005-11-30  Dale Johannesen  <dalej@apple.com>
3107             Andrew Pinski  <pinskia@physics.uc.edu>
3108
3109         * combine.c (find_split_point):  Sign extend bitmask
3110         when changing bitfield assignment to IOR of AND.
3111
3112 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
3113
3114         * config/ms1/ms1.md (decrement_and_branch_until_zero): Add early
3115         clobber to scratch reg.
3116         (*decrement_and_branch_until_zero_no_clobber): Remove.
3117         (decrement_and_branch peephole): Add dummy scratch reg to pattern.
3118         (mulhish3): Use TARGET_MS1_16_003, TARGET_MS2.
3119         * config/ms1/ms1.opt (mmul): Remove.
3120         * config/ms1/ms1.h (ASM_SPEC): Cope with uppercase arch names.
3121         (LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Default to 16-002.
3122
3123 2005-11-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3124             Bernd Schmidt  <bernd.schmidt@analog.com>
3125
3126         * pa/predicates.md (symbolic_operand): Add comment.
3127         * pa/pa.md (reload_insi_r1, reload_indi_r1): New reload expanders.
3128         * pa/pa-protos.h (pa_secondary_reload_class): Delete.
3129         * pa/pa.c (TARGET_SECONDARY_RELOAD): Define.
3130         (pa_secondary_reload_class): Delete.
3131         (pa_secondary_reload): New function derived from SECONDARY_RELOAD_CLASS
3132         and pa_secondary_reload_class.  Reorder some checks.  Update inline
3133         copy of symbolic operand.
3134         * pa/pa.h (SECONDARY_RELOAD_CLASS): Delete.
3135
3136 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
3137
3138         * loop-doloop.c (add_test): Only add jump notes if we did emit a
3139         jump.
3140
3141 2005-11-30  Jeff Law  <law@redhat.com>
3142
3143         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Properly
3144         handle SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3145
3146 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
3147
3148         * config/ia64/ia64.c (ia64_expand_tls_address): Add ORIG_OP1 argument.
3149         Move ADDEND_{HI,LO} computation into TLS_MODEL_INITIAL_EXEC case.
3150         (ia64_expand_move): Adjust caller.
3151
3152         * config/ia64/ia64.c (ia64_expand_atomic_op): Only use
3153         fetchadd{4,8}.acq instruction if CODE is PLUS or MINUS, for MINUS
3154         negate VAL.
3155
3156 2005-11-30  Paolo Bonzini  <bonzini@gnu.org>
3157
3158         * simplify-rtx.c (simplify_plus_minus): Remove final parameter.
3159         Always produce an output if we can remove NEGs or canonicalize
3160         (minus (minus ...)) expressions.  Provide a fast path for the
3161         two-operand case.
3162         (simplify_gen_binary): Do not call simplify_plus_minus.
3163         (simplify_binary_operation_1): Reassociate at the end of the
3164         function.
3165
3166 2005-11-29  Evan Cheng  <evan.cheng@apple.com>
3167
3168         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Rewrite using high/low
3169         moves and unpack to speed up.
3170
3171 2005-11-29  David S. Miller  <davem@sunset.davemloft.net>
3172
3173         * config/sparc/sparc.c (gen_compare_reg): Kill 2nd and 3rd
3174         argument, they are always sparc_compare_op0 and sparc_compare_op1.
3175         (gen_v9_scc): Update callers.
3176         * config/sparc/sparc.md: Likewise.
3177         * config/sparc/sparc-protos.h: Update extern declaration.
3178
3179         * tree-into-ssa.c (rewrite_into_ssa): Fix comment typo.
3180
3181 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
3182
3183         * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
3184         the if.
3185
3186 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
3187
3188         * fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.
3189         (fold_unary) <case NEGATE_EXPR>: Move -(~a) transformation to ...
3190         (negate_expr): Here.
3191
3192 2005-11-29  Ben Elliston  <bje@au.ibm.com>
3193
3194         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN):
3195         Fix typo in comment.
3196
3197 2005-11-29  Ben Elliston  <bje@au.ibm.com>
3198
3199         * Makefile.in (clean-target): Depend on clean-target-libgcc.
3200         (clean-target-libgcc): Import rule from the top-level Makefile.in.
3201
3202 2005-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3203
3204         PR middle-end/20109
3205         PR middle-end/25120
3206         * builtins.c (init_target_chars): New.
3207         (expand_builtin_printf, expand_builtin_fprintf,
3208         expand_builtin_sprintf, fold_builtin_sprintf,
3209         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
3210         fold_builtin_snprintf_chk, fold_builtin_printf,
3211         fold_builtin_fprintf): Check for matching format strings using
3212         the target charset.
3213
3214 2005-11-29  Paul Brook  <paul@codesourcery.com>
3215
3216         * config.gcc: Do not use fixproto on m68k-elf.
3217
3218 2005-11-28  Roger Sayle  <roger@eyesopen.com>
3219
3220         * expmed.c (div_cost): Replace with...
3221         (sdiv_cost, udiv_cost): New.
3222         (init_expmed): Initialize sdiv_cost and udiv_cost, not div_cost.
3223         Rename the div and mod fields, used to initialize sdiv_pow2_cheap
3224         and smod_pow2_cheap, to sdiv_32 and smod_32 to avoid confusion.
3225         (expand_divmod): Replace use of div_cost with either sdiv_cost
3226         or udiv_cost depending upon the signedness of the operation.
3227
3228 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
3229
3230         PR libfortran/24991
3231         * config/darwin.c (machopic_indirection_name,
3232         machopic_output_indirection): Follow transparent alias chain.
3233
3234 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
3235
3236         * varasm.c (ultimate_transparent_alias_target): Add comment.
3237
3238 2005-11-28  Kazu Hirata  <kazu@codesourcery.com>
3239
3240         * config/m68k/m68k.c (notice_update_cc): Use SET_DEST and
3241         SET_SRC instead of XEXP where appropriate.
3242
3243 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
3244
3245         * config/fp-bit.c (isnan, isinf, pack_d, unpack_d): Use
3246         __builtin_expect.
3247
3248 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
3249
3250         * config/fp-bit.h (LSHIFT): Take shift count parameter.
3251         * config/fp-bit.c (_fpadd_parts): Shift in one go instead of one
3252         bit at a time.
3253
3254 2005-11-28  Bernd Schmidt  <bernd.schmidt@analog.com>
3255
3256         * config/bfin/bfin.c (bfin_secondary_reload): Renamed from
3257         secondary_input_reload_class, made static.  Adapt to new
3258         infrastructure.
3259         (secondary_output_reload_class): Delete.
3260         (TARGET_SECONDARY_RELOAD): New macro.
3261         * config/bfin/bfin.h (SECONDARY_INPUT_RELOAD_CLASS,
3262         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
3263
3264 2005-11-28  Nathan Sidwell  <nathan@codesourcery.com>
3265
3266         PR c++/21166
3267         * c-decl.c (finish_struct):  Only set DECL_PACKED on a field
3268         when its natural alignment is > BITS_PER_UNIT.
3269         * stor-layout.c (finalize_type_size): Revert my patch of 2005-08-08.
3270         * c-common.c (handle_packed_attribute): Ignore packing on a field
3271         whose type is naturally char aligned.
3272
3273 2005-11-28  Richard Guenther  <rguenther@suse.de>
3274
3275         * c-common.c (strict_aliasing_warning): Handle all
3276         component-ref like accesses.
3277
3278 2005-11-28  Roger Sayle  <roger@eyesopen.com>
3279             Uros Bizjak  <uros@kss-loka.si>
3280
3281         PR middle-end/20219
3282         * fold-const.c (fold binary) <RDIV_EXPR>: Optimize
3283         sin(x)/tan(x) as cos(x) and tan(x)/sin(x) as 1.0/cos(x)
3284         when flag_unsafe_math_optimizations is set and
3285         we don't care about NaNs or Infinities.
3286
3287         Move x/expN(y) and x/pow(y,z) transformation into common
3288         flag_unsafe_math_optimizations section.
3289
3290 2005-11-27  Mark Mitchell  <mark@codesourcery.com>
3291
3292         * gcc.c (main): Change type of argv to "char **".
3293
3294 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
3295
3296         * doc/invoke.texi (powerpc msdata-data): Static data doesn't go in
3297         small data sections.
3298         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Make global.
3299         * config/rs6000/rs6000-protos.h: (rs6000_elf_in_small_data_p): Declare.
3300         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Rename to..
3301         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ..this, adding extra parm.  Don't
3302         output locals to sbss if !rs6000_elf_in_small_data_p.
3303         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above.
3304
3305 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
3306
3307         PR target/24997
3308         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Allow pattern
3309         generated by reload.
3310         * config/rs6000/predicates.md (indexed_or_indirect_operand): Use
3311         indexed_or_indirect_address.
3312         (indexed_or_indirect_address): Don't test for base reg.  Call
3313         address_operand last.  Make it a special predicate.
3314
3315 2005-11-27  Kazu Hirata  <kazu@codesourcery.com>
3316
3317         * config/m68k/m68k.c (notice_update_cc): Remove useless code.
3318
3319 2005-11-27  Andrew Pinski  <pinskia@physics.uc.edu>
3320
3321         PR middle-end/24575
3322         * fold-const.c (negate_expr_p): Add case for signed divides if overflow
3323         is undefined.
3324         (negate_expr): Likewise.
3325
3326 2005-11-27  Andreas Schwab  <schwab@suse.de>
3327
3328         * config/m68k/m68k.c: Reindent and fix whitespace, remove
3329         redundant parens.
3330
3331 2005-11-27  Steven Bosscher  <stevenb@suse.de>
3332
3333         * cfgcleanup.c (try_crossjump_to_edge): Always split SRC2 if it
3334         has EH predecessor edges.
3335
3336 2005-11-26  Eric Christopher  <echristo@apple.com>
3337
3338         * config/i386/i386.md (*zero_extendqihi2_movzbw): Avoid partial
3339         register stalls by zero extending to the full register.
3340
3341 2005-11-27  Joseph S. Myers  <joseph@codesourcery.com>
3342
3343         * config/floatunsisf.c, config/floatunsidf.c,
3344         config/floatunsixf.c, config/floatunsitf.c: New files.
3345         * config/ia64/t-hpux: Add floatunsitf.c.
3346         * config/ia64/ia64.c (ia64_init_libfuncs): Use
3347         _U_Qfcnvxuf_dbl_to_quad for unsigned DImode-to-TFmode conversion.
3348
3349 2005-11-26  Richard Henderson  <rth@redhat.com>
3350
3351         * c-lex.c (pragma_lex): Rename from c_lex.
3352         * c-pch.c: Update for pragma_lex rename.
3353         * c-pragma.c, c-pragma.h, config/ia64/ia64-c.c: Likewise.
3354         * config/m32c/m32c-pragma.c, config/darwin-c.c: Likewise.
3355         * config/rs6000/rs6000-c.c, config/c4x/c4x-c.c: Likewise.
3356         * config/sol2-c.c, config/v850/v850-c.c: Likewise.
3357         * doc/tm.texi: Likewise.
3358
3359 2005-11-26  Andrew Pinski  <pinskia@physics.uc.edu>
3360
3361         PR middle-end/23669
3362         * fold-const.c (fold_binary): Convert -A/-B to A/B for signed types
3363         when overflow is undefined.
3364
3365 2005-11-26  Hans-Peter Nilsson  <hp@axis.com>
3366
3367         * doc/md.texi (Insn Canonicalizations): Refer to the
3368         function commutative_operand_precedence for further rules.
3369
3370 2005-11-25  Roger Sayle  <roger@eyesopen.com>
3371
3372         PR middle-end/21309
3373         * expmed.c (choose_mult_variant): Return immediately when mult_cost
3374         is less than zero.  Limit mult_cost to a reasonable upper bound for
3375         the synthetic multiplication sequence.
3376
3377 2005-11-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3378
3379         PR middle-end/25022
3380         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
3381         fold_builtin_fputs, fold_builtin_printf, fold_builtin_fprintf):
3382         Lookup the explicit replacement functions for any unlocked
3383         stdio builtin transformations.
3384
3385 2005-11-25  Hans-Peter Nilsson  <hp@axis.com>
3386
3387         * config/cris/cris.md ("reload_out<mode>"): Mark operand 2 as
3388         earlyclobber.
3389         * targhooks.c (default_secondary_reload): Don't require operand 2
3390         for an input reload to be earlyclobber.
3391
3392 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3393
3394         * fold-const.c (negate_mathfn_p): Fix comment and add support
3395         for BUILT_IN_CBRT, BUILT_IN_SINH, BUILT_IN_TANH, BUILT_IN_ASINH,
3396         BUILT_IN_ATANH.
3397
3398 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
3399
3400         PR middle-end/24998
3401         * config/sparc/sparc.c (sparc_init_libfuncs): Use _Q_utoq and
3402         _Q_ulltoq for unsigned conversions from SImode and DImode to
3403         TFmode.
3404
3405 2005-11-25  Alan Modra  <amodra@bigpond.net.au>
3406
3407         * config/rs6000/ppc64-fp.c (__floatunditf): New function.
3408         (__floatundidf, __floatundisf): Likewise.
3409
3410 2005-11-25  David Edelsohn  <edelsohn@gnu.org>
3411
3412         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Delete.
3413         (rs6000_override_options): Remove initialization of
3414         rs6000_sr_alias_set.
3415         (rs6000_emit_eh_reg_restore): Use gen_frame_mem.
3416         (rs6000_emit_stack_tie): Same.
3417         (emit_frame_save): Same.
3418         (gen_frame_mem_offset): Same.
3419         (rs6000_emit_prologue): Same.
3420         (rs6000_emit_epilogue): Same.
3421
3422 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
3423
3424         PR middle-end/24989
3425         * fold-const.c (fold_build): Convert bool_var != 1 and
3426         bool_var == 0 to !bool_var.
3427
3428 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
3429
3430         PR middle-end/24990
3431         * fold-const.c (fold_binary): Fold (~a) == C to a == ~C
3432         for C being INTEGER_CST.  Likewise for !=.
3433
3434 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
3435
3436         PR middle-end/24998
3437         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use _q_utoq for
3438         unsigned conversions from SImode to TFmode.
3439
3440 2005-11-24  Bernd Schmidt  <bernd.schmidt@analog.com>
3441
3442         * expr.c (expand_expr_real_1): Fix error in last change.
3443
3444 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
3445
3446         * caller-save.c: (this_insn_sets): Move into:
3447         (save_call_clobbered_regs).
3448         (mark_set_regs): Get this_insn_sets from data.
3449
3450         (save_call_clobbered_regs): Take sets of the return value by
3451         sibcalls into account.
3452
3453 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
3454         PR target/21623:
3455
3456         * regclass.c (FORBIDDEN_INC_DEC_CLASSES): Remove
3457         SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS tests.
3458         (init_fake_stack_mems): Remove HAVE_SECONDARY_RELOADS test.
3459         (memory_move_secondary_cost, init_reg_autoinc): Remove
3460         SECONDARY_INPUT_RELOAD_CLASS / SECONDARY_OUTPUT_RELOAD_CLASS tests.
3461         Replace SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with
3462         secondary_reload_class call.
3463         (copy_cost): Likewise.  Add new parameter prev_sri.  Changed all
3464         callers.
3465         * reload.c (entire file): Remove HAVE_SECONDARY_RELOADS checks.
3466         (push_secondary_reload): Use secondary_reload target hook.
3467         (secondary_reload_class, scratch_reload_class): New functions.
3468         (push_reload): Remove SECONDARY_INPUT_RELOAD_CLASS and
3469         SECONDARY_OUTPUT_RELOAD_CLASS tests.  Replace
3470         SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with secondary_reload_class call.
3471         * reload.h (HAVE_SECONDARY_RELOADS): Don't define nor test.
3472         (secondary_reload_class, scratch_reload_class): Declare.
3473         * reload1.c: Include target.h.
3474         (reload_adjust_reg_for_temp): New function.
3475         (reload_adjust_reg_for_icode): Likewise.
3476         (choose_reload_regs): Remove SECONDARY_INPUT_RELOAD_CLASS test.
3477         Replace SECONDARY_INPUT_RELOAD_CLASS use with secondary_reload_class
3478         call.
3479         (emit_input_reload_insns): Likewise.  Rewrite secondary reload checks
3480         for inheritance.  Support case when both secondary & tertiary reloads
3481         are for intermediate registers.
3482         (emit_output_reload_insns): Replace SECONDARY_OUTPUT_RELOAD_CLASS use
3483         with secondary_reload_class call.  Support case when both secondary
3484         & tertiary reloads are for intermediate registers.
3485         * target-def.h (TARGET_SECONDARY_RELOAD): Provide default definition.
3486         (TARGET_INITIALIZER) Add TARGET_SECONDARY_RELOAD.
3487         * target.h (secondary_reload_info): New struct / typedef.
3488         (struct gcc_target): New member secondary_reload.
3489         * targhooks.c Include reload.h, optabs.h and recog.h.
3490         (default_secondary_reload): New function.
3491         * targhooks.h (default_secondary_reload): Declare.
3492         * doc/tm.texi: Document secondary_reload target hook.  Update
3493         description of SECONDARY_*RELOAD_CLASS and reload_{in,out}<mode>.
3494         * doc/md.texi: Likewise.
3495
3496         * sh-protos.h (sh_secondary_reload): Declare.
3497         * sh.c (TARGET_SECONDARY_RELOAD): Override.
3498         (sh_secondary_reload): New function.
3499         * sh.h (SECONDARY_INOUT_RELOAD_CLASS): Don't define.
3500         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
3501         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
3502         (HAVE_SECONDARY_RELOADS): Define.
3503         * sh.md (reload_indf): Rename to:
3504         (reload_indf__frn).
3505         (reload_outdf): Rename to:
3506         (reload_outdf__RnFRm).
3507         (reload_insf): Rename to:
3508         (reload_insf__frn).
3509         (reload_insi): Rename to:
3510         (reload_insi__i_fpul).
3511
3512 2005-11-24  Uros Bizjak  <uros@kss-loka.si>
3513
3514         * configure.ac: Require at least texinfo 4.4.
3515         * configure: Regenerate.
3516
3517         * doc/install.texi (Tools/packages necessary for building GCC):
3518         Update required version of texinfo to at least 4.4.
3519         (Installing GCC: Building): Update required version of texinfo
3520         to at least 4.4.
3521         (Installing GCC: Final installation): Update required version
3522         of texi2dvi to at least 4.4.
3523         (Host/target specific installation notes for GCC): Update required
3524         version of texinfo to at least 4.4.
3525
3526 2005-11-24  Richard Guenther  <rguenther@suse.de>
3527         Dirk Mueller <dmueller@suse.de>
3528
3529         PR c++/14024
3530         * c-common.h (strict_aliasing_warning): Declare.
3531         * c-common.c (strict_aliasing_warning): New function,
3532         split out from ...
3533         * c-typeck.c (build_c_cast): ... here.
3534
3535 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
3536
3537         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
3538         to order operands.
3539         (swap_commutative_operands_with_target): New.
3540
3541 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
3542
3543         * gcse.c (hash_scan_set): Look through REG_EQUAL or REG_EQUIV notes
3544         also when doing PRE, rather than only for global CPROP.
3545
3546 2005-11-24  Ben Elliston  <bje@au.ibm.com>
3547
3548         * machmode.h (CLASS_HAS_WIDER_MODES_P): New macro.
3549         * optabs.c (expand_binop): Use CLASS_HAS_WIDER_MODES_P, improve
3550         formatting.
3551         (expand_twoval_unop): Likewise.
3552         (widen_clz): Likewise.
3553         (expand_parity): Likewise.
3554         (expand_unop): Likewise.
3555         (emit_cmp_and_jmp_insn_1): Likewise.
3556         (prepare_float_lib_cmp): Likewise.
3557
3558 2005-11-24  Ben Elliston  <bje@au.ibm.com>
3559
3560         * optabs.c (prepare_cmp_insn): Use SCALAR_FLOAT_MODE_P.
3561         Remove unused `class' variable.
3562
3563 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3564
3565         PR c++/21667
3566         * c-typeck.c (build_array_ref): Avoid code duplicate.  Use common
3567         C/C++ diagnostic function warn_array_subscript_with_type_char.
3568         * c-common.h (warn_array_subscript_with_type_char): Declare.
3569         * c-common.c (warn_array_subscript_with_type_char): Define.
3570
3571 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3572
3573         PR c/21668
3574         * c-decl.c (grokdeclarator): Don't warn for 'extern const' when
3575         compiling at the intersection of C and C++.
3576
3577 2005-11-23  Mark Mitchell  <mark@codesourcery.com>
3578
3579         * doc/invoke.texi: For man pages, include gcc-vers.texi.
3580         List @file in the option summary.  Include the libiberty
3581         documentation for @file.
3582         * gcc.c (main): Call expandargv.
3583         * Makefile.in (gcc-vers.texi): Define srcdir.
3584
3585 2005-11-23  Diego Novillo  <dnovillo@redhat.com>
3586
3587         * passes.c (init_optimization_passes): Document
3588         sequencing of passes.
3589
3590 2005-11-23  Kazu Hirata  <kazu@codesourcery.com>
3591
3592         * config/m68k/predicates.md (pcrel_address, extend_operator,
3593         post_inc_operand, pre_dec_operand): Remove redundant
3594         conditionals.
3595         (const_uint32_operand, const_sint32_operand): Use gcc_assert
3596         instead of abort.
3597         (valid_dbcc_comparison_p): Rewrite in the lisp style.
3598
3599 2005-11-23  Ben Elliston  <bje@au.ibm.com>
3600
3601         * dwarf2.h (enum dwarf_type): Add DW_ATE_decimal_float.
3602
3603 2005-11-22  J"orn Rennecke <joern.rennecke@st.com>
3604
3605         Preparatory work for PR target/21623:
3606         * alpha.c (secondary_reload_class): Rename to:
3607         (alpha_secondary_reload_class).
3608         * alpha.h, alpha-protos.h: Likewise.
3609         * mn10300.c (secondary_reload_class): Rename to:
3610         (mn10300_secondary_reload_class).
3611         * mn10300.h, mn10300-protos.h: Likewise.
3612         * pa.c (secondary_reload_class): Rename to:
3613         (pa_secondary_reload_class).
3614         * pa.h, pa-protos.h: Likewise.
3615         * rs6000.c (secondary_reload_class): Rename to:
3616         rs6000_secondary_reload_class.
3617         * rs6000.h, rs6000-protos.h: Likewise.
3618
3619 2005-11-22  Eric Botcazou  <ebotcazou@adacore.com>
3620
3621         PR middle-end/22561
3622         * tree-ssa-structalias.c (get_constraint_for): Handle ARRAY_RANGE_REF.
3623
3624 2005-11-22  Ian Lance Taylor  <ian@airs.com>
3625
3626         * optabs.c (expand_unop): Call SCALAR_FLOAT_MODE_P on a mode, not
3627         a mode_class.
3628         (prepare_cmp_insn): Likewise.
3629
3630 2005-11-22  Kazu Hirata  <kazu@codesourcery.com>
3631
3632         PR target/23435
3633         * m68k.md (zero_extendsidi2): Force operands[1] to a register
3634         if both operands[0] and operands[1] are memory.
3635
3636 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
3637
3638         PR middle-end/23606
3639         * fold-const.c (fold_unary) <case NOP_EXPR, CONVERT_EXPR>: For
3640         COMPARISON_CLASS_P and an integral types create create a new
3641         expression with the new type and fold that.
3642
3643 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
3644
3645         PR target/24988
3646         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Remove call
3647         to SUBTARGET_OS_CPP_BUILTINS.
3648
3649 2005-11-22  Richard Earnshaw  <richard.earnshaw@arm.com>
3650
3651         * arm.c (emit_set_insn): New function.
3652         (arm_split_constant): Call it.
3653         (arm_gen_compare_reg, arm_reload_in_hi, arm_reload_out_hi): Likewise.
3654         (arm_legitimize_address): Likewise.  Use plus_constant.
3655         (arm_expand_prologue): Likewise.  Use VOIDmode in SET.
3656         (thumb_expand_prologue): Likewise.
3657         (arm_gen_load_multiple): Use VOIDmode in SET.
3658         (arm_gen_store_multiple): Likewise.
3659         (vfp_emit_fstmx): Likewise.  Use plus_constant.
3660         (emit_multi_reg_push): Likewise.
3661         (emit_sfm): Use plus_constant.
3662
3663 2005-11-23  Alan Modra  <amodra@bigpond.net.au>
3664
3665         PR target/24954
3666         * config/rs6000/predicates.md (easy_vector_constant_add_self): Fix
3667         typo last change.
3668
3669 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
3670
3671         PR middle-end/24950
3672         * expmed.c (store_bit_field): Don't attempt to insv a field
3673         larger than the reg.
3674
3675 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
3676
3677         PR target/24954
3678         * config/rs6000/predicated.md (easy_vector_constant_add_self): Use
3679         explicit sign extension, not a (char) cast.
3680
3681 2005-11-22  Ben Elliston  <bje@au.ibm.com>
3682
3683         * optabs.c: Use SCALAR_FLOAT_MODE_P instead of explicitly testing
3684         GET_MODE_CLASS (x) == MODE_FLOAT.
3685         * config/i386/i386.c: Likewise.
3686         * config/rs6000/xcoff.h: Likewise.
3687         * config/rs6000/linux64.h: Likewise.
3688         * config/rs6000/rs6000.c: Likewise.
3689         * config/rs6000/rs6000.h: Likewise.
3690         * config/rs6000/predicates.md: Likewise.
3691         * config/rs6000/sysv4.h: Likewise.
3692
3693 2005-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3694
3695         * c-cppbuiltin.c (c_cpp_builtins): Define __pic__ and __PIC__ when
3696         flag_pic is set.
3697
3698         * config/alpha/freebsd.h, config/alpha/linux.h,
3699         config/arm/linux-elf.h, config/bfin/bfin.h,
3700         config/cris/linux.h, config/darwin.h, config/freebsd-spec.h,
3701         config/i386/beos-elf.h, config/i386/gnu.h,
3702         config/i386/linux.h, config/i386/linux64.h, config/i386/nto.h,
3703         config/i386/sco5.h, config/m32r/m32r.h, config/m68k/linux.h,
3704         config/m68k/m68k.h, config/mips/linux.h, config/pa/pa-linux.h,
3705         config/rs6000/linux64.h, config/rs6000/sysv4.h,
3706         config/rs6000/vxworks.h, config/s390/linux.h, config/s390/tpf.h,
3707         config/sh/linux.h, config/sh/sh.h, config/sol2.h,
3708         config/sparc/linux.h, config/sparc/linux64.h,
3709         config/xtensa/xtensa.h: Don't define __pic__ or __PIC__.
3710
3711         * doc/invoke.texi: Document that the macros __pic__ and __PIC__
3712         are both defined when either flag -fpic or -fPIC are used.
3713
3714 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
3715
3716         * config/fp-bit.c (clzusi): New function.
3717         (si_to_float, usi_to_float): Use it to compute proper shift.
3718         (usi_to_float): Preserve guard bits when shifting right.
3719         * libgcc-std.ver (GCC_4.2.0): New version.
3720         * libgcc2.c (__floatundixf, __floatunditf, __floatundidf,
3721         __floatundisf): New functions.
3722         * libgcc2.h (__floatundixf, __floatunditf, __floatundidf,
3723         __floatundisf): Declare.
3724         * mklibgcc.in (lib2funcs): Add _floatundidf, _floatundisf,
3725         _floatundixf, and _floatunditf.
3726         * optabs.c (expand_float): If target does not define a pattern for
3727         signed or unsigned conversion, use an unsigned libcall instead of
3728         a signed one.
3729         (init_optabs): Initialize ufloat_optab.
3730
3731 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
3732
3733         * config/rs6000/rs6000.opt (mmulhw): New option.
3734         * doc/invoke.texi (-mmulhw): Document.
3735         * config/rs6000/rs6000.c (rs6000_override_options): Enable -mmulhw
3736         for 405 and 440.
3737         * config/rs6000/rs6000.md: Add half-word multiply and
3738         multiply-accumulate instructions for 405 and 440.
3739
3740 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
3741
3742         * config/arm/rtems-elf.h: Added definition of LINK_GCC_C_SEQUENCE_SPEC
3743         which matches behavior of gcc 4.0 and older for RTEMS targets.  The
3744         default now includes a linker group which makes the RTEMS one nest.
3745
3746 2005-11-22  Ben Elliston  <bje@au.ibm.com>
3747
3748         * cse.c (fold_rtx): Typo fix.
3749         (find_comparison_args): Pass the mode of arg1, not arg1 itself.
3750
3751 2005-11-21  Richard Henderson  <rth@redhat.com>
3752
3753         * c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h,
3754         langhooks-def.h, langhooks.h: Revert 2005-11-18 lookup_name patch.
3755
3756         * c-tree.h (lookup_name): Move declaration ...
3757         * c-common.h (lookup_name): ... here.
3758         * config/darwin-c.c: Include c-common.h.
3759         * config/t-darwin: Update dependencies.
3760
3761 2005-11-22  Ben Elliston  <bje@au.ibm.com>
3762
3763         * optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of
3764         explicitly testing GET_MODE_CLASS (x) == MODE_FLOAT.
3765         * genopinit.c (gen_insn): Likewise.
3766         * reload.c (find_equiv_reg): Likewise.
3767         * loop.c (load_mems): Likewise.
3768         * rtlanal.c (may_trap_p_1, canonicalize_condition): Likewise.
3769         * cse.c (find_comparison_args, fold_rtx): Likewise.
3770         * dwarf2out.c (add_const_value_attribute): Likewise.
3771         * expr.c (convert_move): Likewise.
3772         * recog.c (general_operand, register_operand): Likewise.
3773         * reg-stack.c (replace_reg): Likewise.
3774         * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
3775         * c-common.c (handle_vector_size_attribute): Likewise.
3776         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3777         (simplify_binary_operation_1): Likewise.
3778         (simplify_const_binary_operation): Likewise.
3779         (simplify_relational_operation): Likewise.
3780         (simplify_const_relational_operation): Likewise.
3781         (simplify_immed_subreg): Likewise.
3782         * emit-rtl.c (gen_lowpart_common): Likewise.
3783         * expmed.c (expand_mult): Likewise.
3784         * stor-layout.c (layout_type): Likewise.
3785
3786 2005-11-21  Paolo Bonzini  <bonzini@gnu.org>
3787
3788         PR target/24951
3789         * config/rs6000/rs6000.c (output_vec_const_move): Load cst and
3790         cst2 only for SPE vectors.
3791
3792 2005-11-21  David Edelsohn  <edelsohn@gnu.org>
3793
3794         PR target/24953
3795         * config/rs6000/predicates.md (vrsave_operation): Check
3796         UNSPEC_VOLATILE value.
3797
3798 2005-11-21  Jan Hubicka  <jh@suse.cz>
3799
3800         PR tree-optimization/24653
3801         * tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
3802
3803 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
3804
3805         * config/i386/predicates.md (ax_reg_operand): New predicate.
3806         (memory_displacement_only_operand): New predicate.
3807         * config/i386/i386.md ("modrm" attribute): Return 0 if one
3808         operand is AX register and the other operand is memory operand
3809         with displacement only.
3810
3811 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
3812
3813         * fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0
3814         if we don't care about NaNs or Infinities.
3815
3816 2005-11-20  Ian Lance Taylor  <ian@airs.com>
3817
3818         PR rtl-optimization/24883
3819         * combine.c (combinable_i3pat): When checking whether the
3820         destination of i3 is used in i3, consider paradoxical subregs.
3821
3822 2005-11-21  Kazu Hirata  <kazu@codesourcery.com>
3823
3824         PR middle-end/20583
3825         * cse.c (cse_insn): Reject invalid forms of CONST earlier.
3826
3827 2005-11-20  Joseph S. Myers  <joseph@codesourcery.com>
3828
3829         * combine.c (try_combine): Do not run subst on i1src and i2src in
3830         the case of generating a PARALLEL for a comparison.
3831
3832 2005-11-20  Richard Henderson  <rth@redhat.com>
3833
3834         PR 24931
3835         * tree-sra.c (struct sra_elt): Add all_no_warning.
3836         (struct sra_walk_fns) <use>: Add use_all argument.
3837         (sra_walk_expr): Pass it.
3838         (sra_walk_modify_expr): Likewise.
3839         (scalarize_ldst): Likewise.
3840         (scan_use): Update for new argument.
3841         (mark_no_warning): New.
3842         (scalarize_use): Use it.
3843
3844 2005-11-20  Bernd Schmidt  <bernd.schmidt@analog.com>
3845
3846         * expr.c (expand_expr_real): Use usmul_optab for widening
3847         signed * unsigned multiplies.
3848         * genopinit.c (optabs): Add usmul_widen_optab.
3849         * optabs.c (init_optabs): Likewise.
3850         * optabs.h (enum optab_index): Add OTI_usmul_widen.
3851         (usmul_widen_optab): Define.
3852         * config/bfin/bfin.md (usmulhisi3): New pattern.
3853
3854         * doc/md.texi (usmulqihi3, usmulhisi3, usmulsidi3): Document.
3855
3856 2005-11-20  Graham Stott <btinternet.com>
3857
3858         * gensupport.c (std_preds): Fixed extraneous `false` in last change.
3859
3860 2005-11-20  Andreas Schwab  <schwab@suse.de>
3861
3862         PR target/24757
3863         * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
3864         insn.
3865
3866 2005-11-19  Richard Henderson  <rth@redhat.com>
3867
3868         PR tree-opt/24665
3869         * tree-gimple.c (is_gimple_id): Export.
3870         * tree-gimple.h (is_gimple_id): Declare.
3871         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
3872         (get_default_value): Use it.
3873         (maybe_fold_stmt_indirect): Likewise.
3874
3875 2005-11-19  James A. Morrison  <phython@gcc.gnu.org>
3876
3877         * tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less
3878         than VR1 or vice-versa.
3879
3880 2005-11-19  Hans-Peter Nilsson  <hp@axis.com>
3881
3882         PR middle-end/24912
3883         PR middle-end/24750
3884         * reload.c (find_reloads_address_1): Mention dependency on
3885         gen_reload.
3886         * reload1.c (gen_reload): For IN with an unary operation, try
3887         moving inner expression to OUT if trivial SET is not valid.
3888         Confirm that the result is valid.  Move common code block into...
3889         (emit_insn_if_valid_for_reload): New function.
3890
3891 2005-11-19  Richard Guenther  <rguenther@suse.de>
3892
3893         * fold-const.c (fold_indirect_ref_1): Make sure we fold
3894         ARRAY_REFs of constant strings.
3895
3896 2005-11-19  Jakub Jelinek  <jakub@redhat.com>
3897
3898         * gcc.c (version_compare_spec_function): Use '%s' rather than %qs in
3899         fatal format string.
3900
3901 2005-11-19  Joseph S. Myers  <joseph@codesourcery.com>
3902
3903         * combine.c (make_compound_operation): Swap operands of
3904         commutative operation if necessary before returning.
3905
3906 2005-11-19  Richard Guenther  <rguenther@suse.de>
3907
3908         PR middle-end/23294
3909         * fold-const.c (fold_plusminus_mult_expr): New function.
3910         (fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
3911         cases, remove now unnecessary code.
3912
3913 2005-11-19  Paolo Bonzini  <bonzini@gcc.gnu.org>
3914
3915         * gensupport.c (old_preds): Rename to std_preds, add special field.
3916         (struct old_pred_table): Rename to struct std_pred_table, add special
3917         field.
3918         (NUM_KNOWN_OLD_PREDS): Rename to NUM_KNOWN_STD_PREDS.
3919         (NUM_OLD_SPECIAL_MODE_PREDS): Remove.
3920         (init_predicate_table): Adjust, and set along the way whether a
3921         predicate is special.
3922
3923 2005-11-18  Mark Mitchell  <mark@codesourcery.com>
3924
3925         * BASE-VER: Change to 4.2.0.
3926
3927 2005-11-18  James E Wilson  <wilson@specifix.com>
3928
3929         * builtins.c (fold_builtin_strstr): Pass s1 through fold_convert before
3930         returning it.
3931
3932 2005-11-18  Mike Stump  <mrs@apple.com>
3933
3934         * c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
3935         * config/darwin-c.c (darwin_pragma_unused): Likewise.
3936         * c-decl.c (lookup_name_two) Remove.
3937         * c-tree.h (lookup_name_two): Remove.
3938         * c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
3939         * langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
3940         (LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
3941         * langhooks.h (lang_hooks_for_decls): Add lookup_name.
3942
3943 2005-11-18  Richard Earnshaw  <richard.earnshaw@arm.com>
3944
3945         PR target/24914
3946         * arm.c (arm_hard_regno_mode_ok): Co-processor registers aren't ok
3947         when not generating code to use that co-processor.
3948
3949 2005-11-18  James A. Morrison  <phython@gcc.gnu.org>
3950
3951         * tree-flow.h (reserve_phi_args_for_new_edge, create_phi_node,
3952         add_phi_arg, remove_phi_args, remove_phi_node phi_reverse): Mention that
3953         these functions are now in tree-phinodes.c.
3954
3955 2005-11-18  Jie Zhang  <jie.zhang@analog.com>
3956
3957         * config/bfin/bfin.md (trap): New pattern.
3958
3959 2005-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3960
3961         * tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds
3962         on types.
3963
3964         * expr.c (expand_expr_real): Don't call record_block_change unless
3965         ib_boundaries_block is non-null
3966
3967         * postreload.c (reload_cse_move2add): Don't try to work with BImode.
3968
3969         * fold-const.c (build_range_check): Use proper type for subtraction
3970         when merging lower bound.
3971
3972 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
3973
3974         PR rtl-optimization/24497
3975         * loop-unroll.c (apply_opt_in_copies): Do not verify equality of
3976         the copied insn.
3977
3978 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
3979
3980         * tree-scalar-evolution.c (expression_expensive_p): New function.
3981         (scev_const_prop): Use compute_overall_effect_of_inner_loop.
3982
3983 2005-11-18  Bernd Schmidt  <bernd.schmidt@analog.com>
3984
3985         * config/bfin/crtlibid.s: New file.
3986
3987 2005-11-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3988
3989         PR target/24348
3990         * config.gcc (hppa*-*-hpux*): Add pa/t-slibgcc-elf-ver to tmake config
3991         when not using sjlj exceptions.
3992         * config/pa/pa64-hpux.h (LIB_SPEC): Add -lpthread in static links.
3993         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
3994         * config/pa/som.h (ASM_PREFERRED_EH_DATA_FORMAT): Delete define.
3995         * config/pa/linux-unwind.h (pa32_fallback_frame_state): Use
3996         DWARF_ALT_FRAME_RETURN_COLUMN instead of column 0 as return column.
3997         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): New define.
3998         * config/pa/pa-linux.h (INCOMING_RETURN_ADDR_RTX,
3999         DWARF_FRAME_RETURN_COLUMN, ASM_PREFERRED_EH_DATA_FORMAT,
4000         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Delete defines.
4001         * config/pa/pa.h (ARG_POINTER_CFA_OFFSET): Delete.
4002         (FRAME_POINTER_CFA_OFFSET, INCOMING_RETURN_ADDR_RTX,
4003         DWARF_FRAME_RETURN_COLUMN, DWARF_ALT_FRAME_RETURN_COLUMN,
4004         ASM_PREFERRED_EH_DATA_FORMAT, ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New
4005         defines.
4006         * config/pa/hpux-unwind.h: New file.
4007
4008 2005-11-17  Alexandre Oliva  <aoliva@redhat.com>
4009
4010         * config/rs6000/rs6000.h (ASM_OUTPUT_WEAKREF): Define.
4011         * defaults.h (ASM_OUTPUT_WEAKREF): Add decl argument.
4012         * varasm.c (do_assemble_alias): Adjust call.
4013         (weak_finish): Don't use ASM_WEAKEN_LABEL if ASM_WEAKEN_DECL
4014         is defined.
4015         * doc/tm.texi (ASM_OUTPUT_WEAKREF): Document it.
4016
4017 2005-11-17  James E Wilson  <wilson@specifix.com>
4018
4019         * tree.def (FUNCTION_DECL): Correct typo in comment.
4020
4021 2005-11-17  Richard Henderson  <rth@redhat.com>
4022
4023         * dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
4024         (lookup_cfa_1): Apply data alignment to DW_CFA_def_cfa_offset_sf
4025         and DW_CFA_def_cfa_sf.
4026         (def_cfa_1): Use DW_CFA_def_cfa_offset_sf with negative values.
4027         (dbx_reg_number): Don't assert particular registers here.
4028         (based_loc_descr): ... do it here instead.  Fold in ...
4029         (eliminate_reg_to_offset): ... this function.
4030         (compute_frame_pointer_to_cfa_displacement): Fold in the effects
4031         of eliminate_reg_to_offset; use FRAME_POINTER_CFA_OFFSET.
4032         * unwind-dw2.c (execute_cfa_program): Apply data align factor
4033         to DW_CFA_def_cfa_offset_sf and DW_CFA_def_cfa_sf.
4034         * function.c (instantiate_new_reg): Use FRAME_POINTER_CFA_OFFSET.
4035         (instantiate_virtual_regs): Likewise.
4036         * var-tracking.c (adjust_stack_reference): Likewise.
4037         * doc/tm.texi (FRAME_POINTER_CFA_OFFSET): New.
4038
4039 2005-11-17  Bernd Schmidt  <bernd.schmidt@analog.com>
4040
4041         * config/bfin/elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
4042         * config/bfin/uclinux.h (STARFILE_SPEC): Likewise.
4043         * config/bfin/t-bfin-elf (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Add
4044         crtlibid.o.
4045         ($(T)crtlibid.o): New rule.
4046
4047 2005-11-16  Richard Guenther  <rguenther@suse.de>
4048
4049         PR middle-end/24851
4050         * fold-const.c (extract_array_ref): Return byte offset
4051         in all cases.
4052         (fold_binary): Fold &x[a] CMP &x[b] to
4053         a*sizeof(*x) CMP b*sizeof(*x) to get correct overflow
4054         behavior.
4055
4056 2005-11-16  Richard Henderson  <rth@redhat.com>
4057
4058         PR middle-end/23497
4059         * tree-ssa.c (warn_uninitialized_var): Skip real and imaginary
4060         parts of an SSA_NAME.
4061
4062 2005-11-16  Richard Earnshaw  <richard.earnshaw@arm.com>
4063
4064         PR target/24861
4065         * arm.md (split for movsf with immediate): Restrict split to insns
4066         that set a general register.
4067
4068 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
4069
4070         * config/ia64/unwind-ia64.c (uw_advance_context): New.  Call
4071         uw_update_context.
4072         * unwind-dw2.c (uw_advance_context): Likewise.
4073         * unwind-sjlj.c (uw_advance_context): Likewise.  Also call
4074         _Unwind_SjLj_Unregister.
4075         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Call uw_advance_context.
4076
4077 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
4078
4079         * unwind-sjlj.c (_Unwind_GetCFA): Handle the builtin_setjmp case.
4080
4081 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4082
4083         * config/alpha/alpha.c (alpha_init_builtins): Use type_for_mode
4084         langhook to get a DImode integer type.
4085
4086 2005-11-16  Richard Henderson  <rth@redhat.com>
4087             J"orn Rennecke <joern.rennecke@st.com>
4088             Ulrich Weigand  <uweigand@de.ibm.com>
4089
4090         PR rtl-opt/24160
4091         PR target/24621
4092         * reload1.c (reg_equiv_invariant): New.
4093         (reload): Allocate, initialize, and free it.
4094         (calculate_needs_all_insns): Check it when skipping equivalence
4095         setting insns.
4096         (alter_reg): Likewise.
4097         (eliminate_regs_1): Rename from eliminate_regs.  Add new
4098         may_use_invariant argument; only use reg_equiv_invariant when true.
4099         (eliminate_regs): New.
4100         (eliminate_regs_in_insn): Use eliminate_regs_1; track when we're in
4101         a context for which may_use_invariant may be true.
4102
4103 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4104
4105         * fold-const.c (const_binop): Don't constant fold the operation
4106         if the result has overflowed and flag_trapping_math.
4107         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
4108
4109 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
4110
4111         * config/arm/unwind-arm.c (abort): Add prototype here.
4112         (UCB_FORCED_STOP_ARG): Correct typo in macro argument.
4113         (struct phase1_vrs): Add prev_sp.
4114         (unwind_phase2_forced): Save the original core registers instead of
4115         modifying entry_vrs.  Take a new flag argument for resuming unwinding
4116         and set action flags accordingly.  Always set _US_END_OF_STACK when
4117         get_eit_entry fails.  Unwind before calling the stop function.
4118         (_Unwind_GetCFA): New function.
4119         (__gnu_Unwind_ForcedUnwind): Update call to unwind_phase2_forced.
4120         (__gnu_Unwind_Resume_or_Rethrow): Likewise.
4121         (__gnu_Unwind_Resume): Do not unwind here for forced unwinding;
4122         just call unwind_phase2_forced.
4123         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Move to here.
4124         * config/arm/unwind-arm.h (abort): Remove prototype.
4125         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Change to
4126         prototypes.
4127         (_Unwind_GetCFA): New prototype.
4128         * config/arm/pr-support.c (abort): Add prototype here.
4129         * unwind-c.c (PERSONALITY_FUNCTION) [__ARM_EABI_UNWINDER__]: Handle
4130         forced unwinding.
4131         * config/arm/arm.c (arm_expand_prologue, thumb_expand_prologue): Do
4132         not schedule the prologue with non-call exceptions and EABI.
4133
4134 2005-11-16  Nathan Sidwell  <nathan@codesourcery.com>
4135
4136         * config/arm/unwind-arm.h: Reorder interface function declarations.
4137         (_URC_END_OF_STACK): New enumeration value.
4138         (_US_UNWIND_ACTION_MASK, _US_FORCE_UNWIND, _US_END_OF_STACK): Likewise.
4139         (struct _Unwind_Control_Block): Document reserved field use.
4140         (_Unwind_Stop_Fn): New typedef.
4141         (_Unwind_ForcedUnwind): Declare.
4142         (_Unwind_Resume_or_Rethrow): Declare.
4143         * gcc/config/arm/libunwind.S (UNWIND_WRAPER): Add nargs
4144         argument.  Adjust.
4145         (_Unwind_Resume_or_Rethrow, _Unwind_ForcedUnwind): New.
4146         * config/arm/unwind-arm.c (UCB_FORCED_STOP_FN)
4147         (UCB_FORCED_STOP_ARG): New.
4148         (search_EIT_table): Update boundary condition checks.
4149         (get_eit_entry): Return _URC_END_OF_STACK when cannot unwind.
4150         (unwind_phase2): Replace for with do..while.
4151         (unwind_phase2_forced): New.
4152         (__gnu_Unwind_RaiseException): Replace for with do..while.
4153         (__gnu_Unwind_ForcedUnwind): New.
4154         (__gnu_Unwind_Resume): Set FORCE_UNWIND flag, if forced unwinding.
4155         Use appropriate phase2 unwinder.
4156         (__gnu_Unwind_Resume_or_Rethrow): New.
4157         (__gnu_unwind_pr_common): Cope with forced unwinding.
4158
4159 2005-11-16  David Edelsohn  <edelsohn@gnu.org>
4160
4161         PR target/24772
4162         * config/rs6000/predicates.md (vrsave_operation): SET_SRC is a VEC.
4163
4164         * config/rs6000/rs6000.md (btruncsf2, ceilsf2, floorsf2,
4165         roundsf2): Remove "s" from mnemonic.
4166
4167 2005-11-16  Bernd Schmidt  <bernd.schmidt@analog.com>
4168
4169         * config/bfin/crti.s (__init, __fini): Use appropriate prologue if
4170         __PIC__ is defined.
4171         * config/bfin/crtn.s: Change epilogues to match.
4172         * config/bfin/t-bfin-elf (EXTRA_MULTILIB_PARTS): Define.
4173         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If flag_pic, define
4174         __PIC__ and __pic__.
4175
4176 2005-11-16  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
4177
4178         PR 24357
4179         * doc/invoke.texi: Distinguish between free and fixed form instead of
4180         Fortran and Fortran 90/95.  Remove ratfor from the list of supported
4181         languages.
4182         * gcc.c (default_compilers): Remove double entries, add entries for
4183         suffixes '.F90' and '.F95'.
4184
4185 2005-11-16  Eric Botcazou <ebotcazou@adacore.com>
4186
4187         * config/alpha/alpha.c (alpha_expand_prologue): Fix off-by-one bug
4188         in the stack probing loop.
4189
4190 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
4191
4192         * configure.ac: Use .machine power5 not power5x.
4193         * configure: Regenerate.
4194
4195 2005-11-15  Mike Stump  <mrs@apple.com>
4196
4197         * c-decl.c (lookup_name_two): Add.
4198         * c-tree.h (lookup_name_two): Likewise.
4199         * c-common.c (handle_cleanup_attribute): Use lookup_name_two instead.
4200         * config/darwin-c.c (darwin_pragma_unused): Likewise.
4201
4202 2005-11-16  Alan Modra  <amodra@bigpond.net.au>
4203
4204         PR rtl-optimization/23392
4205         * regrename.c (enum scan_actions) Add mark_access.
4206         (scan_actions_name): Ditto.
4207         (scan_rtx_reg): Handle mark_access.
4208         (scan_rtx_address): Do nothing for mark_access.
4209         (build_def_use): Mark source registers in REG_FRAME_RELATED_EXPR
4210         and regs in REG_INC notes before closing chains for dead regs.
4211         Mark destination regs in REG_FRAME_RELATED_EXPR notes after
4212         opening chains for new writes.
4213
4214 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
4215
4216         * c.opt (ffixed-line-length-none): New.
4217
4218 2005-11-15  Steve Ellcey  <sje@cup.hp.com>
4219
4220         * mklibgcc.in: Change contents of eh_dummy.c.
4221
4222 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
4223
4224         * loop.c (scan_loop): Do not insert temporaries for hard registers.
4225
4226 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
4227
4228         * config/arm/lib1funcs.asm (div0) [L_dvmd_lnx]: Call raise instead
4229         of making syscalls.
4230         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define.  Set r7 also.
4231
4232 2005-11-15  Jan Hubicka  <jh@suse.cz>
4233
4234         * invoke.texi (large-unit-insns): Document.
4235         * ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
4236         * params.def (large-unit-insns): New param.
4237
4238 2005-11-15  Hans-Peter Nilsson  <hp@axis.com>
4239
4240         PR target/24869
4241         * config/cris/cris.md ("*mov_sidesisf_mem"): Do not match
4242         special register for operand 3.  Reindent constraints to align
4243         them vertically.
4244
4245 2005-11-14  David Edelsohn  <edelsohn@gnu.org>
4246
4247         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf,
4248         -mpopcntb, -mfprnd. Add -mcpu=power5+.
4249         * configure.ac: Add test for FP rounding instructions.
4250         * configure: Regenerate.
4251         * config.in: Regenerate.
4252         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4253         _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if
4254         features enabled.
4255         * config/rs6000/rs6000.opt (mfprnd): New.
4256         * config/rs6000/rs6000.c (processor_target_table): Add power5+.
4257         (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND.
4258         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+.
4259         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+.
4260         (TARGET_FPRND): New.
4261         * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP,
4262         UNSPEC_FRIZ): New.
4263         (btrunc<mode>2): New.
4264         (ceil<mode>2): New.
4265         (floor<mode>2): New.
4266         (round<mode>2): New.
4267
4268 2005-11-14  Geoffrey Keating  <geoffk@apple.com>
4269
4270         * gcc.c (version_compare_spec_function): Use fatal() rather than
4271         abort().
4272
4273         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
4274         (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
4275         * config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
4276         as empty.
4277         * config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
4278         link in crt2.o.
4279
4280         * config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
4281         on -mmacosx-version-min setting.
4282
4283 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
4284
4285         PR 24840
4286         * tree-vrp.c (infer_value_range): Return false if STMT is a
4287         block terminator and its basic block has no successors.
4288
4289 2005-11-14  Mike Stump  <mrs@apple.com>
4290
4291         * config/i386/i386.c (override_options): -masm=intel isn't
4292         supported on darwin.
4293         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
4294
4295 2005-11-15  Joseph S. Myers  <joseph@codesourcery.com>
4296
4297         * crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
4298         vfork after including auto-host.h.
4299
4300 2005-11-15  Alan Modra  <amodra@bigpond.net.au>
4301
4302         PR rtl-optimization/22002
4303         * combine.c (distribute_notes): Detect cases where a reg dies
4304         two or more times in a bb, including on the insn we are combining,
4305         and place the death note on the correct range.
4306
4307 2005-11-14  Dale Johannesen  <dalej@apple.com>
4308
4309         * expmed.c (store_bit_field):  Add offset unconditionally for
4310         memory targets.
4311         (extract_bit_field):  Don't force extzv or extv operand into
4312         a register if field is too big.
4313
4314 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
4315
4316         * config/arm/arm.c (pic_labelno): New.
4317         (arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a
4318         LABEL_REF.  Pass only the labelno to PIC insns.
4319         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
4320         (arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL.
4321         * arm.md (UNSPEC_PIC_LABEL): New constant.
4322         (pic_add_dot_plus_four, pic_add_dot_plus_eight)
4323         (tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF.
4324         Use the correct label prefix.
4325
4326 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
4327
4328         * config/arm/arm.c (legitimize_tls_address): Use correct rtx for
4329         REQ_EQUIV note.
4330
4331 2005-11-14  Richard Earnshaw  <richard.earnshaw@arm.com>
4332
4333         * loop-invariant.c: Include tm_p.h.
4334         * Makefile.in: Updated.
4335
4336 2005-11-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4337
4338         * pa.c (store_reg): Revise generation of frame notes in large frames.
4339         (set_reg_plus_d): Likewise.
4340
4341 2005-11-13  Andrew MacLeod  <amacleod@redhat.com>
4342
4343         PR tree-optimization/24709
4344         * tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
4345         loop check.
4346
4347 2005-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
4348
4349         * gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
4350         and duplicate declaration of pthread_self.
4351
4352 2005-11-13  Eric Botcazou  <ebotcazou@adacore.com>
4353             Ian Lance Taylor  <ian@airs.com>
4354
4355         PR middle-end/24003
4356         * calls.c (expand_call): If TARGET is a MEM and some part of the
4357         argument area has been saved, force TARGET to a register.
4358
4359 2005-11-13  Razya Ladelsky <razya@il.ibm.com>
4360
4361         * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type
4362         checking.
4363
4364 2005-11-13  Jason Merrill  <jason@redhat.com>
4365
4366         PR c++/22489
4367         * dwarf2out.c (gen_subprogram_die): Force a declaration die for
4368         lazily declared methods.
4369         (force_decl_die): Stop if forcing out the context already make a
4370         DIE for the decl.
4371         (force_type_die): Likewise.
4372
4373 2005-11-13  Andrew Pinski  <pinskia@physics.uc.edu>
4374
4375         PR middle-end/24820
4376         * builtins.c (integer_valued_real_p): Add break in
4377         REAL_CST having TREE_OVERFLOW set.
4378
4379 2005-11-13  Zdenek Dvorak  <dvorakz@suse.cz>
4380
4381         * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
4382         addressing modes during calculation of costs.
4383
4384 2005-11-12  Eric Botcazou  <ebotcazou@adacore.com>
4385
4386         * function.c (assign_stack_local_1): Restrict sanity check
4387         on frame size overflow to 32-bit and above platforms.
4388
4389 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
4390
4391         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
4392         * config/cris/cris.c: Include reload.h.
4393         (cris_initial_elimination_offset): New function.
4394         * config/cris/cris-protos.h: (cris_initial_elimination_offset):
4395         Prototype.
4396
4397 2005-11-12  Richard Guenther  <rguenther@suse.de>
4398
4399         * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
4400
4401 2005-11-12  Jan Hubicka  <jh@suse.cz>
4402
4403         * expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize
4404         to compare against 0 when possible.
4405
4406 2005-11-12  Jie Zhang  <jie.zhang@analog.com>
4407
4408         * config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES,
4409         HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
4410         REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers.
4411         * config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers
4412         in the new order.
4413
4414 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
4415
4416         * recog.c (constrain_operands) <case 'g'>: For a match, require
4417         that a non-register matches general_operand when strict >= 0.
4418
4419 2005-11-11  Steven Bosscher  <stevenb@suse.de>
4420
4421         * loop-invariant.c (move_loop_invariants): Fix a thinko in the
4422         previous checkin.
4423
4424 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
4425
4426         * tree-ssa-dse.c (struct address_walk_data, memory_ssa_name_same)
4427         (memory_address_same): New.
4428         (dse_optimize_stmt): Call memory_address_same.
4429
4430 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
4431
4432         PR middle-end/24750
4433         * reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND,
4434         ZERO_EXTEND>: New cases.
4435
4436 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
4437
4438         * longlong.h (__clz_tab): Always provide.
4439
4440 2005-11-11  Steven Bosscher  <stevenb@suse.de>
4441
4442         PR 24265
4443         * loop-invariant.c (may_assign_reg_p): Make sure a hard register
4444         can be assigned to.
4445         (find_invariant_insn): Do the cheapest check, may_assign_reg_p,
4446         before check_maybe_invariant.
4447         (move_invariant_reg): Use gen_move_insn instead of replacing
4448         SET_DEST with the temporary for the invariant.
4449         (move_loop_invariants): If checking is enabled, do internal
4450         consistency checks after completing the pass.
4451
4452 2005-11-11  David Edelsohn  <edelsohn@gnu.org>
4453
4454         PR 24644
4455         * common.opt (Wvolatile-register-var): New.
4456         * varasm.c (make_decl_rtl): Only emit warning when option
4457         specified.  Clarify warning message.
4458         * doc/invoke.texi (Wvolatile-register-var): Document new option.
4459
4460         * doc/md.texi (copysign): Document standard named pattern.
4461
4462 2005-11-11  Jie Zhang  <jie.zhang@analog.com>
4463
4464         * config/bfin/bfin.c (bfin_expand_strmov): Correctly move the trailing
4465         bytes when align is 2.
4466         * config/bfin/bfin.md (rep_movsi, rep_movhi): Make LSETUP be followed
4467         by the first instruction of the loop.
4468
4469 2005-11-11  Jason Merrill  <jason@redhat.com>
4470
4471         PR c++/24686
4472         * gimplify.c (gimplify_cleanup_point_expr): Also save and restore
4473         the cleanup list.
4474
4475 2005-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
4476
4477         PR rtl-optimization/22509
4478         * local-alloc.c (memref_used_between_p): Check whether a function call
4479         could not reference the memref.
4480
4481 2005-11-11  Ulrich Weigand  <uweigand@de.ibm.com>
4482
4483         * postreload.c (reload_cse_simplify_operands): Fix bug in sorting
4484         algorithm so as to choose the best, not the worst, alternative.
4485         Reset accumulated register class before processing next alternative.
4486
4487 2005-11-11  Kaz Kojima  <kkojima@gcc.gnu.org>
4488
4489         PR target/24445
4490         * calls.c (expand_call): Copy a return value to a plain register
4491         if needed.
4492
4493 2005-11-10  Alexandre Oliva  <aoliva@redhat.com>
4494
4495         PR target/24778
4496         * varasm.c (assemble_name): Recompute name only for transparent
4497         aliases.
4498
4499 2005-11-10  Hans-Peter Nilsson  <hp@axis.com>
4500
4501         * tree-ssa-structalias.c (heapvar_lookup): Fix typo: stmt to from.
4502
4503 2005-11-04  Jeff Law  <law@redhat.com>
4504
4505         PR middle-end/23181
4506         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Do not
4507         perform reassociation if the parent statement will not die as
4508         a result of the optimization.
4509
4510 2005-11-10  Daniel Berlin  <dberlin@dberlin.org>
4511
4512         * tree-ssa-alias.c (compute_may_aliases): Remove call to
4513         delete_old_heap_vars.
4514         * tree-dfa.c (referenced_var_remove): Remove function.
4515         * tree-ssa.c (init_tree_ssa): Call init_alias_heapvars.
4516         (delete_tree_ssa): Remove call to delete_old_heapvars.
4517         Add call to delete_alias_heapvars.
4518         * tree-flow.h (referenced_var_remove): Remove prototype
4519         (init_alias_heapvars): New prototype.
4520         (delete_alias_heapvars): Ditto.
4521         * Makefile.in (tree-ssa-structalias.o): Add
4522         gt-tree-ssa-structalias.o
4523         (GTFILES): Add tree-ssa-structalias.h and
4524         tree-ssa-structalias.c.
4525         (s-gtype): Add gt-tree-ssa-structalias.h.
4526         * tree-ssa-structalias.c (heapvars): Remove.
4527         (oldheapvars): Remove.
4528         (heapvar_for_stmt): New variable.
4529         (heapvar_lookup): New function.
4530         (heapvar_insert): Ditto.
4531         (get_constraint_for): See if we have an old heapvar
4532         to reuse.
4533         (init_alias_heapvars): New function.
4534         (delete_alias_heapvars): Ditto.
4535         Add include of gt-tree-ssa-structalias.h.
4536
4537 2005-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
4538
4539         PR middle-end/22127
4540         * calls.c (special_function_p): Set ECF_RETURNS_TWICE for getcontext.
4541
4542 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
4543
4544         * tree.c (int_fits_type_p): Only look at the base type
4545         if it has the same precision as the original type.
4546
4547 2005-11-10  Jakub Jelinek  <jakub@redhat.com>
4548
4549         PR other/4372
4550         * varasm.c (assemble_alias): Use %q+D in the error
4551         message instead of %J and %qD.
4552
4553 2005-11-10  Richard Guenther  <rguenther@suse.de>
4554
4555         * gcse.c (free_ldst_entry): Only free hashtable if
4556         it exists.
4557
4558 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4559
4560         * function.c (assign_stack_local_1): Issue an error message if
4561         the frame size overflows in the signed target arithmetics.
4562
4563 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4564
4565         * tree.c (build_qualified_type): Chain the new type to the original
4566         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
4567         a POINTER_TYPE or a REFERENCE_TYPE respectively.
4568         (build_pointer_type_for_mode): Only return unqualified types.
4569         (build_reference_type_for_mode): Likewise.
4570
4571 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
4572
4573         * Makefile.in (gnucompare): Do comparison of all files using one of
4574         the chosen methods and only afterwards decide if just warning should
4575         be issued or comparison failure raised.
4576
4577 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4578
4579         * ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
4580         (noce_try_abs): Negate if the comparison is reversed.
4581         Look only one instruction backwards for a REG_EQUAL note.
4582
4583 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
4584
4585         PR other/4372
4586         * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
4587         gthr-tpf.h: Define __gthrw.  For all identifiers that might
4588         be weak, introduce weakrefs or non-weak aliases with __gthrw,
4589         and prefix all uses with __ghtrw.
4590
4591 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
4592
4593         PR other/4372
4594         * tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New.
4595         (TREE_DEPRECATED): Adjust comment.  Check for a DECL.
4596         * c-common.c (handle_weakref_attribute): New.
4597         (c_common_attribute_table): Add weakref.
4598         * configure.ac (HAVE_GAS_WEAKREF): Check for weakref support
4599         in the assembler.
4600         * configure, config.in: Rebuilt.
4601         * defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF.
4602         * doc/extend.texi: Document weakref attribute.
4603         * varasm.c (ultimate_transparent_alias_target): New
4604         (assemble_name): Use it.
4605         (weak_finish_1): Split out of...
4606         (weak_finish): ... and deal with weakrefs in...
4607         (weakref_targets): ... new list.
4608         (globalize_decl): Clean up weakref_targets.
4609         (do_assemble_alias): Handle weakrefs.
4610         (finish_aliases_1): Do not reject weakrefs to external symbols.
4611         (assemble_alias): Handle weakrefs.
4612
4613 2005-11-09  Richard Guenther  <rguenther@suse.de>
4614
4615         PR tree-optimization/24716
4616         * tree-scalar-evolution.c (analyze_evolution_in_loop): Use
4617         t_bool to track results from follow_ssa_edge.
4618
4619 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4620
4621         * final.c (force_source_line): New global variable.
4622         (final_scan_insn): Set it to true instead of clearing last_filename.
4623         (notice_source_line): Return true if force_source_line is true,
4624         unless source info is absent.
4625
4626 2005-11-09  Andrew Pinski  <pinskia@physics.uc.edu>
4627
4628         PR c/24644
4629         * dwarf2-out.c (add_name_and_src_coords_attributes): Don't add
4630         a linkage name for a variable if it a register variable.
4631         * c-decl.c (grokdeclarator): Global register variables
4632         should be set as PUBLIC.
4633
4634 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
4635
4636         PR 24624
4637         * config/s390/s390.c (struct s390_frame_layout): New fields
4638         first_save_gpr_slot and last_save_gpr_slot.
4639         (cfun_grps_save_area_size, s390_frame_info, s390_emit_prologue,
4640         s390_emit_epilogue, s390_initial_elimination_offset): Replaced
4641         first_save_gpr and last_save_gpr with the _slot variants.
4642         (s390_register_info): Calculate first_save_gpr_slot and
4643         last_save_gpr_slot using regs_ever_live.
4644
4645 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
4646
4647         PR 24623
4648         * config/s390/s390.c (s390_regs_ever_clobbered): Only save live eh regs
4649         for a function containing a landing pad.
4650
4651 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
4652
4653         PR 24034
4654         * flow.c (mark_set_1): Handle CLOBBERs like SETs if the register
4655         is live afterwards.
4656
4657 2005-11-08  Bernd Schmidt  <bernd.schmidt@analog.com>
4658
4659         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DEFAULTS,
4660         MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): New.
4661
4662 2005-11-09  Nathan Sidwell  <nathan@codesourcery.com>
4663
4664         Add ms2 support
4665         * config/ms1/ms1.md (UNSPEC_BLOCKAGE, UNSPEC_EI, UNSPEC_DI): New
4666         constants.
4667         (call,load,store): New insn types.
4668         (mem_access, branch_access): Adjust reservation conditions.
4669         (define_delay): Adjust condition.
4670         (decrement_and_branch_until_zero): Allow for ms2.  Set branch
4671         type.
4672         (*decrement_and_rbanch_until_zero_no_clobber): Allow for ms2.
4673         (*movqi_internal,*movsi_internal,*movsf_internal): Use load,store
4674         insn type.
4675         (call_internal, call_value_internal, return_internal,
4676         return_interrupt_internal, eh_return_internal, indirect_jump,
4677         tablejump): Set call insn type.
4678         (blockage, ei, di): Use appropriate unspec const.
4679         * config/ms1/ms1.c (ms1_flag_delayed_branch): New.
4680         (ms1_get_attr_type): Adjust to give load & store types.
4681         (ms1_final_prescan_insn): Adjust for new insn types.  Don't look
4682         backwards past a barrier.
4683         (ms1_override_options): Accept ms2 arch.  Copy and reset delayed
4684         branch scheduling.
4685         (struct branch_info, struct label_info): New.
4686         (ms1_labels): New.
4687         (ms1_add_branches, ms1_check_delay_slot, ms1_reorg_hazard): New.
4688         (ms1_machine_reorg): New.
4689         (TARGET_MACHINE_DEPENDENT_REORG): Override.
4690         * config/ms1/crtn.asm: Add nop for ms2 JAL hazard.
4691         * config/ms1/ms1.h (processor_type): Add PROCESSOR_MS2.
4692         (ASM_SPEC, LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Add ms2.
4693         (TARGET_MS2): New.
4694
4695 2005-11-09  Per Bothner  <per@bothner.com>
4696             Uros Bizjak  <uros@kss-loka.si>
4697
4698         PR c/24101
4699         * toplev.c (process_options): Initialize debug_hooks early
4700         in case lang_hooks.post_options ends up calling a debug_hook.
4701
4702 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
4703
4704         * dwarf2out.c (multiple_reg_loc_descriptor): Don't assume
4705         DBX_REGISTER_NUMBER being contiguous.
4706
4707 2005-11-08  James A. Morrison  <phython@gcc.gnu.org>
4708             Diego Novillo  <dnovillo@redhat.com>
4709
4710         PR 23046
4711         * tree-vrp.c (register_edge_assert_for): Do not register
4712         always-false predicates.
4713
4714 2005-11-08  Devang Patel <dpatel@apple.com>
4715
4716         PR tree-optimization/23115
4717         * tree-if-conv.c (find_phi_replacement_condition): Check domninated_by
4718         relation.
4719
4720 2005-11-08  Joseph S. Myers  <joseph@codesourcery.com>
4721
4722         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include
4723         -mcpu=440.
4724
4725 2005-11-08  Daniel Berlin  <dberlin@dberlin.org>
4726
4727         Fix PR tree-optimization/23382
4728
4729         * tree-ssa-alias.c (compute_may_aliases): Call
4730         delete_old_heap_vars.
4731         * tree-dfa.c (referenced_var_remove): New function.
4732         * tree-ssa.c (delete_tree_ssa): Call delete_old_heap_vars.
4733         * tree-flow.h (referenced_var_remove): Add prototype.
4734         (delete_old_heap_vars): Ditto.
4735         * tree-ssa-structalias.c (heapvars): New variable.
4736         (oldheapvars): Ditto.
4737         (get_constraint_for): Put heap vars on heapvars list.
4738         (delete_old_heap_vars): New function.
4739
4740 2005-11-08  Jason Merrill  <jason@redhat.com>
4741
4742         * tree.h (CALL_FROM_THUNK_P): Add CALL_EXPR_CHECK.
4743
4744 2005-11-08  Uros Bizjak  <uros@kss-loka.si>
4745
4746         PR target/19340
4747         * reg-stack.c (reg_to_stack): Update register liveness also
4748         for flag_sched2_use_traces.
4749
4750 2005-11-08  Alan Modra  <amodra@bigpond.net.au>
4751
4752         PR target/23704
4753         * config/rs6000/rs6000.c (rs6000_handle_option <OPT_m64>): Don't
4754         override prior explicit -mno-powerpc-gfxopt.
4755
4756 2005-11-07  Eric Botcazou  <ebotcazou@adacore.com>
4757
4758         * expmed.c (extract_bit_field): Do not use insv/extv/extzv patterns
4759         if the bitsize is zero.
4760         * doc/md.texi (Standard Pattern Names): Document it.
4761
4762         * config/ia64/ia64.c (ia64_pass_by_reference): Delete.
4763         (TARGET_PASS_BY_REFERENCE): Likewise.
4764
4765 2005-11-07  Ian Lance Taylor  <ian@airs.com>
4766
4767         PR rtl-optimization/24683
4768         * config/i386/i386.c (legitimize_pic_address): If constant operand
4769         to PLUS is too large, put it in a register.
4770
4771 2005-11-07  Jie Zhang  <jie.zhang@analog.com>
4772
4773         * configure.ac: Enable checking assembler dwarf2 support for bfin
4774         target.
4775         * configure: Regenerate.
4776
4777 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
4778
4779         PR target/24230
4780
4781         * config/rs6000/rs6000.c (easy_vector_splat_const, easy_vector_same,
4782         gen_easy_vector_constant_add_self): Delete.
4783         (vspltis_constant, easy_altivec_constant, gen_easy_altivec_constant):
4784         New.
4785         (output_vec_const_move): Use gen_easy_altivec_constant.
4786         (rs6000_expand_vector_init): Do not emit a set of a VEC_DUPLICATE.
4787         * config/rs6000/predicates.md (easy_vector_constant): Reorganize tests.
4788         (easy_vector_constant_add_self): Rewritten.
4789         * config/rs6000/rs6000-protos.h (easy_vector_splat_const,
4790         easy_vector_same, gen_easy_vector_constant_add_self): Remove prototype.
4791         (easy_altivec_constant, gen_easy_altivec_constant): Add prototype.
4792         * config/rs6000/altivec.md (easy_vector_constant_add_self splitters):
4793         Macroize and adjust for the other changes.
4794
4795 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
4796
4797         PR c/24599
4798
4799         * c-typeck.c (build_c_cast): Try using a shared constant, and see
4800         if TREE_OVERFLOW or TREE_CONSTANT_OVERFLOW really changed.
4801
4802 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
4803
4804         PR rtl-optimization/23567
4805         * ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
4806         (noce_process_if_block): Don't do any optimizations except
4807         if (cond) x = x; if !set_b and write into orig_x may trap
4808         or fault.  Remove the MEM_READONLY_P check.
4809
4810 2005-11-06  Diego Novillo  <dnovillo@redhat.com>
4811
4812         PR 24670
4813         * tree-vrp.c (fix_equivalence_set): New.
4814         (extract_range_from_assert): Call it.
4815
4816 2005-11-05  Ian Lance Taylor  <ian@airs.com>
4817
4818         PR target/22432
4819         * combine.c (apply_distributive_law): Don't distribute across a
4820         vector mode subreg.
4821
4822 2005-11-05  Kazu Hirata  <kazu@codesourcery.com>
4823
4824         * c-typeck.c, config/i386/netware.h, config/m32c/cond.md,
4825         config/ms1/ms1.h, config/rs6000/predicates.md,
4826         config/s390/s390.c, params.def, postreload-gcse.c,
4827         tree-flow-inline.h, tree-ssa-operands.c, tree-vectorizer.c,
4828         tree-vrp.c, tree.c: Fix comment typos.
4829         * doc/invoke.texi: Fix typos.
4830
4831 2005-11-05  Sebastian Pop  <pop@cri.ensmp.fr>
4832
4833         * lambda-code.c (lambda_transform_legal_p): Use DDR_NUM_DIST_VECTS
4834         for testing whether the data_dependence_relation contains distance
4835         vectors.  Iterate over all distance vectors of the ddr.
4836         * lambda.h: Define a vec of lambda_vector pointers.
4837         * tree-data-ref.c (dump_data_dependence_relation,
4838         dump_data_dependence_direction): Iterate over all distance and
4839         direction vectors of the ddr.
4840         (initialize_data_dependence_relation): Initialize DDR_DIR_VECTS and
4841         DDR_DIST_VECTS.
4842         (build_classic_dist_vector, build_classic_dir_vector): Push a set
4843         of distance/direction vectors instead of a single one.
4844         * tree-data-ref.h (dir_vects, dist_vects): Replace dir/dist
4845         lambda_vectors with a vec of lambda_vectors.
4846         (DDR_DIR_VECT, DDR_DIST_VECT): Redefined as operations on vec.
4847         (DDR_DIR_VECTS, DDR_DIST_VECTS, DDR_NUM_DIR_VECTS,
4848         DDR_NUM_DIST_VECTS): New.
4849         * tree-loop-linear.c (gather_interchange_stats): Test for the
4850         existence of distance vectors only after having checked that there
4851         is a dependence.  Iterate over all distance vectors of the ddr.
4852         (linear_transform_loops): Use dump_data_dependence_relation.
4853         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Test for
4854         distance vectors using DDR_NUM_DIST_VECTS.  Iterate over all the
4855         distance vectors of the ddr.
4856
4857 2005-11-05  Bernd Schmidt  <bernd.schmidt@analog.com>
4858
4859         * config/bfin/bfin.c (n_dregs_to_save, n_pregs_to_save,
4860         expand_prologue_reg_save, expand_epilogue_reg_restore): New argument
4861         IS_INTHANDLER; all callers changed.
4862         (n_regs_saved_by_prologue): Take interrupt handler attributes into
4863         account.
4864         (do_link, do_unlink): New argument ALL; all callers changed.
4865         (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
4866         If function isn't leaf, save and restore all registers.
4867         (bfin_function_ok_for_sibcall): Only true if not an interrupt or
4868         exception handler.
4869
4870 2005-11-05  Jan Hubicka  <jh@suse.cz>
4871
4872         PR rtl-optimization/23490
4873         * doc/invoke.texi (max-predicted-iterations, max-cse-insns,
4874         max-flow-memory-location): Document.
4875         * flow.c: Include params.h
4876         (MAX_MEM_SET_LIST_LEN): Kill.
4877         (add_to_mem_set_list): Use new param.
4878         * cse.c (cse_basic_block): Replace 1000 by new param.
4879         * params.def (PARAM_MAX_PREDICTED_ITERATIONS, PARAM_MAX_CSE_INSNS,
4880         PARAM_MAX_FLOW_MEMORY_LOCATIONS): New.
4881         * predict.c (predict_loops): Use new param.
4882         * predict.def (MAX_PRED_LOOP_ITERATIONS): Remove.
4883
4884         * ipa-inline.c (cgraph_decide_inlining_of_small_function,
4885         cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
4886         Do not hold memory returned by cgraph_node_name across other call.
4887
4888 2005-11-04  Hans-Peter Nilsson  <hp@axis.com>
4889
4890         PR target/23424
4891         * config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
4892         Disable.
4893
4894 2005-11-04  Jeff Law  <law@redhat.com>
4895
4896         PR/21883
4897         * doc/invoke.texi: Document max-jump-thread-duplication-stmts PARAM.
4898         * tree-ssa-dom.c: Include params.h.
4899         (thread_across_edge): If there are too many statements in the
4900         target block, then do not thread through it.
4901         * Makefile.in (tree-ssa-dom.o): Depend on $(PARAMS_H).
4902         * params.def (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS): New PARAM.
4903
4904 2005-11-03  Diego Novillo  <dnovillo@redhat.com>
4905
4906         PR 24627
4907         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Use
4908         TODO_update_ssa instead of TODO_update_ssa_no_phi.
4909
4910 2005-11-04  Sebastian Pop  <pop@cri.ensmp.fr>
4911
4912         PR/18595
4913         * tree-scalar-evolution.c (instantiate_parameters_1,
4914         instantiate_parameters, resolve_mixers): Compute the size of an
4915         expression to be instantiated and give up the instantiation if the
4916         size exceeds PARAM_SCEV_MAX_EXPR_SIZE.
4917
4918 2005-11-04  Richard Guenther  <rguenther@suse.de>
4919
4920         * tree-flow.h (ref_contains_indirect_ref): Rename to
4921         array_ref_contains_indirect_ref.
4922         * tree-flow-inline.h (ref_contains_indirect_ref): Likewise.
4923         (array_ref_contains_indirect_ref): Make comment match the code
4924         and vice-versa.
4925         (ref_contains_array_ref): Likewise.
4926         * tree-ssa-structalias.c (find_func_aliases): Remove call to
4927         ref_contains_indirect_ref.
4928         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
4929         Rename calls to ref_contains_indirect_ref.
4930
4931 2005-11-04 Paul Brook  <paul@codesourcery.com>
4932
4933         * config/arm/arm.c (arm_load_pic_register): Pass extra reg to
4934         gen_pic_add_dot_plus_four and gen_pic_add_dot_plus_eight.
4935         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
4936         * config/arm/arm.md: Use match_operand in peephole input templates
4937         and match_dup in peephole output templates.
4938
4939 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
4940
4941         * config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
4942         __aeabi_uidiv.
4943
4944 2005-11-04  Mark Mitchell  <mark@codesourcery.com>
4945             Daniel Jacobowitz  <dan@codesourcery.com>
4946
4947         * longlong.h (add_ssaaaa): Clobber condition code register
4948         in ARM version.
4949         (sub_ddmmss): Likewise.
4950         (umul_ppmm): Likewise.
4951
4952 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
4953             Paul Brook  <paul@codesourcery.com>
4954             Phil Blundell  <pb@reciva.com>
4955
4956         * configure.ac: Add test for ARM TLS support.
4957         * configure: Regenerated.
4958         * config/arm/arm-protos.h (legitimize_tls_address)
4959         (arm_tls_referenced_p, tls_mentioned_p)
4960         (arm_output_addr_const_extra): New prototypes.
4961         (thumb_legitimize_pic_address): Delete.
4962         * config/arm/arm.c: Include "gt-arm.h".
4963         (enum tls_reloc): New.
4964         (arm_cannot_copy_insn_p, arm_tls_symbol_p, load_tls_operand)
4965         (pcrel_constant_p, get_tls_get_addr, arm_load_tp)
4966         (arm_call_tls_get_addr, legitimize_tls_address)
4967         (arm_tls_referenced_p, arm_tls_operand_p_1, tls_mentioned_p)
4968         (arm_init_tls_builtins, arm_emit_tls_decoration)
4969         (arm_output_addr_const_extra): New functions.
4970         (TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM)
4971         (TARGET_HAVE_TLS): Define.
4972         (target_thread_pointer): New.
4973         (arm_override_options): Handle -mtp=.
4974         (legitimize_pic_address): Ignore UNSPECs.
4975         (arm_legitimate_address_p, thumb_legitimate_address_p): Handle PC
4976         relative symbols.
4977         (arm_legitimize_address, thumb_legitimize_address): Handle TLS.
4978         (tls_get_addr_libfunc): New variable.
4979         (symbol_mentioned_p, label_mentioned_p): Ignore UNSPEC_TLS.
4980         (arm_init_builtins): Call arm_init_tls_builtins.
4981         (arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER.
4982         (arm_encode_section_info): Call default_encode_section_info.
4983         * config/arm/arm.h (TARGET_HARD_TP, TARGET_SOFT_TP): Define.
4984         (enum arm_tp_type): New.
4985         (target_thread_pointer): Add declaration.
4986         (LEGITIMATE_CONSTANT_P): Handle TLS.
4987         (LEGITIMATE_PIC_OPERAND_P): Handle TLS.
4988         (OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra.
4989         (enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER.
4990         * config/arm/arm.md: Add UNSPEC_TLS.
4991         (movsi): Handle TLS.
4992         (pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for
4993         non-PIC.
4994         (tls_load_dot_plus_eight): New insn and a peephole to create it.
4995         (load_tp_hard, load_tp_soft): New insns.
4996         * arm.opt: Add -mtp=.
4997         * doc/invoke.texi (ARM Options): Document -mtp.
4998
4999 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
5000
5001         * config/arm/lib1funcs.asm: Don't include "libunwind.S".
5002         * config/arm/libunwind.S: Include "lib1funcs.asm".
5003         * config/arm/t-bpabi (LIB1ASMFUNCS): Remove _unwind.
5004         (LIB2ADDEH): Add libunwind.S.
5005         (LIB2ADDEHDEP): Add lib1funcs.asm.
5006         * mklibgcc.in: Handle asm files in libgcc_eh.a.
5007
5008 2005-11-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
5009
5010         PR fortran/18452
5011         * gcc/c.opt: Add a -lang-fortran option.
5012         * gcc/c-opts.c: Add a lang_fortran flag.
5013         (c_common_init_options): Handling the -lang-fortran option.
5014         (c_common_handle_option): Add a case for Fortran options in
5015         preprocessing. Remove cases for -ffixed-form and
5016         -ffixed-line-length. Add a case for -lang-fortran.
5017
5018 2005-11-03  David Edelsohn  <edelsohn@gnu.org>
5019
5020         * config/rs6000/rs6000.c: Include params.h
5021         (optimization_options): Set max-grow-copy-bb-insns default to 16.
5022         (bdesc_2arg): Delete vpkuhss and vpkuwss.
5023         * config/rs6000/altivec.md (UNSPEC_VPKUHSS): Delete.
5024         (UNSPEC_VPKUWSS): Delete.
5025         (altivec_vpkuhss): Delete.
5026         (altivec_vpkuwss): Delete.
5027         * config/rs6000/rs6000.md (plus_eqsi): Remove optimize_size from
5028         final condition.
5029         (neg_eq0<mode>): Remove final condition.
5030         (neg_eq<mode>): Remove condition and split-condition.
5031
5032 2005-11-04  Alan Modra  <amodra@bigpond.net.au>
5033
5034         * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
5035         Use associated print macros.
5036
5037 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
5038
5039         PR c++/17964
5040         * diagnostic.c (diagnostic_set_info_translated): New function.
5041         (diagnostic_set_info): Use it.  Add comment.
5042         * diagnostic.h (diagnostic_set_info_translated): Declare.
5043
5044 2005-11-03  Eric Botcazou  <ebotcazou@adacore.com>
5045
5046         * dwarf2asm.c (dw2_force_const_mem): Add new parameter 'public'.
5047         On USE_LINKONCE_INDIRECT platforms, build a DECL_ONE_ONLY indirect
5048         reference only if 'public' is true.
5049         (dw2_output_indirect_constant_1): On USE_LINKONCE_INDIRECT platforms,
5050         emit the .hidden directive only if the indirect reference is public.
5051         (dw2_asm_output_encoded_addr_rtx): Add new parameter 'public'.
5052         Pass it to dw2_force_const_mem.
5053         * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): New param 'public'.
5054         * dwarf2out.c (output_cfi): Adjust calls to above function.
5055         (output_call_frame_info): Likewise.
5056         * except.c (output_ttype): Pass TREE_PUBLIC of the type_info object
5057         as 'public' argument to dw2_asm_output_encoded_addr_rtx.
5058
5059 2005-11-03  Zdenek Dvorak  <dvorakz@suse.cz>
5060
5061         PR tree-optimization/24483
5062         * tree-ssa-loop-ivopts.c (aff_combination_add_elt): Move rest
5063         field to elts if possible.
5064
5065 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
5066
5067         PR middle-end/23155
5068         * gimplifier.c (gimplify_expr): Create a temporary for lvalue
5069         CONSTRUCTOR.
5070
5071 2005-11-03  Daniel Berlin  <dberlin@dberlin.org>
5072
5073         Fix PR tree-optimization/24351
5074
5075         * tree-ssa-structalias.c (struct variable_info): Add
5076         collapsed_into.
5077         (get_varinfo_fc): New function to follow collapsing.
5078         (new_var_info): Set collapsed_to to NULL.
5079         (dump_constraint): Follow collapsing.
5080         (build_constraint_graph): Handle collapsing.
5081         (do_simple_structure_copy): Return false if something bad
5082         happened.
5083         (collapse_rest_of_var): New function.
5084         (do_structure_copy): Collapse if do_simple_structure_copy returns
5085         false.
5086
5087 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
5088
5089         PR middle-end/24589
5090         * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
5091         expressions to a statement list instead of gimplifying them.
5092
5093 2005-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
5094
5095         PR rtl-optimization/23585
5096         * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
5097         that can't trap plus a constant integer, if the mode has zero size.
5098
5099 2005-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
5100
5101         PR target/24620
5102         * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
5103         as operand 2.
5104         ("*insv<mode>_reg_extimm"): Likewise.
5105
5106 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
5107
5108         PR c/24329
5109         * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
5110         c_common_type_for_mode returns an unnamed type.
5111
5112 2005-11-02  Richard Henderson  <rth@redhat.com>
5113
5114         PR target/9350
5115         PR target/24374
5116         * dwarf2out.c (dwarf2out_reg_save_reg): New.
5117         (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
5118         * function.c (assign_parms): Use calls.internal_arg_pointer.
5119         (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
5120         code.
5121         * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
5122         (TARGET_CALLS): Add it.
5123         * target.h (struct gcc_target): Add calls.internal_arg_pointer.
5124         * targhooks.c (default_internal_arg_pointer): New.
5125         * targhooks.h (default_internal_arg_pointer): Declare.
5126         * tree.h (dwarf2out_reg_save_reg): Declare.
5127         * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
5128         * config/i386/i386.c (dbx_register_map): Add return column.
5129         (dbx64_register_map, svr4_dbx_register_map): Likewise.
5130         (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
5131         (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
5132         (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
5133         (ix86_save_reg): Save force_align_arg_pointer.
5134         (ix86_emit_save_regs): Make regno unsigned.
5135         (ix86_emit_save_regs_using_mov): Likewise.
5136         (ix86_expand_prologue): Handle force_align_arg_pointer.
5137         (ix86_expand_epilogue): Likewise.
5138         * config/i386/i386.h: (dbx_register_map): Update.
5139         (dbx64_register_map, svr4_dbx_register_map): Update.
5140         (struct machine_function): Add force_align_arg_pointer.
5141         * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
5142         (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
5143         (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
5144
5145 2005-11-02  Jan Hubicka  <jh@suse.cz>
5146
5147         PR target/23303
5148         * i386.md: Add peep2 for simplyfing array accesses.
5149
5150 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
5151
5152         PR target/24615
5153         * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
5154         * config/s390/s390.c (s390_decompose_shift_count): New function.
5155         (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
5156         (print_shift_count_operand): Use s390_decompose_shift_count.
5157         * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
5158         Use s390_decompose_shift_count.  Do not accept any non-base hard regs.
5159
5160 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
5161
5162         PR target/24600
5163         * loop.c (loop_givs_rescan): Use force_operand to expand
5164         complex GIVs.
5165
5166 2005-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
5167
5168         PR 22429
5169         * fold-const.c (build_range_check): Use unsigned when signed
5170         overflow is undefined also.  If etype is subtype, make sure that
5171         the subtraction is in the supertype.
5172
5173 2005-11-02  Richard Henderson  <rth@redhat.com>
5174
5175         PR target/24178
5176         * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
5177         by MEM_ALIGN.
5178
5179 2005-11-01  Richard Henderson  <rth@redhat.com>
5180
5181         PR 21518
5182         * loop.c (scan_loop): Do not propagate computations to a hard
5183         register destination with SMALL_REGISTER_CLASSES.
5184
5185 2005-11-01  Joseph S. Myers  <joseph@codesourcery.com>
5186
5187         * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
5188         costs for MULT inside PLUS or MINUS.
5189
5190 2005-11-01  Bob Wilson  <bob.wilson@acm.org>
5191
5192         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
5193         (TRAMPOLINE_SIZE): Round up to 60.
5194         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
5195
5196 2005-10-31  James E. Wilson  <wilson@specifix.com>
5197
5198         PR debug/24444
5199         * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
5200         ifdef.  Put ifdefs around call in gen_subprogram_die.
5201         (compute_frame_pointer_to_cfa_displacement): Likewise.
5202         (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
5203         not defined.
5204
5205         PR rtl-optimization/17356
5206         *  cfgrtl.c (purge_dead_edges): Undo last change.  In EDGE_EH code,
5207         add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
5208
5209 2005-10-31  Jan Hubicka  <jh@suse.cz>
5210
5211         PR middle-end/24093
5212         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
5213
5214         PR target/20928
5215         * i386.c (legitimize_pic_address): Deal with large immediates.
5216
5217         PR profile/20815
5218         * coverage.c (coverage_checksum_string): Fix code to stip random seeds
5219         from symbol names while computing checkup.
5220
5221         PR profile/24487
5222         * predict.c (predict_loops): Do not estimate more than
5223         MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
5224         * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
5225
5226 2005-10-31  Andrew MacLeod  <amacleod@redhat.com>
5227
5228         PR tree-optimization/19097
5229         * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
5230
5231 2005-10-31  J"orn Rennecke <joern.rennecke@st.com>
5232
5233         * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
5234
5235 2005-10-31  Andrew Pinski  <pinskia@physics.uc.edu>
5236
5237         PR middle-end/23492
5238         * tree-inline.c (setup_one_parameter): If the init_stmt
5239         is NULL, don't insert the statement.
5240
5241 2005-10-30  Jan Hubicka  <jh@suse.cz>
5242
5243         PR tree-optimization/24172
5244         * tree-inline.c (copy_body_r): Unshare the substituted value first.
5245
5246 2005-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
5247
5248         * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
5249         constants for hosts with long != 32 bits.
5250
5251 2005-10-28  Andreas Krebbel <krebbel1@de.ibm.com>
5252
5253         PR middle-end/24093
5254         * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
5255
5256 2005-10-28  Aldy Hernandez  <aldyh@redhat.com>
5257
5258         * config/ms1/ms1.h (TARGET_MS1_64_001): New.
5259         (TARGET_MS1_16_002): New.
5260         (TARGET_MS1_16_003): New.
5261
5262         * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
5263         ("*decrement_and_branch_until_zero_no_clobber"): New.
5264         Add corresponding splitter for decrement_and_branch_until_zero
5265         instruction.
5266         Key all decrement_and_branch_until_zero patterns off of
5267         TARGET_MS1_16_003.
5268
5269 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
5270
5271         PR middle-end/24362
5272         * tree-complex.c (extract_component): Treat RESULT_DECL
5273         like the rest of the decls.
5274
5275 2005-10-25  Eric Botcazou  <ebotcazou@adacore.com>
5276
5277         * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
5278         indirect call to _mcount if the function needs a static chain.
5279
5280 2005-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
5281             Caroline Tice  <ctice@apple.com>
5282
5283         PR rtl-optimization/24460
5284         * dwarf2out.c (have_switched_text_sections): New boolean variable.
5285         (dwarf2out_switch_text_section): Set it to true instead of
5286         incrementing separate_line_info_table_in_use.
5287         (output_loc_list): Additionally test have_switched_text_sections.
5288         (output_ranges): Likewise.
5289         (dwarf2out_finish): Likewise.
5290         * varasm.c (assemble_start_function): Do not call
5291         insert_section_boundary_note.
5292         (assemble_end_function): If flag_reorder_blocks_and_partition,
5293         switch to the function's section before emitting the .size directive.
5294         * bb-reorder.c (insert_section_boundary_note): Staticify.
5295         (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
5296         * output.h (insert_section_boundary_note): Delete.
5297
5298 2005-10-24  Andrew Pinski  <pinskia@physics.uc.edu>
5299
5300         PR c/23103
5301         * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
5302         instead of pointer equality when comparing types.
5303
5304 2005-10-24  James E. Wilson  <wilson@specifix.com>
5305
5306         * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
5307         add_dependence_list_and_free calls.
5308
5309 2005-10-24  Steven Bosscher  <stevenb@suse.de>
5310
5311         * contrib.texi: Add the names of the LLNL folks who donated
5312         Cray pointer support for gfortran.
5313
5314 2005-10-24  Steven Bosscher  <stevenb@suse.de>
5315
5316         PR tree-optimization/24225
5317         * profile.c (branch_prob): Look from end to start through a
5318         basic block when looking for a locus.
5319
5320 2005-10-24  Richard Henderson  <rth@redhat.com>
5321
5322         * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
5323         parallel.
5324         (hppa_expand_prologue): Likewise.
5325
5326 2005-10-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5327
5328         * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
5329         (NO_DEFERRED_PROFILE_COUNTERS): Define.
5330         * pa.h (NO_PROFILE_COUNTERS): Define.
5331         * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
5332         (funcdef_nos): New vector to hold label numbers of deferred profile
5333         counters.
5334         (output_deferred_profile_counters): New function.
5335         (hppa_profile_hook): Push label number onto funcdef_nos.
5336         (pa_hpux_file_end): Call output_deferred_profile_counters if
5337         NO_DEFERRED_PROFILE_COUNTERS is false.
5338
5339         * pa-protos.h (get_deferred_plabel): New prototype.
5340         * pa.c (get_plabel): Rename to get_deferred_plabel.  Return plabel.
5341         Make global.
5342         (output_call): Adjust calls.
5343
5344 2005-10-24  Alan Modra  <amodra@bigpond.net.au>
5345
5346         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
5347         peculiarity of GOT/TOC section usage.
5348
5349 2005-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
5350
5351         PR objc/24435
5352          * c-common.c (constant_string_class_name): Add documentation.
5353
5354 2005-10-23  Kaz Kojima  <kkojima@gcc.gnu.org>
5355
5356         PR target/23832
5357         * recog.c (peephole2_optimize): Increment peep2_current_count
5358         only when the slot is empty.
5359
5360 2005-10-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5361
5362         PR ada/23957
5363         * except.c (output_function_exception_table): Call
5364         assemble_external_libcall if we need a personality function.
5365
5366 2005-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
5367
5368         PR rtl-optimization/24460
5369         * bb-reorder.c (fix_crossing_unconditional_branches): Do not
5370         set the basic block for barriers.
5371
5372 2005-10-21  Janis Johnson  <janis187@us.ibm.com>
5373
5374         * var-tracking.c (vt_initialize): Initialize post.
5375
5376 2005-10-21  Devang Patel  <dpatel@apple.com>
5377
5378         PR/24220
5379         * c-common.c (vector_types_convertible_p): Check vector element type.
5380
5381 2005-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
5382
5383         * config/sh/sh.c (prepare_move_operands): Handle the address
5384         constant which is a tls symbolic address plus a constant.
5385
5386 2005-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
5387
5388         PR driver/24473
5389         * gcc.c (main): Use the correct counter for erroring out
5390         about mulitple files.
5391
5392 2005-10-21  Alan Modra  <amodra@bigpond.net.au>
5393
5394         PR target/24465
5395         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
5396         use r2 for 64-bit tls .got access.
5397
5398 2005-10-21  Paolo Bonzini  <bonzini@gnu.org>
5399
5400         * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
5401         TRUTH_OR_EXPR.
5402
5403 2005-10-20  Steven Bosscher  <stevenb@suse.de>
5404
5405         PR tree-optimization/24307
5406         * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
5407
5408 2005-10-20  Alexandre Oliva  <aoliva@redhat.com>
5409
5410         PR middle-end/24295
5411         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
5412         alias targets.
5413         * varasm.c (find_decl_and_mark_needed): After cgraph global info
5414         is ready, stop marking functions, but still mark variables.
5415
5416 2005-10-20  Richard Guenther  <rguenther@suse.de>
5417
5418         PR c++/24439
5419         * fold-const.c (invert_truthvalue): Handle COND_EXPR with
5420         void type operands.
5421
5422 2005-10-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
5423
5424         PR rtl-optimization/23585
5425         * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
5426         (rtx_addr_can_trap_p): ... here.  Invoke rtx_addr_can_trap_p_1.
5427         (may_trap_p_1): New predicate extracted from...
5428         (may_trap_p): ... here.  Invoke may_trap_p_1.
5429         (may_trap_or_fault_p): New predicate.
5430         * rtl.h (may_trap_or_fault_p): Declare it.
5431         * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
5432         instead of may_trap_p.
5433         (steal_delay_list_from_fallthrough): Likewise.
5434         (fill_simple_delay_slots): Likewise.
5435         (fill_slots_from_thread): Likewise.
5436         * function.c (pad_to_arg_alignment): Rework comment about
5437         SPARC_STACK_BOUNDARY_HACK.
5438         * config/sparc/sparc.h: Likewise.
5439
5440 2005-10-19  Adrian Straetling  <straetling@de.ibm.com>
5441
5442         * config/s390/s390.c (s390_expand_insv): New.
5443         * config/s390/s390-protos.h (s390_expand_insv): Declare.
5444         * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
5445         ("icm_hi"): Remove mode attribute.
5446         ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
5447         Adjust all uses.
5448         ("*extracthi", "*extractqi"): Remove.
5449         (extv<mode>", "*extzv<mode>"): New.
5450         ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
5451         "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
5452
5453 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5454
5455         * cfgexpand.c (discover_nonconstant_array_refs_r,
5456         discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
5457         (tree_expand_cfg): Call discover_nonconstant_array_refs.
5458         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
5459         discover_nonconstant_array_refs.
5460
5461 2005-10-19  Steven Bosscher  <stevenb@suse.de>
5462
5463         PR c/23228
5464         * c-decl.c (pop_scope): Don't warn about an unused variable
5465         if it is marked with TREE_NO_WARNING.
5466         (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
5467         somenow mismatch and olddecl is to be replaced.
5468
5469 2005-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
5470
5471         PR middle-end/23199
5472         * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
5473         whether registers live on the edge can be saved/restored.
5474
5475 2005-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
5476
5477         * config/sh/sh.c (fixup_mova): Skip notes.
5478
5479 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5480
5481         * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
5482         * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
5483         (s390_can_eliminate): Handle BASE_REGNUM elimination.
5484         (s390_initial_elimination_offset): Likewise.
5485         (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
5486         register on TARGET_ZARCH targets.
5487         * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
5488         (INITIAL_FRAME_POINTER_OFFSET): Remove.
5489         (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
5490         (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
5491
5492 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
5493
5494         * config/s390/s390.md: Comment describing output modifiers updated.
5495         * config/s390/s390.c (print_operand): Likewise.
5496
5497 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
5498
5499         * config/s390/s390.c (override_options): Added check for -mstack-size
5500         64k limitation.
5501         * doc/invoke.texi: Mention that limit in the documenation.
5502
5503 2005-10-18  Paolo Bonzini  <bonzini@gnu.org>
5504
5505         PR #19672
5506         * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
5507
5508 2005-10-18  Daniel Berlin <dberlin@dberlin.org>
5509
5510         Fix PR tree-optimization/24231
5511
5512         * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
5513         (compute_avail): Ditto.
5514
5515 2005-10-18  Richard Henderson  <rth@redhat.com>
5516
5517         PR target/24428
5518         * config/i386/i386.c (legitimate_constant_p): Check
5519         SYMBOL_REF_TLS_MODEL directly.  Don't fallthru to SYMBOL_REF
5520         if LABEL_REF.
5521         (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
5522         (legitimate_pic_address_disp_p): Reorg CONST checking to make
5523         sure SYMBOL_REF_TLS_MODEL is tested.  Test SYMBOL_REF_TLS_MODEL
5524         directly.
5525         (print_operand_address): Likewise.
5526         * config/i386/predicates.md (x86_64_immediate_operand): Test
5527         SYMBOL_REF_TLS_MODEL properly inside CONST.
5528         (x86_64_zext_immediate_operand): Likewise.
5529         (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
5530         initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
5531         * config/i386/i386-protos.h: Remove predicates.md entries.
5532
5533 2005-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
5534
5535         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
5536         Check that elements of TYPE_METHODS are FUNCTION_DECLs.
5537
5538 2005-10-17  Alexey Starovoytov  <alexey.starovoytov@sun.com>
5539             Ian Lance Taylor <ian@airs.com>
5540
5541         PR middle-end/23522
5542         * fold-const.c (fold_widened_comparison): Do not allow range based
5543         constant folding when right operand cannot be unwidened.
5544
5545 2005-10-17  Richard Henderson  <rth@redhat.com>
5546
5547         * builtins.c (expand_builtin_synchronize): Build a new-style asm
5548         with a memory clobber.
5549
5550 2005-10-17  James E Wilson  <wilson@specifix.com>
5551
5552         PR rtl-optimization/17356
5553         * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
5554         checking for EDGE_EH.
5555
5556 2005-10-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
5557
5558         * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
5559         the slot on an even boundary for any type with 16-byte alignment.
5560
5561 2005-10-17  Hans-Peter Nilsson  <hp@axis.com>
5562
5563         PR target/23424
5564         * md.texi (Modifiers) <%>: Clarify that % doesn't work
5565         after register allocation.
5566
5567 2005-10-17  DJ Delorie  <dj@redhat.com>
5568
5569         * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
5570         as frame related.
5571
5572 2005-10-17  Nathan Sidwell  <nathan@codesourcery.com>
5573
5574         PR c++/22551
5575         * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
5576         overflow flags.
5577
5578 2005-10-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5579
5580         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
5581         to 2 if it's already non-zero.
5582         (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
5583         is set and warn about it if flag_schedule_insns is 1.
5584
5585 2005-10-17  Paul Woegerer  <paul.woegerer@nsc.com>
5586
5587         * config/crx/crx.md: Compare-and-branch instructions need to
5588         invalidate CC.
5589
5590 2005-10-17  Uros Bizjak  <uros@kss-loka.si>
5591
5592         PR target/24315
5593         * config/i386/i386.md (*pushdi2_rex64 splitter)
5594         (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
5595         (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
5596         flow2 pass only when (optimize > 0 && flag_peephole2).
5597
5598 2005-10-16  Andrew Pinski  <pinskia@physics.uc.edu>
5599
5600         PR driver/22544
5601         * gcc.c (have_c): New static variable.
5602         (have_o): Likewise.
5603         (process_command): Remove declation of have_c.
5604         Set have_o to 1 when handling -o.
5605         (main): Add a fatel error if there are multiple
5606         files specified and -o and -c/-S is passed witout
5607         -combine or multiple languages.
5608
5609 2005-10-16  Daniel Berlin  <dberlin@dberlin.org>
5610
5611         Fix PR tree-optimization/22444
5612         * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
5613         Assert that we don't hit something with subvars.
5614         (setup_pointers_and_addressables): Don't add things with subvars,
5615         because we'll already process the subvars for aliasing purposes.
5616
5617 2005-10-16  Hans-Peter Nilsson  <hp@axis.com>
5618
5619         PR target/23424
5620         * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
5621         ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
5622         ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
5623         ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
5624         ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
5625         swapped, alternatives for the R constraint.
5626
5627         PR middle-end/24341
5628         * builtins.c (get_builtin_sync_mode): Make unlimited
5629         mode_for_size request.
5630
5631 2005-10-15  Richard Henderson  <rth@redhat.com>
5632
5633         * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
5634         (gimplify_expr): ... here.
5635         (gimplify_compound_lval): Use it in initial scan loop.  Allow
5636         fb_lvalue in base expression.
5637
5638 2005-10-15  Richard Henderson  <rth@redhat.com>
5639
5640         PR 23714
5641         * builtins.c (expand_builtin_trap): Export.
5642         * expr.h (expand_builtin_trap): Declare.
5643         * expr.c (expand_assignment): Emit a trap for integral offsets
5644         from registers that weren't reduced to bitpos.
5645
5646         * tree-cfg.c (mark_array_ref_addressable_1): Remove.
5647         (mark_array_ref_addressable): Remove.
5648         * tree-flow.h (mark_array_ref_addressable): Remove.
5649         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
5650
5651 2005-10-15  James E Wilson  <wilson@specifix.com>
5652
5653         PR target/24232
5654         * sched-deps.c (add_dependence_list): New arg UNCOND.  Fix all callers.
5655         (add_dependence_list_and_free): Likewise.
5656         (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
5657         call.
5658
5659 2005-10-15  Diego Novillo  <dnovillo@redhat.com>
5660
5661         PR 23141
5662         PR 23142
5663         * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
5664         sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
5665         anti-range.
5666         (vrp_visit_phi_node): Only prevent infinite iterations when
5667         the previous result and the new result are both VR_RANGEs.
5668
5669 2005-10-15  Ranjit Mathew  <rmathew@gcc.gnu.org>
5670
5671         * tree-into-ssa.c (mark_def_sites): Correct minor typo in
5672         function comment.
5673
5674 2005-10-14  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5675
5676         PR c/23439
5677         * c-parser.c (c_parser_for_statement): Use location of RID_FOR
5678         to initialize loc.
5679
5680 2005-10-14  Per Bothner  <per@bothner.com>
5681
5682         PR preprocessor/21250
5683         * c-ppoutput.c (print_line): Print internal line 0 as 1.
5684
5685 2005-10-14  Nathan Sidwell  <nathan@codesourcery.com>
5686
5687         PR c++/22551
5688         * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
5689         overflow flags.  Refactor some conditionals.
5690
5691 2005-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
5692
5693         PR tree-opt/21304
5694         * tree-dfa.c (add_referenced_var): Only look at decls which
5695         have TREE_CONSTANT or TREE_READONLY set instead of if
5696         !TREE_PUBLIC or !TREE_CONSTANT.
5697
5698 2005-10-13  James E Wilson  <wilson@specifix.com>
5699
5700         * doc/invoke.texi: For -x, add f95-cpp-input.
5701         * doc/install.texi: For --enable-languages doc, change f95 to fortran.
5702
5703 2005-10-12  Sebastian Pop  <pop@cri.ensmp.fr>
5704
5705         PR tree-optimization/24262
5706         * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
5707         in loop all the time.
5708
5709 2005-10-12  Richard Henderson  <rth@redhat.com>
5710
5711         PR c/24255
5712         * tree.h (DECL_TRANSPARENT_UNION): Remove.
5713         * function.c (assign_parm_find_data_types): Don't support it.
5714         * print-tree.c (print_node): Likewise.
5715         * c-common.c (handle_transparent_union_attribute): Likewise.
5716         Use build_duplicate_type.
5717         * tree-inline.c (remap_type_1): Split out of remap_type;
5718         properly remap aggregate fields.
5719         (build_duplicate_type): New.
5720         * doc/extend.texi (Variable Attributes): Remove documentation
5721         for transparent_union.
5722
5723 2005-10-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
5724
5725         PR target/24284
5726         * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
5727         (gen_stack_pointer_dec): Likewise.
5728
5729 2005-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
5730
5731         PR middle-end/21275
5732         PR middle-end/21766
5733         * target.h (struct gcc_target): Add valid_dllimport_attribute_p
5734         target hook.
5735         (struct cxx): Add adjust_class_at_definition target hook.
5736         * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
5737         defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
5738         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
5739         hook_void_tree. Add to TARGET_CXX.
5740         * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
5741         dllimport_flag.
5742         (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
5743         * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
5744         instead of attribute. Check for dllexport override.  Warn if
5745         inconsistent dll linkage. Don't lose old dllimport if decl has
5746         had address referenced.   Tweak lookup of dllimport atribute.
5747         (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
5748         for target specific rules.  Don't add dllimport attribute if
5749         DECL_DECLARED_INLINE_P.  Set DECL_DLLIMPORT_P when adding
5750         dllimport attribute.
5751         (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
5752         * varasm.c (initializer_constant_valid_p): Replace
5753         DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
5754
5755         PR target/21801
5756         PR target/23589
5757         * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
5758         'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
5759         (i[34567]86-*-mingw32*): Likewise.
5760
5761         * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
5762         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
5763
5764         * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
5765         C++-specific code. Change return value to bool.
5766         (i386_pe_dllimport_p): Likewise.
5767         (associated_type): Simplify and make language-independent
5768         (i386_pe_encode_section_info): Replace override of ambiguous
5769         dllimport symbol refs with a gcc_assert.
5770         (i386_pe_valid_dllimport_attribute_p): Define.
5771         * config/i386/winnt-cxx.c: New file. Define C++ versions of
5772         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
5773         i386_pe_adjust_class_at_definition.
5774         * config/i386/winnt-stubs.c: New file. Define stub versions of
5775         lang-specific functions.
5776         * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
5777         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
5778         i386_pe_adjust_class_at_definition.
5779         (i386_pe_valid_dllimport_attribute_p): Declare.
5780         * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
5781         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
5782         * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
5783
5784         PR target/19704
5785         * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
5786         dllimport attribute with test of DECL_DLLIMPORT_P.
5787
5788 2005-10-12  Adrian Straetling <straetling@de.ibm.com>
5789
5790         * combine.c (make_extraction): Correct offset computation.
5791
5792 2005-10-12  Hans-Peter Nilsson  <hp@axis.com>
5793
5794         * config/cris/t-linux (LIMITS_H_TEST): Define.
5795
5796 2005-10-12  Richard Henderson  <rth@redhat.com>
5797
5798         PR rtl-opt/23324
5799         * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
5800
5801 2005-10-12  Richard Guenther  <rguenther@suse.de>
5802
5803         * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
5804
5805 2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>
5806
5807         PR c++/19964
5808         * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
5809         DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
5810         type.
5811
5812 2005-10-12  Richard Guenther  <rguenther@suse.de>
5813
5814         PR c++/23799
5815         * varasm.c (output_constant): Correct typo from previous
5816         patch by DJ.
5817
5818 2005-10-11  Ian Lance Taylor  <ian@airs.com>
5819
5820         PR rtl-optimization/13931
5821         * combine.c: Revert patch of 2003-05-14, and:
5822         (try_combine): Only set elim_i1 and elim_i2 if the destination is
5823         completely killed in the appropriate insn.
5824         (distribute_notes): Don't skip multiple hard register test for
5825         elim_i1 and elim_i2.
5826
5827 2005-10-11  Richard Henderson  <rth@redhat.com>
5828
5829         PR c/24255
5830         * c-typeck.c (convert_for_assignment): Use build_constructor_single
5831         to initialize a transparent union instead of a nop_expr.
5832
5833 2005-10-11  Richard Henderson  <rth@redhat.com>
5834
5835         * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
5836         * tree-ssa-dce.c: Include tree-scalar-evolution.h.
5837         (tree_ssa_dce_loop): Call scev_reset.
5838
5839         PR tree-opt/24300
5840         * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
5841         * tree-ssa-dce.c: Include cfgloop.h.
5842         (tree_ssa_dce_loop, pass_dce_loop): New.
5843         * tree-pass.h (pass_dce_loop): Declare it.
5844         * passes.c (init_optimization_passes): Use it.
5845
5846 2005-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
5847
5848         PR middle-end/24263
5849         * convert.c (convert_to_real): Revert 2005-10-05 patch.
5850         Only apply the optimization for rounding builtins if the inner
5851         cast is also an extension.
5852
5853 2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
5854
5855         PR tree-opt/23946
5856         * tree-ssa-ccp.c (execute_fold_all_builtins): Call
5857         mark_new_vars_to_rename instead of update_stmt.
5858
5859 2005-10-11  Bernd Schmidt  <bernd.schmidt@analog.com>
5860
5861         * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
5862
5863 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
5864
5865         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
5866         for setting MMX register to 0 rather than mmx.
5867
5868 2005-10-10  Steve Ellcey  <sje@cup.hp.com>
5869
5870         PR target/12098
5871         * configure.ac: Move gas check from mips specific case to common case.
5872         Do check for GNU as for mips*-*-* and *-*-hpux* targets.
5873         * configure: Regenerate
5874         * doc/install.texi: Update.
5875
5876 2005-10-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
5877
5878         PR target/24284
5879         * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
5880
5881 2005-10-10  Maciej W. Rozycki  <macro@linux-mips.org>
5882
5883         * gcc.c (do_spec_1): Accept numeric characters in file name
5884         suffixes.
5885
5886 2005-10-10  Nick Clifton  <nickc@redhat.com>
5887
5888         * config/arm/arm.c: Remove extraneous whitespace.  Remove comment
5889         describing the deleted arm_gen_rotated_half_load function.
5890
5891 2005-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
5892
5893         * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
5894         __fpscr_values.
5895
5896 2005-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
5897
5898         * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
5899         gnu_ld assignments.
5900         * config/arm/t-linux-eabi (LIB1ASMFUNCS)
5901         (EXTRA_MULTILIB_PARTS): Define.
5902         * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
5903         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
5904         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
5905         * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
5906         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
5907         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
5908
5909 2005-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
5910
5911         PR tree-optimization/24226
5912         * tree-cfg.c (remove_bb): Clean up unreachable loops.
5913         * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
5914         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
5915         Export.
5916
5917 2005-10-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
5918
5919         * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
5920
5921 2005-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
5922
5923         PR target/24136
5924         * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
5925         Rewrite for no need for the early clobber.
5926
5927 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
5928
5929         Merge from csl-arm-branch:
5930         2005-09-07  Paul Brook  <paul@codesourcery.com>
5931         * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
5932         space to string.
5933
5934         2005-04-30  Paul Brook  <paul@codesourcery.com>
5935         * config/arm/bpabi.h (TARGET_DEFAULT): Define.
5936         * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
5937
5938         2005-03-07  Daniel Jacobowitz  <dan@codesourcery.com>
5939         * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
5940         (arm_override_options): Use TARGET_AAPCS_BASED.
5941         * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
5942         (PTRDIFF_TYPE): Use int for AAPCS.
5943         (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
5944         * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
5945         (DEFAULT_SHORT_ENUMS): Delete.
5946         * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
5947
5948         2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
5949         * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
5950         * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
5951         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
5952
5953         2004-12-03  Mark Mitchell  <mark@codesourcery.com>
5954         * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
5955
5956         2004-11-22  Mark Mitchell  <mark@codesourcery.com>
5957         * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
5958
5959         2004-11-19  Mark Mitchell  <mark@codesourcery.com>
5960         * config.gcc (arm*-*-linux-gnueabi): Add it.
5961         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
5962         redefining it.
5963         (TARGET_OS_CPP_BUILTINS): Likeiwse.
5964         * config/arm/linux-eabi.h: New file.
5965         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
5966         (LINUX_TARET_LINK_SPEC): Likewise.
5967         (LINK_SPEC): Use it.
5968         * config/arm/t-linux-eabi: New file.
5969
5970 2005-10-08  Steven Bosscher  <stevenb@suse.de>
5971
5972         PR other/22202
5973         * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
5974         spaces.
5975         (PARAM_SMS_DFA_HISTORY): Likewise.
5976
5977 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
5978
5979         PR middle-end/23150
5980         * calls.c (mem_overlaps_already_clobbered_arg_p): New.
5981         (load_register_parameters): Call it.
5982         (check_sibcall_argument_overlap_1): Likewise.
5983         (store_one_arg): Likewise.
5984
5985 2005-10-07  James E. Wilson  <wilson@specifix.com>
5986
5987         * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
5988         DImode not VECINT24 for operand 2.
5989
5990         PR target/23644
5991         * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
5992         -mtune-arch.
5993
5994         PR target/24193
5995         * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
5996         fr_spill): Use destination_operand for operand 0.
5997
5998 2005-10-07  DJ Delorie  <dj@redhat.com>
5999
6000         * varasm.c (output_constant): Limit error to expanding
6001         conversions.
6002
6003 2005-10-07  Richard Guenther  <rguenther@suse.de>
6004
6005         PR middle-end/24227
6006         * fold-const.c (fold_binary): Fix operand types during folding
6007         of X op (A, Y).  Evaluation order of the side-effects of
6008         X and A are frontend-defined, so ensure we honour that even for
6009         tcc_comparison class operands; eased by removing duplicate code.
6010
6011 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
6012
6013         * stor-layout.c (layout_type): Do not allow alignment of array
6014         elements to be greater than their size.
6015
6016 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
6017
6018         * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
6019         host_xmake_file.
6020         (hppa*-*-linux*): Ditto.
6021         (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
6022         * config/host-hpux.c: New.
6023         * config/x-hpux: New.
6024         * config/pa/x-hpux: Remove.
6025         * config/pa/x-linux: Remove.
6026         * config/pa/pa-host.c: Remove.
6027
6028 2005-10-07  Jeff Law  <law@redhat.com>
6029
6030         * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
6031         determine whether or not to try and thread outgoing edges.
6032
6033 2005-10-07  David Edelsohn  <edelsohn@gnu.org>
6034
6035         * config/rs6000/rs6000.md (eqsi_power): New.
6036         (neg_eq0si): Add TARGET_POWER to final condition.
6037         (neg_eqsi): Same.
6038
6039 2005-10-06  Richard Henderson  <rth@redhat.com>
6040
6041         * config/rs6000/rs6000.c: Revert last change.
6042
6043 2005-10-06  Richard Henderson  <rth@redhat.com>
6044
6045         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
6046         (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
6047
6048 2005-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
6049
6050         PR middle-end/22216
6051         PR middle-end/23651
6052         * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
6053         out return_label and naked_return_label.
6054
6055 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
6056
6057         * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
6058         change.
6059
6060 2005-10-06  Richard Henderson  <rth@redhat.com>
6061
6062         PR tree-opt/22237
6063         * tree-inline.c (declare_return_variable): Handle modify_dest not
6064         being a DECL.
6065
6066 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
6067
6068         Fix PR tree-optimization/22488
6069         * tree-ssa-structalias.c (check_for_overlaps): New function.
6070         (create_variable_info_for): Use it.
6071
6072 2005-10-06  Richard Henderson  <rth@redhat.com>
6073
6074         PR debug/24070
6075         * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
6076         (dwarf2out_start_source_file): Print it.
6077
6078 2005-10-06  Geoffrey Keating  <geoffk@apple.com>
6079
6080         * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
6081
6082 2005-10-06  Richard Henderson  <rth@redhat.com>
6083
6084         PR 23706
6085         * mode-switching.c (optimize_mode_switching): Clear transp bit
6086         for block with incomming abnormal edges.
6087
6088         * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
6089         (fpscr_set_from_mem): Use them.
6090         * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
6091         (fpscr postinc splitters): Rewrite as peephole2+split.
6092
6093 2005-10-06  David Edelsohn  <edelsohn@gnu.org>
6094
6095         * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
6096         (eq<mode>_compare): Same.
6097
6098 2005-10-06  Richard Guenther  <rguenther@suse.de>
6099
6100         PR tree-optimization/24238
6101         * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
6102
6103 2005-10-06  Daniel Jacobowitz  <dan@codesourcery.com>
6104
6105         * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
6106         here.  Use AC_PATH_PROG for environment variables instead of
6107         test -x.
6108         * configure.ac: Update calls to gcc_AC_CHECK_TOOL.  Use it for
6109         objdump also.
6110         * configure: Regenerated.
6111
6112 2005-10-06  Richard Earnshaw  <richard.earnshaw@arm.com>
6113
6114         PR target/23783
6115         * arm.md (call): If the address isn't a SYMBOL_REF or a register,
6116         then force it into a register.
6117         (call_value): Likewise.
6118
6119 2005-10-06  Richard Henderson  <rth@redhat.com>
6120
6121         PR 24049
6122         * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
6123         under pass_vectorize.  Clear TODO_ggc_collect from the dce pass
6124         under pass_vectorize.
6125
6126 2005-10-05  Devang Patel  <dpatel@apple.com>
6127
6128         PR Debug/23205
6129         * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
6130         handling constants. Check NAMESPACE_DECL context for constants.
6131
6132 2005-10-05  Eric Christopher  <echristo@apple.com>
6133
6134         * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
6135
6136 2005-10-05  Richard Henderson  <rth@redhat.com>
6137
6138         PR 23714
6139         * tree-cfg.c (mark_array_ref_addressable_1): New.
6140         (mark_array_ref_addressable): New.
6141         * tree-flow.h (mark_array_ref_addressable): Declare.
6142         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
6143
6144 2005-10-05  Andrew Pinski  <pinskia@physics.uc.edu>
6145
6146         PR middle-end/20606
6147         PR middle-end/24069
6148         * reload.c (subst_reloads): When adding a REG_LABEL to a
6149         jump instruction, also update JUMP_LABEL.
6150
6151 2005-10-05  David Edelsohn  <edelsohn@gnu.org>
6152
6153         * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
6154         * bb-reorder.c (copy_bb_p): Use it.
6155         * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
6156
6157 2005-10-05  Richard Henderson  <rth@redhat.com>
6158
6159         PR target/23602
6160         * toplev.c (process_options): Warn about unsupported combinations
6161         of unwind tables and omit-frame-pointer.
6162         * config/i386/i386.c (override_options): Similarly.  Enable
6163         accumulate-outgoing-args if not explicitly disabled.
6164
6165 2005-10-05  Steve Ellcey  <sje@cup.hp.com>
6166
6167         * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
6168         Handle big endian vs. small endian.
6169         (vec_initv2sf): Handle big endian vs. small endian.
6170         (*vec_extractv2sf_1): Ditto.
6171
6172 2005-10-05  Dale Johannesen  <dalej@apple.com>
6173
6174         * convert.c (convert_to_real):  Don't convert
6175         (float)floor(double d) to floorf((float)d).
6176
6177 2005-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
6178
6179         * config/arm/arm.md (insv): Use gen_int_mode in more places.
6180
6181 2005-10-05  Andrew MacLeod  <amacleod@redhat.com>
6182
6183         PR tree-optimization/18587
6184         * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
6185         (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
6186         build_vuses): Change to VEC type.
6187         (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
6188         opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
6189         opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
6190         opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
6191         (get_name_decl): New.  Return DECL_UID of base variable.
6192         (operand_build_cmp): New.  qsort comparison routine.
6193         (operand_build_sort_virtual): New.  Sort virtual build vector.
6194         (init_ssa_operands, fini_ssa_operands): Use VEC routines.
6195         (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
6196         (FINALIZE_BASE): Use get_name_decl.
6197         (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
6198         finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
6199         (start_ssa_stmt_operands, append_def, append_use, append_vuse,
6200         append_v_may_def, append_v_must_def): Replace opbuild_* routines with
6201         direct VEC_* manipulations.
6202         (build_ssa_operands): Call operand_build_sort_virtual.
6203         (copy_virtual_operand, create_ssa_artficial_load_stmt,
6204         add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
6205         with direct VEC_* manipulations.
6206         * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
6207         with direct VEC manipulations.
6208
6209 2005-10-05  Paolo Bonzini  <bonzini@gnu.org>
6210
6211         PR tree-optimization/21419
6212         PR tree-optimization/24146
6213         PR tree-optimization/24151
6214
6215         * c-typeck.c (readonly_error): Handle USE being lv_asm.
6216         (build_asm_expr): Call it if outputs are read-only.
6217         * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
6218
6219 2005-10-05  Billy Biggs  <billy.biggs@gmail.com>
6220             Paolo Bonzini  <bonzini@gnu.org>
6221
6222         PR target/23809
6223
6224         * doc/extend.texi (x86 Built-ins): Document that -msse and friends
6225         enable the instructions and not just the built-ins.
6226         * doc/invoke.texi (x86 Options): Likewise.
6227
6228 2005-10-04  Geoffrey Keating  <geoffk@apple.com>
6229
6230         * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
6231
6232         * doc/invoke.texi (Option Summary): Correct spelling
6233         of -mmacosx-version-min.
6234
6235 2005-10-04  Devang Patel  <dpatel@apple.com>
6236
6237         * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
6238         real types.
6239
6240 2005-10-04  Steve Ellcey  <sje@cup.hp.com>
6241
6242         * tree-vect-transform.c (vect_create_epilog_for_reduction):
6243         Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
6244
6245 2005-10-04  Adrian Straetling  <straetling@de.ibm.com>
6246
6247         * config/s390/s390.md ("TDSI","DP"): New mode macros.
6248         ("TE","tg"): New mode attributes.
6249         ("sync_compare_and_swap<mode>"): Replace with a define_expand.
6250         ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
6251         ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
6252         dword_mode and one for GPRmode.
6253
6254 2005-10-04  Ian Lance Taylor  <ian@airs.com>
6255
6256         PR preprocessor/13726
6257         * c-ppoutput.c (cb_include): Add comments parameter, and print out
6258         any comments passed in.
6259
6260 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
6261
6262         * tree.c (annotate_with_file_line): Fix typo.
6263
6264 2005-10-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6265
6266         PR ada/19382
6267         * builtins.c (fold_builtin_memcmp): When constructing the pointer
6268         type used to access data in the inlined length == 1 case, use
6269         build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
6270         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
6271
6272 2005-10-04  Uros Bizjak  <uros@kss-loka.si>
6273
6274         * config/i386/i386.h (TARGET_FISTTP): Enable also for
6275         TARGET_SSE3 and only for TARGET_80387.
6276         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
6277         (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
6278         Do not depend on TARGET_80387.
6279
6280 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
6281
6282         * tree.c (last_annotated_node): Change type to location_t*.
6283         (annotate_with_file_line): Reflect the change of
6284         last_annotated_node type.
6285
6286 2005-10-04  Richard Guenther  <rguenther@suse.de>
6287
6288         PR c/23576
6289         * c-decl.c (grokdeclarator): Don't write to fields
6290         of error_mark_node.
6291
6292 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
6293
6294         PR middle-end/23125
6295         * c-decl.c (finish_decl): Use set_user_assembler_name even for
6296         register variables.
6297         * varasm.c (make_decl_rtl): If a register variable does not
6298         have a set user assmbler name, error out.
6299         Decode the asmspec is now name+1 bypassing '*'.
6300
6301 2005-10-04  Steven Bosscher  <stevenb@suse.de>
6302
6303         PR tree-optimization/23049
6304         * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
6305         of a COND_EXPR is folded before calling fold on the whole rhs of a
6306         conditional assignment.
6307         * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
6308         document that a COND_EXPR may appear there.
6309
6310 2005-10-03  Diego Novillo  <dnovillo@redhat.com>
6311
6312         PR 23445
6313         * tree-vrp.c (extract_range_from_assert): If the new numeric
6314         range created out of the assertion contradicts the existing
6315         numeric range of the ASSERT_EXPR variable, make the new range
6316         varying.
6317
6318 2005-10-03  Kaz Kojima  <kkojima@gcc.gnu.org>
6319
6320         * config/sh/sh.c (sh_register_move_cost): Add case for moving
6321         from T_REGS to FP register class.
6322
6323 2005-10-03  Richard Henderson  <rth@redhat.com>
6324
6325         PR 24135
6326         * tree-nested.c (convert_nl_goto_reference): Lookup a translation
6327         before creating a new one.
6328
6329 2005-10-03  David Edelsohn  <edelsohn@gnu.org>
6330
6331         * config/rs6000/t-aix43 (LDFLAGS): New.
6332         * config/rs6000/t-aix52 (LDFLAGS): New.
6333
6334 2005-10-03  Ian Lance Taylor  <ian@airs.com>
6335
6336         * gimplify.c (find_single_pointer_decl_1): New static function.
6337         (find_single_pointer_decl): New static function.
6338         (internal_get_tmp_var): For a formal variable, set restrict base
6339         information if appropriate.
6340         * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
6341         return it.
6342         * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
6343         (DECL_GET_RESTRICT_BASE): Define.
6344         (SET_DECL_RESTRICT_BASE): Define.
6345         (decl_restrict_base_lookup): Declare.
6346         (decl_restrict_base_insert): Declare.
6347         (struct tree_decl_with_vis): Add based_on_restrict_p field.
6348         * tree.c (restrict_base_for_decl): New static variable.
6349         (init_ttree): Initialize restrict_base_for_decl.
6350         (copy_node_stat): Copy restrict base information.
6351         (decl_restrict_base_lookup): New function.
6352         (decl_restrict_base_insert): New function.
6353         (print_restrict_base_statistics): New static function.
6354         (dump_tree_statistics): Call print_restrict_base_statistics.
6355
6356 2005-10-02  Diego Novillo  <dnovillo@redhat.com>
6357
6358         PR 24142
6359         * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
6360         case of anti-ranges.
6361
6362 2005-10-02  Andrew Pinski  <pinskia@physics.uc.edu>
6363
6364         PR c/18851
6365         * c-typeck.c (tagged_tu_seen): Rename to ...
6366         (tagged_tu_seen_cache): this and add val field.
6367         (comptypes): Move functional to comptypes_internal
6368         and free tagged_tu_seen.
6369         (comptypes_internal): New function and call comptypes_internal
6370         instead of comptypes. Speed up by sibcalling
6371         tagged_types_tu_compatible_p.
6372         (alloc_tagged_tu_seen): New function
6373         (free_all_tagged_tu_seen_up_to): New function.
6374         (tagged_types_tu_compatible_p): Return the val of the seen two
6375         types.
6376         Add that the two types are the same to tagged_tu_seen_base
6377         if they are and call comptypes_internal instead of comptypes.
6378         <case UNION_TYPE>: Speed up common type where the fields are
6379         in the same order.
6380         (function_types_compatible_p): Call comptypes_internal instead of
6381         comptypes.
6382         (type_lists_compatible_p): Likewise.
6383         (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
6384
6385 2005-10-02  Matthias Klose  <doko@debian.org>
6386
6387         * doc/invoke.texi: Fix typo and speling error.
6388
6389 2005-10-01  Richard Henderson  <rth@redhat.com>
6390
6391         * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
6392
6393 2005-10-01  Mark Mitchell  <mark@codesourcery.com>
6394
6395         * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
6396         using --start-group and --end-group.
6397
6398 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
6399
6400         * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
6401         FIXME note regarding quirky semantics.
6402
6403 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
6404
6405         PR 24141
6406         * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
6407         non-null range as a last resort.
6408
6409 2005-10-01  James A. Morrison  <phython@gcc.gnu.org>
6410             Diego Novillo  <dnovillo@redhat.com>
6411
6412         PR 23604
6413         * tree-vrp.c (extract_range_from_assert): For !=
6414         assertions, only build an anti-range if LIMIT is a
6415         single-valued range.
6416
6417 2005-09-30  Richard Earnshaw  <richard.earnshaw@arm.com>
6418
6419         * arm.md (movqi): On thumb when optimizing, handle loading from
6420         memory by describing this as taking a subreg of a zero-extended load
6421         into an SImode register.
6422         (movhi): Likewise.
6423
6424 2005-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
6425
6426         * reload1.c (merge_assigned_reloads): Do not change any
6427         RELOAD_FOR_OUTPUT_ADDRESS reloads.
6428
6429 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
6430
6431         * Makefile.in (LIPO_FOR_TARGET): Define.
6432         (STRIP_FOR_TARGET): Define.
6433
6434         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
6435         before creating new ones.  Do symlinks before creating the actual
6436         targets.
6437
6438         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
6439         to work out which multilibs are actually being built.
6440
6441 2005-09-30  Kazu Hirata  <kazu@codesourcery.com>
6442
6443         * tree-vect-transform.c, config/ms1/ms1.md,
6444         config/s390/s390.c, config/v850/v850.md: Fix comment typos.
6445         Follow spelling conventions.
6446         * doc/invoke.texi, doc/md.texi: Fix typos.
6447
6448 2005-09-30  Andrew Macleod  <amacleod@redat.com>
6449
6450         PR tree-optimization/21430
6451         * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
6452         use operands, and set stmt pointer if need be.
6453         (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
6454         tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
6455         present.
6456
6457 2005-09-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6458
6459         PR middle-end/24053
6460         * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
6461
6462 2005-09-29  Mark Mitchell  <mark@codesourcery.com>
6463
6464         * optabs.c (expand_binop): Initialize first_pass_p.
6465
6466 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
6467
6468         PR middle-end/24109
6469         * c-decl.c (c_write_global_declarations_1): If any
6470         wrapup_global_declaration_2 call returned true, restart the loop.
6471
6472 2005-09-29  Daniel Berlin  <dberlin@dberlin.org>
6473
6474         Fix PR tree-optimization/24117
6475         * tree-ssa-structalias.c (find_func_aliases): Strip nops
6476         before considering whether to use anyoffset.
6477
6478 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
6479
6480         Revert this patch:
6481
6482         2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
6483
6484         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
6485         to order operands.
6486         (swap_commutative_operands_with_target): New.
6487
6488 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
6489
6490         PR c/21419
6491         * gimplify.c (gimplify_asm_expr): Raise an error if an output is
6492         read-only.
6493
6494 2005-09-29  Steven Bosscher  <stevenb@suse.de>
6495
6496         PR tree-optimization/23911
6497         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
6498         and IMAGPART_EXPR too.
6499
6500 2005-09-28  Mark Mitchell  <mark@codesourcery.com>
6501
6502         PR 17886
6503         * expmed.c (expand_shift): Move logic to reverse rotation
6504         direction when  rotating by constants ...
6505         * optabs.c (expand_binop): ... here.
6506         * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
6507         (ix86_rotrdi3): New pattern.
6508         (rotldi3): Handle 32-bit mode.
6509         (ix86_rotldi3): New pattern.
6510
6511 2005-09-29  Alan Modra  <amodra@bigpond.net.au>
6512
6513         PR target/24102
6514         * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
6515         check for numbers that need no bit twiddle.
6516
6517 2005-09-28  Geoffrey Keating  <geoffk@apple.com>
6518
6519         * config/rs6000/t-darwin8: Uncomment contents, allow -m64
6520         multilib to be built.
6521
6522         * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
6523         (stage1-start): Delete old libgcc and libunwind before moving
6524         anything into the stage directory.
6525         (stage2-start): Likewise.
6526         (stage3-start): Likewise.
6527         (stage4-start): Likewise.
6528         (stageprofile-start): Likewise.
6529         (stagefeedback-start): Likewise.
6530         * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
6531         header in tm_file and CPU-specific t-darwin in tmake_file.
6532         (i[34567]86-*-darwin*): Don't change tm_file.
6533         (powerpc-*-darwin*): Don't change tm_file or tmake_file.
6534         * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
6535         shared library stub for target OS version.
6536         * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
6537         (SHLIB_LINK): Don't make SHLIB_SOLINK.
6538         (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
6539         (libgcc_s.%.dylib): New.
6540         (LIBGCC): Define.
6541         (install-darwin-libgcc-stubs): New.
6542         (INSTALL_LIBGCC): New append.
6543         * config/i386/darwin-libgcc.10.4.ver: New.
6544         * config/i386/darwin-libgcc.10.5.ver: New.
6545         * config/i386/t-darwin: New.
6546         * config/rs6000/darwin-libgcc.10.4.ver: New.
6547         * config/rs6000/darwin-libgcc.10.5.ver: New.
6548         * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
6549         * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
6550
6551 2005-09-28  Paul Brook  <paul@codesourcery.com>
6552
6553         * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
6554         denormals.
6555
6556 2005-09-28  Richard Guenther  <rguenther@suse.de>
6557
6558         PR tree-optimization/23853
6559         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
6560         host_integerp to verify misalignment value.
6561
6562 2005-09-28  Richard Henderson  <rth@redhat.com>
6563
6564         * builtins.c (get_builtin_sync_mode): New.
6565         (expand_builtin_sync_operation): Pass in mode argument.
6566         (expand_builtin_compare_and_swap): Likewise.
6567         (expand_builtin_lock_test_and_set): Likewise.
6568         (expand_builtin_lock_release): Likewise.
6569         (expand_builtin): Update to match.
6570
6571 2005-09-28  Nick Clifton  <nickc@redhat.com>
6572
6573         * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
6574         formatting.  Add check to PLUS case to ensure that the offset is
6575         within an acceptable range.
6576
6577         * config/v850/v850.md (casesi): Disable the generation of the
6578         switch pattern as it is not being handled properly at the moment.
6579
6580         * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
6581         for when the high words are identical.
6582
6583 2005-09-27  Richard Henderson  <rth@redhat.com>
6584
6585         * pretty-print.c (pp_base_format): Fix typo for %>.
6586
6587 2005-09-27  Daniel Berlin  <dberlin@dberlin.org>
6588             Devang Patel  <dpatel@apple.com>
6589
6590         PR tree-optimization/23625
6591         * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
6592         LABEL_EXPR, assertion check.
6593
6594 2005-09-27  J"orn Rennecke <joern.rennecke@st.com>
6595
6596         * optabs.c (no_conflict_move_test): Check if a result of a
6597         to-be-moved insn would be clobbered by an originally
6598         preceding insn.
6599
6600 2005-09-27  Jeff Law  <law@redhat.com>
6601
6602         * passes.c (init_optimization_passes): Replace copy propagation
6603         passes immediately after DOM with phi-only copy propagation
6604         pases.  Add phi-only copy propagation pass after first DOM pass.
6605         * tree-pass.h (pass_phi_only_copy_prop): Declare.
6606         * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
6607         If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
6608         (execute_copy_prop): Accept new PHI_ONLY argument.  Pass it along
6609         to init_copy_prop.  Callers updated.
6610         (do_phi_only_copy_prop): New function.
6611         (pass_phi_only_copy_prop): New pass descriptor.
6612
6613 2005-09-27  Nick Clifton  <nickc@redhat.com>
6614
6615         * libgcc2.c (__popcount_tab): Remove redundant prototype.
6616
6617 2005-09-26  Jason Merrill  <jason@redhat.com>
6618
6619         PR c++/13764
6620         * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
6621
6622         * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
6623
6624 2005-09-26  James E Wilson  <wilson@specifix.com>
6625
6626         * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
6627         copyright.  Add gcc copyright plus libgcc exception.
6628         * config/ia64/crtfastmath.asm: Remove glibc copyright.  Add gcc
6629         copyright.
6630         * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
6631
6632 2005-09-26  Jeff Law  <law@redhat.com>
6633
6634         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
6635         about when to iterate.
6636
6637 2005-09-23  Fariborz Jahanian <fjahanian@apple.com>
6638
6639         PR target/23847
6640         * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
6641         for __complex__ double in -mcpu=G5 mode.
6642
6643 2005-09-26  Sebastian Pop  <pop@cri.ensmp.fr>
6644
6645         PR tree-optimization/23942
6646         * Makefile.in (SCEV_H): Depends on PARAMS_H.
6647         * tree-scalar-evolution.c: Include params.h.
6648         (t_bool): New enum.
6649         (follow_ssa_edge, follow_ssa_edge_in_rhs,
6650         follow_ssa_edge_in_condition_phi_branch,
6651         follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
6652         Change return type to t_bool.  Use a parameter to limit the size of
6653         trees that are walked before stopping
6654         (analyze_evolution_in_loop): Initialize the limit to 0.
6655         (follow_ssa_edge): Give up by returning t_dont_know if the limit
6656         exceeds PARAM_SCEV_MAX_EXPR_SIZE.
6657
6658 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
6659
6660         PR middle-end/23831
6661         * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
6662         simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
6663
6664 2005-09-26    Fariborz Jahanian <fjahanian@apple.com>
6665
6666         * combine.c (make_extraction): Check for valid use of subreg.
6667
6668 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
6669
6670         PR target/24055
6671         * config/i386/i386.md ("*fistdi2_1"): New pattern.
6672         ("*fist<mode>2_1"): Use only HImode and SImode register operands.
6673         ("fist<mode>2_with_temp"): Use only register operands.
6674
6675 2005-09-26  J"orn Rennecke <joern.rennecke@st.com>
6676
6677         * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
6678         CALL_INSN_FUNCTION_USAGE.
6679
6680 2005-09-26  Richard Guenther  <rguenther@suse.de>
6681
6682         PR middle-end/15855
6683         * gcse.c: Include hashtab.h, define ldst entry hashtable.
6684         (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
6685         (ldst_entry): Use the hashtable instead of list-walking.
6686         (find_rtx_in_ldst): Likewise.
6687         (free_ldst_entry): Free the hashtable.
6688         (compute_ld_motion_mems): Create the hashtable.
6689         (trim_ld_motion_mems): Remove entry from hashtable if
6690         removing it from list.
6691         (compute_store_table): Likewise^2.
6692         (store_motion): Free hashtable in case we did not see
6693         any stores.
6694
6695 2005-09-25  Kazu Hirata  <kazu@codesourcery.com>
6696
6697         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
6698         and arg1 if we are passing them to fold_build2.
6699
6700 2005-09-25  Dan Nicolaescu  <dann@ics.uci.edu>
6701
6702         PR 23828
6703         * config/i386/i386.c (ix86_function_regparm): Fix the test for
6704         a nested function.
6705
6706 2005-09-25  Richard Henderson  <rth@redhat.com>
6707
6708         * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
6709         SYMBOL_REF_TLS_MODEL to be correct.
6710
6711 2005-09-24  Richard Henderson  <rth@redhat.com>
6712
6713         * ipa-type-escape.c (discover_unique_type): Remove dead code at
6714         end of function.  Reindent.
6715
6716 2005-09-24  Ian Lance Taylor  <ian@airs.com>
6717
6718         * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
6719         NEGATE_EXPR/BIT_NOT_EXPR case.
6720
6721 2005-09-24  Richard Henderson  <rth@redhat.com>
6722
6723         * c-common.c (handle_mode_attribute): When not modifying in place,
6724         create subtypes for enumerations.
6725         (sync_resolve_return): Use TYPE_MAIN_VARIANT.
6726         * gimplify.c (create_tmp_from_val): Likewise.
6727
6728 2005-09-24  Alexandre Oliva  <aoliva@redhat.com>
6729
6730         * config/i386/i386.md (*tls_global_dynamic_64,
6731         *tls_local_dynamic_base_64): Add missing mode to call.
6732         (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
6733
6734 2005-09-24  Jan Hubicka  <jh@suse.cz>
6735
6736         * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
6737         (cgraph_clone_node): Likewise.
6738         * cgraph.h (cgraph_clone_edge): Update prototype.
6739         (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
6740         duplicated prototypes; add updating argument.
6741         * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
6742         * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
6743         updating profile.
6744         (cgraph_mark_inline_edge): Likewise.
6745         (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
6746         (cgraph_flatten_node): Likewise.
6747         (cgraph_decide_recursive_inlining): Likewise.
6748         (cgraph_decide_inlining_of_small_function): Likewise.
6749         * tree-optimize.c (tree_rest_of_compilation): Likewise.
6750
6751 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
6752             Pete Steinmetz <steinmtz@us.ibm.com>
6753
6754         * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
6755         (rldic.): Set type to "compare".
6756         (rldicr.): Same.
6757         (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR.  Set type to
6758         mfjmpr for MFCTR/MFLR.
6759         (movdf_hardfloat64): Same.
6760         (movdf_softfloat64): Same.  Correct order of store and move types.
6761         (movti_string): Set type to store_ux/load_ux.
6762         (load_multiple): Set type to load_ux.
6763         (store_multiple): Set type to store_ux.
6764         (movmemsi): Set type to store_ux.
6765         (output_cbranch direct_return): Set type to jmpreg.
6766         (stmw): Set type to store_ux.
6767         (lmw): Set type to load_ux.
6768         * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
6769         * config/rs6000/440.md (ppc440-store): Increase latency to 6.
6770         * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
6771         * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
6772         * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
6773         * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
6774         (rios1-fpstore): Increase latency to 3.
6775         * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
6776         * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
6777
6778 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
6779             Andrew Pinski  <pinskia@physics.uc.edu>
6780
6781         * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
6782         operand2 constraint to "b".
6783         (sync_<fetchop_name>di_internal): Same.
6784         (sync_old_<fetchop_name>si_internal): Change operand3 constraint
6785         to "b".
6786         (sync_old_<fetchop_name>di_internal): Same.
6787         (sync_new_<fetchop_name>si_internal): Same.
6788         (sync_new_<fetchop_name>di_internal): Same.
6789
6790 2005-09-23  J"orn Rennecke <joern.rennecke@st.com>
6791
6792         PR middle-end/23991
6793         * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
6794         case, define as macros.
6795
6796         PR rtl-optimization/23837
6797         *  optabs.c (no_conflict_move_test): Don't set must_stay for a
6798         clobber / clobber match between dest and p->first.
6799
6800         * optabs.c (emit_libcall_block): Use no_conflict_move_test.
6801         (no_conflict_move_test): Update comments.
6802
6803 2005-09-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
6804
6805         * doc/install.texi: Update URL for Jacks.
6806         * doc/sourcebuild.texi: Likewise.
6807
6808 2005-09-22  David Edelsohn  <edelsohn@gnu.org>
6809
6810         PR target/24007
6811         * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
6812         registers when choosing register preferences.
6813         (movdf_hardfloat64): Same.
6814
6815 2005-09-22  Andreas Krebbel  <krebbel1@de.ibm.com>
6816
6817         * expmed.c (expand_shift): Don't use the target of the rotate as
6818         target for the first expanded shift insn.
6819         * testsuite/gcc.dg/20050922-1.c: Testcase added.
6820
6821 2005-09-21  Zdenek Dvorak  <dvorakz@suse.cz>
6822
6823         PR tree-optimization/22438
6824         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
6825         preserved iv rhs rewriting specially.
6826
6827 2005-09-21  Daniel Berlin  <dberlin@dberlin.org>
6828
6829         * tree-data-ref.c (analyze_array_indexes): Only estimate when
6830         estimate_only  is true.
6831         * tree-flow.h (ref_contains_indirect_ref): New prototype.
6832         * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
6833         tree-ssa-structalias.c
6834         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
6835         ref_contains_indirect_ref.
6836         * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
6837
6838 2005-09-21  DJ Delorie  <dj@redhat.com>
6839
6840         * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
6841         MASK_PTR_A0D0.
6842         (mn10300_return_in_memory): Support variable size types also.
6843         (mn10300_pass_by_reference): Likewise.
6844         (mn10300_function_value): New.
6845         * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
6846         (FUNCTION_OUTGOING_VALUE): Likewise.
6847         * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
6848         * doc/invoke.texi: Document it.
6849
6850 2005-09-21  Uros Bizjak  <uros@kss-loka.si>
6851
6852         PR target/22585
6853         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
6854         force integer op1 into register for XFmode compares.
6855
6856 2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
6857
6858         PR middle-end/23971
6859         * expmed.c (alg_code): Add alg_impossible.
6860         (alg_hash_entry): Add cost.
6861         (synth_mult): Record alg_impossible in the hash table if
6862         multiplication by a given integer is impossble within the
6863         limit.  Speed up using alg_impossible.
6864
6865 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
6866
6867         * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
6868         argument.  Allow and set any offset if needs_anyoffset is passed
6869         in.
6870         (get_constraint_for): Add argument here too.
6871         Pass it down.
6872         (do_structure_copy): Pass NULL to get_constraint_for.
6873         (handle_ptr_arith): Ditto.
6874         (find_func_aliases): Ditto.
6875
6876 2005-09-20  J"orn Rennecke <joern.rennecke@st.com>
6877
6878         PR rtl-optimization/23898
6879         * output.h (get_attr_min_length): Declare.
6880         * final.c (get_attr_length_1): New function, broken out of:
6881         (get_attr_length).
6882         (get_attr_min_length): New function.
6883         * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
6884         (duplicate_computed_gotos): Likewise.
6885         * genattr.c (insn_min_length): Generate declaration.
6886         * genattrtab.c (min_fn, min_attr_value): New functions.
6887         (make_length_attrs): Generate insn_min_length.
6888
6889 2005-09-20  Steve Ellcey  <sje@cup.hp.com>
6890
6891         * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
6892
6893 2005-09-20  Richard Henderson  <rth@redhat.com>
6894
6895         PR tree-optimization/24059
6896         * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
6897         EXPAND_STACK_PARM.
6898
6899 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
6900
6901         * c.opt (fextended-identifiers): New.
6902         * c-opts.c (c_common_handle_option): Handle
6903         -fextended-identifiers.
6904         * doc/cpp.texi: Update documentation of extended identifiers.
6905         * doc/cppopts.texi (-fextended-identifiers): Document.
6906
6907 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
6908
6909         PR tree-optimization/23929
6910         * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
6911         if expr is NULL.
6912
6913         PR tree-optimization/23818
6914         * tree-stdarg.c (execute_optimize_stdarg): Call
6915         calculate_dominance_info.
6916
6917 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
6918
6919         * tree-data-ref.c (get_number_of_iters_for_loop): New function.
6920         (analyze_siv_subscript_cst_affine): Add weak SIV test.
6921         (compute_overlap_steps_for_affine_1_2): Use
6922         get_number_of_iters_for_loop.
6923         (analyze_subscript_affine_affine): Check whether difference is
6924         zero first.
6925         Use get_number_of_iters_for_loop.
6926         Check whether overlap occurs outside of bounds.
6927         (analyze_miv_subscript): Use get_number_of_iters_for_loop.
6928
6929 2005-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
6930
6931         * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
6932         base register if possible.
6933
6934 2005-09-20  Zdenek Dvorak  <dvorakz@suse.cz>
6935
6936         PR tree-optimization/18463
6937         * tree-chrec.c (chrec_convert): Return fold_converted chrec if
6938         converting it directly is not possible.
6939         (chrec_convert_aggressive): New function.
6940         * tree-chrec.h (chrec_convert_aggressive): Declare.
6941         * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
6942         Fold chrec conversions aggressively if asked to.
6943         (instantiate_parameters): Modified because of changes in
6944         instantiate_parameters_1.
6945
6946 2005-09-19  Richard Henderson  <rth@redhat.com>
6947
6948         * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
6949         (reduc_splus_v2df): New.
6950
6951 2005-09-19  Richard Sandiford  <richard@codesourcery.com>
6952
6953         * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
6954         (ADDITIONAL_REGISTER_NAMES): Add missing comma.  Remove final comma.
6955
6956 2005-09-19  Richard Henderson  <rth@redhat.com>
6957
6958         * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
6959         vcondu<SSEMODE12>.
6960
6961 2005-09-19  Richard Henderson  <rth@redhat.com>
6962
6963         * config/ia64/ia64.c (ia64_expand_widen_sum): New.
6964         (ia64_expand_dot_prod_v8qi): New.
6965         * config/ia64/ia64-protos.h: Update.
6966         * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
6967         widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
6968         sdot_prodv8qi, sdot_prodv4hi): New.
6969         (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
6970
6971 2005-09-19  Richard Henderson  <rth@redhat.com>
6972
6973         PR 23941
6974         * real.c (exact_real_truncate): Return false if the format cannot
6975         represent the number as a normal.
6976
6977         * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
6978         for a memory source.
6979
6980 2005-09-19  Dorit Nuzman  <dorit@il.ibm.com>
6981
6982         * tree-ssa-operands.c (swap_tree_operands): Export.
6983         * tree.h (swap_tree_operands): Declare.
6984         * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
6985         Call swap_tree_operands.
6986
6987 2005-09-19  Richard Henderson  <rth@redhat.com>
6988
6989         * tree-flow.h (merge_alias_info): Declare.
6990         * tree-ssa-copy.c (merge_alias_info): Export.
6991         * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
6992         (vect_create_data_ref_ptr): Use create_iv directly.
6993         (vectorizable_load): Use correct types for integer constants.
6994         (vect_generate_tmps_on_preheader): Likewise.
6995         (vect_gen_niters_for_prolog_loop): Likewise.
6996
6997 2005-09-19  Steven Bosscher  <stevenb@suse.de>
6998
6999         PR rtl-optimization/23943
7000         * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
7001
7002 2005-09-18  Jan Hubicka  <jh@suse.cz>
7003
7004         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
7005
7006 2005-09-18  Eric Botcazou  <ebotcazou@adacore.com>
7007
7008         * varasm.c (output_constant): Do not abort on conversions to union
7009         types between different sizes.
7010
7011 2005-09-18  Richard Guenther  <rguenther@suse.de>
7012
7013         PR middle-end/23944
7014         * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
7015         fallback.
7016
7017 2005-09-18  Paul Brook  <paul@codesourcery.com>
7018
7019         * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
7020
7021 2005-09-17  Richard Henderson  <rth@redhat.com>
7022
7023         * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
7024         * tree-ssa-loop.c (pass_vect_dce): Remove.
7025         * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
7026         of pass_vectorize.
7027
7028 2005-09-17  Richard Henderson  <rth@redhat.com>
7029
7030         * tree-pass.h (pass_vect_dce): Declare.
7031         * passes.c (init_optimization_passes): Add it.
7032         * tree-flow.h (tree_ssa_dce): Declare.
7033         * tree-ssa-dce.c (tree_ssa_dce): Export.
7034         * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
7035         (gate_tree_vectorize): ... here.
7036         (pass_vect_dce): New.
7037
7038 2005-09-17  Jan Hubicka  <jh@suse.cz>
7039
7040         * except.c (struct eh_status): Turn region_array into vec.
7041         (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
7042         convert_from_eh_region_ranges, find_exception_handler_labels,
7043         current_function_has_exception_handlers, assign_filter_values,
7044         build_post_landing_pads, dw2_build_landing_pads,
7045         sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
7046         sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
7047         foreach_reachable_handler, can_throw_internal_1,
7048         convert_to_eh_region_ranges, verify_eh_tree): Update uses of
7049         region_array.
7050         (duplicate_eh_region_1): Update region_array.
7051         (duplicate_eh_regions): Resize region_array and avoid recomputing.
7052
7053 2005-09-17  David Edelsohn  <edelsohn@gnu.org>
7054
7055         PR middle-end/22067
7056         * expmed.c (expand_mult): Substitute simple register for op0 when
7057         computing max_cost.
7058
7059 2005-09-17  Richard Henderson  <rth@redhat.com>
7060
7061         * expr.c (emit_move_via_integer): Add force argument, pass it on
7062         to emit_move_change_mode.  Update callers.
7063         (emit_move_complex): Pass true to new force argument.
7064         * function.c (expand_function_end): Move expand_eh_return call
7065         earlier.  Merge sub-word complex values into a pseudo before
7066         copying to the return hard register.
7067
7068 2005-09-17  Eric Botcazou  <ebotcazou@adacore.com>
7069
7070         * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
7071         between different sizes.
7072
7073 2005-09-16  Paolo Bonzini  <bonzini@gnu.org>
7074
7075         PR 23903
7076
7077         * passes.c (init_optimization_passes): Register dump files for
7078         IPA passes first.
7079
7080 2005-09-16  Andreas Krebbel  <krebbel1@de.ibm.com>
7081
7082         * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
7083         * config/s390/s390.c (s390_overlap_p): New function.
7084         * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
7085         peephole2, "*xc" peephole2): Added overlap check to the peephole2
7086         condition.
7087
7088 2005-09-16  Richard Guenther  <rguenther@suse.de>
7089
7090         * ipa-pure-const.c (static_execute): Free auxiliar information.
7091         * ipa-type-escape.c (discover_unique_type): Free temporary key.
7092         * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
7093
7094 2005-09-15  DJ Delorie  <dj@redhat.com>
7095
7096         * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
7097
7098 2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
7099
7100         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
7101         to order operands.
7102         (swap_commutative_operands_with_target): New.
7103
7104 2005-09-15  Daniel Berlin  <dberlin@dberlin.org>
7105
7106         * tree-data-ref.c (analyze_array_indexes): Add estimate_only
7107         parameter.
7108         Update callers.
7109         (estimate_iters_using_array): New function.
7110         * tree-data-ref.h (estimate_iters_using_array): Prototype
7111         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
7112         Use estimate_iters_using_array instead of analyze_array.
7113
7114 2005-09-15  Eric Botcazou  <ebotcazou@adacore.com>
7115
7116         * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
7117         as addressable.
7118
7119 2005-09-15  Michael Matz  <matz@suse.de>
7120
7121         * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
7122
7123 2005-09-14  Daniel Berlin  <dberlin@dberlin.org>
7124
7125         PR tree-optimization/23835
7126         * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
7127         (create_name_tags): Rewrite to be not O(num_ssa_names^2).
7128
7129 2005-09-14  Richard Henderson  <rth@redhat.com>
7130
7131         * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
7132         (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
7133
7134 2005-09-14  Andrew Pinski  <pinskia@physics.uc.edu>
7135
7136         * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
7137         in the ARRAY_TYPE case.
7138
7139 2005-09-14  Eric Botcazou  <ebotcazou@adacore.com>
7140
7141         * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
7142
7143 2005-09-14  Uros Bizjak  <uros@kss-loka.si>
7144
7145         PR middle-end/22480
7146         * tree-vect-transform.c (vectorizable_operation): Return false for
7147         scalar shift operations and for vector shift operations with
7148         non-invariant shift arguments.  Use scalar tree operand op1 as
7149         a shift operand when vector shift insn pattern uses scalar shift
7150         operand.
7151         * Makefile.in (tree-vect-transform.o): Depend on recog.h.
7152
7153 2005-09-14  Olivier Hainque  <hainque@adacore.com>
7154
7155         * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
7156         value if it has side-effects.
7157
7158 2005-09-14  David Edelsohn  <edelsohn@gnu.org>
7159
7160         PR target/22068
7161         * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
7162
7163 2005-09-14  Alan Modra  <amodra@bigpond.net.au>
7164
7165         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
7166         passed as NAME as if it were label at start of function code.
7167
7168 2005-09-13  Kaz Kojima  <kkojima@gcc.gnu.org>
7169
7170         * config/sh/sh.md (*movv4sf_i): Add general register cases to
7171         the constraints.
7172
7173 2005-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
7174
7175         * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
7176         as early clobber.  Rewrite so the PIC register is not implicitly used.
7177
7178 2005-09-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7179
7180         * tree.c (annotate_with_file_line): Compare line numbers before
7181         file names.
7182
7183 2005-09-13  Uros Bizjak  <uros@kss-loka.si>
7184
7185         PR target/23816
7186         * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
7187         (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
7188
7189 2005-09-13  Ian Lance Taylor  <ian@airs.com>
7190
7191         * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
7192         than a HOST_WIDEST_INT to gen_doloop_begin.
7193
7194 2005-09-13  Diego Novillo  <dnovillo@redhat.com>
7195
7196         * tree-dfa.c (dump_variable): Guard against NULL annotations.
7197
7198 2005-09-13  Zdenek Dvorak  <dvorakz@suse.cz>
7199
7200         PR tree-optimize/23817
7201         * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
7202
7203 2005-09-13  Alan Modra  <amodra@bigpond.net.au>
7204
7205         PR target/23774
7206         * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
7207         word before changing the stack pointer.  Use gen_frame_mem for MEMs.
7208         Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
7209         (restore_stack_nonlocal): Likewise.
7210         (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
7211
7212 2005-09-12  Ian Lance Taylor  <ian@airs.com>
7213
7214         PR g++/7874
7215         * c.opt (ffriend-injection): New C++ option.
7216         * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
7217         (C++ Dialect Options): Document -ffriend-injection.
7218
7219 2005-09-12  Josh Conner  <jconner@apple.com>
7220
7221         PR middle-end/23237
7222         * ipa-reference.c (static_execute): Don't mark variables in
7223         named sections TREE_READONLY.
7224
7225 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
7226
7227         * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
7228         stack_tie.
7229
7230 2005-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
7231
7232         * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
7233         V_MUST_DEF instead of just the first_use_p.
7234         Don't mark the virtual variables for renaming on the statement which
7235         is being removed.
7236         (pass_dse): Remove TODO_update_ssa.
7237
7238 2005-09-12  J"orn Rennecke <joern.rennecke@st.com>
7239
7240         PR middle-end/23290
7241         * stor-layout.c (compute_record_mode): For records with a single
7242         field, actually check the field's mode size against the type size.
7243
7244         * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
7245         registers for TARGET_SHMEDIA.
7246         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
7247         GENERAL_FP_REGS to GENERAL_DF_REGS.  Add GENERAL_FP_REGS as union
7248         of GENERAL_REGS and FP_REGS.
7249
7250 2005-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
7251
7252         * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
7253
7254 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
7255
7256         * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
7257         CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
7258         are omitted.  Exclude stack_tie insn too.
7259
7260 2005-09-11  David Edelsohn  <edelsohn@gnu.org>
7261
7262         PR rtl-optimization/23098
7263         * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
7264         0.0f is easy.
7265         * config/rs6000/rs6000.md (movdf splitter): Use
7266         const_double_operand predicate for TARGET_POWERPC64.
7267         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
7268         SYMBOL_REF method to ABI_V4.
7269
7270         * config/rs6000/altivec.md (build_vector_mask_for_load): Use
7271         replace_equiv_address.
7272         * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
7273         rs6000_sr_alias_set and MEM_NOTRAP.
7274         (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
7275
7276 2005-09-11  Eric Botcazou  <ebotcazou@adacore.com>
7277
7278         * tree.c (contains_placeholder_p) <tcc_expression>: Properly
7279         handle CALL_EXPR again.
7280
7281 2005-09-11  Richard Earnshaw  <richard.earnshaw@arm.com>
7282
7283         * arm/predicates.md (alignable_memory_operand): Delete.
7284
7285 2005-09-10  Richard Henderson  <rth@redhat.com>
7286
7287         PR debug/23806
7288         * dbxout.c (dbxout_expand_expr): New.
7289         (dbxout_symbol): Use it.
7290
7291 2005-09-10  Richard Earnshaw  <richard.earnshaw@arm.com>
7292
7293         * arm.c (arm_gen_rotated_half_load): Delete.
7294         (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
7295         (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
7296         (thumb_set_return_address): Likewise.
7297         (thumb_load_double_from_address): Use adjust_address.
7298         * arm.md (splits calling arm_gen_rotated_half_load): Delete.
7299         (extendhsisi2_mem, movhi_bytes): Use change_address.
7300         (movhi): Use widen_memory_access.
7301         (reload_out_df): Use replace_equiv_address.
7302         * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
7303
7304 2005-09-09  Richard Henderson  <rth@redhat.com>
7305
7306         PR debug/20998
7307         * dbxout.c: Include expr.h.
7308         (dbxout_global_decl): Don't suppress for DECL_RTL unset.
7309         (dbxout_symbol): Handle DECL_VALUE_EXPR.
7310         * Makefile.in (dbxout.o): Add EXPR_H.
7311
7312 2005-09-09  Zdenek Dvorak  <dvorakz@suse.cz>
7313
7314         PR tree-optimization/23509
7315         * tree-cfg.c (replace_uses_by): Use replace_exp.
7316         * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
7317         pointers have name_mem_tag or type_mem_tag set.
7318
7319 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
7320
7321         * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
7322         CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
7323         of wrongly accessing operands.
7324
7325 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
7326
7327         * Makefile.in (tree-chrec.o): Depends on SCEV_H.
7328         * tree-chrec.c: Include tree-scalar-evolution.h.
7329         (chrec_convert): Instantiate the base and step before calling
7330         scev_probably_wraps_p that would fail on parametric evolutions.
7331         Collect all the fails into a single section failed_to_convert,
7332         print a diagnostic, and return chrec_dont_know instead of calling
7333         fold_convert.
7334         * tree-scalar-evolution.c (loop_closed_phi_def): New.
7335         (instantiate_parameters_1): Avoid instantiation of loop closed ssa
7336         phi nodes.
7337         (scev_const_prop): Don't replace the definition of a loop closed ssa
7338         phi node by itself, or by another loop closed ssa phi node.
7339         * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
7340         that base and step are defined.
7341
7342 2005-09-09  Richard Guenther  <rguenther@suse.de>
7343
7344         PR c++/23624
7345         * fold-const.c (fold_ternary): Check truth_value_p before
7346         calling invert_truthvalue.
7347
7348 2005-09-09  Nick Clifton  <nickc@redhat.com>
7349
7350         * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
7351         * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
7352         dimension of these arrays.
7353         * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
7354         these arrays.
7355         * longlong.h: Only provide a prototype for the __clz_tab[] array
7356         if this header has not been included from libgcc2.h.
7357         * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
7358         defining own types.
7359         Provide prototypes for exported functions.
7360         Use the __clz_tab[] and __popcount_tab[] arrays provided by
7361         libgcc2.c.
7362
7363 2005-09-08  Josh Conner  <jconner@apple.com>
7364
7365         PR c++/21135
7366         PR c++/23180
7367         * expr.c (expand_expr_addr_expr_1): Don't invoke
7368         expand_simple_binop for EXPAND_INITIALIZER.
7369
7370 2005-09-08  Richard Henderson  <rth@redhat.com>
7371
7372         PR debug/23190
7373         * toplev.c (wrapup_global_declaration_1): Split out ...
7374         (wrapup_global_declaration_2): ... from ...
7375         (wrapup_global_declarations): ... here.  Return bool.
7376         (check_global_declaration_1): Split out ...
7377         (check_global_declarations): from here.
7378         (emit_debug_global_declarations): New.
7379         * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
7380         check_global_declaration_1, emit_debug_global_declarations): Declare.
7381         * c-decl.c (c_write_global_declarations_1): Don't create a vector
7382         of decls.  Call wrapup_global_declaration_1,
7383         wrapup_global_declaration_2, check_global_declaration_1 directly.
7384         (c_write_global_declarations_2): New.
7385         (ext_block): New.
7386         (c_write_global_declarations): Call c_write_global_declarations_2.
7387         * langhooks.c (write_global_declarations): Call
7388         emit_debug_global_declarations.
7389
7390         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
7391         remove decls that have DECL_RTL_SET_P.
7392         * passes.c (rest_of_decl_compilation): Invoke
7393         cgraph_varpool_finalize_decl for all but functions.
7394
7395 2005-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
7396
7397         * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
7398         the result of a conversion if the new min and max cannot be compared.
7399
7400 2005-09-08  Andreas Krebbel  <krebbel1@de.ibm.com>
7401
7402         * config/s390/s390.c (s390_sr_alias_set): Variable removed.
7403         (override_options): Setting s390_sr_alias_set removed.
7404         (save_fpr, save_gprs): Set alias set to vararg or frame.
7405         (restore_fpr, restore_gprs, s390_emit_prologue): Replace
7406         s390_sr_alias_set with get_frame_alias_set ().
7407         (s390_gimplify_va_arg): Replace s390_sr_alias_set with
7408         get_varargs_alias_set ().
7409
7410 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
7411
7412         PR objc/20574
7413         PR objc/19324
7414         * c-parser.c (c_parser_objc_method_definition): If the next
7415         token is not "{", error out and don't start the function.
7416
7417 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
7418
7419         * tree-vrp.c (extract_range_from_expr): Move the check for non
7420         nullness after the check for gimple invariant.
7421
7422 2005-09-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7423
7424         * tree.c (host_integerp, tree_low_cst): Correct function comment.
7425
7426 2005-09-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7427
7428         PR target/23747
7429         * config/m32r.md (movmemsi_internal): Canonicalize order of
7430         operands in PLUS component of template.
7431
7432 2005-09-07  Andreas Krebbel  <krebbel1@de.ibm.com>
7433
7434         * reload1.c (fixup_eh_region_note): Remove assertion.
7435         (fixup_abnormal_edges): Reverted removal of call to
7436         find_many_sub_basic_blocks made on 2005-08-31.
7437
7438 2005-09-07  Richard Henderson  <rth@redhat.com>
7439
7440         * function.c (ARG_POINTER_CFA_OFFSET): Move ...
7441         * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
7442         (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
7443         * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
7444         rearrange for better packing.
7445         (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
7446         (lookup_cfa_1): Remove inline marker.
7447         (cfa_equal_p): Split out of ...
7448         (def_cfa_1): ... here.  Use INVALID_REGNUM.
7449         (build_cfa_loc): Handle !cfa->indirect.
7450         (frame_pointer_cfa_offset): New.
7451         (dbx_reg_number): Assert register elimination performed; do
7452         leaf register remapping.
7453         (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
7454         (eliminate_reg_to_offset): New.
7455         (based_loc_descr): Remove can_use_fbreg argument.  Use fbreg only
7456         for verifiably local stack frame addresses; re-base to CFA.
7457         (mem_loc_descriptor): Remove can_use_fbreg argument.
7458         (concat_loc_descriptor, loc_descriptor): Likewise.
7459         (containing_function_has_frame_base): Remove.
7460         (rtl_for_decl_location): Don't do register elimination or
7461         leaf register remapping here.
7462         (secname_for_decl): Split out from ..
7463         (add_location_or_const_value_attribute): ... here.
7464         (convert_cfa_to_loc_list): New.
7465         (compute_frame_pointer_to_cfa_displacement): New.
7466         (gen_subprogram_die): Use them.
7467         * tree.h (frame_base_decl): Remove.
7468         * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
7469         (prologue_stack_adjust): Remove.
7470         (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
7471         (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
7472         (set_frame_base_location): Remove.
7473         (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
7474         (dump_attrs_list, dump_dataflow_set): Use string concatenation.
7475         (vt_add_function_parameters): Don't eliminate_regs.
7476         (vt_initialize): Don't create frame_base_decl.
7477
7478 2005-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
7479
7480         * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
7481         version of GNU binutils for 4.x and later.
7482
7483 2005-09-06  Mark Mitchell  <mark@codesourcery.com>
7484
7485         * ggc-page.c (ggc_push_context): Remove.
7486         (ggc_pop_context): Likewise.
7487         * ggc.h (ggc_push_context): Remove.
7488         (ggc_pop_context): Likewise.
7489
7490 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
7491
7492         PR target/8973
7493         * config/arc/arc.c (arc_output_function_epilogue): Update flags while
7494         returning from an interrupt handler.
7495
7496 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
7497
7498         PR target/8972
7499         * config/arc/arc.c (output_shift): Add check for loop count when
7500         optimizing.
7501
7502 2005-09-06  Steven Bosscher  <stevenb@suse.de>
7503
7504         * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
7505         form manually.
7506         (abs_replacement): Likewise.
7507         (pass_phiopt): Remove TODO_update_ssa.
7508
7509 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
7510
7511         PR c/23075
7512         * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
7513         if "return with no value, in function returning non-void" warning
7514         has been issued.
7515         * tree-cfg.c (execute_warn_function_return): Don't look at
7516         RETURN_EXPRs with TREE_NO_WARNING set.
7517
7518         PR target/22362
7519         * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
7520         for internal functions doesn't use registers used by global registers
7521         variables.  Use fewer register parameters if there are global register
7522         variables.
7523
7524 2005-09-06  Olivier Hainque  <hainque@adacore.com>
7525             Eric Botcazou  <ebotcazou@adacore.com>
7526
7527         PR middle-end/14997
7528         * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
7529         when we would be extracting outside its bit span (bitpos+bitsize
7530         larger than its mode), possible with some VIEW_CONVERT_EXPRs from
7531         Ada unchecked conversions.
7532
7533 2005-09-06  Steven Bosscher  <stevenb@suse.de>
7534
7535         * tree-ssa-pre.c (try_look_through_load): New function.
7536         (compute_avail): Use it to try to look through loads for some
7537         more useful expressions.
7538
7539 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
7540
7541         * simplify-rtx.c (simplify_binary_operation_1): Correct the
7542         condition for detecting cases like (a&a) and (a^a).
7543
7544 2005-09-06  Keith Besaw  <kbesaw@us.ibm.com>
7545
7546         * common.opt: Add option ftree-vect-loop-version.
7547         * params.def: Add --param vect-max-version-checks.
7548         * doc/invoke.texi: Document ftree-vect-loop-version and
7549         --param vect-max-version-checks.
7550         * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
7551         may_misalign_stmts and defines for accessors.
7552         * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
7553         LOOP_VINFO_MAY_MISALIGN_STMTS.
7554         (destroy_loop_vec_info): VEC_free for
7555         LOOP_VINFO_MAY_MISALIGN_STMTS.
7556         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
7557         Update documentation.
7558         (vect_update_misalignment_for_peel): New.
7559         (vect_enhance_data_refs_alignment): Update to choose loop
7560         peeling or loop versioning if appropriate for the (potentially)
7561         unaligned data references in the loop.
7562         (vect_analyze_data_refs_alignment): Remove call to
7563         vect_enhance_data_refs_alignment so the checks can be done
7564         earlier.
7565         (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
7566         and move up call to vect_analyze_data_refs_alignment.
7567         * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
7568         (vect_transform_loop): Add call to loop_version.
7569
7570 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
7571
7572         PR rtl-optimization/23098
7573         * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
7574         * simplify-rtx.c (constant_pool_reference_p): New function.
7575         * rtl.h (constant_pool_reference_p): New prototype.
7576         * config/i386/i386.md (pushf split, mov[sdx]f split): Use
7577         constant_pool_reference_p in condition and
7578         avoid_constant_pool_reference in preparation statements.
7579
7580 2005-09-06  Andreas Krebbel  <krebbel1@de.ibm.com>
7581
7582         * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
7583         STRICT_LOW_PART SETs.
7584
7585 2005-09-06  Alan Modra  <amodra@bigpond.net.au>
7586
7587         PR middle-end/21460
7588         * except.c (sjlj_emit_function_enter): Find the function begin
7589         note even when it's not in first basic block.
7590
7591 2005-09-06  Kelley Cook  <kcook@gcc.gnu.org>
7592
7593         * acinclude.m4: Renamed from aclocal.m4.  Delete AM_LANGINFO_CODESET,
7594         AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
7595         * aclocal.m4: Regenerate.
7596
7597 2005-09-05  DJ Delorie  <dj@redhat.com>
7598
7599         * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
7600         of macro.
7601
7602 2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
7603
7604         * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
7605         config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
7606         config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
7607         Follow spelling conventions.
7608         * doc/invoke.texi: Follow spelling conventions.
7609
7610 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
7611
7612         * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
7613         * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
7614         * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
7615
7616 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
7617
7618         PR target/23683
7619         * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
7620         (output_stack_adjust): Use gen_tmp_stack_mem.
7621         (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
7622         (sh_set_return_address, sh_allocate_initial_value): Likewise.
7623         (sh_get_pr_initial_val): Likewise.
7624         (sh_builtin_saveregs): Use gen_frame_mem and change_address.
7625         (sh_initialize_trampoline): Likewise.  Also use adjust_address.
7626         * sh.md (divsi_inv_m0): Use gen_const_mem.
7627         (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
7628         (movdf_i4+1): Use gen_tmp_stack_mem.
7629         (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
7630         (fpu_switch+2): Likewise.
7631         (movv4sf_i, movv16sf_i): Use adjust_address.
7632         (symGOT_load): Set MEM_NOTRAP_P bit.
7633
7634 2005-09-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7635
7636         PR target/23721
7637         * pa.c (emit_move_sequence): Fix typo in last change.
7638
7639 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
7640
7641         PR rtl-optimization/23454
7642         * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
7643         is true.
7644
7645 2005-09-03  Richard Henderson  <rth@redhat.com>
7646             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7647
7648         PR middle-end/23671
7649         * pa.c (emit_move_sequence): Use replace_equiv_address instead of
7650         gen_rtx_MEM.
7651
7652 2005-09-02  Nicolas Pitre <nico@cam.org>
7653
7654         * config/arm/arm.c (arm_legitimize_address): Limit the value passed
7655         to bit_count to 32 bits.
7656
7657 2005-08-31  Mark Mitchell  <mark@codesourcery.com>
7658
7659         PR c++/23167
7660         * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
7661         generating synthetic loads from volatile lvalues.
7662
7663 005-09-02  Nick Clifton  <nickc@redhat.com>
7664
7665         * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
7666         __ctzhi2, __clzhi2): New functions.
7667
7668 2005-09-02  Andrew Pinski  <pinskia@physics.uc.edu>
7669
7670         PR middle-end/23547
7671         * tree-nested.c (struct var_map_elt): Mark with GTY.
7672         (struct nesting_info): Mark with GTY.  Mark var_map's param is struct
7673         var_map_elt.
7674         (lookup_field_for_decl): Allocate new element in GC memory.
7675         (lookup_tramp_for_decl): Likewise.
7676         (convert_nl_goto_reference): Likewise
7677         (create_nesting_tree): Allocate info in GC memory. Likewise for
7678         info->var_map.
7679         (free_nesting_tree): Free with ggc_free instead of free.
7680         (root): New static variable.
7681         (lower_nested_functions): Remove root as local variable.  And zero out
7682         root at the end of the function.
7683
7684 2005-09-02  J"orn Rennecke <joern.rennecke@st.com>
7685
7686         PR rtl-optimization/20365
7687         * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
7688         to short.  New member ix.
7689         (simplify_plus_minus_op_data_cmp): Break ties using ix member.
7690         (simplify_plus_minus): Initialize ix members before calling qsort.
7691
7692 2005-09-02  Zdenek Dvorak  <dvorakz@suse.cz>
7693
7694         PR tree-optimization/23626
7695         * tree-cfg.c (replace_uses_by): Clean up eh info.
7696
7697 2005-09-01  DJ Delorie  <dj@redhat.com>
7698
7699         * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
7700         fprintf.
7701
7702 2005-09-01  David Edelsohn  <edelsohn@gnu.org>
7703
7704         * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
7705         (rs6000_split_multireg_move): Use replace_equiv_address instead of
7706         gen_rtx_MEM.
7707
7708 2005-09-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7709
7710         * c-decl.c (diagnose_mismatched_decls):  With -Wredundant-decls,
7711         do not issue warning for a variable definition following
7712         a declaration.
7713
7714 2005-09-01  Richard Henderson  <rth@redhat.com>
7715
7716         PR 23668
7717         * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
7718         conversion to CONST_VECTOR.
7719
7720 2005-09-01  Richard Henderson  <rth@redhat.com>
7721
7722         PR 23676
7723         * reload1.c (reload_as_needed): Check !CALL_P before calling
7724         fixup_eh_region_note.
7725         * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
7726
7727 2005-09-01  DJ Delorie  <dj@redhat.com>
7728
7729         * varasm.c (output_constant): Let the target resolve
7730         conversions of addresses to non-default pointer sizes.
7731
7732 2005-09-01  Nicolas Pitre <nico@cam.org>
7733
7734         * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
7735         to alow matching ARM pre-indexed addressing mode.
7736         (arm_override_options): Remove now irrelevant comment.
7737
7738 2005-09-01  Phil Edwards  <phil@codesourcery.com>
7739
7740         * config.gcc (i*86-wrs-vxworks):  Update.  Split out vxworksae target.
7741         * config/i386/t-vxworks:  Update multilibs for VxWorks 6 and RTP mode.
7742         * config/i386/vxworks.h:  Likewise.
7743         * config/i386/t-vxworksae:  New file, for VxWorks AE.
7744         * config/i386/vxworksae.h:  Likewise.
7745
7746 2005-09-01  Sebastian Pop  <pop@cri.ensmp.fr>
7747
7748         PR tree-optimization/23410
7749         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
7750         sequence is not wrapping during the first step.
7751
7752 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
7753
7754         PR debug/7241
7755         * dwarf2out.c (base_type_die): Compare char_type_node with
7756         TYPE_MAIN_VARIANT (type), not type.
7757
7758 2005-09-01  Richard Guenther  <rguenther@suse.de>
7759
7760         PR tree-optimization/15366
7761         * common.opt: Add -finline-functions-called-once.
7762         Put -fearly-inlining in alphabetically ordered place.
7763         * doc/invoke.texi: Document new option.
7764         * ipa-inline.c (cgraph_decide_inlining): Honour
7765         flag_inline_functions_called_once.
7766
7767 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
7768
7769         PR rtl-optimization/23478
7770         * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
7771         (alloc_qty): Initialize it.
7772         (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
7773         (combine_regs): Combine also n_throwing_calls_crossed fields.
7774         (find_free_reg): Don't attempt to caller-save pseudos crossing
7775         calls that might throw.
7776         * global.c (struct allocno): Add throwing_calls_crossed field.
7777         (global_alloc): Revert 2005-08-22 change.  Initialize
7778         throwing_calls_crossed.
7779         (find_reg): Don't attempt to caller-save pseudos crossing calls that
7780         might throw.
7781
7782 2005-09-01  Alan Modra  <amodra@bigpond.net.au>
7783
7784         PR target/23649
7785         * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
7786         (mask64_operand): Reinstate code prior to 2005-06-11 change.
7787         (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
7788         (and64_2_operand): Tweak to use predicate.
7789         (and_operand): Adjust for mask_operand changes.
7790         * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
7791         (print_operand): Likewise.
7792         (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
7793         (mask64_1or2_operand): Delete.
7794         * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
7795         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
7796         (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
7797         (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
7798         * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
7799         (rotldi3_internal4): Likewise.
7800         (rotldi3_internal5, rotldi3_internal5 split): Likewise.
7801         (rotldi3_internal6, rotldi3_internal6 split): Likewise.
7802         (ashldi3_internal7): Likewise.
7803         (ashldi3_internal8, ashldi3_internal8 split): Likewise.
7804         (ashldi3_internal, ashldi3_internal9 split): Likewise.
7805         (anddi3 split): Don't match mask64_operand.
7806         (anddi3_internal2): Add rlwinm.  Modify 't' splitter predicate.
7807         (anddi3_internal3): Add rlwinm.  Use and64_2_operand in non-cr0
7808         splitter and match TARGET_64BIT not TARGET_POWERPC64.  Modify
7809         't' splitter predicate.
7810         (movdi_internal64 + 2): Revert 2005-06-11 change.
7811
7812 2005-08-31  DJ Delorie  <dj@redhat.com>
7813
7814         * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
7815         (m32c_asm_integer): Add support for 32 bit pointers.
7816
7817 2005-08-31  Richard Henderson  <rth@redhat.com>
7818
7819         * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
7820         component-like references for setting MEM_NOTRAP_P.
7821
7822         * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
7823         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
7824
7825 2005-08-31  Richard Henderson  <rth@redhat.com>
7826
7827         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
7828         into a pseudo before applying gen_lowpart.
7829
7830 2005-08-31  Geoffrey Keating  <geoffk@apple.com>
7831
7832         * doc/install.texi (Specific): Update cctools version required
7833         for full functionality.
7834         * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
7835         linkers as -macosx_version_min.
7836
7837 2005-08-31  J"orn Rennecke <joern.rennecke@st.com>
7838
7839         PR target/21255
7840         * sh.c (print_operand, %R and %S): Add handling of floating point
7841         registers, memory, constants and invalid operands.
7842
7843 2005-08-31  Daniel Berlin  <dberlin@dberlin.org>
7844
7845         * ipa-pure-const.c: Change dump name.
7846
7847 2005-08-31 Uros Bizjak <uros@kss-loka.si>
7848
7849         PR target/23570
7850         * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
7851         to "reg_or_0_operand".
7852         (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
7853
7854 2005-08-31  Dale Johannesen  <dalej@apple.com>
7855
7856         * loop-iv.c (iv_number_of_iterations):  Fix overflow check for
7857         loops that count down.
7858
7859 2005-08-31  Richard Henderson  <rth@redhat.com>
7860
7861         PR rtl-opt/23601
7862         * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
7863         (fixup_eh_region_note): New.
7864         (reload_as_needed): Call it.
7865         (fixup_abnormal_edges): Allow all throwing insns to be deleted;
7866         don't call find_many_sub_basic_blocks; call verify_flow_info.
7867         * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
7868         (keep_stack_depressed): Likewise.
7869         (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
7870
7871 2005-08-31  Richard Henderson  <rth@redhat.com>
7872
7873         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
7874         fp return matching.
7875
7876 2005-08-31  Fariborz Jahanian <fjahanian@apple.com>
7877
7878         * expr.c (expand_expr_real_1): Compare size of address
7879         mode to target's address mode size in deciding expansion of
7880         the constant address.
7881
7882 2005-08-31  Richard Guenther  <rguenther@suse.de>
7883
7884         PR middle-end/23477
7885         * expr.c (all_zeros_p): New function.
7886         (expand_expr_real_1): Handle the case of an all-zero
7887         non-addressable constructor separately.
7888
7889 2005-08-31  Adrian Straetling  <straetling@de.ibm.com>
7890
7891         * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
7892         arguments, adjust all callers.
7893         (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
7894
7895 2005-08-30  Richard Henderson  <rth@redhat.com>
7896
7897         PR target/23630
7898         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
7899         whenever the mode sizes match.
7900
7901 2005-08-31  Alan Modra  <amodra@bigpond.net.au>
7902
7903         * calls.c (load_register_parameters): Fix comment typo.
7904         * expr.c (emit_push_insn): Comment formatting.
7905
7906 2005-08-30  Ian Lance Taylor  <ian@airs.com>
7907
7908         * config/i386/x-cygwin (host-cygwin): Change dependency from
7909         hosthooks-def.h to $(HOSTHOOKS_DEF_H).
7910
7911 2005-08-29  Geoffrey Keating  <geoffk@apple.com>
7912
7913         * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
7914         parts of 'vals'.
7915
7916 2005-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
7917
7918         PR middle-end/23408
7919         * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
7920         call to ggc_collect.
7921
7922 2005-08-29  Paolo Bonzini  <bonzini@gnu.org>
7923
7924         PR bootstrap/21268
7925         * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
7926         beginning.  Remove $(INCLUDES) from all the rules, if following
7927         $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
7928
7929 2005-08-29  Jakub Jelinek  <jakub@redhat.com>
7930
7931         PR middle-end/23484
7932         * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
7933         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
7934         not constant, but maxlen is, don't set len to maxlen, rather
7935         set maxlen to len if len is a constant.
7936
7937 2005-08-29  Zdenek Dvorak  <dvorakz@suse.cz>
7938
7939         PR tree-optimization/23475
7940         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
7941         and counts.
7942
7943 2005-08-28  Daniel Berlin  <dberlin@dberlin.org>
7944
7945         Fix PR middle-end/22455
7946
7947         * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
7948         Checksum only the parts of the tree that exist for the tree code.
7949
7950 2005-08-28  Dale Johannesen  <dalej@apple.com>
7951
7952         * config/i386/i386.c (nocona_cost):  Increase MOVE_RATIO.
7953
7954 2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>
7955
7956         * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
7957
7958 2005-08-28  Richard Henderson  <rth@redhat.com>
7959
7960         * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
7961         * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
7962         of char_type_node.
7963
7964 2005-08-28  Jakub Jelinek  <jakub@redhat.com>
7965
7966         PR ada/23593
7967         * builtins.c (get_memory_rtx): Don't strip nops
7968         in between COMPONENT_REFs.
7969
7970 2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>
7971
7972         PR middle-end/23463
7973         * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
7974         types.
7975         (gimplify_modify_expr): Check for zero sized types and gimplify the
7976         rhs and lhs as statements.
7977
7978 2005-08-27  John David Anglin  <dave.anflin@nrc-cnrc.gc.ca>
7979
7980         PR libgcj/23508
7981         * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
7982         state for return address column of signal frames.
7983
7984 2005-08-27  David Edelsohn  <edelsohn@gnu.org>
7985
7986         PR target/23539
7987         * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
7988         bytes >= 2 not bytes == 2.
7989         (expand_block_move): Same.
7990
7991 2005-08-27  Richard Guenther  <rguenther@suse.de>
7992
7993         PR target/23575
7994         * config/i386/sse.md (sse2_movsd): Add missing closing
7995         braces.
7996
7997 2005-08-27  Paul Brook  <paul@codesourcery.com>
7998
7999         * genrecog.c (enum decision_type): Add DT_num_insns.
8000         (struct decision_test): Add u.num_insns.
8001         (add_to_sequence): Add DT_num_insns test.
8002         (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
8003         (write_cond, debug_decision_2): Ditto.
8004         (change_state): Assume peep2_next_insn never fails.
8005         Remove "afterward" argument.
8006         (write afterward, write_tree): Update to match.
8007         * recog.c (peep2_current_count): New variable.
8008         (peep2_next_insn): Check it.
8009         (peephole2_optimize): Set peep2_current_count.
8010         * recog.h (peep2_current_count): Declare.
8011
8012 2005-08-26  Josh Conner  <jconner@apple.com>
8013
8014         PR middle-end/23584
8015         * ipa-pure-const.c (check_tree): Check for volatile-ness
8016         when considering a dereference.
8017
8018 2005-08-27  Jakub Jelinek  <jakub@redhat.com>
8019
8020         * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
8021
8022 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
8023
8024         PR rtl-optimization/23561
8025         * builtins.c (get_memory_rtx): Add LEN argument.  If MEM_EXPR is
8026         a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
8027         at most LEN bytes long memory fits into the field.
8028         (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
8029         expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
8030         expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
8031
8032 2005-08-26  Richard Henderson  <rth@redhat.com>
8033
8034         PR rtl-opt/23560
8035         * loop.c (biased_biv_may_wrap_p): New.
8036         (maybe_eliminate_biv_1): Use it to suppress non-equality
8037         comparison transformations.  Delete disabled code.
8038
8039 2005-08-26  Ian Lance Taylor  <ian@airs.com>
8040
8041         * combine.c (make_extraction): Avoid reference outside object.
8042
8043 2005-08-26  J"orn Rennecke <joern.rennecke@st.com>
8044
8045         * stor-layout.c (finalize_type_size): Restore behaviour for
8046         non-aggregate types to the status quo ante of the patch for
8047         pr 23467.  Document why it matters.
8048
8049 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
8050
8051         PR c/23506
8052         * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
8053         array by one element, initialize the BT_LAST element with NULL.
8054
8055 2005-08-26  David Edelsohn  <edelsohn@gnu.org>
8056
8057         * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
8058         optimizing for size.
8059         (plus_eqsi): Same.
8060         (compare_plus_eqsi): Same.
8061         (plus_eqsi_compare): Same.
8062         (neg_eq0<mode>): Same.
8063         (neg_eq<mode>): Same.
8064
8065         * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
8066         PROCESSOR_POWER4.
8067
8068 2005-08-26  Nick Clifton  <nickc@redhat.com>
8069
8070         * config/v850/v850.c (ep_memory_operand): Return FALSE if
8071         TARGET_EP is not defined.
8072         * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
8073         TARGET_EP is enabled.
8074         (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
8075         * config/v850/v850.md (save_all_interrupt): Only use the EP
8076         register if TARGET_EP is defined.
8077         (restore_all_interrupt): Likewise.
8078         * config/v850/lib1funcs.asm: Update functions so that the EP
8079         register is only used if __EP__ is defined.
8080
8081 2005-08-26  David Ung  <davidu@mips.com>
8082
8083         * config/mips/mips.c (mips_expand_prologue): Handle case when
8084         generating for MIPS16 and the outgoing argument area is more than
8085         SMALL_OPERAND. Use the frame pointer as temporary to generate the
8086         add instruction.
8087
8088 2005-08-26  Paul Woegerer  <paul.woegerer@nsc.com>
8089
8090         * config/crx/crx.md: Make doloop_end pattern usage controllable
8091         via mloop-nesting=<max-nesting> command line switch. Make sure
8092         the combiner cannot use doloop_end_<mode> in an illegal way.
8093         * config/crx/crx.c: Use regs up to r6 for argument passing.
8094         Refine crx_address_cost (non cst4 displacements are expensive).
8095         * config/crx/crx.opt: Add switch for mloop-nesting=.
8096
8097 2005-08-26  Adrian Straetling  <straetling@de.ibm.com>
8098
8099         * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
8100         (UNSPEC_MVST): New constant.
8101
8102 2005-08-26  Andreas Krebbel  <krebbel1@de.ibm.com>
8103
8104         * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
8105         Reject operands containing eliminable registers.
8106         * testsuite/gcc.dg/20050825-1.c: New testcase.
8107
8108 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
8109             Jan Hubicka  <jh@suse.cz>
8110
8111         * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
8112
8113 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
8114
8115         PR tree-optimization/23546
8116         * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
8117         and REAL_CST nodes.
8118
8119 2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>
8120
8121         * params.def (PARAM_MIN_SPEC_PROB): New.
8122         * sched-rgn.c (MIN_PROBABILITY): Delete.
8123         (compute_trg_info): Convert to PARAM_VALUE.
8124         * doc/invoke.texi (param): Document min-spec-prob.
8125
8126 2005-08-24  Fariborz Jahanian <fjahanian@apple.com>
8127
8128         * config/darwin.h: define __PIC__
8129         * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
8130         TARGET_OS_CPP_BUILTINS macro.
8131
8132 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
8133
8134         * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
8135         yesterday.
8136
8137 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
8138
8139         * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
8140         to duplicate_block.
8141         * cfghooks.c (duplicate_block): Added position where to place
8142         new block as argument.
8143         * cfghooks.h (duplicate_block): Declaration changed.
8144         * cfglayout.c (copy_bbs): Add argument after.  Pass it to
8145         duplicate_block.
8146         * cfglayout.h (copy_bbs): Declaration changed.
8147         * cfgloop.h (loop_version): Declaration changed.
8148         * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
8149         position to copy_bbs.
8150         (loop_version): Pass position to duplicate_loop_to_header_edge.
8151         Add place_after argument and position new blocks according to
8152         it.
8153         * modulo-sched.c (sms_schedule): Pass place_after argument
8154         to loop_version.
8155         * tracer.c (tail_duplicate): Pass argument to duplicate_block.
8156         * tree-cfg.c (split_edge_bb_loc): New function.
8157         (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
8158         to determine position of new blocks.
8159         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
8160         to loop_version.
8161         * tree-ssa-threadupdate.c (create_block_for_threading): Pass
8162         argument to duplicate_block.
8163         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
8164         Pass position to copy_bbs.
8165
8166 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
8167
8168         * fold-const.c (ptr_difference_const): Use
8169         cst_and_fits_in_hwi instead of host_integerp.
8170
8171 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
8172
8173         * config/darwin.c (gen_pic_offset): New.
8174         (machopic_indirect_data_reference,  machopic_legitimize_pic_address):
8175         Use it.
8176
8177 2005-08-23  Zdenek Dvorak  <dvorakz@suse.cz>
8178
8179         PR tree-optimization/23486
8180         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
8181
8182 2005-08-23  Phil Edwards  <phil@codesourcery.com>
8183
8184         * config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
8185         remove use_collect2.
8186         (powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.
8187
8188         * target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
8189         configuration files to override the default value.
8190
8191         * config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
8192         EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
8193         * config/vx-common.h:  New file, split out from...
8194         * config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
8195         * config/vxworksae.h:  New file, for VxWorks AE.
8196         * config/vxworks.opt:  New file.
8197         * config/vxlib.c:  Update for VxWorks 6.
8198
8199         * config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
8200         other MULTILIB_* variables appropriately.
8201         (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
8202         * config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
8203         * config/rs6000/vxworks.h:  Update for VxWorks 6.
8204         * config/rs6000/vxworksae.h:  New file, mostly placeholder for now.
8205
8206 2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>
8207
8208         PR target/20799
8209         * config/darwin.c (machopic_select_section): Remove the hack to
8210         mark "::operator new" and "::operator delete" for coalescing
8211         even though they are not weak.
8212
8213 2005-08-24  Alan Modra  <amodra@bigpond.net.au>
8214
8215         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
8216         * configure: Regenerate.
8217
8218 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
8219
8220         PR middle-end/23517
8221         * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
8222         between vectors.
8223         * convert.c (convert_to_integer, convert_to_vector): Likewise.
8224         * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
8225         Likewise.
8226
8227 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
8228
8229         * config/rs6000/predicates.md (equality_operator): New.
8230         * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
8231         comparison with a large constant.
8232
8233 2005-08-23  Mark Mitchell  <mark@codesourcery.com>
8234
8235         * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
8236
8237 2005-08-23  J"orn Rennecke <joern.rennecke@st.com>
8238
8239         * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
8240         registers is even, and we have a hardware double precision fp,
8241         align the buffer.
8242         (sh_gimplify_va_arg_expr): For floating point arguments, consider
8243         size of current argument when checking if argument was passed in
8244         registers.
8245
8246         * sh.c (sh_attr_renesas_p): Handle error_mark_node.
8247
8248         PR middle-end/23467
8249         * stor-layout.c (finalize_type_size): Dont override
8250         existing alignment with a smaller alignment from the mode.
8251
8252 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
8253
8254         * lambda-code.c (lambda_vector_lexico_pos): Moved...
8255         * lambda.h (lambda_vector_lexico_pos): ... here.
8256         * tree-data-ref.c (build_classic_dist_vector): Return false when
8257         the distance vector is lexicographically negative.
8258
8259 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
8260
8261         PR tree-optimization/23511
8262         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
8263         handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
8264
8265 2005-08-23  Jakub Jelinek  <jakub@redhat.com>
8266
8267         PR tree-optimization/22043
8268         * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
8269         * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
8270         If ALLOW_FLEXARR, handle types ending with flexible array member.
8271         Pass false as second argument to recursive count_type_elements calls.
8272         (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
8273         argument to count_type_elements call.
8274         * tree-sra.c (decide_block_copy): Likewise.
8275         * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
8276         for a constant-sized object, set cleared as well.  Pass true as
8277         second argument to count_type_elements call.
8278
8279 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
8280
8281         PR target/21571
8282         * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
8283         from legitimate_small_data_p, and make global.  Update use.
8284         Remove forward declaration.
8285         * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
8286         Declare.
8287         * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
8288
8289 2005-08-23  David Edelsohn  <edelsohn@gnu.org>
8290
8291         * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
8292         of scratch intermediates.
8293         (eq<mode>_compare): Same.
8294         (neg_eq0<mode>): New.
8295         (neg_eq<mode>): Convert to define_insn_and_split.
8296
8297 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
8298
8299         PR target/23070
8300         * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
8301         stdarg functions, set/clear the fp marker even when no variable
8302         args are passed.
8303         * config/rs6000/sysv4.opt (mprototype): Describe.
8304
8305 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
8306
8307         PR rtl-optimization/23478
8308         * regs.h (reg_info): Add throw_calls_crossed.
8309         (REG_N_THROWING_CALLS_CROSSED): Define.
8310         * flow.c (allocate_reg_life_data): Initialize
8311         REG_N_THROWING_CALLS_CROSSED.
8312         (propagate_one_insn, attempt_auto_inc): Update
8313         REG_N_THROWING_CALLS_CROSSED.
8314         * global.c (global_alloc): Don't allocate pseudos across
8315         calls that may throw.
8316
8317 2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
8318
8319         PR c/18715
8320         * c-common.c (c_do_switch_warnings): Look for a node where the enum's
8321         value is inbetween the range if we did not find an exact match.
8322
8323 2005-08-22  Aldy Hernandez  <aldyh@redhat.com>
8324
8325         * doc/invoke.texi (Option Summary): Add ms1 options.
8326         * doc/extend.texi: Document interrupt handler attribute for ms1.
8327         * doc/md.texi: Document ms1 constraints.
8328         * config.gcc: Add ms1-*-elf.
8329         * config/ms1/ms1.h: New.
8330         * config/ms1/ms1.c: New.
8331         * config/ms1/ms1.md: New.
8332         * config/ms1/ms1-protos.h: New.
8333         * config/ms1/ABI.txt: New.
8334         * config/ms1/crti.asm: New.
8335         * config/ms1/crtn.asm: New.
8336         * config/ms1/lib2extra-funcs.c: New.
8337         * config/ms1/t-ms1: New.
8338         * config/ms1/ms1.opt: New.
8339
8340 2005-08-22 Ira Rosen <irar@il.ibm.com>
8341
8342         * config/rs6000/altivec.md (xorv4sf3): New.
8343         (negv4sf2, neg<mode>2): Likewise.
8344
8345 2005-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8346
8347         PR target/23485
8348         * config/ia64/ia64.md (divsi3): Check divide by zero.
8349         (udivsi3): Likewise.
8350         (divdi3): Likewise.
8351         (udivdi3): Likewise.
8352
8353 2005-08-21  Jakub Jelinek  <jakub@redhat.com>
8354
8355         * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
8356         up to elem_bitsize bits, not max_bitsize.
8357
8358 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
8359
8360         PR tree-optimization/23433
8361         * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
8362         REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
8363
8364 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
8365
8366         PR tree-optimization/23434
8367         * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
8368         the iteration bound is not an INTEGER_CST.
8369
8370 2005-08-21  Dorit Nuzman  <dorit@il.ibm.com>
8371
8372         * tree-vect-transform.c (get_initial_def_for_reduction): Set
8373         need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
8374         NULL if need_epilog_adjust is false.
8375         (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
8376         Case 3 always peels first itration, not just for PLUS case, and no need
8377         to use scalar_initial_def here. Create an epilog adjustment only if
8378         scalar_initial_def is not NULL.
8379
8380         (vectorizable_reduction): Remove assert.
8381
8382 2005-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8383
8384         PR target/23485
8385         * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
8386         (__moddi3): Likewise.
8387         (__udivdi3): Likewise.
8388         (__umoddi3): Likewise.
8389         (__divsi3): Likewise.
8390         (__modsi3): Likewise.
8391         (__udivsi3): Likewise.
8392         (__umodsi3): Likewise.
8393
8394 2005-08-20  Jakub Jelinek  <jakub@redhat.com>
8395
8396         * tree-pass.h (TDF_GRAPH): Define.
8397         * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
8398         * passes.c (finish_optimization_passes): Only call
8399         finish_graph_dump_file if TDF_GRAPH is set.
8400         (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
8401         NULL.  Set TDF_GRAPH bit.
8402         (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
8403
8404 2005-08-20  Richard Earnshaw  <richard.earnshaw@arm.com>
8405
8406         * arm.h (arm_stack_offsets): Add locals_base field.
8407         * arm.c (arm_get_frame_offsets): Compute it.
8408         (thumb_compute_initial_elimination offset): Make the Thumb frame
8409         pointer point to the base of the local variables.
8410         (thumb_expand_prologue): Update accordingly.
8411         (thumb_expand_epilogue): Likewise.
8412
8413         * arm.md (thumb_movhi_clobber): Make this insn a define_expand.  Change
8414         mode of clobbered scratch to DImode.  Handle a case that's known to
8415         need this.
8416
8417 2005-08-19  David Edelsohn  <edelsohn@gnu.org>
8418
8419         * config/rs6000/rs6000.md (gt0<mode>): Delete.
8420         (gt0<mode>_compare): Delete.
8421         (neg_gt0<mode>): Delete.
8422
8423 2005-08-19  Eric Christopher  <echristo@apple.com>
8424
8425         * optabs.h: Change CTI_ to COI_.
8426         * optabs.c: Ditto.
8427
8428 2005-08-19  James E Wilson  <wilson@specifix.com>
8429
8430         * builtins.c (expand_builtin_return_addr): Set
8431         current_function_accesses_prior_frames when count != 0.  Use
8432         frame_pointer_rtx when count == 0.
8433         * function.h (struct function): Add accesses_prior_frames field.
8434         (current_function_accesses_prior_frames): Define.
8435         * reload1.c (init_elim_table): Check
8436         current_function_accesses_prior_frames.
8437         * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
8438
8439 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
8440
8441         * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
8442         indicator.  Return true if the flowgraph changed during
8443         cleanup.
8444
8445 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
8446
8447         PR 23476
8448         * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
8449         conditional expression before testing its value.
8450
8451 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
8452
8453         * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
8454
8455 2005-08-19  Devang Patel  <dpatel@apple.com>
8456
8457         PR tree-optimization/23048
8458         * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
8459         third parameter. Check whether latch is dominated by exit
8460         block or not.
8461         (if_convertible_loop_p): Supply exit block itself to
8462         if_convertible_bb_p.
8463
8464 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
8465
8466         PR target/23473
8467         * arm.md (arm_load_pic_register): Change argument to the mask of
8468         saved registers.  Call thumb_find_work_register if we need a
8469         scratch register on Thumb.
8470         (arm_expand_prologue): Pass empty register set to
8471         arm_load_pic_register.
8472         (thumb_expand_prologue): Pass live_regs_mask directly to
8473         arm_load_pic_register.
8474         * arm-protos.h (arm_load_pic_register): Update prototype.
8475
8476 2005-08-19  J"orn Rennecke <joern.rennecke@st.com>
8477
8478         * sh.c (find_sole_member): New function.
8479         (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
8480         if the record's alignment is larger than the size of its only member.
8481
8482 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
8483
8484         PR target/23436
8485         * arm.c (thumb_legitimize_reload_address): New function.
8486         * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
8487         * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
8488
8489 2005-08-19  Paul Woegerer  <paul.woegerer@nsc.com>
8490
8491         * config/crx/crx.c: Implement crx_decompose_address. Reject
8492         symbolic displacements since CRX register relative adressing
8493         mode can't handle unsigned 32-bit values as displacements.
8494         * config/crx/crx.h: Simplify definitions, remove redundant
8495         parenthesis and obsolete macros.
8496         * config/crx/crx.opt: Add new switch for debugging addresses.
8497         * config/crx/crx-protos.h: Add new declarations for above.
8498
8499 2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
8500
8501         PR middle-end/20624
8502         * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
8503         looking past it.
8504
8505 2005-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8506
8507         * collect2.c (dup2): Delete.
8508         * configure.ac: Don't check for dup2.
8509
8510         * config.in, configure: Regenerate.
8511
8512 2005-08-18  J"orn Rennecke <joern.rennecke@st.com>
8513
8514         * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
8515         record with the type of its only member.
8516
8517 2005-08-18  David Edelsohn  <edelsohn@gnu.org>
8518
8519         * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
8520         define_insn_and_split.
8521         (plus_ltu<mode>_compare): Same.
8522         (gtu<mode>_compare): Same.
8523         (plus_gtu<mode>_compare): Same.
8524
8525 2005-08-18  Dorit Nuzman  <dorit@il.ibm.com>
8526
8527         PR tree-optimization/22228
8528         * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
8529         todo_flags_start.
8530         * tree-vect-transform.c (vect_transform_loop): Mark the variables that
8531         are recorded in vect_vnames_to_rename for renaming.
8532         * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
8533         (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
8534         in vect_vnames_to_rename.
8535         (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
8536         * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
8537
8538 2005-08-18  Jan Hubicka  <jh@suse.cz>
8539
8540         PR c++/22034
8541         * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
8542         info only for local statics, not for member variables.
8543
8544 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8545
8546         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
8547
8548 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8549
8550         * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
8551
8552 2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>
8553
8554         PR middle-end/16045
8555         * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
8556
8557 2005-08-17  James E Wilson  <wilson@specifix.com>
8558
8559         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
8560         array size check.
8561
8562 2005-08-17  David Edelsohn  <edelsohn@gnu.org>
8563
8564         * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
8565         (leu<mode>_compare): Same.
8566         (plus_leu<mode>): Same.
8567         (neg_leu<mode>): Same.
8568         (and_neg_leu<mode): Same.
8569         (ltu<mode>_compare): Same.
8570         (plus_ltu<mode>): Same.
8571         (geu<mode>): Same.
8572         (geu<mode>_compare): Same.
8573         (plus_geu<mode>): Same.
8574         (neg_geu<mode>): Same.
8575         (and_neg_geu<mode>): Same.
8576         (plus_gt<mode>): Same.
8577         (gtu<mode>_compare): Same.
8578         (plus_gtu<mode>): Same.
8579
8580 2005-08-17  Erik Christiansen  <erik@dd.nec.com.au>
8581
8582         * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
8583         Move call_table_data to end.  Delete spurious .text.
8584         (callt_save_all_interrupt): Fix comment typo.
8585
8586 2005-08-17  James E Wilson  <wilson@specifix.com>
8587             Kevin Winchester  <winchester@amirix.com>
8588
8589         PR target/21684
8590         * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
8591
8592 2005-08-17  Uros Bizjak  <uros@kss-loka.si>
8593
8594         PR target/23268
8595         * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
8596         ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
8597
8598 2005-08-17  J"orn Rennecke <joern.rennecke@st.com>
8599
8600         * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
8601         record with the type of its only member if the modes don't match.
8602
8603         * varasm.c (decode_reg_name): Skip empty additional register names.
8604
8605 2005-08-16  Zdenek Dvorak  <dvorakz@suse.cz>
8606
8607         * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
8608         lsm_tmp_name_length): New.
8609         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
8610         (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
8611
8612 2005-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8613             Andreas Krebbel  <krebbel1@de.ibm.com>
8614
8615         * config.gcc: Added z9-109 switch.
8616         * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
8617         "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
8618         "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
8619         "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
8620         "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
8621         for "z9_109" cpu attribute.
8622         * config/s390/s390.c (z9_109_cost): New processor cost structure.
8623         (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
8624         (s390_handle_arch_option): Added z9-109 switch.
8625         (override_options): Set respective cost function for z9-109.
8626         (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
8627         (legitimate_reload_constant_p): Accept extended immediates.
8628         (print_operand): Three new output modifiers added: k, m and o.
8629         (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
8630         (s390_output_mi_thunk): Use extended immediate when possible.
8631         * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
8632         (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
8633         (CONSTRAINT_LEN): Added length of O constraint.
8634         (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
8635         * config/s390/s390.md ("cpu"): New value z9_109 added.
8636         ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
8637         "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
8638         "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
8639         "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
8640         "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
8641         ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
8642         "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
8643         "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
8644         ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
8645         "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
8646         "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
8647         "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
8648         "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
8649         "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
8650         "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
8651         immediates.
8652         ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
8653         "zero_extend<mode>si2"): Allow memory operands and don't manually emit
8654         insns for TARGET_EXTIMM.
8655
8656 2005-08-17  Andreas Krebbel  <krebbel1@de.ibm.com>
8657
8658         * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
8659
8660 2005-08-17  Nick Clifton  <nickc@redhat.com>
8661
8662         * config/stormy16/stormy16.c (xstormy16_encode_section_info):
8663         Call default_encode_section_info.
8664
8665 2005-08-17  Steven Bosscher  <stevenb@suse.de>
8666
8667         PR tree-optimization/21574
8668         * tree-ssa-ccp.c (likely_value): If the right hand side is a
8669         constant, return CONSTANT.
8670         (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
8671         (ccp_fold, visit_assignment): Likewise.
8672         (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
8673
8674 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
8675
8676         * c-typeck.c (build_function_call): Call fold_buildN_initializer or
8677         fold_buildN instead of buildN then fold_initializer or fold.
8678         (build_unary_op): Likewise.
8679         (build_binary_op): Likewise.
8680         * fold-const.c (fold_initializer): Remove.
8681         (fold_build1_initializer): New function.
8682         (fold_build2_initializer): New function.
8683         (fold_build3_initializer): New function.
8684         * tree.h (fold_initializer): Remove.
8685         (fold_build1_initializer): New function.
8686         (fold_build2_initializer): New function.
8687         (fold_build3_initializer): New function.
8688
8689 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
8690
8691         * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
8692         (try_move_mult_to_index): Call fold_build2 instead of build2.
8693         (fold_binary): Don't call fold after calls to try_move_mult_to_index.
8694         * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
8695         fold_binary_to_constant.
8696         (infer_loop_bounds_from_undefined): Call fold_build2 instead of
8697         fold (build.
8698         * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
8699         check if A == gcd (A, B).  Remove TYPE argument.
8700         (analyze_offset) Use fold_build2 instead of fold (build.
8701         (create_data_ref): Likewise.
8702         (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
8703         * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
8704         then fold.
8705
8706 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
8707
8708         * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
8709         ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
8710
8711 2005-08-16  Andrew Pinski  <pinskia@physics.uc.edu>
8712
8713         PR tree-opt/23402
8714         * gimplify.c (zero_sized_type): New function.
8715         (gimplify_modify_expr_rhs): If we have a zero sized type,
8716         replace the statement with an empty statement.
8717
8718 2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>
8719
8720         * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
8721         fxsave.
8722
8723 2005-08-16  Ian Lance Taylor  <ian@airs.com>
8724
8725         * doc/tm.texi (Label Output): Correct typo.
8726
8727 2005-08-16  Steven Bosscher  <stevenb@suse.de>
8728
8729         PR target/23376
8730         * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
8731         force_operand will work later on using have_insn_for.
8732
8733 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8734
8735         * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
8736
8737 2005-08-16  Ian Lance Taylor  <ian@airs.com>
8738
8739         PR c++/23337
8740         * gimplify.c (gimplify_init_ctor_eval): If we see an element of
8741         vector type, don't try to construct it element by element.  Add an
8742         assertion that we use a FIELD_DECL when building a COMPONENT_REF.
8743
8744 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8745
8746         * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
8747
8748 2005-08-16  Geoffrey Keating  <geoffk@apple.com>
8749
8750         * doc/invoke.texi (Precompiled Headers): Document some more options
8751         which are known to be safe.
8752
8753 2005-08-16  James E Wilson  <wilson@specifix.com>
8754
8755         PR tree-optimization/21105
8756         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
8757         TREE_OVERFLOW check.
8758
8759 2005-08-16  David Edelsohn  <edelsohn@gnu.org>
8760
8761         * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
8762         (neg_ltu<mode>): Same.
8763         (gtu<mode>): Same.
8764         (neg_gtu<mode>): Same.
8765
8766 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8767
8768         * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
8769         (fold_builtin_isdigit): Use fold_buildN.
8770         (build_function_call_expr): Likewise.
8771         * c-typeck.c (c_finish_loop): Likewise.
8772
8773 2005-08-16  J"orn Rennecke <joern.rennecke@st.com>
8774             Richard Shann <rshann@superh.com>
8775
8776         PR middle-end/20396:
8777         * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
8778
8779 2005-08-16  Sebastian Pop  <pop@cri.ensmp.fr>
8780
8781         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
8782
8783 2005-08-15  Richard Earnshaw  <richard.earnshaw@arm.com>
8784
8785         PR target/23355
8786         * arm.c (thumb_compute_save_reg_mask): Use similar logic to
8787         arm_compure_save_reg0_reg12_mask to determine when the PIC register
8788         must be saved.
8789
8790 2005-08-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8791
8792         PR middle-end/23369
8793         * fold-const.c (build_range_check): Disable optimization for function
8794         pointer expressions on targets that require function pointer
8795         canonicalization.
8796
8797 2005-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
8798
8799         * simplify-rtx.c (simplify_const_relational_operation): When
8800         extracting arguments of a COMPARE, recompute the mode as well.
8801
8802 2005-08-15  Ian Lance Taylor  <ian@airs.com>
8803
8804         * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
8805
8806 2005-08-15  DJ Delorie  <dj@redhat.com>
8807
8808         * config/m32c/mov.md (movqi_op): Immediates can't be moved to
8809         the stack.
8810         (movsi_splittable): Allow, but split, moves to the stack.
8811         * config/m32c/m32c.c (m32c_split_move): Always split moves to the
8812         stack.
8813
8814 2005-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8815
8816         * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
8817         * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
8818         * system.h (HOST_PTR_PRINTF): Don't define, poison it.
8819
8820         * bitmap.c, c-decl.c, config/i386/i386-interix.h,
8821         config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
8822         Delete HOST_PTR_PRINTF.
8823
8824         * configure, config.in: Regenerate.
8825
8826 2005-08-15  David Edelsohn  <edelsohn@gnu.org>
8827
8828         * config/rs6000/rs6000.md (QHSI): New mode macro.
8829         (wd): Extend mode attr for QImode and HImode
8830         (dbits): New mode attr.
8831         (zero_extend<mode>di2): Convert to mode macro.
8832
8833 2005-08-15  Steve Ellcey  <sje@cup.hp.com>
8834
8835         PR target/21841
8836         * doc/invoke.texi (-mgnu-ld): Update description.
8837         (-mhp-ld): Ditto.
8838
8839 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
8840
8841         PR 23391
8842         * Makefile.in (tree-chrec.o): Depends on real.h.
8843         * tree-chrec.c: Include real.h.
8844         (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
8845         chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
8846         * tree-scalar-evolution.c (add_to_evolution_1,
8847         interpret_rhs_modify_expr): Ditto.
8848
8849 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
8850
8851         PR 23386
8852         * tree-data-ref.c (estimate_niter_from_size_of_data): When
8853         step is negative compute the estimation from init downwards to zero.
8854
8855 2005-08-14  James A. Morrison  <phython@gcc.gnu.org>
8856
8857         * fold-const (fold_binary): Call fold_build2 instead of fold (build.
8858
8859 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
8860
8861         * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
8862         constraint.
8863         (legitimate_reload_constant_p): Fix handling of lliXX operands.
8864         Accept double-word constants that can be split.
8865         * config/s390/s390.md ("movti"): Use 'P' constraint.
8866         ("*movdi_31", "*movdf_31"): Likewise.
8867
8868 2005-08-14  Daniel Berlin  <dberlin@dberlin.org>
8869
8870         Fix PR tree-optimization/22615
8871
8872         * tree-ssa-structalias.c (solution_set_add): Handle
8873         first_vi_for_offset returning NULL.
8874         (do_da_constraint): Ditto.
8875         (do_sd_constraint): Ditto.
8876         (do_ds_constraint): Ditto
8877         (find_func_aliases): Ditto.
8878         (build_constraint_graph): RHS is allowed be ANYTHING.
8879         (first_vi_for_offset): Return NULL if we couldn't find anything at
8880         the offset.
8881
8882 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
8883
8884         * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
8885         over memory as first operand.
8886
8887 2005-08-14  H.J. Lu  <hongjiu.lu@intel.com>
8888
8889         PR target/23360
8890         * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
8891         available for setting it.
8892
8893 2005-08-14  Ira Rosen  <irar@il.ibm.com>
8894
8895         PR tree-optimization/23320
8896         * tree-data-ref.c (base_addr_differ_p): Add comment. Check
8897         data-refs' types instead of base object nullness. Add check for
8898         pointer type data-refs before first location comparison. Remove
8899         assert.
8900
8901 2005-08-14  Andreas Schwab  <schwab@suse.de>
8902
8903         * doc/md.texi (Machine Constraints): Fix misplaced @end table.
8904
8905 2005-08-13  James E Wilson  <wilson@specifix.com>
8906
8907         * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
8908         * doc/invoke.texi (-Wstack-protector, -fstack-protector,
8909         -fstack-protector-all, --param ssp-buffer-size): Document.
8910         (-Wvariadic-macros): Alphabetize.
8911         (-fsched-stalled-insns-dep): Add missing 'f'.
8912
8913         * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
8914         macros.
8915
8916 2005-08-13  David Edelsohn  <edelsohn@gnu.org>
8917
8918         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
8919         or indirect address operand.
8920         (EXTRA_ADDRESS_CONSTRAINT): New.
8921         * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
8922
8923 2005-08-13  Sebastian Pop  <pop@cri.ensmp.fr>
8924
8925         PR tree-optimization/22236
8926         * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
8927         successors and predecessors.
8928         * tree-chrec.c (chrec_convert): Before converting, check that
8929         sequences don't wrap.
8930         * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
8931         (analyze_array): Extern.
8932         (find_data_references_in_loop): Remove call to
8933         compute_estimated_nb_iterations.
8934         * tree-data-ref.h (analyze_array): Declared.
8935         * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
8936         single_ssa_def_operand, zero_ssa_operands): Fix documentation.
8937         * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
8938         * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
8939         condition.
8940         * tree-ssa-loop-ivcanon.c: Fix documentation.
8941         * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
8942         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
8943         (infer_loop_bounds_from_undefined): New.
8944         (estimate_numbers_of_iterations_loop): Use
8945         infer_loop_bounds_from_undefined.
8946         (used_in_pointer_arithmetic_p): New.
8947         (scev_probably_wraps_p): Pass an extra parameter.  Call
8948         used_in_pointer_arithmetic_p.  Check that AT_STMT is not null.
8949         (convert_step): Fix documentation.
8950         * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
8951         Use initial_condition_in_loop_num and evolution_part_in_loop_num
8952         instead of CHREC_LEFT and CHREC_RIGHT.  Adjust the call to
8953         scev_probably_wraps_p.
8954
8955 2005-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
8956
8957         * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
8958         (s390_register_info): Ignore clobbered_regs information for fixed
8959         registers, and only fixed registers.
8960         (s390_init_frame_layout): Remove redundant call.
8961
8962 2005-08-12  Gerald Pfeifer  <gerald@pfeifer.com>
8963
8964         * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
8965         description of -Wold-style-casts.
8966
8967 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
8968             Jakub Jelinek  <jakub@redhat.com>
8969
8970         * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
8971         * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
8972         * config/s390/s390.c (print_operand): New output modifier 'G' added.
8973         (get_thread_pointer): Renamed to s390_get_thread_pointer.
8974         * config/s390/s390.md (stack_protect_set, stack_protect_test): If
8975         TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
8976         (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
8977         (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
8978         ("stack_protect_set", "stack_protect_test"): New expanders.
8979         ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
8980         "stack_protect_testdi"): New insn definitions.
8981
8982 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
8983
8984         * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
8985
8986 2005-08-12  Paul Brook  <paul@codesourcery.com>
8987
8988         * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
8989
8990 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
8991
8992         * config/s390/predicates.md (setmem_operand): New predicate.
8993         (shift_count_operand): Accept ANDs with special constants as
8994         operand.
8995         * config/s390/s390.c (print_shift_count_operand): Skip ANDs
8996         with special constants.
8997         * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
8998         shift_count_operand with setmem_operand.
8999
9000 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
9001
9002         * config/s390/s390.c (s390_extract_part, s390_single_part):
9003         Type cast added.
9004         (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
9005         (s390_output_mi_thunk): Don't use lg on 31 bit.
9006         * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
9007         ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
9008
9009 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
9010
9011         * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
9012         (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
9013         s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
9014         s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
9015         with one of the new macros.
9016
9017 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
9018
9019         * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
9020         Don't set save_return_addr_p.
9021         (s390_register_info): Make clobbered_regs not depending on
9022         save_return_addr_p.
9023
9024 2005-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
9025
9026         * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
9027         (LINK_COMMAND_SPEC): Add space after %(link_ssp).
9028
9029 2005-08-11  James E. Wilson  <wilson@specifix.com>
9030
9031         * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
9032
9033 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
9034
9035         * dwarf2out.c (add_location_or_const_value_attribute): Prefer
9036         locations gathered by var-tracking in single entry loc_list
9037         over loc_descriptor_from_tree.
9038
9039         * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
9040         pass it down to loc_descriptor.
9041         (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
9042         (containing_function_has_frame_base): Move earlier in the file.
9043         (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
9044         instead of always assuming fbreg can't be used.
9045
9046 2005-08-11  David Edelsohn  <edelsohn@gnu.org>
9047
9048         * config/rs6000/altivec.md: Change constraint "m" to "Z".
9049         * config/rs6000/predicates.md (indexed_or_indirect_operand):
9050         Accept address wrapped in AND for Altivec.
9051         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
9052         Strip AND wrapping offset address for Altivec.
9053
9054 2005-08-11  Richard Henderson  <rth@redhat.com>
9055
9056         PR middle-end/23312
9057         * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
9058         before using TYPE_IS_SIZETYPE.
9059
9060 2005-08-11  Richard Henderson  <rth@redhat.com>
9061
9062         PR target/22225
9063         * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
9064         insn types not present on ev4.
9065         (alphaev5_insn_pipe): Similarly.
9066
9067 2005-08-11  Richard Earnshaw  <richard.earnshaw@arm.com>
9068
9069         PR target/23250
9070         * arm.c (arm_override_options): If the user has selected callee-super-
9071         interworking, then enable normal interworking.
9072
9073 2005-08-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9074
9075         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
9076         redefinition.
9077
9078 2005-08-11  Wu Zhou  <woodzltc@cn.ibm.com>
9079
9080         * doc/rtl.texi: Fix two typos.
9081
9082 2005-08-11  Richard Guenther  <rguenther@suse.de>
9083
9084         PR target/23289
9085         * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
9086         cases where we call to/from functions returning void.
9087
9088 2005-08-10  James A. Morrison  <phython@gcc.gnu.org>
9089
9090         PR c++/23225
9091         * tree.c (build_pointer_type_for_mode): Robustify.
9092
9093 2005-08-10  James E Wilson  <wilson@specifix.com>
9094
9095         * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
9096         (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
9097
9098         * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
9099         "cum->".
9100
9101 2005-08-10  Eric Christopher  <echristo@apple.com>
9102
9103         * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
9104         * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
9105         V2DFmode.
9106
9107 2005-08-10  Andrew Pinski  <pinskia@physics.uc.edu>
9108
9109         PR target/21887
9110         * config/darwin.c (machopic_indirect_data_reference): Use a new register
9111         for the high part when generating dynamic-no-pic code.
9112
9113 2005-08-10  H.J. Lu  <hongjiu.lu@intel.com>
9114
9115         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
9116         (x86_64-*-linux*): Likewise.
9117
9118         * config/i386/crtfastmath.c: New file.
9119         * config/i386/t-crtfm: Likewise.
9120
9121         * config/i386/linux.h (ENDFILE_SPEC): New.
9122         * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
9123
9124         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
9125         crtfastmath.o.
9126
9127 2005-08-10  Dorit Nuzman  <dorit@il.ibm.com>
9128
9129         * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
9130         (vec_shl, vec_shr): Document new operations.
9131         * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
9132
9133 2005-08-10  David Edelsohn  <edelsohn@gnu.org>
9134
9135         * config/rs6000/predicates.md (indexed_or_indirect_address): New.
9136         * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
9137         change predicate to indexed_or_indirect_address.
9138
9139 2005-08-10  Richard Sandiford  <richard@codesourcery.com>
9140
9141         * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
9142         * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
9143         __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
9144         and __aeabi_uwrite8.
9145         * config/arm/unaligned-funcs.c: New file.
9146         * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
9147
9148 2005-08-09  Paolo Bonzini  <bonzini@gnu.org>
9149
9150         * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
9151         Add dump.
9152         * cfglayout.c (pass_insn_locators_initialize): Add dump.
9153         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
9154         Add dump.
9155         * except.c (pass_convert_to_eh_region_ranges): Add dump.
9156         * final.c (pass_shorten_branches): Add dump.
9157         * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
9158         (pass_life): Rename dump.
9159         (rest_of_handle_flow2): Remove initial verify_flow_info.
9160         * function.c (pass_instantiate_virtual_regs): Add dump.
9161         * integrate.c (pass_initial_value_sets): Add dump.
9162         * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
9163         * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
9164         (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
9165         pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
9166         (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
9167         gate_rtl_unrool_and_peel_loops): New.
9168         (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
9169         rtl_doloop): Do not look at flags.
9170         * mode-switching.c (pass_mode_switching): Add dump.
9171         * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
9172         pass_split_before_regstack): Add dump.
9173         * regmove.c (pass_stack_adjustments): Add dump.
9174         * tree-optimize.c (pass_fixup_cfg): Add dump.
9175
9176 2005-08-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9177
9178         PR 23309
9179         * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
9180         deciding which instruction sequence to use.
9181
9182 2005-08-09  Dorit Nuzman  <dorit@il.ibm.com>
9183
9184         * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
9185         BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
9186
9187 2005-08-09  Richard Guenther  <rguenther@suse.de>
9188
9189         * c-common.c (builtin_function_2): Remove.
9190         (def_builtin_1): New function.
9191         (c_common_nodes_and_builtins): Use def_builtin_1 to
9192         build builtin functions.
9193
9194 2005-08-09  Jie Zhang  <jie.zhang@analog.com>
9195
9196         * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
9197         * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
9198         * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
9199         Visual DSP.
9200
9201 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
9202
9203         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
9204         fold_binary instead of fold_build2 since we don't care about the
9205         resulting tree.
9206         (loop_niter_by_eval): Likewise.
9207         (compare_trees): Likewise.
9208         (proved_non_wrapping_p): Likewise.
9209
9210 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
9211
9212         PR c/23161
9213         PR c/23165
9214         * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
9215         if the if is really empty.
9216
9217 2005-08-09  Steven Bosscher  <stevenb@suse.de>
9218
9219         PR tree-optimization/23234
9220         * tree-ssa-math-opts.c (place_reciprocal): New enum.
9221         (execute_cse_reciprocals_1): Replace the 'phi' argument with an
9222         argument of the new enum.
9223         (execute_cse_reciprocals): Add reciprocals for function arguments
9224         on the unique successor edge of the entry block.  Update other calls
9225         to execute_cse_reciprocals_1.
9226
9227 2005-08-08  Richard Henderson  <rth@redhat.com>
9228
9229         PR 22439
9230         * gimplify.c (gimplify_one_sizepos): Preserve the original type.
9231
9232 2005-08-08  Bob Wilson  <bob.wilson@acm.org>
9233
9234         * expr.c (write_complex_part): Return after handling MEM.
9235
9236 2005-08-08  Josh Conner  <jconner@apple.com>
9237
9238         PR rtl-optimization/23241
9239         * combine.c (simplify_comparison): Fix error in determining
9240         whether to lift a subreg from comparison.
9241
9242 2005-08-08  David Edelsohn  <edelsohn@gnu.org>
9243
9244         PR target/18506
9245         * config/rs6000/altivec.md (vec_init<mode>): New.
9246         (vec_set<mode>): New.
9247         (vec_extract<mode>): New.
9248         * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
9249         (rs6000_expand_vector_set): New.
9250         (rs6000_expand_vector_extract): New.
9251         (rs6000_legitimate_offset_address_p): Offset addresses are valid
9252         for Altivec modes before reload.
9253         (altivec_expand_vec_init_builtin): New.
9254         (get_element_number): New.
9255         (altivec_expand_vec_set_builtin): New.
9256         (altivec_expand_vec_ext_builtin): New.
9257         (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
9258         builtins.
9259         (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
9260         builtins.
9261         * config/rs6000/rs6000.h (rs6000_builtins): Add
9262         ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
9263         ALTIVEC_BUILTIN_VEC_EXT_<mode>.
9264         * config/rs6000/rs6000-protos.h: Declare new functions.
9265
9266 2005-08-08  Jan Hubicka  <jh@suse.cz>
9267
9268         * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
9269         (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
9270         * i386.md (movdi*): Use pic_32bit_operand.
9271         * predicates.md (pic_32bit_operand): New.
9272
9273 2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
9274
9275         PR c++/21166
9276         * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
9277
9278 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
9279
9280         * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
9281         (test_for_singularity): Use fold_build2.
9282
9283 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9284
9285         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
9286
9287 2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
9288
9289         * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
9290         (COMMON_ASM_OP) Define.
9291         * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
9292         (ix86_encode_section_info): Likewise.
9293         (TARGET_ENCODE_SECTION_INFO): Conditionally define as
9294         SUBTARGET_ENCODE_SECTION_INFO.
9295
9296 2005-08-06  Richard Henderson  <rth@redhat.com>
9297
9298         PR 21894
9299         * tree-nested.c (convert_local_reference): Save and restore val_only
9300         around component_ref and friends.  Clear walk_subtrees by default.
9301
9302 2005-08-06  Peter O'Gorman  <peter@pogma.com>
9303
9304         PR 21366
9305         * gcc.c (process_command): Check the argument to -b has a dash.
9306         * doc/invoke.texi: Update -b and -V docs.
9307
9308 2005-08-06  James E Wilson  <wilson@specifix.com>
9309
9310         * config/mips/cross64.h, config/mips/t-cross64: Delete.
9311
9312 2005-08-06  Michael Matz  <matz@suse.de>
9313
9314         * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
9315         member only if only one insn is associated with the value.
9316
9317 2005-08-06  Nick Clifton  <nickc@redhat.com>
9318
9319         * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
9320         New define.
9321         (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
9322         * config/stormy16/stormy16.c (xstormy16_below100_symbol):
9323         Check symbol flags instead of symbol name mangling.
9324         (xstormy16_asm_output_aligned_common): Likewise.  Also
9325         simplify code since the bss100_section cass is the only case
9326         where the below100 code will be triggered.
9327         (xstormy16_encode_section_info): Encode below100 attribute
9328         using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
9329         the name.
9330         (xstormy16_strip_name_encoding): Delete - this function is no
9331         longer needed.
9332         (TARGET_STRIP_NAME_ENCODING): Undefine.
9333         * config/stormy16/stormy16-protos.h: Delete prototype for
9334         xstormy16_strip_name_encoding.
9335
9336 2005-08-06  Kazu Hirata  <kazu@codesourcery.com>
9337
9338         * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
9339         config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
9340         tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
9341         config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
9342         config/alpha/predicates.md, config/arc/arc.h,
9343         config/arm/arm.h, config/arm/ieee754-df.S,
9344         config/arm/ieee754-sf.S, config/bfin/bfin.c,
9345         config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
9346         config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
9347         config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
9348         config/m68hc11/m68hc11.h, config/mips/mips.c,
9349         config/mips/mips.h, config/mips/openbsd.h,
9350         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
9351         config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
9352         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
9353         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
9354         config/sparc/linux.h, config/sparc/linux64.h,
9355         config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
9356         doc/extend.texi, doc/gcov.texi, doc/install.texi,
9357         doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
9358         typos.  Follow spelling conventions.
9359
9360 2005-08-06  Joseph S. Myers  <joseph@codesourcery.com>
9361
9362         PR c/23113
9363         * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
9364         Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
9365         specially.  Check for side effects only for COND_EXPR.
9366         * c-typeck.c (c_finish_stmt_expr): Mark statement expression
9367         return with TREE_NO_WARNING.
9368
9369 2005-08-06  Richard Sandiford  <richard@codesourcery.com>
9370
9371         PR rtl-optimization/23233
9372         * loop.c (combine_movables): Require the modes to be the same.
9373         (move_movables): Remove handling of cases where the replacement
9374         had a different mode to the original.
9375
9376 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
9377
9378         PR tree-optimization/23128
9379         * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
9380         subtraction wrap, and set TREE_OVERFLOW if they do.
9381
9382 2005-08-05  Richard Henderson  <rth@redhat.com>
9383
9384         PR 21728
9385         * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
9386         FORCED_LABEL labels.
9387
9388 2005-08-05  J"orn Rennecke <joern.rennecke@st.com>
9389
9390         PR middle-end/23135
9391         * reload.c (find_reloads_subreg_address): Pass down TYPE
9392         unchanged.  Change all callers except find_reloads_toplev.
9393
9394 2005-08-05  Michael Matz  <matz@suse.de>
9395
9396         * genattrtab.c (current_alternative_string): Remove.
9397         (SIMPLIFY_ALTERNATIVE): Ditto.
9398         (attr_alt_bit_p): Ditto.
9399         (alternative_name): Make const char *.
9400         (evaluate_eq_attr): Remove use of above things.
9401         (simplify_test_exp): Ditto.
9402         (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
9403         (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
9404
9405 2005-08-04  James E Wilson  <wilson@specifix.com>
9406
9407         * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
9408         config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
9409         config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
9410         config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
9411         (LINK_SPEC): Delete useless %{Wl,*:%*} item.
9412
9413 2005-08-04  Richard Henderson  <rth@redhat.com>
9414
9415         PR 21529
9416         * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
9417         * params.h (SRA_MAX_STRUCTURE_COUNT): New.
9418         * tree-sra.c (decide_block_copy): Use it.  Disable element copy
9419         if we'd have to instantiate too many members.
9420
9421 2005-08-04  Richard Henderson  <rth@redhat.com>
9422
9423         PR 21291
9424         * tree-outof-ssa.c (coalesce_asm_operands): New.
9425         (coalesce_ssa_name): Use it.  Split out ...
9426         (coalesce_phi_operands, coalesce_result_decls): ... these.
9427
9428 2005-08-04  Paul Brook  <paul@codesourcery.com>
9429
9430         * read-rtl.c (read_quoted_string): Break if EOF.
9431
9432 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
9433
9434         * tree.h (fold_build1): Change to macro and call fold_build1_stat.
9435         (fold_build2): Likewise.
9436         (fold_build3): Likewise.
9437         (fold_build1_stat): New function prototype.
9438         (fold_build2_stat): Likewise.
9439         (fold_build3_stat): Likewise.
9440         * fold-const.c (fold_build1): Rename to ..
9441         (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
9442         through to build1_stat.
9443         (fold_build2): Rename to ..
9444         (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
9445         through to build2_stat.
9446         (fold_build3): Rename to ..
9447         (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
9448         through to build3_stat.
9449
9450 2005-08-04  David Edelsohn  <edelsohn@gnu.org>
9451             Ian Lance Taylor  <ian@airs.com>
9452
9453         * function.c (assign_stack_local_1): Do not correct stack slot
9454         address if allocation size is smaller than mode size.
9455
9456 2005-08-04  Diego Novillo  <dnovillo@redhat.com>
9457
9458         PR 22037
9459         * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
9460         (tree_merge_blocks): Propagate anything allowed by
9461         may_propagate_copy.
9462         Clarify documentation.
9463         * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
9464         SSA form, schedule an update if necessary.
9465
9466 2005-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
9467
9468         * doc/install.texi (Binaries): Remove broken link to
9469         Sinix/Reliant Unix binaries.
9470
9471 2005-08-03  Richard Henderson  <rth@redhat.com>
9472
9473         PR 23221
9474         * function.c (stack_protect_epilogue): Export.
9475         * tree.h (stack_protect_epilogue): Declare.
9476         * calls.c (expand_call): Call it.
9477
9478 2005-08-03  Eric Christopher  <echristo@apple.com>
9479
9480         * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
9481         * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
9482         spec.
9483
9484 2005-08-04  Jan Hubicka  <jh@suse.cz>
9485
9486         * profile.c (branch_prob): Split edges with goto locus on them
9487         to get proper line counts.
9488         * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
9489
9490 2005-08-03  Paul Brook  <paul@codesourcery.com>
9491
9492         * function.c (assign_parms): Round current_function_args_size
9493         to PARM_BOUNDARY, not STACK_BOUNDARY.
9494
9495 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
9496
9497         * config/i386/i386.c (x86_elf_aligned_common)
9498         (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
9499
9500 2005-08-03  Zdenek Dvorak  <dvorakz@suse.cz>
9501
9502         PR tree-optimization/23157
9503         * tree-scalar-evolution.c (scev_const_prop): Unshare trees
9504         before emitting them.
9505
9506 2005-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9507
9508         PR tree-optimization/19899
9509         * Makefile.in (tree-scalar-evolution.o): Add real.h.
9510         * tree-scalar-evolution.c: Include real.h.
9511         (add_to_evolution): Build constant -1 of correct type.
9512
9513 2005-08-03  Jan Hubicka  <jh@suse.cz>
9514
9515         * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
9516         * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
9517         profile updating for complette unrolling.
9518         * loop-unroll.c (peel_loop_completely): Use it.
9519         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
9520         (tree_unroll_loops_completely): Disable code growing unrolling of cold
9521         loops.
9522
9523 2005-08-03  Paul Brook  <paul@codesourcery.com>
9524
9525         * combine.c (can_change_dest_mode): New function.
9526         (try_combine, simplify_set): Use it.
9527
9528 2005-08-03  Eric Botcazou  <ebotcazou@adacore.com>
9529
9530         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
9531         TFmode to BLKmode.
9532
9533 2005-08-03  Gerald Pfeifer  <gerald@pfeifer.com>
9534
9535         * doc/install.texi (Specific): Adjust link to openavr.org.
9536         (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
9537         (Binaries): Adjust HP-UX Porting Center link.
9538         (Binaries): Adjust Free Software Foundation ordering link.
9539
9540 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
9541
9542         * convert.c (convert_to_integer): Use fold_build1 instead of
9543         build1 when converting an integer to an integer.
9544
9545 2005-08-02  Richard Henderson  <rth@redhat.com>
9546
9547         * combine.c (combine_instructions): Don't use reg_equal/equiv
9548         results if the mode doesn't match.
9549
9550 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
9551
9552         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
9553         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
9554
9555 2005-08-02  Richard Henderson  <rth@redhat.com>
9556
9557         PR 23196
9558         * explow.c (memory_address): Remove special-case for
9559         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
9560
9561 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
9562
9563         PR 23164
9564         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
9565         number of calls to cleanup_tree_cfg_1.
9566
9567 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
9568
9569         * doc/invoke.texi: document file extensions .F90 and .F95
9570
9571 2005-08-02  Richard Guenther  <rguenther@suse.de>
9572
9573         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
9574         positive if its first argument is positive.
9575
9576 2005-08-02  Richard Guenther  <rguenther@suse.de>
9577
9578         PR tree-optimization/23177
9579         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
9580         on TMR_TAG.
9581
9582 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
9583
9584         PR tree-optimization/23129
9585         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
9586         varying for divisions with anti-ranges.
9587
9588 2005-08-02  Jan Hubicka  <jh@suse.cz>
9589
9590         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
9591         * tree-ssa-threadupdate.c (thread_block): Add it here.
9592
9593 2005-08-01  James E Wilson  <wilson@specifix.com>
9594
9595         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
9596         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
9597         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
9598         New.
9599         * config/mips/predicates.md (const_call_insn_operand): Add check for
9600         SYMBOL_REF_LONG_CALL_P.
9601         * doc/extend.texi (long_call): Document the new attribute.
9602
9603 2005-08-01  Ian Lance Taylor  <ian@airs.com>
9604             Richard Henderson  <rth@redhat.com>
9605
9606         * Makefile.in (RTL_BASE_H): Add real.h.
9607         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
9608         instead of memcpy.
9609         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
9610         directly.
9611         * rtl.c (rtl_check_failed_code_mode): New.
9612         * rtl.h (struct rtx_def): Add u.rv.
9613         (XCMWINT, XCNMPRV): New.
9614         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
9615         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
9616
9617 2005-08-01  Richard Henderson  <rth@redhat.com>
9618
9619         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
9620         with auto-inc codes.
9621
9622         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
9623
9624 2005-08-01  Jan Hubicka  <jh@suse.cz>
9625
9626         * i386-protos.h (asm_preferred_eh_data_format): Declare.
9627         * i386.c: Include dwarf2.h
9628         (asm_preferred_eh_data_format): New.
9629         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
9630
9631 2005-08-01  Ian Lance Taylor  <ian@airs.com>
9632
9633         * config/host-linux.c (linux_gt_pch_get_address): Add new name
9634         randomize_va_space for virtual address randomization control.
9635
9636 2005-08-01  Steven Bosscher  <stevenb@suse.de>
9637
9638         * common.opt (flag_ipa_cp): Put in right place to maintain
9639         alphabetic sort.
9640
9641 2005-08-01  Jan Hubicka  <jh@suse.cz>
9642
9643         * profile.c (compute_value_histograms): Fix thinko.
9644         * value-prof.c: Include toplev.h
9645         (check_counter): New function.
9646         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
9647         tree_mod_subtract_transform): Add sanity check.
9648
9649 2005-08-01  Richard Guenther  <rguenther@suse.de>
9650
9651         PR tree-optimization/23133
9652         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
9653         current functions parameter decls to find defs to cse
9654         reciprocals of.
9655
9656 2005-08-01  Richard Guenther  <rguenther@suse.de>
9657
9658         PR tree-optimization/23109
9659         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
9660         If trapping math is in effect, use post-dominator information
9661         to check if we'd in any case reach a trapping point before
9662         doing the reciprocal insertion.
9663         (execute_cse_reciprocals): Compute post-dominators, if necessary.
9664         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
9665         expressions are invariant only if trapping math is not in effect.
9666
9667 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
9668
9669         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
9670         cgraph_function_versioning): New declarations.
9671         * cgraphunit.c: Add include to ipa-prop.h.
9672         (update_call_expr, cgraph_copy_node_for_versioning,
9673         cgraph_function_versioning): New functions.
9674         * integrate.c (copy_decl_for_inlining): Remove.
9675         * ipa-prop.h (ipa_replace_map): New struct.
9676         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
9677         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
9678         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
9679         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
9680         ipcp_iterate_stage, ipcp_method_scale_print,
9681         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
9682         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
9683         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
9684         ipcp_update_bb_counts, ipcp_update_profiling,
9685         ipcp_update_edges_counts): New functions.
9686         (ipcp_method_cval_init): Remove restriction regarding local methods.
9687         (ipcp_init_stage): Add ipcp_method_compute_scale.
9688         (ipcp_insert_stage): Add versioning.
9689         (ipcp_structures_print): Add ipcp_method_scale_print.
9690         (ipcp_driver): Dump profiling info.
9691         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
9692         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
9693         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
9694         (struct inline_data): Add versioning_p, ipa_info, new fields.
9695         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
9696         declare_return_variable): Replace calls to copy_decl_for_inlining with
9697         copy_decl_for_dup.
9698         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
9699         versioning support.
9700         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
9701         Add argument VERSIONING.
9702         (copy_arguments_for_versioning, copy_static_chain,
9703         function_versionable_p, tree_versionable_function_p,
9704         tree_function_versioning, replace_ref_tree): New functions.
9705         * tree-inline.h: Include varray.h.
9706         (tree_versionable_function_p,  tree_function_versioning,
9707         tree copy_decl_for_dup): New declarations.
9708
9709 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
9710
9711         * ipa-cp.c: New file. Contains IPCP specific functionality.
9712         * ipa-prop.h: New file. Contains structures/definitions that can be
9713         used by several interprocedural data flow optimizations (and also IPCP).
9714         * ipa-prop.c: New file.
9715         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
9716         * common.opt: Add ipa-cp flag.
9717         * timevar.def: Add IPCP optimization.
9718         * tree-optimize.c (init_tree_optimization_passes): Schedule
9719         pass_ipa_cp.
9720         * tree-pass.h (pass_ipa_cp): Declare.
9721
9722 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
9723
9724         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
9725         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
9726         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
9727         config/i386/i386.c, config/mips/mips.h,
9728         config/rs6000/rs6000.h, config/sh/sh.c,
9729         config/stormy16/stormy16.c: Fix comment typos.
9730
9731 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
9732
9733         PR c/22311
9734         * c-typeck.c (build_binary_op): Use common_type wrapper on
9735         shortened types.
9736         (common_type): Update comment.
9737
9738 2005-07-31  Steven Bosscher  <stevenb@suse.de>
9739
9740         PR target/23095
9741         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
9742         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
9743         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
9744
9745 2005-07-31  Jan Hubicka  <jh@suse.cz>
9746
9747         * pretty-print.h (pp_widest_integer): New macro.
9748         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
9749         counts.
9750
9751 2005-07-31  Jan Hubicka  <jh@suse.cz>
9752
9753         * output.h (enum section_category): Export from varasm.c
9754         (categorize_decl_for_section): Likewise.
9755         * varasm.c (enum section_category): Kill.
9756         (categorize_decl_for_section): Make global.
9757         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
9758         Declare.
9759         * i386.c (ix86_section_threshold): New static variable.
9760         (ix86_in_large_data_p, ix86_encode_section_info,
9761         x86_64_elf_unique_section,
9762         x86_64_elf_select_section): New functions.
9763         (TARGET_ENCODE_SECTION_INFO): Define
9764         (override_options): Enable medium model for PIC.
9765         (ix86_expand_prologue): Expand gen_set_got_rex64.
9766         (legitimate_constant_p): Handle new UNSPECs.
9767         (legitimate_pic_address_disp_p): Likewise.
9768         (legitimize_pic_address): Lower MEDIUM model addressing.
9769         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
9770         (enum cmodel): Add MEDIUM_PIC.
9771         (SYMBOL_REF_FAR_ADDR_P): New macro.
9772         (SYMBOL_FLAG_FAR_ADDR): New flag.
9773         * i386.md (movdi): Support medium model.
9774         (set_got_rex64): New pattern.
9775         * i386.opt (mlarge-data-threshold): New flag.
9776         * predicates.md (zext_operand/sext_operand): Deal with medium model.
9777         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
9778         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
9779         TARGET_ASM_UNIQUE_SECTION): New.
9780
9781         * invoke.texi (-mlarge_data_threshold): Document
9782
9783 2005-07-31  Jan Hubicka  <jh@suse.cz>
9784
9785         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
9786         (coalesce_vars): Likewise.
9787         * tree-ssa-live.c (coalesce_cost): New.
9788         (build_tree_conflict_graph): Use coalesce_cost.
9789         * tree-ssa-live.h (coalesce_cost): Declare.
9790
9791 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
9792
9793         * arm.md (all peepholes for post-increment operations): Delete.
9794         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
9795         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
9796         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
9797         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
9798         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
9799
9800 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
9801
9802         * fold-const.c (tree_expr_nonnegative_p): Always return true for
9803         non-integral types.
9804
9805 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
9806
9807         PR target/22582
9808         * doc/invoke.texi: Document -rdynamic.
9809
9810 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9811
9812         PR c/23143
9813         * c-parser.c (c_parser_parms_list_declarator): Call
9814         mark_forward_parm_decls.
9815         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
9816         decls with visibility structure.
9817
9818 2005-07-30  Paul Brook  <paul@codesourcery.com>
9819
9820         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
9821
9822 2005-07-30  Paul Brook  <paul@codesourcery.com>
9823
9824         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
9825         prototype.
9826         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
9827         value for mode.
9828         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
9829
9830 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9831
9832         PR c/529
9833         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
9834         nested function declarators.
9835         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
9836         (grokparms): Call warn_if_shadowing for parameters used within the
9837         parameter list.
9838         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
9839         not used within the parameter list.
9840         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
9841
9842 2005-07-30  Jan Hubicka  <jh@suse.cz>
9843
9844         * expr.c (expand_expr_real_1): Do not load mem targets into register.
9845         * i386.c (ix86_fixup_binary_operands): Likewise.
9846         (ix86_expand_unary_operator): Likewise.
9847         (ix86_expand_fp_absneg_operator): Likewise.
9848         * optabs.c (expand_vec_cond_expr): Validate dest.
9849
9850 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9851
9852         PR c/21720
9853         * real.c (real_from_string): Also set last bit if there is a
9854         nonzero hex digit beyond GCC's internal precision after ".".
9855
9856 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
9857
9858         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
9859         define_constants.  Change duplicate values to unassigned numbers.
9860         Change UNSPEC_SUBS to UNSPEC_VSUBS.
9861         (*altivec_vspltsf): New.
9862         (altivec_vperm_v4sf): Delete.
9863         (altivec_vperm_<mode>): Use mode macro V.
9864         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
9865         (altivec_predicate_v4sf): Delete.
9866         (altivec_predicate_<mode>): Use mode macro V.
9867         (*altivec_lvesfx): New.
9868         (*altivec_stvesfx): New.
9869         (vec_realign_load_v4sf): Delete.
9870         (vec_realign_load_<mode>): Use mode macro V.
9871         * config/rs6000/rs6000.c (generate_set_vrsave): Use
9872         UNSPECV_SET_VRSAVE.
9873
9874 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
9875
9876         PR bootstrap/23131
9877         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
9878         string.
9879         * configure: Regenerated.
9880
9881 2005-07-29  Paul Brook  <paul@codesourcery.com>
9882
9883         * doc/install.texi: Add link to GFortran binaries wiki page.
9884
9885 2005-07-29  David Ung  <davidu@mips.com>
9886
9887         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
9888         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
9889         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
9890         * config/mips/mips.md (cpu): Add 5kf name.
9891         (includes): Includes 5k.md.
9892         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
9893         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
9894         -march flag.
9895
9896 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
9897
9898         PR 22550
9899         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
9900         (cleanup_tree_cfg): ... here.
9901         Call cleanup_tree_cfg_1 until there are no more cleanups to
9902         do.
9903
9904 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
9905
9906         * tree-vrp.c (compare_range_with_value): Return true or false
9907         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
9908         EQ_EXPR respectively.
9909
9910 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
9911
9912         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
9913         Fix comment typos.
9914
9915 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
9916
9917         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
9918         (tree_ssa_dominator_optimize): Increment it.
9919         (dump_dominator_optimization_stats): Print it.
9920
9921 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
9922             Steven Bosscher  <stevenb@suse.de>
9923
9924         PR rtl-optimization/23117
9925         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
9926         when head == tail.  Tidy comment.
9927
9928 2005-07-28  Richard Henderson  <rth@redhat.com>
9929
9930         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
9931         * cselib.c (rtx_equal_for_cselib_p): Likewise.
9932         * jump.c (rtx_renumbered_equal_p): Likewise.
9933         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
9934         CONST_INT and CONST_DOUBLE.
9935         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
9936         * reload.c (operands_match_p): Special case CONST_INT and
9937         CONST_DOUBLE; check mode earlier.
9938
9939 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9940
9941         PR c/22240
9942         * c-typeck.c (convert_for_assignment): Do not check
9943         DECL_IN_SYSTEM_HEADER on NULL fundecl.
9944
9945 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9946
9947         PR c/22192
9948         * c-typeck.c (composite_type): Prefer constant size arrays to
9949         VLAs.
9950
9951 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9952
9953         PR c/21720
9954         * real.c (real_from_string): Set last bit if there is a nonzero
9955         hex digit beyond GCC's internal precision.
9956
9957 2005-07-28  Richard Henderson  <rth@redhat.com>
9958
9959         PR rtl-opt/22619
9960         * cfgcleanup.c (try_forward_edges): Watch out for end of
9961         insn chain.
9962
9963 2005-07-28  James E Wilson  <wilson@specifixinc.com>
9964
9965         PR c/23106
9966         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
9967
9968 2005-07-28  Jan Hubicka  <jh@suse.cz>
9969
9970         * Makefile.in (rtl-profile.o): Kill all traces of it.
9971         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
9972         * coverage.h (rtl_coverage_counter_ref): Kill.
9973         * opts.c (flag_speculative_prefetching_set): Kill.
9974         (flag_loop_optimize_set): New.
9975         (common_handle_option): Disable loop optimizer when profiling;
9976         do not handle speculative prefetching.
9977         * passes.c (init_optimization_passes): Replace pass_profiling combo
9978         by branch_prob pass.
9979         * profile.c (compute_value_histograms): Update for simplified value
9980         profiles.
9981         (rtl_register_profile_hooks): Kill.
9982         (pass_profiling): Kill.
9983         (rest_of_handle_branch_prob): Do not profile.
9984         * toplev.c (process_options): Remove speculative prefetching.
9985         * toplev.h (flag_tree_based_profiling): Kill.
9986         * tree-profile.c (prepare_instrumented_value,
9987         tree_gen_interval_profiler, tree_gen_pow2_profiler,
9988         tree_gen_one_value_profiler, do_tree_profiling): Update for
9989         simplified datastructures.
9990         * value-prof.c: Add comment that speculative prefetching was dropped;
9991         update rest of file for simplified datastructures.
9992         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
9993         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
9994         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
9995         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
9996         rtl_mod_subtract, gen_speculative_prefetch,
9997         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
9998         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
9999         (gate_handle_value_profile_transformations,
10000         rest_of_handle_value_profile_transformations,
10001         pass_value_profile_transformations): Kill.
10002         * value-prof.h (histogram_value_t): Remove IL based unions.
10003         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
10004         rtl_profile_hooks): Remove hooks.
10005
10006         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
10007
10008         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
10009         (cgraph_clone_node): Likewise.
10010         * cgraph.h (cgraph_clone_edge): Update prototype.
10011         (cgraph_clone_node): Likewise.
10012         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
10013         cgraph_clone_node.
10014         (lookup_recursive_calls): Consider profile.
10015         (cgraph_decide_recursive_inlining): Fix updating; use new
10016         probability argument; use profile.
10017         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
10018         * tree-inline.c (copy_bb): Update clal of clone_edge.
10019         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
10020
10021         * invoke.texi (min-inline-recursive-probability): Document.
10022
10023 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
10024
10025         * doc/install.texi (Configuration): Update Valgrind homepage.
10026
10027 2005-07-28  Richard Henderson  <rth@redhat.com>
10028
10029         PR middle-end/21362
10030         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
10031         labels we want to delete.
10032         (cfg_layout_merge_blocks): Likewise.
10033
10034 2005-07-28  Richard Henderson  <rth@redhat.com>
10035
10036         PR target/17692
10037         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
10038         when expanding to nothing.
10039
10040 2005-07-28  Josh Conner  <jconner@apple.com>
10041
10042         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
10043         (cgraph_decide_inlining_of_small_functions): Likewise.
10044
10045 2005-07-28  Josh Conner  <jconner@apple.com>
10046
10047         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
10048         direction of badness if negative.
10049         (cgraph_default_inline_p): Add reason to parameters, and assign it
10050         a value.
10051         (cgraph_decide_inlining_of_small_functions): New parameter in call
10052         to cgraph_default_inline_p.
10053         (cgraph_decide_inlining_incrementally): Likewise.
10054         * cgraphunit.c (decide_is_function_needed): Likewise.
10055         * cgraph.h (cgraph_default_inline_p): Likewise.
10056
10057 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
10058
10059         * builtins.c: Fix comment typo(s).
10060         * genautomata.c: Likewise.
10061         * gimplify.c: Likewise.
10062         * tree-dfa.c: Likewise.
10063         * tree-flow-inline.h: Likewise.
10064         * tree-into-ssa.c: Likewise.
10065         * tree-ssa-alias.c: Likewise.
10066         * tree-ssa-ccp.c: Likewise.
10067         * tree-ssa-copy.c: Likewise.
10068         * tree-ssa-dce.c: Likewise.
10069         * tree-ssa-dom.c: Likewise.
10070         * tree-ssa-operands.c: Likewise.
10071         * tree-tailcall.c: Likewise.
10072         * tree-vectorizer.c: Likewise.
10073         * tree-vrp.c: Likewise.
10074         * tree.c: Likewise.
10075
10076 2005-07-28  Jeff Law  <law@redhat.com>
10077
10078         * tree-vrp.c (test_for_singularity): Extracted from  ...
10079         (simplify_cond_using_ranges): Attempt to simplify a relational
10080         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
10081
10082 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
10083
10084         PR tree-optimization/22506
10085         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
10086         phis whose argument is constant.
10087
10088 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
10089
10090         PR rtl-optimization/18992
10091         Back out this patch:
10092           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10093           PR optimization/12142
10094           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
10095           uses of the register in the SET_SRC.  Remove unnecessary argument.
10096
10097         Replace it with this:
10098         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
10099         if flag_non_call_exceptions is set and the insn may trap, pass
10100         pc_rtx as dest for recursion.
10101         In SET_SRC part of SET case, if dest is already set, pass it down
10102         unchanged.
10103
10104 2005-07-28  Jan Hubicka  <jh@suse.cz>
10105
10106         * cfg.c (update_bb_profile_for_threading): Use RDIV.
10107         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
10108         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
10109         roundoff errors.
10110         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
10111         profile when available.
10112
10113 2005-07-28  Jan Beulich <jbeulich@novell.com>
10114
10115         * config/ia64/ia64.c (ia64_load_pair_ok): New.
10116         (ia64_print_operand): Describe and handle 'X'.
10117         (ia64_register_move_cost): Also handle FP_REGS.
10118         (ia64_preferred_reload_class): Likewise.
10119         (ia64_secondary_reload_class): Likewise.
10120         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
10121         it. Also check for ITANIUM_CLASS_FLDP.
10122         * config/ia64/ia64.h (FP_REGNO_P): New.
10123         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
10124         (reg_class): Add FP_REGS.
10125         (REG_CLASS_NAMES): Adjust for it.
10126         (REG_CLASS_CONTENTS): Likewise.
10127         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
10128         (REG_CLASS_FROM_LETTER): Handle 'x'.
10129         (CLASS_MAX_NREGS): Handle FP_REGS.
10130         (MEMORY_MOVE_COST): Likewise.
10131         * config/ia64/ia64.md (itanium_class): Add fldp.
10132         (type): Handle fldp.
10133         (movti_internal): More allowable operand combinations. Use ldfp8 when
10134         splitting unnecessary. Remove predicable attribute. Adjust
10135         itanium_class attribute.
10136         (smuldi3_highpart): Remove outdated comment.
10137         (mulditi3, umulditi3, rotlti3): New expanders.
10138         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
10139         (absti2): Disabled new insn for future reference.
10140         Respective new splitters.
10141         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
10142         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
10143         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
10144
10145 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
10146
10147         PR rtl-optimization/23047
10148         * simplify-rtx.c (simplify_const_relational_operation): Respect
10149         flag_wrapv for comparisons with ABS.
10150
10151 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
10152
10153         PR tree-optimization/22493
10154         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
10155         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
10156
10157 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
10158
10159         * config/frv/frv.opt (moptimize-membar): New.
10160
10161         * doc/invoke.texi: Document -moptimize-membar and its inverse.
10162
10163         * config/frv/frv.h: Remove machine_function definition.
10164
10165         * config/frv/frv.c (struct frv_io): New.
10166         (struct machine_function): Moved from frv.h.  Add has_membar_p.
10167         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
10168         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
10169         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
10170         (frv_optimize_membar_global, frv_optimize_membar): New functions.
10171         (frv_reorg): Call frv_optimize_membar when appropriate.
10172         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
10173         (frv_expand_builtin): Adjust calls accordingly.
10174         (frv_io_address_cookie): New function.
10175         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
10176         load or store rather than a special insn.  Add ccnstant address and
10177         io-type operands to the membar.
10178         (frv_ifcvt_modify_tests): Unsign regno.
10179         (frv_ifcvt_modify_tests): Same.
10180
10181         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
10182         UNSPEC_OPTIONAL_MEMBAR constant.
10183         (builtin_read_<mode>): Delete.
10184         (builtin_write_<mode>): Delete.
10185         ("optional_membar_<mode>"): Add operand.
10186
10187         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
10188         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
10189         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
10190         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
10191         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
10192         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
10193         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
10194         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
10195         * testsuite/gcc.target/frv/all-read-write-1.c: New.
10196
10197 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
10198
10199         * df.c (df_uses_record): Handle SCRATCH.
10200
10201 2005-07-28  Steven Bosscher  <stevenb@suse.de>
10202
10203         PR debug/20161
10204         * passes.c (rest_of_decl_compilation): If decl is a type and
10205         we have encountered errors, don't emit debug information.
10206
10207 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
10208
10209         * params.def: Fixed comment.
10210
10211 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
10212
10213         PR target/19885
10214         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
10215         (TARGET_ASM_UNALIGNED_HI_OP): Add.
10216         (TARGET_ASM_UNALIGNED_SI_OP): Add.
10217
10218 2005-07-27  Steven Bosscher  <stevenb@suse.de>
10219
10220         PR c++/22003
10221         * varasm.c (assemble_start_function): Don't do anything that may
10222         require a CFG if the current function is a thunk.
10223
10224 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
10225
10226         * doc/install.texi (Prerequisites): Mention that perl is needed
10227         to do export control in libstdc++ targetting Darwin.
10228
10229 2005-07-27  Steven Bosscher  <stevenb@suse.de>
10230
10231         PR rtl-optimization/17808
10232         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
10233         (sched_insns_conditions_mutex_p): Split out from...
10234         (add_dependence): ...here.  But don't call it from here.
10235         (add_dependence_list): Check sched_insns_conditions_mutex_p
10236         before calling add_dependence.
10237         (add_dependence_list_and_free): Likewise.
10238         (fixup_sched_groups): Likewise.
10239         (sched_analyze_1): Likewise.
10240         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
10241         (sched_analyze): Likewise.
10242         (sched_analyze_insn): Likewise.
10243         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
10244         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
10245         dependencies on all COND_EXEC insns to jumps ending basic blocks
10246         when doing intrablock scheduling.
10247         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
10248
10249 2005-07-27  Jeff Law  <law@redhat.com>
10250
10251         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
10252         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
10253         equivalency sets, correctly handle the case were vr0 has an
10254         equivalency set, but vr1 does not.
10255
10256 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
10257
10258         PR tree-optimization/23073
10259         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
10260         vect_print_dump_info before fprintf.
10261
10262 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
10263
10264         PR tree-optimize/22348
10265         * tree-ssa-loop-niter.c (number_of_iterations_cond):
10266         Fold the partial computation.
10267
10268 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
10269
10270         PR tree-optimization/22325
10271         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
10272         Declare.
10273         * tree-scalar-evolution.c (scev_const_prop): Add generic final
10274         value replacement.
10275         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
10276         (force_var_cost): ... this function.
10277         (compute_phi_arg_on_exit): Export.
10278
10279 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
10280
10281         PR tree-optimization/20773
10282         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
10283         edge.
10284
10285 2005-07-27  Richard Guenther  <rguenther@suse.de>
10286
10287         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
10288         Avoid pushing again if current struct contains only
10289         fields we decomposed.
10290
10291 2005-07-27  Jan Hubicka  <jh@suse.cz>
10292
10293         PR tree-optimization/22574
10294         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
10295         not available.
10296
10297         * tree-tailcall.c (decrease_profile): New function.
10298         (eliminate_tail_call): Use it.
10299
10300         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
10301         visibility flags correctly in whole program mode.
10302
10303 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
10304
10305         PR rtl-optimization/22472
10306         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
10307
10308 2005-07-26  Steven Bosscher  <stevenb@suse.de>
10309
10310         PR tree-optimization/22504
10311         * tree-complex.c (expand_complex_addition): Use 'code' instead
10312         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
10313
10314 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
10315
10316         * config.gcc (cpu_type): Add frv case.
10317         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
10318         (supported_defaults): Add fr550 case.
10319
10320 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
10321
10322         PR 22591
10323         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
10324         whether a pointer of type T * may point to objects of type T *.
10325
10326 2005-07-26  DJ Delorie  <dj@redhat.com>
10327
10328         * configure: Regenerate.
10329
10330 2005-07-26  Dale Johannesen  <dalej@apple.com>
10331
10332         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
10333
10334 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
10335
10336         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
10337         Clarify use of "build" in name.
10338
10339 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
10340
10341         * doc/extend.texi (Raw read/write Functions): New section.
10342         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
10343         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
10344         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
10345         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
10346         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
10347         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
10348         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
10349         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
10350         * config/frv/frv.c: Add bdesc_loads global.
10351         Add bdesc_stores global.
10352         (frv_init_builtins): Add support for __builtin_{read/write}*.
10353         (frv_volatile_memref): New.
10354         (frv_expand_load_builtin): New.
10355         (frv_expand_store_builtin): New.
10356         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
10357         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
10358         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
10359         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
10360         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
10361         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
10362         (builtin_read_<mode>): New.
10363         (builtin_write_<mode>): New.
10364         (builtin_write64): New.
10365         (optional_membar_<mode>): New.
10366
10367 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
10368
10369         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
10370         (rather than units) against HOST_BITS_PER_WIDE_INT.
10371
10372 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
10373
10374         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
10375         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
10376         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
10377         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
10378         FSF address.
10379
10380         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
10381         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
10382         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
10383         comment typos.
10384         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
10385
10386 2005-07-26  Richard Guenther  <rguenther@suse.de>
10387
10388         PR tree-optimization/22486
10389         * fold-const.c (fold_unary): Fold away useless component
10390         references of the form (T *)&T.x, if the address
10391         doesn't change.
10392
10393 2005-07-25  James E Wilson  <wilson@specifixinc.com>
10394
10395         * dwarf2out.c (add_call_src_coords_attributes): New.
10396         (gen_inlined_subroutine_die): Call it.
10397         (maybe_emit_file, init_file_table): Add comments.
10398         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
10399         maybe_emit_file.
10400         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
10401         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
10402         * tree.h (BLOCK_SOURCE_LOCATION): New.
10403         (struct tree_block): New field locus.
10404
10405 2005-07-26  Andreas Schwab  <schwab@suse.de>
10406
10407         PR rtl-optimization/23043
10408         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
10409         when allocating a struct unoccr.
10410
10411 2005-07-25  Richard Henderson  <rth@redhat.com>
10412
10413         PR 22626
10414         * tree-complex.c (gate_no_optimization): True if errors.
10415         * Makefile.in (tree-complex.o): Update dependencies.
10416
10417 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
10418
10419         * config/frv/predicates.md (integer_register_operand): Use
10420         GPR_AP_OR_PSEUDO_P.
10421
10422 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
10423
10424         PR tree-opt/22484
10425         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
10426         after fold.
10427         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
10428
10429 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
10430
10431         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
10432         types when flag_unsafe_math_optimizations is true.
10433
10434 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
10435
10436         * gcc.c (option_map): Add --sysroot.
10437         (process_command): Handle --sysroot.
10438         (display_help): Document it.
10439         * doc/cppopts.tex (-isysroot): Document.
10440         * doc/invoke.texi (--sysroot): Document.
10441         * doc/install.texi (--with-build-sysroot): Document.
10442
10443         * Makefile.in (inhibit_libc): New variable.
10444         (INHIBIT_LIBC_CFLAGS): Likewise.
10445         (LIBGCC2_CFLAGS): Include
10446         $(INHIBIT_LIBC_CFLAGS).
10447         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
10448         ($(T)crtbegin.o): Do not use @inhibit_libc@.
10449         ($(T)crtend.o): Likewise.
10450         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
10451         ($(T)crtendS.o): Likewise.
10452         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
10453         ($(T)crtendT.o): Likewise.
10454         (stmp-fixinc): Do not complain about missing headers if
10455         inhibit_libc.
10456         * configure.ac (inhibit_libc): Set it to true/false.
10457         (--with-build-sysroot): New option.  Use it to set
10458         SYSTEM_HEADER_DIR.
10459         * configure: Regenerated.
10460
10461 2005-07-25  Manfred Hollstein  <mh@suse.com>
10462
10463         * calls.c (store_one_arg): Fix unsigned comparison warning.
10464
10465 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
10466
10467         PR other/22337
10468         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
10469         (ggc_print_statistics): Initialize variable before use.
10470
10471 2005-07-25  Richard Guenther  <rguenther@suse.de>
10472
10473         * tree-dfa.c (mark_new_vars_to_rename): Protect against
10474         calling with a PHI_NODE argument.
10475
10476         * tree-flow-inline.h (overlap_subvar): Protect against
10477         possible overflow.
10478
10479 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
10480
10481         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
10482         * configure: Regenerate.
10483
10484 2005-07-25  Ira Rosen  <irar@il.ibm.com>
10485
10486         * expr.c (highest_pow2_factor): Make extern.
10487         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
10488         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
10489         record_array_differ_p, array_ptr_differ_p): Likewise.
10490         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
10491         additional cases. Call the above functions.
10492         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
10493         base_object_differ_p when there are two base objects. Otherwise, compare
10494         base address and offset. Call may_alias_p.
10495         (dump_data_reference): Use a correct field name.
10496         (analyze_array): Make static. Initialize new data-ref fields.
10497         (analyze_indirect_ref): New function.
10498         (init_data_ref): Initialize new data-ref fields.
10499         (strip_conversion): Moved from tree-vect-analyze.c.
10500         (analyze_offset_expr, get_ptr_offset, address_analysis,
10501         object_analysis): Likewise.
10502         (analyze_offset): New function.
10503         (create_data_ref): Likewise.
10504         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
10505         dimensions for ARRAY_REFs only.
10506         (build_classic_dist_vector): Make static.
10507         (access_functions_are_affine_or_constant_p): Call macro to get the
10508         address of access functions.
10509         (compute_all_dependences): Add new parameter
10510         compute_self_and_read_read_dependences. Compute self and read-read
10511         dependences if it is true.
10512         (find_data_references_in_loop): Call create_data_ref. Initialize new
10513         data-ref fields.
10514         (compute_data_dependences_for_loop): Add new parameter
10515         compute_self_and_read_read_dependences. Remove parameter nb_loops,
10516         compute nb_loops. Call compute_all_dependences,
10517         build_classic_dist_vector and build_classic_dir_vector with correct
10518         parameters.
10519         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
10520         with correct parameters. Compare dimensions for ARRAY_REFs only.
10521         (free_data_refs): Call macro to free access functions.
10522         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
10523         fields from stmt_vinfo.
10524         (struct base_object_info): New structure.
10525         (struct data_reference): Move fields to base_object_info. Add fields
10526         first_location and object_info for above structures. Move fields from
10527         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
10528         aligned_to.  Add macros to access the new fields.
10529         Update functions declarations.
10530         * tree-flow.h (is_aliased_with): Declare.
10531         * tree-loop-linear.c (linear_transform_loops): Call
10532         compute_data_dependences_for_loop with correct parameters.
10533         * tree-ssa-alias.c (is_aliased_with): New function.
10534         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
10535         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
10536         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
10537         vect_base_addr_differ_p, compute_subscript_distance and
10538         build_classic_dist_vector. Add printings. Check absolute value of
10539         distance.
10540         (vect_analyze_data_ref_dependences): Go through ddrs instead of
10541         data-refs.
10542         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
10543         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
10544         to bytes. Add printing.
10545         (vect_compute_data_refs_alignment): Go through loads and stores in one
10546         loop.
10547         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
10548         vect_analyze_data_ref_access): Likewise.
10549         (vect_analyze_pointer_ref_access): Remove.
10550         (vect_address_analysis, vect_object_analysis): Likewise.
10551         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
10552         and analyze data-refs in the loop.
10553         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
10554         fields of data-ref instead of stmt. Add init to the offset from the
10555         base.
10556         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
10557         (vect_update_init_of_dr): Likewise.
10558         (vect_update_inits_of_drs): Go through loads and stores in one loop.
10559         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
10560         removed fields.
10561         (new_loop_vec_info): Initialize new fields.
10562         (destroy_loop_vec_info): Free new fields.
10563         (vect_strip_conversion): Remove.
10564         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
10565         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
10566         datarefs. Add new field ddrs.
10567         Add macros for the new fields access.
10568         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
10569         base_aligned_p, misalignment, memtag, ptr_info and subvars.
10570         Remove their macros.
10571         * tree.h (highest_pow2_factor): Declare.
10572
10573 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
10574
10575         * calls.c (store_one_arg): Check for sibling call MEM arguments
10576         from already clobbered incoming argument area.
10577
10578 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10579
10580         * c-common.c (check_missing_format_attribute): New.
10581         * c-common.h (check_missing_format_attribute): Likewise.
10582         * c-typeck.c (convert_for_assignment): Use it.
10583
10584 2005-07-24  Andreas Schwab  <schwab@suse.de>
10585
10586         * config/m68k/m68k.md ("extendqidi2"): When source is an address
10587         register use a word move.  Correct operand of ext.w in 68000 code.
10588
10589 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
10590
10591         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
10592         variables as declarations, rather than definitions.
10593
10594 2005-07-24  Ira Rosen  <irar@il.ibm.com>
10595
10596         PR tree-optimization/22526
10597         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
10598         of the zero node.
10599
10600 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
10601
10602         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
10603         that C99 reserve for future use. Use it to define clog10,
10604         clog10f and clog10l.
10605
10606 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10607
10608         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
10609         * configure.ac: Check for -Wmissing-format-attribute.
10610
10611         * configure: Regenerate.
10612
10613 2005-07-23  Richard Henderson  <rth@redhat.com>
10614
10615         PR tree-optimization/22623
10616         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
10617
10618 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
10619
10620         PR target/22577
10621         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
10622
10623 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10624
10625         * Makefile.in (C_TREE_H): Update dependencies.
10626         * c-tree.h: Include toplev.h.
10627         * diagnostic.h (diagnostic_set_info): Add format attribute.
10628         * rtl-error.c (diagnostic_for_asm): Likewise.
10629
10630 2005-07-23  Chao-ying Fu  <fu@mips.com>
10631
10632         * config/mips/mips-dsp.md: New file.
10633         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
10634         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
10635         functions.
10636         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
10637         MIPS_BUILTIN_BPOSGE32.
10638         (mips_expand_builtin_direct): Add one parameter to indicate that
10639         builtin functions need to return a value.
10640         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
10641         functions.
10642         (mips_regno_to_class): Add classes for 12 new DSP registers.
10643         (mips_subword): Change to check four HI registers.
10644         (mips_output_move): Output move to and from 6 new DSP accumulators.
10645         (override_options): Make sure -mdsp and -mips16 are not used together.
10646         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
10647         for machine modes.
10648         (mips_conditional_register_usage): Disable 6 new DSP accumulators
10649         when !TARGET_DSP.
10650         (print_operand): Add 'q' for printing DSP accumulators.
10651         (mips_cannot_change_mode_class): Check ACC_REGS.
10652         (mips_secondary_reload_class): Check ACC_REGS.
10653         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
10654         (mips_register_move_cost): Check ACC_REGS.
10655         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
10656         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
10657         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
10658         (dsp_bdesc): New array.
10659         (bdesc_arrays): Add DSP builtin function table.
10660         (mips_prepare_builtin_arg): Check predicate again after
10661         copy_to_mode_reg.
10662         (mips_expand_builtin): Add one more parameter to
10663         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
10664         MIPS_BUILTIN_BPOSGE32.
10665         (mips_init_builtins): Initialize new function types.
10666         (mips_expand_builtin_direct): Check if builtin functions need to
10667         return a value and pass operands properly.
10668         (mips_expand_builtin_bposge): New function.
10669         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
10670         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
10671         (FIRST_PSEUDO_REGISTER): Increase to 188.
10672         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
10673         Update for 12 new DSP registers.
10674         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
10675         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
10676         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
10677         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
10678         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
10679         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
10680         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
10681         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
10682         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
10683         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
10684         (REGISTER_NAMES): Add names for 12 new DSP registers.
10685         * config/mips/mips.md: Include mips-dsp.md.
10686         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
10687         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
10688         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
10689         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
10690         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
10691         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
10692         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
10693         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
10694         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
10695         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
10696         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
10697         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
10698         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
10699         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
10700         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
10701         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
10702         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
10703         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
10704         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
10705         (UNSPEC_RDDSP): New constants.
10706         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
10707         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
10708         A<-d alternative.
10709         * config/mips/mips.opt (-mdsp): New option.
10710         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
10711         (reg_imm10_operand): New predicates.
10712         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
10713         * doc/invoke.texi (-mdsp): Document new option.
10714
10715 2005-07-22  DJ Delorie  <dj@redhat.com>
10716
10717         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
10718         to warning calls.
10719         * tree-inline.c (inlinable_function_p): Likewise.
10720
10721 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
10722
10723         PR debug/21828
10724         * toplev.c (check_global_declarations): Do not mark undefined
10725         variables as DECL_IGNORED_P.
10726         * varasm.c (first_global_object_name): GTY it.
10727         (weak_global_object_name): Likewise.
10728         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
10729         a string to go into {weak,first}_global_object_name.
10730
10731 2005-07-22  DJ Delorie  <dj@redhat.com>
10732
10733         * c-format.c (check_function_format): Change warning control
10734         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
10735
10736 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
10737
10738         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
10739         &PTR->FLD a dereference of PTR.
10740         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
10741         a potential dereference of PTR.
10742
10743 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
10744
10745         PR rtl-optimization/20370
10746         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
10747         call allocate_reg_info if necessary.
10748
10749         PR rtl-optimization/21848
10750         * calls.c (emit_library_call_value_1): For const functions, add
10751         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
10752
10753         PR rtl-optimization/22445
10754         * cselib.c (target.h): Include.
10755         (rtx_equal_for_cselib_p): Allow commutative matches.
10756         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
10757         Remove MODE parameter.  Changed all callers.
10758
10759         PR rtl-optimization/22258
10760         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
10761         New functions.
10762         (try_combine): Use likely_spilled_retval_p.
10763
10764 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
10765
10766         * config.gcc: Add crx-elf support.
10767
10768         * doc/contrib.texi: Mention crx.
10769         * doc/extend.texi: Document crx extensions.
10770         * doc/install.texi: Document crx install.
10771         * doc/invoke.texi: Document crx options.
10772         * doc/md.texi: Document crx constraints.
10773
10774         * config/crx/crx-protos.h: New file.
10775         * config/crx/crx.c: New file.
10776         * config/crx/crx.h: New file.
10777         * config/crx/crx.md: New file.
10778         * config/crx/crx.opt: New file.
10779         * config/crx/t-crx: New file.
10780
10781 2005-07-22  Manfred Hollstein  <mh@suse.com>
10782
10783         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
10784         warnings.
10785         (int_add_graph_edge): Likewise.
10786         (collapse_nodes): Likewise.
10787         (process_unification_queue): Likewise.
10788
10789 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10790             Laurent GUERBY  <laurent@guerby.net>
10791
10792         PR tree-optimization/22336
10793         * function.c (record_block_change): Check for
10794         cfun->ib_boundaries_block.
10795
10796 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
10797
10798         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
10799         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
10800
10801 2005-07-21  DJ Delorie  <dj@redhat.com>
10802
10803         * toplev.c (warn_deprecated_use): Add warning control to warning
10804         call.
10805         * c-typeck.c (parser_build_binary_op): Likewise.
10806         (c_finish_if_stmt): Likewise.
10807         * c-common.c (check_function_sentinel): Likewise.
10808         (check_nonnull_arg): Likewise.
10809
10810 2005-07-21  Richard Henderson  <rth@redhat.com>
10811
10812         PR tree-opt/22504
10813         * tree-complex.c (complex_ssa_name_components): New.
10814         (cvc_lookup): Allow entry not found.
10815         (create_components): Remove.
10816         (create_one_component_var, get_component_var): New.
10817         (get_component_ssa_name, set_component_ssa_name): New.
10818         (extract_component): Use get_component_ssa_name.
10819         (update_complex_components): Use set_component_ssa_name.
10820         (update_complex_components_on_edge): Likewise.
10821         (update_phi_components): Create new PHI nodes directly, instead
10822         of adding insns to edges.
10823         (tree_lower_complex): Allocate and free complex_variable_components
10824         and complex_ssa_name_components here.
10825
10826 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
10827
10828         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
10829         revert to returning false.
10830
10831 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
10832
10833         PR target/21149
10834         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
10835
10836 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
10837
10838         PR target/22576
10839         * config/i386/i386.md (cmpxf): Change operand constraints
10840         to "nonmemory_operand".
10841
10842 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
10843
10844         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
10845
10846 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
10847
10848         PR middle-end/21180
10849         * fold-const.c (fold_build1): Add checksum for the operands.
10850         (fold_build2): Likewise.
10851         (fold_build3): Likewise.
10852
10853 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
10854
10855         PR middle-end/19055
10856         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
10857
10858 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
10859
10860         * common.opt (-fforward-propagate): Committed by mistake,
10861         removed.
10862
10863 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
10864
10865         * reg-stack.c: Fix comment typo(s).
10866         * tree-ssa-operands.c: Likewise.
10867         * tree-vectorizer: Likewise.
10868
10869 2005-07-21  Nick Clifton  <nickc@redhat.com>
10870
10871         * config/sh/symbian.c: Replace C++ style line comments with C
10872         style line comments.
10873         (symbian_add_attribute): Do not use a ? operator on the LHS of
10874         an assignment.
10875         (sh_symbian_handle_dll_attribute): Change the type of the
10876         method vector to "VEC(tree,gc)*" and use vector accessor
10877         macros to walk over the elements.
10878         (symbian_export_vtable_and_rtti_p): Likewise.
10879         (symbian_class_needs_attribute_p): Likewise.
10880
10881 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
10882
10883         PR target/22085
10884         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
10885         initialize targetm.resolve_overloaded_builtin here.
10886         (altivec_expand_overloaded_builtin): Make it non-static.
10887         * config/rs6000/rs6000-protos.h
10888         (altivec_expand_overloaded_builtin): New prototype.
10889         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
10890         targetm.resolve_overloaded_builtin here.
10891         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
10892
10893 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
10894             Zdenek Dvorak  <dvorakz@suse.cz>
10895
10896         PR tree-optimization/19210
10897         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
10898         New.
10899         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
10900         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
10901         rely on unproven assumptions.
10902         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
10903         * tree-flow.h (number_of_iterations_exit): Add final parameter.
10904         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
10905         to number_of_iterations_exit.
10906         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
10907         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
10908         * tree-ssa-loop-niter.c (find_loop_niter,
10909         estimate_numbers_of_iterations_loop): Likewise.
10910         (number_of_iterations_exit): Honor the new options.
10911         * doc/invoke.texi (Wunsafe-loop-optimizations,
10912         funsafe-loop-optimizations): Document them.
10913
10914 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
10915
10916         PR rtl-optimization/22167
10917         * gcse.c (hoist_code): Fix hoist_exprs[] check.
10918
10919 2005-07-20  Adam Nemet  <anemet@lnxw.com>
10920
10921         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
10922         __do_global_dtors_aux longcall.
10923
10924 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
10925
10926         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
10927         (old_special_pred_table): Don't reference
10928         SPECIAL_MODE_PREDICATES.
10929         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
10930         * config/arc/arc.h: Don't mention PREDICATE_CODES.
10931         * config/sh/predicates.h: Don't mention
10932         SPECIAL_MODE_PREDICATES.
10933         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
10934         Remove.
10935
10936 2005-07-20  DJ Delorie  <dj@redhat.com>
10937
10938         * config.gcc: Add m32c-elf support.
10939
10940         * doc/contrib.texi: Mention m32c.
10941         * doc/extend.texi: Document m32c extensions.
10942         * doc/install.texi: Mention m32c.
10943         * doc/invoke.texi: Document m32c options.
10944         * doc/md.texi: Document m32c constraints.
10945
10946         * config/m32c/addsub.md: New file.
10947         * config/m32c/bitops.md: New file.
10948         * config/m32c/cond.md: New file.
10949         * config/m32c/jump.md: New file.
10950         * config/m32c/m32c-lib1.S: New file.
10951         * config/m32c/m32c-lib2.c: New file.
10952         * config/m32c/m32c-modes.def: New file.
10953         * config/m32c/m32c-pragma.c: New file.
10954         * config/m32c/m32c-protos.h: New file.
10955         * config/m32c/m32c.abi: New file.
10956         * config/m32c/m32c.c: New file.
10957         * config/m32c/m32c.h: New file.
10958         * config/m32c/m32c.md: New file.
10959         * config/m32c/m32c.opt: New file.
10960         * config/m32c/minmax.md: New file.
10961         * config/m32c/mov.md: New file.
10962         * config/m32c/muldiv.md: New file.
10963         * config/m32c/predicates.md: New file.
10964         * config/m32c/prologue.md: New file.
10965         * config/m32c/shift.md: New file.
10966         * config/m32c/t-m32c: New file.
10967
10968 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10969
10970         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
10971         (stack_protect_set, stack_protect_test): New expanders.
10972         (stack_protect_set_si, stack_protect_set_si_media,
10973         stack_protect_set_di_media, stack_protect_test_si,
10974         stack_protect_test_si_media, stack_protect_test_di_media):
10975         New insns.
10976
10977 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
10978
10979         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
10980
10981 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
10982
10983         * tree.h (tree_expr_nonzero_p): Export.
10984         * fold-const.c (tree_expr_nonzero_p): Likewise.
10985         Return true for CALL_EXPRs that are alloca calls.
10986         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
10987         against zero.
10988         * tree-flow.h (expr_computes_nonzero): Remove.
10989         * tree-vrp.c (expr_computes_nonzero): Remove.
10990         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
10991         (extract_range_from_unary_expr): Likewise.
10992         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
10993         tree_expr_nonzero_p.
10994
10995 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
10996
10997         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
10998         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
10999         extra arg "picreg" and use it instead of pic_offset_table_rtx.
11000         All callers changed.
11001         (frame_related_constant_load): New arg "related" which controls
11002         setting of RTX_FRAME_RELATED_P.  All callers changed.
11003         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
11004         (bfin_expand_prologue): Add stack limit checking.
11005         * config/bfin/bfin.md (trapifcc): New pattern.
11006
11007         * config/bfin/bfin.c: Include "langhooks.h".
11008         (def_builtin): Go through lang_hooks to call builtin_function.
11009
11010         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
11011         * config/bfin/predicates.md (symbol_ref_operand): New.
11012         (call_insn_operand): Delete.  All callers changed to use
11013         register_no_elim_operand.
11014         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
11015         call_cookie field.
11016         (function_arg): Use it to generate the call's operand 2.
11017         (bfin_longcall_p): New function.
11018         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
11019         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
11020         determine if the address needs to be in a REG.
11021         (bfin_handle_longcall_attribute): New function.
11022         (bfin_attribute_table): Add "longcall" and "shortcall".
11023         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
11024         (CUMULATIVE_ARGS): New member call_cookie.
11025         (PREDICATE_CODES): Add symbol_ref_operand.
11026         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
11027         extra USE to the pattern.
11028         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
11029         New patterns, split off call_insn, sibcall_insn, call_value_insn and
11030         sibcall_value_insn; now the new patterns handle direct calls and the
11031         old ones indirect calls.
11032         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
11033
11034 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
11035
11036         * doc/trouble.texi: Update section on handling of empty loops.
11037
11038 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
11039
11040         * config.gcc: Remove support for sparc-*-openbsd*,
11041         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
11042         ns32k-*-netbsd*.
11043         * config.host: Remove support for i860-*-sysv4* as a host.
11044         * config/i860/*, config/ip2k/*, config/ns32k/*,
11045         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
11046         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
11047         mention obsolete ports.
11048
11049 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
11050
11051         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
11052         soft frame pointer.
11053         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
11054         of frame_pointer_rtx.
11055         (sh_expand_epilogue): Likewise.
11056         (sh_set_return_address): Likewise.
11057         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
11058         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
11059         offsets from FRAME_POINTER_REGNUM.
11060         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
11061         (sh_register_names): Add initializer for sfp.
11062         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
11063         (VALID_REGISTER_P): Likewise.
11064         (FIRST_PSEUDO_REGISTER): Update.
11065         (DWARF_FRAME_REGISTERS): Define.
11066         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
11067         (HARD_FRAME_POINTER_REGNUM): Define.
11068         (FRAME_POINTER_REGNUM): Redefine.
11069         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
11070         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
11071         from FRAME_POINTER_REGNUM.
11072         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
11073         FRAME_POINTER_REGNUM.
11074         (REG_CLASS_CONTENTS): Add sfp.
11075         (REG_ALLOC_ORDER): Likewise.
11076         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
11077         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
11078         of frame_pointer_rtx.
11079         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
11080
11081 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
11082
11083         * fold-const.c (tree_expr_nonnegative_p): Only return true for
11084         ABS_EXPR when flag_wrapv is false because of INT_MIN.
11085         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
11086         of an ABS_EXPR.
11087         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
11088         ABS_EXPR<x>.
11089
11090 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
11091
11092         Make CONSTRUCTOR use VEC to store initializers.
11093         * c-common.c (complete_array_type): Update to cope with VEC in
11094         CONSTRUCTOR_ELTS.
11095         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
11096         (pp_c_constructor_elts): New function.
11097         * c-pretty-print.h (pp_c_constructor_elts): Declare.
11098         * c-typeck.c (build_function_call, build_c_cast, digest_init,
11099         struct constructor_stack, struct initializer_stack,
11100         constructor_elements, push_init_level, pop_init_level,
11101         add_pending_init, find_init_member, output_init_element): Update to
11102         cope with VEC in CONSTRUCTOR_ELTS.
11103         * coverage.c (build_fn_info_value, build_ctr_info_value,
11104         build_gcov_info): Likewise.
11105         * expr.c (categorize_ctor_elements_1, store_constructor,
11106         expand_expr_real_1): Likewise.
11107         * fold-const.c (fold_ternary): Likewise.
11108         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
11109         gimplify_init_constructor, gimplify_expr): Likewise.
11110         * tree-dump.c (dequeue_and_dump): Likewise.
11111         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
11112         node.
11113         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
11114         CONSTRUCTOR_ELTS.
11115         * tree-sra.c (generate_element_init_1): Likewise.
11116         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
11117         * tree-ssa-operands.c (get_expr_operands): Likewise.
11118         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
11119         * tree-vect-transform.c (vect_get_vec_def_for_operand):
11120         (get_initial_def_for_reduction): Likewise.
11121         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
11122         value handle in annotations.
11123         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
11124         tree_node_structure): Add support for constr_kind.
11125         (build_vector_from_ctor, build_constructor_single,
11126         build_constructor_from_list): New functions.
11127         (build_constructor): Update to take a VEC instead of a TREE_LIST.
11128         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
11129         Update to cope with VEC in CONSTRUCTOR_ELTS.
11130         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
11131         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
11132         CONSTRUCTOR_APPEND_ELT): New macros.
11133         (struct constructor_elt, struct tree_constructor): New data types.
11134         (union tree_node): Add tree_constructor field.
11135         * treestruct.def: Define TS_CONSTRUCTOR.
11136         * varasm.c (const_hash_1, compare_constant, copy_constant,
11137         compute_reloc_for_constant, output_addressed_constants,
11138         initializer_constant_valid_p, output_constant,
11139         array_size_for_constructor, output_constructor): Update to cope with
11140         VEC in CONSTRUCTOR_ELTS.
11141         * vec.h (VEC_empty, VEC_copy): New macros.
11142
11143 2005-07-19  Devang Patel  <dpatel@apple.com>
11144
11145         * dbxout.c (dbxout_type): Check Objective-C++ lang.
11146
11147 2005-07-19  Richard Henderson  <rth@redhat.com>
11148
11149         PR tree-opt/22278
11150         * gimplify.c (gimplify_expr): Use main variant type for the temp
11151         destination for a discarded volatile read.
11152         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
11153         casts between non-void types that change volatility.
11154
11155 2005-07-15  DJ Delorie  <dj@redhat.com>
11156
11157         * toplev.h: Add comment about the first parameter for warning().
11158         * errors.h: Likewise.
11159
11160         * c.opt (Wpragmas): New.
11161         * doc/invoke.texi: Document it.
11162
11163         * function.c (do_warn_unused_parameter): Add warning control to
11164         warning call.
11165         * c-decl.c (warn_if_shadowing): Likewise.
11166         * c-lex.c (cb_def_pragma): Likewise.
11167         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
11168         (pop_alignment): Likewise.
11169         (handle_pragma_pack): Likewise.
11170         (apply_pragma_weak): Likewise.
11171         (handle_pragma_weak): Likewise.
11172         (handle_pragma_redefine_extname): Likewise.
11173         (add_to_renaming_pragma_list): Likewise.
11174         (handle_pragma_extern_prefix): Likewise.
11175         (maybe_apply_renaming_pragma): Likewise.
11176         (handle_pragma_visibility): Likewise.
11177
11178         * config/c4x/c4x-c.c (BAD): Likewise.
11179         (c4x_parse_pragma): Likewise.
11180         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
11181         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
11182         (rs6000_pragma_longcall): Likewise.
11183         * config/v850/v850-c.c (pop_data_area): Likewise.
11184         (ghs_pragma_section): Likewise.
11185         (ghs_pragma_section): Likewise.
11186         (ghs_pragma_interrupt): Likewise.
11187         (ghs_pragma_starttda): Likewise.
11188         (ghs_pragma_startsda): Likewise.
11189         (ghs_pragma_startzda): Likewise.
11190         (ghs_pragma_endtda): Likewise.
11191         (ghs_pragma_endsda): Likewise.
11192         (ghs_pragma_endzda): Likewise.
11193
11194 2005-07-19  Danny Berlin <dberlin@dberlin.org>
11195             Kenneth Zadeck <zadeck@naturalbridge.com>
11196
11197         * Makefile.in: Removed tree-promote-statics.c
11198         * tree-promote-statics.c: Removed.
11199         * common.opt: Removed flag-promote-statics.
11200         * opts.c: Ditto.
11201         * passes.c: Removed tree-promote-statics pass.
11202         * tree-pass.h: Ditto.
11203         * timevar.def: Removed TV_PROMOTE_STATICS.
11204
11205
11206 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
11207
11208         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
11209         and *-*-freebsd9.
11210         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
11211
11212 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11213
11214         PR c/22476
11215         * c-common.c (check_function_arguments): Call
11216         'check_function_format' if either -Wformat or
11217         -Wmissing-format-attribute are specified.
11218         * c-format.c (check_function_format): Check -Wformat before
11219         calling 'check_format_info'.
11220         * c-opts.c (c_common_post_options): Don't warn for
11221         -Wmissing-format-attribute without -Wformat.
11222         * c-typeck.c (convert_for_assignment): Detect additional cases for
11223         -Wmissing-format-attribute.
11224         * doc/invoke.texi (-Wmissing-format-attribute): Document new
11225         behavior.
11226
11227 2005-07-19  Richard Guenther  <rguenther@suse.de>
11228
11229         * config/i386/i386.md (lrint<mode>2): Use temporary
11230         instead of clobbering non-existent memory.
11231
11232 2005-07-19  Nick Clifton  <nickc@redhat.com>
11233
11234         * config/avr/avr.c (legitimate_address_p): Fix debugging print
11235         statement to avoid displaying ASCII control characters.
11236
11237 2005-07-19  Ben Elliston  <bje@au.ibm.com>
11238
11239         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
11240         * cfganal.c (find_edge_index): Ditto.
11241         * combine.c (combine_instructions): Ditto.
11242         * ddg.c (create_scc): Ditto.
11243         (find_successors): Ditto.
11244         (find_predecessors): Ditto.
11245         (find_nodes_on_paths): Ditto.
11246         (longest_simple_path): Ditto.
11247         * flow.c (update_life_info): Ditto.
11248         (count_or_remove_death_notes): Ditto.
11249         (clear_log_links): Ditto.
11250         * modulo-sched.c (generate_reg_moves): Ditto.
11251         (find_max_asap): Ditto.
11252         (find_max_hv_min_mob): Ditto.
11253         (find_max_dv_min_mob): Ditto.
11254         * sbitmap.c (sbitmap_first_set_bit): Ditto.
11255         * sched-rgn.c (extract_edgelst): Ditto.
11256         * tree-into-ssa.c (prepare_names_to_update): Ditto.
11257         (dump_update_ssa): Ditto.
11258         (ssa_names_to_replace) Ditto.
11259         (switch_virtuals_to_full_rewrite): Ditto.
11260         (update_ssa): Ditto.
11261         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
11262
11263 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
11264
11265         Fix PR tree-optimization/22483
11266
11267         * tree-complex.c (create_components): Use
11268         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
11269         * tree-flow-inline.h (fill_referenced_var_vec): New function.
11270         * tree-flow.h (safe_referenced_var_iterator): New structure.
11271         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
11272         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
11273         safe_referenced_var iterator.
11274         (add_type_alias): Ditto.
11275
11276 2005-07-19  Steven Bosscher  <stevenb@suse.de>
11277
11278         * loop-init.c (rest_of_handle_loop2): Remove.
11279         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
11280         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
11281         (pass_rtl_loop_init, pass_rtl_loop_done,
11282         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
11283         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
11284         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
11285         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
11286         pass_tree_loop_done, and pass_tree_unswitch.
11287         (gate_loop): Rename to gate_tree_loop.
11288         * passes.c (init_optimization_passes): Update for renamed tree
11289         loop passes.  Add the new loop2 passes as subpasses of loop2.
11290         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
11291         Update for the renamed tree loop passes.
11292
11293 2005-07-18  Ian Lance Taylor  <ian@airs.com>
11294
11295         PR middle-end/22057
11296         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
11297         blocks when optimizing.
11298
11299 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
11300
11301         * common.opt (frename-registers): Initialize to 2.
11302         (fweb): Ditto.
11303         (fgcse-after-reload): Ditto.
11304         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
11305         (process_options): Only change flag_web, flag_rename_registers,
11306         and flag_rerun_cse_after_loop if not explicitly set by user.
11307
11308 2005-07-18  Jan Beulich  <jbeulich@novell.com>
11309
11310         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
11311         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
11312         in 64-bit mode the same as DImode in 32-bit mode.
11313         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
11314         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
11315         mode. Add new mode parameter.
11316         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
11317         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
11318         x86_64_shift_adj): New expanders.
11319         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
11320         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
11321         insns.
11322         Respective new splitters. Use renamed shift splitter helpers in 32-bit
11323         DImode shift splitters.
11324         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
11325         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
11326         mode parameter.
11327
11328 2005-07-18  Jan Beulich  <jbeulich@novell.com>
11329
11330         * i386.md (movdi_extzv_1): New.
11331         (zero_extendhidi2): Combine alternatives and never force use of
11332         REX64 prefix.
11333         (zero_extendqidi2): Likewise. Don't restrict input selection.
11334
11335 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
11336
11337         Fix PR tree-optimization/22531
11338         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
11339          moment.
11340
11341 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
11342
11343         * tree-promote-statics.c (pass_promote_statics): Change dump file
11344          name.
11345
11346 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
11347
11348         * tree-optimize.c (init_tree_optimization_passes): Add
11349         pass_eliminate_useless_stores pass.
11350         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
11351         * tree-ssa-pre.c (is_copy_stmt): New function.
11352         (follow_copies_till_vuse): Ditto.
11353         (do_eustores): Ditto.
11354         (gate_eustores): Ditto.
11355
11356 2005-07-16  Richard Henderson  <rth@redhat.com>
11357
11358         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
11359
11360 2005-07-16 Danny Berlin <dberlin@dberlin.org>
11361            Kenneth Zadeck <zadeck@naturalbridge.com>
11362
11363         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
11364         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
11365         ipa-type-escape.h, tree-promote-statics.c
11366         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
11367         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
11368         tree-promote-statics.c: new files.
11369         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
11370         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
11371         int nonlocal_set_p, mark_constant_function): Deleted.
11372         (rest_of_handle_cfg): Removed call to mark_constant_function.
11373         (nonoverlapping_component_refs_p): Added calls to support
11374         type based aliasing.
11375         * tree-ssa-alias.c (may_alias_p,
11376         compute_flow_insensitive_aliasing): Ditto.
11377         * calls.c (flags_from_decl_or_type): Removed reference to
11378         cgraph_rtl_info.
11379         * c-typeck.c (convert_arguments): Make builtins tolerant of having
11380         too many arguments.  This is necessary for Spec 2000.
11381         * cgraph.h (const_function, pure_function): Removed.
11382         * common.opt: Added "fipa-pure-const", "fipa-reference",
11383         "fipa-type-escape", and "ftree-promote-static".
11384         * opts.c: Ditto.
11385         * passes.c: Added ipa and tree-promote-statics passes.
11386         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
11387         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
11388         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
11389         * tree-flow.h: Added exposed sra calls and addition of
11390         reference_vars_info field for FUNCTION_DECLS.
11391         * tree-pass.h: Added passes.
11392         * tree-sra.c: (sra_init_cache): New function.
11393         (sra_insert_before, sra_insert_after) Made public.
11394         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
11395         and made public.
11396         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
11397         aliasing. (may_alias_p): Added code to use type escape analysis to
11398         improve alias sets.
11399         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
11400         code to prune clobbers of static variables based on information
11401         produced in ipa-reference pass.  Changed call clobbering so that
11402         statics are not marked as clobbered if the call does not clobber
11403         them.
11404
11405 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
11406
11407         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
11408         too.
11409
11410 2005-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
11411
11412         * doc/install.texi (*-*-solaris2*): Document recommended version
11413         of GNU binutils and mention GNU linker problem on Solaris 10.
11414
11415 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
11416
11417         PR c/22421
11418         * c-decl.c (c_build_bitfield_integer_type): New function.
11419         (finish_struct): Call it.
11420         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
11421
11422 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11423
11424         * c-typeck.c (digest_init): Call 'convert_for_assignment'
11425         before returning.
11426
11427 2005-07-16  Jan Hubicka  <jh@suse.cz>
11428
11429         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
11430         (scale_bbs_frequencies_int): Watch roundoff errors.
11431         * predict.c (return_prediction): Initialize return_stmt.
11432
11433 2005-07-16  Jan Hubicka  <jh@suse.cz>
11434
11435         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
11436         after RTL profiling.
11437
11438 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
11439
11440         PR middle-end/22398
11441         * fold-const.c (build_range_check): Convert high/low to etype
11442         if we are only comparing against exp.
11443
11444 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
11445
11446         Fix PR tree-optimization/22376
11447         * tree-ssa-structalias.c (build_constraint_graph): We really meant
11448         special var here.
11449         (need_to_solve): New function.
11450         (compute_points_to_sets): Use it.
11451
11452 2005-07-15  Jan Hubicka  <jh@suse.cz>
11453
11454         * cfg.c (update_bb_profile_for_threading): More diagnostic.
11455         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
11456
11457 2005-07-15  Richard Guenther  <rguenther@suse.de>
11458
11459         * c-common.c (handle_flatten_attribute): New function.
11460         Add flatten function attribute.
11461         * doc/extend.texi: Document flatten function attribute.
11462         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
11463         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
11464         New functions.
11465         (cgraph_decide_inlining): Handle functions with flatten
11466         attribute.
11467
11468 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
11469
11470         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
11471         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
11472         UNSPEC_XCHG, UNSPEC_AND): New.
11473         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
11474         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
11475         * config/rs6000/sync.md (FETCHOP): New code macro.
11476         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
11477         New code attrs.
11478         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
11479         (sync_compare_and_swap<mode>): Same.
11480         (sync_lock_test_and_set<mode>): Same.
11481         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
11482         for QImode and HImode, and not PPC405.
11483         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
11484         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
11485         (sync_<fetchop>{si,di}_internal): New.
11486         (sync_nand{si,di}_internal): New.
11487         (sync_old_<fetchop>{si,di}_internal): New.
11488         (sync_old_nand{si,di}_internal): New
11489         (sync_new_<fetchop>{si,di}_internal): New.
11490         (sync_new_nand{si,di}_internal): New.
11491         (atomic_and{si,di}): New.
11492         (sync_new_nand{si,di}_internal): New.
11493         (atomic_and{si,di}): New.
11494         (sync_add<mode>_internal): Delete.
11495         (sync_addshort_internal): Use unspec instead of unspec_volatile.
11496         (sync_sub<mode>_internal): Delte.
11497         (sync_subshort_internal): New.
11498         (sync_andsi_internal): Use unspec instead of unspec_volatile.
11499         (sync_anddi_internal): Delete.
11500         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
11501         (sync_booldi_internal): Delete.
11502         (sync_boolc<mode>_internal): Delete.
11503         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
11504         (sync_boolc<mode>_internal2): Delete.
11505         (sync_boolcc<mode>_internal): Delete.
11506         (isync, lwsync): Use unspec instead of unspec_volatile.
11507         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
11508         Revert UNSPEC_VOLATILE.
11509         (rs6000_split_atomic_op): New.
11510         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
11511
11512 2005-07-14  Eric Christopher  <echristo@redhat.com>
11513
11514         * config/mips/mips.c (mips_canonicalize_comparison): Cast
11515         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
11516
11517 2005-07-14  Eric Christopher  <echristo@redhat.com>
11518
11519         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
11520
11521 2005-07-14  Steven Bosscher  <stevenb@suse.de>
11522
11523         PR tree-optimization/22230
11524         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
11525         the computation of the four cross productions for "range op range".
11526
11527 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
11528             Ulrich Weigand  <uweigand@de.ibm.com>
11529
11530         PR target/20126
11531         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
11532         in some insn.
11533
11534 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
11535
11536         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
11537
11538 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
11539
11540         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
11541
11542 2005-07-14  Richard Guenther  <rguenther@suse.de>
11543
11544         PR middle-end/22347
11545         * config/i386/i386-protos.h (ix86_function_value): Change
11546         prototype to match new target hook.
11547         * config/i386/i386.c (ix86_value_regno): Change prototype
11548         to take extra type argument.
11549         (TARGET_FUNCTION_VALUE): Define.
11550         (ix86_function_ok_for_sibcall): Pass extra argument to
11551         ix86_value_regno, check return slot rtx for exact match.
11552         (ix86_function_value): Take extra parameter.  Dispatch to
11553         ix86_value_regno with fndecl/fntype as provided.
11554         (ix86_value_regno): Handle extra type argument.
11555         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
11556
11557         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
11558         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
11559         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
11560         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
11561         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
11562
11563 2005-07-14  Richard Guenther  <rguenther@suse.de>
11564
11565         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
11566         * calls.c (expand_call): Pass fntype to hard_function_value.
11567         (emit_library_call_value_1): Likewise.
11568         * explow.c: Include target.h.
11569         (hard_function_value): Take extra argument, the fntype.
11570         Use new target hook for function_value.
11571         * expr.h (hard_function_value): Change prototype.
11572         * function.c (aggregate_value_p): Pass 0 as fntype to
11573         hard_function_value.
11574         (assign_parms): Use new target hook for function_value.
11575         Pass 0 as fntype to hard_function_value.
11576         (expand_function_end): Likewise.
11577         * reg-stack.c: Include target.h.
11578         (stack_result): Use new target hook for function_value.
11579         * target-def.h: New target hook function_value.
11580         * target.h: Likewise.
11581         * targhooks.c (default_function_value): New function.
11582         * targhooks.h (default_function_value): Declare.
11583
11584 2005-07-13  Ian Lance Taylor  <ian@airs.com>
11585
11586         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
11587
11588 2005-07-14  Jan Hubicka  <jh@suse.cz>
11589
11590         * tree-dfa.c (dump_variable): Use default_def function.
11591         * tree-ssa-alias.c (dump_points_to_info): Likewise.
11592         * tree-ssa.c (verify_use): Likewise.
11593         * tree-ssanames.c (release_ssa_name): Likewise.
11594         * tree-tailcall.c (eliminate_tail_call): Likewise.
11595         (tree_optimize_tail_calls_1): Likewise.
11596         * tree-vrp.c (get_value_range): Likewise.
11597
11598 2005-07-14  Ben Elliston  <bje@au.ibm.com>
11599
11600         * gcc.c (main): Compare language[0] with '*' when iterating over
11601         the infiles.
11602
11603 2005-07-13  Adrian Straetling  <straetling@de.ibm.com>
11604
11605         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
11606         "s390_emit_compare".  Add handling of CCZ1mode.
11607         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
11608         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
11609         checking.
11610         (s390_branch_condition_mask): Add CCZ1mode handling.
11611         * config/s390/s390.md: ("seq", "*seq"): New pattern.
11612         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
11613         Use CCZ1mode instead of CCZmode.
11614         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
11615
11616 2005-07-13  Adrian Straetling  <straetling@de.ibm.com>
11617
11618         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
11619         pattern.
11620         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
11621
11622 2005-07-13  Eric Christopher  <echristo@redhat.com>
11623
11624         * config/mips/mips.c (mips_canonicalize_comparison): New.
11625         (mips_emit_int_relational): Use.
11626
11627 2005-07-13  Eric Christopher  <echristo@redhat.com>
11628
11629         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
11630         static extra parts.
11631         * config/s390/s390.md: Include tpf.md. Move tpf specific
11632         patterns...
11633         * config/s390/tpf.md: To here.
11634         * config/s390/s390.opt: Move tpf specific options...
11635         * config/s390/tpf.opt: to here. Add mmain option.
11636         * config/s390/tpf-unwind.h: Remove unnecessary defines.
11637         * config/s390/tpf.h: Rewrite.
11638
11639 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
11640
11641         * doc/tm.texi: Remove @xref{Cross-profiling}.
11642
11643 2005-07-13  Jeff Law  <law@redhat.com>
11644
11645         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
11646         expressions, test their _DECL operands for pointer equality rather
11647         than using operand_equal_p.
11648
11649 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
11650
11651         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
11652         (TARGET_POSIX_IO): This.
11653         * config/darwin.h: Likewise.
11654         * config/freebsd.h: Likewise.
11655         * config/linux.h: Likewise.
11656         * config/lynx.h: Likewise.
11657         * config/netbsd.h: Likewise.
11658         * config/rs6000/linux64.h: Likewise.
11659         * config/rs6000/linux.h: Likewise.
11660         * config/s390/tpf.h: Likewise.
11661         * config/sh/embed-elf.h: Likewise.
11662         * config/sparc/linux64.h: Likewise.
11663         * config/sparc/linux.h: Likewise.
11664         * config/svr4.h: Likewise.
11665         * gcov-io.h: Likewise.
11666
11667         * doc/tm.texi: Updated.
11668
11669         * libgcov.c (create_file_directory): Defined only if
11670         TARGET_POSIX_IO is defined.
11671         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
11672         is defined.
11673
11674 2005-07-13  Jan Hubicka  <jh@suse.cz>
11675
11676         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
11677
11678 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
11679
11680         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
11681         structure as argument.
11682
11683 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
11684
11685         PR tree-optimization/21921
11686         * tree-iterator.c (tsi_link_before): Support the case when
11687         tsi_end_p (tsi) == true.
11688
11689 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
11690
11691         PR tree-optimization/22442
11692         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
11693         correctly.
11694
11695 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
11696
11697         PR rtl-optimization/20376
11698         * toplev.c (process_options): Enable -fweb and -frename-registers when
11699         unrolling.
11700         * doc/invoke.texi: Update the information about when -fweb and
11701         -frename-registers are enabled.
11702
11703 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
11704
11705         PR tree-opt/21840
11706         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
11707         if *rhs_p is not a SSA_NAME.
11708
11709 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
11710
11711         Fix PR tree-optimization/22422
11712         * tree-ssa-structalias.c (struct variable_info): Add flag for
11713         special vars.
11714         (get_varinfo): Now a static function.
11715         (new_varinfo): init has_union and is_special_var to false.
11716         (solution_set_add): Check has_union.
11717         (do_da_constraint): Move temporary variable so it gets reset
11718         properly.
11719         Also check for special variable.
11720         (do_ds_constraint): Ditto.
11721         (do_sd_constraint): Ditto.
11722         (do_structure_copy): Check for special variable.
11723         (find_func_aliases): Ditto.
11724         (init_base_vars): Set special vars properly.
11725
11726 2005-07-13  Jan Hubicka  <jh@suse.cz>
11727
11728         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
11729         do unit-at-a-time.
11730
11731         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
11732         (get_expr_operands): Fix thinko wrt flags and subvars.
11733
11734         PR tree-optimize/22379
11735         * tree-inline.c (expand_call_inline): Do not output sorry in early
11736         inlining.
11737
11738 2005-07-12  Dale Johannesen  <dalej@apple.com>
11739
11740         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
11741
11742 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
11743
11744         PR bootstrap/21704
11745         * host-linux.h: Include limits.h.
11746
11747 2005-07-12  Dale Johannesen  <dalej@apple.com>
11748
11749         * expr.c (compress_float_constant):  Add cost check.
11750         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
11751
11752 2005-07-12  Dale Johannesen  <dalej@apple.com>
11753
11754         * gcc.target/i386/compress-float-sse.c:  New.
11755         * gcc.target/i386/compress-float-sse-pic.c:  New.
11756         * gcc.target/i386/compress-float-387.c:  New.
11757         * gcc.target/i386/compress-float-387-pic.c:  New.
11758         * gcc.dg/compress-float-ppc.c:  New.
11759         * gcc.dg/compress-float-ppc-pic.c:  New.
11760
11761 2005-07-12  Eric Christopher  <echristo@redhat.com>
11762
11763         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
11764         static extra parts.
11765         * config/s390/s390.md: Include tpf.md. Move tpf specific
11766         patterns...
11767         * config/s390/tpf.md: To here.
11768         * config/s390/s390.opt: Move tpf specific options...
11769         * config/s390/tpf.opt: to here. Add mmain option.
11770         * config/s390/tpf-unwind.h: Remove unnecessary defines.
11771         * config/s390/tpf.h: Rewrite.
11772
11773 2005-07-12  Eric Christopher  <echristo@redhat.com>
11774
11775         * gcc.c (struct infile): Update comment for language.
11776         (main): Rewrite input file resetting code.
11777
11778 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
11779
11780         PR tree-opt/22335
11781         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
11782         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
11783         (lookup_avail_expr): Use constant_boolean_node instead
11784         of boolean_false_node/boolean_true_node.
11785
11786 2005-07-12  Ben Elliston  <bje@au.ibm.com>
11787
11788         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
11789         and use it when printing num_edges.
11790
11791 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
11792
11793         * doc/extend.texi (Blackfin Built-in Functions): New section.
11794         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
11795         @opindex.
11796
11797 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
11798
11799         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
11800         s/cmpstrsi/cmpstrnsi
11801         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
11802         'cmpstrnsi'.
11803         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
11804         (init_optabs): Initialize cmpstrn_optab.
11805         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
11806         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
11807         * expr.c: (enum insn_code cmpstrn_optab): Declare.
11808         * config/i386/i386.md: s/cmpstr/cmpstrn
11809         * config/c4x/c4x.md: s/cmpstr/cmpstrn
11810         * doc/md.texi: Update documentation.
11811
11812 2005-07-11  Richard Henderson  <rth@redhat.com>
11813
11814         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
11815         build_va_arg_indirect_ref.
11816         (alpha_gimplify_va_arg): Likewise.
11817         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
11818         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
11819         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
11820         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
11821         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
11822         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
11823         Likewise.
11824         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
11825
11826 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
11827
11828         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
11829         * passes.c (init_optimization_passes): Add pass_empty_loop.
11830         * tree-pass.h (pass_empty_loop): Declare.
11831         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
11832         try_remove_empty_loop, remove_empty_loops): New functions.
11833         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
11834         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
11835
11836 2005-07-12  Peter Barada  <peter@the-baradas.com>
11837
11838         PR middle-end/16719
11839         PR middle-end/18421
11840         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
11841         in address registers.
11842         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
11843         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
11844         alternative of addsi3_5200.
11845
11846 2005-07-11  Ian Lance Taylor  <ian@airs.com>
11847
11848         * config/mips/mips.md (ffs<mode>2): Remove.
11849
11850 2005-07-11  Ian Lance Taylor  <ian@airs.com>
11851
11852         * doc/tree-ssa.texi (Cleanups): Improve description of
11853         TRY_FINALLY_EXPR.
11854         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
11855
11856 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
11857
11858         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
11859         * tree.h (DECL_ARGUMENT_FLD): New macro.
11860
11861 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
11862
11863         Fix PR tree-optimization/22404
11864
11865         * tree-ssa-structalias.c (create_variable_info_for): Use
11866         correct offset.
11867
11868 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
11869
11870         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
11871         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
11872         for second comparison operand.
11873         * config/bfin/predicates.md (reg_or_const_int_operand): New.
11874
11875         * config/bfin/bfin.md (define_attr "type"): Add "sync".
11876         (define_insn_reservation "alu"): Likewise.
11877         (csync, ssync): Now of type sync.
11878         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
11879         -mcsync-anomaly -mspecld-anomaly.
11880         * config/bfin/bfin.opt (mcsync): Remove.
11881         (mcsync-anomaly, mspecld-anomaly): Add.
11882         * config/bfin/bfin.c: Include "insn-codes.h".
11883         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
11884         (TARGET_DEFAULT_TARGET_FLAGS): New.
11885         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
11886
11887 2005-07-11  Steven Bosscher  <stevenb@suse.de>
11888
11889         * basic-block.h: Give the BB flags enum a name, bb_flags.
11890         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
11891         * cfgcleanup.c (enum bb_flags): Remove here.
11892         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
11893         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
11894         (update_forwarder_flag): Likewise.
11895         (thread_jump): Likewise.
11896         (try_forward_edges): Likewise.
11897         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
11898         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
11899         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
11900
11901 2005-07-11  Richard Guenther  <rguenther@suse.de>
11902
11903         * config/i386/i386.opt: New target option -msseregparm.
11904         * config/i386/i386.c (override_options): Error out for
11905         -msseregparm but no SSE support.
11906         (ix86_function_sseregparm): Check for global sseregparm.
11907         * doc/invoke.texi: Document -msseregparm.
11908
11909 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
11910
11911         * config.gcc (m32r-*-linux*): Use the default extra_parts.
11912         (m32rle-*-linux*): Ditto.
11913
11914 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
11915
11916         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
11917         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
11918         bytes.
11919
11920 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11921
11922         PR middle-end/22239
11923         PR target/20126
11924         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
11925         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
11926
11927 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
11928
11929         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
11930         (varmap): Heapify varmap.
11931         (constraints): Heapify constraints.
11932         (struct constraint_graph): Heapify succs and preds.
11933         (constraint_vec_find): Update for heapification.
11934         (constraint_set_union): Ditto.
11935         (insert_into_complex): Ditto.
11936         (constraint_edge_vec_find): Ditto.
11937         (erase_graph_self_edge): Ditto.
11938         (add_graph_edge): Ditto.
11939         (get_graph_weights): Ditto.
11940         (merge_graph_nodes): Ditto.
11941         (build_constraint_graph): Ditto.
11942         (topo_visit): Ditto.
11943         (solve_graph): Ditto.
11944         (create_variable_info_for): Ditto.
11945         (init_base_vars): Ditto.
11946         (delete_points_to_sets): Free graph, varmap, and complex constraints.
11947         (condese_varmap_nodes): Free complex vector.
11948         (clear_edges_for_node): Clear succs and preds vector.
11949
11950 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
11951
11952         * tree-ssa-structalias.c (update_alias_info): Change counting of
11953         references to not include vdefs.
11954
11955 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
11956
11957         * tree-ssa-alias.c (free_used_part_map): Add missing free.
11958         (up_insert): Ditto.
11959
11960 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11961
11962         * pa.c (pa_commutative_p): Make PLUS commutative when
11963         TARGET_NO_SPACE_REGS is true.
11964
11965 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
11966
11967         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
11968         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
11969         * tree-dfa.c (dump_subvars_for): New.
11970         (debug_subvars_for): New.
11971         (dump_variable): Show subvariables if VAR has them.
11972         * tree-flow-inline.h (get_subvar_at): New.
11973         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
11974         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
11975         Update all users.
11976         (struct subvar): Change fields offset and size to unsigned
11977         HOST_WIDE_INT.
11978         (dump_subvars_for): Declare.
11979         (debug_subvars_for): Declare.
11980         (get_subvar_at): Declare.
11981         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
11982         to unsigned HOST_WIDE_INT *.
11983         (overlap_subvar): Likewise.
11984         * tree-gimple.c (is_gimple_reg): Always return false for
11985         SFTs and memory tags.
11986         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
11987         Update all callers.
11988         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
11989         (compute_may_aliases): Call compute_points_to_sets.
11990         (collect_points_to_info_for): Remove.
11991         (compute_points_to_and_addr_escape): Remove.
11992         (delete_alias_info): Call delete_points_to_sets.
11993         (compute_flow_sensitive_aliasing): If the call to
11994         find_what_p_points_to returns false, call set_pt_anything.
11995         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
11996         (set_pt_anything): Clear pi->pt_vars.
11997         (set_pt_malloc): Remove.
11998         (merge_pointed_to_info): Remove.
11999         (add_pointed_to_expr): Remove.
12000         (add_pointed_to_var): Remove.
12001         (collect_points_to_info_r): Remove.
12002         (is_escape_site): Make extern.
12003         (create_sft): New.
12004         (create_overlap_variables_for): Call it.
12005         * tree-ssa-copy.c (merge_alias_info): Never merge
12006         flow-sensitive alias information.
12007         * tree-ssa-operands.c (get_expr_operands): Adjust variables
12008         offset and size to be unsigned HOST_WIDE_INT.
12009         (add_to_addressable_set): Rename from note_addressable.
12010         Set TREE_ADDRESSABLE as the variables are added to the set.
12011         Update all users.
12012         (add_stmt_operand): Do not try to micro-optimize unmodifiable
12013         operands into VUSEs when adding V_MAY_DEFs for members in an
12014         alias set.
12015         * tree-ssa-operands.h (add_to_addressable_set): Declare.
12016         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
12017         (struct variable_info): Add bitfield is_heap_var.
12018         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
12019         (new_var_info): Initialize is_heap_var.
12020         (get_constraint_for): Add HEAP variables to the symbol table.
12021         Mark them with is_heap_var.
12022         (update_alias_info): New.  Taken mostly from the old
12023         compute_points_to_and_addr_escape.
12024         (handle_ptr_arith): New.
12025         (find_func_aliases): Call update_alias_info.
12026         Call handle_ptr_info for tcc_binary expressions.
12027         Call mark_stmt_modified.
12028         (create_variable_info_for): If DECL has subvars, do not create
12029         variables for its subvars.  Always add all the fields.
12030         (set_uids_in_ptset): If the solution includes ANYOFFSET and
12031         SFTs, then add all the SFTs of the structure.
12032         If VI->DECL is an aggregate with subvariables, add the SFT at
12033         VI->OFFSET.
12034         (find_what_p_points_to): If VI is an artificial variable,
12035         translate to bitfields in SSA_NAME_PTR_INFO.
12036         If the solution is empty, set pi->pt_vars to NULL
12037         (init_base_vars): Create ANYOFFSET.
12038         (compute_points_to_sets): Rename from create_alias_vars.
12039         Make extern.
12040         (pass_build_pta): Remove.
12041         (delete_points_to_sets): Rename from delete_alias_vars.
12042         (pass_del_pta): Remove.
12043         * tree-ssa-structalias.h (struct alias_info): Move from
12044         tree-ssa-alias.h.
12045         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
12046         NUM_REFERENCES_SET): Likewise.
12047         (compute_points_to_sets, delete_points_to_sets): Declare.
12048
12049 2005-07-09  Richard Henderson  <rth@redhat.com>
12050
12051         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
12052         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
12053         alpha_split_lock_test_and_set_12): New functions.
12054         * config/alpha/alpha-protos.h: Update.
12055         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
12056         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
12057         * config/alpha/sync.md (I12MODE): New.
12058         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
12059         (sync_<fetchop_name><I48MODE>): Likewise.
12060         (sync_nand<I48MODE>): Likewise.
12061         (sync_old_<fetchop_name><I48MODE>): Likewise.
12062         (sync_new_<fetchop_name><I48MODE>): Likewise.
12063         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
12064         (sync_compare_and_swap<I48MODE>): Likewise.
12065         (sync_lock_test_and_set<I48MODE>): Likewise.
12066         (sync_compare_and_swap<I12MODE>): New.
12067         (sync_compare_and_swap<I12MODE>_1): New.
12068         (sync_lock_test_and_set<I12MODE>): New.
12069         (sync_lock_test_and_set<I12MODE>_1): New.
12070
12071 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
12072
12073         PR 21356
12074         PR 22332
12075         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
12076
12077 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
12078
12079         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
12080         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
12081
12082 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
12083
12084         PR target/21656
12085         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
12086
12087 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
12088
12089         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
12090         memory_operand constraint.
12091         (store_conditional_<mode>): Same.
12092         (sync_compare_and_swap<mode>): Same.
12093         (sync_lock_test_and_set<mode>): Same.
12094
12095 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
12096
12097         Rewrite PIC support to more closely model actual instructions.
12098         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
12099         (cris_symbol): Remove prototypes for removed functions.
12100         (cris_pic_symbol_type_of, cris_valid_pic_const)
12101         (cris_expand_pic_call_address): Prototypes for new functions.
12102         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
12103         variable.
12104         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
12105         modifiers.
12106         <case ':'>: Add case for new punctuation character.
12107         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
12108         emitting (extra) PIC modifier.
12109         <case UNSPEC>: Do not assert for PLT.
12110         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
12111         (cris_expand_prologue, cris_expand_epilogue): Check
12112         for pic_offset_table_rtx usage instead of taking
12113         current_function_uses_pic_offset_table as the final word.
12114         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
12115         Remove flag_pic difference.
12116         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
12117         the moral equivalents of...
12118         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
12119         functions.
12120         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
12121         (cris_handle_option): Mark ARG as unused.
12122         (cris_expand_pic_call_address): New worker function for "call",
12123         "call_value".
12124         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
12125         output PIC constructs here.
12126         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
12127         as symbol-specific modifers, not whole or part of operands.
12128         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
12129         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
12130         constants and flag_pic.
12131         (CONSTANT_INDEX_P): Adjust for new functions.
12132         (enum cris_pic_symbol_type): New helper type.
12133         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
12134         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
12135         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
12136         define_constants.
12137         ("movsi"): Emit actual instructions for GOT and relative access.
12138         ("*movsi_got_load"): New pattern to set up the register holding
12139         the GOT pointer.
12140         ("*movsi_internal"): Operand 1 is not a plain general_operand.
12141         Adjust FIXME for 'S'.
12142         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
12143         Use "movs" for -fpic cases.
12144         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
12145         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
12146         ("call", "call_value"): Just call cris_expand_pic_call_address for
12147         PIC addresses.
12148         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
12149         Remove special pattern.
12150         ("*expanded_call_side", "*expanded_call_value_side"): New
12151         patterns.
12152         (gotplt-to-plt, gotplt-to-plt-side-call)
12153         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
12154         peephole2:s.
12155         * config/cris/cris/predicates.md
12156         ("cris_general_operand_or_gotless_symbol"): Remove unused
12157         predicate.
12158         ("cris_general_operand_or_symbol"): Adjust for new functions.
12159
12160 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
12161
12162         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
12163
12164 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
12165
12166         * Makefile.in (TREE_H): Add treestruct.def.
12167         (c-decl.o): Add pointer-set.h
12168         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
12169         visibility on regular DECL's.
12170         (merge_decls): Fix the copying of decl nodes of various types for
12171         the new structures.  Don't update RTL, section name, weak status,
12172         etc, on DECL's without RTL.
12173         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
12174         Don't check volatile on non-variable types.
12175         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
12176         to check whether we have seen arguments.
12177         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
12178         flag is checked before field (flag is common, field is not).
12179         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
12180         TS_DECL_COMMON could have an origin.
12181         (add_location_or_const_value_attribute): Don't check section name
12182         on non-var/function decls.
12183         (dwarf2out_var_location): Reverse order of tests.
12184         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
12185         with DECL_WRTL_CHECK.
12186         * expmed.c (make_tree): rtl is now in decl_with_rtl.
12187         * fold-const.c (fold_binary): Don't check weakness on
12188         non-var/function decls.
12189         (tree_expr_nonzero_p): Ditto.
12190         (fold_checksum_tree): Use tree_decl_extra as sizeof
12191         buffer.
12192         * ggc-page.c (extra_order_size_table): Add sizes for
12193         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
12194         tree_field_decl.
12195         * gimplify.c (gimplify_bind_expr): Only set
12196         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
12197         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
12198         without RTL.
12199         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
12200         * langhooks.h (init_ts). New langhook.
12201         * passes.c (rest_of_decl_compilation): Reverse order of tests.
12202         * print-tree.c (print_node): Update to only print fields that
12203         exist in the structures the passed decl has.
12204         * toplev.c (wrapup_global_declarations): Don't reset
12205         DECL_DEFER_OUTPUT on DECL's that don't contain it.
12206         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
12207         * tree-inline.c (remap_decl): Ditto.
12208         * tree-outof-ssa.c (create_temp): Reverse order of tests.
12209         * tree-pretty-print.c (print_declaration): Don't print
12210         DECL_REGISTER on things that don't contain it.
12211         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
12212         non-var/function decls.
12213         * tree.c (tree_contains_struct): New structure.
12214         (init_priority_for_decl): New hashtable.
12215         (tree_int_map): New structure.
12216         (tree_int_map_eq): New function.
12217         (tree_int_map_marked_p): Ditto.
12218         (tree_int_map_hash): Ditto.
12219         (tree_map): Move to tree.h.
12220         (tree_map_eq): Externalize.
12221         (tree_map_hash): Ditto.
12222         (tree_map_marked_p): Ditto.
12223         (init_ttree): Set up tree_contains_struct and call langhook.
12224         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
12225         (tree_code_size): Update for new structures.
12226         (tree_node_structure): Update for new structures.
12227         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
12228         without the field.
12229         (copy_node_stat):  Copy init priority.
12230         (build_decl_stat): Ditto for visibility.
12231         (ts_enum_names): New.
12232         (tree_contains_struct_check_failed): New function.
12233         (decl_init_priority_lookup): Ditto.
12234         (decl_init_priority_insert): Ditto.
12235         * treestruct.def: New file.
12236         * tree.h (CODE_CONTAINS_STRUCT): New macro.
12237         (CONTAINS_STRUCT_CHECK): Ditto.
12238         (tree_contains_struct_check_failed): New prototype.
12239         (DECL_CHECK): Removed.
12240         (DECL_MINIMAL_CHECK): New.
12241         (DECL_COMMON_CHECK): Ditto.
12242         (DECL_WRTL_CHECK): Ditto.
12243         (DECL_NON_COMMON_CHECK): Ditto.
12244         (DECL_WITH_VIS_CHECK): Ditto.
12245         (VAR_OR_FUNCTION_DECL_P): Ditto
12246         (struct tree_decl_minimal): New structure.
12247         (struct tree_decl_common): Ditto.
12248         (struct tree_decl_with_rtl): Ditto.
12249         (struct tree_decl_with_vis): Ditto.
12250         (struct tree_decl_non_common): Ditto.
12251         (struct tree_field_decl): Ditto.
12252         (struct tree_parm_decl): Ditto.
12253         (struct tree_var_decl): Ditto.
12254         (struct tree_function_decl): Ditto.
12255         (struct tree_const_decl): Ditto.
12256         (struct tree_result_decl): Ditto.
12257         (union tree_node): Add new structures.
12258         * var-tracking.c (track_expr_p): Reverse order of tests.
12259
12260         * doc/c-tree.texi: Add documentation on DECL node internal structure.
12261
12262 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
12263
12264         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
12265         * system.h: Poison FINALIZE_PIC.
12266         * doc/tm.texi (FINALIZE_PIC): Remove.
12267
12268 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
12269
12270         PR tree-opt/22329
12271         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
12272         to the correct type if we have a MODIFY_EXPR.
12273
12274 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
12275
12276         PR tree-optimization/22360
12277         * tree.c (upper_bound_in_type): Fix calculations for casting
12278         to a non-wider signed type and casting a signed value to a
12279         wider unsigned type.
12280         (lower_bound_in_type): Fix calculations for casting to a
12281         non-wider signed type.
12282
12283         PR tree-optimization/20139
12284         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
12285         release_defs.
12286         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
12287         fold_cond_expr_cond.
12288         * tree-ssanames.c (release_defs): Assert in_ssa_p.
12289         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
12290
12291 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
12292
12293         PR tree-opt/22356
12294         * tree-complex.c (expand_complex_libcall): Produce
12295         REALPART_EXPR/IMAGPART_EXPR with the correct type.
12296
12297 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
12298
12299         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
12300         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
12301         b" assert and inserted fastpath code for this case.
12302         (bitmap_ior): Removed "a != b" assert.
12303
12304 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
12305
12306         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
12307         (ENDFILE_SPEC): Likewise.
12308         * config/m32r/m32r.h (ASM_SPEC): Likewise.
12309
12310         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
12311         a large stack frame at epilogue.
12312
12313 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
12314
12315         * final.c: Include sdbout.h when required.
12316
12317 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
12318
12319         * config.gcc (*-*-darwin*): Only one target-specific header file
12320         for generic darwin.
12321         (powerpc-*-darwin*): Add version-specific header files.
12322         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
12323         * config.in: Regenerate.
12324         * configure: Regenerate.
12325         * gcc.c: Include xregex.h.
12326         (version_compare_spec_function): New.
12327         (spec_function): Add version-compare.
12328         (replace_outfile_spec_function): Reformat comment.
12329         (compare_version_strings): New.
12330         * config/darwin-c.c (version_as_macro): New.
12331         (builtin_define): New.
12332         (darwin_cpp_builtins): New.
12333         * config/darwin-protos.h (darwin_cpp_builtins): New.
12334         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
12335         (LIB_SPEC): Make unconditional, update comment.
12336         (TARGET_C99_FUNCTIONS): Define.
12337         * config/darwin.opt: Sort.
12338         (mmacosx-version-min=): New.
12339         * config/darwin7.h: Delete.
12340         * config/darwin8.h: Delete.
12341         * config/i386/darwin.h (): Call darwin_cpp_builtins.
12342         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
12343         (TARGET_C99_FUNCTIONS): Define.
12344         * config/rs6000/darwin7.h: New.
12345         * config/rs6000/darwin8.h: New.
12346         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
12347         (-mmacosx-version-min): Document.
12348
12349 2005-07-07  Ian Lance Taylor  <ian@airs.com>
12350
12351         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
12352
12353 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
12354
12355         PR middle-end/22239
12356         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
12357
12358 2005-07-07  Khem Raj  <kraj@mvista.com>
12359
12360         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
12361         in bytes, not words.
12362
12363 2005-07-07  Paul Brook  <paul@codesourcery.com>
12364
12365         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
12366         DEFAULT_FUNCTION_ARG_PADDING to upward.
12367
12368 2005-07-07  Richard Henderson  <rth@redhat.com>
12369
12370         * function.c (locate_and_pad_parm): Record parameter alignment in
12371         stack_alignment_needed.
12372
12373 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
12374
12375         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
12376         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
12377         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
12378         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
12379         (define_attr "type"): Add isync, sync, load_l, store_c.
12380         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
12381         Create scratch volatile MEM.
12382         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
12383         sync.
12384         (load_locked_<mode>): New.
12385         (store_conditional_<mode>): New.
12386         (sync_compare_and_swap<mode>): Replace with splitter.
12387         (sync_lock_test_and_set<mode>): Replace with splitter.
12388         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
12389         and UNSPECV_ISYNC.
12390         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
12391         is ics.  Attribute isync.
12392         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
12393         lwsync.
12394         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
12395         and UNSPECV_SYNC_OP.
12396         (emit_unlikely_jump): New.
12397         (emit_load_locked): New.
12398         (emit_store_conditional): New.
12399         (rs6000_split_compare_and_swap): New.
12400         (rs6000_split_lock_test_and_set): New.
12401         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
12402         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
12403         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
12404         rs6000_split_lock_test_and_set): Declare.
12405         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
12406         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
12407         store_c, isync, sync.
12408
12409 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
12410
12411         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
12412         filenames to gtyp-gen.h.
12413         (s-typ-gen): Use it in place of for loops.
12414
12415 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
12416
12417         * hooks.c (hook_bool_rtx_int_false): New function.
12418         * hooks.h (hook_bool_rtx_int_false): Declare.
12419         * target-def.h (TARGET_COMMUTATIVE_P): Define.
12420         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
12421         * target.h (struct gcc_target): Add commutative_p member.
12422         * targhooks.c (hook_bool_rtx_commutative_p): New function.
12423         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
12424         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
12425         (pa_commutative_p): New function.
12426         * jump.c (target.h): Include.
12427         (rtx_renumbered_equal_p): Use targetm.commutative_p.
12428         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
12429
12430 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
12431
12432         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
12433         (s390_expand_setmem): New.
12434         * config/s390/s390.c: Likewise.
12435         (print_shift_count_operand): Truncate to 12 bits instead of 6.
12436         Adapt comments.
12437         * config/s390/s390.md: ("setmem<mode>"): Accept character as
12438         general_operand.  Call new function "s390_expand_setmem".
12439         ("clrmem_long", "*clrmem_long"): Rewrite to ...
12440         ("setmem_long", "*setmem_long"): ... this.
12441
12442 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
12443
12444         * config/s390/s390.c: (optimization_options): Enable
12445         TARGET_MVCLE at -Os.
12446         * doc/invoke.texi: Document changes in default behaviour.
12447         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
12448
12449 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
12450
12451         * expr.c: (set_storage_via_setmem): Convert opchar to mode
12452         defined by back-end.
12453
12454 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
12455
12456         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
12457         all sets in the pattern.
12458         * config/rs6000/rs6000.md (stack_protect_testsi,
12459         stack_protect_testdi): Likewise.
12460
12461 2005-07-06  Jeff Law  <law@redhat.com>
12462
12463         * tree-vrp.c (simplify_using_ranges): Kill.
12464         (vrp_finalize): Remove call to simplify_using_ranges.
12465         (simplify_stmt_using_ranges): New function extracted from
12466         simplify_using_ranges.
12467         (simplify_div_or_mod_using_ranges): Likewise.
12468         (simplify_abs_using_ranges): Likewise.
12469         (simplify_cond_using_ranges): New function.
12470         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
12471         * tree-ssa-propagate.c (substitute_and_fold): Call
12472         simplify_stmt_using_ranges if we have range information.
12473
12474 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
12475
12476         * config/ia64/ia64.c (ia64_reorg): Check optimize before
12477         ia64_flag_schedule_isns2.
12478
12479         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
12480         reading/writing general registers.
12481         (ia64_function_arg): Revert 2005-06-18 change.
12482
12483 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
12484
12485         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
12486         (legitimize_tls_address): Use gcc_unreachable instead of abort.
12487
12488 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
12489
12490         * function.c (expand_function_end): Revert part of 2005-06-27
12491         patch.  Do sjlj_emit_function_exit_after after return_label.
12492
12493 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
12494
12495         * doc/install.texi (--disable-libssp): New.
12496
12497 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
12498
12499         * doc/invoke.texi: Update -fforce-mem documentation.
12500         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
12501         code for -fforce-mem.
12502         * expmed.c: (store_bit_field,store_fixed_bit_field,
12503         extract_bit_field): Ditto.
12504         * expr.c: (convert_move): Ditto.
12505         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
12506         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
12507         emit_conditional_add,expand_float,expand_fix): Ditto.
12508         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
12509         (common_handle_option): Issue warning when -fforce-mem specified.
12510
12511 2005-07-06  Paul Brook  <paul@codesourcery.com>
12512
12513         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
12514         argument is empty.
12515         * configure: Regenerate.
12516
12517 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
12518
12519         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
12520
12521 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
12522
12523         Fix PR tree-optimization/22319
12524         Fix PR tree-optimization/22140
12525         Fix PR tree-optimization/22310
12526
12527         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
12528         variable sized types.
12529         Use correct type for intermediate structure on *a = *b structure
12530         copies.
12531
12532 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
12533
12534         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
12535         Remove.
12536         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
12537         (machine_function): Move typedef to...
12538         * config/rs6000/rs6000.c (machine_function): ... here.  Add
12539         varargs_save_offset field.
12540         (rs6000_stack_t): Remove varargs_size field.
12541         (setup_incoming_varargs): Allocate varargs save area using
12542         assign_stack_local, try to make it as small as possible.
12543         Save offset from virtual_stack_vars_rtx to the save area
12544         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
12545         instead of magic 8 when fp word byte size is used.
12546         (rs6000_va_start): Use cfun->machine->varargs_save_offset
12547         instead of -RS6000_VARARGS_SIZE.
12548         (rs6000_stack_info, debug_stack_info,
12549         rs6000_initial_elimination_offset): Remove all traces of
12550         varargs_size.
12551         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
12552         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
12553         RS6000_VARARGS_AREA.
12554
12555 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
12556
12557         PR tree-optimization/21963
12558         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
12559         constant_multiple_of in the same way get_computation_cost_at does.
12560
12561 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
12562
12563         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
12564         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
12565         (gen_compare_reg): If sparc_compare_emitted is set, clear it
12566         and return its previous value.
12567         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
12568         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
12569         constants.
12570         (stack_protect_set, stack_protect_test): New expanders.
12571         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
12572         stack_protect_testdi): New insns.
12573         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
12574         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
12575
12576 2005-07-06  Jeff Law  <law@redhat.com>
12577
12578         * tree-ssa-dce.c (cfg_altered): New global.
12579         (tree_dce_init): Initialize cfg_altered.
12580         (remove_dead_stmt): If we remove an edge in the CFG, then set
12581         CFG_ALTERED.
12582         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
12583         the dominators.
12584
12585 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
12586
12587         * Makefile.in (stamp-collect-ld): Use
12588         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
12589         ./collect-ld if it already exists.
12590         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
12591         Don't remove ./nm if it already exists.
12592
12593 2005-07-05  Devang Patel  <dpatel@apple.com>
12594
12595         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
12596         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
12597         * tree-vectorizer.c (vect_loop_location): New.
12598         (vect_print_dump_info): Use vect_loop_location.
12599         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
12600         (vectorize_loops): Set vect_loop_location.
12601         * tree-vect-analyze.c (vect_analyze_offset_expr,
12602         vect_determin_vectorization_factor, vect_analyze_operations,
12603         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
12604         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
12605         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
12606         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
12607         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
12608         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
12609         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
12610         vect_analyze_loop): Adjust vect_print_dump_info API.
12611         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
12612         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
12613         vect_finish_stmt_generation, vectorizable_assignment,
12614         vectorizable_operation, vectorizable_store, vectorizable_load,
12615         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
12616         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
12617         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
12618         vect_transform_loop): Same.
12619         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
12620         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
12621         Same.
12622
12623 2005-07-05  Randolph Chung  <tausq@debian.org>
12624
12625         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
12626         * configure: Regenerate.
12627         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
12628         (pa_tls_referenced_p): Declare.
12629         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
12630         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
12631         (legitimize_tls_address): New.
12632         (hppa_legitimize_address): Handle TLS addresses.
12633         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
12634         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12635         (emit_move_sequence): Handle TLS addresses.
12636         (pa_encode_section_info): Call default handler to handle common
12637         sections.
12638         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
12639         (CONSTANT_ADDRESS_P): Reject TLS operands.
12640         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
12641         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
12642         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
12643         (UNSPEC_TLSLE): Define new constants.
12644         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
12645         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
12646         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
12647         (tie_symbolic_operand, tle_symbolic_operand): New
12648
12649 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
12650
12651         * aclocal.m4: Update macros for autoconf 2.59 style.
12652         * configure.ac: Likewise.
12653
12654 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12655
12656         * pa.c (function_value): Handle small aggregates on 32-bit targets.
12657         (function_arg): Pass small aggregates in general registers on 32-bit
12658         targets.
12659         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
12660
12661 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
12662
12663         * Makefile.in (final.o): Fix dependencies.
12664
12665 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
12666
12667         PR c/22013
12668         PR c/22098
12669         * langhooks.h (struct lang_hooks): Add expr_to_decl.
12670         * langhooks.c (lhd_expr_to_decl): New.
12671         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
12672         New.
12673         (LANG_HOOKS_INITIALIZER): Update.
12674         * tree.c (recompute_tree_invarant_for_addr_expr): Call
12675         expr_to_decl langhook.
12676         * c-tree.h (c_expr_to_decl): Declare.
12677         * c-typeck.c (c_expr_to_decl): New.
12678         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
12679         specially.
12680         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
12681
12682 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
12683
12684         PR c/22308
12685         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
12686         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
12687
12688 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
12689
12690         * Makefile.in: Adjust dependencies.
12691         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
12692         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
12693         * alias.c (rest_of_handle_cfg, pass_cfg): New.
12694         * bb-reorder.c (duplicate_computed_gotos): Make it static.
12695         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
12696         rest_of_compilation.
12697
12698         * bb-reorder.c (gate_duplicate_computed_gotos,
12699         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
12700         rest_of_handle_reorder_blocks, pass_reorder_blocks,
12701         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
12702         pass_partition_blocks): New.
12703         * bt-load.c (gate_handle_branch_target_load_optimize,
12704         rest_of_handle_branch_target_load_optimize,
12705         pass_branch_target_load_optimize): New.
12706         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
12707         pass_jump2): New.
12708         * cfglayout.c (pass_insn_locators_initialize): New.
12709         * cfgrtl.c (pass_free_cfg): New.
12710         * combine.c (gate_handle_combine, rest_of_handle_combine,
12711         pass_combine): New.
12712         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
12713         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
12714         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
12715         * except.c (pass_set_nothrow_function_flags,
12716         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
12717         pass_rtl_eh): New.
12718         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
12719         rest_of_handle_shorten_branches, pass_shorten_branches,
12720         rest_of_clean_state, pass_clean_state): New.
12721         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
12722         rest_of_handle_remove_death_notes, pass_remove_death_notes,
12723         rest_of_handle_life, pass_life, rest_of_handle_flow2,
12724         pass_flow2): New.
12725         * function.c (pass_instantiate_virtual_regs, pass_init_function,
12726         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
12727         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
12728         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
12729         pass_gcse): New.
12730         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
12731         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
12732         pass_rtl_ifcvt, gate_handle_if_after_combine,
12733         rest_of_handle_if_after_combine, pass_if_after_combine,
12734         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
12735         pass_if_after_reload): New.
12736         * integrate.c (pass_initial_value_sets): New.
12737         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
12738         pass_purge_lineno_notes): New.
12739         * mode-switching.c (rest_of_handle_mode_switching,
12740         pass_mode_switching): New.
12741         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
12742         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
12743         pass_loop2): New.
12744         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
12745         pass_loop_optimize): New.
12746         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
12747         pass_sms): New.
12748         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
12749         pass_gcse2): New.
12750         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
12751         pass_postreload_cse): New.
12752         * profile.c (gate_handle_profiling, pass_profiling,
12753         rest_of_handle_branch_prob, pass_branch_prob): New.
12754         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
12755         pass_split_before_regstack, gate_handle_split_before_regstack,
12756         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
12757         rest_of_handle_split_all_insns, pass_split_all_insns): New.
12758         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
12759         pass_stack_regs): New.
12760         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
12761         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
12762         pass_stack_adjustments): New.
12763         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
12764         pass_regrename): New.
12765         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
12766         pass_delay_slots, gate_handle_machine_reorg,
12767         rest_of_handle_machine_reorg, pass_machine_reorg): New.
12768         * rtl.h (extern void purge_line_number_notes): New.
12769         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
12770         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
12771         pass_sched2): New.
12772         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
12773         pass_tracer): New.
12774         * value-prof.c (gate_handle_value_profile_transformations,
12775         rest_of_handle_value_profile_transformations,
12776         pass_value_profile_transformations): New.
12777         * var-tracking.c (gate_handle_var_tracking,
12778         pass_variable_tracking): New.
12779         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
12780
12781         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
12782         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
12783         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
12784         rest_of_handle_old_regalloc, rest_of_handle_regrename,
12785         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
12786         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
12787         rest_of_handle_gcse2, rest_of_handle_regmove,
12788         rest_of_handle_tracer, rest_of_handle_if_conversion,
12789         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
12790         rest_of_handle_web, rest_of_handle_branch_prob,
12791         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
12792         rest_of_handle_jump_bypass, rest_of_handle_combine,
12793         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
12794         rest_of_handle_gcse, rest_of_handle_loop_optimize,
12795         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
12796         rest_of_handle_mode_switching, rest_of_handle_jump,
12797         rest_of_handle_eh, rest_of_handle_stack_adjustments,
12798         rest_of_handle_flow2, rest_of_handle_jump2,
12799         rest_of_handle_peephole2, rest_of_handle_postreload,
12800         rest_of_handle_shorten_branches, rest_of_clean_state,
12801         rest_of_compilation): Remove.
12802
12803         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
12804         * passes.c (dump_flags, in_gimple_form, all_passes,
12805         all_ipa_passes, all_lowering_passes, register_one_dump_file,
12806         register_dump_files, next_pass_1, last_verified, execute_todo,
12807         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
12808         from tree-optimize.c.
12809         (init_optimization_passes): Moved from tree-optimize.c,
12810         adding the RTL optimizations.
12811         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
12812         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
12813         all_ipa_passes, all_lowering_passes, register_one_dump_file,
12814         register_dump_files, next_pass_1, last_verified, execute_todo,
12815         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
12816         init_tree_optimization_passes, ipa_passes): Delete.
12817         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
12818         the RTL dumps.
12819         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
12820         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
12821         from tree.h.
12822         (ipa_passes): Remove.
12823         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
12824         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
12825         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
12826         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
12827         (dump_info_p, dump_flag): Moved to tree-dump.h.
12828
12829         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
12830         cgraph.c, opts.c.
12831         * passes.c (finish_optimization_passes): Use dump_begin
12832         and dump_end, TDI_end.
12833         (gate_rest_of_compilation): New.
12834         (pass_rest_of_compilation): Use it.
12835         (gate_postreload, pass_postreload): New.
12836         * toplev.c (general_init): Rename init_tree_optimization_passes.
12837         * toplev.h (init_tree_optimization_passes): Rename to
12838         init_optimizations_passes.
12839         * tree-dump.c (dump_flag): Make static.
12840         (dump_files): Remove RTL dumps.
12841         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
12842         pass_cleanup_cfg, pass_free_cfg_annotations,
12843         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
12844         pass_init_datastructures, pass_fixup_cfg): Make non-static.
12845         * tree-pretty-print.c: Include tree-pass.h.
12846         * cgraph.c: Include tree-dump.h.
12847
12848 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
12849
12850         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
12851         Only fall back to saying it points to readonly memory if
12852         we can't do better.
12853
12854 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
12855
12856         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
12857         * config/m32r/m32r.c (m32r_compute_frame_size,
12858         m32r_expand_prologue): Take current_function_profile into
12859         account whenever we reference
12860         current_function_uses_pic_offset_table.
12861         (m32r_finalize_pic): Remove.
12862         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
12863
12864 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
12865
12866         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
12867         instead of $<.  Don't remove ./as if it already exists.
12868
12869 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12870
12871         PR target/21723
12872         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
12873         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
12874         for complex modes when generating code for PA 1.0.
12875         (VALID_FP_MODE_P): New macro.
12876         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
12877         sets for all general and floating point modes.  Align wide floating
12878         point modes to even register boundaries to comply with architectural
12879         requirements.
12880         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
12881         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
12882         (VALID_FP_MODE_P): New macro.
12883         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
12884         sets for all general and floating point modes.  Align wide floating
12885         point modes to even register boundaries to comply with architectural
12886         requirements.
12887
12888 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
12889
12890         * tree-dump.c (dump_files): Initialize dump number for .cgraph
12891         to 0.
12892
12893 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
12894
12895         * tree-ssa-structalias.c: Don't include expr.h.
12896
12897 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
12898
12899         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
12900         comments.
12901
12902 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
12903
12904         Fix PR tree-optimization/22279
12905
12906         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
12907         correct operator.
12908
12909 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
12910
12911         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
12912
12913 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
12914
12915         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
12916         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
12917         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
12918         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
12919         config/stormy16/stormy16.c, config/v850/v850.c,
12920         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
12921         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
12922         Avoid "." or "\n" at end of diagnostics and capital letters at
12923         start of diagnostics.
12924         * combine.c, cse.c: Don't translate dump file output.
12925         * toplev.c (print_version): Only translate output if going to
12926         stderr.
12927
12928 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
12929
12930         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
12931         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
12932         typos.
12933
12934 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12935
12936         * pa.c (fix_range): Fix typo in comment.
12937
12938 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
12939
12940         * tree-vrp.c (extract_range_from_assert): Replace
12941         fold (build (...)) with fold_build2.
12942
12943 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12944
12945         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
12946         gcc_gfc_char_table, init_dynamic_gfc_info): New.
12947         (format_types_orig, handle_format_attribute): Add support for
12948         format "gcc_gfc".
12949
12950 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12951
12952         * varasm.c (assemble_variable): Fix format specifier thinko.
12953
12954 2005-07-03  Ira Rosen  <irar@il.ibm.com>
12955
12956         PR tree-optimization/22029 (and 22135)
12957         * tree-pretty-print.c (dump_generic_node): Check that the node is not
12958         a phi node before calling dump_vops.
12959
12960 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12961
12962         * tree-dump.h (dump_string_field): Declare.
12963         * tree-dump.c: Use it instead of dump_string.
12964         (dump_string_field): Make non-static.
12965
12966 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
12967
12968         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
12969         up the minimal CFG stuff always when optimize > 0.  Call
12970         split_all_insns_noflow in PIC case if needed.
12971
12972 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12973             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
12974
12975         PR c++/18279
12976         * c-decl.c (c_write_global_declarations): Dump contents of
12977         external scope to.
12978         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
12979         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
12980         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
12981         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
12982         is enabled.
12983
12984 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
12985
12986         * c-common.h (GCC_DIAG_STYLE): Define.
12987         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
12988         version for format checking to 4.1.
12989         * c-format.c: Include toplev.h after c-common.h.
12990         (enum format_type): Add gcc_tdiag_format_type.
12991         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
12992         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
12993         (format_types_orig): Add gcc_tdiag.
12994         (init_dynamic_diag_info): Support gcc_tdiag formats.
12995         (handle_format_attribute): Likewise.
12996         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
12997         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
12998         version for format checking to 4.1.
12999         (warning0, warning, error, pedwarn, sorry): Use
13000         ATTRIBUTE_GCC_DIAG.
13001         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
13002         (finish_aliases_1): Do not use %qE.
13003         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
13004         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
13005         Correct format bugs.
13006         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
13007         parameter to unsigned HOST_WIDE_INT.
13008         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
13009
13010 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
13011
13012         PR middle-end/21742
13013         * expr.c (write_complex_part): Use adjust_address for MEM.
13014         (read_complex_part): Same.
13015
13016 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
13017
13018         Fix PR tree-optimization/22280
13019
13020         * tree-sra.c (generate_element_init): Remove useless loop.
13021
13022 2005-07-02  Richard Henderson  <rth@redhat.com>
13023
13024         * config/alpha/alpha.c (alpha_legitimize_address): Check for
13025         TLS_MODEL_NONE.
13026         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
13027
13028 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
13029
13030         PR middle-end/14490
13031         * fold-const.c (fold_binary): Handle the return value of
13032         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
13033         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
13034
13035 2005-07-02  Jeff Law  <law@redhat.com>
13036
13037         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
13038         a eliminate type conversion which feeds an equality comparison
13039         if the original type or either operand in the comparison is a
13040         function pointer.
13041
13042 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
13043
13044         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
13045         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
13046         texts.
13047         * config/avr/avr.c: Do not use '`' as left quote.
13048         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
13049         Remove "." from end of diagnostics.  Make diagnostics start with
13050         lowercase letter.
13051
13052 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
13053             Joseph S. Myers  <joseph@codesourcery.com>
13054
13055         * toplev.c (default_tree_printer): Handle setting location with
13056         '+' flag.
13057         * c-objc.common.c (c_tree_printer): Likewise.
13058         * c-format.c (gcc_diag_flag_specs): Add '+'.
13059         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
13060         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
13061         formats.
13062         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
13063         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
13064         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
13065         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
13066         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
13067         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
13068         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
13069         format arguments where %J is used without %D.
13070
13071 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
13072
13073         * gcc.c (LINK_SSP_SPEC): Define.
13074         (link_ssp_spec): New variable.
13075         (LINK_COMMAND_SPEC): Add %(link_ssp).
13076         (static_specs): Add link_ssp_spec.
13077         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
13078         * configure: Rebuilt.
13079         * config.in: Rebuilt.
13080
13081         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
13082         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
13083         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
13084         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
13085         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
13086         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
13087         -0x7008(2) instead of reading __stack_chk_guard variable.
13088         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
13089         number.
13090         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
13091         (stack_protect_set, stack_protect_test): Use *_tls* patterns
13092         if TARGET_THREAD_SSP_OFFSET is defined.
13093         (stack_tls_protect_set_si, stack_tls_protect_set_di,
13094         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
13095
13096         Revert:
13097         2005-06-27  Richard Henderson  <rth@redhat.com>
13098         * libgcc-std.ver (GCC_4.1.0): New.
13099         * libgcc.h (__stack_chk_guard): Declare.
13100         (__stack_chk_fail, __stack_chk_fail_local): Declare.
13101         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
13102         * mklibgcc.in (lib2funcs): Add them.
13103
13104 2005-07-01  Richard Henderson  <rth@redhat.com>
13105
13106         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
13107         void * before struct sigcontext *.
13108         (x86_fallback_frame_state): Likewise.
13109
13110 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
13111
13112         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
13113
13114 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
13115
13116         PR tree-opt/22269
13117         * tree-ssa-reassoc.c (should_transpose): Fix which operand
13118         we check for SSA_NAME for.
13119
13120 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
13121
13122         Fix PR tree-optimization/22071
13123
13124         * tree-ssa-structalias.c (offset_overlaps_with_access): New
13125         function.
13126         (get_constraint_for_component_ref): Use it.
13127
13128 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
13129
13130         PR other/22264
13131         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
13132         print out the last new line.
13133
13134 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
13135
13136         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
13137         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
13138         * config/cris/cris.c (cris_conditional_register_usage): Adjust
13139         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
13140         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
13141         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
13142         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
13143         (enum reg_class): New member CC0_REGS.
13144         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
13145         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
13146         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
13147         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
13148         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
13149         Adjust for register now described.
13150
13151 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
13152
13153         PR target/22262
13154         * config/i386/i386.md (stack_protect_test_si,
13155         stack_protect_test_di): Add earlyclobber for scratch 3.
13156         * config/rs6000/rs6000.md (stack_protect_testsi,
13157         stack_protect_testdi): Add earlyclobber for scratch 3,
13158         remove earlyclobber from scratch 4.
13159
13160 Older entries for 2005 can be found in ChangeLog-2005.
13161 2005-06-30  Diego Novillo  <dnovillo@redhat.com>
13162
13163         PR 21584
13164         PR 22219
13165         * tree-ssa-alias.c (create_name_tags): Also process
13166         non-dereferenced pointers.
13167         Remove argument 'ai'.  Update all callers.
13168
13169 2005-06-30  Andrew Pinski  <pinskia@physics.uc.edu>
13170
13171         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET):
13172         Set to 0 for FRAME_GROWS_DOWNWARD.
13173         (REGISTER_NAMES): Add sfp.
13174
13175 2005-07-01  Kelley Cook  <kcook@gcc.gnu.org>
13176
13177         * config/arm/libunwind.S, config/arm/pr-support.c,
13178         config/arm/unwind-arm.c, config/arm/unwind-arm.h,
13179         config/c4x/predicates.md, tree-object-size.c: Update FSF address.
13180
13181 2005-06-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
13182
13183         PR target/22260
13184         * config/sparc/sparc.c (emit_and_preserve): Add 2nd register.
13185         Preserve the 2nd register too, if present.
13186         (sparc_output_mi_thunk) <PIC case>: Preserve the PIC register too.
13187         Adjust call to emit_and_preserve.
13188
13189 2005-06-30  Zack Weinberg  <zack@codesourcery.com>
13190             Jakub Jelinek  <jakub@redhat.com>
13191
13192         * pretty-print.h (PP_NL_ARGMAX): New.
13193         (text_info): Add locus.
13194         (struct chunk_info): New.
13195         (output_buffer): Add formatted_obstack, chunk_obstack, and
13196         cur_chunk_array. Change obstack to a pointer.
13197         (pp_wrapping_mode_t, pp_wrapping_mode, pp_set_verbatim_wrapping): New.
13198         (struct pretty_print_info): Replace ideal_maximum_length and
13199         prefixing_rule with wrapping.
13200         (pp_line_cutoff, pp_prefixing_rule): Update to match.
13201         Update prototypes and wrapper macros throughout.
13202         * pretty-print.c (pp_formatted_text_data, pp_append_r)
13203         (pp_base_clear_output_area, pp_construct, pp_base_formatted_text)
13204         (pp_base_last_position_in_text, pp_base_newline, pp_base_character):
13205         Update for changes to pp structure.
13206         (pp_base_prepare_to_format, pp_base_format_text): Delete.
13207         (pp_base_format, pp_base_output_formatted_text): New functions.
13208         (pp_base_format_verbatim): Use pp_set_verbatim_wrapping.
13209         (pp_verbatim): Clear text.locus.
13210         (pp_printf): Likewise.  Use pp_format and pp_output_formatted_text.
13211         * c-objc-common.c (c_tree_printer): Update function signature.
13212         * diagnostic.c (diagnostic_initialize): Update for changes to
13213         pp structure.
13214         (diagnostic_report_diagnostic): Call pp_format and then
13215         pp_output_formatted_text.
13216         (verbatim): Clear text.locus.
13217         * diagnostic.h (diagnostic_prefixing_rule, diagnostic_line_cutoff):
13218         Update for changes to pp structure.
13219
13220         * c-lang.c: No need to include c-pretty-print.h.
13221         * Makefile.in: Remove bogus line containing only a tab.
13222         (c-lang.o): Update dependencies.
13223         * toplev.c (announce_function): Don't use verbatim.
13224         (default_tree_printer): Update signature.
13225
13226         * objc/objc-lang.c: No need to include c-pretty-print.h.
13227         * objc/Make-lang.in: Update dependencies.
13228
13229 2005-06-29  Daniel Berlin  <dberlin@dberlin.org>
13230
13231         * tree-complex.c (complex_variable_components): Now a hashtable.
13232         (cvc_lookup): Ditto.
13233         (cvc_insert): Ditto.
13234         (create_components): Use referenced var iterator.
13235         Initialize hashtable.   Use cvc_insert/lookup.
13236         (extract_components): Use cvc_insert/lookup.
13237         (update_complex_components): Ditto.
13238         (update_complex_components_on_edge): Ditto.
13239         * tree-dfa.c (referenced_vars): Now a hashtable.
13240         (dump_referenced_vars): Use iterator.
13241         (referenced_var_lookup): New function.
13242         (referenced_var_insert): Ditto.
13243         (add_referenced_var): Use referenced_var_insert.
13244         (mark_new_vars_to_rename): Use DECL_UID.
13245         * tree-flow-inline.h (first_htab_element): New function.
13246         (end_htab_p): Ditto.
13247         (next_htab_element): Ditto.
13248         (first_referenced_var): Ditto.
13249         (end_referenced_vars_p): Ditto.
13250         (next_referenced_var): Ditto.
13251         (is_call_clobbered): Use DECL_UID.
13252         (mark_call_clobbered): Ditto.
13253         (clear_call_clobbered): Ditto.
13254         (mark_non_addressable): Ditto.
13255         * tree-flow.h (htab_iterator): New struct.
13256         (FOR_EACH_HTAB_ELEMENT): New macro.
13257         (struct int_tree_map): New struct.
13258         (int_tree_map_hash): Prototype.
13259         (int_tree_map_eq): Ditto.
13260         (referenced_var_iterator): Ditto.
13261         (FOR_EACH_REFERENCED_VAR): New macro.
13262         (referenced_vars): Now a hashtable.
13263         * tree-into-ssa.c (symbol_marked_for_renaming): Use DECL_UID.
13264         (add_new_name_mapping): Ditto.
13265         (mark_def_sites): Ditto.
13266         (insert_phi_nodes): Use referenced_var iterator.
13267         (mark_def_site_blocks): Ditto.
13268         (mark_sym_for_renaming): Use DECL_UID.
13269         * tree-sra.c (is_sra_candidate_decl): Use DECL_UID.
13270         (lookup_element): Ditto.
13271         (find_candidates_for_sra): Use referenced_vars iterator.
13272         Use DECL_UID.
13273         * tree-ssa-alias.c (NUM_REFERENCES): New macro.
13274         (NUM_REFERENCES_CLEAR): Ditto.
13275         (NUM_REFERENCES_INC): Ditto.
13276         (NUM_REFERENCES_SET): Ditto.
13277         (alias_obstack): New bitmap obstack.
13278         (struct alias_map_d): Use bitmap, not sbitmap.
13279         (struct alias_info): Remove num_references.
13280         (init_alias_info): Use referenced_var iterator.
13281         Initialize bitmap obstack.
13282         (delete_alias_info): Use referenced_var iterator.
13283         Free bitmap obstack.
13284         (compute_points_to_and_addr_escape): Use DECL_UID.
13285         Use new NUM_REFERENCES macros.
13286         (compute_flow_sensitive_aliasing): may_aliases is now a bitmap.
13287         Use new NUM_REFERENCES macros.
13288         (group_aliases_into): Update prototype to use bitmap.
13289         (setup_pointers_and_addressables): Use referenced_vars iterator.
13290         Use DECL_UID. Use new NUM_REFERENCES macros.
13291         (add_pointed_to_var): Use DECL_UID.
13292         (dump_alias_info): Use referenced_var iterator.
13293         (add_type_alias): Ditto.
13294         (used_portions): Now a hashtable.
13295         (used_part_map_eq): New function.
13296         (used_part_map_hash): Ditto.
13297         (free_used_part_map): Ditto.
13298         (up_lookup): Ditto.
13299         (up_insert): Ditto.
13300         (get_or_create_used_part_for): Use up_lookup.
13301         (create_overlap_variables_for): Ditto.
13302         (find_used_portions): Use up_insert.
13303         Use DECL_UID.
13304         (create_structure_vars): Init used_portions hashtable, use
13305         referenced_vars iterator.
13306         * tree-ssa-live.c (create_ssa_var_map): sbitmaps became bitmaps.
13307         Use DECL_UID.
13308         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Use DECL_UID.
13309         * tree-ssa-operands.c (get_asm_expr_operands): Ditto.
13310         (note_addressable): Ditto.
13311         * tree-ssa-structalias.c (set_uids_in_ptset): Ditto.
13312         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13313         referenced_var iterator.
13314         Use DECL_UID.
13315         (delete_tree_ssa): Ditto.
13316         (int_tree_map_eq): New function.
13317         (int_tree_map_hash): Ditto.
13318         * tree-stdarg.c (find_va_list_reference): Use DECL_UID.
13319         (va_list_ptr_read): Ditto.
13320         (va_list_counter_struct_op): Ditto.
13321         (va_list_ptr_write): Ditto.
13322         (check_va_list_escapes): Ditto.
13323         (check_all_va_list_escapes): Ditto.
13324         (execute_optimize_stdarg): Ditto.
13325         * tree-tailcall.c (suitable_for_tail_opt_p): Used referenced_var
13326         iterator. 
13327
13328 2005-06-30  Andrew Pinski  <pinskia@physics.uc.edu>
13329
13330         * config/rs6000/darwin.h (FRAME_POINTER_REGNUM): Rename to ...
13331         (HARD_FRAME_POINTER_REGNUM): this.
13332
13333 2005-06-30  Jan Hubicka  <jh@suse.cz>
13334
13335         * ipa-inline.c (cgraph_clone_inlined_nodes): Revert previous patch.
13336
13337 2005-06-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13338
13339         PR middle-end/22247
13340         * tree-ssa-structalias.c (build_constraint_graph, scc_visit,
13341         process_unification_queue, init_topo_info, topo_visit,
13342         init_scc_info, free_scc_info, perform_var_substitution,
13343         solve_graph): Use unsigned instead of uint.
13344         
13345 2005-06-30  Jakub Jelinek  <jakub@redhat.com>
13346
13347         * function.c (gen_stack_protect_test): Add third argument.
13348
13349 2005-06-30  J. D. Johnston  <jjohnst@us.ibm.com>
13350
13351         * gthr-tpf.h (CE2THRCPTR): Change field offset to 16.
13352
13353 2005-06-30  Kazu Hirata  <kazu@codesourcery.com>
13354
13355         * config/c4x/c4x-protos.h: Remove the prototypes for those
13356         functions removed from c4x.c.  Add prototypes for those
13357         functions exported in c4x.c.
13358         * config/c4x/c4x.c (any_operand, fp_zero_operand,
13359         const_operand, stik_const_operand, not_const_operand,
13360         reg_operand, r0r1_reg_operand, r2r3_reg_operand,
13361         ext_low_reg_operand, ext_reg_operand, std_reg_operand,
13362         std_or_reg_operand, addr_reg_operand, index_reg_operand,
13363         dp_reg_operand, sp_reg_operand, st_reg_operand,
13364         rc_reg_operand, call_address_operand,
13365         symbolic_address_operand, dst_operand, src_operand,
13366         src_hi_operand, lsrc_operand, tsrc_operand,
13367         nonimmediate_src_operand, nonimmediate_lsrc_operand,
13368         reg_or_const_operand, par_ind_operand, parallel_operand):
13369         Remove.
13370         (c4x_immed_float_p, c4x_a_register, c4x_x_register,
13371         c4x_K_constant, c4x_N_constant, c4x_O_constant,
13372         c4x_S_indirect): Export.
13373         * config/c4x/c4x.h (PREDICATE_CODES): Remove.
13374         * config/c4x/c4x.md: Include predicates.md.
13375         * config/c4x/predicates.md: New.
13376
13377 2005-06-30  Jakub Jelinek  <jakub@redhat.com>
13378
13379         * function.c (stack_protect_epilogue): Pass label to
13380         stack_protect_test, assume it emitted also the conditional
13381         branch.
13382         * doc/md.texi (stack_protect_test): Adjust documentation.
13383         * config/i386/i386.md (stack_protect_test): Add third argument,
13384         emit beq with operands[2].
13385         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Define to
13386         flag_stack_protect != 0.
13387         * config/rs6000/rs6000.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
13388         constants.
13389         (stack_protect_set, stack_protect_test): New expanders.
13390         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
13391         stack_protect_testdi): New insns.
13392         * config/rs6000/rs6000.c (rs6000_stack_protect_fail): New function.
13393         (TARGET_STACK_PROTECT_FAIL): Define.
13394         (rs6000_generate_compare): Handle UNSPEC_SP_TEST.
13395
13396         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Increment.
13397         (DWARF_FRAME_REGISTERS, DWARF_REG_TO_UNWIND_COLUMN): Adjust, so
13398         that addition of sfp doesn't change these.
13399         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
13400         REG_ALLOC_ORDER): Add sfp.
13401         (INT_REGNO_P): Include FRAME_POINTER_REGNUM.
13402         (FRAME_POINTER_REGNUM): Define to 113.
13403         (HARD_FRAME_POINTER_REGNUM): Define to 31.
13404         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add sfp.
13405         (STARTING_FRAME_OFFSET): Set to 0 for FRAME_GROWS_DOWNWARD.
13406         (ELIMINABLE_REGS): Never eliminate to
13407         FRAME_POINTER_REGNUM, but HARD_FRAME_POINTER_REGNUM
13408         instead.  Add eliminations from FRAME_POINTER_REGNUM.
13409         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P):
13410         Include FRAME_POINTER_REGNUM.
13411         (REGISTER_NAMES): Add sfp.
13412         * config/rs6000/rs6000.c (rs6000_reg_names): Add sfp.
13413         (alt_reg_names): Likewise.
13414         (rs6000_stack_info): Handle FRAME_GROWS_DOWNWARD.
13415         (rs6000_emit_prologue): Use HARD_FRAME_POINTER_REGNUM
13416         instead of FRAME_POINTER_REGNUM.
13417         (rs6000_initial_elimination_offset): Never eliminate to
13418         FRAME_POINTER_REGNUM, but HARD_FRAME_POINTER_REGNUM
13419         instead.  Add elimination offsets from FRAME_POINTER_REGNUM.
13420
13421         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Only return non-zero
13422         if DEFAULT_ABI == ABI_V4.
13423
13424 2005-06-30  Steven Bosscher  <stevenb@suse.de>
13425
13426         * coretypes.h (tls_model): Add TLS_MODEL_NONE as 0.
13427         * tree.h (struct tree_decl): New field `tls_model'.
13428         (DECL_TLS_MODEL): New.
13429         (DECL_THREAD_LOCAL_P): Rename from DECL_THREAD_LOCAL, make it
13430         a predicate.
13431         * rtl.h (decl_default_tls_model): Add prototype for it.
13432         * varasm.c (decl_tls_model): Rewritten and renamed to ...
13433         (decl_default_tls_model): ... this.
13434         (default_encode_section_info): Use DECL_TLS_MODEL instead of
13435         decl_tls_model.
13436         (assemble_variable): Replace DECL_THREAD_LOCAL with
13437         DECL_THREAD_LOCAL_P.
13438         (default_section_type_flags_1): Likewise.
13439         (categorize_decl_for_section): Likewise.
13440         * tree.c (staticp): Likewise.
13441         (recompute_tree_invarant_for_addr_expr): Likewise.
13442         * drawf2out (loc_descriptor_from_tree_1): Likewise.
13443         * c-decl.c (diagnose_mismatched_decls): Likewise.
13444         with DECL_THREAD_LOCAL_P.
13445         (start_decl): Likewise.
13446         * print-tree.c (print_node): Likewise.  Print the TLS model.
13447         (grokdeclarator): Set the default DECL_TLS_MODEL here.
13448         * c-common.c (handle_tls_model_attribute): Rewrite to set the
13449         TLS model up based on the attribute.  Never add the attribute
13450         to the decl's attributes list.
13451         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Replace
13452         DECL_THREAD_LOCAL with DECL_THREAD_LOCAL_P.
13453
13454 2005-06-30  Zdenek Dvorak  <dvorakz@suse.cz>
13455
13456         PR testsuite/21967
13457         * tree-ssa-live.c (mark_all_vars_used_1): Ignore variables in
13458         TMR_ORIGINAL.
13459
13460 2005-06-30  Bernd Schmidt  <bernd.schmidt@analog.com>
13461
13462         * config/bfin/bfin.md (addv2hi3, subv2hi3, sminv2hi3, smaxv2hi3,
13463         mulv2hi3, negv2hi2, absv2hi2): Pattern names fixed by appending the
13464         necessary digit.
13465
13466 2005-06-29  David Edelsohn  <edelsohn@gnu.org>
13467
13468         * config/rs6000/rs6000.c (rs6000_file_start): Use PPC405_ERRATUM77.
13469
13470 2005-06-29  Diego Novillo  <dnovillo@redhat.com>
13471
13472         PR 22234
13473         * tree-ssa-copy.c (fini_copy_prop): Do not overwrite copy_of
13474         when following copy-of chains.
13475
13476 2005-06-30  Jan Hubicka  <jh@suse.cz>
13477
13478         * function.h (struct function): Add saved blocks/unexpanded var list.
13479         * gimple-low.c (record_vars): Insert only VAR_DECLs.
13480         * tree-inline.c (add_lexical_block): Declare; do not clear sublocks.
13481         (remap_decl): Do not declare vars.
13482         (remap_block): Do not care inserting blocks.
13483         (remap_blocks): New function.
13484         (copy_body_r): Update debug info.
13485         (expand_call_inline): Duplicate callee block tree into caller;
13486         copy all the unexpanded_var_list.
13487         (save_body): Save unexpanded_var_list and blocks.
13488         * tree-optimize.c (tree_rest_of_optimization): Restore
13489         blocks/unexpanded_var_list.
13490
13491 2005-06-29  Richard Henderson  <rth@redhat.com>
13492
13493         * config/ia64/ia64.c (ia64_expand_vecint_minmax): Use us_minus and
13494         plus for V4HImode UMAX.
13495
13496 2005-06-29  Joseph S. Myers  <joseph@codesourcery.com>
13497
13498         * c-tree.h (default_function_array_conversion): Take and return
13499         struct c_expr.
13500         * c-typeck.c (default_function_array_conversion): Split into
13501         array_to_pointer_conversion and function_to_pointer_conversion.
13502         Take and return struct c_expr.
13503         (array_to_pointer_conversion): Do not handle type qualifiers or
13504         COMPOUND_EXPRs specially.
13505         (build_function_call): Call function_to_pointer_conversion for
13506         function designators.
13507         (build_unary_op): Call array_to_pointer_conversion, not
13508         default_function_array_conversion.
13509         (digest_init, output_init_element): Likewise.
13510         * c-parser.c: All callers of default_function_array_conversion
13511         changed.
13512
13513 2005-06-29  Ziemowit Laski  <zlaski@apple.com>
13514
13515         * config/darwin.c (machopic_select_section): constant ObjC string
13516         objects now always have type "__builtin_ObjCString".
13517
13518 2005-06-29  Richard Henderson  <rth@redhat.com>
13519
13520         * config/alpha/alpha.md (vec_shl_<VEC>, vec_shr_<VEC>): New.
13521
13522 2005-06-29  Richard Henderson  <rth@redhat.com>
13523
13524         * tree-vect-transform.c (vect_min_worthwhile_factor): Declare.
13525         (vect_create_epilog_for_reduction): Don't use vec_shr if the
13526         operation is emulated.
13527         (vectorizable_reduction): Duplicate vect_min_worthwhile_factor
13528         tests from vectorizable_operation.
13529
13530 2005-06-29  Caroline Tice  <ctice@apple.com>
13531
13532         Fix PR 21956
13533         * varasm.c (assemble_start_function):  Add "L" to beginning of
13534         local labels, so assembler & linker treat them as local.
13535         
13536 2005-06-29  Richard Henderson  <rth@redhat.com>
13537
13538         * config/i386/i386.c (ix86_expand_int_vcond): Remove unsignedp
13539         argument.  Simplify canonicalization of condition.  Use unsigned
13540         saturating subtraction for QI and HImode unsigned compares.  Use
13541         bit arithmetic tricks for SImode unsigned compares.
13542         * config/i386/i386-protos.h (ix86_expand_int_vcond): Update decl.
13543         * config/i386/sse.md (SSEMODE14): New.
13544         (umaxv8hi3): Use us_minus+plus to avoid vcond.
13545         (umaxv4si3): New.
13546         (smax<SSEMODE14>3): Rename from smaxv16qi3 and macroize.
13547         (smin<SSEMODE14>3): Similarly with sminv16qi3.
13548         (umin<SSEMODE24>3): Similarly with uminv8hi3.
13549
13550 2005-06-29  Ian Lance Taylor  <ian@airs.com>
13551
13552         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Change
13553         GEN_INT to gen_int_for_mode when storing register size to memory.
13554
13555 2005-06-29  Stuart Hastings  <stuart@apple.com>
13556
13557         * gcc/config/i386/mmintrin.h: Mark vector intrinsics always_inline.
13558         * gcc/config/i386/emmintrin.h: Likewise.
13559         * gcc/config/i386/pmmintrin.h: Likewise.
13560         * gcc/config/i386/xmmintrin.h: Likewise.
13561                                         
13562 2005-06-29  Steve Ellcey  <sje@cup.hp.com>
13563
13564         PR middle-end/21969
13565         * tree.h (TYPE_VECTOR_SUBPARTS): Change to shift expression.
13566         (SET_TYPE_VECTOR_SUBPARTS): New.
13567         * tree.c (make_vector_type): Replace TYPE_VECTOR_SUBPARTS with
13568         SET_TYPE_VECTOR_SUBPARTS.
13569         * tree-vect-transform.c (vect_transform_loop): Add cast.
13570
13571 2005-06-29  Andreas Krebbel  <krebbel1@de.ibm.com>
13572
13573         * config/s390/s390.c (s390_decompose_address): Accept invalid
13574         displacements for addresses containing frame_pointer_rtx or
13575         virtual_stack_vars_rtx.
13576         (s390_frame_info): Replaced use of STARTING_FRAME_OFFSET.
13577         (s390_initial_elimination_offset): New offset when eliminating the 
13578         soft frame pointer.
13579         * config/s390/s390.h (FRAME_GROWS_DOWNWARD): Defined as 1.
13580         (STARTING_FRAME_OFFSET, STACK_DYNAMIC_OFFSET): Definitions changed.
13581
13582 2005-06-28  Ziemowit Laski  <zlaski@apple.com>
13583
13584         * c-common.c (flag_next_runtime): Move...
13585         * toplev.c (flag_next_runtime): ... here.
13586         * c-common.h (flag_next_runtime): Move...
13587         * flags.h (flag_next_runtime): ... here.
13588         * config/darwin-c.c: Include flags.h.
13589         * config/t-darwin (darwin-c.o): Depend on flags.h.
13590
13591 2005-06-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13592
13593         * config/sh/linux-unwind.h (shmedia_fallback_frame_state):
13594         Disable aliasing warning with void * cast.
13595         (sh_fallback_frame_state): Likewise.
13596
13597 2005-06-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13598
13599         * target.h (gcc_target): New field allocate_initial_value.
13600         * target-def.h (TARGET_ALLOCATE_INITIAL_VALUE): New macro.
13601         (TARGET_INITIALIZER): Include it.
13602         * integrate.c (allocate_initial_values): Use
13603         targetm.allocate_initial_value.
13604         * system.h: Poison ALLOCATE_INITIAL_VALUE.
13605         * config/sh/sh-protos.h (sh_pr_n_sets): Delete.
13606         * config/sh/sh.c (sh_pr_n_sets): Make it static.
13607         (sh_allocate_initila_value): New function.
13608         (TARGET_ALLOCATE_INITIAL_VALUE): Override default.
13609         * config/sh/sh.h (ALLOCATE_INITIAL_VALUE): Delete.
13610         * doc/tm.texi (TARGET_ALLOCATE_INITIAL_VALUE): Rename and
13611         update from ALLOCATE_INITIAL_VALUE.
13612
13613 2005-06-28  Richard Henderson  <rth@redhat.com>
13614
13615         * tree-vectorizer.c (vect_is_simple_reduction): Compare types
13616         using TYPE_MAIN_VARIANT.
13617
13618 2005-06-28  Richard Henderson  <rth@redhat.com>
13619
13620         * config/ia64/ia64.c (ia64_expand_vecint_compare): Decompose to EQ
13621         when using psubN.uuu.
13622
13623 2005-06-29  Kelley Cook <kcook@gcc.gnu.org>
13624
13625         * doc/gcc.texi: Update FSF address.
13626
13627 2005-06-28  Eric Christopher  <echristo@redhat.com>
13628
13629         PR c/22052
13630         PR c/21975
13631         * c-decl.c (diagnose_mismatched_decls): Define DECL_EXTERN_INLINE.
13632         Use. Fix detection of invalid extern inline redefinition.
13633
13634 2005-06-28  Diego Novillo  <dnovillo@redhat.com>
13635
13636         * tree-optimize.c (init_tree_optimization_passes): Fix typo.
13637
13638 2005-06-28  Andrew Pinski  <pinskia@physics.uc.edu>
13639
13640         * config/rs6000/rs6000.md (setmemsi): s/operand/operands/.
13641
13642 2005-06-28  Richard Henderson  <rth@redhat.com>
13643
13644         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use unsigned
13645         saturating subtraction for QI and HImode unsigned compares.  Use
13646         bit arithmetic tricks for SImode unsigned compares.
13647         (ia64_expand_vcondu_v2si): Remove.
13648         (ia64_expand_vecint_cmov): Don't call it.
13649
13650 2005-06-28  Richard Henderson  <rth@redhat.com>
13651
13652         * rtlanal.c (nonzero_bits1): Use the mode of the value for
13653         determining integral-ness for comparisons.
13654
13655 2005-06-28  Andrew Pinski  <pinskia@physics.uc.edu>
13656
13657         * config/rs6000/rs6000.md (setmemsi): Fix operand 2.
13658
13659 2005-06-28  Joseph S. Myers  <joseph@codesourcery.com>
13660
13661         * target.h (invalid_conversion, invalid_unary_op,
13662         invalid_binary_op): New hooks.
13663         * target-def.h (TARGET_INVALID_CONVERSION,
13664         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP,
13665         TARGET_INITIALIZER): Likewise.
13666         * hooks.h (hook_constcharptr_tree_tree_null,
13667         hook_constcharptr_int_tree_null,
13668         hook_constcharptr_int_tree_tree_null): New.
13669         * hooks.c (hook_constcharptr_tree_tree_null,
13670         hook_constcharptr_int_tree_null,
13671         hook_constcharptr_int_tree_tree_null): Likewise.
13672         * gcc/doc/tm.texi (TARGET_INVALID_CONVERSION,
13673         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Document.
13674         * c-convert.c (convert): Use invalid_conversion hook.
13675         * c-typeck.c (build_unary_op): Use invalid_unary_op hook.
13676         (build_binary_op): Use invalid_binary_op hook.
13677         * config/ia64/ia64-modes.def: Define RFmode.
13678         * config/ia64/ia64-protos.h (spill_xfmode_operand): Remove.
13679         (ia64_expand_movxf_movrf): New.
13680         * config/ia64/ia64.md (movxf): Move code to
13681         ia64_expand_movxf_movrf.
13682         (movrf, movrf_internal): New.
13683         * ia64.c (ia64_invalid_conversion, ia64_invalid_unary_op,
13684         ia64_invalid_binary_op, TARGET_INVALID_CONVERSION,
13685         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): New.
13686         (spill_xfmode_operand): Rename to spill_xfmode_rfmode_operand.
13687         Add mode parameter.  Make static.
13688         (ia64_expand_movxf_movrf): New, moved from ia64.md.  Handle RFmode
13689         as well as XFmode.
13690         (ia64_function_arg, ia64_function_value, ia64_register_move_cost,
13691         ia64_scalar_mode_supported_p): Handle RFmode as well as XFmode.
13692         (ia64_init_builtins): Set up __fpreg as RFmode.
13693         (ia64_mangle_fundamental_type): Mangle __fpreg as u7__fpreg.
13694
13695 2005-06-28  Adrian Straetling  <straetling@de.ibm.com>
13696
13697         * builtins.c: (expand_builtin_memset): Rewrite to support
13698         'set_storage_via_setmem'.
13699         * expr.c: (enum insn_code setmem_optab): Define.
13700         (enum insn_code clrmem_optab): Remove.
13701         (set_storage_via_setmem): New function.
13702         (clear_storage_via_setmem): Remove.
13703         (clear_storage): Replace call to "clear_storage_via_clrmem" with
13704         "set_storage_via_setmem".
13705         * expr.h: (set_storage_via_setmem): Declare.
13706         (CLEAR_RATIO): Redefine using HAVE_setmemM.
13707         * optabs.h: (enum insn_code setmem_optab): Declare.
13708         (enum insn_code clrmem_optab): Remove.
13709         * optabs.c: (init_optabs): Initialize setmem_optab.
13710         (enum insn_code clrmem_optab): Remove.
13711         * genopinit.c: (otabs): Likewise.
13712         * doc/md.texi: Document new standard pattern 'setmem'. Remove
13713           'clrmem'.
13714         * config/alpha/alpha.c: (alpha_expand_block_clear): Adjust
13715         'operands' ordering.
13716         * config/frv/frv.c: (frv_expand_block_clear): Likewise.
13717         * config/rs6000/rs6000.c: (expand_block_clear): Likewise.
13718         * config/alpha/alpha.md: ("clrmemqi", "clrmemdi"): Rename to "setmemM".
13719         FAIL on operands[2]!=const0_rtx. Adjust 'operands' ordering.
13720         * config/avr/avr.md: ("clrmemhi"): Likewise.
13721         * config/frv/frv.md: ("clrmemsi"): Likewise.
13722         * config/i386/i386.md: ("clrmemsi", "clrmemdi"): Likewise.
13723         * config/pa/pa.md: ("clrmemsi", "clrmemdi"): Likewise.
13724         * config/rs6000/rs6000.md: ("clrmemsi"): Likewise.
13725         * config/s390/s390.md: ("clrmem<mode>"): Likewise.
13726
13727 2005-06-28  Paul Brook  <paul@codesourcery.com>
13728
13729         * Makefile.in: Set and use UNWIND_H.  Install as unwind.h.
13730         * c-decl.c (finish_decl): Call default_init_unwind_resume_libfunc.
13731         * except.c (add_ehspec_entry): Generate arm eabi filter lists.
13732         (assign_filter_values): Ditto.
13733         (output_ttype): New function.
13734         (output_function_exception_table): Use output_ttype.  Generate arm
13735         eabi filter lists.
13736         (default_init_unwind_resume_libfunc): New function.
13737         * except.h (default_init_unwind_resume_libfunc): Add prototype.
13738         * optabs.c (init_optabs): Don't set unwind_resume_libfunc.
13739         * opts.c (decode_options): Use targetm.unwind_tables_default.
13740         * target-def.h (TARGET_ASM_TTYPE): Provide and use definition.
13741         (TARGET_ARM_EABI_UNWINDER, TARGET_UNWIND_TABLES_DEFAULT): Ditto.
13742         * target.h (struct gcc_target): Add asm.ttype, unwind_tables_default
13743         and arm_eabi_unwinder.
13744         * unwind-c.c: Support Arm EABI unwinder.
13745         * unwind.h: Rename ...
13746         * unwind-generic.h: ... To this.
13747         * doc/tm.texi (TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER): Document.
13748         (TARGET_UNWID_TABLES_DEFAULT): Document.
13749
13750         * config/arm/arm-protos.h (arm_output_fn_unwind): Add prototype.
13751         * config/arm/arm.c (arm_unwind_emit, arm_output_ttype): New functions.
13752         (TARGET_UNWIND_EMIT, TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER):
13753         Define.
13754         (thumb_pushpop, thumb_output_function_prologue): Output unwinding
13755         directives.
13756         (arm_unwind_emit_stm, arm_unwind_emit_set): New functions.
13757         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS): Only define when
13758         !TARGET_UNWIND_INFO.
13759         (ARM_OUTPUT_FN_UNWIND, ARM_EABI_UNWIND_TABLES): Define.
13760         * config/arm/bpabi.h (TARGET_UNWIND_INFO): Define.
13761         * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME,
13762         ASM_DECLARE_FUNCTION_SIZE): Use ARM_OUTPUT_FN_UNWIND.
13763         * config/arm/lib1funcs.asm: Include libunwind.S.
13764         * config/arm/libgcc-bpabi.ver: Add unwinding routines.
13765         * config/arm/libunwind.S: New file.
13766         * config/arm/pr-support.c: New file.
13767         * config/arm/t-bpabi (LIB1ASMFUNCS): Add _unwind.
13768         (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
13769         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
13770         * config/arm/unwind-arm.c: New file.
13771         * config/arm/unwind-arm.h: New file.
13772         * config/i386/t-netware (USER_H): Remove unwind.h.
13773         * config/ia64/ia64.h (TARGET_UNWIND_TABLES_DEFAULT): Define.
13774
13775 2005-06-28  DJ Delorie  <dj@redhat.com>
13776
13777         * c-decl.c (pop_scope): Move warning control into warning call.
13778         (diagnose_mismatched_decls): Likewise.
13779         (pushdecl): Likewise.
13780         (start_decl): Likewise.
13781         (grokparms): Likewise.
13782         (start_function): Likewise.
13783         (store_parm_decls_newstyle): Likewise.
13784         (store_parm_decls_oldstyle): Likewise.
13785         (finish_function): Likewise.
13786         (declspecs_add_scspec): Likewise.
13787         * c-format.c (decode_format_attr): Likewise.
13788         (maybe_read_dollar_number): Likewise.
13789         (avoid_dollar_number): Likewise.
13790         (finish_dollar_format_checking): Likewise.
13791         (check_format_info): Likewise.
13792         (check_format_info_main): Likewise.
13793         (check_format_types): Likewise.
13794         (format_type_warning): Likewise.
13795         * c-typeck.c (function_types_compatible_p): Likewise.
13796         (build_array_ref): Likewise.
13797         (convert_arguments): Likewise.
13798         (build_c_cast): Likewise.
13799         (store_init_value): Likewise.
13800         (process_init_element): Likewise.
13801         (c_start_case): Likewise.
13802         * stor-layout.c (finalize_record_size): Likewise.
13803         * tree-cfg.c (execute_warn_function_noreturn): Likewise.
13804         * tree-inline.c (expand_call_inline): Likewise.
13805
13806 2005-06-28  Uros Bizjak  <uros@kss-loka.si>
13807
13808         PR target/22134
13809         * config/i386/i386.md (fist<mode>2_with_temp splitter):
13810         Clobber memory operand, not scratch register.
13811
13812 2005-06-28  Andreas Krebbel  <krebbel1@de.ibm.com>
13813
13814         * config/s390/s390.c (machine_function): New field has_landing_pad_p.
13815         (s390_set_has_landing_pad_p, s390_reg_clobbered_rtx,
13816          s390_regs_ever_clobbered): New functions.
13817         (s390_return_addr_rtx): Use get_hard_reg_initial_value.
13818         (s390_register_info, s390_init_frame_layout, s390_update_frame_layout):
13819         Use s390_regs_ever_clobbered.
13820         (s390_emit_prologue): Don't use r14 as temp reg if its content is used
13821         for builtin_return_address.
13822         * config/s390/s390.md ("exception_receiver"): New expander.
13823         * config/s390/s390-protos.h (s390_set_has_landing_pad_p): Prototype
13824         added.
13825
13826 2005-06-28  Andreas Krebbel  <krebbel1@de.ibm.com>
13827
13828         * except.c (current_function_has_exception_handlers): Function 
13829         description added and if statements merged.
13830
13831 2005-06-28  Richard Henderson  <rth@redhat.com>
13832
13833         * config/i386/sse.md (smaxv16qi3): Fix buffer overflow.
13834         (sminv16qi3, umaxv8hi3, uminv8hi3): Likewise.
13835
13836 2005-06-27  Richard Henderson  <rth@redhat.com>
13837
13838         * config/ia64/ia64.c (ia64_expand_vcondu_v2si): Generate proper
13839         comparison operations.
13840         (ia64_expand_vecint_minmax): Fix size of xops.
13841         * config/ia64/vect.md (umax<VECINT>3): Fix fallback pattern typo.
13842         (vec_shl_<VECINT>, vec_shr_<VECINT>): New.
13843
13844 2005-06-27  Richard Henderson  <rth@redhat.com>
13845
13846         * tree-vect-transform.c (get_initial_def_for_reduction): Use correct
13847         type for DEF and INIT_VAL.  Pretend MIN/MAX need epilogue adjustment.
13848
13849 2005-06-27  Richard Henderson  <rth@redhat.com>
13850
13851         * config/i386/sse.md (vec_shl_<SSEMODEI>, vec_shr_<SSEMODEI>): New.
13852         (smaxv16qi3, umaxv8hi3, sminv16qi3, uminv8hi3): New.
13853
13854 2005-06-27  Richard Henderson  <rth@redhat.com>
13855
13856         * tree-vect-transform.c (vect_create_epilog_for_reduction): Remove
13857         duplicate little-endian adjustment.
13858
13859 2005-06-28  Kelley Cook  <kcook@gcc.gnu.org>
13860
13861         * doc/include/texinfo.tex: Import from upstream CVS.
13862
13863 2005-06-28  Jan Hubicka  <jh@suse.cz>
13864
13865         * cgraph.c (cgraph_remove_node): Do not release function bodies until
13866         full cgraph is built.
13867         * cgraph.h (cgraph_decide_inlining_incrementally): Add early argument.
13868         * cgraphunit.c (cgraph_finalize_function): Update call of
13869         cgraph_decide_inlining_incrementally.
13870         (initialize_inline_failed): Break out of ...
13871         (cgraph_analyze_function): ... here.
13872         (rebuild_cgraph_edges): New function.
13873         (pass_rebuild_cgraph_edges): New pass.
13874         * common.opt (fearly-inlining): New flag.
13875         * ipa-inline.c: Include ggc.h
13876         (cgraph_clone_inlined_nodes): Avoid re-using of original copy
13877         when cgraph is not fully built.
13878         (cgraph_decide_inlining_incrementally): Add early mode.
13879         (cgraph_early_inlining): New function.
13880         (cgraph_gate_early_inlining): Likewise.
13881         (pass_early_ipa_inline): New pass.
13882         * ipa.c (cgraph_postorder): NULLify aux pointer.
13883         * tree-inline.c (expand_call_inline): Avoid warning early.
13884         * tree-optimize.c (pass_early_local_passes): New.
13885         (execute_cleanup_cfg_pre_ipa): New.
13886         (pass_cleanup_cfg): New.
13887         (register_dump_files): Fix handling subpasses of IPA pass.
13888         (init_tree_optimization_passes): Add early passes.
13889         (execute_ipa_pass_list): Fix handling of subpasses of IPA pass.
13890         * passes.h (pass_early_tree_profile, pass_rebuild_cgraph_edges,
13891         pass_early_ipa_inline): New passes.
13892         * tree-profile.c (do_early_tree_profiling, pass_early_tree_profile): New.
13893
13894         * invoke.texi: Document early-inlining.
13895
13896 2005-06-28  Kelley Cook  <kcook@gcc.gnu.org>
13897
13898         * doc/include/fdl.texi: Merge in changes from upstream.
13899         * doc/include/gpl.texi: Likewise.
13900
13901 2005-06-27  Diego Novillo  <dnovillo@redhat.com>
13902
13903         PR 21959
13904         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Handle type
13905         casts between unsigned and signed types with different size
13906         or precision.
13907
13908 2005-06-28  Jan Hubicka  <jh@suse.cz>
13909
13910         * tree-optimize.c (exercute_free_datastructures):
13911         Do not disband implicit edges; do not attempt to build insn list;
13912         do not free cfg annotations.
13913         (execute_free_cfg_annotations); Disband implicit edges here;
13914         free cfg annotations here too.
13915         (pass_free_cfg_annotations); New pass.
13916         (init_tree_optimization_passes); Add pass_free_cfg_annotations.
13917         * tree-ssa-operands.c (free_ssa_operands); Recover; export.
13918         * tree-ssa-operands.h (free_ssa_operands); declare.
13919         * tree-ssa.c (delete_tree_ssa); Free SSA operand; mark stmt modified;
13920         kill PHI nodes.
13921         * tree-ssanames.c (release_defs): Kill addresses_taken.
13922
13923         * basic-block.h (basic_block_def): Kill rbi.
13924         (reorder_block_def): Kill; Remove next field (replaced by aux);
13925         move other fields to ...
13926         (rtl_bb_info): ... here.
13927         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
13928         copy_bb, connect_traces, add_labels_and_missing_jumps
13929         fix_up_fall_thru_edges, fix_crossing_conditional_branches,
13930         duplicate_computed_gotos, partition_hot_cold_basic-blocks):
13931         Update to new fields.
13932         * cfg.c (initialize_bb_rbi): Kill.
13933         * cfglayout.c (record_effective_endpoints, fixup_reorder_chain,
13934         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update.
13935         * cfgrtl.c (cfg_layout_create_basic_block): Do not initialize rbi.
13936         (try_redirect_by_replacing_jump): Update rbi references.
13937         (cfg_layout_split_block): Likewise.
13938         (cfg_layout_delete_block): Likewise.
13939         (cfg_layout_merge_blocks): Likewise.
13940         * function.c (thread_prologue_and_epilogue_insns): Likewise.
13941         * passes.c (rest_of_handle_sms): Likewise.
13942         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
13943
13944 2005-06-27  David Edelsohn  <edelsohn@gnu.org>
13945
13946         * config/rs6000/rs6000.c (rs6000_file_start): Note PPC405 erratum
13947         in verbose_asm output.
13948         * config/rs6000/rs6000.h (PPC405_ERRATUM77): Bracket with
13949         CONFIG_PPC405CR.
13950         * config.gcc (powerpc with_which): Define CONFIG_PPC405CR for
13951         405cr.
13952
13953 2005-06-27  Jakub Jelinek  <jakub@redhat.com>
13954
13955         * builtin-attrs.def (DEF_ATTR_FOR_INT): Add for 5 and 6.
13956         (DEF_LIST_INT_INT): Add for 4,0, 4,5, 5,0, 5,6.
13957         (ATTR_NOTHROW_NONNULL_4, ATTR_NOTHROW_NONNULL_5): Define.
13958         (ATTR_FORMAT_PRINTF_4_0, ATTR_FORMAT_PRINTF_4_5,
13959         ATTR_FORMAT_PRINTF_5_0, ATTR_FORMAT_PRINTF_5_6): Define.
13960         * builtins.c: Include tree-flow.h.
13961         (expand_builtin_mempcpy, expand_builtin_memmove): Comment fixes.
13962         (expand_builtin_object_size, expand_builtin_memory_chk,
13963         maybe_emit_chk_warning, maybe_emit_sprintf_chk_warning,
13964         compute_object_offset, compute_builtin_object_size,
13965         fold_builtin_object_size): New functions.
13966         (expand_builtin): Handle BUILT_IN_OBJECT_SIZE and BUILT_IN_*_CHK.
13967         (fold_builtin_1): Likewise.  Handle BUILT_IN_{,V}{,F}PRINTF
13968         and BUILT_IN_{,F}PRINTF_UNLOCKED.
13969         (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
13970         fold_builtin_strncpy_chk, fold_builtin_strcat_chk,
13971         fold_builtin_strncat_chk, fold_builtin_sprintf_chk,
13972         fold_builtin_snprintf_chk, fold_builtin_printf, fold_builtin_fprintf):
13973         New functions.
13974         * builtins.def (BUILT_IN_OBJECT_SIZE, BUILT_IN_MEMCPY_CHK,
13975         BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK, BUILT_IN_MEMSET_CHK,
13976         BUILT_IN_STPCPY_CHK, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK,
13977         BUILT_IN_STRNCAT_CHK, BUILT_IN_STRNCPY_CHK, BUILT_IN_SNPRINTF_CHK,
13978         BUILT_IN_SPRINTF_CHK, BUILT_IN_VSNPRINTF_CHK, BUILT_IN_VSPRINTF_CHK,
13979         BUILT_IN_FPRINTF_CHK, BUILT_IN_PRINTF_CHK, BUILT_IN_VFPRINTF_CHK,
13980         BUILT_IN_VPRINTF_CHK): New builtins.
13981         * builtin-types.def (DEF_FUNCTION_TYPE_5, DEF_FUNCTION_TYPE_VAR_4):
13982         Document.
13983         (BT_FN_SIZE_CONST_PTR_INT, BT_FN_INT_INT_CONST_STRING_VALIST_ARG,
13984         BT_FN_PTR_PTR_CONST_PTR_SIZE_SIZE, BT_FN_PTR_PTR_INT_SIZE_SIZE,
13985         BT_FN_STRING_STRING_CONST_STRING_SIZE_SIZE,
13986         BT_FN_INT_FILEPTR_INT_CONST_STRING_VALIST_ARG,
13987         BT_FN_INT_STRING_INT_SIZE_CONST_STRING_VALIST_ARG,
13988         BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VALIST_ARG,
13989         BT_FN_INT_INT_CONST_STRING_VAR, BT_FN_INT_FILEPTR_INT_CONST_STRING_VAR,
13990         BT_FN_INT_STRING_INT_SIZE_CONST_STRING_VAR,
13991         BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VAR): New types.
13992         * c-common.c (DEF_FUNCTION_TYPE_5, DEF_FUNCTION_TYPE_6,
13993         DEF_FUNCTION_TYPE_VAR_4, DEF_FUNCTION_TYPE_VAR_5): Define.
13994         * Makefile.in (OBJS-common): Add tree-object-size.o.
13995         (tree-object-size.o): Add dependencies.
13996         * tree-pass.h (pass_object_sizes): Add.
13997         * tree-optimize.c (init_tree_optimization_passes): Add
13998         pass_object_sizes.
13999         * tree-object-size.c: New file.
14000         * tree.h (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
14001         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk,
14002         compute_builtin_object_size, init_object_sizes, fini_object_sizes):
14003         New prototypes.
14004         * tree-ssa-ccp.c (get_strlen): Rename to ...
14005         (get_maxval_strlen): ...this function.  Handle also computing of maximum
14006         string length and maximum integral value.
14007         (ccp_fold_builtin): Handle BUILT_IN_*_CHK.  Use get_maxval_strlen
14008         instead of get_strlen.  Pass CALLEE and ARGLIST variables to the
14009         folding functions instead of computing them again.
14010         (execute_fold_all_builtins): Retry ccp_fold_builtin if a builtin changed
14011         into some other builtin.
14012         * doc/extend.texi (Object Size Checking): Document.
14013
14014         * regrename.c (copy_value): Fix comment.
14015
14016         * toplev.c (process_options): Use if (FRAME_GROWS_DOWNWARD)
14017         instead of preprocessor conditionals.
14018
14019         * targhooks.c (default_hidden_stack_protect_fail): Fall back to
14020         default_external_stack_protect_fail if visibility is not supported
14021         or not flag_pic.
14022         * config/i386/i386.c (ix86_stack_protect_fail): New function.
14023         (TARGET_STACK_PROTECT_FAIL): Define.
14024         * config/i386/i386.md (stack_protect_si): Change CLOBBER into
14025         SET to zero.
14026         (stack_protect_di): Likewise.  Use %k2 instead of %2 to avoid
14027         invalid instruction xorl %rax, %rax.
14028
14029 2005-06-27  Richard Henderson  <rth@redhat.com>
14030
14031         * c-cppbuiltin.c (c_cpp_builtins): Add __SSP_ALL__ and __SSP__.
14032         * cfgexpand.c: Include params.h.
14033         (has_protected_decls, has_short_buffer): New.
14034         (expand_stack_vars): Take a predicate to determine what to expand.
14035         (defer_stack_allocation): True when flag_stack_protect on.
14036         (SPCT_HAS_LARGE_CHAR_ARRAY, SPCT_HAS_SMALL_CHAR_ARRAY): New.
14037         (SPCT_HAS_ARRAY, SPCT_HAS_AGGREGATE): New.
14038         (stack_protect_classify_type, stack_protect_decl_phase): New.
14039         (stack_protect_decl_phase_1, stack_protect_decl_phase_2): New.
14040         (add_stack_protection_conflicts, create_stack_guard): New.
14041         (expand_used_vars): Add stack protection logic.
14042         (tree_expand_cfg): Likewise.
14043         * common.opt (Wstack-protector): New.
14044         (fstack-protector, fstack-protector-all): New.
14045         * function.c: Include predict.h.
14046         (assign_parm_adjust_stack_rtl): Zap stack_parm when stack protect
14047         wants to copy the parameter into the stack frame.
14048         (stack_protect_prologue, stack_protect_epilogue): New.
14049         (expand_function_end): Call stack_protect_epilogue.  Do 
14050         sjlj_emit_function_exit_after after naked_return_label.
14051         * function.h (struct function): Add stack_protect_guard.
14052         * params.def (PARAM_SSP_BUFFER_SIZE): New.
14053         * toplev.c (process_options): Disable flag_stack_protect and/or
14054         warn_stack_protect based on FRAME_GROWS_DOWNWARD.
14055         * tree.h (stack_protect_prologue): Declare.
14056
14057         * target-def.h (TARGET_STACK_PROTECT_GUARD): New.
14058         (TARGET_STACK_PROTECT_FAIL): New.
14059         (TARGET_INITIALIZER): Add them.
14060         * target.h (struct gcc_target): Add stack_protect_guard and
14061         stack_protect_fail.
14062         * targhooks.c: Include ggc.h, gty header.
14063         (stack_chk_guard_decl, default_stack_protect_guard): New.
14064         (stack_chk_fail_decl, default_external_stack_protect_fail): New.
14065         (default_hidden_stack_protect_fail): New.
14066         * targhooks.h (default_stack_protect_guard): Declare.
14067         (default_external_stack_protect_fail): Declare.
14068         (default_hidden_stack_protect_fail): Declare.
14069         * config/i386/i386.c (TARGET_STACK_PROTECT_FAIL): New.
14070         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New.
14071         (trap): Use ud2.
14072         (conditional_trap, conditional_trap_1): Remove.
14073         (stack_protect_set, stack_protect_set_si, stack_protect_set_di): New.
14074         (stack_protect_test, stack_protect_test_si, stack_protect_test_di): New.
14075         * doc/md.texi (stack_protect_set, stack_protect_test): New.
14076         * doc/tm.texi (TARGET_STACK_PROTECT_GUARD): New.
14077         (TARGET_STACK_PROTECT_FAIL): New.
14078
14079         * libgcc-std.ver (GCC_4.1.0): New.
14080         * libgcc.h (__stack_chk_guard): Declare.
14081         (__stack_chk_fail, __stack_chk_fail_local): Declare.
14082         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
14083         * mklibgcc.in (lib2funcs): Add them.
14084
14085 2005-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14086
14087         PR c/21911
14088         * c-common.c (check_function_sentinel): Pass in named argument
14089         list, skip over named arguments before looking for a sentinel.
14090         (check_function_arguments): Pass in named argument list.
14091         * c-common.h (check_function_arguments): Likewise.
14092         * c-typeck.c (build_function_call): Likewise.
14093
14094 2005-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14095
14096         * genautomata.c (decl_mode_check_failed,
14097         regexp_mode_check_failed): Add noreturn attribute.
14098
14099 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
14100
14101         * cfg.c, tree-vect-transform.c, tree.def: Fix comment typos.
14102         * doc/invoke.texi: Fix typos.
14103
14104         * builtins.c, c-common.c, c-convert.c, c-decl.c, c-typeck.c,
14105         convert.c, lambda-code.c, predict.c, tree-cfg.c,
14106         tree-complex.c, tree-data-ref.c, tree-if-conv.c,
14107         tree-mudflap.c, tree-scalar-evolution.c, tree-ssa-ccp.c,
14108         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
14109         tree-ssa-loop-manip.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14110         tree-vect-analyze.c, tree-vect-transform.c, tree-vectorizer.c,
14111         tree.c: Use fold_buildN instead of fold (buildN (...)).
14112
14113 2005-06-26  Gerald Pfeifer  <gerald@pfeifer.com>
14114
14115         * doc/install.texi (Specific): Do not specify the concrete
14116         versions of GCC provided by Cygwin.  Simplify the part on
14117         building on Cygwin.
14118
14119 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
14120
14121         * config/arc/arc-protos.c: Remove the prototype for
14122         arc_finalize_pic.
14123         * config/arc/arc.c (arc_finalize_pic): Remove.
14124         * config/arc/arc.h (FINALIZE_PIC): Likewise.
14125         * config/bfin/bfin.h (FINALIZE_PIC): Likewise.
14126         * config/rs6000/rs6000.h (FINALIZE_PIC): Likewise.
14127
14128 2005-06-26  Jakub Jelinek  <jakub@redhat.com>
14129
14130         PR middle-end/17965
14131         * calls.c (expand_call, emit_library_call_value_1): Use xmalloc/free
14132         instead of alloca for really big argument sizes.
14133
14134         PR middle-end/22028
14135         * gimplify.c (gimplify_type_sizes): Check for type == error_mark_node
14136         earlier in the function.
14137
14138         * regrename.c (copy_value): Don't replace fixed or global
14139         regs with older regs.
14140
14141         * defaults.h (FRAME_GROWS_DOWNWARD): Define to 0 if not defined.
14142         * function.c (get_func_frame_size): Use if (FRAME_GROWS_DOWNWARD)
14143         instead of preprocessor conditionals.
14144         (assign_stack_local_1, assign_stack_temp_for_type): Likewise.
14145         * cfgexpand.c (FRAME_GROWS_DOWNWARD): Don't redefine to 1 or 0
14146         depending on if it was or was not defined previously.
14147         * doc/rtl.texi (VIRTUAL_STACK_VARS_REGNUM): Mention that only non-zero
14148         definition of FRAME_GROWS_DOWNWARD means frame grows downward.
14149         * doc/tm.texi (FRAME_GROWS_DOWNWARD): Likewise.
14150         * config/m68hc11/m68hc11.h (FRAME_GROWS_DOWNWARD): Define to 0.  Update
14151         comment.
14152         * config/pa/pa.h (FRAME_GROWS_DOWNWARD): Likewise.
14153         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Likewise.
14154         * config/stormy16/stormy16.h (FRAME_GROWS_DOWNWARD): Define to 0.
14155         * config/c4x/c4x.h (FRAME_GROWS_DOWNWARD): Likewise.
14156         * config/sh/sh.h (FRAME_GROWS_DOWNWARD): Likewise.
14157         * config/ia64/ia64.h (FRAME_GROWS_DOWNWARD): Likewise.
14158         * config/iq2000/iq2000.h (FRAME_GROWS_DOWNWARD): Likewise.
14159         * config/pdp11/pdp11.h (FRAME_GROWS_DOWNWARD): Define to 1.  Update
14160         comment.
14161         * config/i860/i860.h (FRAME_GROWS_DOWNWARD): Likewise.
14162         * config/h8300/h8300.h (FRAME_GROWS_DOWNWARD): Likewise.
14163         * config/arc/arc.h (FRAME_GROWS_DOWNWARD): Likewise.
14164         * config/vax/vax.h (FRAME_GROWS_DOWNWARD): Likewise.
14165         * config/sparc/sparc.h (FRAME_GROWS_DOWNWARD): Likewise.
14166         * config/i386/i386.h (FRAME_GROWS_DOWNWARD): Likewise.
14167         * config/fr30/fr30.h (FRAME_GROWS_DOWNWARD): Likewise.
14168         * config/frv/frv.h (FRAME_GROWS_DOWNWARD): Likewise.
14169         * config/mn10300/mn10300.h (FRAME_GROWS_DOWNWARD): Likewise.
14170         * config/bfin/bfin.h (FRAME_GROWS_DOWNWARD): Likewise.
14171         * config/ns32k/ns32k.h (FRAME_GROWS_DOWNWARD): Likewise.
14172         * config/v850/v850.h (FRAME_GROWS_DOWNWARD): Likewise.
14173         * config/alpha/alpha.h (FRAME_GROWS_DOWNWARD): Update comment.
14174         * config/s390/s390.h (FRAME_GROWS_DOWNWARD): Likewise.
14175         * config/arm/arm.h (FRAME_GROWS_DOWNWARD): Likewise.
14176         * config/alpha/unicosmk.h (FRAME_GROWS_DOWNWARD): Define to 1.
14177         * config/cris/cris.h (FRAME_GROWS_DOWNWARD): Likewise.
14178         * config/m68k/m68k.h (FRAME_GROWS_DOWNWARD): Likewise.
14179         * config/mmix/mmix.h (FRAME_GROWS_DOWNWARD): Likewise.
14180
14181 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
14182
14183         PR tree-optimization/22026
14184         * tree-vrp.c (extract_range_from_binary_expr): Drop to
14185         VR_VARYING if a binary expression involving VR_ANTI_RANGE is
14186         PLUS_EXPR, MINUS_EXPR, or unsigned MULT_EXPR.
14187
14188 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
14189
14190         * Makefile.in (OBJS-common): Remove duplicate object file
14191         names.
14192
14193 2005-06-25  Jan Hubicka  <jh@suse.cz>
14194
14195         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update profile.
14196         * cfg.c (update_bb_profile_for_threading): Fix rescaling.
14197
14198         * passes.c (rest_of_handle_branch_prob): Do not rebuild profiling info
14199         when not neecesary
14200         (rest_of_compilation): Fix conditional on branch prob pass.
14201         * predict.c (tree_estimate_probability): Enable strip_builtin_expect
14202         when not loop optimizing.
14203
14204 2005-06-25  Bernd Schmidt  <bernd.schmidt@analog.com>
14205
14206         * config/bfin/bfin.md (ror_one, rol_one, ashrdi3, ashldi3, lshrdi3):
14207         New patterns.
14208         (movbi): Add alternative to set CC to zero.
14209         (compare_eq, compare_ne, compare_le, compare_lt, compare_leu,
14210         compare_ltu): Now named patterns.
14211
14212 2005-06-25  Kelley Cook  <kcook@gcc.gnu.org>
14213
14214         * all files: Update FSF address in copyright headers.
14215
14216 2005-06-25  Kelley Cook  <kcook@gcc.gnu.org>
14217
14218         * gengtype.c: Update FSF address in copyright header.
14219         (create_file): Update FSF in outputed copyright header.
14220
14221 2005-06-24  Kazu Hirata  <kazu@codesourcery.com>
14222
14223         * cfglayout.c (block_locators_locs, line_locators_locs,
14224         line_locators_lines, file_locators_locs): Change the type to
14225         VEC(int,heap)*.
14226         (insn_locators_initialize, change_scope, insn_scope,
14227         locator_line, insn_line, locator_file): Use VEC instead of
14228         VARRAY.
14229
14230 2005-06-24  Jason Merrill  <jason@redhat.com>
14231
14232         * tree-nrv.c (tree_nrv): Fix to check assignments to the
14233         RESULT_DECL rather than just RETURN_EXPRs.
14234         (finalize_nrv_r): Adjust.
14235
14236 2005-06-24  Jan Hubicka  <jh@suse.cz>
14237
14238         * tree-optimize.c (init_tree_optimization_passes): Fix flags of
14239         all_passes and all_ipa_passes.
14240
14241         * c-common.c: Include cgraph.h
14242         (handle_externally_visible_attribute): New function.
14243         (c_common_att): Add "externally_visible" attribute.
14244         * cgraph.c (decide_is_variable_needed): Obey externally
14245         visible flag.
14246         (cgraph_varpool_finalize_decl): Avoid redundant checking.
14247         * cgraph.h (struct cgraph_node): New flag externally_visible.
14248         (decide_is_function_needed): Obey externally visible flag.
14249         (cgraph_finalize_function): Avoid redundant checks.
14250         (cgraph_function_and_variable_visibility): Bring symbols local
14251         when asked for.
14252         * common.opt (fwhole-program): New flag.
14253
14254         * doc/invoke.texi (-fwhole-program): Document.
14255
14256 2005-06-24  Mark Mitchell  <mark@codesourcery.com>
14257
14258         PR 22171
14259         * tree-ssa-operands.c (get_expr_operands): Check s_ann for NULL
14260         before use.
14261
14262 2005-06-23  Mark Mitchell  <mark@codesourcery.com>
14263
14264         PR 22000
14265         * tree-ssa-operands.c (get_expr_operands): Check the volatility of
14266         the FIELD_DECL and set s_ann->has_volatile_ops accordingly.
14267
14268 2005-06-24  Jan Hubicka  <jh@suse.cz>
14269
14270         * opts.c (decode_options): Enable unit-at-a-time by default at -O1.
14271
14272 2005-06-23  Jeff Law  <law@redhat.com>
14273
14274         * tree-optimize.c (init_tree_optimization_passes): Move
14275         copy prop pass to run just before VRP.
14276         * tree-vrp.c (remove_range_assertions): Remove copies created
14277         by ASSERT_EXPR removal.
14278
14279 2005-06-23  Kazu Hirata  <kazu@codesourcery.com>
14280
14281         PR tree-optimization/22117
14282         * tree-vrp.c (extract_range_from_binary_expr): Compute a
14283         correct range when adding two pointers.
14284
14285 2005-06-23  Jason Merrill  <jason@redhat.com>
14286
14287         PR c++/19317
14288         Leave the return slot target in the MODIFY_EXPR rather than making
14289         it an argument, but only use it if the CALL_EXPR has a flag set.
14290         * tree.h (CALL_EXPR_HAS_RETURN_SLOT_ADDR): Rename to
14291         CALL_EXPR_RETURN_SLOT_OPT.
14292         * calls.c (expand_call): Adjust.
14293         * tree-inline.c (expand_call_inline): Adjust.
14294         * tree-pretty-print.c (dump_generic_node): Adjust.
14295
14296         And set the flag as appropriate.
14297         * gimplify.c (gimplify_modify_expr_rhs): Set
14298         CALL_EXPR_HAS_RETURN_SLOT_ADDR where the LHS is obviously safe.
14299         * tree-nrv.c (execute_return_slot_opt): Set
14300         CALL_EXPR_HAS_RETURN_SLOT_ADDR based on escape analysis.
14301         * tree-pass.h: Declare pass_return_slot.
14302         * tree-optimize.c (init_tree_optimization_passes): Add it.
14303         
14304 2005-06-23  David Edelsohn  <edelsohn@gnu.org>
14305
14306         PR target/21760
14307         * config/rs6000/rs6000.h (PPC405_ERRATUM77): New.
14308         * config/rs6000/rs6000.md: Move atomic instructions to ...
14309         * config/rs6000/sync.md: Here.
14310         Change sync_compare_and_swap<mode> to define_expand.  All stwcx
14311         patterns test PPC405_ERRATUM77.
14312
14313 2005-06-23  Jan Hubicka  <jh@suse.cz>
14314         
14315         * tree-inline.c (copy_body_r): Remap labels correctly.
14316
14317 2005-06-22  Alan Modra  <amodra@bigpond.net.au>
14318
14319         * config/rs6000/sysv4.h (TARGET_ASM_EXCEPTION_SECTION): Delete.
14320
14321 2005-06-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14322
14323         PR middle-end/20593
14324         * varasm.c (compute_reloc_for_constant): Treat VIEW_CONVER_EXPR
14325         the same as the other cast operands.
14326         (output_addressed_constants): Likewise.
14327
14328 2005-06-21  Jeff Law  <law@redhat.com>
14329
14330         * tree-vrp.c (extract_range_from_unary_expr): Handle type
14331         conversions better.
14332
14333 2005-06-21  Dorit Nuzman  <dorit@il.ibm.com>
14334
14335         * genopinit.c (vec_shl_optab, vec_shr_optab): Initialize new optabs.
14336         (reduc_plus_optab): Removed.  Replcaed with...
14337         (reduc_splus_optab, reduc_uplus_optab): Initialize new optabs.
14338         * optabs.c (optab_for_tree_code): Return reduc_splus_optab or
14339         reduc_uplus_optab instead of reduc_plus_optab.
14340         (expand_vec_shift_expr): New function.
14341         (init_optabs): Initialize new optabs. Remove initialization of
14342         reduc_plus_optab.
14343         (optab_for_tree_code): Return vec_shl_optab/vec_shr_optab
14344         for VEC_LSHIFT_EXPR/VEC_RSHIFT_EXPR.
14345         * optabs.h (OTI_reduc_plus): Removed. Replaced with...
14346         (OTI_reduc_splus, OTI_reduc_uplus): New.
14347         (reduc_plus_optab): Removed.  Replcaed with...
14348         (reduc_splus_optab, reduc_uplus_optab): New optabs.
14349         (vec_shl_optab, vec_shr_optab): New optabs.
14350         (expand_vec_shift_expr): New function declaration.
14351
14352         * tree.def (VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR): New tree-codes.
14353         * tree-inline.c (estimate_num_insns_1): Handle new tree-codes.
14354         * expr.c (expand_expr_real_1): Handle new tree-codes.
14355         * tree-pretty-print.c (dump_generic_node, op_symbol, op_prio): Likewise.
14356         * tree-vect-generic.c (expand_vector_operations_1): Add assert.
14357
14358         * tree-vect-transform.c (vect_create_epilog_for_reduction): Add two
14359         alternatives for generating reduction epilog code.
14360         (vectorizable_reduction): Don't fail of direct reduction support is
14361         not available.
14362         (vectorizable_target_reduction_pattern): Likewise.
14363
14364         * config/rs6000/altivec.md (reduc_smax_v4si, reduc_smax_v4sf,
14365         reduc_umax_v4si, reduc_smin_v4si, reduc_smin_v4sf, reduc_umin_v4si,
14366         reduc_plus_v4si, reduc_plus_v4sf): Removed.
14367         (vec_shl_<mode>, vec_shr_<mode>, altivec_vsumsws_nomode,
14368         reduc_splus_<mode>, reduc_uplus_v16qi): New.
14369
14370 2005-06-20  Daniel Berlin  <dberlin@dberlin.org>
14371
14372         * c-typeck.c (build_function_call): Set fundecl = function again.
14373         * tree-ssa-alias.c (find_used_portions): Address taking causes the
14374         entire variable to be used.
14375         * tree-ssa-structalias.c (do_structure_copy): Fix handling of
14376         unknown size variables, and structure copies from addressof
14377         operations.  Simplify how we do *a = *b type structure copies.
14378         (init_base_vars): Add ANYTHING = &ANYTHING constraint the right
14379         way.  READONLY's address is not taken by default.
14380         INTEGER dereference should point to anything.
14381         (create_variable_info_for): It's okay for the first field to not start
14382         at 0.
14383
14384 2005-06-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14385
14386         config/sh/linux.h (FUNCTION_PROFILER): Constify a char*.
14387
14388 2005-06-20  Roger Sayle  <roger@eyesopen.com>
14389             Fariborz Jahanian <fjahanian@apple.com>
14390
14391         * combine.c (simplify_set): Simplify setting of CC register
14392         by removing redundant compare with 0 on RHS.
14393
14394 2005-06-20  Jan Beulich  <jbeulich@novell.com>
14395
14396         * config/i386/netware-libgcc.def: Update copyright.
14397         * config/i386/netware-libgcc.exp (__divdc3, __divsc3, __divxc3,
14398         __muldc3, __mulsc3, __mulxc3, __powidf2, __powisf2, __powixf2): Add.
14399         * config/i386/netware.c (gen_stdcall_decoration,
14400         gen_fastd_decoration): Merge into ...
14401         (gen_stdcall_or_fastcall_decoration): ... this. Adjust to match
14402         WinNT's changes.
14403         (gen_regparm_prefix): Adjust to match i386_nlm_encode_section_info.
14404         (i386_nlm_encode_section_info): Adjust to match WinNT's changes.
14405         * config/i386/t-nwld (SHLIB_LINK): Also create libgcc.imp alias of
14406         libgcc_s.imp. Use 'expr' rather than $(()) shell expressions.
14407         * gthr-nks.h (__gthread_objc_mutex_allocate): Kill another dubious
14408         use of NX_MUTEX_RECURSIVE.
14409
14410 2005-06-19  Roger Sayle  <roger@eyesopen.com>
14411
14412         * fold-const.c (swap_tree_comparison): Add support for unordered
14413         floating point comparisons.
14414         * tree-vrp.c (opposite_comparison): Delete.
14415         (extract_range_from_assert): Replace calls to opposite_comparison
14416         with calls to swap_tree_comparison.
14417         (register_edge_assert_for): Likewise.
14418         (vrp_evaluate_conditional): Likewise.
14419
14420 2005-06-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14421
14422         * integrate.c (allocate_initial_values): Update the references
14423         to global_live_at_start and global_live_at_end.
14424
14425 2005-06-20  Jan Hubicka  <jh@suse.cz>
14426
14427         * cfgloop.h (DLTHE_RECORD_COPY_NUMBER): New flag.
14428         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set aux flags only
14429         when asked for.
14430         * loop-unroll.c (peel_loop_completely, unroll_loop_constant_iterations,
14431         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
14432         Update call of duplicate_loop_to_header_edge.
14433         (apply_opt_in_copies): Clear out aux pointers.
14434
14435 2005-06-19  Joseph S. Myers  <joseph@codesourcery.com>
14436
14437         * config/i386/i386.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
14438         (ix86_mangle_fundamental_type): New.
14439         * config/ia64/ia64.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
14440         (ia64_mangle_fundamental_type): New.
14441
14442 2005-06-19  Roger Sayle  <roger@eyesopen.com>
14443
14444         * c-decl.c (grokdeclarator): Only check TREE_OVERFLOW on
14445         INTEGER_CST nodes.
14446         * c-typeck.c (build_c_cast): Only preserve TREE_OVERFLOW on
14447         CONSTANT_CLASS_P nodes.
14448
14449 2005-06-19  Richard Henderson  <rth@redhat.com>
14450
14451         * config/ia64/vect.md (vec_extractv2sf_1): Fix cut-and-paste error;
14452         the shift is always required.
14453
14454 2005-06-19  Richard Henderson  <rth@redhat.com>
14455
14456         * config/ia64/ia64-modes.def (V4SF): Add.
14457         * config/ia64/ia64.c (ia64_legitimate_constant_p): Handle CONST_VECTOR.
14458         * config/ia64/ia64.h (CANNOT_CHANGE_MODE_CLASS): Allow vector to 
14459         integer mode changes in fp regs.
14460         * config/ia64/ia64.md (UNSPEC_VECT_EXTR): New.
14461         * config/ia64/vect.md (smaxv2sf3, sminv2sf3): Fix typos in names.
14462         (reduc_plus_v2sf, reduc_smax_v2sf, reduc_smin_v2sf): New.
14463         (vcondv2sf): Use gen_fpack
14464         (fpack): Remove * from name.
14465         (fswap, fmix_l, fmix_r, fmix_lr): New.
14466         (vec_setv2sf, vec_extractv2sf_0_le, vec_extractv2sf_0_be): New.
14467         (vec_extractv2sf_1, vec_extractv2sf): New.
14468
14469 2005-06-19  Andreas Krebbel  <krebbel1@de.ibm.com>
14470
14471         * combine.c (make_compound_operation): Use simplify_subreg.  Delete
14472         a optimization already done by simplify_subreg.
14473
14474 2005-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
14475
14476         * loop.c (scan_loop): Do not consider insns setting the frame
14477         pointer to be candidates for hoisting.
14478
14479 2005-06-19  Uros Bizjak  <uros@kss-loka.si>
14480
14481         * config/i386/i386.md (*cmpfp_0_sf, *cmpfp_0_df, cmpfp_0_xf):
14482         Remove instruction patterns.
14483         (*cmpfp_0): New instruction pattern. Set "unit" attribute to "i387".
14484         (*cmpfp_sf, *cmpfp_df, *cmpfp_xf, *cmpfp_u, *_cmpfp_<mode>):
14485         Set "unit" attribute to "i387".
14486         (*pushsf, *pushsf_rex64, *pushdf_nointeger, *pushdf_integer)
14487         (*pushxf_nointeger, *pushxf_integer): Set "unit" attribute to "i387"
14488         for alternative 0.
14489         (*truncdfsf_mixed, *truncdfsf_i387, *truncxfsf2_mixed)
14490         (*truncxfsf2_i387, *truncxfdf2_mixed, *truncxfdf2_i387): Set "unit"
14491         attribute to "i387" when "type" attribute equals "multi".
14492         (*floathisf2_i387, *floatsisf2_mixed, *floatsisf2_i387)
14493         (*floatdisf2_mixed, *floatdisf2_i387, *floathidf2_i387)
14494         (*floatsidf2_mixed, *floatsidf2_i387, *floatdidf2_mixed)
14495         (*floatdidf2_i387, floathixf2, floatsixf2, floatdixf2): Set "unit"
14496         attribute to "i387" when "type" attribute equals "multi".
14497         * config/i386/mmx.md (*mov<mode>_internal_rex64)
14498         (*mov<mode>_internal, *movv2sf_internal_rex64, *movv2sf_internal):
14499         Set "unit" attribute to "mmx" when "type" attribute equals "ssecvt".
14500         (mmx_pmovmskb): Correct wrong "type" and "mode" attributes.
14501         * config/i386/sse.md (sse_cvtps2pi, sse_cvttps2pi, sse_cvtpd2di)
14502         (sse_cvttpd2pi): Set "unit" attribute to "mmx".
14503         (sse2_cvtpi2pd): Split register constraints. Set "unit" attribute
14504         to "mmx" for "y" operand 1.
14505
14506 2005-06-19  Uros Bizjak  <uros@kss-loka.si>
14507
14508         * config/i386/i386.c (ix86_function_arg_regno_p): Add MMX_REGNO_P
14509         for TARGET_MMX.  Use MMX_REGPARM_MAX and SSE_REGPARM_MAX for MMX
14510         and SSE registers to determine if regno is valid.
14511         (ix86_function_value_regno_p): Depend FIRST_FLOAT_REG on
14512         TARGET_FLOAT_RETURNS_IN_80387 also for TARGET_64BIT. Clean up.
14513
14514 2005-06-18  Richard Henderson  <rth@redhat.com>
14515
14516         * tree-complex.c (init_dont_simulate_again): Clear DONT_SIMULATE_AGAIN
14517         for control-altering statements; set it again for returns.
14518         (complex_visit_stmt): Return SSA_PROP_VARYING for stmts that are
14519         not MODIFY_EXPR.
14520
14521 2005-06-18  Richard Henderson  <rth@redhat.com>
14522
14523         PR tree-opt/22116
14524         * tree-ssa-pre.c (create_expression_by_pieces): Set
14525         DECL_COMPLEX_GIMPLE_REG_P.
14526         (insert_into_preds_of_block): Likewise.
14527
14528 2005-06-18  Steven Bosscher  <stevenb@suse.de>
14529
14530         * Makefile.in: Fix tree-cfgcleanup.c dependencies.
14531
14532 2005-06-18  Richard Henderson  <rth@redhat.com>
14533
14534         * expr.c (store_constructor): Use store of 0 to indicate value
14535         death instead of a clobber.
14536
14537         * config/i386/i386.c (ix86_expand_reduc_v4sf): New.
14538         * config/i386/i386-protos.h (ix86_expand_reduc_v4sf): Declare.
14539         * config/i386/sse.md (reduc_plus_v4sf): New.
14540         (reduc_smax_v4sf, reduc_smin_v4sf): New.
14541
14542 2005-06-18  James A. Morrison  <phython@gcc.gnu.org>
14543
14544         * fold_const (fold_binary): Fold X % (2**N) to X & (2**N - 1) for
14545         nonnegative values of X.
14546
14547 2005-06-18  Uros Bizjak  <uros@kss-loka.si>
14548
14549         * doc/md.texi (Standard Names): Change insn pattern name
14550         from truncM2 to btruncM2 for 'trunc' built-in description.
14551         Add rintM2 insn pattern description.
14552
14553 2005-06-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14554
14555         * c-decl.c (locate_old_decl): Add format attribute.
14556         (implicit_decl_warning): Likewise.
14557
14558         * diagnostic.h (verbatim): Move ...
14559         * toplev.h (verbatim): ... here.  Add ATTRIBUTE_GCC_DIAG.
14560         * pretty-print.h (pp_verbatim): Add ATTRIBUTE_GCC_PPDIAG.
14561
14562 2005-06-18  Roger Sayle  <roger@eyesopen.com>
14563
14564         PR target/22083
14565         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Remove definition.
14566
14567 2005-06-18  Dorit Nuzman  <dorit@il.ibm.com>
14568
14569         * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): New
14570         tree-codes.
14571         * optabs.h (OTI_reduc_smax, OTI_reduc_umax, OTI_reduc_smin,
14572         OTI_reduc_umin, OTI_reduc_plus): New optabs for reduction. 
14573         (reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
14574         reduc_plus_optab): New optabs for reduction.
14575         * expr.c (expand_expr_real_1): Handle new tree-codes.
14576         * tree-inline.c (estimate_num_insns_1): Handle new tree-codes.
14577         * tree-pretty-print.c (dump_generic_node, op_prio, op_symbol): Handle
14578         new tree-codes.
14579         * optabs.c (optab_for_tree_code): Handle new tree-codes.
14580         (init_optabs): Initialize new optabs.
14581         * genopinit.c (optabs): Define handlers for new optabs. 
14582
14583         * tree-vect-analyze.c (vect_analyze_operations): Fail vectorization in
14584         case of a phi that is marked as relevant. Call vectorizable_reduction.
14585         (vect_mark_relevant): Phis may be marked as relevant.
14586         (vect_mark_stmts_to_be_vectorized): The use corresponding to the 
14587         reduction variable in a reduction stmt does not mark its defining phi
14588         as relevant. Update documentation accordingly.
14589         (vect_can_advance_ivs_p): Skip reduction phis.
14590         * tree-vect-transform.c (vect_get_vec_def_for_operand): Takes
14591         additional argument. Handle reduction.
14592         (vect_create_destination_var): Update call to vect_get_new_vect_var.
14593         Handle non-vector argument.
14594         (get_initial_def_for_reduction): New function.
14595         (vect_create_epilog_for_reduction): New function. 
14596         (vectorizable_reduction): New function.
14597         (vect_get_new_vect_var): Handle new vect_var_kind.       
14598         (vectorizable_assignment, vectorizable_operation, vectorizable_store,
14599         vectorizable_condition): Update call to vect_get_new_vect_var.
14600         (vect_transform_stmt): Call vectorizable_reduction.
14601         (vect_update_ivs_after_vectorizer): Skip reduction phis.
14602         (vect_transform_loop): Skip if stmt is both not relevant and not live.
14603         * tree-vectorizer.c (reduction_code_for_scalar_code): New function.
14604         (vect_is_simple_reduction): Was empty - added implementation.
14605         * tree-vectorizer.h (vect_scalar_var): New enum vect_var_kind value.
14606         (reduc_vec_info_type): New enum vect_def_type value.
14607         * config/rs6000/altivec.md (reduc_smax_v4si, reduc_smax_v4sf,
14608         reduc_umax_v4si, reduc_smin_v4si, reduc_umin_v4sf, reduc_smin_v4sf,
14609         reduc_plus_v4si, reduc_plus_v4sf): New define_expands.
14610
14611         * tree-vect-analyze.c (vect_determine_vectorization_factor): Remove
14612         ENABLE_CHECKING around gcc_assert.
14613         * tree-vect-transform.c (vect_do_peeling_for_loop_bound,
14614         (vect_do_peeling_for_alignment, vect_transform_loop, 
14615         vect_get_vec_def_for_operand): Likewise.
14616
14617 2005-06-18  Joseph S. Myers  <joseph@codesourcery.com>
14618
14619         * config/ia64/ia64.c (ia64_function_arg): Set up a PARALLEL for a
14620         big-endian unnamed __float80 value.
14621
14622 2005-06-18  Richard Henderson  <rth@redhat.com>
14623
14624         PR tree-opt/22103
14625         * tree-sra.c (generate_copy_inout): Handle SSA_NAME complex
14626         destinations.
14627
14628 2005-06-17  Richard Henderson  <rth@redhat.com>
14629
14630         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Use
14631         initialize_original_copy_tables and free_original_copy_tables.
14632         (vect_do_peeling_for_alignment): Likewise.
14633
14634 2005-06-17  Pat Haugen  <pthaugen@us.ibm.com>
14635
14636         * bb-reorder.c (find_traces_1_round): Use succ block frequency
14637         instead of edge frequency for calls to better_edge_p.
14638
14639 2005-06-17  Andrew Pinski  <pinskia@physics.uc.edu>
14640
14641         PR tree-opt/22105
14642         * tree-ssa-loop-im.c (for_each_index): Handle COMPLEX_CST.
14643
14644 2005-06-17  Steve Ellcey  <sje@cup.hp.com>
14645
14646         PR target/19889
14647         * config/ia64/hpux.h (FUNCTION_PROFILER): New (dummy).
14648         (PROFILE_HOOK): New.
14649         (PROFILE_BEFORE_PROLOGUE): Undef.
14650         (NO_PROFILE_COUNTERS): New.
14651         * config/ia64/ia64-protos.h (ia64_profile_hook): New.
14652         * config/ia64/ia64.c (ia64_compute_frame_size): Add ifdef.
14653         (gen_mcount_func_rtx): New.
14654         (ia64_profile_hook): New.
14655         * config/ia64/ia64.md (ip_value): New.
14656
14657 2005-06-17  Devang Patel  <dpatel@apple.com>
14658
14659         * config/rs6000/predicates.md (s5bit_cint_operand,
14660         u5bit_cint_operand): New.
14661         * config/rs6000/altivec.md (altivec_vspltb, altivec_vsplth,
14662         altivec_vspltisw_v4sf): Use new 5 bit constant operand predicates.
14663         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Fix signed
14664         5 bit constant check.
14665         
14666 2005-06-17  Richard Henderson  <rth@redhat.com>
14667
14668         * local-alloc.c (update_equiv_regs): Update reg_equiv_init
14669         properly when moving an initialization insn.
14670
14671 2005-06-17  Paolo Bonzini  <bonzini@gnu.org>
14672
14673         * aclocal.m4 (gcc_AC_CHECK_TOOL): Do not overwrite the
14674         passed variable.
14675         * configure.ac: Regenerate.
14676
14677 2005-06-17  Jan Hubicka  <jh@suse.cz>
14678
14679         * tree-optimize.c (execute_ipa_pass_list): New.
14680         (ipa_passes): Use it.
14681
14682 2005-06-16  Richard Henderson  <rth@redhat.com>
14683
14684         PR tree-opt/22022
14685         * tree-complex.c (update_phi_components): Avoid no-op moves.
14686
14687 2005-06-16  Joseph S. Myers  <joseph@codesourcery.com>
14688
14689         * Makefile.in (cc1-checksum.c): Use
14690         build/genchecksum$(build_exeext), not build/genchecksum$(exeext).
14691
14692 2005-06-16  Geoffrey Keating  <geoffk@apple.com>
14693
14694         * gengtype.c (adjust_field_rtx_def): Don't add a skip to
14695         basic_block types.
14696
14697         * config/t-slibgcc-darwin (SHLIB_SOVERSION): Rename from
14698         SHLIB_MINOR.
14699         (SHLIB_REVISION): Delete.
14700         (SHLIB_VERSTRING): Update to compensate.
14701         (SHLIB_SONAME): Just use one '.' in the name.
14702
14703 2005-06-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
14704
14705         PR tree-optimization/22018
14706         * tree-vrp.c (vrp_int_const_binop): Overhaul handling of overflow.
14707
14708 2005-06-16  Richard Henderson  <rth@redhat.com>
14709
14710         PR tree-opt/22035
14711         * builtins.c (fold_builtin_complex_mul): Remove.
14712         (fold_builtin_complex_div): Remove.
14713         (fold_builtin_1): Don't call them.
14714         * fold-const.c (fold_complex_add, fold_complex_mult_parts,
14715         fold_complex_mult, fold_complex_div_parts, fold_complex_div): Remove.
14716         (fold_binary): Don't call them.  Don't expand complex comparisons to
14717         elementary comparisons.
14718         * tree-complex.c (init_dont_simulate_again): Enhance search for 
14719         stmts that require decomposition.
14720         (complex_visit_stmt): Handle RETURN_EXPR properly.
14721         (create_components): Handle no referenced variables properly.
14722         * tree.h (fold_complex_mult_parts): Remove.
14723         (fold_complex_div_parts): Remove.
14724
14725 2005-06-16  Richard Guenther  <rguenth@gcc.gnu.org>
14726
14727         * doc/extend.texi: Document sseregparm target attribute.
14728         Clarify fastcall and regparm documentation.
14729         * config/i386/i386.h: Adjust float_in_sse documentation.
14730         * config/i386/i386.c: Add new target attribute sseregparm.
14731         (ix86_handle_cdecl_attribute, ix86_handle_regparm_attribute):
14732         Merge into ...
14733         (ix86_handle_cconv_attribute): ... here.  Also handle
14734         sseregparm attribute.
14735         (ix86_comp_type_attributes): Compare sseregparm attributes.
14736         (ix86_function_sseregparm): New function, split out from ...
14737         (init_cumulative_args): ... here.  Use to decide use
14738         of SSE registers and error in case of missing support.
14739         (ix86_value_regno): Likewise.
14740         (function_arg_advance): Do not bail out for DFmode if we need
14741         to pass doubles in registers.
14742         (function_arg): Likewise.
14743
14744 2005-06-16  Paolo Bonzini  <bonzini@gnu.org>
14745             Daniel Jacobowitz  <dan@codesourcery.com>
14746             Alan Modra <amodra.bigpond.net.au>
14747
14748         * configure.ac (gcc_version): Set near the beginning.
14749         (as, ld, nm): Do not link in-tree tools.  Set gcc_cv_* if tools are
14750         found in the tree.  Use gcc_AC_PROG to find the tools in the system.
14751         (objdump): Do not look for it.
14752         * Makefile.in (NM_FOR_TARGET): Point to ./nm
14753         (ORIGINAL_AS_FOR_TARGET, ORIGINAL_LD_FOR_TARGET,
14754         ORIGINAL_NM_FOR_TARGET): Substitute from autoconf.
14755         (as, ld, nm): New rules.
14756         (libgcc.mk): Depend on them.
14757         * aclocal.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL,
14758         gcc_AC_BUILD_EXEEXT): New.
14759         (gcc_AC_CHECK_PROG_VER): Use gcc_AC_BUILD_EXEEXT.
14760         * configure: Regenerate.
14761
14762 2005-06-16  Jan Hubicka  <jh@suse.cz>
14763
14764         * basic-block.h (rtl_bb_info): Break out head_, end_,
14765         global_live_at_start, global_live_at_end from ...
14766         (basic_block_def): ... here; update all references
14767         (BB_RTL): New flag.
14768         (init_rtl_bb_info): Declare.
14769         * cfgexpand.c (expand_gimple_basic_block): Init bb info, set BB_RTL
14770         flag.
14771         * cfgrtl.c: Include ggc.h
14772         (create_basic_block_structure): Init bb info.
14773         (rtl_verify_flow_info_1): Check BB_RTL flag and rtl_bb_info pointer.
14774         (init_rtl_bb_info): New function.
14775         (rtl_merge_block, cfglayout_merge_block): Copy global_live_at_end here.
14776         * cfghooks.c (merge_block): Do not copy global_live_at_end here.
14777         * cfg.c (clear_bb_flags): Skip BB_RTL flag.
14778         (dump_flow_info): Gueard global_live_* dumping.
14779
14780         * Makefile.in (cfg.o): Add new dependencies.
14781         * basic-block.h (reorder_block_def): Kill
14782         original/copy/duplicated/copy_number fields.
14783         (BB_DUPLICATED): New flag.
14784         (initialize_original_copy_tables, free_original_copy_tables,
14785         set_bb_original, get_bb_original, set_bb_copy, get_bb_copy): New.
14786         * cfg.c: Include hashtab.h and alloc-pool.h
14787         (bb_original, bb_copy, original_copy_bb_pool): New static vars.
14788         (htab_bb_copy_original_entry): New struct.
14789         (bb_copy_original_hash, bb_copy_original_eq): New static functions.
14790         (initialize_original_copy_tables, free_original_copy_tables,
14791         set_bb_original, get_bb_original, set_bb_copy, get_bb_copy): New
14792         global functions.
14793         * cfghooks.c (duplicate_block): Update original/copy handling.
14794         * cfglayout.c (fixup_reorder_chain): Likewise.
14795         (cfg_layout_initialize): Initialize orignal_copy tables.
14796         (cfg_layout_finalize): FInalize original_copy tables.
14797         (can_copy_bbs_p): Use BB_DUPLICATED flag.
14798         (copy_bbs): Likewise.
14799         * cfgloopmanip.c (update-single_exits_after_duplication): Likewise.
14800         (duplicate_loop_to_header_edge): Likewise; update handling of
14801         copy_number.
14802         (loop_version): Likewise.
14803         * dominance.c (get_dominated_by_region): Use BB_DUPLICATED_FLAG.
14804         * except.c (expand_resx_expr): Check that reg->resume is not set.
14805         * loop-unroll.c (unroll_loop_constant_iterations,
14806         unroll_loop_runtime_iterations, apply_opt_in_copies): Update
14807         copy/original handling.
14808         * loop-unwitch.c (unswitch_loop): Likewise.
14809         * tree-cfg.c (create_bb): Do not initialize RBI.
14810         (disband_implicit_edges): Do not kill RBI.
14811         (add_phi_args_after_copy_bb): Use new original/copy mapping.
14812         (add_phi_args_after_copy): Use BB_DUPLICATED flag.
14813         (tree_duplicate_sese_region): Update original/copy handling.
14814         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
14815         * tree-ssa-loop-manip.c (copy_phi_node_args): Likewise.
14816         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
14817
14818 2005-06-15  Andrew Pinski  <pinskia@physics.uc.edu>
14819
14820         PR tree-opt/21923
14821         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Conversions between
14822         integer types whos ranges are different are not useless.
14823
14824 2005-06-15  Andrew Pinski  <pinskia@physics.uc.edu>
14825
14826         PR tree-opt/22024
14827         * tree-ssa-reassoc.c (init_reassoc): Also give chain decl a distint
14828         rank.
14829
14830 2005-06-15  Diego Novillo  <dnovillo@redhat.com>
14831
14832         * tree-ssa-structalias.c (dump_solution_for_var): Reformat
14833         output.
14834         (dump_sa_points_to_info): Make extern.
14835         (debug_sa_points_to_info): New.
14836         * tree-ssa-structalias.h (TREE_SSA_STRUCTALIAS_H): Rename from
14837         TREE_ALIAS_COMMON.
14838         (dump_sa_points_to_info): Declare.
14839         (debug_sa_points_to_info): Declare.
14840
14841 2005-06-15  Joseph S. Myers  <joseph@codesourcery.com>
14842
14843         * c-tree.h (default_function_array_conversion): Declare.
14844         * c-typeck.c (default_function_array_conversion): Export.  Correct
14845         comment.
14846         (default_conversion): Do not call
14847         default_function_array_conversion.  Do not allow FUNCTION_TYPE.
14848         (build_function_call): Call default_function_array_conversion on
14849         the function.
14850         (convert_arguments): Do not call it on the function arguments.
14851         (build_unary_op): Do not allow ARRAY_TYPE or FUNCTION_TYPE for
14852         TRUTH_NOT_EXPR.  Call default_function_array_conversion for taking
14853         address of ARRAY_REF.
14854         (build_compound_expr): Do not call
14855         default_function_array_conversion.
14856         (build_c_cast): Do not call default_function_array_conversion.
14857         (convert_for_assignment): Do not call default_conversion.
14858         (digest_init): Call default_function_array_conversion to convert
14859         string constants and compound literals to pointers, but not
14860         otherwise.
14861         (output_init_element): Likewise.
14862         (build_asm_expr): Do not call default_function_array_conversion.
14863         (c_process_expr_stmt): Likewise.
14864         (c_objc_common_truthvalue_conversion): Likewise.  Do not allow
14865         FUNCTION_TYPE.
14866         * c-parser.c (c_parser_expression_conv): New.
14867         (c_parser_asm_operands, c_parser_expr_list): Add convert_p
14868         argument.  All callers changed.  Call
14869         default_function_array_conversion if convert_p.
14870         (c_parser_initializer, c_parser_initval): Call
14871         default_function_array_conversion except for string constants and
14872         compound literals.
14873         (c_parser_initelt): Call default_function_array_conversion for
14874         ObjC expression received.
14875         (c_parser_statement_after_labels): Call c_parser_expression_conv
14876         for return and expression statements.
14877         (c_parser_paren_condition, c_parser_for_statement,
14878         c_parser_conditional_expression): Call c_parser_expression_conv.
14879         (c_parser_expr_no_commas, c_parser_conditional_expression,
14880         c_parser_binary_expression, c_parser_cast_expression,
14881         c_parser_unary_expression): Call
14882         default_function_array_conversion.
14883
14884 2005-06-15  Diego Novillo  <dnovillo@redhat.com>
14885
14886         * tree-vrp.c (vrp_int_const_binop): Do not handle MAX_EXPR
14887         when the result overflows.
14888
14889 2005-06-15  David Ung  <davidu@mips.com>
14890
14891         * config/mips/mips.c (mips_rtx_cost_data): Add cost for 4kc, 4kp,
14892         24k and 24kx.
14893         
14894 2005-06-15  Richard Sandiford  <richard@codesourcery.com>
14895
14896         * doc/invoke.texi (-mips16): Fix typo.
14897
14898 2005-06-15  David Ung  <davidu@mips.com>
14899
14900         * config/mips/mips.h (GENERATE_MIPS16E): New definition.
14901         * config/mips/mips.md (zero_extend<SHORT:mode><GPR:mode>2):
14902         Changed expand condition to exclude generating of "and" if
14903         GENERATE_MIPS16E is true.
14904         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): New pattern for
14905         matching mips16e zeb/zeh.
14906         (*extend<SHORT:mode><GPR:mode>2_mips16e): New pattern for matching
14907         mips16e seb/seh. 
14908         (*extend<SHORT:mode><GPR:mode>2): Disable this pattern for
14909         GENERATE_MIPS16E. 
14910         * doc/invoke.texi (MIPS Options): Add comment to -mips16
14911         indicating MIPS16e ASE is used if targetting for MIPS32 or MIPS64.
14912         
14913 2005-06-15  Diego Novillo  <dnovillo@redhat.com>
14914
14915         PR 22018
14916         * tree-vrp.c (vrp_int_const_binop): New.
14917         (extract_range_from_binary_expr): Call it.
14918         Unify handling division and multiplication.
14919
14920 2005-06-15  Aldy Hernandez  <aldyh@redhat.com>
14921
14922         * c-common.h (same_scalar_type_ignoring_signedness): Protoize.
14923
14924         * c-common.c (same_scalar_type_ignoring_signedness): New.
14925
14926         * c-typeck.c (build_binary_op): Check compatability of vector
14927         types.  Move error report after switch.
14928         Do not clobber code[01] on *_DIV_EXPR case.
14929
14930         * testsuite/gcc.dg/simd-1.c: Update error messages.
14931         * testsuite/gcc.dg/simd-1b.c: Re-enable tests.  Update error
14932         messages.
14933         * testsuite/gcc.dg/simd-2.c: Update error messages.
14934         * testsuite/gcc.dg/simd-4.c: New.
14935
14936 2005-06-15  Bernd Schmidt  <bernd.schmidt@analog.com>
14937
14938         * Makefile.in (local-alloc.o): Depend on $(GGC_H) and reload.h.
14939         * local-alloc.c: Include "ggc.h" and "reload.h".
14940         (struct equivalence): New member is_arg_equivalence.
14941         (local_alloc): Always call update_equiv_regs.
14942         (update_equiv_regs): Allocate reg_equiv_init; set reg_equiv_init_size.
14943         Detect equivalences made by stores to memory in a second pass.
14944         Return early if not optimizing.
14945         Initialize reg_equiv_init for all equivalences; treat equivalences for
14946         REG_EQUIV notes existing before this pass specially.
14947         (no_equiv): Don't clear reg_equiv_init or remove notes if the
14948         is_arg_equivalence field is set.
14949         * reload.h (reg_equiv_init, reg_equiv_init_size): Declare.
14950         * reload1.c (reg_equiv_init): No longer static.
14951         (reg_equiv_init_size): New variable.
14952         (reload): Don't allocate reg_equiv_init; don't free it when done but
14953         clear it.
14954         Restructure equivalence set up code not to set reg_equiv_init, but to
14955         clear it when we can't use an equivalence.
14956         Undo change disabling equivalences for MEM_READONLY_P memrefs.
14957         Dump equivalencing insns to dump_file.
14958
14959 2005-06-14  Richard Sandiford  <richard@codesourcery.com>
14960
14961         * config/mips/mips.c (machine_function): Add varargs_size field.
14962         (mips_setup_incoming_varargs): Store the amount of extra stack space
14963         there rather than in *pretend_size.  When saving registers, always
14964         expect virtual_incoming_args_rtx to point to the start of the
14965         pretend arguments.
14966         (mips_va_start): Remove alignment hack.  Handle all
14967         !EABI_FLOAT_VARARGS_P cases in the same way.
14968         (compute_frame_size): Handle varargs_size.  Remove the redundant
14969         !TARGET_OLDABI condition in the handling of pretend_args_size.
14970         (mips_initial_elimination_offset): Remove the now-redundant check
14971         of TARGET_NEWABI.
14972
14973 2005-06-14  Jeff Law  <law@redhat.com>
14974
14975         * tree-vrp.c (local_fold): Remove.
14976         (simplify_using_ranges): Use fold_convert, not local_fold.  Tweak
14977         DIV/MOD case slightly for readability.
14978
14979 2005-06-14  Frank Ch. Eigler  <fche@redhat.com>
14980
14981         PR mudflap/21023
14982         * tree-mudflap.c (mudflap_finish_file): Exclude non-public
14983         rather than static objects (!) from libmudflap registration.
14984
14985 2005-06-14  Richard Sandiford  <richard@codesourcery.com>
14986
14987         * opt-functions.awk (global_state_p, needs_state_p, static_var): New.
14988         (var_ref): Take the option's flags as a second parameter.  Check
14989         static_var.
14990         * optc-gen.awk: Declare local state variables.  Pass flags to var_ref.
14991
14992 2005-06-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
14993
14994         PR target/20301
14995         * config/sparc/sol2.h (ASM_GENERATE_INTERNAL_LABEL): Emit
14996         unsigned index numbers.
14997
14998 2005-06-13  Geoffrey Keating  <geoffk@apple.com>
14999
15000         * Makefile.in (install-man): Doesn't really depend on installdirs.
15001         (various rules for installing manpages): Do depend on installdirs.
15002
15003 2005-06-14  Nathan Sidwell  <nathan@codesourcery.com>
15004
15005         * unwind-dw2-fde-darwin.c (examine_objects): Fix aliasing in
15006         read_encoded_value_with_base call.
15007         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
15008         * unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
15009         * unwind-dw2.c (extract_cie_info): Fix aliasing in
15010         read_encoded_value call.
15011         (execute_cfa_program, uw_frame_state_for): Likewise.
15012
15013 2005-06-13  Roger Sayle  <roger@eyesopen.com>
15014
15015         PR rtl-optimization/22053
15016         * reg-stack.c (compensate_edge): Correct mistake in the assertion
15017         checking of EDGE_ABNORMAL_CALL edges; complex return values can
15018         result in the top two stack slots, st(0) and st(1), being live.
15019
15020 2005-06-13  Jeff Law  <law@redhat.com>
15021
15022         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): No longer
15023         simplify DIV, MOD or ABS expressions using VRP information.
15024         Remove WALK_DATA parameter.  Prototype and all callers updated.
15025         (eliminate_redundant_computations): Remove WALK_DATA parameter.
15026         Prototype and all callers updated.
15027         (optimize_stmt): WALK_DATA parameter is now unused.
15028
15029         * tree-vrp.c (local_fold): New function.  Like fold, but
15030         strips useless type conversions in the result.
15031         (simplify_using_ranges): New function, largely cribbed from
15032         tree-ssa-dom.c::simplify_rhs_and_lookup_avail_expr.
15033         (vrp_finalize): Call simplify_using_ranges.
15034
15035 2005-06-13  Mark Mitchell  <mark@codesourcery.com>
15036
15037         * config/i386/x86-64.h (ASM_SPEC): Explicitly pass --64 to the
15038         assembler in 64-bit mode.
15039
15040 2005-06-13  David Edelsohn  <edelsohn@gnu.org>
15041
15042         Revert scc_operand patch.
15043         * config/rs6000/predicates.md (scc_operand): Delete.
15044         * config/rs6000/rs6000.md (scc_operand): Change to scc_eq_operand.
15045
15046 2005-06-13  Zdenek Dvorak  <dvorakz@suse.cz>
15047
15048         PR middle-end/21985
15049         * fold-const.c (split_address_to_core_and_offset): Always return
15050         the address of the base object.
15051
15052 2005-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
15053
15054         * doc/invoke.texi (Blackfin Options): Document -mlong-calls.
15055
15056 2005-06-12  Richard Henderson  <rth@redhat.com>
15057
15058         PR tree-opt/21994
15059         * tree-complex.c (update_complex_components_on_edge): New.
15060         (update_parameter_components): Use it.
15061         (update_phi_components): Likewise.
15062         (expand_complex_move): Likewise for is_ctrl_altering_stmt.
15063
15064 2005-06-12  James A. Morrison  <phython@gcc.gnu.org>
15065
15066         PR tree-optimization/14796
15067         * fold-const (fold_binary): Transform (X << C) >> C into X & (-1>>C)
15068         for unsigned types.
15069
15070 2005-06-12  Kazu Hirata  <kazu@codesourcery.com>
15071
15072         * cgraphunit.c, tree-ssa-loop-ivopts.c,
15073         tree-ssa-structalias.c, tree-vectorizer.c, tree-vectorizer.h,
15074         config/sparc/sparc.c: Fix comment typos.
15075
15076 2005-06-12  Richard Earnshaw  <richard.earnshaw@arm.com>
15077
15078         * arm/ieee754-df.s (aeabi_dcmpeq, aeabi_dcmplt, aeabi_dcmple)
15079         (aeabi_dcmpge, aeabi_dcmpgt): Maintain 8-byte stack alignment.
15080         * arm/ieee754-sf.s (aeabi_l2f, aeabi_fcmpeq, aeabi_fcmplt)
15081         (aeabi_fcmple, aeabi_fcmpge, aeabi_fcmpgt): Likewise.
15082
15083 2005-06-12  James A. Morrison  <phython@gcc.gnu.org>
15084
15085         PR tree-optimization/14796
15086         * fold-const.c (fold_binary): Transform (A >> C) << C into
15087         one BIT_AND_EXPR.
15088         <shift>: Transform (A OP c1) OP c2 into A OP (c1 + c2).
15089
15090 2005-06-11  Geoffrey Keating  <geoffk@apple.com>
15091
15092         * config/rs6000/predicates.md (reg_or_arith_cint_operand): Delete.
15093         (reg_or_add_cint_operand): Rename from reg_or_add_cint64_operand.
15094         Handle SImode.
15095         (reg_or_sub_cint_operand): Likewise.
15096         (mask_operand): Handle DImode.
15097         (mask64_operand): Delete.
15098         (and64_operand): Delete.
15099         * config/rs6000/rs6000.c (num_insns_constant): Use mask_operand
15100         instead of mask64_operand.
15101         (print_operand): Likewise.
15102         (rs6000_rtx_costs): Use mask_operand and reg_or_add_cint_operand and
15103         reg_or_sub_cint_operand instead of *64_* variants.
15104         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Use mask_operand
15105         instead of mask64_operand.
15106         * config/rs6000/rs6000.md: Use mask_operand and and_operand instead
15107         of *64_* variants.
15108         (FP): New.
15109         (add_op2): Delete.
15110         (add<mode>3): Use reg_or_add_cint_operand.
15111         (sub_op2): Delete.
15112         (sub<mode>3): Use reg_or_sub_cint_operand.
15113         (udiv<mode>3, div<mode>3, div<mode>3_no_mq, mod<mode>3,
15114         mov<mode>_internal2, mov<mode>, cmp<mode>, cmp<mode>,
15115         cmp<mode>_internal1, indirect_jump<mode>, ctr<mode>,
15116         ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
15117         ctr<mode>_internal6, save_fpregs_<mode>, return_internal_<mode>,
15118         return_and_restore_fpregs_<mode>, eh_set_lr_<mode>,
15119         various unnamed patterns): New.
15120         (udivsi3, divsi3, divsi3_no_mq, modsi3, movsi_internal2, movsi,
15121         cmpsi, cmpsi_internal1, indirect_jumpsi, ctrsi, ctrsi_internal1,
15122         ctrsi_internal2, ctrsi_internal5, ctrsi_internal6, save_fpregs_si,
15123         return_internal_si, return_and_restore_fpregs_si, eh_set_lr_si,
15124         udivdi3, divdi3, divdi3_no_mq, moddi3, movdi_internal2, movdi,
15125         cmpdi, cmpdi_internal1, indirect_jumpdi, ctrdi, ctrdi_internal1,
15126         ctrdi_internal2, ctrdi_internal5, ctrdi_internal6, save_fpregs_di,
15127         return_internal_di, return_and_restore_fpregs_di, eh_set_lr_di,
15128         movhi, movqi, cmpsf, cmpdf, cmptf, various unnamed patterns):
15129         Delete.
15130
15131 2005-06-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15132
15133         * rtl.h (to_rtx_code): Remove.
15134         * machmode.h (to_machine_mode): Likewise.
15135         * read-rtl.c (apply_mode_macro): Replace to_machine_mode with
15136         explicit cast.
15137         (apply_mode_maps): Likewise.
15138         (read_rtx_1): Likewise.
15139         (apply_code_macro): Replace to to_rtx_code with explicit cast.
15140         (check_code_macro): Likewise.
15141         (read_rtx_1): Likewise.
15142
15143 2005-06-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15144
15145         * c-typeck.c (convert_for_assignment): Avoid checking
15146         OPT_Wc___compat, as it is always true.
15147
15148 2005-06-11  David Edelsohn  <edelsohn@gnu.org>
15149
15150         * config/rs6000/rs6000.md (eq<mode>_compare): Restrict to Pmode.
15151
15152 2005-06-11  Daniel Berlin  <dberlin@dberlin.org>
15153
15154         Fix PR tree-optimization/22005
15155         Fix PR tree-optimization/22025
15156         
15157         * tree-ssa-structalias.c (struct variable_info): Add has_union
15158         member.
15159         (create_variable_info_for):  Mark variables containing unions.
15160         Don't sort the field stack if notokay is true.
15161         (find_what_p_points_to): Convert variables containing unions back
15162         to their SFT's if necessary.
15163         
15164 2005-06-11  Daniel Berlin  <dberlin@dberlin.org>
15165
15166         * lambda-code.c (replace_uses_equiv_to_x_with_y): Verify the step
15167         is an INTEGER_CST before calling int_cst_value.
15168
15169 2005-06-10  Uros Bizjak  <uros@kss-loka.si>
15170
15171         PR target/21981
15172         * config/i386/i386.c (ix86_function_value_regno_p): Return true
15173         for FIRST_MMX_REG if TARGET_MMX.
15174         (ix86_return_in_memory): Return 1 for MMX/3dNow vectors. Delete
15175         wrong comment.
15176         (ix86_struct_value_rtx): Emit warning for MMX ABI violations.
15177         (ix86_value_regno): Return FIRST_MMX_REG for MMX vector modes.
15178
15179 2005-06-10  Daniel Berlin  <dberlin@dberlin.org>
15180
15181         * lambda-code.c (replace_uses_equiv_to_x_with_y): Check step
15182         and access function against chrec_dont_know.
15183           
15184 2005-06-10  Daniel Berlin  <dberlin@dberlin.org>
15185
15186         * lambda-code.c (replace_uses_of_x_with_y): Renamed and rewritten
15187         slightly.
15188         (exit_phi_for_loop_p): New function.
15189         (can_put_in_inner_loop): Ditto.
15190         (can_convert_to_perfect_nest): Ditto.
15191         (perfect_nestify): Create iv with right type.
15192         Rewrite statements in correct order.    
15193
15194 2005-06-10  Keith Besaw  <kbesaw@us.ibm.com>
15195
15196         * tree-ssa-alias.c (new_type_alias): Use existing type
15197         tag if VAR has just one in its may_aliases list.
15198
15199 2005-06-10  Fariborz Jahanian <fjahanian@apple.com>
15200
15201         * rs6000/predicates.md (scc_operand): New.
15202         * rs6000/rs6000.md : Use scc_operand for eq:SI compares.
15203
15204 2005-06-10  Dorit Nuzman  <dorit@il.ibm.com>
15205
15206         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): DRs whose
15207         dependence-distance modulo VF is 0 are recorded in the 
15208         SAME_ALIGN_REFs VEC in each DR.
15209         (vect_enhance_data_refs_alignment): Avoid 80 column overflow. The
15210         alignment information of DRs that are in the SAME_ALIGN_REFs VEC of the
15211         DR we want to peel for, is set to 0.
15212         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Fix printout.
15213         * tree-vectorizer.c (destroy_loop_vec_info): Free the SAME_ALIGN_REFs
15214         VEC.
15215         * tree-vectorizer.h (dr_p): New type. Defined to use the VEC API.
15216         (_stmt_vec_info): Added new field same_align_refs.
15217         (STMT_VINFO_SAME_ALIGN_REFS): New macro.
15218
15219 2005-06-10  Nathan Sidwell  <nathan@codesourcery.com>
15220
15221         * vec.h (VEC_safe_grow): Append MEM_STAT_INFO.
15222
15223 2005-06-10  Alan Modra  <amodra@bigpond.net.au>
15224
15225         * config/rs6000/linux.h (NO_PROFILE_COUNTERS): Define.
15226         * config/rs6000/linux64.h (NO_PROFILE_COUNTERS): Define as 1.
15227         * config/rs6000/rs6000.c (output_function_profiler): Obey
15228         NO_PROFILE_COUNTERS.  Handle TARGET_SECURE_PLT.  Use "bcl 20,31"
15229         for -fPIC.  Delete save_lr and substitute its value into strings.
15230
15231 2005-06-09  Dale Johannesen  <dalej@apple.com>
15232
15233         * config/i386/i386.c (optimization_options):  Make -fno-math-errno
15234         the default on Darwin.
15235         * config/rs6000/rs6000.c (optimization_options):  Ditto.
15236         * doc/invoke.texi (-fno-math-errno): Document.
15237
15238 2005-06-09  Dale Johannesen  <dalej@apple.com>
15239
15240         * config/rs6000/rs6000.c (TARGET_INSN_VALID_WITHIN_DOLOOP):
15241         Change to TARGET_INVALID_WITHIN_DOLOOP.
15242
15243 2005-06-09  David Edelsohn  <edelsohn@gnu.org>
15244
15245         * config/rs6000/rs6000.md (eq): Convert to define_insn_and_split.
15246         * config/rs6000/predicates.md (scc_eq_operand): New.
15247
15248 2005-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
15249
15250         * config/sh/sh.md (mextr_rl): Set buffer size properly.
15251         (*mextr_lr): Likewise.
15252
15253 2005-06-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15254
15255         PR c/21759
15256         * c.opt (Wc++-compat): New.
15257         * doc/invoke.texi (-Wc++-compat): Document.
15258         * c-typeck.c (convert_for_assignment): Check for implicit
15259         conversion void* -> T*.
15260
15261 2005-06-09  Gabriel Dos Reis  <gdr@integrable-solutions.edu>
15262
15263         * machmode.h (to_machine_mode): New.
15264         * rtl.h (to_rtx_code): Likewise.
15265         * read-rtl.c (apply_mode_macro): Convert mode to machine_mode.
15266         (print_c_condition): Convert return value of htab_find().
15267         (apply_code_macro): Add explicit cast when convertin to enums.
15268         (apply_mode_maps): Likewise.
15269         (check_code_macro): Likewise.
15270         (read_rtx_1): Likewise.
15271
15272 2005-06-09  Richard Henderson  <rth@redhat.com>
15273
15274         * config/ia64/ia64.c (update_set_flags): Just return for IF_THEN_ELSE.
15275         Use SCALAR_FLOAT_MODE_P.
15276         * config/ia64/vect.md (vcondv2sf): Remove code check on comparison.
15277         (fselect): Rename from fpcmp; use %F.
15278         (fpcmp): New.
15279
15280 2005-06-09  Jan Hubicka  <jh@suse.cz>
15281
15282         * cgraphunit.c (cgraph_create_edges): Do not walk BLOCK; finalize
15283         local statics when doing unit-at-a-time.
15284         (cgraph_varpool_assemble_pending_decls): Output debug info.
15285         * dwarf2out.c (decls_for_scope): Skip local statics.
15286         (dwarf2out_decl): Handle local statics.
15287         * passes.c (rest_of_decl_compilation): Do not differentiate
15288         local and global statics in unit-at-a-time.
15289         * tree-inline.c (remap_decls): Put local static into
15290         unexpanded_vars_list rather than introducing duplicated VAR_DECL
15291         node.
15292
15293 2005-06-09  Daniel Berlin  <dberlin@dberlin.org>
15294
15295         * config/rs6000/rs6000.c: (rs6000_insn_valid_within_doloop): Fix
15296         prototype.
15297
15298 2005-06-08  Daniel Berlin  <dberlin@dberlin.org>
15299
15300         * Makefile.in (OBJS-common): Add tree-ssa-structalias.o.
15301         * tree-flow.h (find_what_p_points_to): Add prototype.
15302         (push_fields_onto_fieldstack): Ditto.
15303         (sort_fieldstack): Ditto.
15304         * tree-optimize.c (init_tree_optimization_passes): Add
15305         pass_build_pta and pass_del_pta.
15306         * tree-pass.h (pass_build_pta): New structure.
15307         (pass_del_pta): Ditto.
15308         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Disambiguate
15309         using new alias analyzer.
15310         (push_fields_onto_fieldstack): Removed from here.
15311         (bitpos_of_field): Ditto.
15312         (fieldoff_compare): Ditto.
15313         * tree-ssa-structalias.c: New file.
15314         * tree-ssa-structalias.h: Ditto.
15315
15316 2005-06-09  Nathan Sidwell  <nathan@codesourcery.com>
15317
15318         * c-typeck.c (build_c_cast): Check type punning on COMPONENT_REF
15319         too.
15320
15321 2005-06-09  Bernd Schmidt  <bernd.schmidt@analog.com>
15322
15323         * config/bfin/bfin.c (enum bfin_builtins): Moved here from...
15324         * config/bfin/bfin.h (enum bfin_builtins): ... here.
15325
15326 2005-06-09  Adrian Straetling  <straetling@de.ibm.com>
15327
15328         * target.h (insn_valid_within_doloop): Rename into
15329         "invalid_within_doloop".  Change return type to "const char *".
15330         Update Comment.
15331         * targhooks.h (default_insn_valid_within_doloop): Rename into
15332         "default_invalid_within_doloop". 
15333         * targhooks.c (default_insn_valid_within_doloop): Likewise.
15334         Update Comment.
15335         * target-def.h (TARGET_INSN_VALID_WITHIN_DOLOOP): Rename target hook
15336         into "TARGET_INVALID_WITHIN_DOLOOP". Default it to
15337         "default_invalid_within_doloop".
15338         * hooks.c (hook_constcharptr_rtx_null): New function.
15339         (hook_bool_rtx_true): Remove.
15340         * hooks.h (hook_constcharptr_rtx_null): Declare.
15341         (hook_bool_rtx_true): Remove.
15342         * loop-doloop.c (doloop_valid_p): Temporarily store return value of
15343         "invalid_within_doloop" and print error message if non-null.
15344         Update Comment.
15345         * doc/tm.texi: Update documentation.
15346         * config/s390/s390.c: Adjust to new hook name and new default hook.
15347         * config/rs6000/rs6000.c: (rs6000_insn_valid_within_doloop): Rename
15348         into "rs6000_invalid_within_doloop".
15349         (rs6000_invalid_within_doloop): Change return type to "static const
15350         char *" and replace return values.  Update Comment.
15351
15352 2005-06-09  Bernd Schmidt  <bernd.schmidt@analog.com>
15353
15354         * config/bfin/bfin.opt (mlong-calls): New.
15355         * config/bfin/predicates.md (call_insn_operand): Disallow SYMBOL_REF
15356         if TARGET_LONG_CALLS.
15357
15358 2005-06-09  Richard Henderson  <rth@redhat.com>
15359
15360         PR tree-opt/20610
15361         * tree.h (DECL_COMPLEX_GIMPLE_REG_P): New.
15362         (struct tree_decl): Add gimple_reg_flag.
15363         * integrate.c (copy_decl_for_inlining): Copy it.
15364         * gimplify.c (internal_get_tmp_var): Set it.
15365         (gimplify_bind_expr): Likewise.
15366         (gimplify_function_tree): Likewise.
15367         (gimplify_modify_expr_complex_part): New.
15368         (gimplify_modify_expr): Use it.
15369         * tree-gimple.c (is_gimple_reg_type): Allow complex.
15370         (is_gimple_reg): Allow complex with DECL_COMPLEX_GIMPLE_REG_P set.
15371
15372         * tree-complex.c (complex_lattice_t): New.
15373         (complex_lattice_values, complex_variable_components): New.
15374         (some_nonzerop, find_lattice_value, is_complex_reg,
15375         init_parameter_lattice_values, init_dont_simulate_again, 
15376         complex_visit_stmt, complex_visit_phi, create_components,
15377         update_complex_components, update_parameter_components, 
15378         update_phi_components, update_all_vops, expand_complex_move): New.
15379         (extract_component): Handle INDIRECT_REF, COMPONENT_REF, ARRAY_REF,
15380         SSA_NAME.
15381         (update_complex_assignment): Use update_complex_components;
15382         handle updates of return_expr properly.
15383         (expand_complex_addition): Use complex lattice values.
15384         (expand_complex_multiplication): Likewise.
15385         (expand_complex_division): Likewise.
15386         (expand_complex_libcall): Use update_complex_components.
15387         (expand_complex_comparison): Use update_stmt.
15388         (expand_complex_operations_1): Use expand_complex_move, retrieve
15389         lattice values.
15390         (tree_lower_complex): Compute lattice values.
15391         (tree_lower_complex_O0): Duplicate from tree_lower_complex.
15392         (pass_lower_complex_O0): Rename from pass_lower_complex.
15393         (pass_lower_complex, gate_no_optimization): New.
15394         * tree-optimize.c (init_tree_optimization_passes): Update for
15395         complex pass changes.
15396         * tree-pass.h (pass_lower_complex_O0): Declare.
15397
15398 2005-06-08  Dale Johannesen  <dalej@apple.com>
15399
15400         * config/darwin.c (darwin_binds_local_p):  New.
15401         * config/darwin-protos.h (darwin_binds_local_p):  Declare it.
15402         * config/i386/i386.c (TARGET_BINDS_LOCAL_P):  Use it for TARGET_MACHO.
15403         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Remove.
15404         (TARGET_BINDS_LOCAL_P):  Change it to darwin_binds_local_p.
15405
15406 2005-06-08  Aldy Hernandez  <aldyh@redhat.com>
15407
15408         * config/rs6000/rs6000.h: Remove rs6000_long_double_size_string,
15409         rs6000_isel, rs6000_spe, rs6000_alignment_string,
15410         rs6000_sched_restricted_insns_priority_str,
15411         rs6000_sched_restricted_insns_priority, rs6000_abi_string.
15412
15413 2005-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
15414
15415         * tree-ssa-address.c (addr_for_mem_ref): Use LAST_VIRTUAL_REGISTER
15416         instead of FIRST_PSEUDO_REGISTER for creating pseudoregisters.
15417         * tree-ssa-loop-ivopts.c (add_cost, multiply_by_cost,
15418         multiplier_allowed_in_address_p, get_address_cost): Ditto.
15419
15420 2005-06-08  Richard Henderson  <rth@redhat.com>
15421
15422         * config/ia64/ia64.h (NO_PROFILE_COUNTERS): New.
15423         * config/ia64/ia64.c (ia64_output_function_profiler): Honor it.
15424         Emit out3 load right after alloc.
15425
15426 2005-06-08  Aldy Hernandez  <aldyh@redhat.com>
15427
15428         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15429         rs6000_explicit_options.
15430
15431 2005-06-08  Richard Henderson  <rth@redhat.com>
15432
15433         * config/ia64/ia64.h (FUNCTION_PROFILER): Move implementation ...
15434         * config/ia64/ia64.c (ia64_output_function_profiler): ... here; add
15435         unwind markup.
15436         * config/ia64/ia64-protos.h (ia64_output_function_profiler): Declare.
15437
15438 2005-06-08  Joseph S. Myers  <joseph@codesourcery.com>
15439
15440         * config/sol2-c.c (cmn_err_char_table): Allow width for %b
15441         formats.
15442
15443 2005-06-08  James A. Morrison  <phython@gcc.gnu.org>
15444
15445         PR target/20666
15446         * config/sparc/sparc.c (sparc_fold_builtin): New function
15447         (sparc_vis_mul8x16): New function.
15448         (sparc_handle_vis_mul8x16): New function.
15449         (TARGET_FOLD_BUILTIN): Define to sparc_fold_builtin.
15450
15451 2005-06-08  David Edelsohn  <edelsohn@gnu.org>
15452
15453         * config/rs6000/rs6000.md (call_indirect_nonlocal_aix32): Prefer
15454         CTR to LR.
15455         (call_indirect_nonlocal_aix64): Same.
15456         (call_value_indirect_nonlocal_aix32): Same.
15457         (call_value_indirect_nonlocal_aix64): Same.
15458
15459         PR target/10588
15460         (eq): Use CLZ splitter for compare with zero.
15461
15462 2005-06-08  Bernd Schmidt  <bernd.schmidt@analog.com>
15463
15464         * config/bfin/bfin.c (bfin_return_in_memory): Simplify; return
15465         everything larger than 8 bytes in memory.
15466
15467         * config/bfin/bfin.h (enum bfin_builtins): New.
15468         * config/bfin/bfin.md (UNSPEC_VOLATILE_CSYNC, UNSPEC_VOLATILE_SSYNC):
15469         New constants.
15470         (csync, ssync): New insn patterns.
15471         * config/bfin/bfin.c (bfin_init_builtins, bfin_expand_builtin):
15472         New functions.
15473         (def_builtin): New macro.
15474         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
15475
15476         From Jie Zhang  <jie.zhang@analog.com>
15477         * config/bfin/bfin.h (ASM_OUTPUT_ALIGN): Gas now emulates the
15478         behavior of the native assembler in VDSP. So change accordingly.
15479         
15480 2005-06-08  Sebastian Pop  <pop@cri.ensmp.fr>
15481
15482         * tree-data-ref.c (compute_estimated_nb_iterations,
15483         analyze_array_indexes, compute_overlap_steps_for_affine_1_2,
15484         analyze_subscript_affine_affine, find_data_references_in_loop):
15485         Fixed to use chrec_contains_undetermined to test the values of
15486         loop->estimated_nb_iterations.
15487         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
15488         Compute the estimation only when loop->estimated_nb_iterations
15489         has not yet been initialized.
15490         (convert_step_widening, scev_probably_wraps_p): Add a call to
15491         estimate_numbers_of_iterations_loop.
15492         * tree-vrp.c (execute_vrp): Don't call estimate_numbers_of_iterations.
15493
15494 2005-06-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
15495
15496         PR debug/21946
15497         * dwarf2out.c (add_loc_descr_op_piece): Move to the
15498         DWARF2_DEBUGGING_INFO section.
15499
15500 2005-06-08  Richard Henderson  <rth@redhat.com>
15501
15502         PR target/21721
15503         * config/ia64/ia64.c (emit_predicate_relation_info): Skip p0.
15504
15505 2005-06-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
15506
15507         PR target/21889
15508         * target.h (gcc_target) <asm_out>: New field output_dwarf_dtprel.
15509         * target-def.h (TARGET_ASM_OUTPUT_DWARF_DTPREL): New macro.
15510         (TARGET_ASM_OUT): Add it.
15511         * doc/tm.texi (Debugging Info): Document it.
15512         * dwarf2out.c (output_loc_operands) <INTERNAL_DW_OP_tls_addr>:
15513         Test it instead of ASM_OUTPUT_DWARF_DTPREL.
15514         (loc_descriptor_from_tree_1) <VAR_DECL>: Likewise.
15515         * system.h: Poison ASM_OUTPUT_DWARF_DTPREL.
15516         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Delete.
15517         * config/frv/frv.c (frv_output_dwarf_dtprel): Make static and unused.
15518         (gen_inlined_tls_plt): Remove unused variable MEM.
15519         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to frv_output_dwarf_dtprel.
15520         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15521         * config/i386/i386-protos.h (i386_output_dwarf_dtprel): Delete.
15522         * config/i386/i386.c (i386_output_dwarf_dtprel): Make static and
15523         unused.
15524         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to i386_output_dwarf_dtprel.
15525         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15526         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): Delete.
15527         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Make static and
15528         unused.
15529         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to ia64_output_dwarf_dtprel.
15530         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15531         * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Delete.
15532         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Make static and
15533         unused.
15534         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to rs6000_output_dwarf_dtprel
15535         * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15536         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): Delete.
15537         * config/s390/s390.c (s390_output_dwarf_dtprel): Make static and
15538         unused.
15539         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to s390_output_dwarf_dtprel.
15540         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15541         * config/sparc/sol2-gas.h (TARGET_SUN_TLS): Define to 0.
15542         (TARGET_GNU_TLS): Define to 1.
15543         * config/sparc/sparc-protos.h (sparc_output_dwarf_dtprel): Delete.
15544         * config/sparc/sparc.c (sparc_output_dwarf_dtprel): Make static and
15545         unused.
15546         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to sparc_output_dwarf_dtprel
15547         if TARGET_GNU_TLS only.
15548         * config/sparc/sparc.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
15549
15550         * config.gcc (sparc64-*-solaris2*): Include tm-dwarf2.h last.
15551         (sparc-*-solaris2*): Likewise on Solaris 7 and up.
15552
15553 2005-06-07  Dale Johannesen  <dalej@apple.com>
15554
15555         * config/i386/i386.md (movqi_1):  Fix case where source
15556         is memory and destination EDI.
15557
15558 2005-06-08  Kazu Hirata  <kazu@codesourcery.com>
15559
15560         * config/c4x/c4x.h (PREDICATE_CODES): Remove mem_operand.
15561
15562 2005-06-07  Eric Christopher  <echristo@redhat.com>
15563
15564         * system.h: Poison EXTRA_CC_MODES.
15565         * config/frv/frv.h (SELECT_CC_MODE): Rewrite comment.
15566         * config/ia64/ia64.h (SELECT_CC_MODE): Ditto.
15567         * doc/md.texi (Jump Patterns): Replace reference to
15568         EXTRA_CC_MODES with machine-modes.def.
15569         * doc/rtl.texi (Machine Modes): Ditto.
15570
15571 2005-06-07  Richard Henderson  <rth@redhat.com>
15572
15573         * varasm.c (initialize_cold_section_name): Fix alloca buffer overflow.
15574         (assemble_start_function): Fix strcmp confusion.
15575
15576 2005-06-07  Uros Bizjak  <uros@kss-loka.si>
15577
15578         * config/i386/i386.h (enum ix86_entity): New.
15579         (enum ix86_stack_slot): New.
15580         (OPTIMIZE_MODE_SWITCHING): Redefine to use
15581         ix86_optimize_mode_switching[] array.
15582         (NUM_MODES_FOR_MODE_SWITCHING): Redefine for 4 entities.
15583         (MODE_NEEDED): Use ix86_mode_needed() function.
15584         (EMIT_MODE_SET): Redefine for changed emit_i387_cw_initialization ()
15585         function.
15586         (struct machine_function): Use optimize_mode_switching[] array.
15587
15588         * config/i386/i386.c (MAX_386_STACK_LOCALS): Remove.
15589         (ix86_mode_needed): New function.
15590         (emit_i387_cw_initialization): Cleanup. Use mode to calculate
15591         correct stack positions for stored control words.
15592         (assign_386_stack_local): Use enum ix86_stack_slot. Change assert.
15593         (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR]: Change constant to
15594         SLOT_TEMP.
15595         [IX86_BUILTIN_STMXCSR]: Same.
15596
15597         * config/i386/i386-protos.h (assign_stack_local): Change prototype.
15598         (emit_i387_cw_initialization): Change prototype.
15599         (ix86_mode_needed): New prototype.
15600
15601         * config/i386/i386.md (i387_cw attribute): Change order of elements.
15602         (truncdfsf2, truncxfsf2, truncxfdf2, fix_trunc<mode>_fisttp_i387_1)
15603         (*fix_trunc<mode>_i387_1, lrint<mode>2, *fist<mode>2_floor_1)
15604         (*fist<mode>2_ceil_1): Change constant in call to
15605         assign_386_stack_local to SLOT_TEMP.
15606         (*fix_trunc<mode>_i387_1): Change constant in call to
15607         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
15608         Use new ix86_optimize_mode_switching[] array.
15609         (frndintxf2_floor, *fist<mode>2_floor_1): Change constants in call to
15610         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_FLOOR.
15611         Use new ix86_optimize_mode_switching[] array.
15612         (frndintxf2_ceil, *fist<mode>2_ceil_1):  Change constants in call to
15613         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_CEIL.
15614         Use new ix86_optimize_mode_switching[] array.
15615         (frndintxf2_trunc): Change constants in call to
15616         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
15617         Use new ix86_optimize_mode_switching[] array.
15618         (frndintxf2_mask_pm): Change constants in call to
15619         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_MASK_PM.
15620         Use new ix86_optimize_mode_switching[] array.
15621
15622         (define_peephole2): Change constant from 17 to FLAGS_REG;
15623
15624 2005-06-07  Richard Henderson  <rth@redhat.com>
15625
15626         PR rtl-opt/21528
15627         * rtlanal.c (reg_overlap_mentioned_p) <MEM>: Handle 'E' formats.
15628
15629 2005-06-07  Dale Johannesen  <dalej@apple.com>
15630
15631         * tree-nested.c (finalize_nesting_tree_1):  Disable
15632         warn_padded around layout_type call.
15633
15634 2005-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
15635
15636         * tree-ssa-loop-ivopts.c (rewrite_use_outer): Unshare the expression
15637         before emiting it.
15638
15639 2005-06-07  Eric Christopher  <echristo@redhat.com>
15640
15641         * config/mips/predicates.md: Revert previous patch.
15642
15643 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
15644
15645         PR middle-end/21850
15646         * tree.c (get_unwidened): Stop at NOP_EXPR/CONVERT_EXPR that convert
15647         from vector types.
15648
15649 2005-06-07  Diego Novillo  <dnovillo@redhat.com>
15650
15651         * tree-ssa-threadupdate.c (struct thread_stats_d): Declare.
15652         (thread_stats): New local variable.
15653         (redirect_edges): Increment count of threaded edges.
15654         (thread_through_all_blocks): Initialize thread_stats.
15655         Display number of threaded jumps if TDF_STATS is enabled.
15656
15657 2005-06-07  Kazu Hirata  <kazu@codesourcery.com>
15658
15659         * sbitmap.h (sbitmap_iter_init): Consistently treat bit_num as
15660         the current bit index with no modulo.
15661
15662 2005-06-07  Sebastian Pop  <pop@cri.ensmp.fr>
15663
15664         PR 18403 and meta PR 21861.
15665         * Makefile.in (tree-chrec.o): Depend on CFGLOOP_H and TREE_FLOW_H.
15666         * tree-chrec.c: Include cfgloop.h and tree-flow.h.
15667         (evolution_function_is_invariant_rec_p,
15668         evolution_function_is_invariant_p): New.
15669         (chrec_convert): Use an extra parameter AT_STMT for refining the
15670         information that is passed down to convert_step.  Integrate the 
15671         code that was in count_ev_in_wider_type.
15672         * tree-chrec.h (count_ev_in_wider_type): Removed.
15673         (chrec_convert): Modify its declaration.
15674         (evolution_function_is_invariant_p): Declared.
15675         (evolution_function_is_affine_p): Use evolution_function_is_invariant_p.
15676         * tree-flow.h (can_count_iv_in_wider_type): Renamed convert_step.
15677         (scev_probably_wraps_p): Declared.
15678         * tree-scalar-evolution.c (count_ev_in_wider_type): Removed.
15679         (follow_ssa_edge_in_rhs, interpret_rhs_modify_expr):
15680         Use an extra parameter AT_STMT for refining the information that is
15681         passed down to convert_step.
15682         (follow_ssa_edge_inner_loop_phi, follow_ssa_edge,
15683         analyze_scalar_evolution_1): Initialize AT_STMT with the current
15684         analyzed statement.
15685         (instantiate_parameters_1): Don't know yet how to initialize AT_STMT.
15686         * tree-ssa-loop-ivopts.c (idx_find_step): Update the use of 
15687         can_count_iv_in_wider_type to use convert_step.
15688         * tree-ssa-loop-niter.c (can_count_iv_in_wider_type_bound): Move 
15689         code that is independent of the loop over the known iteration
15690         bounds to convert_step_widening, the rest is moved to
15691         proved_non_wrapping_p.
15692         (scev_probably_wraps_p): New.
15693         (can_count_iv_in_wider_type): Renamed convert_step.
15694         * tree-vrp.c (adjust_range_with_scev): Take an extra AT_STMT parameter.
15695         Use scev_probably_wraps_p for computing init_is_max.
15696         (vrp_visit_assignment): Pass the current analyzed statement to 
15697         adjust_range_with_scev.
15698         (execute_vrp): Call estimate_numbers_of_iterations for refining the 
15699         information provided by scev analyzer.
15700
15701 2005-06-07  Eric Christopher  <echristo@redhat.com>
15702
15703         * config/mips/predicates.md (sleu_operand): Use
15704         IN_RANGE to specify range of operand.
15705
15706 2005-06-07  Steven Bosscher  <stevenb@suse.de>
15707
15708         PR tree-optimization/21847
15709         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): With
15710         -fnon-call-exceptions, also mark statements inherently
15711         necessary if they may throw.
15712
15713 2005-06-07  Adrian Straetling  <straetling@de.ibm.com>
15714
15715         * config/s390/s390.md: ("UNSPECV_MB", "UNSPECV_CAS"): New constants.
15716         ("type"): Add "sem" to 'type' attribute.
15717         ("memory_barrier", "*memory_barrier", "sync_compare_and_swapdi",
15718         "sync_compare_and_swapsi", "sync_compare_and_swap_ccdi",
15719         "sync_compare_and_swap_ccsi", "*sync_compare_and_swap_ccdi",
15720         "*sync_compare_and_swap_ccsi"): New patterns.
15721         * config/s390/2064.md: ("z_sem"): New insn_reservation.
15722         * config/s390/2084.md: ("x_sem"): New insn_reservation.
15723         * config/s390/s390.c: (s390_compare_emitted): New global variable.
15724         (s390_emit_compare): Do not emit comparison again after cas.
15725         * config/s390/s390.h (s390_compare_emitted): Declare.
15726
15727 2005-06-07  Kazu Hirata  <kazu@codesourcery.com>
15728
15729         * sbitmap.h (sbitmap_iterator, sbitmap_iter_init,
15730         sbitmap_iter_cond, sbitmap_iter_next): New.
15731         * bt-load.c, cfganal.c, combine.c, ddg.c, flow.c,
15732         modulo-sched.c, sbitmap.c, sched-rgn.c, tree-into-ssa.c,
15733         tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Update
15734         uses of EXECUTE_IF_SET_IN_SBITMAP to the new style.
15735
15736 2005-06-07  Zdenek Dvorak  <dvorakz@suse.cz>
15737
15738         * tree-ssa-address.c: New file.
15739         * Makefile.in (tree-ssa-address.o): Add.
15740         * expr.c (expand_expr_real_1): Do not handle REF_ORIGINAL on
15741         INDIRECT_REFs.  Handle TARGET_MEM_REFs.
15742         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REFs.
15743         * tree-flow.h (struct mem_address): New.
15744         (struct affine_tree_combination): Moved from tree-ssa-loop-ivopts.c.
15745         (create_mem_ref, addr_for_mem_ref, get_address_description,
15746         maybe_fold_tmr, multiplier_allowed_in_address_p,
15747         multiply_by_cost):  Declare.
15748         * tree-mudflap.c (mf_xform_derefs_1): Handle TARGET_MEM_REFs.
15749         * tree-pretty-print.c (dump_generic_node): Ditto.
15750         * tree-ssa-loop-im.c (for_each_index): Ditto.
15751         * tree-ssa-loop-ivopts.c (may_be_unaligned_p,
15752         find_interesting_uses_address): Ditto.
15753         (rewrite_address_base, build_addr_strip_iref): Removed.
15754         (struct affine_tree_combination): Moved to tree-flow.h.
15755         (get_ref_tag, copy_ref_info): New functions.
15756         (rewrite_use_address): Produce TARGET_MEM_REFs.
15757         (tree_ssa_iv_optimize): Do not call update_ssa
15758         and rewrite_into_loop_closed_ssa.
15759         (tree_to_aff_combination): Use build_fold_addr_expr instead of
15760         build_addr_strip_iref.
15761         (unshare_aff_combination): New function.
15762         (fold_affine_sum): Removed.
15763         (get_computation_at): Use get_computation_aff.  Unshare the result.
15764         (get_computation_aff, multiplier_allowed_in_address_p): New function.
15765         (multiply_by_cost): Exported.
15766         (get_address_cost): Use multiplier_allowed_in_address_p.
15767         * tree-ssa-operands.c (get_tmr_operands): New function.
15768         (get_expr_operands): Handle TARGET_MEM_REFs.
15769         * tree.c (copy_node_stat): Copy annotations for TARGET_MEM_REFs.
15770         (build): Handle 7 arguments.
15771         (build7_stat): New function.
15772         * tree.def (TARGET_MEM_DEF): New.
15773         * tree.h (REF_ORIGINAL): Removed.
15774         (TMR_SYMBOL, TMR_BASE, TMR_INDEX, TMR_STEP, TMR_OFFSET, TMR_ORIGINAL,
15775         TMR_TAG, build7): New macros.
15776         (build7_stat, tree_mem_ref_addr, copy_mem_ref_info): Declare.
15777         * tree-ssa-ccp.c (fold_stmt_r): Call maybe_fold_tmr.
15778         * doc/c-tree.texi: Document TARGET_MEM_REF.
15779         * doc/tree-ssa.texi: Add TARGET_MEM_REF to gimple grammar.
15780
15781 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
15782
15783         PR debug/21946
15784         * dwarf2out.c (add_loc_descr_op_piece): New function.
15785         (multiple_reg_loc_descriptor, concat_loc_descriptor,
15786         loc_descriptor): Use it.
15787         * var-tracking.c: Include regs.h and expr.h.
15788         (emit_note_insn_var_location): Skip over pieces where offset
15789         is smaller than previous offset plus previous piece mode size.
15790         Optimize adjacent hard registers or memory locations.
15791         * Makefile.in (var-tracking.o): Depend on $(REGS_H) and $(EXPR_H).
15792
15793 2005-06-07  Richard Guenther  <rguenth@gcc.gnu.org>
15794
15795         * c-typeck.c (c_finish_if_stmt): Use void_type_node as type
15796         for COND_EXPR.
15797         * gimplify.c (gimplify_cond_expr): No need to fix up the
15798         type of COND_EXPRs.
15799
15800 2005-06-07  Richard Guenther  <rguenth@gcc.gnu.org>
15801
15802         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Fix
15803         comments.
15804
15805 2005-06-07  Geoffrey Keating  <geoffk@apple.com>
15806
15807         * config/rs6000/host-darwin.c (segv_handler): Widen the possible
15808         'stwux' instructions that are considered to be stack decrements.
15809
15810         * rtlanal.c (subreg_offset_representable_p): Handle objects
15811         with holes.
15812
15813 2005-06-06  Uros Bizjak  <uros@kss-loka.si>
15814
15815         * mode-switching.c (optimize_mode_switching): Fix n_exprs parameter
15816         in call to pre_edge_lcm.
15817
15818 2005-06-06  Kaz Kojima  <kkojima@gcc.gnu.org>
15819
15820         * config/sh/linux-unwind.h (SH_DWARF_FRAME_XD0): Remove for SH5.
15821         (SH_DWARF_FRAME_PR, SH_DWARF_FRAME_GBR, SH_DWARF_FRAME_MACL)
15822         (SH_DWARF_FRAME_MACH, SH_DWARF_FRAME_PC, SH_DWARF_FRAME_FPUL):
15823         Likewise.
15824         (SH_DWARF_FRAME_FP0, SH_DWARF_FRAME_FPSCR): Define to the correct
15825         dwarf register number for SHmedia.
15826         (shmedia_fallback_frame_state): New.
15827         (MD_FALLBACK_FRAME_STATE_FOR): Define to it for SH5.
15828
15829         * config/sh/linux.h (FUNCTION_PROFILER): Provide SHMEDIA version.
15830
15831 2005-06-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15832
15833         * c-lex.c (lex_string): Use XOBFINISH.
15834         * collect2.c (extract_string, dump_file): Likewise.
15835         * dbxout.c (dbxout_finish_complex_stabs): Likewise.
15836         * gcc.c (init_spec, build_search_list, convert_filename, 
15837         set_collect_gcc_options, do_spec_2, do_spec_1, main): Likewise.
15838         * genpreds.c (write_predicate_subfunction): Likewise.
15839         * genflags.c (main): Likewise.
15840         * read-rtl.c (mode_attr_index, apply_macro_to_string, 
15841         join_c_conditions, read_quoted_string, read_braced_string, 
15842         read_rtx_1): Likewise.
15843         * stringpool.c (ggc_alloc_string): Likewise.
15844         * tlink.c (obstack_fgets, recompile_files): Likewise.
15845
15846 2005-06-06  Jakub Jelinek  <jakub@redhat.com>
15847
15848         * intl.h (G_): New macro.
15849         * rtl-error.c (error_for_asm, warning_for_asm): Use gmsgid
15850         instead of msgid for argument name.
15851         * tree-ssa.c (warn_uninit): Likewise.
15852         * c-parser.c (c_parser_error): Likewise.
15853         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
15854         * config/darwin-c.c (BAD): Likewise.
15855         * config/c4x/c4x-c.c (BAD): Likewise.
15856         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
15857         * c-errors.c (pedwarn_c99, pedwarn_c90): Likewise.
15858         * c-common.c (c_parse_error): Likewise.
15859         * diagnostic.c (diagnostic_set_info, verbatim, inform, warning,
15860         warning0, pedwarn, error, sorry, fatal_error, internal_error):
15861         Likewise.
15862         (fnotice): Use cmsgid instead of msgid for argument name.
15863         * gcov.c (fnotice): Likewise.
15864         * protoize.c (notice): Likewise.
15865         * final.c (output_operand_lossage): Likewise.
15866         * gcc.c (fatal, notice): Likewise.
15867         (error): Use gmsgid instead of msgid for argument name.
15868         * collect2.c (notice, fatal_perror, fatal): Use cmsgid instead
15869         of msgid for argument name.
15870         (error): Use gmsgid instead of msgid for argument name.
15871         * c-decl.c (locate_old_decl, implicit_decl_warning): Use G_()
15872         instead of N_().
15873         * c-typeck.c (readonly_error, convert_for_assignment): Likewise.
15874         * tree-inline.c (inline_forbidden_p_1): Likewise.
15875         * ABOUT-GCC-NLS: Require gettext 0.14.5 or later.  Mention the new
15876         conventions for marking translations.
15877         * doc/install.texi: Mention gettext 0.14.5 or later requirement.
15878
15879         * tree-chrec.c (reset_evolution_in_loop): Use build3 instead of
15880         build2.
15881
15882         * fold-const.c (operand_equal_p): Don't return 1, if element
15883         chains for 2 VECTOR_CSTs are not the same length.
15884
15885         PR regression/21897
15886         * fold-const.c (fold_ternary) <case BIT_FIELD_REF>: Don't crash if
15887         not all VECTOR_CST elements are given.
15888
15889         * combine.c (try_combine): Use hard_regno_nregs array instead of
15890         HARD_REGNO_NREGS macro.
15891         * config/rs6000/rs6000.c (rs6000_split_multireg_move,
15892         rs6000_register_move_cost, rs6000_memory_move_cost): Likewise.
15893         * config/ia64/ia64.c (mark_reg_gr_used_mask): Likewise.
15894
15895 2005-06-06  Daniel Berlin  <dberlin@dberlin.org>
15896
15897         * tree-ssa-reassoc.o: New.
15898         (OBJS-common): Add tree-ssa-reassoc.o
15899         * timevar.def: Add TV_TREE_REASSOC
15900         * tree-optimize.c (pass_reassoc): Add call.
15901         * tree-pass.h (pass_reassoc): Add.
15902         * tree-ssa-reassoc.c: New file.
15903
15904 2005-06-06  Eric Christopher  <echristo@redhat.com>
15905
15906         target/21927
15907         * expr.c (do_store_flag): Remove check for non-negative BRANCH_COST.
15908
15909 2005-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15910
15911         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard with
15912         HAVE_GAS_MAX_SKIP_P2ALIGN.
15913         (HAVE_AS_DWARF2_DEBUG_LINE): Remove.
15914
15915 2005-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15916
15917         * Makefile.in (mips-tfile.o): Add $(srcdir)/../include prefix to
15918         getopt.h dependency.
15919         (mips-tdump.o): Likewise.
15920
15921 2005-06-06  Jan Hubicka  <jh@suse.cz>
15922
15923         * predict.c (tree_predict_edge): Don't drop useless predictions;
15924         check that it is not called too late in the game.
15925         (gate_estimate_probability): New gate.
15926         (pass_profile): Gate.
15927         * tree-mudflap.c (mf_build_check_statement_for): Do not drop
15928         predictions; update CFG instead.
15929         * cfgrtl.c (rtl_verify_flow_info): Check that predcitions are consumed.
15930
15931 2005-06-06  Jie Zhang  <jie.zhang@analog.com>
15932
15933         * config.gcc (bfin*-uclinux*): New.
15934         * config/bfin/uclinux.h: New file.
15935
15936 2005-06-06  Ben Elliston  <bje@au.ibm.com>
15937
15938         * doc/md.texi (Insn Splitting): Fix some wording.
15939
15940 2005-06-05  David Edelsohn  <edelsohn@gnu.org>
15941
15942         * config/rs6000/rs6000.c (rs6000_emit_swdivsf): New function.
15943         (rs6000_emit_swdivdf): New function.
15944         * config/rs6000/rs6000.md (fres): New pattern.
15945         (divsf3): Add approximation through rs6000_emit_swdivsf.
15946         (fred): New pattern.
15947         (divdf3): Add approximation through rs6000_emit_swdivdf.
15948         * config/rs6000/rs6000-protos.h (rs6000_emit_swdivsf): Declare.
15949         (rs6000_emit_swdivdf): Declare.
15950         * config/rs6000/rs6000.opt (mswdiv): New option.
15951         * doc/invoke.texi (RS/6000 and PowerPC Options): Document mswdiv.
15952
15953 2005-06-05  Zdenek Dvorak  <dvorakz@suse.cz>
15954
15955         PR tree-optimization/21846
15956         * tree-cfg.c (replace_uses_by): Update information stored at loops.
15957         * tree-flow.h (substitute_in_loop_info): Declare.
15958         * tree-scalar-evolution.c (initialize_scalar_evolutions_analyzer):
15959         Ensure that chrec_dont_know and chrec_known have a type.
15960         * tree-ssa-loop-niter.c (substitute_in_loop_info): New function.
15961
15962 2005-06-05  Steven Bosscher  <stevenb@suse.de>
15963
15964         * config/i386/i386.c (x86_use_loop): Remove.
15965         * config/i386/i386.h (x86_use_loop): Remove extern decl.
15966         (TARGET_USE_LOOP): Remove.
15967         * config/i386/i386.md (doloop_end, doloop_end_internal): Remove.
15968         Also remove related define_splits.
15969
15970 2005-06-05  Dorit Nuzman  <dorit@il.ibm.com>
15971
15972         * tree-flow.h (stmt_ann_d): Move aux to ...
15973         (tree_ann_common_d): ... here.
15974         * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
15975         move_computations_stmt, schedule_sm): Update references to
15976         aux.
15977         * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
15978         * tree-vect-transform.c (vect_create_index_for_vector_ref): Update
15979         call to set_stmt_info.
15980         (vect_transform_loop): Likewise.
15981         * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info):
15982         Likewise.
15983
15984         * tree-vect-analyze.c (vect_analyze_scalar_cycles): Made void instead of
15985         bool.
15986         (vect_mark_relevant): Takes two additional arguments - live_p and
15987         relevant_p. Set RELEVANT_P and LIVE_P according to these arguments.
15988         (vect_stmt_relevant_p): Differentiate between a live stmt and a
15989         relevant stmt. Return two values = live_p and relevant_p.
15990         (vect_mark_stmts_to_be_vectorized): Call vect_mark_relevant and
15991         vect_stmt_relevant_p with additional arguments. Phis are no longer
15992         put into the worklist (analyzed seperately in analyze_scalar_cycles).
15993         (vect_determine_vectorization_factor): Also check for LIVE_P, because a
15994         stmt that is marked as irrelevant and live, cause it's only used out
15995         side the loop, may need to be vectorized (e.g. reduction).
15996         (vect_analyze_operations): Examine phis. Call
15997         vectorizable_live_operation for for LIVE_P stmts. Check if
15998         need_to_vectorize.
15999         (vect_analyze_scalar_cycles): Update documentation. Don't fail
16000         vectorization - just classify the scalar cycles created by the loop
16001         phis. Call vect_is_simple_reduction.
16002         (vect_analyze_loop): Call to analyze_scalar_cycles moved earlier.
16003         * tree-vect-transform.c (vect_create_index_for_vector_ref): Update
16004         call to set_stmt_info.
16005         (vect_get_vec_def_for_operand): Code reorganized - the code that
16006         classifies the type of use was factored out to vect_is_simple_use.
16007         (vectorizable_store, vect_is_simple_cond): Call vect_is_simple_use with
16008         additional arguments.
16009         (vectorizable_assignment): Likewise. Also make sure the stmt is relevant
16010         and computes a loop_vec_def.
16011         (vectorizable_operation, vectorizable_load, vectorizable_condition):
16012         Likewise.
16013         (vectorizable_live_operation): New.
16014         (vect_transform_stmt): Handle LIVE_P stmts.
16015         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new fields
16016         STMT_VINFO_LIVE_P and STMT_VINFO_DEF_TYPE.
16017         (new_loop_vec_info, destroy_loop_vec_info): Also handle phis.
16018         (vect_is_simple_use): Determine the type of the def and return it
16019         in a new function argument. Consider vect_reduction_def and
16020         vect_induction_def, but for now these are not supported.
16021         (vect_is_simple_reduction): New. Empty for now.
16022         * tree-vectorizer.h (vect_def_type): New enum type.
16023         (_stmt_vec_info): Added new fields - live and _stmt_vec_info.
16024         (STMT_VINFO_LIVE_P, STMT_VINFO_DEF_TYPE): New accessor macros.
16025         (vect_is_simple_use): New arguments added to function declaration.
16026         (vect_is_simple_reduction): New function declaration.
16027         (vectorizable_live_operation): New function declaration.
16028
16029         * tree-vect-analyze.c (vect_can_advance_ivs_p): Add debug printout.
16030         (vect_can_advance_ivs_p): Likewise.
16031         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Likewise.
16032
16033 2005-06-05  Eric Christopher  <echristo@redhat.com>
16034
16035         * config/mips/mips.c (mips_rtx_costs): Remove unused variable.
16036
16037 2005-06-05  Hans-Peter Nilsson  <hp@bitrange.com>
16038
16039         PR target/21914
16040         * config/mmix/mmix.md ("*movdicc_real_foldable")
16041         ("*movdfcc_real_foldable", "*bCC_foldable")
16042         ("*bCC_inverted_foldable"): Specify DImode for register being
16043         compared.
16044
16045 2005-06-04  Roger Sayle  <roger@eyesopen.com>
16046
16047         * reg-stack.c (struct block_info_def): Correct grammar typo.
16048         (compensate_edge): Clean-up.  Perform as little work as possible
16049         when src and dest stacks match.  Avoid modifying block_info.
16050         Reorder and simplify assertion checks.  Avoid unnecessary copying
16051         of regstack structure.
16052         (convert_regs_1): Set the done flag here...
16053         (convert_regs_2): ... instead of here.
16054
16055 2005-06-04  Dale Johannesen  <dalej@apple.com>
16056
16057         * config/rs6000/rs6000.c (no_global_regs_above): New.
16058         (rs6000_emit_prologue):  Use it; cosmetic formatting fixes.
16059         (rs6000_emit_epilogue):  Use it; cosmetic formatting fixes.
16060         (rs6000_conditional_register_usage): Don't put Darwin PIC
16061         register in global_regs.
16062         (rs6000_stack_info):  Don't set lr_save_p just because Darwin 
16063         PIC reg used.
16064         (rs6000_emit_prologue):  Save LR in R0 around Darwin PIC setup,
16065         if not done by lr_save_p.
16066         * config/rs6000/rs6000.md (insnv1_internal1):  Back out 05-18 patch.
16067         Use rotate instead of ashift.
16068         (call_indirect_nonlocal_sysv):  Prefer CTR to LR.
16069         (call_value_indirect_nonlocal_sysv):  Ditto.
16070
16071 2005-06-04  Jan Hubicka  <jh@suse.cz>
16072
16073         * cgraphunit.c (cgraph_reset_node): Break out from ...
16074         (cgraph_finalize_function): ... here.
16075         (cgraph_finalize_compilation_unit): Reset nodes where backend
16076         removed the body.
16077
16078 2005-06-04  Richard Henderson  <rth@redhat.com>
16079
16080         PR target/21888
16081         * config/alpha/alpha.c (alpha_align_insns): Don't insert nops
16082         until we've passed initial ldgp.
16083
16084 2005-06-04  Daniel Berlin  <dberlin@dberlin.org>
16085
16086         * cfgexpand.c (expand_one_var): Use DECL_HAS_VALUE_EXPR_P.
16087         * dwarf2out.c (loc_descriptor_from_tree_1): Ditto.
16088         * expr.c (expand_var): Ditto.   
16089         * function.c (gimplify_parameters): Use SET_DECL_VALUE_EXPR too.
16090         * gimplify.c (gimplify_decl_expr): Ditto.
16091         (gimplify_expr): Ditto.
16092         * tree-mudflap.c (mf_decl_eligible_p): Use DECL_HAS_VALUE_EXPR_P.
16093         * tree.c (value_expr_for_decl): New.
16094         (print_value_expr_statistics): New.
16095         (init_ttree): Init value_expr_for_decl.
16096         (decl_value_expr_lookup): New.
16097         (decl_value_expr_insert): Ditto.
16098         (copy_node_stat): Copy DECL_VALUE_EXPR status.
16099         * tree.h (DECL_VALUE_EXPR): Use hashtable.
16100         (SET_DECL_VALUE_EXPR): New.
16101         (DECL_HAS_VALUE_EXPR_P): New.
16102
16103 2005-06-04  Steven Bosscher  <stevenb@suse.de>
16104
16105         * lcm.c: Move all mode-switching related functions from here...
16106         * mode-switching.c: ...to this new file.
16107         * doc/passes.texi: Update accordingly.
16108
16109         * basic-block.h (label_value_list): Remove extern decl.
16110         * cfgrtl.c (label_value_list): Remove.
16111         (can_delete_label_p): Don't look at it.
16112         * cfgcleanup.c (cleanup_cfg): Don't free it.
16113
16114         * common.opt: Don't refer to non-existing flag_alias_check.
16115
16116 2005-06-04  David Edelsohn  <edelsohn@gnu.org>
16117
16118         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power5.
16119
16120 2005-06-04  Kazu Hirata  <kazu@codesourcery.com>
16121
16122         * function.c (prologue, epilogue, sibcall_epilogue): Change
16123         their types to VEC(int,heap)*.
16124         (free_after_compilation): Free the three vectors above.
16125         (init_function_for_compilation, record_insns, contains,
16126         prologue_epilogue_contains, sibcall_epilogue_contains,
16127         reposition_prologue_and_epilogue_notes): Use VEC instead of
16128         VARRAY.  (init_function_once): Remove.
16129         * function.h: Remove the prototype for init_function_once.
16130         * toplev.c (backend_init): Don't call init_function_once.
16131
16132 2005-06-04  Jan Hubicka  <jh@suse.cz>
16133
16134         * predict.c (tree_predict_edge): Do not predict entry edge and
16135         single succestor edge.
16136
16137 2005-06-04  Joseph S. Myers  <joseph@codesourcery.com>
16138
16139         PR c/21873
16140         * c-typeck.c (push_init_level): Don't pop levels without braces if
16141         implicit == 1.
16142
16143 2005-06-03  Sebastian Pop  <pop@cri.ensmp.fr>
16144         
16145         * tree-data-ref.c (compute_self_dependence): New function.
16146         (compute_all_dependences): Use it.
16147
16148 2005-06-03  Geoffrey Keating  <geoffk@apple.com>
16149
16150         * c-parser.c (c_parser_parms_declarator): Don't use chainon().
16151         (c_parser_expr_list): Don't use chainon().
16152
16153         * config/darwin.h (LINK_SPEC): Pass -syslibroot to linker
16154         when -isysroot passed.
16155
16156 2005-06-03  Joseph S. Myers  <joseph@codesourcery.com>
16157
16158         PR c/21879
16159         * c-decl.c (start_function): Restore label_context_stack_se and
16160         label_context_stack_vm  if returning with an error.
16161
16162 2005-06-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16163
16164         * configure.ac: Check declaration for asprintf, needed by
16165         libiberty.h. 
16166         * configure: Regenerate.
16167         * config.in: Likewise.
16168
16169 2005-06-03  Diego Novillo  <dnovillo@redhat.com>
16170
16171         * tree-ssa-dom.c (record_edge_info): Use last_basic_block to
16172         allocate info array.
16173         * tree-vrp.c (extract_range_from_unary_expr): Set resulting
16174         range to varying in cast expressions that change
16175         TYPE_PRECISION.
16176
16177 2005-06-03  Eric Christopher  <echristo@redhat.com>
16178
16179         * config/mips/mips.opt: Add RejectNegative to divide-breaks and
16180         divide-traps.
16181
16182 2005-06-03  Jan Hubicka  <jh@suse.cz>
16183
16184         * basic-block.h (remove_predictions_associated_with_edge): Declare.
16185         * cfg.c (remove_edge): Use it.
16186         * predict.c (remove_predictions_associated_with_edge): New function.
16187
16188 2005-06-03  Pat Haugen  <pthaugen@us.ibm.com>
16189
16190         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
16191         Clear call_realy_used_regs[r2] when ABI_AIX.
16192
16193 2005-06-03  Richard Guenther  <rguenth@gcc.gnu.org>
16194
16195         PR middle-end/21858
16196         * fold-const.c (fold_binary): Fix type mismatches in folding
16197         of comparisons.
16198
16199 2005-06-03  Kazu Hirata  <kazu@codesourcery.com>
16200
16201         * cgraph.c, cgraphunit.c, config/mips/mips.c: Fix comment
16202         typos.
16203
16204 2005-06-03  Joseph S. Myers  <joseph@codesourcery.com>
16205
16206         * collect2.c (maybe_unlink): Use unlink_if_ordinary.
16207
16208 2005-06-02  Bernd Schmidt  <bernd.schmidt@analog.com>
16209
16210         * reload1.c (reload): Revert my previous patch.
16211
16212 2005-06-03  Nick Clifton  <nickc@redhat.com>
16213
16214         * config/arm/semi.h (ASM_SPEC): Fix typo passing -mfloat-abi to
16215         assembler.
16216
16217 2005-06-03  Kazu Hirata  <kazu@codesourcery.com>
16218
16219         PR tree-optimization/21849
16220         * tree-ssa-copy.c (dump_copy_of): Call sbitmap_zero.
16221
16222 2005-06-02  Richard Henderson  <rth@redhat.com>
16223
16224         * Makefile.in (tree-vect-generic.o): New.
16225         (OBJS-common, GTFILES, s-gtype): Add it.
16226         * tree-complex.c (build_replicated_const, vector_inner_type,
16227         vector_last_type, vector_last_nunits, build_word_mode_vector_type,
16228         elem_op_func, tree_vec_extract, do_unop, do_binop, do_plus_minus,
16229         do_negate, expand_vector_piecewise, expand_vector_parallel, 
16230         expand_vector_addition, expand_vector_operation, 
16231         type_for_widest_vector_mode, expand_vector_operations_1, 
16232         gate_expand_vector_operations, expand_vector_operations, 
16233         pass_lower_vector_ssa): Move to tree-vect-generic.c.
16234         (tree_lower_complex): Rename from tree_lower_operations.
16235         (pass_lower_complex): Rename from pass_pre_expand.
16236         * tree-vect-generic.c: New file.
16237         * tree-pass.h (pass_lower_complex): Rename from pass_pre_expand.
16238         (pass_lower_vector): New.
16239         * tree-optimize.c (init_tree_optimization_passes): Update to match.
16240
16241 2005-06-02  Richard Henderson  <rth@redhat.com>
16242
16243         * modulo-sched.c (doloop_register_get): Protect against 
16244         doloop_end not defined.
16245
16246 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
16247
16248         * config/sh/sh.c (general_movsrc_operand,
16249         general_movdst_operand, arith_reg_operand, arith_reg_dest,
16250         logical_reg_operand, int_gpr_dest, fp_arith_reg_operand,
16251         fp_arith_reg_dest, arith_operand, arith_reg_or_0_operand,
16252         xor_operand, cmp_operand, logical_operand, and_operand,
16253         fpscr_operand, fpul_operand, symbol_ref_operand,
16254         commutative_float_operator, noncommutative_float_operator,
16255         unary_float_operator, binary_float_operator,
16256         binary_logical_operator, equality_comparison_operator,
16257         greater_comparison_operator, less_comparison_operator,
16258         shift_operator, logical_operator, target_reg_operand,
16259         target_operand, mextr_bit_offset, extend_reg_operand,
16260         trunc_hi_operand, extend_reg_or_0_operand, minuend_operand,
16261         general_extend_operand, ua_address_operand,
16262         cache_address_operand, inqhi_operand, sh_rep_vec, sh_1el_vec,
16263         sh_const_vec, ua_offset, sh_register_operand, cmpsi_operand,
16264         shift_count_reg_operand, shift_count_operand,
16265         unaligned_load_operand): Move to ...
16266         * config/sh/predicates.md: ... here.
16267         * config/sh/sh.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
16268         Remove.
16269
16270 2005-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
16271
16272         * tree.c (build_common_builtin_nodes): Fix the return type on
16273         __builtin_memcmp.
16274
16275 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
16276
16277         * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Remove.
16278         (find_interesting_uses_address): Use build_fold_addr_expr instead.
16279         (strip_offset_1): Likewise.
16280         (tree_to_aff_combination): Likewise.
16281
16282 2005-06-02  DJ Delorie  <dj@redhat.com>
16283
16284         * convert.c (convert_to_pointer): Avoid recursion if no conversion
16285         is needed.
16286
16287 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
16288
16289         * tree-chrec.c (chrec_fold_plus_1): Ensure we build
16290         binary operations with the correct types.
16291         * tree-ssa-loo-ivopts.c (idx_find_step): Use sizetype
16292         for all computation.
16293
16294 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
16295
16296         * tree-vrp.c, config/arm/arm.md, config/arm/arm1020e.md,
16297         config/rs6000/rs6000.md: Fix comment typos.  Follow splling
16298         conventions.
16299         * doc/install.texi: Fix a typo.
16300
16301 2005-06-02  Jan Hubicka  <jh@suse.cz>
16302
16303         * cgraphunit.c (cgraph_function_and_variable_visibility): Extern
16304         inline functions are not local.
16305
16306 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
16307
16308         * gimplify.c (gimplify_ctx): Change the type of case_labels to
16309         VEC from VARRAY.
16310         (gimplify_switch_expr, gimplify_case_label_expr): Adjust uses
16311         of case_labels.
16312
16313 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
16314
16315         * c-typeck.c (build_indirect_ref): Build INDIRECT_REF
16316         with correct type.
16317
16318 2005-06-02  Ulrich Weigand  <uweigand@de.ibm.com>
16319
16320         * config/s390/s390.c (s390_add_execute): Do not handle out-of-pool
16321         execute templates.
16322         (s390_dump_pool): Likewise.
16323         (s390_mainpool_start, s390_mainpool_finish): Likewise.
16324         (s390_chunkify_start): Likewise.
16325         (s390_dump_execute): Remove.
16326         (s390_reorg): Handle out-of-pool execute templates.
16327
16328 2005-06-02  Adrian Straetling  <straetling@de.ibm.com>
16329
16330         * optabs.c: (expand_bool_compare_and_swap): Emit barrier after
16331           unconditional jump.
16332
16333 2005-06-02  Jan Hubicka  <jh@suse.cz>
16334
16335         * cgraph.c (cgraph_node): Maintain master clones.
16336         (cgraph_remove_node): Likewise.
16337         (availability_names): New static variable.
16338         (dump_cgraph_node): Dump availability.
16339         (dump_cgraph_varpool_node): Likewise.
16340         (cgraph_is_master_clone, cgraph_master_clone,
16341         cgraph_function_body_availability,
16342         cgraph_variable_initializer_availability): New functions.
16343         * cgraph.h (availability): New enum.
16344         (struct cgraph_node): Add master_clone.
16345         (cgraph_is_master_clone, cgraph_master_clone,
16346         cgraph_function_body_availability,
16347         cgraph_variable_initializer_availability): Declare.
16348         * cgraphunit.c (cgraph_expand_function): Setcgraph_function_flags_ready.
16349         (cgraph_remove_unreachable_nodes): Remove unreachable nodes.
16350         * ipa-inline.c (cgraph_decide_inlining): Do not call
16351         cgraph_remove_unreachable_nodes.
16352
16353         * cgraphunit.c (cgraph_function_and_variable_visibility): Fix typo in
16354         previous patch.
16355
16356 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
16357
16358         PR 21582
16359         * tree-vrp.c (nonnull_arg_p): New.
16360         (get_value_range): Call it.
16361
16362 2005-06-02  Eric Christopher  <echristo@redhat.com>
16363
16364         * config/mips/mips.h (processor_type): Remove PROCESSOR_DEFAULT,
16365         add PROCESSOR_MAX.
16366         (mips_rtx_cost_data): New datatype.
16367         (MEMORY_MOVE_COST): Use data from structure.
16368         (BRANCH_COST): Ditto.
16369         (LOGICAL_OP_NON_SHORT_CIRCUIT): Define to zero.
16370         * config/mips/mips.md (cpu): Rework for processor_type changes.
16371         * config/mips/mips.c (mips_cost): New variable.
16372         (DEFAULT_COSTS): Define.
16373         (mips_rtx_cost_data): New.
16374         (mips_rtx_costs): Use. Minor formatting changes. Use COSTS_N_INSNS
16375         for NEG cost. Add support for FLOAT, UNSIGNED_FLOAT, FIX,
16376         FLOAT_EXTEND, FLOAT_TRUNCATE, and SQRT.
16377         (override_options): Set cost data.
16378         (mips_register_move_cost): Formatting changes.
16379         (bdesc_arrays): Use PROCESSOR_MAX.
16380         (mips_init_builtins): Ditto.
16381
16382 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
16383
16384         PR 21765
16385         * doc/invoke.texi: Document -ftree-vrp.
16386
16387 2005-06-02  Dorit Nuzman  <dorit@il.ibm.com>
16388
16389         PR tree-optimization/21734
16390         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop): Use the
16391         phi_result when current_def is not available.
16392         (slpeel_update_phi_nodes_for_guard1): Don't fail if current_def is not
16393         available.      
16394
16395 2005-06-02  David Edelsohn  <edelsohn@gnu.org>
16396
16397         * config/rs6000/rs6000.c (rs6000_insn_valid_within_doloop): New.
16398         (TARGET_INSN_VALID_WITHIN_DOLOOP): Define.
16399
16400 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
16401
16402         * tree-vrp.c (has_assert_expr, maybe_add_assert_expr): Remove.
16403
16404 2005-06-02  Jan Hubicka  <jh@suse.cz>
16405
16406         * cgraph.c (dump_cgraph_node): Print new flags.
16407         (dump_cgraph_varpool_node): Likewise.
16408         (decide_variable_is_needed): Initialize externally_visible flag.
16409         * cgraph.h (cgraph_local_info): Add externally_visible flag.
16410         (cgraph_varpool_node): Likewise.
16411         (cgraph_function_flags_ready): Declare.
16412         * cgraph.c (cgraph_mark_local_functions): Rename to ...
16413         (cgraph_function_and_variable_visibility) ... this one; handle
16414         externally_visible flags.
16415         (decide_is_function_needed): Set externally_visible flag.
16416         (cgraph_finalize_function): Deal properly with early cleanups.
16417         (cgraph_optimize): Update call of
16418         cgraph_function_and_variable_visibility.
16419
16420 2005-06-02 Steven Bosscher  <stevenb@suse.de>
16421            Mostafa Hagog <mustafa@il.ibm.com>
16422
16423         * cfgloop.h (doloop_condition_get): Make external.
16424         * loop-doloop.c (doloop_condition_get): Generalize to make it
16425         usable in modulo-sched.c.
16426         * modulo-sched.c (doloop_register_get): Use
16427         doloop_condition_get instead of duplicating it.
16428
16429 2005-06-02  Bernd Schmidt  <bernd.schmidt@analog.com>
16430
16431         * reload1.c (reload): Undo 2005-04-20 change.  Make sure we detect
16432         the correct set of init_insns that need deletion.
16433         * local-alloc.c (update_equiv_regs): When substituting sole definition
16434         into sole use of a reg, delete it from liveness information.
16435
16436 2005-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
16437
16438         * config/sh/sh.h (TARGET_FPU_DOUBLE): Use MASK_SH4.
16439
16440 2005-06-01  Diego Novillo  <dnovillo@redhat.com>
16441
16442         PR 14341, PR 21332, PR 20701, PR 21029, PR 21086, PR 21090
16443         PR 21289, PR 21348, PR 21367, PR 21368, PR 21458.
16444         * fold-const.c (invert_tree_comparison): Make extern.
16445         * tree-flow.h (enum value_range_type): Move to tree-ssa-propagate.
16446         (struct value_range_def): Limewise.
16447         (get_value_range): Remove.
16448         (dump_value_range): Remove.
16449         (dump_all_value_ranges): Remove.
16450         (debug_all_value_ranges): Remove.
16451         (vrp_evaluate_conditional): Declare.
16452         * tree-ssa-propagate.c (struct prop_stats_d): Add field
16453         num_pred_folded.
16454         (substitute_and_fold): Add argument use_ranges_p.
16455         Update all callers.
16456         If use_ranges_p is true, call fold_predicate_in to fold
16457         predicates using range information.
16458         Ignore ASSERT_EXPRs.
16459         Change debugging output to only show statements that have been
16460         folded.
16461         (replace_phi_args_in): Move debugging output code from
16462         substitute and fold.
16463         (fold_predicate_in): New local function.
16464         * tree-ssa-propagate.h (enum value_range_type): Move from
16465         tree-flow.h.
16466         (struct value_range_d): Likewise.
16467         Add field 'equiv'. 
16468         (value_range_t): Rename from value_range.
16469         * tree-vrp.c (found_in_subgraph): Rename from found.
16470         (get_opposite_operand): Remove.
16471         (struct assert_locus_d): Declare.
16472         (assert_locus_t): Declare.
16473         (need_assert_for): Declare.
16474         (asserts_for): Declare.
16475         (blocks_visited): Declare.
16476         (vr_value): Declare.
16477         (set_value_range): Add argument 'equiv'.
16478         Don't drop to VARYING ranges that cover all values in the
16479         type.
16480         Make deep copy of equivalence set 'equiv'.
16481         (copy_value_range): New local function.
16482         (set_value_range_to_undefined): New local function.
16483         (compare_values): Return -2 if either value has overflowed.
16484         (range_includes_zero_p): New local function.
16485         (extract_range_from_assert): Flip the predicate code if the
16486         name being asserted is on the RHS of the predicate.
16487         Avoid creating unnecessary symbolic ranges if the comparison
16488         includes another name with a known numeric range.
16489         Update the equivalnce set of the new range when asserting
16490         EQ_EXPR predicates.
16491         (extract_range_from_ssa_name): Update the equivalence set of
16492         the new range with VAR.
16493         (extract_range_from_binary_expr): Also handle TRUTH_*_EXPR.
16494         If -fwrapv is used, set the resulting range to VARYING if the
16495         operation overflows.  Otherwise, use TYPE_MIN_VALUE and
16496         TYPE_MAX_VALUE to represent -INF and +INF.
16497         Fix handling of *_DIV_EXPR.
16498         (extract_range_from_unary_expr): Handle MINUS_EXPR and
16499         ABS_EXPR properly by switching the range around if necessary.
16500         (extract_range_from_comparison): New local function.
16501         (extract_range_from_expr): Call it.
16502         (adjust_range_with_scev): Do not adjust the range if using
16503         wrapping arithmetic (-fwrapv).
16504         (dump_value_range): Also show equivalence set.
16505         Show -INF and +INF for TYPE_MIN_VALUE and TYPE_MAX_VALUE.
16506         (build_assert_expr_for): Also build ASSERT_EXPR for EQ_EXPR.
16507         (infer_value_range): Change return value to bool.
16508         Add arguments 'comp_code_p' and 'val_p'.
16509         Do not attempt to infer ranges from statements that may throw.
16510         Store the comparison code in comp_code_p.
16511         Store the other operand to be used in the predicate in val_p.
16512         (dump_asserts_for): New.
16513         (debug_asserts_for): New.
16514         (dump_all_asserts): New.
16515         (debug_all_asserts): New.
16516         (register_new_assert_for): New.
16517         (register_edge_assert_for): New.
16518         (find_conditional_asserts): New.
16519         (find_assert_locations): New.
16520         (process_assert_insertions_for): New.
16521         (process_assert_insertions): New.
16522         (insert_range_assertions): Initialize found_in_subgraph,
16523         blocks_visited, need_assert_for and asserts_for.
16524         Call find_assert_locations and process_assert_insertions.
16525         (remove_range_assertions): Add more documentation.
16526         (vrp_initialize): Change return type to void.
16527         Do not try to guess if running VRP is worth it.  
16528         (compare_name_with_value): New.
16529         (compare_names): New.
16530         (vrp_evaluate_conditional): Add argument 'use_equiv_p'.  If
16531         use_equiv_p is true, call compare_names and
16532         compare_name_with_value to compare all the ranges for every
16533         name in the equivalence set of the predicate operands.
16534         Update all callers.
16535         (vrp_meet): Try harder not to derive a VARYING range.
16536         If two values meet, the resulting equivalence set is the
16537         intersection of the two equivalence sets.
16538         (vrp_visit_phi_node): Call copy_value_range to get the current
16539         range information of the LHS.
16540         (vrp_finalize): Create a value vector representing all the
16541         names that ended up with exactly one value in their range.
16542         Call substitute_and_fold.
16543         (execute_vrp): Document equivalence sets in ranges.
16544         * tree.h (SSA_NAME_VALUE_RANGE): Remove.
16545         (struct tree_ssa_name): Remove field value_range.
16546         (invert_tree_comparison): Declare.
16547
16548 2005-06-01  Daniel Berlin  <dberlin@dberlin.org>
16549
16550         Fix PR tree-optimization/21839
16551
16552         * gimplify.c (zero_sized_field_decl): New function.
16553         (gimplify_init_ctor_eval): Use it.
16554
16555 2005-06-01  Josh Conner <jconner@apple.com>
16556
16557         PR 21478
16558         * gimplify.c (gimplify_init_constructor): Don't spill initializer
16559         to read-only memory if it's sparse.
16560
16561 2005-06-01  Ramana Radhakrishnan  <ramana@codito.com>
16562
16563         * doc/rtl.texi: Remove references to NOTE_INSN_SETJMP. 
16564         Add documentation for REG_SETJMP
16565
16566 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
16567
16568         * stmt.c (expand_case): Use build_int_cst.
16569         (node_has_low_bound): Likewise, and correct type mismatch.
16570         (node_has_high_bound): Likewise.
16571         * fold-const.c (fold_binary): Ensure we build trees
16572         with the correct types - undo what STRIP_NOPS possibly did.
16573
16574 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
16575
16576         * tree.h (fold_indirect_ref_1): Export from fold-const.c.
16577         * fold-const.c (fold_indirect_ref_1): No longer static.
16578         * tree-inline.c (copy_body_r): Use fold_indirect_ref_1 for
16579         folding, if possible.
16580
16581 2005-06-01  Joseph S. Myers  <joseph@codesourcery.com>
16582
16583         * common.opt (fjump-tables): New.
16584         * doc/invoke.texi (-fno-jump-tables): Document.
16585         * stmt.c (expand_end_case_type): Do not emit jump tables unless
16586         flag_jump_tables.
16587
16588 2005-06-01  Richard Earnshaw  <richard.earnshaw@arm.com>
16589
16590         * arm.md (bunordered, bordered, bungt, bunlt, bunge, bunle, buneq)
16591         (bltgt, arm_buneq, arm_bltgt, sunordered, sordered, sungt, sunge)
16592         (sunlt, sunle): Enable patterns on VFP.
16593
16594         * arm.md (attribute 'type'): Add new types - f_loads floadd, f_stores,
16595         f_stored, f_flag, f_cvt.
16596         (generic_sched): No-longer used for the arm1020e and arm1022e cores.
16597         Include arm1020e.md.
16598         * vfp.md (fmstat): New cpu unit.  Add an exclusion set between it and
16599         the ds and fmac pipelines.  Re-work all load and store patterns and
16600         all conversion patterns to use new attributes.  Adjust reservation
16601         descriptions accordingly.
16602         * arm1020e.md: New file.
16603         * t-arm: Add dependency.
16604
16605 2005-06-01  Jan Hubicka  <jh@suse.cz>
16606
16607         * except.c (struct eh_region): Kill unused fields.
16608         * basic-block.h (struct basic_block_def): Likewise.
16609
16610 2005-06-01  J"orn Rennecke <joern.rennecke@st.com>
16611
16612         PR rtl-optimization/21767
16613         * rtl.h (function_invariant_p): Re-add declaration.
16614         * reload1.c (function_invariant_p): No longer static.
16615         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL notes that
16616         might have become invalid.
16617
16618 2005-06-01  Jakub Jelinek  <jakub@redhat.com>
16619
16620         PR c/21536
16621         PR c/20760
16622         * gimplify.c (gimplify_decl_expr): Call gimplify_type_sizes
16623         on variable sizes types if a decl is a pointer to a VLA.
16624         (gimplify_type_sizes): Handle POINTER_TYPE and REFERENCE_TYPE.
16625         Call gimplify_type_sizes on aggregate fields.  Prevent infinite
16626         recursion.
16627
16628         * fold-const.c (fold_ternary): Optimize BIT_FIELD_REF of VECTOR_CST.
16629
16630         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss, _mm_set1_ps,
16631         _mm_set_ps, _mm_setr_ps): Add __extension__.
16632         * config/i386/emmintrin.h (_mm_set_sd, _mm_set1_pd, _mm_set_pd,
16633         _mm_setr_pd, _mm_setzero_pd, _mm_set_epi64x, _mm_set_epi64x,
16634         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128):
16635         Likewise.
16636         (_mm_clflush): Don't use return in void function.
16637
16638         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128,
16639         _mm_castps_pd, _mm_castps_si128, _mm_castsi128_ps, _mm_castsi128_pd):
16640         Use __inline instead of inline.
16641
16642 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
16643
16644         * fold-const.c (fold_binary): Fix types in strlen vs.
16645         zero comparison folding.
16646
16647 2005-06-01  Richard Henderson  <rth@redhat.com>
16648
16649         * configure.ac (HAVE_AS_JSRDIRECT_RELOCS): New.
16650         * config.in, configure: Rebuild.
16651         * config/alpha/alpha.c (print_operand): Add 'j'.
16652         * alpha.md (divmodsi_internal_er_1): Use it.
16653         (divmoddi_internal_er_1): Likewise.
16654
16655 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
16656
16657         * system.h (TARGET_OPTIONS, TARGET_SWITCHES): Poison.
16658         * opts.h (print_filtered_help): Delete.
16659         * opts.c (handle_option, decode_options): Remove calls to
16660         set_target_switch.
16661         (print_target_help): New function.
16662         (common_option, print_help): Call print_target_help instead of
16663         display_target_options.
16664         (print_filtered_help): Make static.
16665         * toplev.h (display_target_options, set_target_switch): Delete.
16666         * toplev.c (target_switches, target_options, display_target_options)
16667         (set_target_switch): Delete.
16668         (print_switch_values): Remove handling of TARGET_SWITCHES and
16669         TARGET_OPTIONS.
16670         (default_get_pch_validity): Likewise.  Only treat target_flags
16671         specially if targetm.check_pch_target_flags is nonnull.
16672         (pch_option_mismatch): New function.
16673         (default_pch_valid_p): Use it.  Remove handling of TARGET_SWITCHES
16674         and TARGET_OPTIONS.  Only treat target_flags specially if
16675         targetm.check_pch_target_flags is nonnull.
16676         * config/ia64/ia64.c (ia64_override_options): Don't mention
16677         TARGET_OPTIONS in comment.
16678         * config/m68k/m68k-none.h (CC1_SPEC): Likewise.
16679         * doc/invoke.texi: Remove a reference to TARGET_SWITCHES.
16680         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS): Don't mention the
16681         interaction with TARGET_SWITCHES.
16682         (TARGET_@var{featurename}, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
16683
16684 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
16685
16686         * config/sh/sh.c (multcosts): Check sh_multcost rather than
16687         sh_multcost_str.
16688         (sh_register_move_cost): Likewise sh_gettrcost and sh_gettrcost_str.
16689         (sh_multcost_str, sh_gettrcost_str, sh_div_str, sh_divsi3_libfunc)
16690         (cut2_workaround_str): Delete.
16691         * config/sh/sh.h (SUBTARGET_OPTIONS, TARGET_OPTIONS)
16692         (TARGET_SH5_CUT2_WORKAROUND, sh_multcost_str, sh_gettrcost_str)
16693         (sh_div_str, sh_divsi3_libfunc, cut2_workaround_str): Delete.
16694         * config/sh/sh.opt (mcut2-workaround, mdiv=, mdivsi3_libfunc=)
16695         (mgettrcost=, multcost=): New options.
16696
16697 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
16698
16699         * opts.h (cl_option_state): New structure.
16700         (get_option_state): Declare.
16701         * opts.c (get_option_state): New function.
16702         * toplev.c (option_affects_pch_p): New function.
16703         (default_get_pch_validity): Store the state of all options for which
16704         option_affects_pch_p returns true.
16705         (default_pch_valid_p): Check the state of those options here.
16706         Only check target_flags separately if targetm.check_pch_target_Flags
16707         is nonnull or if TARGET_SWITCHES is defined.
16708
16709 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
16710
16711         * config/mips/mips-protos.h (mips_use_ins_ext_p): Remove parameter
16712         names.
16713
16714 2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
16715
16716         * modulo-sched.c (undo_generate_reg_moves ): Fix PR 21138.
16717
16718 2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
16719
16720         * gcse.c (compute_transp, load_killed_in_block): Use 
16721         MEM_READONLY_P.
16722
16723 2005-06-01  David.Billinghurst  <David.Billinghurst@riotinto.com>
16724
16725         PR target/21854
16726         * config/mips/mips-protos.h: Declare mips_use_ins_ext_p
16727         
16728 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16729
16730         * errors.h (warning, error, fatal, internal_error): Add printf
16731         attribute.
16732         * genmodes.c (make_vector_mode): Fix format arguments.
16733
16734 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16735
16736         * basic-block.h, bb-reorder.c, c-gimplify.c, config/darwin.c,
16737         config/rs6000/rs6000-c.c, dominance.c, gimple-low.c, gimplify.c,
16738         lambda-code.c, lambda-trans.c, tree-browser.c, tree-cfg.c,
16739         tree-chrec.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
16740         tree-if-conv.c, tree-into-ssa.c, tree-loop-linear.c,
16741         tree-mudflap.c, tree-nomudflap.c, tree-outof-ssa.c,
16742         tree-pretty-print.c, tree-scalar-evolution.c, tree-sra.c,
16743         tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
16744         tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-live.c,
16745         tree-ssa-operands.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
16746         tree-ssa-propagate.c, tree-ssa-sink.c, tree-ssa-threadupdate.c,
16747         tree-ssa-uncprop.c, tree-ssa.c, tree-vect-analyze.c,
16748         tree-vect-transform.c, tree-vectorizer.c, vec.c: Don't include
16749         errors.h and include toplev.h if necessary.
16750         
16751         * rtl.c, varray.c: If we're compiling as a GENERATOR_FILE, include
16752         errors.h otherwise include toplev.h.
16753         
16754         * Makefile.in: Update dependencies.
16755         
16756 2005-06-01  Danny Smith  <dannysmith@users.sourceforge.net>
16757
16758         * config/i386/cygming.h (NO_PROFILE_COUNTERS): Define.
16759
16760 2005-05-31  Geoffrey Keating  <geoffk@geoffk.org>
16761
16762         * config/rs6000/rs6000.md (sync_boolcshort_internal): New.
16763         * config/rs6000/rs6000.c (rs6000_emit_sync): Shift count must
16764         be complemented for big-endian.  Mask for AND must be rotated,
16765         not shifted.  Handle short operands with NOT on the memory
16766         operation.
16767
16768 2005-05-30  Daniel Berlin  <dberlin@dberlin.org>
16769
16770         * c-objc-common.c (c_tree_printer): Check flag before hashtable.
16771         Use DECL_DEBUG_EXPR and SET_DECL_DEBUG_EXPR.
16772         * dwarf2out.c (dwarf2out_var_location): Ditto.
16773         * toplev.c (default_tree_printer): Ditto.
16774         * tree-outof-ssa.c (create_temp): Ditto.
16775         * tree-sra.c (instantiate_element): Ditto.
16776         * var-tracking.c (track_expr_p): Ditto.
16777         * tree.c (struct tree_map): New structure.
16778         (debug_expr_for_decl): New.
16779         (tree_map_eq): New function.
16780         (tree_map_hash): Ditto.
16781         (tree_map_marked_p): Ditto.
16782         (print_debug_expr_statistics): Ditto.
16783         (decl_debug_expr_lookup): Ditto.
16784         (decl_debug_expr_insert): Ditto.
16785         (dump_tree_statistics): Dump debug_expr hashtable stats.
16786         * tree.h (DECL_DEBUG_EXPR): Change
16787         (SET_DECL_DEBUG_EXPR): Add.
16788         
16789 2005-06-01  Alan Modra  <amodra@bigpond.net.au>
16790
16791         * configure.ac: Add --enable-secureplt.
16792         (HAVE_AS_REL16): Test for R_PPC_REL16 relocs.
16793         * config.in: Regenerate.
16794         * configure: Regenerate.
16795         * config.gcc (powerpc64-*-linux*, powerpc-*-linux*): Add
16796         rs6000/secureplt.h to tm_file when enable_secureplt.
16797         * doc/invoke.texi (msecure-plt, mbss-plt): Document.
16798         * doc/install.texi: Document --enable-targets and --enable-secureplt.
16799         Correct xrefs to "Using the GNU Compiler Collection (GCC)".
16800         * config/rs6000/secureplt.h: New file.
16801         * config/rs6000/sysv4.h (TARGET_SECURE_PLT): Define.
16802         (SUBTARGET_OVERRIDE_OPTIONS): Error if -msecure-plt given without
16803         assembler support.
16804         (CC1_SECURE_PLT_DEFAULT_SPEC): Define.
16805         (CC1_SPEC): Delete duplicate mno-sdata.  Invoke cc1_secure_plt_default.
16806         (SUBTARGET_EXTRA_SPECS): Add cc1_secure_plt_default.
16807         * config/rs6000/sysv4.opt (msecure-plt, bss-plt): Add options.
16808         * config/rs6000/rs6000.h (TARGET_SECURE_PLT): Define.
16809         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Handle
16810         TARGET_SECURE_PLT got register load sequence.
16811         (rs6000_emit_prologue): Call rs6000_emit_load_toc_table when
16812         TARGET_SECURE_PLT.
16813         (rs6000_elf_declare_function_name): Don't emit toc address offset
16814         word when TARGET_SECURE_PLT.
16815         * config/rs6000/rs6000.md (elf_high, elf_low): Move past load_toc_*.
16816         (load_toc_v4_PIC_1) Enable for TARGET_SECURE_PLT.
16817         (load_toc_v4_PIC_3b, load_toc_v4_PIC_3c): New insns.
16818         (call, call_value): Mark pic_offset_table_rtx used for sysv pic and
16819         TARGET_SECURE_PLT.
16820         (call_nonlocal_sysv, call_value_nonlocal_sysv, sibcall_nonlocal_sysv,
16821         sibcall_value_nonlocal_sysv): Add 32768 offset when TARGET_SECURE_PLT
16822         and -fPIC.
16823         * config/rs6000/tramp.asm (trampoline_initial): Use "bcl 20,31".
16824         (__trampoline_setup): Likewise.  Init r30 before plt call.
16825
16826 2005-05-31  DJ Delorie  <dj@redhat.com>
16827
16828         * expr.c (convert_move): When a partial_int requires multiple
16829         conversion steps, make sure successive steps convert the
16830         intermediate value, not the original value.
16831
16832         * expmed.c (expand_mult): Convert partial_int multiplies to
16833         shift/add combinations too.
16834
16835         * genmodes.c (mode_data): Add wider_2x.
16836         (calc_wider_mode): Calculate twice-wider mode too.
16837         (emit_mode_wider): Emit twice-wider mode too.
16838         * machmode.h (mode_2xwider, GET_MODE_2XWIDER_MODE): New.
16839         * expr.c (expand_expr_real_1): Use it for expanding
16840         multiplies.
16841
16842 2005-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
16843
16844         PR tree-optimization/21817
16845         * tree-ssa-loop-im.c (for_each_index): Handle VECTOR_CST.
16846
16847 2005-05-31  Pat Haugen  <pthaugen@us.ibm.com>
16848
16849         * loop.c (loop_invariant_p, valid_initial_value_p): Revert last
16850         change.
16851
16852 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
16853
16854         PR middle-end/20931
16855         PR middle-end/20946
16856         * fold-const.c (fold_checksum_tree): Copy types also if
16857         TYPE_CONTAINS_PLACEHOLDER_INTERNAL is set.
16858         Don't call fold_checksum_tree for TREE_LIST's TREE_CHAIN
16859         first.
16860         Tail recurse TREE_LIST's TREE_CHAIN.
16861
16862 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
16863
16864         PR tree-opt/21732
16865         * tree-ssa-copy.c (dump_copy_of): Create a bitmap and don't visit a
16866         SSA_NAME twice and cause the loop to become finite.  Remove the test
16867         for val.
16868
16869 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
16870
16871         * tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional
16872         expression.
16873
16874 2005-05-31  Richard Sandiford  <rsandifo@redhat.com>
16875
16876         * doc/tm.texi (TARGET_GET_PCH_VALIDITY, TARGET_PCH_VALID_P): Tweak
16877         the documentation to make it more future-proof.
16878         (TARGET_CHECK_PCH_TARGET_FLAGS): Document this new hook.
16879         * target.h (gcc_target): Add check_pch_target_flags.
16880         * target-def.h (TARGET_CHECK_PCH_TARGET_FLAGS): New macro.
16881         (TARGET_INITIALIZER): Include it.
16882         * toplev.c (default_pch_valid_p): Use targetm.check_pch_target_flags.
16883         * config/sh/sh-protos.h (sh_pch_valid_p): Delete.
16884         * config/sh/sh.c (TARGET_PCH_VALID_P, sh_pch_valid_p): Delete.
16885         (sh_check_pch_target_flags): New function.
16886         (TARGET_CHECK_PCH_TARGET_FLAGS): Override default.
16887
16888 2005-05-31  Richard Guenther  <rguenth@gcc.gnu.org>
16889
16890         * fold-const.c (extract_array_ref): Handle more cases,
16891         do some useful canonicalization of the base.
16892         (fold_binary): Explicitly deal with arrays of zero-sized
16893         structures during folding of &a[i] == &a[j].
16894
16895 2005-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
16896
16897         * doc/install.texi (sparc-sun-solaris2*): Update note
16898         about Sun bug 4910101.
16899         (sparc-sun-solaris2.7): Document bootstrap
16900         failure with Sun WorkShop 6 99/08/18 as.
16901
16902 2005-05-30  Pat Haugen  <pthaugen@us.ibm.com>
16903
16904         * loop.c (loop_invariant_p, valid_initial_value_p): Use
16905         regs_invalidated_by_call instead of call_used_regs.
16906
16907 2005-05-30  Paolo Carlini  <pcarlini@suse.de>
16908
16909         PR middle-end/21743
16910         * builtins.def (BUILT_IN_CLOG, BUILT_IN_CLOGF, BUILT_IN_CLOGL):
16911         Enable.
16912         * doc/extend.texi: Add clog, clogf, clogl.
16913
16914 2005-05-30  H.J. Lu  <hongjiu.lu@intel.com>
16915
16916         PR middle-end/20303
16917         * c-pragma.c: Include "vec.h".
16918         (handle_pragma_visibility): Use VEC.
16919
16920         * doc/invoke.texi: Remove the nested visibility push limit.
16921
16922 2005-05-30  Roger Sayle  <roger@eyesopen.com>
16923
16924         PR rtl-optimization/15422
16925         * reg-stack.c (starting_stack_p): New static global.
16926         (straighten_stack): Delete prototype. Change to update the stack
16927         before the current insn.
16928         (subst_stack_regs): Update call to straighten stack.
16929         (emit_swap_insn): Delete prototype.  For the first insn in a
16930         basic block, update stack_in instead of emitting a real swap.
16931         (change_stack): When changing the stack before the first insn
16932         in a basic block, update stack_in instead of emitting real code.
16933         (compensate_edges): Clear starting_stack_p during compensation.
16934         (convert_regs_1): Keep track of starting_stack_p whilst processing
16935         a basic block.
16936
16937 2005-05-30  Kazu Hirata  <kazu@cs.umass.edu>
16938
16939         * tree-ssa-ccp.c (const_val): Make it static.
16940
16941 2005-05-29  Geoffrey Keating  <geoffk@apple.com>
16942
16943         PR target/21761
16944         * config/rs6000/rs6000.md: Remove stray TARGET_32BIT from
16945         pattern involving `:P'.
16946
16947         * Makefile.in (install-cpp): Depend on installdirs.
16948
16949 2005-05-30  Kazu Hirata  <kazu@cs.umass.edu>
16950
16951         * tree-outof-ssa.c (_elim_graph): Change the type of edge_list
16952         to VEC(int,heap)*.
16953         (new_elim_graph, clear_elim_graph, delete_elim_graph,
16954         elim_graph_add_edge, elim_graph_remove_succ_edge,
16955         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED): Use VEC
16956         instead of VARRAY.
16957
16958 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
16959
16960         * cgraphunit.c, ipa-inline.c, loop-iv.c, modulo-sched.c,
16961         opts.c, postreload-gcse.c, tree-browser.def, tree-eh.c,
16962         tree-ssa-copyrename.c, tree-vect-analyze.c: Fix typos and
16963         follow spelling conventions in error/dump messages.
16964
16965 2005-05-29  Roger Sayle  <roger@eyesopen.com>
16966             Richard Henderson  <rth@redhat.com>
16967
16968         * ifcvt.c (noce_emit_move_insn): Construct a SET pattern directly
16969         if the RHS isn't suitable for calling emit_move_insn.
16970
16971 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
16972
16973         * tree-ssa-ccp.c (ccp_fold): Return immediately after calling
16974         fold_unary and fold_binary.
16975
16976 2005-05-29  Roger Sayle  <roger@eyesopen.com>
16977
16978         * reg-stack.c (propagate_stack): Always copy the source stack to
16979         the destination.  This routine is now only called when this is safe.
16980         (better_edge): New function split out from convert_regs_1 to
16981         determine which of two edges is better to propagate across.
16982         (convert_regs_1):  We need only search for a best edge if the
16983         stack layout hasn't been defined yet.  Use better_edge to help
16984         find beste.  No longer traverse unnecessary edges.
16985
16986 2005-05-29  Keith Besaw  <kbesaw@us.ibm.com>
16987
16988         * tree-ssa-alias.c (new_type_alias): New procedure to
16989         create a type memory tag for a pointer with a may-alias
16990         set determined from a variable declaration.
16991         * tree-flow.h: export declaration of new_type_alias
16992         * tree-optimize.c (init_tree_optimization_passes): document
16993         that pass_may_alias cannot be called after pass_vectorize.
16994         * tree-vect-transform (vect_create_data_ref_ptr): Call
16995         new_type_alias when an type memory tag isn't available
16996         for a reference.
16997         (vectorizable_store): Use copy_virtual_operands to update
16998         virtual defs in place (so that loop_version can be called).
16999         Call mark_for_renaming for the virtual defs in case peeling
17000         is done and virtual uses outside the loop need to be updated.
17001
17002 2005-05-29  Dorit Naishlos  <dorit@il.ibm.com>
17003
17004         PR tree-optimization/21639
17005         * tree-complex.c (pass_lower_vector_s): Remove TODO_ggc_collect.
17006
17007 2005-05-29  Jan Hubicka  <jh@suse.cz>
17008
17009         PR tree-optimization/21562
17010         * cfgexpand.c (construct_init_block): Deal properly with the case
17011         of entry edge not pointing to very first basic block.
17012
17013 2005-05-28  Kazu Hirata  <kazu@cs.umass.edu>
17014
17015         * tree-ssa-ccp.c (ccp_fold): Remove code that produces
17016         non-gimple min invariant.
17017
17018         * Makefile.in (OBJS-common): Add tree-cfgcleanup.o.
17019         * tree-flow.h: Add prototypes for start_recording_case_labels
17020         and end_recording_case_labels.
17021         * tree-cfg.c (start_recording_case_labels,
17022         end_recording_case_labels): Export.
17023         (cleanup_tree_cfg_loop, modified_noreturn_calls,
17024         cleanup_control_flow, cleanup_control_expr_graph,
17025         remove_fallthru_edge, phi_alternatives_equal,
17026         tree_forwarder_block_p, has_abnormal_incoming_edge_p,
17027         remove_forwarder_block, cleanup_forwarder_blocks,
17028         remove_forwarder_block_with_phi, merge_phi_nodes,
17029         gate_merge_phi, pass_merge_phi): Move to ...
17030         * tree-cfgcleanup.c: ... here.
17031
17032         * basic-block.h: Remove forward declaration of bb_ann_d.
17033
17034 2005-05-28  Jan Hubicka  <jh@suse.cz>
17035
17036         * tree-ssa-threadupdate.c: (create_edge_and_update_destination_phis):
17037         Update profile.
17038         * value-prof.c (tree_divmod_fixed_value_transform): Be more verbose in
17039         debug output.
17040         (tree_mod_subtract): Fix profile updating code.
17041         (tree_divmod_values_to_profile): Do not produce useless value profilers
17042         for divisions.
17043
17044 2005-05-28  Kazu Hirata  <kazu@cs.umass.edu>
17045
17046         * tree-ssa-dom.c (vrp_element_p): Define.
17047         (vrp_hash_elt): Change the type of records to
17048         VEC(vrp_element_p,heap).
17049         (vrp_free): New.
17050         (tree_ssa_dominator_optimize): Pass vrp_free to htab_create.
17051         Update uses of VRP records.
17052         (simplify_cond_and_lookup_avail_expr, record_range): Update
17053         uses of VRP records.
17054
17055         * tree-inline.c (cfun_stack): Change the type to
17056         VEC(function_p,heap).
17057         (push_cfun, pop_cfun): Use VEC instead of VARRAY.
17058
17059 2005-05-27  Ian Lance Taylor  <ian@airs.com>
17060
17061         * c-decl.c (add_stmt): Add C frontend specific version.
17062         (stmts_are_full_exprs_p): Remove.
17063         * c-common.h (STMT_IS_FULL_EXPR_P): Remove.
17064         (stmts_are_full_exprs_p): Don't declare.
17065         * c-semantics.c (add_stmt): Remove.
17066
17067 2005-05-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17068
17069         * config/mips/mips-protos.h (mips_declare_object): Add printf
17070         attribute.
17071         * config/mips/mips.c (mips_declare_object_name): Fix format
17072         argument.
17073
17074 2005-05-27  Roger Sayle  <roger@eyesopen.com>
17075
17076         * reg-stack.c (compensate_edge): Remove original prototype.
17077         (propagate_stack): New function to copy the stack layout
17078         at the start of a basic block from the layout at the end of
17079         one of its predecessors.
17080         (compensate_edge): Assume that both source and destination
17081         blocks have already had their stack layouts defined.
17082         (compensate_edges): Traverse all non-entry edges in the CFG
17083         and call compensate_edge on each in turn.
17084         (convert_regs_1): Change return type to void.  Call
17085         propagate_stack instead of compensate_edge.
17086         (convert_regs_2): Change return type to void.  Update call
17087         to convert_regs_1 to ignore the (now void) return value.
17088         (convert_regs): Update calls to convert_regs_2 to ignore
17089         the (now void) return value.  After all the basic blocks have
17090         been processed, call compensate_edges to actually emit new
17091         insns.
17092         (reg_to_stack): Initialize the aux info for each basic block
17093         with FOR_EACH_BB instead of which FOR_EACH_BB_REVERSE.
17094
17095 2005-05-28  Jan Hubicka  <jh@suse.cz>
17096
17097         * except.c (can_throw_internal_1, can_throw_external_1): Add 
17098         "is_resx" argument.
17099         (can_throw_external, can_throw_internal): Bring into sync wrt
17100         dealing resx.
17101         * except.h (can_throw_internal_1, can_throw_external_1): Update
17102         prototype.
17103         * tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
17104         Deal properly with resx.
17105
17106 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
17107
17108         * basic-block.h (basic_block_def): Add phi_nodes and
17109         predictions.  Remove tree_annotations.
17110         * predict.c (tree_predicted_by_p, tree_predict_edge,
17111         combine_predictions_for_bb): Adjust references to predictions.
17112         * tree-cfg.c (init_empty_tree_cfg, create_bb): Don't call
17113         create_block_annotation.
17114         (create_block_annotation, free_blocks_annotatios,
17115         clear_blocks_annotations): Remove.
17116         (dump_cfg_stats): Don't print out the memory spent on
17117         bb_ann_d.
17118         (delete_tree_cfg_annotations): Don't call free_blocks_annotations.
17119         * tree-flow-inline.h (bb_ann): Remove.
17120         (phi_nodes, set_phi_nodes): Update references to phi_nodes.
17121         * tree-flow.h (bb_ann_d): Remove.
17122         * tree-if-conv.c (process_phi_nodes): Update a reference to
17123         phi_nodes.
17124         * tree-phinodes.c (reserve_phi_args_for_new_edge,
17125         create_phi_node, remove_phi_node): Likewise.
17126         * tree-pretty-print.c (dump_generic_bb_buff): Don't call bb_ann.
17127         * tree-ssa-dom.c (threaded_blocks): New.
17128         (tree_ssa_dominator_optimize): Initialize, clear, and free
17129         threaded_blocks. Update a call to thread_through_all_blocks.
17130         (thread_across_edge): Use threaded_blocks instead of setting
17131         incoming_edge_threaded.
17132         * tree-ssa-threadupdate.c (threaded_through_all_blocks): Take
17133         a bitmap of blocks that are threaded through.
17134         * tree.h: Move the prototype of threaded_through_blocks to
17135         tree-flow.h.
17136
17137         * domwalk.c (walk_dominator_tree, init_walk_dominator_tree,
17138         fini_walk_dominator_tree): Use VEC instead of VARRAY.
17139         * domwalk.h (dom_walk_data): Change the type of
17140         block_data_stack and free_block_data to VEC(void_p,heap)*.
17141         * tree-ssa-dse.c (dse_initialize_block_local_data,
17142         dse_optimize_stmt, dse_record_phis, dse_finalize_block): Use
17143         VEC instead of VARRAY.
17144
17145 2005-05-27  Jan Hubicka  <jh@suse.cz>
17146
17147         * cgraph.c: Include tree-gimple.h
17148         (cgraph_edge): Rename expr to stmt.
17149         (cgraph_create_edge): Likewise.
17150         (cgraph_clone_node): Likewise.
17151         * cgraph.h (cgraph_node): Use call_stmt instead of call_expr.
17152         * cgraphunit.c (record_call_1): Rename to ...
17153         (record_reference): ... this one; do not build edges.
17154         (cgraph_varpool_analyze_pending_decls): Call record_reference directly.
17155         (current_basic_block): Kill.
17156         (cgraph_create_edges): Rewrite to work on gimple statements nicely.
17157         (verify_cgraph_node): Likewise.
17158         * tree-inline.c (copy_body_r): Do not mess up with cgraph edges.
17159         (copy_bb): Mess up with cgraph edges here; simplify EH handling.
17160         (copy_edges_for_bb): Simplify EH handling.
17161         (expand_call_inline): Pass statement to cgraph_edge and
17162         cgraph_create_edge.
17163
17164 2005-05-27  Richard Guenther  <rguenth@gcc.gnu.org>
17165
17166         * tree-inline.c (copy_body_r): Manually fold *& to deal
17167         with ADDR_EXPRs with mismatched types for now.
17168
17169         * gimplify.c (fold_indirect_ref_rhs): New function.
17170         (gimplify_modify_expr_rhs): Use it instead of pessimistic
17171         fold_indirect_ref.
17172
17173         * fold-const.c (fold_indirect_ref_1): Add type argument;
17174         make sure the resulting expression is of this type.
17175         (build_fold_indirect_ref, fold_indirect_ref): Adjust callers.
17176
17177 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
17178
17179         PR tree-optimization/21658
17180         * tree-ssa-ccp.c (ccp_fold): Call fold_binary instead of
17181         fold_binary_to_constant.  Likewise, call fold_unary instead of
17182         fold_unary_to_constant.
17183
17184 2005-05-27  Nathan Sidwell  <nathan@codesourcery.com>
17185
17186         * vec.h: Implement integral type vector specialization.
17187         (VEC_T): Define a non-GTY structure.
17188         (VEC_T_GTY): Define a GTY structure.
17189         (VEC_TA): Rename to ...
17190         (VEC_TA_GTY): ... here.
17191         (DEF_VEC_I, DEF_VEC_ALLOC_I): New.
17192         (DEF_VEC_P, DEF_VEC_ALLOC_P): Adjust.
17193         (DEF_VEC_FUNC_P, DEF_VEC_ALLOC_FUNC_P): New, broken out of
17194         DEF_VEC_P and DEF_VEC_ALLOC_P.
17195         (DEF_VEC_O, DEF_VEC_ALLOC_O): Adjust.
17196         (DEF_VEC_FUNC_O, DEF_VEC_ALLOC_FUNC_O): New, broken out of
17197         DEF_VEC_O and DEF_VEC_ALLOC_O.
17198         * global.c: Use DEF_VEC_I, DEF_VEC_ALLOC_I.
17199         * lambda-code.c: Likewise.
17200         * tree-into-ssa.c: Likewise.
17201         * tree-ssa-live.c: Likewise.
17202
17203 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
17204
17205         * tree-into-ssa.c (update_ssa): Ensure that the operand cache
17206         is up-to-date.
17207         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
17208         update_stmt_if_modified before calling update_ssa.
17209
17210 2005-05-27  Ralf Corsepius  <ralf.corsepius@rtems.org>
17211
17212         * config/rs6000/t-rtems: Remove roe multilib variant.
17213
17214 2005-05-26  Roger Sayle  <roger@eyesopen.com>
17215
17216         PR tree-optimization/9814
17217         * ifcvt.c (noce_emit_move_insn): If we fail to recognize the move
17218         instruction, add the necessary clobbers by re-expanding the RTL
17219         for arithmetic operations via optab.c's expand_unop/expand_binop.
17220         (noce_try_bitop): New function to optimize bit manipulation idioms
17221         of the form "if (x & C) x = x op C" and "if (!(x & C) x = x op C".
17222         (noce_process_if_block): Call noce_try_bitop.
17223
17224 2005-05-26  Roger Sayle  <roger@eyesopen.com>
17225
17226         * reg-stack.c (convert_regs_entry, convert_regs_exit,
17227         convert_regs_1, convert_regs_2, convert_regs): Delete prototypes.
17228         (reg_to_stack): Move to end of the file.  Initialize the per
17229         basic block information here, instead of...
17230         (convert_regs_entry): Here.
17231         (convert_regs): Change unused return type to void.
17232
17233 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
17234
17235         * c-pch.c, timevar.c, timevar.h, unwind-compat.c,
17236         unwind-dw2-fde-compat.c, unwind-dw2-fde.c, config/mmix/mmix.h,
17237         config/rs6000/eabispe.h, config/rs6000/lynx.h,
17238         config/sh/elf.h, config/sh/symbian-pre.h,
17239         config/sparc/sparc-protos.h: Update copyright.
17240
17241 2005-05-26  Mike Stump  <mrs@apple.com>
17242
17243         * darwin.h (ASM_OUTPUT_LABELREF): Handle quoted non-lazy pointers
17244         for Objective-C++.
17245         
17246 2005-05-26  Richard Guenther  <rguenth@gcc.gnu.org>
17247
17248         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
17249         See through ADDR_EXPR in finding place to propagate into.
17250
17251 2005-05-26  Kazu Hirata  <kazu@cs.umass.edu>
17252
17253         * c-common.c, c-parser.c, cfgbuild.c, cfghooks.c, cfghooks.h,
17254         cfgrtl.c, cgraphunit.c, ddg.c, expr.h, gcse.c, ggc-page.c,
17255         ggc-zone.c, gimplify.c, ipa-inline.c, longlong.h, targhooks.c,
17256         tree-flow-inline.h, tree-pass.h, tree-ssa-dse.c,
17257         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
17258         tree-ssa-operands.c, tree-vect-analyze.c,
17259         tree-vect-transform.c, tree-vectorizer.c, tree.c,
17260         config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
17261         config/frv/frv.md, config/i386/i386.c, config/i386/sse.md,
17262         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
17263         config/mcore/mcore.c, config/mips/mips.c, config/mips/mips.md,
17264         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
17265         config/rs6000/rs6000.h, config/sh/sh.c, config/sh/sh.md,
17266         config/sh/ushmedia.h, config/sparc/sparc.c,
17267         config/sparc/sparc.md, config/stormy16/stormy-abi: Fix comment
17268         typos.  Follow spelling conventions.
17269         * doc/invoke.texi, doc/tm.texi, doc/tree-ssa.texi: Fix typos.
17270         Follow spelling conventions.
17271
17272 2005-05-26  David Ung  <davidu@mips.com>
17273
17274         * config/mips/mips.c (mips_use_ins_ext_p): New helper function
17275         that determines whether the MIPS32/64 R2 ext/ins should be used.
17276         * config/mips/mips.h (ISA_HAS_EXT_INS): New macro.
17277         * config/mips/mips.md (extzv): Changed predicate for operand to
17278         nonimmediate_operand. Add code to generate insn patterns for
17279         extzvsi and extzvdi.
17280         (extzv<mode>): New pattern to match mips32/64 r2 ext insn.
17281         (insv): Similarly for insertion.
17282         (insv<mode>): Similarly.
17283
17284 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
17285
17286         * simplify-rtx.c (avoid_constant_pool_reference): Support
17287         offsetted addresses in the constant pool.
17288
17289 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
17290
17291         * df.h (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
17292         * df.c (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
17293
17294 2005-05-26  Jakub Jelinek  <jakub@redhat.com>
17295
17296         PR target/21716
17297         * reg-stack.c (swap_rtx_condition): Don't crash if %ax user was not
17298         found in the basic block and last insn in the basic block is not
17299         INSN_P.  Remove explicit unspec numbers that are no longer valid
17300         from comments.
17301
17302 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
17303
17304         * tree-vect-transform.c (vectorizable_operation): Try word_mode
17305         vectorization if UNITS_PER_WORD == UNITS_PER_SIMD_WORD, even
17306         if a vector mode is available.
17307
17308 2005-05-25  Roger Sayle  <roger@eyesopen.com>
17309
17310         PR middle-end/21709
17311         * fold-const.c (const_binop): Check for division by zero during
17312         complex division.
17313
17314 2005-05-26  Ian Lance Taylor  <ian@airs.com>
17315
17316         * reload1.c (verify_initial_elim_offsets): Add braces to avoid
17317         having a declaration after a statement.
17318
17319 2005-05-26  Richard Sandiford  <rsandifo@redhat.com>
17320
17321         * opt-functions.awk (var_type): New function.
17322         (var_set): Use CLVC_STRING if var_type returns "const char *".
17323         * opth-gen.awk: Use var_type to find out the types of variables.
17324         Don't print comments above each "extern" definition.
17325         * optc-gen.awk: Use var_type in the same way.
17326         * opts.h (cl_var_cond): Rename to...
17327         (cl_var_type): ...this.  Add CLVC_STRING.
17328         (cl_option): Make "flag_var" a "void *" pointer.  Replace "var_cond"
17329         with "var_type".
17330         * opts.c (handle_option, option_enabled): Update after above name
17331         change.  Cast flag_var before using it.  Handle CLVC_STRING.
17332         
17333         * config/alpha/alpha.h (alpha_tls_size): Delete.
17334         * config/alpha/alpha.c (alpha_tls_size, alpha_cpu_string)
17335         (alpha_tune_string, alpha_tp_string, alpha_fprm_string)
17336         (alpha_fptm_string, alpha_mlat_string): Delete.
17337         (alpha_handle_option): Don't set the above variables here.  Use the
17338         integer argument to check the validity of -mtls-size=.
17339         * config/alpha/alpha.opt (mcpu=, mtune=, mfp-rounding-mode=)
17340         (mfp-trap-mode=, mtrap-precision=, mmemory-latency=): Add Var()s.
17341         (mtls-size=): Likewise.  Convert to a UInteger and initialize the
17342         variable to 32.
17343
17344         * config/arc/arc.c (arc_cpu_string, arc_text_string)
17345         (arc_data_string, arc_rodata_string): Delete.
17346         (arc_handle_option): Don't set the above variables here.
17347         * config/arc/arc.opt (mcpu=, mtext=, mdata=, mrodata=): Add Var()s
17348         and initialize them.
17349
17350         * config/arm/arm.c (target_fpu_name, target_fpe_name)
17351         (target_float_abi_name, target_abi_name, structure_size_string)
17352         (arm_pic_register_string): Delete.
17353         (arm_handle_option): Don't set the above variables here, except
17354         in the handling of -mhard-float and -msoft-float.
17355         * config/arm/arm.opt (mabi=, mfloat-abi=, mfp=, mfpe=, mfpu=)
17356         (mpic-register=, mstructure-size-boundary=): Add Var()s.
17357
17358         * config/avr/avr.c (avr_init_stack, avr_mcu_name, TARGET_HANDLE_OPTION)
17359         (avr_handle_option): Delete.
17360         * config/avr/avr.opt (mmcu=, minit-stack=): Add Var()s and initialize
17361         them.
17362
17363         * config/bfin/bfin.c (bfin_library_id): Delete.
17364         (bfin_handle_option): Don't set it.
17365         * config/bfin/bfin.opt (mshared-library-id=): Add Var().
17366
17367         * config/c4x/c4x.h (c4x_rpts_cycles): Delete.
17368         * config/c4x/c4x.c (c4x_rpts_cycles): Delete.
17369         (c4x_handle_option): Don't set c4x_rpts_cycles here.
17370         * config/c4x/c4x.opt (mrpts=): Add Var().
17371
17372         * config/cris/aout.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't set
17373         cris_elinux_stacksize_str here.
17374         * config/cris/aout.opt (melinux-stacksize=): Add Var().
17375         * config/cris/cris.h (cris_max_stackframe_str, cris_cpu_str)
17376         (cris_tune_str, cris_elinux_stacksize_str): Delete.
17377         * config/cris/cris.c (cris_max_stackframe_str, cris_cpu_str)
17378         (cris_tune_str, cris_elinux_stacksize_str): Delete.
17379         (cris_handle_option): Don't set the above variables here.
17380         * config/cris/cris.opt (mcpu=, march=, mtune=, mmax-stackframe=)
17381         (max-stackframe=): Add Var()s.
17382
17383         * config/i386/i386.h (ix86_tune_string, ix86_arch_string): Delete.
17384         * config/i386/i386.c (ix86_cmodel_string, ix86_asm_string)
17385         (ix86_tls_dialect_string, ix86_tune_string, ix86_arch_string)
17386         (ix86_fpmath_string, ix86_regparm_string, ix86_align_loops_string)
17387         (ix86_align_jumps_string, ix86_preferred_stack_boundary_string)
17388         (ix86_branch_cost_string, ix86_align_funcs_string): Delete.
17389         (ix86_handle_option): Don't set the above variables here.
17390         * config/i386/i386.opt (malign-functions=, malign-jumps=)
17391         (malign-loops=, march=, masm=, mbranch-cost=, mcmodel=, mfpmath=)
17392         (mpreferred-stack-boundary=, mregparm=, mtls-dialect=, mtune=): Add
17393         Var()s.
17394
17395         * config/ia64/ia64.h (ia64_tls_size): Delete.
17396         * config/ia64/ia64.c (ia64_tls_size): Delete.
17397         (ia64_handle_option): Treat -mtls-size= as a UInteger option,
17398         reading the integer argument from the "value" parameter.  Don't
17399         set ia64_tls_size here.
17400         * config/ia64/ia64.opt (mtls-size=): Turn into a UInteger option.
17401         Add Var() and Init().
17402
17403         * config/m32r/m32r.h (m32r_cache_flush_func): Delete.
17404         (m32r_cache_flush_trap): Delete.
17405         * config/m32r/m32r.c (m32r_cache_flush_func): Delete.
17406         (m32r_cache_flush_trap): Delete.
17407         (m32r_handle_option): Don't set the above variables when handling
17408         -mflush-func= and -mflush-trap=.
17409         * config/m32r/m32r.opt (-mflush-func=, -mflush-trap=): Add Var()s
17410         and Init()s.
17411
17412         * config/mips/mips.h (mips_cache_flush_func): Delete.
17413         * config/mips/mips.c (mips_arch_string, mips_tune_string)
17414         (mips_cache_flush_func): Delete.
17415         (mips_handle_option): Don't set the above variables when handling
17416         -march=, -mtune= and -mflush-func=.
17417         * config/mips/mips.opt (march=, mflush-func=, mtune=): Add Var()s.
17418
17419         * config/s390/s390.c (s390_arch_string): Delete.
17420         (s390_handle_option): Don't set it here.
17421         * config/s390/s390.opt (march=): Add Var().
17422
17423         * config/sparc/sparc.h (sparc_cmodel_string): Delete.
17424         * config/sparc/sparc.c (sparc_cmodel_string): Delete.
17425         (sparc_handle_option): Don't set it here.
17426         * config/sparc/sparc.opt (mcmodel=): Add Var().
17427
17428 2005-05-25  Roger Sayle  <roger@eyesopen.com>
17429
17430         * convert.c (convert_to_integer) <POINTER_TYPE>: Avoid recursive
17431         call to convert_to_integer by building the NOP_EXPR directly.
17432
17433 2005-05-25  Richard Sandiford  <rsandifo@redhat.com>
17434
17435         * config/rs6000/rs6000.opt (mprioritize-restricted-insns=): Fix typo.
17436
17437 2005-05-25  Daniel Berlin  <dberlin@dberlin.org>
17438             Jeff Law  <law@redhat.com>
17439
17440         * tree-cfg.c (verify_expr, case ADDR_EXPR): Verify invariant,
17441         constant and side_effects of the ADDR_EXPR are consistent.
17442
17443         * tree-nested.c (convert_local_reference): Set CURRENT_FUNCTION_DECL
17444         appropriately around calls to recompute_tree_invarant_for_addr_expr.
17445
17446 2005-05-25  Ulrich Weigand  <uweigand@de.ibm.com>
17447
17448         * config/s390/s390.c (GP_ARG_NUM_REG, FP_ARG_NUM_REG): New defines.
17449         (s390_function_arg, s390_gimplify_va_arg): Use them.
17450         (s390_register_info): Save only required subset of argument
17451         registers into save area for va_list.
17452         (s390_va_start): Initialize only required elements of va_list struct.
17453         (s390_build_builtin_va_list): Set va_list_[gf]pr_counter_field.
17454
17455 2005-05-25  Ulrich Weigand  <uweigand@de.ibm.com>
17456
17457         * reload1.c (verify_initial_elim_offsets): Return boolean status
17458         instead of aborting.
17459         (reload): Adapt verify_initial_elim_offsets call site.  Restart
17460         main loop if some initial elimination offsets changed.
17461
17462 2005-05-25  Adam Nemet  <anemet@lnxw.com>
17463
17464         * config/rs6000/lynx.h (CC1_SPEC): Use -maix-struct-return instead
17465         of -mno-svr4-struct-return.
17466
17467 2005-05-25  Daniel Berlin  <dberlin@dberlin.org>
17468
17469         Fix PR tree-optimization/21705
17470         
17471         * tree-ssa-pre.c (in_fre): New static variable.
17472         (create_value_expr_from): Recursively value number reference ops
17473         in argument lists.
17474         (can_value_number_call): Temporary restrict only exists for
17475         PRE, not FRE.
17476
17477 2005-05-25  Kazu Hirata  <kazu@cs.umass.edu>
17478
17479         * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Replace
17480         sizeof (bitmap *) with sizeof (bitmap).
17481
17482 2005-05-25  Daniel Berlin <dberlin@dberlin.org>
17483
17484         * lambda-code.c (perfect_nestify): Call update_stmt on the exit
17485         condition.
17486
17487 2005-05-25  Adrian Straetling  <straetling@de.ibm.com>
17488
17489         * config/s390/s390.c (TARGET_INSN_VALID_WITHIN_DOLOOP): Set to
17490         hook_bool_rtx_true.
17491
17492 2005-05-25  Jan Hubicka  <jh@suse.cz>
17493
17494         * Makefile.in (ipa-inline.o): Add COEVERAGE_H dependency.
17495         * cgraph.c (cgraph_create_node): Reset estimated_growth.
17496         * cgraph.h (cgraph_global_info): Add estimated_growth.
17497         * ipa-inline.c: Include coverage.h
17498         (max_insns, max_count): New static variables.
17499         (cgraph_estimate_size_after_inlining): Cache the result.
17500         (cgraph_estimate_growth):
17501         * passes.c (rest_of_clean_state): Kill coverage_end_function.
17502         * timevar.def (TV_INLINE_HEURISTICS): New timevar.
17503         * tree-optimize.c (init_tree_optimization_passes): Move profiling before
17504         inlining.
17505         (ipa_passes): Initialize bitmaps.
17506
17507 2005-05-25  Adrian Straetling  <straetling@de.ibm.com>
17508
17509         * loop-doloop.c: Include "target.h". 
17510           (doloop_valid_p): Move tests to function in targhooks.c.
17511         * target.h (struct gcc_target): New target hook
17512           "insn_valid_within_doloop".
17513         * target-def.h: Define default value for "insn_valid_within_doloop".
17514           (TARGET_INITIALIZER): Insert new target hook into initializer.
17515         * targhooks.c (default_insn_valid_within_doloop): New function.
17516         * targhooks.h (default_insn_valid_within_doloop): Declare.
17517         * hooks.c (hook_bool_rtx_true): New function.
17518         * hooks.h (hook_bool_rtx_true): Declare.
17519         * doc/tm.texi: Add documentation for new target hook.
17520
17521 2005-05-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
17522
17523         PR target/21412
17524         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): New macro
17525         * config/sparc/sparc-protos.h (tls_symbolic_operand): Delete.
17526         (sparc_tls_referenced_p): New prototype.
17527         * config/sparc/sparc.c (tls_symbolic_operand): Delete.
17528         (sparc_expand_move): Look for TLS addresses with constant offsets.
17529         (legitimate_constant_p): Use SPARC_SYMBOL_REF_TLS_P instead of
17530         tls_symbolic_operand.
17531         (legitimate_pic_operand_p): Likewise.
17532         (legitimate_address_p): Likewise.
17533         (legitimize_address): Likewise.
17534         (sparc_tls_symbol_ref_1): New function.
17535         (sparc_tls_referenced_p): New function.
17536         * config/sparc/predicates.md (tgd_symbolic_operand): Use
17537         SYMBOL_REF_TLS_MODEL instead of tls_symbolic_operand.
17538         (tld_symbolic_operand): Likewise.
17539         (tie_symbolic_operand): Likewise.
17540         (tle_symbolic_operand): Likewise.
17541
17542 2005-05-24  DJ Delorie  <dj@redhat.com>
17543         
17544         * common.opt (-Wattributes): New.  Default true.
17545         * doc/invoke.texi (-Wno-attributes): Document.
17546         
17547         * attribs.c (decl_attributes): Move warning control from if() to
17548         warning(OPT_*).
17549         * c-common.c (handle_packed_attribute): Likewise.
17550         (handle_nocommon_attribute): Likewise.
17551         (handle_common_attribute): Likewise.
17552         (handle_noreturn_attribute): Likewise.
17553         (handle_noinline_attribute): Likewise.
17554         (handle_always_inline_attribute): Likewise.
17555         (handle_used_attribute): Likewise.
17556         (handle_unused_attribute): Likewise.
17557         (handle_const_attribute): Likewise.
17558         (handle_transparent_union_attribute): Likewise.
17559         (handle_constructor_attribute): Likewise.
17560         (handle_destructor_attribute): Likewise.
17561         (handle_mode_attribute): Likewise.
17562         (handle_alias_attribute): Likewise.
17563         (handle_visibility_attribute): Likewise.
17564         (handle_tls_model_attribute): Likewise.
17565         (handle_malloc_attribute): Likewise.
17566         (handle_returns_twice_attribute): Likewise.
17567         (handle_pure_attribute): Likewise.
17568         (handle_deprecated_attribute): Likewise.
17569         (handle_vector_size_attribute): Likewise.
17570         (handle_nothrow_attribute): Likewise.
17571         (handle_cleanup_attribute): Likewise.
17572         (handle_warn_unused_result_attribute): Likewise.
17573         (handle_sentinel_attribute): Likewise.
17574         * c-decl.c (diagnose_mismatched_decls): Likewise.
17575         (start_decl): Likewise.
17576         (grokdeclarator): Likewise.
17577         (start_function): Likewise.
17578         * c-format.c (check_function_format): Likewise.
17579         * stor-layout.c (place_field): Likewise.
17580         (finalize_record_size): Likewise.
17581         * tree.c (handle_dll_attribute)): Likewise.
17582         * varasm.c (default_assemble_visibility): Likewise.
17583         * config/darwin.c (darwin_handle_weak_import_attribute): Likewise.
17584         (darwin_assemble_visibility): Likewise.
17585         * config/arc/arc.c (arc_handle_interrupt_attribute): Likewise.
17586         * config/arm/arm.c (arm_handle_fndecl_attribute): Likewise.
17587         (arm_handle_isr_attribute): Likewise.
17588         * config/avr/avr.c (avr_handle_progmem_attribute): Likewise.
17589         (avr_handle_fndecl_attribute): Likewise.
17590         * config/bfin/bfin.c (handle_int_attribute): Likewise.
17591         * config/c4x/c4x.c (c4x_handle_fntype_attribute): Likewise.
17592         * config/h8300/h8300.c (h8300_handle_fndecl_attribute): Likewise.
17593         (h8300_handle_eightbit_data_attribute): Likewise.
17594         (h8300_handle_tiny_data_attribute): Likewise.
17595         * config/i386/i386.c (ix86_handle_cdecl_attribute): Likewise.
17596         (ix86_handle_regparm_attribute): Likewise.
17597         (ix86_handle_struct_attribute): Likewise.
17598         * config/i386/winnt.c (ix86_handle_shared_attribute): Likewise.
17599         (i386_pe_encode_section_info): Likewise.
17600         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
17601         * config/ip2k/ip2k.c (ip2k_handle_progmem_attribute): Likewise.
17602         (ip2k_handle_fndecl_attribute): Likewise.
17603         * config/m32r/m32r.c (m32r_handle_model_attribute): Likewise.
17604         * config/m68hc11/m68hc11 (m68hc11_handle_page0_attribute): Likewise.
17605         (m68hc11_handle_fntype_attribute): Likewise.
17606         (m68hc11_encode_section_info): Likewise.
17607         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
17608         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
17609         * config/ns32k/ns32k.c (ns32k_handle_fntype_attribute): Likewise.
17610         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute): Likewise.
17611         * config/sh/sh.c (sh_handle_interrupt_handler_attribute): Likewise.
17612         (sh_handle_sp_switch_attribute): Likewise.
17613         (sh_handle_trap_exit_attribute): Likewise.
17614         * config/sh/symbian.c (sh_symbian_dllimport_p): Likewise.
17615         (sh_symbian_handle_dll_attribute): Likewise.
17616         * config/stormy16/stormy16.c (xstormy16_handle_interrupt_attribute): Likewise.
17617         (xstormy16_handle_below100_attribute): Likewise.
17618         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
17619
17620         * c-common.c (unsigned_conversion_warning): Move warning control
17621         from if() to warning(OPT_*).
17622         (c_common_truthvalue_conversion): Likewise.
17623         (c_do_switch_warnings): Likewise.
17624         * c-decl.c (diagnose_mismatched_decls): Likewise.
17625         (diagnose_mismatched_decls): Likewise.
17626         (define_label): Likewise.
17627         (grokdeclarator): Likewise.
17628         * c-format.c (check_format_info): Likewise.
17629         * c-lex.c (interpret_integer): Likwise.
17630         (lex_string): Likewise.
17631         * c-opts.c (c_common_post_options): Likewise.
17632         * c-parser.c (c_parser_unary_expression): Likewise.
17633         * c-pragma.c (handle_pragma_redefine_extname): Likewise.
17634         (handle_pragma_extern_prefix): Likewise.
17635         * c-typeck.c (build_binary_op): Likewise.
17636         * gcse.c (is_too_expensive): Likewise.
17637         * opts.c (decode_options): Likewise.
17638         * stor-layout.c (place_field): Likewise.
17639         * tree-cfg.c (remove_bb): Likewise.
17640
17641         * c.opt (-Wreturn-type): Add Var(warn_return_type).
17642         * flags.h (warn_return_type): Remove.
17643         * toplev.c (warn_return_type): Likewise.
17644
17645 2005-05-24  Kelley Cook  <kcook@gcc.gnu.org>
17646
17647         * configure.ac: Don't use gcc_AC_C_LONG_LONG.  Check for
17648         existence of long long and __int64 before determining their size.
17649         * aclocal.m4: Delete gcc_AC_C_LONG_LONG.
17650         * configure, config.h.in:  Regenerate.
17651
17652 2005-05-24  Kelley Cook  <kcook@gcc.gnu.org>
17653
17654         * configure: Regenerate.
17655
17656 2005-05-24  Ziemowit Laski  <zlaski@apple.com>
17657
17658         * c-common.h (objc_comptypes): Remove prototype.
17659         (objc_compare_types): New prototype.
17660         (objc_volatilized_decl): Likewise.
17661         (objc_type_quals_match): Likewise.
17662         * c-decl.c (objc_mark_locals_volatile): Streamline by calling
17663         objc_volatilize_decl().
17664         * c-typeck.c (comp_target_types): Remove third parameter; do
17665         not call objc_comptypes().
17666         (comptypes): Remove calls to objc_comptypes().
17667         (build_function_call): Extend compatible prototype check to ObjC.
17668         (build_conditional_expr): Adjust call to comp_target_types().
17669         (convert_for_assignment): Call objc_compare_types() instead of
17670         objc_comptypes(); adjust calls to comp_target_types(); call
17671         objc_type_quals_match() before issuing qualifier mismatch
17672         warnings.
17673         (build_binary_op): Call objc_compare_types() before issuing
17674         pointer mismatch warnings; adjust calls to
17675         comp_target_types().
17676         * stub-objc.c (objc_comptypes): Remove stub.
17677         (objc_compare_types): New stub.
17678         (objc_volatilized_decl): Likewise.
17679         (objc_type_quals_match): Likewise.
17680
17681 2005-05-24  Paolo Carlini  <pcarlini@suse.de>
17682
17683         * config/ia64/ia64intrin.h: Define nothing for C++:
17684         overloaded builtins have been ported to C++.
17685
17686 2005-05-24  Jeff Law  <law@redhat.com>
17687
17688         * tree-nested.c (build_addr): New "context" argument.  Temporarily
17689         set current_function_decl around the call to build the ADDR_EXPR.
17690         (get_static_chain): Pass proper context to build_addr.
17691         (convert_nl_goto_reference): Likewise.
17692         (convert_tramp_reference): Likewise.
17693         (final_nesting_tree_1): Likewise.
17694         * tree-profile.c (tree_gen_interval_profiler): Likewise.
17695         (tree_gen_pow2_profiler): Likewise.
17696         (tree_gen_one_value_profiler): Likewise.
17697         * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Likewise.
17698         * tree.h (build_addr): Update prototype.
17699
17700 2005-05-24  Kazu Hirata  <kazu@cs.umass.edu>
17701
17702         * tree-flow.h (bb_ann_d): Remove has_escape_site.
17703         * tree-ssa-alias.c (compute_points_to_addr_escape): Don't
17704         write to has_escape_site.
17705
17706 2005-05-24  Jeff Law  <law@redhat.com>
17707
17708         * Makefile.in (tree-cfg.o): Depend on tree-ssa-propagate.h.
17709         * tree-cfg.c: Include tree-ssa-propagate.h.
17710         (replace_uses_by): Call recompute_tree_invarant_for_addr_expr as
17711         needed.
17712
17713 2005-05-24  Nick Clifton  <nickc@redhat.com>
17714
17715         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
17716         __NO_FPRS__ when 'f' class registers will not be available. 
17717
17718 2005-05-24  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
17719
17720         * config/m32r/m32r.c (m32r_expand_block_move):  Return 0 if
17721         nothing was done.
17722         * config/m32r/m32r.md (movmemsi):  If m32r_expand_block_move did
17723         nothing then FAIL.
17724         * config/m32r/m32r/m32r-protos.h  (m32r_expand_block_move): Update
17725         prototype.
17726
17727 2005-05-23  Jeff Law  <law@redhat.com>
17728
17729         * tree-ssa-dom.c (cprop_into_stmt): Do not call
17730         recompute_tree_invariant_for_addr_expr here.
17731         (optimize_stmt): Call it here instead and do so if anything
17732         at all has changed in the statement and the RHS is an ADDR_EXPR.
17733         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): If
17734         needed, call recompute_tree_invariant_for_addr_expr.
17735         * tree-ssa-propagate.c (substitute_and_fold): Call
17736         recompute_tree_invariant_for_addr_expr as needed.
17737
17738 2005-05-23  Andreas Krebbel  <krebbel1@de.ibm.com>
17739
17740         * config/s390/s390.c (s390_optimize_prologue): Don't replace an insn
17741         saving less registers than the replacement.
17742
17743 2005-05-23  Jan Hubicka  <jh@suse.cz>
17744
17745         * tree-flow.h (stmt_ann_d): Kill GTY ((skip)) mark on BB.
17746
17747 2005-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
17748
17749         * config/sparc/sparc-protos.h (sparc_expand_move): New prototype.
17750         * config/sparc/sparc.c (sparc_expand_move): New function.
17751         (sparc_emit_set_const64): Rewrite assert condition on entry.
17752         (legitimate_constant_p) <CONST_VECTOR>: New case.
17753         (legitimize_pic_address): Use TARGET_ARCH64 to select the mode.
17754         * config/sparc/sparc.md (movqi, movhi, movsi, movdi, movV32,
17755         movV64, movtf): Use nonimmediate_operand for the first operand.
17756         Rewrite.  Only invoke sparc_expand_move.
17757         * config/sparc/predicates.md (input_operand): Reorder tests.
17758
17759 2005-05-23  Jan Beulich  <jbeulich@novell.com>
17760
17761         * gthr-posix.h (__gthread_recursive_mutex_init_function): Add
17762         missing return statement.
17763
17764 2005-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
17765
17766         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Use
17767         emit_move_insn for moves to TFmode stack slots.
17768
17769 2005-05-21  Richard Guenther  <rguenth@gcc.gnu.org>
17770
17771         * tree-stdarg.c (execute_optimize_stdarg): Handle references
17772         to va_list of the form &va[0].
17773
17774 2005-05-20  Jan Hubicka  <jh@suse.cz>
17775
17776         * Makefile.in (insn-emit.o): Add basic-block.h dependency.
17777         * genemit.c (main): Make insn-emit to include basic-block.h too.
17778
17779 2005-05-20  Jan Hubicka  <jh@suse.cz>
17780
17781         * cgraphunit.c (cgraph_expand_function): Force function being lowered.
17782
17783 2005-05-19  Richard Henderson  <rth@redhat.com>
17784
17785         * config/alpha/alpha.c (emit_unlikely_jump, emit_load_locked,
17786         emit_store_conditional): Split out from ...
17787         (alpha_split_atomic_op): ... here.
17788         (alpha_split_compare_and_swap): New; extract from .md file.
17789         (alpha_split_lock_test_and_set): Likewise.
17790         * config/alpha/alpha-protos.h: Update.
17791         * config/alpha/sync.md (sync_compare_and_swap<I48MODE>): Move
17792         split code into alpha.c.
17793         (sync_lock_test_and_set<I48MODE>): Likewise.
17794
17795 2005-05-19  Richard Henderson  <rth@redhat.com>
17796
17797         * unwind.h, unwind-pe.h: Revert gcc_unreachable change of 05-17.
17798
17799 2005-05-19  Richard Henderson  <rth@redhat.com>
17800
17801         * config/i386/sse.md (mulv4si3): Use all register inputs.
17802         (mulv2di3): Likewise.
17803
17804 2005-05-19  Richard Guenther  <rguenth@gcc.gnu.org>
17805
17806         * tree-ssa-loop-ivopts.c (determine_base_object): Use
17807         build_fold_addr_expr to generate trees of correct type.
17808         Use fold_buildN if possible.
17809
17810 2005-05-19  Jan Hubicka  <jh@suse.cz>
17811
17812         * basic-block.h (REG_BR_PROB_BASE): Define.
17813         * cgraph.c (cgraph_create_edge): Initialize loop_nest and count.
17814         (dump_cgraph_node): Dump count.
17815         (cgraph_clone_edge): Rescale counts.
17816         (cgraph_clone_node): Likewise.
17817         * cgraph.h: Include basic-block.h
17818         (cgraph_node): Add count.
17819         (cgraph_edge): Add count and loop_nest.
17820         (cgraph_node, cgraph_edge, cgraph_clone_edge, cgraph_clone_node):
17821         Update prototypes.
17822         * cgraphunit.c: Kill now redundant inlining comment.
17823         (cgraph_create_edges): Make static, maintain current basic block;
17824         fix pasto.
17825         (record_call_1): Fill in new fields.
17826         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
17827         cgraph_clone_node.
17828         (cgraph_decide_recursive_inlining): Likewise.
17829         * rtl.h (REG_BR_PROB_BASE): Kill.
17830         * tree-inline.c (copy_body_r): Update call of cgraph_clone_edge.
17831         (expand_call_inline): Update call of cgraph_create_edge.
17832         * tree-optimize.c (tree_rest_of_compilation): Likewise.
17833
17834 2005-05-19  Nick Clifton  <nickc@redhat.com>
17835
17836         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use the
17837         new rs6000_explicit_options structure.
17838
17839 2005-05-19  Richard Henderson  <rth@redhat.com>
17840
17841         PR target/21390
17842         * config/alpha/alpha.c (alpha_emit_conditional_branch): Move 
17843         TFmode code swapping ...
17844         (alpha_emit_xfloating_compare): ... here.
17845         (alpha_emit_setcc): Update to match.
17846         (alpha_lookup_xfloating_lib_func): Assert TARGET_HAS_XFLOATING_LIBS.
17847
17848 2005-05-19  Richard Henderson  <rth@redhat.com>
17849
17850         PR target/21657
17851         * config/ia64/ia64.c (ia64_expand_tls_address): Remove extra
17852         memory indirection in local-dynamic case.
17853
17854 2005-05-18  Jie Zhang  <jie.zhang@analog.com>
17855             Bernd Schmidt  <bernd.schmidt@analog.com>
17856
17857         * config/bfin/bfin.c (branch_dest): Add comment why it's
17858         necessary.
17859         * config/bfin/bfin.md (attr "length" default): Change the offset of
17860         forward conditional branch of length 4 from 4096 to 4092.
17861
17862 2005-05-19  Jan Beulich  <jbeulich@novell.com>
17863
17864         * unwind-compat.c: Include tconfig.h and tsystem.h.
17865         * unwind-dw2-fde-compat.c: Likewise.
17866
17867 2005-05-18  Richard Henderson  <rth@redhat.com>
17868
17869         PR 21541
17870         * ifcvt.c (noce_process_if_block): Avoid conversion when the
17871         memory destination is readonly.
17872
17873 2005-05-18  Richard Henderson  <rth@redhat.com>
17874
17875         PR 21541
17876         * tree-ssa-operands.c (opf_non_specific): New.
17877         (get_asm_expr_operands): Set it.
17878         (add_call_clobber_ops, add_call_read_ops): Likewise.
17879         (add_stmt_operand): Test it instead of opf_kill_def when
17880         considering unmodifiable variables.
17881
17882         * tree-ssa-operands.c (get_expr_operands): Fix exact test.
17883
17884 2005-05-19  Kazu Hirata  <kazu@cs.umass.edu>
17885
17886         * cfgexpand.c, tree-cfg.c, tree-inline.c, tree-optimize.c,
17887         tree-ssa-forwprop.c: Fix comment typos.
17888         * doc/invoke.texi: Fix a typo.
17889
17890 2005-05-18  Richard Henderson  <rth@redhat.com>
17891
17892         * config.gcc (powerpc-*-linux*): Include linux64.opt when
17893         including linux64.h.
17894
17895 2005-05-18  Richard Henderson  <rth@redhat.com>
17896
17897         * tree-cfg.c (pass_remove_useless): Revert last change.
17898         * tree-optimize.c (init_tree_optimization_passes): Initialize
17899         all_lowering_passes with PROP_gimple_any.
17900
17901 2005-05-18  Devang Patel  <dpatel@apple.com>
17902
17903         * config/rs6000/rs6000.md (insvsi_internal1): Subtract shift from
17904         the mask end.
17905         
17906 2005-05-18  Richard Henderson  <rth@redhat.com>
17907
17908         * tree-ssa-forwprop.c (cfg_changed): New.
17909         (tidy_after_forward_propagate_addr): New.
17910         (forward_propagate_addr_expr): Use it, and fold_stmt_inplace.
17911         (forward_propagate_addr_into_variable_array_index): Likewise.
17912         (tree_ssa_forward_propagate_single_use_vars): Cleanup cfg if
17913         edges were removed.
17914
17915 2005-05-18  Geoffrey Keating  <geoffk@apple.com>
17916
17917         * dummy-checksum.c: New.
17918         * genchecksum.c: New.
17919         * c.opt (print_pch_checksum): New flag.
17920         * c-pch.c (struct c_pch_validity): Make much shorter.
17921         (no_checksum): New.
17922         (host_machine): Remove.
17923         (target_machine): Remove.
17924         (get_ident): Change PCH version number.
17925         (pch_init): When -fverbose-asm, print out the compiler fingerprint.
17926         Don't put triplets or version string in PCH validity data.
17927         Do put the compiler checksum in the validity data.
17928         (c_common_valid_pch): Don't check triplets or version string.  Do
17929         check checksum.
17930         (c_common_print_pch_checksum): New.
17931         * c-opts.c (c_common_handle_option): Add OPT_print_pch_checksum.
17932         Print fingerprint with -v.
17933         * c-common.h (c_common_print_pch_checksum): New.
17934         (executable_checksum): New.
17935         * Makefile.in (STAGEMOVESTUFF): Add cc1*-dummy, *-checksum.c.
17936         (cc1-dummy): New rule.
17937         (cc1-checksum.c): New rule.
17938         (cc1-checksum.o): New rule.
17939         (cc1): Add checksum support.
17940         (build/genchecksum): New.
17941         (build/genchecksum.o): New.
17942         (dummy-checksum.o): New.
17943         (genobjnames): Add genchecksum.o.
17944         (mostlyclean): Remove *-checksum.c.
17945         (gnucompare): Add libgcc to list of directories checked.
17946         Make comparison problems in libgcc/ and with checksum files only
17947         be warnings.
17948         * doc/invoke.texi (Precompiled Headers): Remove caution.
17949         Document that it must be the exact same binary.  Add a few
17950         known-safe flags to the list.
17951
17952         * rs6000/predicates.md (fix_trunc_dest_operand): New.
17953         * rs6000/rs6000.md (fix_truncdfsi2): Use fix_trunc_dest_operand.
17954         Check that a memory operand is valid before trying to use it.
17955         
17956         * tree-cfg.c (pass_remove_useless): This pass works on trees.
17957
17958 2005-05-18  Richard Guenther  <rguenth@gcc.gnu.org>
17959
17960         * tree.c (build1_stat): Don't try to handle two-operand
17961         tree codes.
17962
17963 2005-05-18  Richard Sandiford  <rsandifo@redhat.com>
17964
17965         * config.gcc (sh*-*-*): Define SUPPORT_* macros to 1.
17966         * config/sh/sh.h: Update mask names throughout.
17967         (target_flags, ISIZE_BIT, DALIGN_BIT, SH1_BIT, SH2_BIT, SH3_BIT)
17968         (SH_E_BIT, HARD_SH4_BIT, FPU_SINGLE_BIT, SH4_BIT, SH4A_BIT, FMOVD_BIT)
17969         (SH5_BIT, SPACE_BIT, BIGTABLE_BIT, RELAX_BIT, USERMODE_BIT)
17970         (HITACHI_BIT, NOMACSAVE_BIT, PREFERGOT_BIT, PADSTRUCT_BIT)
17971         (LITTLE_ENDIAN_BIT, IEEE_BIT, SAVE_ALL_TR_BIT, HARD_SH2A_BIT)
17972         (HARD_SH2A_DOUBLE_BIT, INDEXED_ADDRESS_BIT, PT_FIXED_BIT)
17973         (INVALID_SYMBOLS_BIT, ADJUST_UNROLL_BIT, TARGET_DUMPISIZE)
17974         (TARGET_ALIGN_DOUBLE, TARGET_SH1, TARGET_SH2, TARGET_SH3)
17975         (TARGET_HARD_SH4, TARGET_FPU_SINGLE, TARGET_SH5, TARGET_FMOVD)
17976         (TARGET_IEEE, TARGET_SMALLCODE, TARGET_BIGTABLE, TARGET_RELAX)
17977         (TARGET_HITACHI, TARGET_NOMACSAVE, TARGET_PADSTRUCT)
17978         (TARGET_LITTLE_ENDIAN, TARGET_USERMODE, TARGET_PREFERGOT)
17979         (TARGET_SAVE_ALL_TARGET_REGS, TARGET_ALLOW_INDEXED_ADDRESS)
17980         (TARGET_PT_FIXED, TARGET_INVALID_SYMBOLS, TARGET_ADJUST_UNROLL)
17981         (TARGET_SWITCH_SH1, TARGET_SWITCH_SH2, TARGET_SWITCH_SH2E)
17982         (TARGET_SWITCH_SH2A, TARGET_SWITCH_SH2A_SINGLE_ONLY)
17983         (TARGET_SWITCH_SH2A_SINGLE, TARGET_SWITCH_SH2A_NOFPU)
17984         (TARGET_SWITCH_SH3, TARGET_SWITCH_SH3E, TARGET_SWITCH_SH4_SINGLE_ONLY)
17985         (TARGET_SWITCH_SH4_SINGLE, TARGET_SWITCH_SH4_NOFPU, TARGET_SWITCH_SH4)
17986         (TARGET_SWITCH_SH4A, TARGET_SWITCH_SH4A_SINGLE_ONLY)
17987         (TARGET_SWITCH_SH4A_SINGLE, TARGET_SWITCH_SH4A_NOFPU)
17988         (TARGET_SWITCH_SH4AL, TARGET_SWITCH_SH5_64MEDIA)
17989         (TARGET_SWITCH_SH5_64MEDIA_NOFPU, TARGET_SWITCHES_SH5_32MEDIA)
17990         (TARGET_SWITCHES_SH5_32MEDIA_NOFPU, TARGET_SWITCH_SH5_32_ANY_EXTRA)
17991         (TARGET_SWITCH_SH5_MEDIA_ANY_EXTRA, TARGET_SWITCHES)
17992         (SUBTARGET_SWITCHES): Delete.
17993         (TARGET_SH2E, TARGET_SH2A, TARGET_SH2A_SINGLE, TARGET_SH2A_DOUBLE)
17994         (TARGET_SH3E, TARGET_CACHE32, TARGET_SUPERSCALAR, TARGET_HARVARD)
17995         (TARGET_FPU_DOUBLE, TARGET_SH4A_ARCH, TARGET_SHMEDIA32)
17996         (TARGET_SHMEDIA64): Redefine using other TARGET_* macros.
17997         (TARGET_SH4): Undefine options.h definition and check MASK_SH1 as well.
17998         (SUPPORT_SH1, SUPPORT_SH2E, SUPPORT_SH4, SUPPORT_SH4_SINGLE)
17999         (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Make numeric.
18000         (SUPPORT_SH2): Define to 1 if SUPPORT_SH1.
18001         (SUPPORT_SH3): Likewise SUPPORT_SH2.
18002         (SUPPORT_SH4_NOFPU): Likewise SUPPORT_SH3.
18003         (SUPPORT_SH4A_NOFPU, SUPPORT_SH4AL, SUPPORT_SH2A_NOFPU): Likewise
18004         SUPPORT_SH4_NOFPU.
18005         (SUPPORT_SH3E): Likewise SUPPORT_SH2E.
18006         (SUPPORT_SH4_SINGLE_ONLY, SUPPORT_SH4A_SINGLE_ONLY)
18007         (SUPPORT_SH2A_SINGLE_ONLY): Likewise SUPPORT_SH3E.
18008         (SUPPORT_SH4A): Likewise SUPPORT_SH4.
18009         (SUPPORT_SH4A_SINGLE): Likewise SUPPORT_SH4_SINGLE.
18010         (SUPPORT_SH5_32MEDIA): Likewise SUPPORT_SH5_COMPACT.
18011         (SUPPORT_SH5_32MEDIA_NOFPU): Likewise SUPPORT_SH5_COMPACT_NOFPU.
18012         (SUPPORT_ANY_SH5_32MEDIA, SUPPORT_ANY_SH5_64MEDIA)
18013         (SUPPORT_ANY_SH5): New macros.
18014         (TARGET_NONE): Replace with...
18015         (MASK_ARCH): ...this new macro.
18016         * config/sh/elf.h: Update mask names
18017         * config/sh/linux.h: Likewise.
18018         * config/sh/little.h: Likewise.
18019         * config/sh/netbsd-elf.h: Likewise.
18020         * config/sh/symbian-pre.h: Likewise.
18021         * config/sh/sh.c (sh_handle_option): New function.
18022         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
18023         (calc_live_regs): Use MASK_FPU_SINGLE instead of FPU_SINGLE_BIT.
18024         (sh_target_switches, target_switches): Delete.
18025         (sh_pch_valid_p): Check for specific differences in the target_flags
18026         settings.
18027         (sh_init_cumulative_args): Use MASK_HITACHI instead of HITACHI_BIT.
18028         * config/sh/sh.opt: New file.
18029
18030 2005-05-18  Richard Henderson  <rth@redhat.com>
18031
18032         PR target/21632
18033         * config/ia64/ia64.c (ia64_extra_constraint) <'T'>: Use
18034         small_addr_symbolic_operand.
18035
18036 2005-05-18  Jeff Law  <law@redhat.com>
18037
18038         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
18039         propagate an ADDR_EXPR if the definition and use sites are
18040         in different EH regions.
18041
18042 2005-05-18  Ian Lance Taylor  <ian@airs.com>
18043
18044         * read-rtl.c (mode_attr_index): Use obstack_grow0, not
18045         obstack_grow.
18046
18047 2005-05-18  Daniel Berlin  <dberlin@dberlin.org>
18048
18049         * cfgrtl.c (purge_dead_edges): Don't remove fake edges.
18050
18051 2005-05-18  Daniel Berlin  <dberlin@dberlin.org>
18052         
18053         Fix PR tree-optimization/21407
18054
18055         * tree-ssa-operands.c (note_addressable): Change
18056         COMPONENT_REF handling in response to aliasing
18057         discussion.
18058
18059 2005-05-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
18060
18061         * config/sparc/sol2.h (TARGET_DEFAULT): Add back MASK_APP_REGS.
18062         * config/sparc/sol2-64.h (TARGET_DEFAULT): Likewise.
18063         * config/sparc/sp-elf.h (TARGET_DEFAULT): Delete.
18064         * doc/invoke.texi (SPARC options): Document that -mapp-regs is
18065         the default on Solaris too.
18066
18067 2005-05-17  Daniel Berlin  <dberlin@dberlin.org>
18068
18069         * tree-ssa-pre.c (find_or_generate_expression): CALL_EXPR
18070         is okay too.
18071
18072 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
18073
18074         * timevar.def (TV_SCEV_CONST): New timevar.
18075         * tree-optimize.c (init_tree_optimization_passes): Add
18076         pass_scev_cprop.
18077         * tree-pass.h (pass_scev_cprop): Declare.
18078         * tree-scalar-evolution.c (scev_const_prop): New function.
18079         * tree-scalar-evolution.h (scev_const_prop): Declare.
18080         * tree-ssa-loop.c (gate_scev_const_prop, pass_scev_cprop):
18081         New.
18082         * tree-cfg.c (replace_uses_by): Export.
18083         * tree-flow.h (replace_uses_by): Declare.
18084
18085 2005-05-17  Ziemowit Laski  <zlaski@apple.com>
18086             Mike Stump  <mrs@apple.com>
18087
18088         Yet more Objective-C++...
18089
18090         * c-common.h (objc_finish_try_stmt): Add.
18091         (objc_build_synchronized): Add.
18092         (objc_generate_write_barrier): Add.
18093         * stub-objc.c (objc_build_synchronized): Add return value.
18094         (objc_finish_try_stmt): Likewise.
18095         (objc_generate_write_barrier): Add.
18096
18097         * c-common.h (objc_rewrite_function_call): Add.
18098         * c-typeck.c (build_function_call): Allow objc to rewrite
18099         FUNCTION_DECLs.
18100         (build_modify_expr): Allow objc to generate write barriers.
18101         * c.opt (Wassign-intercept): Add.
18102         (Wstrict-selector-match): Add.
18103         (fobjc-call-cxx-cdtors): Add.
18104         (fobjc-direct-dispatch): Add.
18105         (fobjc-gc): Add.
18106         * dbxout.c (get_lang_number): Add Objective-C++ support.
18107         * doc/invoke.texi (-fobjc-call-cxx-cdtors): Likewise.
18108         (-Wstrict-selector-match): Likewise.
18109         (-fobjc-direct-dispatch): Likewise.
18110         (-Wassign-intercept): Likewise.
18111         (Overall Options): Likewise.
18112         * gengtype.c (get_output_file_with_visibility): Likewise.
18113         * stub-objc.c (objc_rewrite_function_call): Add.
18114         * config/darwin.h (ASM_OUTPUT_LABELREF): Improved quoting support.
18115
18116         * c-common.c (flag_objc_exceptions): Remove.
18117         (flag_objc_sjlj_exceptions): Remove.
18118         * c-decl.c (objc_mark_locals_volatile): Don't change decls
18119         that are already ok.
18120         * c-opts.c (c_common_handle_option, case
18121         OPT_fobjc_exceptions): Remove.
18122         (case OPT_fobjc_sjlj_exceptions): Remove
18123         * c.opt (fobjc-call-cxx-cdtors): Have opt create the flag.
18124         (fobjc-exceptions): Likewise.
18125         (fobjc-sjlj-exceptions): Likewise.
18126         * config/rs6000/darwin.h (OFFS_MSGSEND_FAST): Add.
18127         (OFFS_ASSIGNIVAR_FAST): Add.
18128         
18129 2005-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
18130
18131         * config/sparc/sparc.md (movhi): Do not test constness
18132         of operand #1 twice.
18133         (movsi): Likewise.
18134         (movdi): Unconditionally accept zero as second operand
18135         when the first is memory.
18136         (movdi_insn_sp32): Handle above case.
18137         (DImode splitter): Use predicates.
18138         (DImode splitter): Use const_zero_operand predicate.
18139         (movsf_insn): Swap 2 alternatives.
18140
18141 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
18142
18143         * tree-ssa-loop-ivopts.c (find_bivs, find_givs_in_stmt_scev): Apply
18144         expand_simple_operations to bases of the ivs.
18145         (tree_int_cst_sign_bit): Export.
18146         * tree-flow.h (expand_simple_operations): Declare.
18147         * tree-ssa-loop-niter.c (number_of_iterations_cond): Use
18148         tree_int_cst_sign_bit.
18149         (expand_simple_operations): Export.
18150         * tree.h (tree_int_cst_sign_bit): Declare.
18151
18152 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
18153
18154         * tree-cfg.c (tree_can_merge_blocks_p): Allow phi nodes in the
18155         merged block.
18156         (replace_uses_by): New function.
18157         (tree_merge_blocks): Eliminate the phi nodes in the merged block.
18158         * tree-flow.h (fold_stmt_inplace): Declare.
18159         * tree-ssa-ccp.c (fold_stmt_inplace): New function.
18160         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update dominance
18161         info after cfg cleanup.
18162
18163 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
18164
18165         * cfgloop.h (just_once_each_iteration_p): Declaration changed.
18166         * cfgloopanal.c (just_once_each_iteration_p): Make the loop argument
18167         const.
18168
18169 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
18170
18171         * ggc-page.c (ggc_alloc_stat): Record amount of memory allocated.
18172         * ggc-zone.c (ggc_alloc_zone_1): Ditto.
18173         * timevar.c (timevar_ggc_mem_total): New variable.
18174         (GGC_MEM_BOUND): New constant.
18175         (get_time): Record ggc memory status.
18176         (timevar_accumulate): Accumulate amount of ggc memory.
18177         (timevar_print): Print consumption of ggc memory.
18178         * timevar.def (TV_FIND_REFERENCED_VARS, TV_TREE_REDPHI,
18179         TV_TREE_LOOP_BOUNDS, TV_TREE_LOOP_IVCANON, TV_TREE_VECTORIZATION,
18180         TV_TREE_LINEAR_TRANSFORM): Shorten strings to fit in 22 characters.
18181         * timevar.h (struct timevar_time_def): Add ggc_mem field.
18182         (timevar_ggc_mem_total): Declare.
18183
18184 2005-05-17  Kazu Hirata  <kazu@cs.umass.edu>
18185
18186         * tree-into-ssa.c (update_ssa): Clean up by shortening the
18187         live range of DFS.
18188
18189 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
18190
18191         * config/cris/cris.md (ncond, ocode, rcond): Remove separate
18192         define_code_attr.
18193         ("b<ncond:code>", "b<ocond:code>", "b<rcond:code>")
18194         ("*b<ncond:code>_reversed", "*b<ocond:code>_reversed")
18195         ("*b<rcond:code>_reversed", "s<ncond:code>", "s<rcond:code>")
18196         ("s<ocond:code>"): Rename from respectively "b<ncond>",
18197         "b<ocond>", "b<rcond>", ("*b<ncond>_reversed",
18198         "*b<ocond>_reversed", "*b<rcond>_reversed", "s<ncond>",
18199         "s<rcond>" and "s<ocond>".
18200         ("b<ocond:code>", "*b<ocond:code>_reversed")
18201         ("*b<rcond:code>_reversed"): Remove extraneous backslashes in
18202         output statement section.
18203
18204 2005-05-17  Roger Sayle  <roger@eyesopen.com>
18205
18206         * c-typeck.c (common_type): Also handle BOOLEAN_TYPEs.
18207
18208 2005-05-17  Steven Bosscher  <stevenb@suse.de>
18209             Stuart Hastings <stuart@apple.com>
18210             Jan Hubicka  <jh@suse.cz>
18211             Dale Johannesen  <dalej@apple.com>
18212
18213         * cgraph.h (cgraph_node): Add 'lowered' state.
18214         (cgraph_lower_function): Declare.
18215         * cgraphunit.c (cgraph_finalize_function): Initialize lowered flag.
18216         (cgraph_lower_function): New function.
18217         (cgraph_create_edges): Deal with lowered function bodies.
18218         (verify_cgraph_node): Likewise.
18219         (cgraph_analyze_function): Do lowering job.
18220         (cgraph_build_static_cdtor): Likewise.
18221         * function.h (struct function): Add saved_eh and saved_cfg.
18222         * integrate.c (copy_decl_for_inlining): Kill LABEL_DECL_UID field.
18223         * tree-cfg.c (fold_cond_expr_cond): Export.
18224         * tree-flow.h (fold_cond_expr_cond): Declare.
18225         * tree-inline.c: Include basic-block, ggc, tree-flow, except.h and
18226         pointer-set.
18227         (struct_inline_data): Kill fnd, first_inlined_fn, ret_label,
18228         in_target_cleanup_p, tree_pruner, tsi; add callee, caller and
18229         callee_cfun, block, eh_region, eh_region_offset.
18230         (inlining_p): New predicate.
18231         (remap_decl): Update for new inline_data; declare newly created inline
18232         vars in low gimple way.
18233         (copy_body_r): Update for new datastructure, simplify some of handling
18234         when we are in gimple; remap LABEL_DECLs for EH; copy TREE_BLOCK;
18235         deal with RESX_EXPRs.
18236         (copy_bb): New.
18237         (copy_edges_for_bb): Likewise.
18238         (remap_decl_1): New.
18239         (copy_cfg_body): New.
18240         (copy_generic_body): Rewrite to work on low gimple.
18241         (copy_body): Turn into simple wrapper around copy_cfg_body.
18242         (setup_one_parameter): Insert new statements into given basic block.
18243         (initialize_initialized_parameters): Likewise, reorganize way things are
18244         gimplified.
18245         (declare_return_variable): Update for new inline data datastructure.
18246         (inline_forbidden_p): Work on low gimple.
18247         (estimate_num_insns): Likewise.
18248         (expand_call_inline): Work on CFG.
18249         (push_cfun, pop_cfun): New functions.
18250         (cfun_stack): New stack.
18251         (add_lexical_block): New function.
18252         (gimple_expand_calls_inline): Work on basic block.
18253         (optimize_inline_calls): Likewise.
18254         (clone_body, save_body, unsave_ewpr_now): Update for new
18255         datastructures.
18256         (declare_inline_vars): Work on block instead of bind_expr.
18257         (inlining_p): New predicate.
18258         * tree-inline.h (push_cfun, pop_cfun): Declare.
18259         * tree-optimize.c: Include except.h
18260         (all_lowering_passes): New variable.
18261         (execute_fixup_cfg, pass_fixup_cfg): New pass.
18262         (init_tree_optimization_passes): Move some to all_lowering_passes.
18263         (tree_lowering_passes): New function.
18264         (tree_rest_of_compilation): Register cfg hooks; save/unsave eh.
18265         * tree-pass.h (tree_lowering_passes): Declare
18266
18267 2005-05-17  Nathan Sidwell  <nathan@codesourcery.com>
18268
18269         * unwind-dw2-fde-darwin.c: Include tsystem.h.
18270
18271 2005-05-17  Jeff Law  <law@redhat.com>
18272
18273         * Makefile.in (tree-ssa-forwprop.o): Depend on langhooks.h.
18274         * tree-ssa-forwprop.c: Include langhooks.h.
18275         (forward_propagate_addr_expr_into_variable_array_index): New.
18276         (forward_propagate_addr_expr): New.
18277         (tree_ssa_forward_propagate_single_use_vars): Loop over all
18278         the statements in the block instead of just the last statement.
18279         Call forward_propagate_addr_expr as needed.
18280         (pass_forwprop): Update the SSA graph after forward propagation is
18281         complete.
18282
18283 2005-05-17  Nathan Sidwell  <nathan@codesourcery.com>
18284
18285         * unwind-dw2-fde-glibc.c (base_from_cb_data,
18286         _Unwind_IteratePhdrCallback): Use gcc_assert and gcc_unreachable as
18287         appropriate.
18288         * unwind-dw2-fde.c (__deregister_frame_info_bases,
18289         base_from_object, fde_split, end_fde_sort): Likewise.
18290         * unwind-dw2.c (_Unwind_GetGR, _Unwind_SetGR, execute_stack_op, 
18291         execute_cfa_program, _Unwind_SetSpColumn, uw_update_context_1,
18292         uw_init_context_1): Likewise.
18293         * unwind.inc (_Unwind_RaiseException_Phase2, _Unwind_Resume,
18294         _Unwind_Resume_or_Rethrow): Likewise.
18295         * unwind-pe.h (__gxx_abort): Do not define.
18296         (size_of_encoded_value, base_of_encoded_value,
18297         read_encoded_value_with_base): Use gcc_unreachable.
18298         * unwind.h (_Unwind_GetTextRelBase): Likewise.
18299
18300 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
18301
18302         * config/arm/lib1funcs.asm (cfi_pop, cfi_push, cfi_start)
18303         (cfi_end): New macros.
18304         (RETLDM): Use cfi_pop.  Expect an eight byte stack frame.
18305         (ARM_LDIV0, THUMB_LDIV0, DIV_FUNC_END): Use CFI macros.  Create
18306         an eight byte stack frame.
18307         (__NR_tkill): Define.
18308         (__div0): Use gettid tkill on GNU/Linux.
18309         (_arm_return): Add CFI.
18310         (Lchange_\register, .Lchange_lr): Create an eight byte stack frame.
18311
18312 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
18313
18314         * configure.ac: Remove spaces around assignment to
18315         gcc_cv_ld_sysroot.
18316         * configure: Regenerated.
18317
18318 2005-05-17  David Edelsohn  <edelsohn@gnu.org>
18319
18320         * config/rs6000/aix.h (TARGET_ALTIVEC_VRSAVE): Delete.
18321         * config/rs6000/rs6000.c (rs6000_explicit_options): Add
18322         aix_struct_ret.
18323         (rs6000_override_options): Do not protect TARGET_ALTIVEC_VRSAVE.
18324         Modify aix_struct_return variable, not target_flags.
18325         (rs6000_handle_option): Do not protect TARGET_ALTIVEC_VRSAVE.
18326         (rs6000_return_in_memory): Test aix_struct_return.
18327         * config/rs6000/rs6000.opt (maix-struct-return): Convert to
18328         independent variable.  Report mxl-compat.
18329
18330 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
18331
18332         * config/bfin/bfin.md (eh_return): Add missing DONE.
18333
18334 2005-05-17  Ian Lance Taylor  <ian@airs.com>
18335
18336         * read-rtl.c (struct macro_traverse_data): Add unknown_mode_attr
18337         field.
18338         (mode_attr_index): Remove check for defined attribute.  Remove
18339         infile parameter.  Change all callers.
18340         (apply_mode_maps): Add unknown parameter.  Change caller.  Always
18341         return after finding attribute.
18342         (apply_macro_to_rtx): Add unknown_mode_attr parameter.  Change
18343         callers.
18344         (apply_macro_traverse): Set mtd->unknown_mode_attr.
18345         (read_rtx): Use mtd.unknown_mode_attr to check for an undefined
18346         attribute used for a mode.
18347
18348 2005-05-17  Paolo Bonzini  <bonzini@gnu.org>
18349
18350         * tree-ssa-math-opts.c: New file.
18351
18352 2005-05-17  Paolo Bonzini  <bonzini@gnu.org>
18353
18354         * Makefile.in: Add tree-ssa-math-opts.c.
18355         * expr.c (expand_expr_real_1) <case RDIV_EXPR>: Never emit as a*(1/b).
18356         * fold-const.c (distribute_real_division): New.
18357         (fold_binary) <case PLUS_EXPR, case MINUS_EXPR>: Use it.
18358         * tree-pass.h (pass_cse_reciprocals): New.
18359         * tree-optimize.c (init_tree_optimization_passes): Run it.
18360         * doc/passes.texi: Document the new pass.
18361
18362 2005-05-17  Richard Guenther  <rguenth@gcc.gnu.org>
18363
18364         PR middle-end/21595
18365         * builtins.c (fold_builtin_constant_p): Handle
18366         &"string cst"[0] as constant.
18367
18368 2005-05-17  Richard Henderson  <rth@redhat.com>
18369
18370         * config/i386/sse.md (mulv16qi3, mulv2di3): New.
18371
18372 2005-05-17  Jakub Jelinek  <jakub@redhat.com>
18373
18374         PR middle-end/21492
18375         * cfgcleanup.c (try_crossjump_to_edge): update_forwarder_flag for
18376         src2 if src2 has been split.
18377
18378         PR tree-optimization/21610
18379         * c-typeck.c (decl_constant_value_for_broken_optimization): If not
18380         returning DECL, call unshare_expr.
18381
18382 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
18383
18384         * config/cris/cris.md: Unquote preparation and output statements.
18385         (BWD, WD, BW): New, mode-macros.
18386         (S, s, m, mm, nbitsm1): New, mode-attrs.
18387         (szext, shift, shiftrt, ncond, ocond, rcond): New, code-macros.
18388         (u, su, shlr, slr, ncond, ocond, rcond, rCC, oCC, roCC): New,
18389         code-attrs.
18390         ("tst<mode>"): Replace "tstqi", "tsthi" and "tstsi".
18391         ("*cmp_ext<mode>"): Replace "*cmp_extsi" and "*cmp_exthi".
18392         ("*cmp_swapext<mode>"): Replace "*cmp_swapextqi" and
18393         "*cmp_swapexthi".
18394         ("cmp<mode>"): Replace "cmphi" and "cmpqi".
18395         ("movdi"): Move misplaced head comment regarding necessity of
18396         movdi from movsi to here.
18397         ("*mov_side<mode>_biap"): Replace "*mov_sideqi_biap" and
18398         "*mov_sidehi_biap".
18399         ("*mov_side<mode>"): Replace "*mov_sideqi" and "*mov_sidehi".
18400         ("*mov_side<mode>_biap_mem", "*mov_sidehi_biap_mem"): Replace
18401         "*mov_sideqi_biap_mem".
18402         ("*mov_side<mode>_mem"): Replace "*mov_sideqi_mem" and
18403         "*mov_sidehi_mem".
18404         ("*clear_side<mode>_biap"): Replace "*clear_sidesi_biap",
18405         "*clear_sidehi_biap" and "*clear_sideqi_biap".
18406         ("*clear_side<mode>"): Replace "*clear_sidesi", "*clear_sidehi"
18407         and "*clear_sideqi".
18408         ("*ext_side<mode>si_biap"): Replace "*ext_sideqisi_biap" and
18409         "*ext_sidehisi_biap".
18410         ("*ext_side<mode>si"): Replace "*ext_sideqisi" and
18411         "*ext_sidehisi".
18412         ("reload_in<mode>"): Replace "reload_inhi" and "reload_inqi".
18413         ("reload_out<mode>"): Replace "reload_outhi" and "reload_outqi".
18414         ("extend<mode>di2"): Replace "extendhidi2" and "extendqidi2".
18415         ("extend<mode>si2"): Replace "extendhisi2" and "extendqisi2".
18416         ("zero_extend<mode>si2"): Replace "zero_extendhisi2" and
18417         "zero_extendqisi2".
18418         ("*op_side<mode>_biap"): Replace "*op_sideqi_biap",
18419         "*op_sidehi_biap" and "*op_sidesi_biap".
18420         ("*op_side<mode>"): Replace "*op_sideqi", "*op_sidehi" and
18421         "*op_sidesi".
18422         ("*op_swap_side<mode>_biap"): Replace "*op_swap_sideqi_biap",
18423         "*op_swap_sidehi_biap" and "*op_swap_sidesi_biap".
18424         ("*op_swap_side<mode>"): Replace "*op_swap_sideqi",
18425         "*op_swap_sidehi" and "*op_swap_sidesi".
18426         ("sub<mode>3"): Replace "subhi3" and "subqi3", correcting a typo
18427         in the N alternative of "subqi3".
18428         ("*extop<mode>si_side_biap"): Replace "*extopqisi_side_biap" and
18429         "*extophisi_side_biap".
18430         ("*extop<mode>si_side"): Replace "*extopqisi_side" and
18431         "*extophisi_side".
18432         ("*extop<mode>si_swap_side_biap"): Replace
18433         "*extopqisi_swap_side_biap" and "*extophisi_swap_side_biap".
18434         ("*extop<mode>si_swap_side"): Replace "*extopqisi_swap_side" and
18435         "*extophisi_swap_side".
18436         ("*extop<mode>si"): Replace "*extopqisi" and "*extophisi".
18437         ("*extop<mode>si_swap"): Replace "*extopqisi_swap" and
18438         "*extophisi_swap".
18439         ("<u>mul<s><mode>3"): Replace "umulhisi3", "umulqihi3",
18440         "mulqihi3", "mulhisi3" and "mulhisi3".
18441         ("<u>mulsidi3"): Replace "mulsidi3" and "umulsidi3".
18442         ("<su>mulsi3_highpart"): Replace "smulsi3_highpart" and
18443         "umulsi3_highpart".
18444         ("xor<mode>3"): Replace "xorhi3" and "xorqi3".
18445         ("neg<mode>2"): Replace "negsi2", "neghi2" and "negqi2".
18446         ("one_cmpl<mode>2"): Replace "one_cmplhi2" and "one_cmplqi2".
18447         ("<shlr>si3"): Replace "ashrsi3", "lshrsi3" and "ashlsi3".
18448         ("ashr<mode>3"): Replace "ashrhi3" and "ashrqi3".
18449         ("*expanded_<shlr><mode>"): Replace "*expanded_ashrhi",
18450         "*expanded_ashrqi", "*expanded_lshrhi" and "*expanded_lshrqi".
18451         ("*<shlr><mode>_lowpart"): Replace "*ashrhi_lowpart",
18452         "*ashrqi_lowpart", "*lshrhi_lowpart" and "*lshrqi_lowpart".
18453         ("lshr<mode>3"): Replace "lshrhi3" and "lshrqi3".
18454         ("ashl<mode>3"): Replace "ashlhi3" and "ashlqi3".
18455         ("*ashl<mode>_lowpart"): Replace "*ashlqi_lowpart" and
18456         "*ashlhi_lowpart".
18457         ("abs<mode>2"): Replace "abshi2" and "absqi2".
18458         ("b<ncond>"): Replace "beq", "bne", "bgtu", "bltu", "bgeu" and
18459         "bleu".
18460         ("b<ocond>"): Replace "bgt" and "ble".
18461         ("b<rcond>"): Replace "blt" and "bge".
18462         ("*b<ncond>_reversed"): Replace "*beq_reversed", "*bne_reversed",
18463         "*bgtu_reversed", "*bltu_reversed", "*bgeu_reversed" and
18464         "*bleu_reversed".
18465         ("*b<ocond>_reversed"): Replace "*bgt_reversed" and
18466         "*ble_reversed".
18467         ("*b<rcond>_reversed"): Replace "*blt_reversed" and
18468         "*blt_reversed".
18469         ("s<ncond>"): Replace "sgeu", "sltu", "seq", "sgtu", "sleu" and
18470         "sne".
18471         ("s<rcond>"): Replace "sge" and "slt".
18472         ("s<ocond>"): Replace "sgt" and "sle".
18473         ("clear.[bwd] [rx=rx+rz.S2]"): Replace split clear.d
18474         [rx=rx+rz.S2], clear.w [rx=rx+rz.S2] and clear.b [rx=rx+rz.S2].
18475         ("clear.[bwd] [rx=rx+i]"): Replace splits clear.d [rx=rx+i],
18476         clear.w [rx=rx+i] and clear.b [rx=rx+i].
18477
18478 2005-05-17  Jakub Jelinek  <jakub@redhat.com>
18479
18480         * varasm.c (struct constant_descriptor_tree): Add hash field.
18481         (const_desc_hash): Just return hash field.
18482         (const_desc_eq): If hash values are different, return 0 immediately.
18483         (output_constant_def): Compute hash field of temporary key, use
18484         htab_find_slot_with_hash instead of htab_find_slot.  Set hash in
18485         newly built constant descriptor.
18486         (lookup_constant_def): Compute hash field of temporary key, use
18487         htab_find_with_hash instead of htab_find.
18488
18489 2005-05-16  Richard Henderson  <rth@redhat.com>
18490
18491         * config/i386/sse.md (mulv4si3): New.
18492
18493 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
18494
18495         * config/cris/cris.h (EXTRA_CONSTRAINT_T): Remove FIXME and
18496         tests for noncanonical versions of reg+constant and
18497         reg+reg*{1,2,4}.
18498
18499 2005-05-16  Richard Henderson  <rth@redhat.com>
18500             Steven Bosscher <stevenb@suse.de>
18501
18502         PR tree-opt/21399
18503         * tree-eh.c (maybe_clean_or_replace_eh_stmt): Rename from 
18504         maybe_clean_eh_stmt; take old stmt parameter.  Update EH
18505         region data structure to match replacement.
18506         * tree-flow.h: Update to match.
18507         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
18508         * tree-ssa-dom.c (optimize_stmt): Likewise.
18509         * tree-ssa-pre.c (eliminate): Likewise.
18510         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
18511
18512 2005-05-16  Caroline Tice  <ctice@apple.com>
18513
18514         * bb-reorder.c (verify_hot_cold_block_grouping):  Replace
18515         internal_error with gcc_assert.
18516         * dwarf2out.c (dwarf2out_switch_text_section):  Likewise.
18517         * function.h (struct function): Remove space between "*" and
18518         struct field names.
18519         * varasm.c (initialize_cold_section_name):   Add gcc_assert;
18520         modify to use alloca.
18521         (unlikely_text_section): Add check for flag_function_sections.
18522         (assemble_start_function):  Move call to resolve_section, so it
18523         comes before first call to unlikely_text_section.
18524         (assemble_end_function):  Add test and call to function_section
18525         if appropriate.
18526         
18527 2005-05-16  Roger Sayle  <roger@eyesopen.com>
18528
18529         * c-common.c (c_common_truthvalue_conversion): Use fold_build2
18530         instead of build_binary_op when performing code transformations
18531         to avoid error messages about constructs not it the user's code.
18532
18533 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
18534
18535         * tree-ssa-pre.c: Fix a comment typo.
18536
18537 2005-05-16  Richard Henderson  <rth@redhat.com>
18538
18539         PR target/21556
18540         * config/ia64/ia64.md (load_dtpmod, load_ltoff_dtpmod, load_dtprel,
18541         load_dtprel64, load_dtprel22, load_dtprel_gd, load_ltoff_dtprel,
18542         add_dtprel, add_dtprel14, add_dtprel22, load_tprel, load_tprel64,
18543         load_tprel22, load_tprel_ie, load_ltoff_tprel, add_tprel, add_tprel14,
18544         add_tprel22): Remove mode from symbolic operand.
18545
18546 2005-05-16  Richard Sandiford  <rsandifo@redhat.com>
18547
18548         * optc-gen.awk: Include intl.h after the externally-provided files.
18549
18550 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
18551
18552         * tree-ssa-copy.c (copy_prop_visit_assignment): Clean up by
18553         folding a COND_EXPR_COND in a nondestructive manner.
18554
18555 2005-05-16  Fariborz Jahanian <fjahanian@apple.com>
18556
18557         * config/rs6000/altivec.md (altivec_vmrghb, altivec_vmrghh, 
18558         altivec_vmrghw, altivec_vmrglb, altivec_vmrglh, altivec_vmrglw):
18559         New values for vec_select definitions and bitmask for element
18560         selection.
18561          
18562 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
18563
18564         * dwarf2out.c (used_rtx_varray): Rename to used_rtx_array.
18565         Change the type to VEC(rtx,gc)*.
18566         (mem_loc_descriptor, add_const_value_attributes,
18567         dwarf2out_init): Adjust uses of used_rtx_varray.
18568
18569         * tree-data-ref.c (compute_all_dependences): Change the type
18570         of dependence_relations to VEC(ddr_p,heap)**.
18571         (compute_data_dependences_for_loop): Change the type of
18572         allrelations to VEC(ddr_p,heap)*.
18573
18574 2005-05-16  Richard Sandiford  <rsandifo@redhat.com>
18575
18576         * Makefile.in (options.c): Tell optc-gen.awk to include config.h,
18577         system.h, coretypes.h and tm.h.
18578         (options.o): Update dependencies accordingly.
18579         * optc-gen.awk: Allow header_name to be a list of filenames.
18580         Handle the "Condition" flag.
18581         * opts.h (CL_DISABLED): New flag.
18582         * opts.c (handle_option): Print an error for CL_DISABLED options.
18583         * doc/options.texi: Document the "Condition" option flag.
18584
18585 2005-05-16  Paolo Bonzini  <bonzini@gnu.org>
18586
18587         * tree-inline.c (estimate_num_insns_1): Handle VEC_COND_EXPR.
18588
18589 2005-05-15  Roger Sayle  <roger@eyesopen.com>
18590
18591         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Only
18592         check for TREE_OVERFLOW on INTEGER_CST trees.
18593         * tree-chrec.c (chrec_convert): Only clear TREE_OVERFLOW on
18594         CONSTANT_CLASS_P tree nodes.
18595
18596 2005-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18597
18598         PR target/21551
18599         * config/ia64/ia64.c (ia64_expand_move): Don't add addend twice.
18600
18601 2005-05-15  Daniel Berlin  <dberlin@dberlin.org>
18602             
18603         Fix PR tree-optimization/21576
18604         
18605         * tree-ssa-pre.c (expression_node_pool): New pool.
18606         (comparison_node_pool): Ditto.
18607         (list_node_pool): Ditto.
18608         (pool_copy_list): New function.
18609         (phi_translate): Handle CALL_EXPR.
18610         (valid_in_set): Ditto.
18611         (create_expression_by_pieces): Ditto.
18612         (insert_into_preds_of_block): Ditto.
18613         (insert_aux): Ditto.
18614         (compute_avail): Ditto.
18615         (create_value_expr_from): Handle TREE_LIST and CALL_EXPR.
18616         (can_value_number_call): New function.
18617         (find_leader): Update comment.
18618         (init_pre): Create new pools.
18619         (fini_pre): Free new pools.
18620         (pass_pre): Add TODO_update_ssa for the future when we are going
18621         to need vops.
18622         * tree-vn.c (expressions_equal_p): Handle TREE_LIST.
18623         (set_value_handle): Ditto.
18624         (get_value_handle): Ditto.
18625
18626 2005-05-15  Richard Earnshaw  <richard.earnshaw@arm.com>
18627
18628         * arm.c (thumb_unexpanded_epilogue): Delete unused variable 'mode'.
18629
18630 2005-05-15  Andreas Jaeger  <aj@suse.de>
18631
18632         * gcc.c (pfatal_pexecute): Remove unused local function.
18633
18634 2005-05-15  Richard Sandiford  <rsandifo@redhat.com>
18635
18636         * optc-gen.awk: Remove excess indentation.
18637         * opth-gen.awk: Likewise.
18638
18639 2005-05-14  Kaz Kojima  <kkojima@gcc.gnu.org>
18640
18641         * config/sh/sh.c (sh_output_mi_thunk): Check cfun->cfg instead
18642         of basic_block_info.  Call init_flow and find_basic_blocks
18643         before dbr_schedule if needed.
18644
18645 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
18646
18647         * tree-optimize.c (init_tree_optimization_passes): Move
18648         pass_cd_dce in place of the last pass_dce.
18649
18650         PR tree-optimization/21563
18651         * tree-vrp.c (compare_value): Return boolean_false_node when
18652         SSA_NAME in "if (SSA_NAME == CST)" is strictly smaller than or
18653         strictly larger than CST.
18654
18655 2005-05-14  Nathan Sidwell  <nathan@codesourcery.com>
18656             Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18657
18658         * config/vax/vax.c: (print_operand_address) Use gcc_unreachable() and
18659         gcc_assert().
18660         (rev_cond_name) Likewise.
18661         (vax_float_literal) Likewise.
18662         * config/vax/vax.md: Likewise.
18663
18664 2005-05-14  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18665
18666         * config/vax/vax.md: define_constant VAXens AP, FP, SP and PC
18667         registers and use them (specifically the stack pointer).
18668         * config/vax/vax.h: Use above defines right here.
18669
18670         * config/vax/vax.c: (override_options) Remove 'register' keyword.
18671         (split_quadword_operands) Likewise. (rev_cond_name) Likewise.
18672         (vax_float_literal) Likewise. (vax_rtx_costs) Remove trailing
18673         whitespace.
18674         * config/vax/vax.h: Remove 'register' keyword. Misc. whitespace fixes,
18675         mostly removal of trailing spaces...
18676         * config/vax/vax-modes.def: Remove trailing whitespace.
18677
18678         * config/vax/elf.h: Update whitespace.
18679
18680 2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>
18681
18682         Revert
18683         2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
18684         * fold-const.c (fold_indirect_ref_1): Avoid removing
18685         NOP_EXPRs with type qualifiers like const.
18686
18687 2005-05-14  Jan Hubicka  <jh@suse.cz>
18688
18689         Patch by Richard Henderson:
18690         * tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
18691         Handle RESX expressions properly.
18692
18693         * tree-eh.c (record_stmt_eh_region): Use add_stmt_to_eh_region.
18694         (add_stmt_to_eh_region_fn): Nest into CALL_EXPR.
18695         (remove_stmt_from_eh_region_fn): Likewise.
18696
18697         * tree-cfg.c (execute_warn_function_return): Break out noreturn
18698         warning too..
18699         (execute_warn_function_noreturn): ... here.
18700         (pass_warn_function_noreturn): New pass.
18701         * tree-pass.h (pass_warn_function_noreturn): Declare
18702         * tree-optimize.c (init_tree_optimization_passes): Move return
18703         warnings early and add noreturn warnings at place of previous
18704         return warnings.
18705
18706 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
18707
18708         * tree-ssa-live.c (tpa_init, tpa_delete, tpa_compact,
18709         root_var_init, type_var_init): Use VEC instead of VARRAY.
18710         * tree-ssa-live.h (tree_partition_associator_d): Change the
18711         type of trees to VEC(tree,heap)*.
18712         (tpa_tree): Use VEC instead of VARRAY.
18713
18714 2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>
18715
18716         * fold-const.c (div_if_zero_remainder): New function.
18717         (try_move_mult_to_index): Use it.
18718
18719 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
18720
18721         * tree-eh.c (leh_tf_state): Change the type of dest_array to
18722         VEC(tree,heap)*.
18723         (maybe_record_in_goto_queue, lower_try_finally_onedest,
18724         lower_try_finally_copy, lower_try_finally_switch,
18725         lower_try_finally): Use VEC instead of VARRAY.
18726
18727 2005-05-14  Hans-Peter Nilsson  <hp@axis.com>
18728
18729         * config/cris/cris.h (Node: Register Classes): Remove obsoleted
18730         comment regarding defined register classes.
18731         (LEGITIMIZE_RELOAD_ADDRESS): Do not define.
18732
18733 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
18734
18735         * tree-optimize.c (init_tree_optimization_passes): Move
18736         pass_merge_phi before the first pass_dominator.
18737
18738 2005-05-13  Richard Earnshaw  <richard.earnshaw@arm.com>
18739
18740         * arm.h (INITIALIZE_TRAMPOLINE): Make the call to __clear_cache
18741         unconditional.
18742
18743 2005-05-13  Josh Conner  <jconner@apple.com>
18744
18745         * config/arm/arm.c (arm_size_return_regs): New.
18746         (thumb_unexpanded_epilogue): replace in-line calculation
18747         of return registers with call to arm_size_return_regs.
18748         (use_return_insn): Include test of which registers are
18749         being used to hold return values, to accommodate
18750         vector return values.
18751
18752 2005-05-11  Aldy Hernandez  <aldyh@redhat.com>
18753
18754         * config/rs6000/sysv4.opt (mlittle): Handle.
18755
18756         * config/rs6000/rs6000.c (rs6000_handle_option): Set
18757         target_flags_explicit when appropriate.
18758
18759 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
18760
18761         PR middle-end/20714:
18762         * optabs.c (no_conflict_data): New struct.
18763         (no_conflict_move_test): New function.
18764         (emit_no_conflict_block): Use it.
18765
18766 2005-05-13  Adam Nemet  <anemet@lnxw.com>
18767
18768         * doc/invoke.texi (Debugging Options): Option
18769         -fdump-translation-unit only works with C++ now.
18770
18771 2005-05-13  Hans-Peter Nilsson  <hp@axis.com>
18772
18773         Replace calls to abort in CRIS port.
18774         * config/cris/cris.h (CRIS_ASSERT): New macro.
18775         * config/cris/cris.md ("*movsi_internal"): Use CRIS_ASSERT and
18776         internal_error instead of abort.
18777         ("movsi"): Ditto.  Unquote preparation statement section.
18778         ("call", "call_value"): Ditto, but use gcc_assert where
18779         appropriate.  Tweak comments.
18780         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Define in terms of
18781         CRIS_ASSERT.
18782         (cris_op_str): Call internal_error, not abort.
18783         (cris_print_operand): Tweak "abort" reference to "die" in comment.
18784         (cris_initial_elimination_offset): Call gcc_unreachable, not abort.
18785         (cris_notice_update_cc): Call internal_error, not abort.
18786         (cris_expand_return, cris_expand_prologue, cris_gen_movem_load)
18787         (cris_emit_movem_store, cris_asm_output_symbol_ref)
18788         (cris_output_addr_const_extra): Use CRIS_ASSERT, don't call abort.
18789         (cris_symbol, cris_got_symbol): Use CRIS_ASSERT instead of
18790         ENABLE_CHECKING-guarded abort call.
18791         (cris_split_movdx): Use CRIS_ASSERT instead of abort with test.
18792         Use internal_error at end of test-chain.
18793
18794 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
18795
18796         PR rtl-optimization/20769:
18797         * bt-load.c (compute_defs_uses_and_gen): Check for the blockage
18798         pattern emitted by expand_nl_goto_receiver.
18799
18800         PR middle-end/20793:
18801         * integrate.c (allocate_initial_values): Update register liveness
18802         information.
18803
18804 2005-05-13  Josh Conner  <jconner@apple.com>
18805
18806         * arm.c (arm_return_in_memory): Add handling for vector return types.
18807
18808 2005-05-13  David Ung  <davidu@mips.com>
18809
18810         * config/mips/mips.h (processor_type): Add new PROCESSOR_4KP
18811         name.
18812         * config/mips/mips.c: Add 4km alias.
18813         * config/mips/mips.md: Add 4kp to cpu attrib and include 4k.md.
18814         * config/mips/4k.md: New file, add 4Kc/4Kp DFA pipeline
18815         description.
18816
18817 2005-05-13  Jan Hubicka  <jh@suse.cz>
18818
18819         * c-decl.c (finish_function): Suppress "control reaches end of
18820         non-void function" when "no return statement in function
18821         returning non-void" is issued.
18822
18823         * tree-inline.c (copy_body_r): Simplify substituted ADDR_EXPRs.
18824         * tree-optimize.c (pass_gimple): Kill.
18825         (init_tree_optimization_passes): Kill pass_gimple.
18826         * tree-cfg.c (build_tree_cfg): Do verify_stmts to check that we are gimple.
18827         * tree-dump.c (dump_files): Rename .generic to .gimple.*
18828
18829 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
18830
18831         PR rtl-optimization/20756:
18832         * basic-block.h (PROP_DEAD_INSN): Define.
18833         * flow.c (propagate_one_insn): Set during mark_set_regs call
18834         for a dead insn.
18835         (mark_set_1): Emit a clobber when we are about to delete a dead insn
18836         that kills a live register.
18837
18838 2005-05-13  Adrian Straetling  <straetling@de.ibm.com>
18839
18840         * config/s390/s390.md: ("DBL"): New mode attribute.
18841         ("*movmem_long_64", "*movmem_long_31"): Merge to "*movmem_long".
18842         ("*clrmem_long_64", "*clrmem_long_31"): Merge to "*clrmem_long".
18843         ("*cmpmem_long_64", "*cmpmem_long_31"): Merge to "*cmpmem_long".
18844
18845 2005-05-13  Richard Guenther  <rguenth@gcc.gnu.org>
18846
18847         * c-format.c (check_format_arg): Handle string literals of
18848         the form &"string"[offset].
18849
18850         * g++.dg/warn/format4.C: New testcase.
18851
18852 2005-05-13  Kazu Hirata  <kazu@cs.umass.edu>
18853
18854         * config/mips/3000.md, config/mips/4000.md,
18855         config/mips/4100.md, config/mips/4300.md, config/mips/4600.md,
18856         config/mips/5000.md, config/mips/7000.md, config/mips/9000.md,
18857         config/mips/generic.md, config/pdp11/pdp11.md,
18858         config/sh/crt1.asm, config/sh/lib1funcs.asm,
18859         config/sh/sh-modes.def, config/sh/sh-protos.h,
18860         config/sh/shmedia.md, config/sh/ushmedia.h: Update copyright.
18861
18862 2005-05-13  Richard Henderson  <rth@redhat.com>
18863
18864         * function.c (instantiate_virtual_regs_in_insn): Do not simplify
18865         addition to move unless dest is a register.  Do not skip
18866         instantiation in dest on addition simplification.
18867
18868 2005-05-13  Hans-Peter Nilsson  <hp@axis.com>
18869
18870         * config/cris/cris.c (cris_print_operand) <case 'H'; case
18871         CONST_INT>: Use operand_subword and HOST_WIDE_INT_PRINT_DEC for
18872         output; don't have special case for HOST_BITS_PER_WIDE_INT == 32.
18873
18874 2005-05-13  Jan Hubicka  <jh@suse.cz>
18875
18876         * basic-block.h (FOR_ALL_BB_FN): New macro.
18877         (init_flow): Initialize cfg structure.
18878         * function.c (allocate_struct_function): Do not initialize cfg structure.
18879         * tree-cfg.c (init_empty_tree_cfg): Break out from ...
18880         (build_tree_cfg): ... here.
18881         * tree-flow.h (init_empty_tree_cfg): Declare.
18882
18883 2005-05-12  Steven Bosscher <stevenb@suse.de>
18884
18885         Fix PR tree-optimization/21520
18886         * tree-ssa-pre.c (phi_translate): Use fully_constant_expression
18887         to attempt to fold constants.
18888
18889 2005-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
18890
18891         * config/sh/sh.c: Declare the prototype of sh_adjust_unroll_max
18892         only when TARGET_ADJUST_UNROLL_MAX is defined.
18893         (general_movsrc_operand): Use the C style comment.
18894         (ua_offset): Use prototype.
18895
18896 2005-05-12  Zdenek Dvorak  <dvorakz@suse.cz>
18897
18898         * tree-ssa-loop-im.c (struct mem_ref): Add field "next".
18899         (struct hmr_data, hoist_memory_reference, memref_del,
18900         struct fmrv_data): Removed.
18901         (hoist_memory_references, free_mem_ref, free_mem_refs): New functions.
18902         (gather_mem_refs, gather_mem_refs_stmt): Add new references to the
18903         list.
18904         (find_more_ref_vops): Traverse the list of memory references.
18905         (determine_lsm_loop): Work with the list of memory references instead
18906         of traversing the hashtable.
18907
18908 2005-05-12  Steven Bosscher  <stevenb@suse.de>
18909             Stuart Hastings <stuart@apple.com>
18910             Jan Hubicka  <jh@suse.cz>
18911
18912         * except.c  (duplicate_eh_region_1, duplicate_eh_region_2,
18913         duplicate_eh_regions): New functions, based on old
18914         implementation removed with RTL inliner.
18915         (reachable_next_level): Modify behaviour pre-inline.
18916         * except.h (duplicate_eh_regions_map, duplicate_eh_regions):
18917         Declare.
18918         * function.h (struct function): Add after_inlining flag.
18919         * tree-optimize.c (tree_rest_of_compilation): Set it.
18920         * tree-eh.c (add_stmt_to_eh_region_fn): Initialize hashtable
18921         when needed.
18922         * tree-cfg.c (label_to_block_fn): Deal with cases where
18923         label was never insterted into code.
18924
18925 2005-05-12  Zack Weinberg  <zack@codesourcery.com>
18926
18927         * doc/cpp.texi: Document that #sccs is a synonym for #ident.
18928
18929 2005-05-12  Daniel Berlin  <dberlin@dberlin.org>
18930
18931         Fix PR tree-optimization/21532
18932         * tree-ssa-pre.c (create_expression_by_pieces): stmt
18933         needs to go onto the inserted_exprs list.
18934
18935 2005-05-12  Ian Lance Taylor  <ian@airs.com>
18936
18937         * c-common.h (statement_code_p): Don't declare.
18938         (STATEMENT_CODE_P): Don't define.
18939         (INIT_STATEMENT_CODES): Don't define.
18940         * c-common.c (statement_code_p): Don't define.
18941
18942 2005-05-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
18943
18944         * config/sparc/sparc.h: Remove dead code.
18945         * config/sparc/sparc.c (sparc_compute_frame_size): Use
18946         FIRST_PARM_OFFSET for the size of the register window area.
18947         (emit_save_regs): Rename into emit_save_or_restore_regs.
18948         Add 'action' parameter.  Use 4095 as upper bound for the offset.
18949         Pass 'action' to save_or_restore_regs.
18950         (emit_restore_regs): Delete.
18951         (sparc_expand_prologue): Call emit_save_or_restore_regs.
18952         (sparc_expand_epilogue): Likewise.
18953         * config/sparc/sparc.md (mode macro P): Move.
18954         (movdi_insn_sp32_v9, movdi_insn_sp32): Swap.
18955         (mov<V32:mode> expander): Move to the top of the V32 section.
18956         (movdf_insn_sp32_v9_no_fpu, movdf_insn_sp32_v9): Swap.
18957         (movtf_insn_sp64_hq, movtf_insn_sp64): Swap.
18958         (sibcall_epilogue): Move.
18959
18960 2005-05-12  Richard Earnshaw  <richard.earnshaw@arm.com>
18961
18962         PR target/21501
18963         * arm.c (arm_gen_constant): Sign-extend intermediate values when
18964         synthesizing a constant of the difference of two immediates.
18965
18966 2005-05-12  Richard Earnshaw  <richard.earnshaw@arm.com>
18967
18968         * arm/vfp.md (negsf2_vfp): Add alternative using integer registers.
18969         (negdf2_vfp): Likewise.  Convert to define_insn_and_split and split
18970         the alternatives using integer registers into the appropriate
18971         primitives.
18972
18973 2005-05-11 Kenneth Zadeck <zadeck@naturalbridge.com>
18974
18975         * bitmap.c (bitmap_elmt_to_freelist, bitmap_element_allocate,
18976         bitmap_elt_clear_from, bitmap_clear): Changed freelist structure.
18977         * bitmap.h: Fixed comments.
18978
18979 2005-05-11  Richard Henderson  <rth@redhat.com>
18980
18981         PR target/21412
18982         * config/ia64/ia64.c (TARGET_CANNOT_FORCE_CONST_MEM): New.
18983         (ia64_cannot_force_const_mem): New.
18984         (tls_symbolic_operand_type): New.
18985         (ia64_legitimate_constant_p): New.
18986         (ia64_expand_load_address): Return true on success.  Improve
18987         checks for when we should not split.
18988         (ia64_expand_tls_address): New addend operand.  Distribute it
18989         as appropriate to the tls_kind.  Delay referencing gp.
18990         (ia64_expand_move): Split symbolic addend as necessary.  Handle
18991         tls symbols with addends.
18992         * config/ia64/ia64-protos.h: Update.
18993         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): False for r0,
18994         p0, f0, f1, and r13.
18995         (LEGITIMATE_CONSTANT_P): Move to ia64_legitimate_constant_p.
18996         * config/ia64/ia64.md (UNSPEC_DTPMOD): New.
18997         (symbolic_operand splitter): Pass everything through
18998         ia64_expand_load_address and FAIL or DONE as appropriate.
18999         (load_fptr): Only accept after reload.
19000         (load_fptr_internal1, gprel64_offset, load_gprel64, load_symptr_high,
19001         load_symptr_low, load_ltoff_dtpmod,
19002         (load_dtpmod): New.
19003         (load_dtprel): Only accept tls symbols.
19004         (load_dtprel64, load_dtprel22): Likewise.
19005         (load_tprel, load_tprel64, load_tprel22): Likewise.
19006         (load_dtprel_gd, load_ltoff_dtprel, load_tprel_ie): New.
19007         (add_dtprel): Only accept tls symbols.  Canonicalize PLUS.
19008         (add_dtprel14, add_dtprel22): Likewise.
19009         (add_tprel, add_tprel14, add_tprel22): Likewise.
19010         * config/ia64/predicates.md (small_addr_symbolic_operand): New.
19011         (any_offset_symbol_operand, aligned_offset_symbol_operand): New.
19012         (got_symbolic_operand): Check CONST offsets.
19013         (tls_symbolic_operand, ld_tls_symbolic_operand): New.
19014         (ie_tls_symbolic_operand, le_tls_symbolic_operand): New.
19015         (move_operand): Don't handle tls here.  Check CONST offsets.
19016
19017 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
19018
19019         * config/mips/7000.md (rm7_impy_si_mult): Just match imul and imadd.
19020         Remove hilo_operand check.
19021         (rm7_impy_si_mul): Just match imul3.  Remove hilo_operand check.
19022         * config/mips/predicates.md (hilo_operand): Delete.
19023
19024 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
19025
19026         * config/mips/sr71k.md, config/mips/7000.md: Reformat.
19027
19028 2005-05-11  Kazu Hirata  <kazu@cs.umass.edu>
19029
19030         PR tree-optimizer/18472
19031         * tree-if-conv.c (tree_if_convert_stmt,
19032         if_convertible_modify_expr_p): Don't handle GOTO_EXPR.
19033
19034 2005-05-11  Jan Hubicka  <jh@suse.cz>
19035
19036         * Makefile.in (tree-eh.o: Kill gt-tree-eh.h dependency.
19037         (GTFILES): add except.h.
19038         * except.c (eh_status): Add throw_stmt_table.
19039         (set_eh_throw_stmt_table, get_eh_throw_stmt_table): New functions.
19040         * except.h (add_stmt_to_eh_region_fn, remove_stmt_from_eh_region_fn,
19041         lookup_stmt_eh_region_fn): Declare.
19042         (throw_stmt_node): New structure.
19043         (set_eh_throw_stmt_table, get_eh_throw_stmt_table): New.
19044         * gengtype.c (open_base_files): Add except.h to inlines.
19045         * tree-eh.c (throw_stmt_node): Kill.
19046         (record_stmt_eh_region): Update.
19047         (add_stmt_to_eh_region_fn): Break out from ...
19048         (add_stmt_to_eh_region): ... here.
19049         (remove_stmt_from_eh_region_fn): Break out from ...
19050         (remove_stmt_from_eh_region): ... here.
19051         (lookup_stmt_eh_region_fn): Break out from ...
19052         (lookup_stmt_eh_region): ... here.
19053         (honor_protect_cleanup_actions): Use build_resx.
19054         (lower_try_finally_onedest): Likewise.
19055         (lower_try_finally_copy): Likewise.
19056         (lower_try_finally_switch): Likewise.
19057         (lower_eh_constructs): Update eh table construction.
19058         * tree.c (build_resx): New.
19059         * tree.h (build_resx): Declare.
19060
19061 2005-05-11  H.J. Lu  <hongjiu.lu@intel.com>
19062
19063         * libgcov.c (gcov_exit): Set prefix_length to 0 if no relocation
19064         is needed.
19065
19066 2005-05-11  Kazu Hirata  <kazu@cs.umass.edu>
19067
19068         * fold-const.c, libgcov.c: Fix comment typos.
19069
19070         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove
19071         redundant code.
19072
19073 2005-05-11  Daniel Jacobowitz  <dan@codesourcery.com>
19074
19075         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
19076         * config/arm/arm.h (SUBTARGET_FRAME_POINTER_REQUIRED): Provide
19077         default definition.
19078         (FRAME_POINTER_REQUIRED): Use SUBTARGET_FRAME_POINTER_REQUIRED.
19079
19080 2005-05-11  Nathan Sidwell  <nathan@codesourcery.com>
19081
19082         PR bootstrap/21481
19083         * crtstuff.c: Include auto-host.h again, for now.
19084
19085 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
19086
19087         * config/mips/24k.md: Remove trailing whitespace.
19088
19089 2005-05-11  David Ung  <davidu@mips.com>
19090
19091         * config/mips/mips.md (type): Add imul3.
19092         (length, hazard, may_clobber_hilo): Check for imul3.
19093         (mulsi3_mult3, muldi3_mult3, *muls, <su>mulsi3_highpart_mulhi_internal)
19094         (*<su>mulsi3_highpart_neg_mulhi_internal): Set attr to imul3.
19095         * config/mips/24k.md (r24k_int_mul3): Enable this reservation
19096         for a 3 operand mul and its bypasses.
19097         * config/mips/3000.md (r3k_imul): Add imul3 to reservations.
19098         * config/mips/4000.md (r4k_imul): Likewise.
19099         * config/mips/4100.md (r4100_imul_si, r4100_imul_di):  Likewise.
19100         * config/mips/4130.md (vr4130_class, vr4130_mulsi)
19101         (vr4130_muldi): Likewise.
19102         * config/mips/4300.md (r4300_imul_si, r4300_imul_di): Likewise.
19103         * config/mips/4600.md (r4600_imul, r4650_imul): Likewise.
19104         * config/mips/5000.md (r5k_imul_si, r5k_imul_di): Likewise.
19105         * config/mips/5400.md (ir_vr54_imul_si, ir_vr54_imul_di)
19106         (ir_vr54_imadd_si): Likewise.
19107         * config/mips/5500.md (ir_vr55_imul_si, ir_vr55_imul_di):  Likewise.
19108         * config/mips/7000.md (rm7_impy_si_mult, rm7_impy_si_mul)
19109         (rm7_impy_di): Likewise.
19110         * config/mips/9000.md (rm9k_mulsi, rm9k_muldi):  Likewise.
19111         * config/mips/generic.md (generic_imul): Likewise.
19112         * config/mips/sb1.md (ir_sb1_mulsi, ir_sb1_muldi): Likewise.
19113         * config/mips/sr71k.md (ir_sr70_imul_si, ir_sr70_imul_di):  Likewise.
19114
19115 2005-05-11  J"orn Rennecke <joern.rennecke@st.com>
19116
19117         PR middle-end/20371:
19118         * tree.h (record_layout_info_s): New member prev_packed.
19119         * stor-layout.c (update_alignment_for_field): Fix comment about
19120         KNOWN_ALIGN.  For MS bitfields, if we start a new run, make sure
19121         we start it properly aligned.
19122         (place_field): At the beginning of a record, pass 0 as KNOWN_ALIGN
19123         to update_alignment_for_field, and recompute it afterwards using
19124         the alignment of the record.
19125         When a packed bitfield precedes an MS bitfield, don't add padding
19126         at the end of the packed bitfield on behalf of the base type of
19127         the packed bit field.
19128         Don't adjust rli->bitpos at the end
19129         of an MS bitfield run if we already adjusted bitpos/offset for an
19130         alignment as large or larger than the bitfield type size.
19131         Take possible record alignment > BIGGEST_ALIGNMENT into account
19132         when calculating actual_align.
19133         Only put packed buit fields into rli->prev_field if they end up
19134         suitably aligned.
19135         Also set rli->remaining_in_alignment when we re-set rli->prev_field.
19136         Update rli->remaining_in_alignment when we have already started a
19137         run of bit fields and we process a packed bit field.
19138
19139 2005-05-11  Sebastian Pop  <pop@cri.ensmp.fr>
19140
19141         * tree-data-ref.c (find_data_references_in_loop): Give up when
19142         the body of the loop contains a CALL_EXPR or an ASM_EXPR: they
19143         may embed arbitrary side effects.
19144         Remove the assumption that GIMPLE form contains a single array
19145         access per statement.
19146         When the statement contains virtual operands, fail if it is not
19147         a MODIFY_EXPR or a CALL_EXPR.
19148         Return after the dont know node is inserted.
19149
19150 2005-05-11  Richard Earnshaw  <richard.earnshaw@arm.com>
19151
19152         * arm.md (negsf2, negdf2): Permit these expands when compiling for VFP.
19153
19154 2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
19155
19156         PR middle-end/19807
19157         PR tree-optimization/19639
19158         * fold-const.c (try_move_mult_to_index): Handle INTEGER_CST
19159         and generic summands for char* as s * delta, too, folding &a[i]
19160         CODE x to &a[i CODE x/s].  Use tree_int_cst_equal
19161         for comparison of steps.  Convert types for index addition.
19162         (fold_binary): Adjust the callers to always dispatch to
19163         try_move_mult_to_index.
19164         * tree-ssa-propagate.c (set_rhs): Avoid setting rhs to
19165         expr with non-gimple ARRAY_REF offset.
19166
19167 2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
19168
19169         * fold-const.c (fold_indirect_ref_1): Avoid removing
19170         NOP_EXPRs with type qualifiers like const.
19171
19172 2005-05-11  Richard Henderson  <rth@redhat.com>
19173
19174         PR c/21502
19175         * c-decl.c (finish_decl): Propagate the completed array type of
19176         a global variable into the binding.
19177
19178 2005-05-10  Matt Kraai  <kraai@ftbfs.org>
19179
19180         * Makefile.in (gtype-desc.o, build/genautomata.o)
19181         (build/varray.o): Depend on $(VARRAY_H).
19182
19183 2005-05-10  Diego Novillo  <dnovillo@redhat.com>
19184
19185         * tree-optimize.c (init_tree_optimization_passes): Re-organize
19186         optimization passes to do an initial batch of scalar cleanups.
19187
19188 2005-05-10  Ian Lance Taylor  <ian@airs.com>
19189
19190         * read-rtl.c (struct macro_traverse_data): Define.
19191         (map_attr_string): New static function, broken out of
19192         apply_macro_to_string.
19193         (mode_attr_index, apply_mode_maps): New static functions.
19194         (apply_macro_to_string): Call map_attr_string.
19195         (apply_macro_to_rtx): Add mode_maps and infile parameters.  Change
19196         all callers.
19197         (apply_macro_traverse): Expect data to point to a struct
19198         macro_traverse_data.
19199         (read_rtx): Add mode_maps local variable.  Use mode_traverse_data
19200         to pass data through htab_traverse.
19201         (read_rtx_1): Add mode_maps parameter.  Change all callers.
19202         Handle mode names which are attribute strings.
19203         * doc/md.texi (Substitutions): Rename from String Substitutions.
19204         Change references.  Document using attributes as modes.
19205
19206 2005-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
19207
19208         * tree-cfg.c (tree_duplicate_sese_region): Update profile.
19209         * tree-optimize.c (init_tree_optimization_passes) Swap
19210         pass_ch and pass_profile.
19211         * tree-ssa-loop-ch.c (copy_loop_headers): Do not update profile
19212         here.  Remove rewrite_into_loop_closed_ssa call.
19213
19214 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
19215
19216         * config/s390/s390.c: (s390_const_double_ok_for_constraint_p): New
19217         function.
19218         (legitimate_reload_constant_p): Add check for const double zero.
19219         * config/s390/s390.md: Add comment for constraint letter 'G'.
19220         ("*movdf_64", "*movdf_31", "movsf"): Add constraint and proper
19221         attributes for new case.
19222         * config/s390/s390.h: (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Define it as
19223         s390_const_double_ok_for_constraint_p.
19224         * config/s390/s390-protos.h (s390_const_double_ok_for_constraint_p):
19225         Add prototype.
19226
19227 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
19228
19229         PR tree-optimization/21170
19230         * tree-ssa-dom.c, tree-ssa-threadupdate.c: Replace
19231         rewrite_ssa_into_ssa in comments with update_ssa.
19232
19233 2005-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
19234
19235         * tree-ssa-loop-im.c: Include hashtab.h.
19236         (struct mem_ref_loc): New.
19237         (struct mem_ref): Describe the set of references with the same
19238         shape.
19239         (max_stmt_uid, get_stmt_uid, record_mem_ref, free_mem_refs,
19240         maybe_queue_var, fem_single_reachable_address,
19241         for_each_memref, single_reachable_address,
19242         is_call_clobbered_ref, determine_lsm_reg): Removed.
19243         (record_mem_ref_loc, free_mem_ref_locs, determine_lsm_ref,
19244         hoist_memory_reference, memref_hash, memref_eq, memref_del,
19245         gather_mem_refs_stmt, gather_mem_refs, find_more_ref_vops):
19246         New functions.
19247         (rewrite_mem_refs, schedule_sm): Use mem_ref_loc list.
19248         (determine_lsm_loop): Rewritten.
19249         (determine_lsm): Do not set stmt uids.
19250
19251 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
19252
19253         * config/s390/s390.md: Add comment lines for 'f' and 't' constraint
19254         letters.
19255
19256 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
19257
19258         * config/s390/s390.md: ("anddi3","andsi3","andhi3","andqi3"): Merge.
19259         ("iordi3", "iorsi3", "iorhi3", "iorqi3"): Merge.
19260         ("xordi3", "xorsi3", "xorhi3", "xorqi3"): Merge.
19261
19262 2005-05-10  Jeff Law  <law@redhat.com>
19263
19264         * tree-ssa-dom.c (dom_opt_finalize_block): Do not call
19265         thread_across_edge for any abnormal edges.
19266
19267 2005-05-10  Richard Henderson  <rth@redhat.com>
19268
19269         * config/ia64/ia64.c (ia64_expand_atomic_op): New.
19270         * config/ia64/ia64-protos.h: Declare it.
19271         * config/ia64/sync.md (I124MODE, FETCHOP, fetchop_name): New.
19272         (sync_add<I48MODE>, sync_old_add<I48MODE>): Remove.
19273         (sync_<FETCHOP><IMODE>, sync_nand<IMODE>): New.
19274         (sync_old_<FETCHOP><IMODE>, sync_old_nand<IMODE>): New.
19275         (sync_new_<FETCHOP><IMODE>, sync_new_nand<IMODE>): New.
19276         (cmpxchg_rel_<I124MODE>): Split from cmpxchg_acq_<IMODE>.  Zero
19277         extend result; use release semantics.
19278         (cmpxchg_rel_di): Rename from cmpxchg_acq_<IMODE>; use release.
19279         (sync_val_compare_and_swap_<IMODE>): Update to match.
19280
19281 2005-05-10  Richard Henderson  <rth@redhat.com>
19282
19283         * optabs.c (expand_compare_and_swap_loop): Don't clobber old value
19284         before comparing it for success.
19285
19286 2005-05-10  Richard Henderson  <rth@redhat.com>
19287
19288         * config/ia64/sync.md (sync_add<I48MODE>): Fix arguments for
19289         no return value pattern.
19290
19291 2005-05-10  Grigory Zagorodnev  <grigory.zagorodnev@intel.com>
19292             H.J. Lu  <hongjiu.lu@intel.com>
19293
19294         * libgcov.c (create_file_directory): New function. Create
19295         directory for the given file name.
19296         (gcov_max_filename): New static var. Keeps size of the longest
19297         file name.
19298         (gcov_exit): Always try to create directory for output
19299         file. Relocate each filename basing on environment vars.
19300         (__gcov_init): Remember the longest file name.
19301         * tsystem.h: include filenames.h to get IS_DIR_SEPARATOR
19302         * doc/gcov.texi (Cross-profiling): New node documenting
19303         cross-profiling management.
19304         * doc/invoke.texi (-fprofile-arcs): Add xref to cross-profiling.
19305
19306 2005-05-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
19307
19308         * config/sparc/sparc.c (mem_min_alignment): Do not rely
19309         on MEM_ALIGN if TARGET_UNALIGNED_DOUBLES.
19310
19311 2005-05-10  Bob Wilson  <bob.wilson@acm.org>
19312
19313         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Rearrange special
19314         case code to avoid one move instruction.
19315         (__umodsi3, __modsi3): Merge duplicated code sequences.
19316
19317 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
19318
19319         * config/mips/24k.md, config/sh/divtab.c, config/sh/sh.c,
19320         config/sh/sh.md, config/sh/superh.h: Fix comment typos.
19321         * doc/invoke.texi: Fix typos.
19322
19323         * tree-data-ref.c (analyze_array_indexes, analyze_array,
19324         init_data_ref, access_functions_are_affine_or_constant_p,
19325         free_data_refs): Use VEC instead of VARRAY.
19326         * tree-data-ref.h (data_reference): Change the type of
19327         access_fns to VEC(tree,gc)*.
19328         (DR_ACCESS_FN, DR_NUM_DIMENSIONS): Use VEC instead of VARRAY.
19329
19330 2005-05-10  Gabor Loki <loki@gcc.gnu.org>
19331
19332         PR c/17913
19333         * c-typeck.c (build_conditional_expr): Remove reducing cond_expr.
19334         * fold-const.c (fold): Expand the condition of reducing cond_expr.
19335         (contains_label_1, contains_label_p): New functions for checking
19336         labels in a sub-tree.
19337
19338 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
19339
19340         PR c/21342
19341         * c-decl.c (pushdecl): When there is a declaration in the current
19342         scope and the declarations are external linkage, check for
19343         compatibility with the type in the external scope and update the
19344         type in the external scope with the composite type information.
19345         Do not form a composite type of the new type and the visible type
19346         if they are incompatible.
19347
19348 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
19349
19350         * crtstuff.c: Revert part of 2005-05-08 Change.
19351         (IN_LIBGCC2): Define.
19352
19353 2005-05-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
19354
19355         * config/sparc/sparc.c (fp_sethi_p): Test !SPARC_SIMM13_P and
19356         remove redundant test.
19357         (fp_mov_p): Accept 0.
19358         (fp_high_losum_p): Remove redundant test.
19359         * config/sparc/predicates.md (const_high_operand): Explicitly test
19360         (not small_int_operand).
19361         (fp_const_high_losum_operand): New.
19362         * config/sparc/sparc.md (movsi_insn): Do not emit 'clr'.  Reorder.
19363         (movdi_insn_sp32_v9): Use canonical predicates.
19364         (movdi_insn_sp32): Test !TARGET_V9 instead of !TARGET_ARCH64.
19365         (movdi_insn_sp64_novis): Delete.
19366         (movdi_insn_sp64_vis): Rename into movdi_insn_sp64.
19367         (movsf_insn_novis): Delete.
19368         (movsf_insn_vis): Rename into movsf_insn.
19369         (movsf_no_f_insn): Rename into movsf_insn_no_fpu.
19370         (movsf_lo_sum): Use fp_const_high_losum_operand.
19371         (movsf_high): Likewise.
19372         (movsf_high_losum splitter): Likewise.
19373         (mov<V32:mode> expander): Use register_or_zero_operand.
19374         (mov<V64:mode> expander): Likewise.
19375         (movdf_insn_sp32): Use register_or_zero_operand.
19376         (movdf_no_e_insn_sp32): Use register_or_zero_operand.
19377         Rename into movdf_insn_sp32_no_fpu.
19378         (movdf_no_e_insn_v9_sp32): Use register_or_zero_operand.
19379         Rename into movdf_insn_sp32_v9_no_fpu.
19380         (movdf_insn_v9only_novis): Delete.
19381         (movdf_insn_v9only_vis): Rename into movdf_insn_sp32_v9.
19382         (movdf_insn_sp64_novis): Delete.
19383         (movdf_insn_sp64_vis): Rename into movdf_insn_sp64.
19384         (movdf_no_e_insn_sp64): Use register_or_zero_operand.
19385         Rename into movdf_insn_sp64_no_fpu.
19386         (movtf expander): Use register_or_zero_operand.
19387         (movtf_insn_sp32): Delete.
19388         (movtf_insn_vis_sp32): Use register_or_zero_operand.
19389         Rename into movtf_insn_sp32.
19390         (movtf_no_e_insn_sp32): Use register_or_zero_operand.
19391         Rename into movtf_insn_sp32_no_fpu.
19392         (movtf_insn_hq_sp64): Delete.
19393         (movtf_insn_hq_vis_sp64): Use register_or_zero_operand.
19394         Rename into movtf_insn_sp64_hq.
19395         (movtf_insn_sp64): Delete.
19396         (movtf_insn_vis_sp64): Use register_or_zero_operand.
19397         Rename into movtf_insn_sp64.
19398         (movtf_no_e_insn_sp64): Use register_or_zero_operand.
19399         Rename into movtf_insn_sp64_no_fpu.
19400
19401 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
19402
19403         * config/stormy16/stormy16.c (xstormy16_emit_cbranch): Use
19404         gcc_assert and gcc_unreachable as appropriate.
19405         (xstormy16_split_cbranch, xstormy16_output_cbranch_hi,
19406         xstormy16_output_cbranch_si, xstormy16_split_move,
19407         xstormy16_initial_elimination_offset,
19408         xstormy16_encode_section_info, xstormy16_print_operand_address,
19409         xstormy16_expand_call, xstormy16_expand_arith,
19410         xstormy16_output_shift, xstormy16_init_builtins): Likewise.
19411
19412 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
19413
19414         * tree-outof-ssa.c (_elim_graph): Change the type of nodes and
19415         const_copies to VEC(tree,heap)*.
19416         (new_elim_graph, delete_elim_graph, elim_graph_size,
19417         elim_graph_add_node, eliminate_build, eliminate_phi): Use VEC
19418         instead of VARRAY.
19419
19420 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
19421
19422         PR other/21052
19423         * doc/extend.texi (Type Attributes): Correct example syntax.
19424
19425 2005-05-09  Joseph S. Myers  <joseph@codesourcery.com>
19426
19427         PR c/21160
19428         * doc/invoke.texi (-Wuninitialized): Update documentation.
19429
19430 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
19431
19432         * arm.c (const_ok_for_arm): Use a faster algorithm.
19433
19434 2005-05-09  David Edelsohn  <edelsohn@gnu.org>
19435
19436         PR target/21477
19437         * config/rs6000/rs6000.md (add_op2): New.
19438         (add<mode>3): Use it.
19439
19440 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
19441
19442         * arm.c (arm_gen_constant): Add new heuristic for generating
19443         constant integers that can be expressed as the difference of two
19444         valid immediates.
19445
19446 2005-05-09  Roger Sayle  <roger@eyesopen.com>
19447
19448         * c-tree.h (parser_build_unary_op): New prototype.
19449         * c-typeck.c (parser_build_unary_op): New function to construct
19450         a unary operation in the C parser.
19451         * c-parser.c (c_parser_unary_expression):  Use the new function
19452         parser_build_unary_op when appropriate.
19453
19454 2005-05-09  Mark Mitchell  <mark@codesourcery.com>
19455
19456         PR 18655
19457         * dwarf2out.c (output_call_frame_info): Use DWARF2_FRAME_REG_OUT
19458         before outputting DWARF_FRAME_RETURN_COLUMN.
19459
19460 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19461
19462         * config/s390/s390.c: (s390_branch_condition_mask,
19463         s390_branch_condition_mnemonic, s390_extra_constraint_str,
19464         s390_const_ok_for_constraint_p, s390_expand_plus_operand,
19465         legitimize_pic_address, s390_emit_tls_call_insn,
19466         legitimize_tls_address, legitimize_tls_address,
19467         s390_expand_addcc, print_shift_count_operand, print_operand,
19468         addr_generation_dependency_p, annotate_constant_pool_refs,
19469         s390_split_branches, find_constant_pool_ref,
19470         replace_constant_pool_ref, s390_add_constant, s390_find_constant,
19471         s390_find_execute, s390_mainpool_start, s390_chunkify_start,
19472         s390_output_pool_entry, s390_function_value,
19473         s390_call_saved_register_used, s390_emit_call): Replace
19474         conditional aborts by gcc_assert and unconditional by gcc_unreachable.
19475         (s390_select_ccmode, s390_match_ccmode_set, s390_extract_part,
19476         s390_cannot_force_const_mem, s390_output_dwarf_dtprel,
19477         get_some_local_dynamic_name, s390_function_arg_size,
19478         s390_function_arg_advance, s390_function_arg,
19479         s390_expand_builtin, s390_gen_rtx_const_DI): Replace abort in
19480         default case by gcc_unreachable.
19481         * config/s390/s390.md: ("*cjump_31", "*icjump_31", "*jump31"): Replace
19482         conditional abort by gcc_assert.
19483         ("doloop_si31"): Replace abort in last else by gcc_unreachable.
19484         ("main_pool", "pool"): Replace unconditional abort by gcc_unreachable.
19485
19486 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19487
19488         * config/s390/s390.c: (s390_decompose_address,
19489         tls_symbolic_operand, legitimate_pic_operand_p,
19490         legitimate_constant_p, legitimate_reload_constant_p,
19491         s390_expand_plus_operand, legitimate_address_p,
19492         legitimate_la_operand_p, ): Remove 'register' from signature.
19493         (symbolic_reference_mentioned_p,
19494         tls_symbolic_reference_mentioned_p): Remove 'register' from local
19495         variable declarations.
19496         (legitimize_address): Remove 'register' from
19497         signature and local variable declarations.
19498
19499 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19500
19501         * config/s390/s390-protos.h: (s390_match_ccmode,
19502         s390_match_ccmode_set, reg_used_in_mem_p,
19503         symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
19504         legitimate_la_operand_p, preferred_la_operand_p,
19505         s390_short_displacement, addr_generation_dependency_p,
19506         legitimate_reload_constant_p, legitimate_address_p): Change return type
19507         into 'bool'.
19508         (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'.
19509         * config/s390/s390.c: (s390_match_ccmode,
19510         symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
19511         legitimate_reload_constant_p): Change return type into 'bool'.
19512         (preferred_la_operand_p,legitimate_la_operand_p, legitimate_address_p):
19513         Likewise.  Additionally adapted comment.
19514         (s390_extra_constraint_p): Change Comment to reflect 'int' return type.
19515         (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'.
19516         (s390_decompose_address): Change the type of the internal flags
19517         "pointer", "base_ptr", "indx_ptr", and the return value into 'bool'.
19518         (struct s390_address): Change type of "pointer" into bool.
19519         * config/s390/s390.md: ("*tmdi_reg", "*tmsi_reg", "tm<mode>_full"):
19520         Adapt calls for 's390_tm_ccmode' to the new signature.
19521
19522 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19523
19524         * config/s390/s390.c: (s390_match_ccmode_set,
19525         s390_branch_condition_mnemonic, s390_short_displacement,
19526         s390_decompose_address, get_thread_pointer, legitimize_tls_address,
19527         print_shift_count_operand, get_some_local_dynamic_name,
19528         get_some_local_dynamic_name_1, reg_used_in_mem_p,
19529         addr_generation_dependency_p, s390_split_branches,
19530         annotate_constant_pool_refs, find_constant_pool_ref,
19531         replace_constant_pool_ref, find_ltrel_base, replace_ltrel_base,
19532         s390_optimize_prologue, find_unused_clobbered_reg, s390_frame_area,
19533         s390_register_info, s390_frame_info, s390_init_frame_layout,
19534         s390_update_frame_layout, save_fpr, restore_fpr, save_gprs,
19535         restore_gprs, s390_function_arg_size, s390_function_arg_float,
19536         s390_init_machine_status, s390_assemble_integer, s390_handle_option,
19537         s390_encode_section_info, s390_cannot_force_const_mem,
19538         s390_delegitimize_address, s390_return_in_memory, s390_init_builtins,
19539         s390_expand_builtin, s390_output_mi_thunk, s390_safe_attr_type,
19540         s390_adjust_priority, s390_issue_rate,
19541         s390_first_cycle_multipass_dfa_lookahead, s390_cannot_copy_insn_p,
19542         s390_rtx_costs, s390_address_cost, s390_reorg, s390_valid_pointer_mode,
19543         s390_build_builtin_va_list, s390_gimplify_va_arg,
19544         s390_function_ok_for_sibcall, s390_call_saved_register_used,
19545         s390_pass_by_reference, s390_fixed_condition_code_regs,
19546         s390_cc_modes_compatible s390_mainpool_start,, s390_mainpool_finish,
19547         s390_mainpool_cancel, s390_chunkify_start, s390_chunkify_finish,
19548         s390_chunkify_cancel, s390_start_pool, s390_end_pool,
19549         s390_add_pool_insn, s390_find_pool, s390_add_constant,
19550         s390_find_constant, s390_add_execute, s390_find_execute,
19551         s390_execute_label, s390_execute_target, s390_dump_pool,
19552         s390_dump_execute, s390_alloc_pool, s390_free_pool): Remove prototypes.
19553         Move target macro definitions to the end of the file.  Move several
19554         functions within the file to assure correct compiling.
19555
19556 2005-05-09  Steven Bosscher  <stevenb@suse.de>
19557
19558         * calls.c (purge_reg_equiv_notes): Remove, fold into...
19559         (fixup_tail_calls): ...here.  Only look at insns between the
19560         start of the function and the FUNCTION_BEG insn note.
19561
19562         * gcse.c (one_cprop_pass): Fix typos in dumps.
19563
19564         * tree-ssa-operands.h (FOR_EACH_PHI_ARG): Fix typos.
19565
19566 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19567
19568         * config/s390/s390.h: Move xxx_REGNUM definitions to s390.md.
19569         * config/s390/s390.md: ("SIBCALL_REGNUM", "BASE_REGNUM",
19570         "RETURN_REGNUM", "CC_REGNUM", "TP_REGNUM"): New constants.
19571         Replace every occurrence of '(reg:<MODE> 33)' by '(reg:<MODE>
19572         CC_REGNUM)'.
19573         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Replace
19574         '(reg:<MODE> 36)' by '(reg:<MODE> TP_REGNUM)'.
19575         ("*sibcall_br", "*sibcall_value_br"): Replace '(reg:DI 1)' by '(reg:DI
19576         REG_SC)'.
19577
19578 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19579
19580         * config/s390/s390.md: ("gf") New mode attribute.
19581         ("fixuns_truncdfdi2", "fixuns_truncdfsi2", "fixuns_truncsfdi2",
19582         "fixuns_truncsfsi2"): Merge.
19583         ("fix_truncdfdi2", "fix_truncsfdi2"): Merge.
19584         ("fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee", "fix_truncsfdi2_ieee",
19585         "fix_truncsfsi2_ieee"): Merge.
19586
19587 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19588
19589         * config/s390/s390.md: ("FPR") New mode macro.
19590         ("de", "dee"): New mode attributes.
19591         ("cmpdf", "cmpsf"): Merge.
19592         ("*cmpdf_ccs_0", "*cmpsf_ccs_0"): Merge.
19593         ("*cmpdf_ccs_0_ibm", "*cmpdf_ccs_0_ibm"): Merge.
19594         ("*cmpdf_ccs", "*cmpsf_ccs"): Merge.
19595         ("*cmpdf_ccs_ibm", "*cmpsf_ccs_ibm"): Merge.
19596         ("floatdidf2", "floatdisf2"): Merge.
19597         ("adddf3", "addsf3"): Merge.
19598         ("*adddf3", "*addsf3"): Merge.
19599         ("*adddf3_cc", "*addsf3_cc"): Merge.
19600         ("*adddf3_cconly", "*addsf3_cconly"): Merge.
19601         ("*adddf3_ibm", "*addsf3_ibm"): Merge.
19602         ("subdf3", "subsf3"): Merge.
19603         ("*subdf3", "*subsf3"): Merge.
19604         ("*subdf3_cc", "*subsf3_cc"): Merge.
19605         ("*subdf3_cconly", "*subsf3_cconly"): Merge.
19606         ("*subdf3_ibm", "*subsf3_ibm"): Merge.
19607         ("muldf3", "mulsf3"): Merge.
19608         ("*muldf3", "*mulsf3" "): Merge.
19609         ("*muldf3_ibm", "*mulsf3_ibm"): Merge.
19610         ("*fmadddf", "*fmaddsf"): Merge.
19611         ("*fmsubdf", "*fmsubsf"): Merge.
19612         ("divdf3", "divsf3"): Merge.
19613         ("*divdf3", "*divsf3"): Merge.
19614         ("*divdf3_ibm", "*divsf3_ibm"): Merge.
19615         ("negdf2", "negsf2"): Merge.
19616         ("*negdf2_cc", "*negsf2_cc"): Merge.
19617         ("*negdf2_cconly", "*negsf2_cconly"): Merge.
19618         ("*negdf2", "*negsf2"): Merge.
19619         ("*negdf2_ibm", "*negsf2_ibm"): Merge.
19620         ("absdf2", "abssf2"): Merge.
19621         ("*absdf2_cc", "*abssf2_cc"): Merge.
19622         ("*absdf2_cconly", "*abssf2_cconly"): Merge.
19623         ("*absdf2", "*abssf2"): Merge.
19624         ("*absdf2_ibm", "*abssf2_ibm"): Merge.
19625         ("*negabsdf2_cc", "*negabssf2_cc"): Merge.
19626         ("*negabsdf2_cconly", "*negabssf2_cconly"): Merge.
19627         ("*negabsdf2", "*negabssf2"): Merge.
19628         ("sqrtdf2", "sqrtsf2"): Merge.
19629
19630 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19631
19632         * config/s390/s390.c: (s390_adjust_priority): Adapt to changed
19633         attribute names.
19634         * config/s390/2084.md: ("x_fsimpd", "x_fsimps", "x_fdivd", "x_fdivs",
19635         "x_floadd", "x_floads", "x_fstored", "x_fstores"): Rename to
19636         ("x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
19637         "x_floadsf", "x_fstoredf", "x_fstoresf") and replace 'type'
19638         attribute names.
19639         * config/s390/s390.md: ("type"): Rename "fsimpd, fsimps, floadd, floads,
19640         fstored, fstores, fmuld, fmuls, fdivd, fdivs, fsqrtd, fsqrts" to
19641         "fsimpdf, fsimpsf, floaddf, floadsf, fstoredf, fstoresf, fmuldf,
19642         fmulsf, fdivdf, fdivsf, fsqrtdf, fsqrtsf".
19643         ("*cmpdf_ccs_0", "*cmpdf_css_0_ibm", "*cmpdf_ccs",
19644         "*cmpdf_ccs_ibm", "*cmpsf_ccs_0", "*cmpsf_css_0_ibm",
19645         "*cmpsf_ccs", "*cmpsf_ccs_ibm", "*movdi_64", "*movdi_31",
19646         "*movsi_zarch", "*movsi_esa", "*movdf_64", "*movdf_31", "movsf",
19647         "*muldf3", "*muldf3_ibm", "*fmadddf", "*fmsubdf", "*mulsf3",
19648         "mulsf3_ibm", "*fmaddsf", "fmsubsf", "*divdf3", "*divdf3_ibm",
19649         "*negdf2_cc", "*negdf2_cconly", "*negdf2", "*negdf2_ibm",
19650         "*negsf2_cc", "*negsf2_cconly", "*negsf2", "*absdf2_cc",
19651         "*absdf2_cconly", "*absdf2", "*absdf2_ibm", "*abssf2_cc",
19652         "*abssf2_cconly", "*abssf2", "*abssf2_ibm", "*negabsdf2_cc",
19653         "*negabsdf2_cconly", "*negabsdf2", "*negabssf2_cc",
19654         "*negabssf2_cconly", "*negabssf2", "sqrtdf2", "sqrtsf2"): Rename
19655         'type' value.
19656         ("*divsf3"): Additionally rename second pattern to
19657         "*divsf3_ibm".
19658         ("truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
19659         "*adddf3", "*adddf3_cc", "*adddf3_cconly", "*adddf3_ibm",
19660         "*addsf3", "*addsf3_cc", "*addsf3_cconly", "*subdf3",
19661         "subdf3_cc", "*subdf3_cconly", "*subdf3_ibm", "*subsf3",
19662         "subsf3_cc", "*subsf3_cconly", "*subsf3_ibm"): Merge identical
19663         'type values' and rename 'type' value.
19664         ("*addsf3"): Additionally rename second pattern to
19665         "*addsf3_ibm".
19666
19667 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19668
19669         * config/s390/s390.md: ("SHIFT"): New mode macro.
19670         ("lr", "shift"): New mode attributes.
19671         ("ashldi3", "lshrdi3"): Merge.
19672         ("*ashldi3_31", "*lshrdi3"_31): Merge.
19673         ("*ashldi3_64", "*lshrdi3"_64): Merge.
19674         ("ashlsi3", "lshrsi3"): Merge.
19675
19676 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19677
19678         * config/s390/s390.md: ("DSI", "SCOND"): New mode
19679         macros.
19680         ("E", "g"): New mode attributes.
19681         ("*adddi3_alc_cc", "*addsi3_alc_cc"): Merge.
19682         ("*adddi3_alc", "*addsi3_alc"): Merge.
19683         ("*subdi3_slb_cc", "*subsi3_slb_cc"): Merge.
19684         ("*subdi3_slb", "*subsi3_slb"): Merge.
19685         ("adddicc", "addsicc"): Merge.
19686         ("*sconddi", "*scondsi"): Merge.
19687         ("*sconddi_neg", "*scondsi_neg"): Merge.
19688         ("sltu", "sgtu", "sleu", "sgeu"): Merge.
19689         ("negdi2", "negsi2"): Extract expander pattern from
19690         "negsi2" and merge with "negdi2".
19691         ("*negdi2"): Merge with instruction pattern of "negsi2".
19692         ("*negdi2_cc", "*negsi2_cc"): Merge.
19693         ("*negdi2_cconly", "*negsi2_cconly"): Merge.
19694         ("rotldi3", "rotlsi3"): Merge.
19695
19696 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19697
19698         * config/s390/s390.md: ("hc"): New mode attribute.
19699         ("extendhidi2", "extendqidi2"): Merge.
19700         ("*extendhidi2", "*extendqidi2"): Merge.
19701         ("extendhisi2", "extendqisi2"): Merge.
19702         ("zero_extendhidi2", "zero_extendqidi2"): Merge.
19703         ("*zero_extendhidi2", "*zero_extendqidi2"): Merge.
19704         Merged 2 define_split.
19705         ("*zero_extendhisi2", "*zero_extendqisi2"): Merge.
19706         ("*zero_extendhisi2_64", "*zero_extendqisi2_64"): Merge.
19707
19708 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19709
19710         * config/s390/s390.md: ("COMPARE"): New mode macro.
19711         ("beq", "bne", "bgt", "bgtu", "blt", "bltu", "bge", "bgeu",
19712         "ble", "bleu", "bunordered", "bordered", "buneq", "bunlt",
19713         "bungt", "bunle", "bunge", "bltgt"): Merge.
19714
19715 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19716
19717         * config/s390/s390.md: ("INT"): New mode macro.
19718         ("one_cmpldi2", "one_cmplsi2", "one_cmplhi2", "one_cmplqi2"):
19719         Merge.
19720
19721 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19722
19723         * config/s390/s390.md: ("GPR", "P"): New mode macros.
19724         ("cmpdi", "cmpsi"): Merge.
19725         ("strlendi", "strlensi"): Merge.
19726         ("*strlendi", "*strlensi"): Merge.
19727         ("movmemdi", "movmemsi"): Merge.
19728         ("clrmemdi", "clrmemsi"): Merge.
19729
19730 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
19731
19732         * config/s390/s390.md: ("HQI"): New mode macro.
19733         ("icm_lo", "icm_hi", "max_uint"): New mode attributes.
19734         ("*tmhi_full", "*tmqi_full"): Merge.
19735         ("*tsthiCCT", "*tstqiCCT"): Merge.
19736         ("*tsthi", "*tstqi"): Merge.
19737         ("*tsthi_cconly", "tstqi_cconly"): Merge.
19738         ("*sethighhisi", "*sethighqisi"): Merge.
19739
19740 2005-05-09  Kazu Hirata  <kazu@cs.umass.edu>
19741
19742         * crtstuff.c, integrate.h, tree-scalar-evolution.h,
19743         config/alpha/unicosmk.h, config/arc/arc.md,
19744         config/arm/bpabi.h, config/arm/coff.h, config/arm/elf.h,
19745         config/arm/ieee754-df.S, config/arm/ieee754-sf.S,
19746         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
19747         config/arm/semi.h, config/arm/uclinux-elf.h,
19748         config/arm/wince-pe.h, config/fr30/fr30.c,
19749         config/rs6000/altivec.h: Update copyright.
19750
19751 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
19752
19753         * config/pdp11/pdp11.c (pdp11_output_function_prologue): Use
19754         gcc_assert and gcc_unreachable as appropriate.
19755         (pdp11_output_function_epilogue, output_move_double,
19756         output_move_quad, print_operand_address, output_jump,
19757         output_addr_const_pdp11): Likewise.
19758         * config/pdp11/pdp11.h (FUNCTION_PROFILER,
19759         ASM_OUTPUT_ALIGN): Likewise.
19760         * config/pdp11/pdp11.md: Likewise.
19761         (extendhisi2, subhi3, subqi3): Likewise.
19762
19763 2005-05-09  David Edelsohn  <edelsohn@gnu.org>
19764
19765         PR middle-end/21237
19766         * dojump.c (do_jump, MINUS_EXPR): Build NE_EXPR and fall through
19767         to NE_EXPR case.
19768
19769 2005-05-09  Kazu Hirata  <kazu@cs.umass.edu>
19770
19771         * config/ia64/ia64.c: Fix a comment typo.
19772
19773 2005-05-09  Richard Earnshaw  <rearnsha@arm.com>
19774
19775         PR target/21397
19776         * arm.c (ARM_OPT_SET_CPU, ARM_OPT_SET_ARCH, ARM_OPT_SET_TUNE): Define.
19777         (arm_override_options): Use them instead of manifest constants.  Don't
19778         allow -march to override the -mtune setting.
19779
19780 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
19781
19782         * config/iq2000/iq2000.c (abort_with_insn): Use fancy_abort.
19783         (gen_int_relational): Use gcc_unreachable and gcc_assert as necessary.
19784         (function_arg_advance, function_arg, save_restore_insns,
19785         iq2000_expand_prologue, iq2000_output_conditional_branch,
19786         expand_one_builtin, print_operand):
19787         * config/iq2000/iq2000.md (tablejump): Likewise.
19788
19789 2005-05-09  David Ung  <davidu@mips.com>
19790
19791         * config/mips/mips.h (processor_type): Add names for the 24K.
19792         * config/mips/mips.c (mips_cpu_info_table): Add names for the 24K
19793         processor family.
19794         * config/mips/mips.md (cnv_mode): New attribute for recording the
19795         conversion types of float convert insns.
19796         (cpu): Add 24k and 24kx.
19797         (include): Include 24k.md file.
19798         (truncdfsf2, extendsfdf2, fix_truncdfsi2_insn, fix_truncdfsi2_macro)
19799         (fix_truncdfdi2, fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2)
19800         (floatdisf2): Setup cnv_mode.
19801         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): Changed mode to SF and
19802         setup cnv_mode.
19803         * config/mips/24k.md: New file, contains 24k DFA pipeline
19804         description.
19805
19806 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
19807
19808         * config/sh/sh.c (print_operand_address): Use gcc_assert and
19809         gcc_unreachable as appropriate.
19810         (print_operand, prepare_move_operands, prepare_scc_operands,
19811         output_movedouble, output_branch, shift_insns_rtx, gen_shifty_op,
19812         gen_shl_and, shl_sext_kind, gen_datalabel_ref, dump_table,
19813         fixup_mova, gen_far_branch, sh_reorg, split_branches,
19814         final_prescan_insn, output_stack_adjust, sh_expand_epilogue,
19815         sh_set_return_address, sh_setup_incoming_varargs,
19816         initial_elimination_offset, sh_pch_valid_p, get_free_reg,
19817         sh_expand_builtin, sh_output_mi_thunk, extract_sfunc_addr,
19818         check_use_sfunc_addr): Likewise.
19819         * config/sh/netbsd-elf.h (FUNCTION_PROFILER): Likewise.
19820         * config/sh/sh.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
19821         * config/sh/symbian.c (sh_symbian_mark_dllexport,
19822         sh_symbian_mark_dllimport): Likewise.
19823         * config/sh/sh.md: Likewise.
19824         (movdicc, call_pop, call_value_pop, casesi_worker_1,
19825         casesi_worker_2, casesi_shift_media, casesi_load_media,
19826         return_media): Likewise.
19827
19828 2005-05-08  Roger Sayle  <roger@eyesopen.com>
19829
19830         PR inline-asm/8788
19831         * stmt.c (expand_asm_operands): Avoid calling force_reg on BLKmode
19832         operands.
19833
19834 2005-05-08  Richard Henderson  <rth@redhat.com>
19835
19836         * config/alpha/alpha.c (adjust_address): Fix typo last change.
19837
19838 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
19839
19840         * config/m68hc11/m68hc11.h (REG_VALID_P): A regno must be >= 0
19841         and -1 can happen in reg_renumber when no hard register is assigned.
19842
19843 2005-05-08  Steven Bosscher  <stevenb@suse.de>
19844             Kazu Hirata  <kazu@cs.umass.edu>
19845
19846         PR tree-optimization/14841, tree-optimization/15838
19847         * tree-ssa-ccp.c (fold_const_aggregate_ref): New.
19848         (evaluate_stmt): Call it.
19849
19850 2005-05-08  Jakub Jelinek  <jakub@redhat.com>
19851
19852         * config/ia64/ia64.c (ia64_override_options): Don't set
19853         ia64_flag_var_tracking and clear flag_var_tracking here...
19854         (ia64_file_start): ... but here.
19855
19856 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
19857
19858         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use gcc_assert
19859         and gcc_unreachable as appropriate.
19860         (expand_prologue, expand_epilogue, m68hc11_gen_lowpart,
19861         m68hc11_gen_highpart, print_operand, print_operand_address,
19862         m68hc11_expand_compare, m68hc11_expand_compare_and_branch,
19863         m68hc11_gen_movhi): Likewise.
19864         * config/m68hc11/m68hc11.h (HARD_X_REGNUM): Reword comment.
19865         * config/m68hc11/m68hc11.md: Reword comment.
19866
19867 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
19868
19869         PR target/21281
19870         * config/m68hc11/predicates.md (splitable_operand): An immediate is
19871         allowed.
19872
19873 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
19874
19875         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Do not allow
19876         the 68HC12 address indirect addressing mode as it is not supported by
19877         bset and bclr.
19878         * config/m68hc11/m68hc11-protos.h
19879         (m68hc11_valid_addressing_p): Declare.
19880         (m68hc11_add_mode): Declare.
19881         * config/m68hc11/m68hc11.c (m68hc11_valid_addressing_p): Rename from
19882         register_indirect_p and export it.
19883         (m68hc11_z_replacement): Use emit_insn_after when adding the save Z
19884         instruction so that it is part of the good BB.
19885         (m68hc11_gen_movhi): Fix invalid generation of indexed indirect
19886         addressing with movw.
19887         (m68hc11_gen_movqi): Use pula and pulb instead of lda and ldb for
19888         68HC12.
19889         * config/m68hc11/m68hc11.h (ADDR_STRICT, ADDR_INCDEC, ADDR_INDEXED,
19890         ADDR_OFFSET, ADDR_INDIRECT, ADDR__CONST): Moved from m68hc11.c.
19891         * config/m68hc11/m68hc11.md ("movhi_const0"): Use this pattern only
19892         for 68HC11.
19893         ("*movhi_68hc12"): Handle movhi_const0.
19894         ("*subhi3", "subqi3"): Use general_operand for operand 1.
19895         ("*subhi3_zext"): Likewise.
19896
19897 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
19898
19899         PR target/19051
19900         * config/m68hc11/m68hc11.md ("mulqi3"): Use general_operand for
19901         operand 1 and fix constraints.
19902         ("mulqihi3"): Use general_operand for operand 2.
19903
19904 2005-05-08  Julian Brown  <julian@codesourcery.com>
19905             H.J. Lu  <hongjiu.lu@intel.com>
19906             Paul Brook  <paul@codesourcery.com>
19907
19908         * configure.ac: Set ld_vers_major, ld_vers_minor and ld_vers_patch for
19909         GNU linker. Support linker version x.x.x.x.x. Require GNU linker
19910         20050308/2.16.0 or newer for comdat group.
19911         * configure: Regenerated.
19912         * config.in: Regenerated.
19913         * varasm.c (default_function_rodata_section): Put .rodata section in
19914         COMDAT group when necessary.
19915         (default_elf_asm_named_section): Rename HAVE_GAS_COMDAT_GROUP to
19916         HAVE_COMDAT_GROUP.
19917         (default_unique_section_1): Don't use .gnu.linkonce when COMDAT is
19918         available.
19919
19920 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
19921
19922         * tree-dfa.c (referenced_vars, add_referenced_var): Use VEC
19923         instead of VARRAY.
19924         * tree-flow.h (num_referenced_var, referenced_var): Likewise.
19925         * tree-into-ssa.c (mark_def_site_blocks): Likewise.
19926         * tree-ssa.c (init_tree_ssa, delete_tree_ssa): Likewise.
19927         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
19928
19929 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
19930
19931         PR target/16925
19932         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Handle split of
19933         64-bit constants on 64-bit hosts.
19934         (m68hc11_split_logical): Simplify.
19935         (m68hc11_split_move): Likewise.
19936
19937 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
19938             Paolo Bonzini  <bonzini@gnu.org>
19939
19940         * Makefile.in (cs-tconfig.h): Pass USED_FOR_TARGET to mkconfig.sh
19941         * aclocal.m4 (GCC_TARGET_TEMPLATE, AH_TEMPLATE): New.
19942         * configure.ac (enable_checking): Fix typos in runtime_checking.
19943         (ENABLE_RUNTIME_CHECKING): Mark as target template.
19944         (xm_file): Prepend auto-host.h
19945         (HAVE_GAS_HIDDEN, HAVE_LD_EH_FRAME_HDR): Mark as target template.
19946         * mkconfig.sh: Do not automatically define USED_FOR_TARGET in
19947         tconfig.h.
19948         * crtstuff.c: Do not include auto-host.h.
19949         (IN_LIBGCC2): Do not define.
19950         * gcov-io.h: Include tconfig.h, not auto-host.h.
19951         * libgcc2.c: Do not include auto-host.h.
19952         (abort): Do not undefine.
19953         * libgcov.c: Remove unneeded comment about config.h.
19954         * unwind-dw2-fde-glibc.c: Do not inlude auto-host.h.
19955         * config.in, configure: Regenerated.
19956
19957 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
19958             Falk Hueffner  <falk@debian.org>
19959
19960         * config/alpha/alpha.c (tls_symbolic_operand_1): Use gcc_assert
19961         and gcc_unreachable as appropriate.
19962         (get_aligned_mem, get_unaligned_address,
19963         alpha_emit_set_long_const, alpha_emit_conditional_branch,
19964         alpha_emit_setcc, alpha_emit_conditional_move,
19965         alpha_lookup_xfloating_lib_func, alpha_compute_xfloating_mode_arg,
19966         alpha_emit_xfloating_libcall, alpha_split_tfmode_pair,
19967         alpha_expand_unaligned_load, alpha_expand_block_move,
19968         alpha_expand_zap_mask, get_trap_mode_suffix,
19969         get_round_mode_suffix, get_some_local_dynamic_name,
19970         print_operand_address, function_arg, alpha_return_in_memory,
19971         function_value, alpha_expand_builtin,
19972         alpha_initial_elimination_offset, alpha_expand_epilogue,
19973         summarize_insn, alpha_handle_trap_shadows, alphaev5_insn_pipe,
19974         alphaev5_next_group, alpha_align_insns,
19975         unicosmk_initial_elimination_offset, unicosmk_unique_section,
19976         unicosmk_ssib_name): Likewise.
19977         * config/alpha/alpha.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
19978         * config/alpha/unicosmk.h (TRAMPOLINE_TEMPLATE,
19979         ASM_OUTPUT_ADDR_DIFF_ELT, ASM_OUTPUT_ADDR_DIFF_VEC): Likewise.
19980         * config/alpha/vms.h (INITIAL_ELIMINATION_OFFSET,
19981         ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
19982         * config/alpha/alpha.md (*divmodsi_internal_er,
19983         *divmoddi_internal_er, ashldi3, *insxl, sibcall, call_osf,
19984         call_nt, call_umk, call_vms, call_value, sibcall_value,
19985         call_value_osf, call_value_nt, call_value_vms, call_value_umk,
19986         *call_vms_1, *movmemdi_1, *clrmemdi_1, *call_value_vms_1): Likewise.
19987         * config/alpha/predicates.md (input_operand): Likewise.
19988
19989 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
19990
19991         * config/frv/frv.c (frv_default_flags_for_cpu): Use gcc_assert and
19992         gcc_unreachable, as appropriate.
19993         (frv_function_prologue, frv_alloc_temp_reg,
19994         frv_initial_elimination_offset, frv_expand_block_move,
19995         frv_expand_block_clear, frv_print_operand_jump_hint,
19996         frv_legitimize_tls_address, unspec_got_name, frv_emit_move,
19997         frv_emit_movsi, frv_split_cond_move, frv_split_minmax,
19998         frv_ifcvt_modify_insn, frv_ifcvt_modify_final,
19999         frv_adjust_field_align, frv_insn_unit, frv_cond_flags,
20000         frv_sort_insn_group, frv_reorder_packet, frv_matching_accg_mode,
20001         frv_in_small_data_p, frv_asm_out_constructor,
20002         frv_asm_out_destructor, frv_output_dwarf_dtprel): Likewise.
20003         * config/frv/frv.md (reload_incc_fp, *cond_exec_si_binary1,
20004         *cond_exec_si_binary2, *cond_exec_si_divide, *cond_exec_si_unary1,
20005         *cond_exec_sf_conv, *cond_exec_sf_add, call, sibcall, call_value,
20006         sibcall_value, casesi): Likewise.
20007
20008         * config/mn10300/mn10300.c (print_operand): Use gcc_assert and
20009         gcc_unreachable as appropriate.
20010         (print_operand_address, mn10300_print_reg_list, expand_prologue,
20011         expand_epilogue, notice_update_cc, initial_offset,
20012         mn10300_address_cost_1): Likewise.
20013         * config/mn10300/mn10300.md: Likewise.
20014         (absdf2, abssf2, negdf2, negsf2): Likewise.
20015
20016 2005-05-08  Richard Sandiford  <rsandifo@redhat.com>
20017
20018         PR target/21416
20019         * config/mips/mips.c (mips_emit_compare): Don't reverse UNGE and UNGT
20020         comparisons.
20021         * config/mips/mips.md (swapped_fcond): New code macro and attribute.
20022         (sgt_<mode>, sge_<mode>): Generalize to all members of swapped_fcond,
20023         including sunge_<mode> and sungt_<mode>.
20024
20025 2005-05-08  Richard Sandiford  <rsandifo@redhat.com>
20026
20027         * integrate.h (get_hard_reg_initial_val): Change type of register
20028         parameter from int to unsigned int.
20029         (has_hard_reg_initial_val): Likewise.
20030         * integrate.c (get_hard_reg_initial_val): Likewise.
20031         (has_hard_reg_initial_val): Likewise.  Remove cast to unsigned int.
20032
20033 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
20034
20035         * except.c (eh_status): Change the type of ttype_data to
20036         VEC(tree,gc)*.
20037         (add_ttypes_entry, assign_filter_values,
20038         output_function_exception_table): Use VEC instead of VARRAY.
20039
20040 2005-05-07  David Edelsohn  <edelsohn@gnu.org>
20041
20042         * config/rs6000/rs6000.md (popcount<mode>2): Fix non-C90 constant.
20043
20044 2005-05-07  Paul Brook  <paul@codesourcery.com>
20045
20046         * Makefile.in: Fix dependencies.
20047         (GCOV_IO_H, VARRAY_H): Set.
20048
20049 2005-05-07  Anthony Green  <green@redhat.com>
20050
20051         PR bootstrap/21403
20052         * configure.ac (STMP_FIXPROTO): Fix [ ] consumption problem in
20053         x$STMP_FIXPROTO test.
20054         * configure: Rebuilt.
20055
20056 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
20057
20058         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define
20059         inappropriate feature test macros if flag_iso.
20060
20061 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
20062
20063         * config/ia64/hpux.h (NO_IMPLICIT_EXTERN_C): Define.
20064
20065 2005-05-07  Hans-Peter Nilsson  <hp@axis.com>
20066
20067         PR target/21441
20068         * config/cris/cris.md ("*movdi_insn", "*mov_sidesisf_biap")
20069         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
20070         Handle moved operand being in special register.
20071         ("smulsi3_highpart", "umulsi3_highpart"): Change .error into
20072         presumed working insn.
20073         (mover2side): Add FIXME.
20074
20075 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
20076
20077         * integrate.c (get_func_hard_reg_initial_val): Delete.
20078         (has_func_hard_reg_initial_val): Delete.
20079         (get_hard_reg_initial_val): Inline the old implementation of
20080         get_func_hard_reg_initial_val.  Use has_hard_reg_initial_val
20081         instead of has_func_hard_reg_initial_val to test for an existing
20082         pseudo.  Only create an rtx if a new initial value entry is needed.
20083         (has_hard_reg_initial_val): Scan the initial value list directly.
20084         Don't create an rtx.
20085
20086 2005-05-07  David Edelsohn  <edelsohn@gnu.org>
20087
20088         * config.gcc ({powerpc,rs6000}-ibm-aix*): Remove rs6000/aix.opt
20089         from extra_options.
20090         * config.in (HAVE_AS_POPCNTB): New.
20091         * configure.ac (HAVE_AS_MFCRF): Add .machine "pwr5" to AIX test.
20092         (HAVE_AS_POPCNTB): New.
20093         * configure: Regenerated.
20094         * config/rs6000/aix.h (TARGET_XL_COMPAT): Delete.
20095         * config/rs6000/rs6000.c (rs6000_override_options, power5): Add
20096         MASK_POPCNTB.  Uncomment rs6000_sched_restricted_insns_priority
20097         and rs6000_sched_costly_dep.
20098         * config/rs6000/rs6000.h (TARGET_POPCNTB): New.
20099         (TARGET_XL_COMPAT): Delete.
20100         * config/rs6000/rs6000.md (UNSPEC_POPCNTB): New.
20101         (popcount<mode>2): New.
20102         (popcntb<mode>2): New.
20103         * config/rs6000/rs6000.opt (mpopcntb): New.
20104
20105         * opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask
20106         if variable name exists.
20107
20108 2005-05-07  Matt Kraai  <kraai@ftbfs.org>
20109
20110         * Makefile.in (c-gimplify.o): Depend on $(RTL_H) instead of rtl.h.
20111
20112 2005-05-07  Richard Henderson  <rth@redhat.com>
20113
20114         PR target/21412
20115         * config/rs6000/rs6000.c (rs6000_emit_move): Look for tls addresses
20116         with constant offsets.
20117
20118 2005-05-07  Nathan Sidwell  <nathan@codesourcery.com>
20119
20120         * config/v850/v850.c (print_operand): Use gcc_assert and
20121         gcc_unreachable, as appropriate.
20122         (print_operand_address, v850_handle_data_area_attribute,
20123         v850_encode_data_area, construct_restore_jr, construct_save_jarl,
20124         v850_insert_attributes, construct_prepare_instruction): Likewise.
20125         * config/v850/v850.h (INITIAL_ELIMINATION_OFFSET): Likewise.
20126         * config/v850/v850.md (movsicc, *sasf_1): Likewise.
20127
20128 2005-05-07  Kazu Hirata  <kazu@cs.umass.edu>
20129
20130         * tree-ssa-loop-ivcanon.c, config/i386/i386.c,
20131         config/rs6000/rs6000.h: Fix comment typos.
20132
20133 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
20134
20135         * doc/invoke.texi: Remove documentation for MIPS' -mint64 option.
20136         * config/mips/mips.c (TARGET_SCALAR_MODE_SUPPORTED_P): Delete.
20137         (mips_scalar_mode_supported_p): Delete.
20138
20139 2005-05-06  Eric Christopher  <echristo@redhat.com>
20140
20141         * config/mips/mips.opt: Remove -mint64 option.
20142         * config/mips/mips.c (override_options): Remove -mint64
20143         handling.
20144         * config/mips/mips.h (INT_TYPE_SIZE): Define to 32.
20145         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove
20146         64-bit integer handling.
20147         * doc/invoke.texi (Option Summary): Remove -mint64 for
20148         mips.
20149
20150 2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>
20151
20152         PR tree-optimization/19401
20153         * tree-flow.h (tree_unroll_loops_completely): Declaration changed.
20154         * tree-ssa-loop-ivcanon.c (enum unroll_level): New.
20155         (estimated_unrolled_size): New function.
20156         (try_unroll_loop_completely, canonicalize_loop_induction_variables,
20157         tree_unroll_loops_completely): Always unroll loops if the code size
20158         does not increase.
20159         * tree-ssa-loop.c (tree_complete_unroll): Indicate whether all
20160         loops should be unrolled completely.
20161         (gate_tree_complete_unroll): Run complete unrolling unconditionally.
20162
20163 2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>
20164
20165         PR rtl-optimization/21254
20166         * loop-iv.c (iv_number_of_iterations): Simplify infiniteness
20167         assumptions for loops that otherwise do not roll.
20168         (find_simple_exit): Prefer # of iterations that is guaranteed
20169         not to be infinite.
20170         * loop-unroll.c (decide_peel_once_rolling,
20171         decide_peel_completely): Check whether the loop is infinite.
20172
20173 2005-05-06  Pat Haugen  <pthaugen@us.ibm.com>
20174
20175         * config/rs6000/sysv4.opt: Fix typo.
20176
20177 2005-05-06  Denis Vlasenko  <vda@port.imtp.ilyichevsk.odessa.ua>
20178             Jakub Jelinek  <jakub@redhat.com>
20179
20180         PR target/21329
20181         * config/i386/i386.c (ix86_expand_movmem): Don't use rep; movsb
20182         for -Os if (movsl;)*(movsw;)?(movsb;)? sequence is shorter.
20183         Don't use rep; movs{l,q} if the repetition count is really small,
20184         instead use a sequence of movs{l,q} instructions.
20185
20186 2005-05-06  Jeff Law  <law@redhat.com>
20187
20188         PR tree-optimization/21380
20189         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
20190         thread through a block with no preds.
20191
20192 2005-05-06  Kazu Hirata  <kazu@cs.umass.edu>
20193
20194         * tree-ssa-operands.c (clobbered_v_may_defs, clobbered_vuses,
20195         ro_call_vuse, fini_ssa_operands, add_call_clobber_ops,
20196         add_call_read_ops): Use VEC instead of VARRAY.
20197
20198 2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
20199
20200         * config/mcore/mcore.c (mcore_print_operand_address): Use
20201         gcc_assert and gcc_unreachable as appropriate.
20202         (mcore_print_operand, mcore_gen_compare_reg, mcore_output_call,
20203         mcore_output_andn, output_inline_const, mcore_output_move,
20204         mcore_output_movedouble, mcore_expand_block_move,
20205         layout_mcore_frame, mcore_initial_elimination_offset,
20206         mcore_expand_prolog, mcore_mark_dllexport,
20207         mcore_mark_dllimport): Likewise.
20208         * config/mcore/mcore.h (switch_to_section): Likewise.
20209         * config/mcore/mcore.md: Likewise.
20210
20211 2005-05-06  Aldy Hernandez  <aldyh@redhat.com>
20212
20213         * config/rs6000/linux64.h: Remove MASK_PROFILE_KERNEL, and
20214         TARGET_PROFILE_KERNEL.
20215
20216         * config/rs6000/rs6000.c (output_profile_hook): Add comment to
20217         TARGET_PROFILE_KERNEL use.
20218
20219 2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
20220
20221         * config/m32r/m32r.c (m32r_encode_section_info): Use gcc_assert
20222         and gcc_unreachable, as appropriate.
20223         (gen_compare, gen_split_move_double, m32r_setup_incoming_varargs,
20224         m32r_expand_prologue, m32r_output_function_epilogue,
20225         m32r_legitimize_pic_address, m32r_print_operand_address,
20226         emit_cond_move, m32r_function_symbol,
20227         m32r_output_block_move): Likewise.
20228         * config/m32r/m32r.h (INITIAL_ELIMINATION_OFFSET): Likewise.
20229         * config/m32r/m32r.md ( *movsi_insn, *zero_branch_insn,
20230         *rev_zero_branch_insn): Likewise.
20231
20232 2005-05-06  Jakub Jelinek  <jakub@redhat.com>
20233
20234         PR c++/20961
20235         * varasm.c (merge_weak): Remove NEWDECL from WEAK_DECLS chain
20236         if both NEWDECL and OLDDECL are already weak.
20237
20238 2005-05-06  Richard Sandiford  <rsandifo@redhat.com>
20239
20240         * config/rs6000/sysv4.h (EXTRA_SUBTARGET_SWITCHES): Delete.
20241
20242 2005-05-05  J"orn Rennecke  <joern.rennecke@st.com>
20243             Kaz Kojima  <kkojima@gcc.gnu.org>
20244
20245         * config/sh/sh.c (sh_builtin_saveregs): Use copy_to_mode_reg
20246         and plus_constant.
20247
20248 2005-05-05  Aldy Hernandez  <aldyh@redhat.com>
20249             David Edelsohn  <edelsohn@gnu.org>
20250
20251         * config.gcc: Add .opt magic for the rs6000 ports.
20252
20253         * doc/invoke.texi: Document -mabi= option properly.  Document
20254         -misel and -mno-sel.  Document -mspe and -mno-spe.  Document
20255         -mvrsave and -mno-vrsave.  Document deprecation of -mspe= and
20256         -misel=.
20257
20258         * config/rs6000/aix.h: Remove XL_COMPAT stuff.  Remove
20259         SUBTARGET_SWITCHES and SUBSUBTARGET_SWITCHES.  Define
20260         TARGET_XL_COMPAT.
20261
20262         * config/rs6000/aix.opt: New.
20263         * config/rs6000/aix41.opt: New.
20264         * config/rs6000/aix64.opt: New.
20265         * config/rs6000/darwin.opt: New.
20266         * config/rs6000/linux64.opt: New.
20267         * config/rs6000/rs6000.opt: New.
20268         * config/rs6000/sysv4.opt: New.
20269
20270         * config/rs6000/sysv4.h: Delete definitions of MASK_* and
20271         associated TARGET_*.  Remove SUBTARGET_OPTIONS,
20272         SUBTARGET_SWITCHES.
20273         Define TARGET_USES_SYSV4_OPT.
20274         * config/rs6000/aix41.h: Remove SUBSUBTARGET_SWITCHES.
20275         * config/rs6000/aix43.h: Remove SUBSUBTARGET_SWITCHES.  Define
20276         TARGET_USES_AIX64_OPT.
20277         * config/rs6000/aix51.h: Same.
20278         * config/rs6000/aix52.h: Same.
20279         * config/rs6000/darwin.h: Remove SUBTARGET_SWITCHES,
20280         MASK_MACHO_DYNAMIC_NO_PIC, TARGET_MACHO_DYNAMIC_NO_PIC.
20281         Use TARGET_ALTIVEC_VRSAVE instead of rs6000_altivec_vrsave.
20282         Define TARGET_DYNAMIC_NO_PIC as TARGET_MACHO_DYNAMIC_NO_PIC.
20283         * config/rs6000/linux64.h: Use
20284         rs6000_explicit_options.  Remove EXTRA_SUBTARGET_SWITCHES.
20285
20286         * config/rs6000/rs6000.c: Remove definitions of
20287         rs6000_sched_restricted_insns_priority,
20288         rs6000_long_double_size_string, rs6000_altivec_vrsave,
20289         rs6000_altivec_vrsave_string, rs6000_isel, rs6000_spe,
20290         rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
20291         rs6000_abi_string, rs6000_warn_altivec_long, rs6000_longcall,
20292         rs6000_alignment_string.  Define rs6000_explicit_options.
20293         (rs6000_parse_abi_options): Remove.
20294         (rs6000_parse_alignment_option): Remove.
20295         (rs6000_parse_float_gprs_option): Remove.
20296         (rs6000_handle_option): New.  Define TARGET_HANDLE_OPTION.  Define
20297         TARGET_DEFAULT_TARGET_FLAGS.
20298         (rs6000_override_options): Revamp to use new .opt machinery.
20299
20300         * config/rs6000/rs6000.h: Remove old MASK_* and TARGET_* in favor
20301         of new .opt machinery.  Remove target_flags.  Redefine
20302         TARGET_MFCRF and TARGET_POWERPC64.  Remove TARGET_SWITCHES,
20303         SUBTARGET_SWITCHES, TARGET_OPTIONS, SUBTARGET_OPTIONS,
20304         rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
20305         rs6000_altivec_vrsave_string, rs6000_altivec_vrsave,
20306         rs6000_longcall_switch, rs6000_default_long_calls,
20307         rs6000_sched_costly_dep_str, rs6000_sched_costly_dep,
20308         rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch, and
20309         TARGET_ALTIVEC_VRSAVE.
20310
20311 2005-05-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
20312
20313         * config.gcc (hppa1.1-*-rtems*): Remove.
20314         * config/pa/rtems.h: Remove.
20315
20316 2005-05-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
20317
20318         * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
20319         Exclude roe/603e multilib variants.
20320
20321 2005-05-04  Denis Chertykov  <denisc@overta.ru>
20322
20323         PR target/21284
20324         * config/avr/avr.c (avr_output_addr_vec_elt): Use special section
20325         for output.
20326
20327 2005-05-05  Richard Sandiford  <rsandifo@redhat.com>
20328
20329         * config.gcc (arm*-wince-pe*, arm-*-pe*, strongarm-*-pe): Add
20330         arm/pe.opt to $extra_options.
20331         * config/arm/arm.h (target_flags, target_fpu_name, target_fpe_name)
20332         (target_float_abi_name, target_float_switch, target_abi_name)
20333         (ARM_FLAG_APCS_FRAME, ARM_FLAG_POKE, ARM_FLAG_FPE, ARM_FLAG_APCS_STACK)
20334         (ARM_FLAG_APCS_FLOAT, ARM_FLAG_APCS_REENT, ARM_FLAG_BIG_END)
20335         (ARM_FLAG_INTERWORK, ARM_FLAG_LITTLE_WORDS, ARM_FLAG_NO_SCHED_PRO)
20336         (ARM_FLAG_ABORT_NORETURN, ARM_FLAG_SINGLE_PIC_BASE)
20337         (ARM_FLAG_LONG_CALLS, ARM_FLAG_THUMB, THUMB_FLAG_BACKTRACE)
20338         (THUMB_FLAG_LEAF_BACKTRACE, THUMB_FLAG_CALLEE_SUPER_INTERWORKING)
20339         (THUMB_FLAG_CALLER_SUPER_INTERWORKING, CIRRUS_FIX_INVALID_INSNS)
20340         (TARGET_APCS_FRAME, TARGET_POKE_FUNCTION_NAME, TARGET_FPE)
20341         (TARGET_APCS_STACK, TARGET_APCS_FLOAT, TARGET_APCS_REENT)
20342         (TARGET_BIG_END, TARGET_INTERWORK, TARGET_LITTLE_WORDS)
20343         (TARGET_NO_SCHED_PRO, TARGET_ABORT_NORETURN, TARGET_SINGLE_PIC_BASE)
20344         (TARGET_LONG_CALLS, TARGET_THUMB, TARGET_CALLER_INTERWORKING)
20345         (TARGET_CIRRUS_FIX_INVALID_INSNS, SUBTARGET_SWITCHES, TARGET_SWITCHES)
20346         (TARGET_OPTIONS, arm_cpu_select, arm_select,  structure_size_string)
20347         (arm_pic_register_string): Delete.
20348         (TARGET_BACKTRACE): Redefine using TARGET_TPCS_LEAF_FRAME and
20349         TARGET_TPCS_FRAME.
20350         (TARGET_DEFAULT, CONDITIONAL_REGISTER_USAGE): Update mask names.
20351         * config/arm/coff.h (TARGET_DEFAULT): Likewise.
20352         * config/arm/elf.h (TARGET_DEFAULT): Likewise.
20353         * config/arm/netbsd-elf.h (TARGET_DEFAULT): Likewise.
20354         * config/arm/netbsd.h (TARGET_DEFAULT): Likewise.
20355         * config/arm/semi.h (TARGET_DEFAULT): Likewise.
20356         * config/arm/uclinux-elf.h (TARGET_DEFAULT): Likewise.
20357         * config/arm/wince-pe.h (TARGET_DEFAULT): Likewise.
20358         * config/arm/pe.h (TARGET_DEFAULT): Likewise.
20359         (TARGET_FLAG_NOP_FUN, TARGET_NOP_FUN_DLLIMPORT): Delete.
20360         (SUBTARGET_SWITCHES): Delete.
20361         * config/arm/arm.c (target_float_switch): Delete.
20362         (arm_cpu_select): Moved from config/arm/arm.h.
20363         (target_fpu_name, target_fpe_name, target_float_abi_name)
20364         (target_abi_name, structure_size_string, arm_pic_register_string)
20365         (arm_select): Make static.
20366         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
20367         (arm_handle_option): New function.
20368         (arm_override_options): Update target_flags checks for new mask names.
20369         Remove target_float_switch code.
20370         (arm_expand_prologue, thumb_expand_prologue): Check
20371         !TARGET_SCHED_PROLOG instead of TARGET_NO_SCHED_PRO.
20372         * config/arm/arm.opt, config/arm/pe.opt: New files.
20373
20374 2005-05-05  Nathan Sidwell  <nathan@codesourcery.com>
20375
20376         * config/arc/arc.c (get_arc_condition_code): Use gcc_assert &
20377         gcc_unreachable as appropriate.
20378         (arc_double_limm_p, arc_setup_incoming_varargs,
20379         arc_compute_function_type, arc_output_function_prologue,
20380         arc_output_function_epilogue, arc_eligible_for_epilogue_delay,
20381         output_shift, arc_print_operand, arc_print_operand_address,
20382         arc_final_prescan_insn): Likewise.
20383         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
20384
20385 2005-05-04  Geoffrey Keating  <geoffk@apple.com>
20386
20387         * config/rs6000/rs6000.md (P): Use TARGET_*BIT rather than
20388         comparing Pmode.
20389         (SDI): New.
20390         (cmp): Delete.
20391         (wd): New.
20392         (add<mode>3, add<mode>3_internal1, add<mode>3_internal2,
20393         add<mode>3_internal3, one_cmpl<mode>2, sub<mode>3, neg<mode>2,
20394         clz<mode>2, ctz<mode>2, ffs<mode>2): New.
20395         (addsi3, addsi3_internal1, addsi3_internal2, addsi3_internal3,
20396         (one_cmplsi2, subsi3, negsi2, clzsi2, ctzsi2, ffssi2): Remove.
20397         (adddi3, adddi3_internal1, adddi3_internal2, adddi3_internal3,
20398         (one_cmpldi2, subdi3, negdi2, clzdi2, ctzdi2, ffsdi2): Remove.
20399         (sync_compare_and_swap<mode>): Use <wd> rather than <cmp>.
20400
20401 2005-05-05  Paul Brook  <paul@codesourcery.com>
20402
20403         * Makefile.in: Replace dependencies on basic-block.h, c-pragma.h,
20404         cfgloop.h, diagnostic.h, insn-attr.h, langhooks-def.h, params.h,
20405         regs.h, system.h, tree-dump.h, tree-gimple.h, tree-scalar-evolution.h
20406         and tree-data-ref.h with *_H variables.
20407
20408 2005-05-05  Kelley Cook  <kcook@gcc.gnu.org>
20409
20410         * config/m32r/xm-m32r.h, config/m32r/xm-linux.h: Delete files.
20411
20412 2005-05-05  Kelley Cook  <kcook@gcc.gnu.org>
20413
20414         * system.h: Poison BYTEORDER and HOST_WORDS_BIG_ENDIAN.
20415
20416 2005-05-04  Gerald Pfeifer  <gerald@pfeifer.com>
20417
20418         * doc/contrib.texi (Contributors): Add Mostafa Hagog and Ayal Zaks.
20419
20420 2005-05-04 Fariborz Jahanian <fjahanian@apple.com>
20421
20422         * config/rs6000/rs6000.c (rs6000_emit_prologue): Emit
20423         setting of vrsave register for current function after
20424         call to save_world is emitted.
20425
20426 2005-05-05  Hans-Peter Nilsson  <hp@bitrange.com>
20427
20428         * config/mmix/predicates.md: New file.
20429         * config/mmix/mmix.c (mmix_symbolic_or_address_operand)
20430         (mmix_reg_or_constant_operand, mmix_reg_cc_operand)
20431         (mmix_foldable_comparison_operator, mmix_comparison_operator)
20432         (mmix_reg_or_0_operand, mmix_reg_or_8bit_operand): Remove.
20433         * config/mmix/mmix.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
20434         Don't define.
20435         * config/mmix/mmix.md: Include predicates.md.
20436         ("call", "call_value"): Force address to register if it isn't a
20437         mmix_symbolic_or_address_operand.
20438
20439 2005-05-04  Andrew MacLeod  <amacleod@redhat.com>
20440
20441         * tree-flow-inline.h (op_iter_init_use, op_iter_init_def): Assert that
20442         the flags are of appropriate types.
20443         (num_ssa_operands): Generalize using the generic interface.
20444         * tree-ssa-dce.c (remove_dead_stmt): Don't ask for kills on a DEF
20445         iterator.
20446
20447 2005-05-04  Richard Sandiford  <rsandifo@redhat.com>
20448
20449         * protoize.c (version_flag, quiet_flag, nochange_flag, nosave_flag)
20450         (keep_flag, local_flag, global_flag, cplusplus_flag): Make extern.
20451
20452 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
20453
20454         * tree-outof-ssa.c (edge_leader, stmt_list,
20455         analyze_edges_for_bb): Use VEC instead of VARRAY.
20456         (init_analayze_edges_for_bb, fini_analayze_edges_for_bb): New.
20457         (perform_edge_inserts): Call init_analayze_edges_for_bb and
20458         fini_analayze_edges_for_bb.
20459
20460 2005-05-04  James E Wilson  <wilson@specifixinc.com>
20461
20462         PR driver/21112
20463         * gcc.c (process_command): In the second argv scan loop, ignore
20464         Xassembler and Xpreprocessor, along with their argument.
20465
20466 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
20467
20468         * tree-flow-inline.h, tree-ssa-operands.c,
20469         tree-ssa-operands.h, tree-ssa-opfinalize.h:
20470         Likewise. tree-vn.c: Fix comment typos.
20471         * doc/passes.texi, doc/tree-ssa.texi: Fix typos.
20472
20473 2005-05-04  Paolo Bonzini  <bonzini@gnu.org>
20474
20475         * doc/tm.texi (Target Hooks): Document
20476         TARGET_RESOLVE_OVERLOADED_BUILTIN.
20477
20478 2005-05-04  Paul Brook  <paul@codesourcery.com>
20479
20480         * Makefile.in: Change dependencies on target.h to $(TARGET_H).
20481
20482 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
20483
20484         * dwarf2out.c (incomplete_types, retry_incomplete_types,
20485         gen_struct_or_union_type_die, dwarf2out_init): Use VEC instead
20486         of VARRAY.
20487
20488         * loop-unroll.c (var_to_expand, analyze_insn_to_expand_var,
20489         get_expansion, expand_var_during_unrolling,
20490         insert_var_expansion_initialization,
20491         combine_var_copies_in_loop_exit, release_var_copies): Use VEC
20492         instead of VARRAY.
20493
20494         * tree-ssa-loop-ivopts.c (rewrite_address_base): Don't call
20495         update_stmt.
20496
20497 2004-05-03  Andrew Pinski  <pinskia@physics.uc.edu>
20498
20499         PR middle-end/15618
20500         * fold-const.c (fold_widened_comparison): Treat BOOLEAN_TYPE
20501         the same as INTEGER_TYPE.
20502         (fold_binary): Fold "bool_var != 0" to bool_var.
20503         Fold "bool_var == 1" to bool_var.
20504
20505 2004-05-03  Richard Henderson  <rth@redhat.com>
20506
20507         PR middle-end/21318
20508         * function.c (instantiate_virtual_regs_in_insn): Use the mode
20509         from recog_data instead of insn_data.
20510
20511 2005-05-03  DJ Delorie  <dj@redhat.com>
20512
20513         * common.opt (fdiagnostics-show-option): No variable is needed.
20514         * diagnostic.h (diagnostic_context): Add show_option_requested flag.
20515         * diagnostic.c (diagnostic_initialize): Initialize show_option_requested.
20516         (diagnostic_report_diagnostic): Test for enabled diagnostics here.
20517         Save and restore original message format.  Use flag in context
20518         instead of global.
20519         (warning): Don't test for enabled warnings here.
20520         * opts.c (common_handle_option): Handle -fdiagnostics-show-option
20521         here.
20522
20523 2005-05-04  Kelley Cook  <kcook@gcc.gnu.org>
20524
20525         * config/m32r/xm-m32r.h: Don't define HOST_WORDS_BIG_ENDIAN.
20526         * config/m32r/xm-linux.h: Don't undefine HOST_WORDS_BIG_ENDIAN.
20527         * mips-tfile.c: Use WORDS_BIG_ENDIAN instead of HOST_WORDS_BIG_ENDIAN.
20528         * aclocal.m4: Don't include accross.m4.
20529         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
20530         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
20531         * configure, config.in: Regenerate.
20532
20533 2005-05-04  Jakub Jelinek  <jakub@redhat.com>
20534
20535         PR middle-end/21265
20536         * expr.h (enum block_op_methods): Add BLOCK_OP_TAILCALL.
20537         (clear_storage): Add argument.
20538         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall):
20539         Add tailcall argument, set CALL_EXPR_TAILCALL of the CALL_EXPR to
20540         tailcall.
20541         (emit_block_move): Handle BLOCK_OP_TAILCALL method.
20542         (clear_storage): Add method argument, handle BLOCK_OP_TAILCALL.
20543         (store_expr, store_constructor): Adjust callers.
20544         * builtins.c (expand_builtin_memcpy): Pass BLOCK_OP_TAILCALL
20545         to emit_block_move if CALL_EXPR_TAILCALL (exp).
20546         (expand_builtin_memmove): Add ORIG_EXP argument, copy
20547         CALL_EXPR_TAILCALL from ORIG_EXP to the new CALL_EXPR.
20548         (expand_builtin_bcopy): Replace ARGLIST and TYPE arguments
20549         with EXP.  Pass EXP to expand_builtin_memmove.
20550         (expand_builtin_memset): Add ORIG_EXP argument, pass
20551         BLOCK_OP_TAILCALL to clear_storage if CALL_EXPR_TAILCALL (orig_exp).
20552         (expand_builtin_bzero): Replace ARGLIST argument with EXP.
20553         Pass EXP to expand_builtin_memset.
20554         (expand_builtin_strcmp): Copy CALL_EXPR_TAILCALL from EXP to
20555         the new CALL_EXPR.
20556         (expand_builtin_strncmp): Likewise.
20557         (expand_builtin_printf): Replace ARGLIST argument with EXP.
20558         Copy CALL_EXPR_TAILCALL from EXP to the new CALL_EXPR.
20559         (expand_builtin_fprintf): Likewise.
20560         (expand_builtin): Adjust calls to
20561         expand_builtin_{memmove,bcopy,memset,bzero,{,f}printf}.
20562
20563         * config/i386/i386.c (ix86_expand_vector_set): Fix setting 3rd and 4th
20564         item in V4SF mode.
20565
20566         PR rtl-optimization/21239
20567         * combine.c (combine_simplify_rtx) <case VEC_SELECT>: Fix a typo.
20568
20569 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
20570
20571         * tree-flow.h (tree_ann_common_d): Move aux to ...
20572         (stmt_ann_d): ... here.
20573         * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
20574         move_computations_stmt, schedule_sm): Update references to
20575         aux.
20576         * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
20577
20578         * tree-cfg.c (remove_bb): Remove a redundant call to
20579         set_bb_for_stmt.
20580         * tree-if-conv.c (replace_phi_with_cond_modify_expr):
20581         Likewise.
20582
20583 2005-05-03  Richard Henderson  <rth@redhat.com>
20584
20585         * config/rs6000/rs6000.c: Remove conflict markers.
20586
20587         * cfg.c (dump_flow_info): Use max_reg_num, not max_regno.
20588
20589 2005-05-03  James E Wilson  <wilson@specifixinc.com>
20590
20591         * dwarf2out.c (lookup_filename): Call maybe_emit_file.
20592
20593 2005-05-03  DJ Delorie  <dj@redhat.com>
20594
20595         * c-decl.c (store_parm_decls_oldstyle): Let diagnostic machinery
20596         decide if the warning will be printed.
20597         * calls.c (expand_call): Likewise.
20598         * function.c (init-function_start): Likewise.
20599
20600         * common.opt (-fdiagnostics-show-option): New.
20601         * opts.c (option_enabled): Accept the option index instead of a
20602         pointer to the option descriptor.
20603         * opts.h (option_enabled): Likewise.
20604         * toplev.c (print_switch_values): Pass option index, not option
20605         descriptor.
20606         * diagnostic.h (diagnostic_info): Add option_index.
20607         * diagnostic.c: Include opts.h.
20608         (diagnostic_set_info): Initialize option_index.
20609         (diagnostic_report_diagnostic): Amend option name if appropriate.
20610         (warning): Check to see if the specified warning is enabled.
20611         Store option index.
20612         * doc/invoke.texi (-fdiagnostics-show-options): Document.
20613
20614 2005-05-03  Richard Henderson  <rth@redhat.com>
20615
20616         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix ALL_REGS and
20617         SPEC_OR_GEN_REGS definitions.
20618
20619 2005-05-03  Alexandre Oliva  <aoliva@redhat.com>
20620
20621         PR target/16888
20622         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Clear reg names
20623         for unavailable registers.
20624
20625 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
20626
20627         * tree-cfg.c (tree_forwarder_block_p): Fix a typo.
20628
20629         * cfglayout.c (block_locators_blocks,
20630         insn_locators_initialize, insn_scope): Use VEC instead of
20631         VARRAY.
20632
20633         * tree-mudflap.c (deferred_static_decls, mudflap_enqueue_decl,
20634         mudflap_finish_file, mudflap_finish_file): Use VEC instead of
20635         VARRAY.
20636
20637 2005-05-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
20638
20639         * config/sparc/predicates.md (const_compl_high_operand): New.
20640         * config/sparc/sparc.c (sparc_emit_set_safe_HIGH64): Rename into
20641         gen_safe_HIGH64.
20642         (sparc_emit_set_const64_quick1): Adjust for above change.
20643         (sparc_emit_set_const64_quick2): Likewise.
20644         (sparc_emit_set_const64_longway): Likewise.
20645         (sparc_emit_set_const64): Likewise.
20646         * config/sparc/sparc.md (movhi_const64_special, movsi_const64_special,
20647         movdi_const64_special): Delete.
20648         (logical constant splitters): Use const_compl_high_operand.
20649
20650 2005-05-03  Richard Guenther  <rguenth@gcc.gnu.org>
20651
20652         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Use STRIP_TYPE_NOPS
20653         rather than STRIP_NOPS.
20654
20655 2005-05-03  Jakub Jelinek  <jakub@redhat.com>
20656
20657         PR rtl-optimization/21330
20658         * loop-unswitch.c (may_unswitch_on): Set *cinsn only when
20659         returning non-NULL.
20660         (unswitch_single_loop): Clear cinsn when retrying.
20661
20662         PR target/21297
20663         * config/i386/i386.c (legitimize_address): When canonicalizing
20664         ASHIFT into MULT, multiply by 1 << shift_count instead of
20665         1 << log2 (shift_count).
20666
20667 2005-05-03  Andrew MacLeod  <amacleod@redhat.com>
20668
20669         * lambda-code.c (gcc_loop_to_lambda_loop,
20670         lambda_loopnest_to_gcc_loopnest, phi_loop_edge_uses_def,
20671         stmt_is_bumper_for_loop, perfect_nest_p, replace_uses_of_x_with_y): Use
20672         generic operand interface.
20673         * tree-data-ref.c (find_data_references_in_loop): Use generic interface.
20674         * tree-dfa.c (collect_dfa_stats_r, mark_new_vars_to_rename): Use
20675         generic operand interface.
20676         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
20677         link_imm_use, link_imm_use_stmt, relink_imm_use, relink_imm_use_stmt,
20678         next_safe_imm_use, has_zero_uses, has_single_use, single_imm_use,
20679         num_imm_uses): Use ssa_use_operand_t.
20680         (get_def_ops, get_use_ops, get_v_may_def_ops, get_vuse_ops,
20681         get_v_must_def_ops): Delete.
20682         (get_def_from_ptr, get_phi_result_ptr): Get def directly now.
20683         (get_use_op_ptr, get_def_op_ptr, get_v_may_def_result_ptr,
20684         get_v_may_def_op_ptr, get_vuse_op_ptr, get_v_must_def_result_ptr,
20685         get_v_must_def_kill_ptr): Delete.
20686         (delink_stmt_imm_use): Move and use new operand interface.
20687         (op_iter_next_use, op_iter_next_def, op_iter_next_tree, op_iter_init,
20688         op_iter_next_tree): Use new operand implementation.
20689         (clear_and_done_ssa_iter): New.  Initialize a blank operand iterator.
20690         (op_iter_init_use, op_iter_init_def, op_iter_init_tree): Add iterator
20691         type check.
20692         (op_iter_next_mustdef, op_iter_next_maydef,
20693         op_iter_next_must_and_may_def): Delete. Replace with...
20694         (op_iter_next_maymustdef): New.  Combine must and may next operations.
20695         (op_iter_init_maydef, op_iter_init_mustdef,
20696         op_iter_init_must_and_may_def): Use new interface.
20697         (single_ssa_tree_operand ): New.  Process single operands only as trees.
20698         (single_ssa_use_operand): New.  Process single operands only as uses.
20699         (single_ssa_def_operand): New.  Process single operands only as defs.
20700         (zero_ssa_operands): New.  Return TRUE if there are zero operands of the
20701         specified types.
20702         (num_ssa_operands): New.  Count the number of specified operands.
20703         (compare_ssa_operands_equal): New.  Compare two statements' operands.
20704         (single_phi_def): New.  Return true if PHI has one def of the specified
20705         operand type.
20706         (op_iter_init_phiuse): New.  Initialize the iterator for PHI arguments.
20707         (op_iter_init_phidef): New.  Initialize the iterator for the PHI def.
20708         * tree-flow.h (struct immediate_use_iterator_d): Use ssa_use_operand_t.
20709         (struct stmt_ann_d): Operands field no longer require GTY().
20710         (vn_compute, vn_lookup_or_add, vn_add, vn_lookup): Change prototype.
20711         * tree-into-ssa.c (mark_def_sites): Use SSA_OP_VMUSTKILL.
20712         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
20713         dump_replaceable_exprs, rewrite_trees): Use generic interface.
20714         * tree-phinodes.c (make_phi_node, release_phi_node, resize_phi_node):
20715         Use use_operand_p instead of ssa_imm_use_t *.
20716         * tree-pretty-print.c (dump_vops): check if operands are active before
20717         dumping virtual operands.
20718         * tree-sra.c (sra_walk_function): Use ZERO_SSA_OPERANDS.
20719         * tree-ssa-ccp.c (likely_value): Use ZERO_SSA_OPERANDS.
20720         (ccp_fold): Use new interface.
20721         (ccp_visit_stmt): Remove unused variables and code.
20722         (convert_to_gimple_builtin): Insert statements before calling
20723         mark_new_vars_to_rename.
20724         * tree-ssa-copy.c (stmt_may_generate_copy): Use ZERO_SSA_OPERANDS.
20725         (copy_prop_visit_cond_stmt): Use generic interface.
20726         * tree-ssa-dom.c (struct expr_hash_elt): Use stmt pointer, not the
20727         annotation in table.
20728         (thread_across_edge): Use generic interface.
20729         (initialize_hash_element): Initialzie with stmt, not annotation.
20730         (eliminate_redundant_computations): Use generic interface.
20731         (record_equivalences_from_stmt): Pass stmt, not annotation.
20732         (avail_expr_hash, real_avail_expr_hash, avail_expr_eq): Use generic
20733         interface.
20734         * tree-ssa-dse.c (dse_optimize_stmt): Use ZERO_SSA_OPERANDS.
20735         * tree-ssa-loop-ivopts.c (find_invariants_stmt,
20736         find_interesting_uses_stmt, protect_loop_closed_ssa_form_use): Use
20737         generic operand interface.
20738         * tree-ssa-loop-niter.c (chain_of_csts_start, get_val_for): Use generic
20739         interface.
20740         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Use Generic operand
20741         Interface.
20742         * tree-ssa-operands.c (struct opbuild_list_d): New.  Operand build type.
20743         (build_defs, build_uses, build_v_may_defs, build_vuses,
20744         build_v_must_defs): Change type to struct opbuild_list_d.
20745         (ops_active): New.  Operands active boolean.
20746         (operand_memory, operand_memory_index): New.  Operand memory managers.
20747         (allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
20748         allocate_vuse_optype, allocate_v_must_def_optype): Delete.
20749         (free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs):
20750         Change from functions to static variable list heads.
20751         (opbuild_initialize_virtual): New.  Initialize a virtual build list.
20752         (opbuild_initialize_real): New.  Initialize a virtual build list.
20753         (opbuild_free): New.  Free a build list.
20754         (opbuild_num_elems): New.  Number of items in a list.
20755         (opbuild_append_real): New.  Add a real (tree *) operand.
20756         (opbuild_append_virtual): New.  Add and sort a virtual (tree) operand.
20757         (opbuild_first): New.  Return first element index in a list.
20758         (opbuild_next): New.  Return next element in a list.
20759         (opbuild_elem_real): New.  Return real element.
20760         (opbuild_elem_virtual): New.  Return virtual element.
20761         (opbuild_elem_uid): New.  Return UID of virtual element.
20762         (opbuild_clear): New.  Reset an operand list.
20763         (opbuild_remove_elem): New.  Remove an element form a list.
20764         (ssa_operands_active): New.  Return true if operand cache is active.
20765         (init_ssa_operands, fini_ssa_operands): Initialize new implementation.
20766         (ssa_operand_alloc): New.  Allocate memory from an operand chunk.
20767         (correct_use_link): Use use_operand_p.
20768         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_defs,
20769         finalize_ssa_vuses, finalize_ssa_v_must_defs): New implmentation.
20770         (cleanup_v_may_defs): Use new implmentation.
20771         (finalize_ssa_stmt_operands, start_ssa_stmt_operands): New
20772         implementation.
20773         (append_def, append_use, append_v_may_def, append_vuse,
20774         append_v_must_def): Call opbuild_append routine instead of using varray.
20775         (build_ssa_operands): Simplify to simply use stmt, don't maintain a
20776         global parse_old_ops variable.
20777         (free_ssa_operands): New implementation.
20778         (update_stmt_operands): Move.  Change argument to build_ssa_operands.
20779         (copy_virtual_operands): Move. New generic implementation.
20780         (create_ssa_artficial_load_stmt): Move. New implementation.
20781         (swap_tree_operands): Update for new implementation.
20782         (get_expr_operands): Add stmt parameter to calls to swap_tree_operands.
20783         (add_call_clobber_ops, add_call_read_ops): Initialize opbuild list
20784         rather than a varray.
20785         (verify_imm_links): Use use_operand_p.
20786         (dump_immediate_uses_for): If the immediate use variable is a virtual
20787         variable, show the virtual ops in the stmt.
20788         * tree-ssa-operands.h (def_operand_p): No longer a structure.
20789         (NULL_DEF_OPERAND_P): Now a #define.
20790         (def_optype_d, use_optype_d, v_def_use_operand_type, v_may_def_optype_d,
20791         vuse_operand_type, vuse_optype_d, v_must_def_optype_d): Delete.
20792         (def_optype_d, use_optype_d, maydef_optype_d, vuse_optype_d,
20793         mustdef_optype_d): New.  Use Linked list representation.
20794         (SSA_OPERAND_MEMORY_SIZE): New.  Size of operand memory chunk.
20795         (struct ssa_operand_memory_d): New.  Allocated Chunk node.
20796         (struct stmt_operands_d): Change to new pointers that are not GTY.
20797         (STMT_USE_OPS, NUM_USES, SET_USE_OP, STMT_DEF_OPS, NUM_DEFS, SET_DEF_OP,
20798         STMT_V_MAY_DEF_OPS, NUM_V_MAY_DEFS, SET_V_MAY_DEF_RESULT,
20799         SET_V_MAY_DEF_OP, STMT_VUSE_OPS, NUM_VUSES, SET_VUSE_OP,
20800         STMT_V_MUST_DEF_OPS, NUM_V_MUST_DEFS, SET_V_MUST_DEF_RESULT,
20801         SET_V_MUST_DEF_KILL): Delete.
20802         (V_MAY_DEF_OPS, V_MAY_DEF_RESULT_PTR, V_MAY_DEF_RESULT,
20803         V_MAY_DEF_OP_PTR, V_MAY_DEF_OP): Rename to MAYDEF_*.
20804         (V_MUST_DEF_OPS, V_MUST_DEF_RESULT_PTR, V_MUST_DEF_RESULT,
20805         V_MUST_DEF_KILL_PTR, V_MUST_DEF_KILL): Rename to MUSTDEF_*.
20806         (enum ssa_op_iter_type): Operand iterator typechecking values.
20807         (struct ssa_operand_iterator_d): Use linked lists of operands.
20808         (SSA_OP_VMUSTDEFKILL): Rename to SSA_OP_VMUSTKILL.
20809         (FOR_EACH_SSA_MAYDEF_OPERAND, FOR_EACH_SSA_MUSTDEF_OPERAND,
20810         FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): Use op_iter_next_maymustdef.
20811         (FOR_EACH_PHI_ARG): New.  Iterate over PHI arguments.
20812         (FOR_EACH_PHI_OR_STMT_USE): New.  Iterate over PHI or stmt uses.
20813         (FOR_EACH_PHI_OR_STMT_DEF): New.  Iterate over PHI or stmt defs.
20814         (SINGLE_SSA_TREE_OPERAND, SINGLE_SSA_USE_OPERAND,
20815         SINGLE_SSA_DEF_OPERAND, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): New.
20816         * tree-ssa-opfinalize.h: New.  Function templates for expansion.
20817         (FINALIZE_ALLOC): Expands into alloc_def, alloc_use, alloc_maydef,
20818         alloc_vuse, and alloc_mustdef.
20819         (FINALIZE_FUNC): Expands into finalize_ssa_def_ops,
20820         finalize_ssa_use_ops, finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
20821         and finalize_ssa_v_must_def_ops.
20822         * tree-ssa-pre.c (add_to_sets): Pass tree to vn_add.
20823         (create_value_expr_from): Use stmt not vuse_optype as a parameter. Pass
20824         stmt around.
20825         (compute_avail): Use generic iterator interface.
20826         * tree-ssa-propagate.c (first_vdef): Use generic operand interface.
20827         (stmt_makes_single_load, stmt_makes_single_store): Use
20828         ZERO_SSA_OPERANDS.
20829         * tree-ssa-sink.c (is_hidden_global_store): Use ZERO_SSA_OPERANDS.
20830         (statement_sink_location): Use generic interface.
20831         * tree-ssa.c (verify_ssa):  Use %p in fprintf.  Use generic interface.
20832         (delete_tree_ssa): Don't call release_defs.  Call release_ssa_name and
20833         reset the immediate use link nodes.
20834         (stmt_references_memory_p): Use ZERO_SSA_OPERANDS.
20835         * tree-ssanames.c (make_ssa_name): Use use_operand_p.
20836         * tree-tailcall.c (find_tail_calls): Use ZERO_SSA_OPERANDS.
20837         (eliminate_tail_call): Use generic operand interface.
20838         * tree-vect-analyze.c (vect_analyze_data_refs): Use ZERO_SSA_OPERANDS.
20839         (vect_mark_relevant, vect_mark_stmts_to_be_vectorized): Use generic
20840         interface.
20841         * tree-vect-transform.c (update_vuses_to_preheader): Use generic
20842         interface.
20843         * tree-vectorizer.c (rename_variables_in_bb): Use generic interface.
20844         * tree-vn.c (struct val_expr_pair_d): Cache statment pointer instead of
20845         vuse_optype.
20846         (vn_compute, val_expr_pair_hash, vn_add, vn_lookup, vn_lookup_or_add):
20847         Use statement pointer instead of vuse_optype.  Use generic interface.
20848         * tree-vrp.c (maybe_add_assert_expr): Use generic interface.
20849         (stmt_interesting_for_vrp, vrp_visit_stmt): Use ZERO_SSA_OPERANDS.
20850         * tree.h (struct ssa_imm_use_d): Renamed to ssa_use_operand_d.
20851         (tree_ssa_name, phi_arg_d): Use ssa_use_operand_d.
20852         * doc/tree-ssa.texi: Update documentation for operand interface.
20853
20854 2005-05-03  Nathan Sidwell  <nathan@codesourcery.com>
20855
20856         * config/darwin.c (machopic_define_symbol): Use gcc_assert or
20857         gcc_unreachable as appropriate.
20858         (machopic_function_base_name, machopic_indirect_data_reference,
20859         machopic_legitimize_pic_address, darwin_non_lazy_pcrel): Likewise.
20860         * config/host-darwin.c (darwin_gt_pch_use_address): Likewise
20861         * config/rs6000/altivec.md (*mov<mode>_internal,
20862         build_vector_mask_for_load): Likewise.
20863         * config/rs6000/darwin.md (movdf_low_si, movdf_low_di,
20864         *call_nonlocal_darwin64, *call_value_nonlocal_darwin64,
20865         *sibcall_symbolic_64, *sibcall_value_symbolic_64): Likewise.
20866         * config/rs6000/predicates.md (easy_fp_constant,
20867         logical_operand): Likewise.
20868         * config/rs6000/rs6000.c (spe_expand_predicate_builtin,
20869         compute_save_world_info, rs6000_emit_prologue,
20870         rs6000_output_mi_thunk): Reword comments to avoid 'abort'.
20871         * config/rs6000/host-darwin.c (segv_handler): Use fancy_abort
20872         directly.
20873
20874 2005-05-03  Uros Bizjak  <uros@kss-loka.si>
20875
20876         PR middle-end/21282
20877         * convert.c (convert_to_integer): Convert ceil and floor in
20878         c99 mode only.
20879
20880 2005-04-29  Geoffrey Keating  <geoffk@apple.com>
20881
20882         PR target/20813
20883         * config/rs6000/rs6000.md (floatsidf2_internal): Merge to create
20884         define_insn_and_split.  Split only when memory operand is
20885         offsettable.  Use adjust_address rather than plus_constant.
20886         (floatunssidf2_internal): Likewise.
20887         (fix_truncdfsi2_internal): Split only when memory operand is
20888         offsettable.  Use adjust_address rather than plus_constant.
20889         (fix_trunctfsi2_internal): Likewise.
20890         (floatsidf2_internal): Likewise.
20891
20892 2005-05-02  Diego Novillo  <dnovillo@redhat.com>
20893
20894         * tree-vrp.c (set_value_range_to_nonnull): Declare inline.
20895         (set_value_range_to_null): Likewise.
20896         (set_value_range_to_varying): New function.  Use it in all
20897         call sites that used to call set_value_range (vr, VR_VARYING, ...).
20898         (extract_range_from_assert): If the integral type has a
20899         super-type, and LIMIT is not within MIN and MAX values of that
20900         type, set the resulting range to VR_VARYING.
20901
20902 2005-05-02  Hans-Peter Nilsson  <hp@bitrange.com>
20903
20904         * config/mmix/mmix.opt: New file.
20905         * config/mmix/mmix.h: Move options-related comments to mmix.opt.
20906         (mmix_cc1_ignored_option): Don't declare.
20907         (TARGET_OPTIONS, TARGET_MASK_LIBFUNCS, TARGET_MASK_ABI_GNU)
20908         (TARGET_MASK_FCMP_EPSILON, TARGET_MASK_ZERO_EXTEND)
20909         (TARGET_MASK_KNUTH_DIVISION, TARGET_MASK_TOPLEVEL_SYMBOLS)
20910         (TARGET_MASK_BRANCH_PREDICT, TARGET_MASK_USE_RETURN_INSN)
20911         (TARGET_MASK_BASE_ADDRESSES, TARGET_LIBFUNC, TARGET_ABI_GNU,
20912         (TARGET_FCMP_EPSILON, TARGET_ZERO_EXTEND, TARGET_KNUTH_DIVISION)
20913         (TARGET_TOPLEVEL_SYMBOLS, TARGET_BRANCH_PREDICT)
20914         (TARGET_BASE_ADDRESSES, TARGET_USE_RETURN_INSN, TARGET_SWITCHES):
20915         Don't define.
20916         (TARGET_DEFAULT): Change TARGET_MASK_... to MASK_...
20917         * config/mmix/mmix.c (mmix_cc1_ignored_option): Remove.
20918         (TARGET_DEFAULT_TARGET_FLAGS): Override default.
20919
20920 2005-05-02  Joseph S. Myers  <joseph@codesourcery.com>
20921
20922         PR c/15698
20923         * c-tree.h (C_DECL_BUILTIN_PROTOTYPE): New.
20924         * c-decl.c (current_function_prototype_built_in,
20925         current_function_prototype_arg_types): New.
20926         (merge_decls): Keep source location of prototype followed by
20927         nonprototype declaration.  Update C_DECL_BUILTIN_PROTOTYPE.
20928         (builtin_function): Set C_DECL_BUILTIN_PROTOTYPE.
20929         (start_function): Always set current_function_prototype_locus,
20930         current_function_prototype_built_in and
20931         current_function_prototype_arg_types.  Check for external
20932         prototype whether or not visible for external function and set
20933         current_function_prototype_arg_types accordingly.
20934         (store_parm_decls_oldstyle): Use
20935         current_function_prototype_arg_types for checking old-style
20936         definition against prototype.  Give warnings only if
20937         current_function_prototype_built_in).
20938
20939 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
20940
20941         * ggc.h (ggc_alloc_zone_pass_stat): New macro.
20942         (ggc_alloc_zone_stat): Don't define.
20943         * ggc-zone.c (ggc_alloc_typed_stat, ggc_alloc_stat): Use
20944         ggc_alloc_zone_pass_stat.
20945         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Likewise.
20946         * tree.c (make_node_stat, copy_node_stat, make_tree_binfo_stat)
20947         (make_tree_vec_stat, tree_cons_stat, build1_stat): Likewise.
20948
20949 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
20950
20951         * calls.c (expand_call): Handle current_function_pretend_args_size
20952         when checking for sibcalls.
20953
20954 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
20955
20956         PR tree-optimization/21294
20957         * tree-vrp.c (vrp_expr_computes_nonzero): New.
20958         (extract_range_from_expr): Call vrp_expr_computes_nonzero.
20959
20960 2005-05-02  Janis Johnson  <janis187@us.ibm.com>
20961
20962         PR 19985
20963         * gcov-io.h: Declare gcov external functions hidden.
20964
20965 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
20966
20967         * tree-ssa-uncprop.c (equiv_hash_elt, remove_equivalence,
20968         record_equiv, tree_ssa_uncprop, uncprop_into_successor_phis):
20969         Use VEC instead of VARRAY.
20970         (equiv_free): New.
20971
20972         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Factor
20973         out common code.
20974
20975 2005-05-02  Paolo Bonzini  <bonzini@gnu.org>
20976
20977         * c-common.c (resolve_overloaded_builtin): Forward to target
20978         hook for BUILT_IN_MD built-ins.
20979         * c-typeck.c (finish_call_expr): Call resolve_overloaded_builtin
20980         for all types of built-in.
20981         * target-def.h (TARGET_RESOLVE_OVERLOADED_BUILTIN): New.  Use it
20982         in the definition of the target hooks struct.
20983         * target.h (struct gcc_target): Add resolve_overloaded_builtin.
20984         * config/rs6000/altivec.h: Rewritten.
20985         * config/rs6000/rs6000-c.c (struct altivec_builtin_types,
20986         altivec_resolve_overloaded_builtin, altivec_build_resolved_builtin,
20987         rs6000_builtin_type, rs6000_builtin_type_compatible,
20988         altivec_overloaded_builtins, rs6000_builtin_type,
20989         rs6000_builtin_type_compatible): New.
20990         * config/rs6000/rs6000.c (rs6000_builtin_types, rs6000_builtin_decls):
20991         New.
20992         (def_builtin): Turn into a function.  Check for duplicates and store
20993         the builtin into rs6000_builtin_decls.
20994         (bdesc_3arg, bdesc_dst, bdesc_altivec_preds, bdesc_2arg,
20995         bdesc_1arg): Add overloaded builtins.
20996         (altivec_expand_builtin): Check for unresolved overloaded builtins,
20997         do not support ALTIVEC_COMPILETIME_ERROR.
20998         (rs6000_init_builtins): Add opaque 128-bit vector, and internal
20999         nodes to represent front-end types.
21000         (altivec_init_builtins, rs6000_common_init_builtins): Create builtins
21001         with opaque arguments and/or return values.
21002         * config/rs6000/rs6000.h (enum rs6000_builtins): Remove
21003         ALTIVEC_COMPILETIME_ERROR and add Altivec overloaded builtins.
21004         (rs6000_builtin_type_index): New.
21005         (is_ev64_opaque_type): Rename to...
21006         (rs6000_is_opaque_type): ... this.
21007         (rs6000_cpu_cpp_builtins): Install the resolve_overloaded_builtin
21008         target hook.
21009
21010 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
21011
21012         * function.c (reorder_blocks, reorder_blocks_1): Use VEC
21013         instead of VARRAY.
21014
21015 2005-05-02  Nathan Sidwell  <nathan@codesourcery.com>
21016             Bernd Schmidt  <bernd.schmidt@analog.com>
21017
21018         * config/bfin/bfin.c (emit_link_insn, effective_address_32bit_p,
21019         print_address_operand, print_operand, legitimize_pic_address,
21020         asm_conditional_branch, bfin_gen_compare, output_push_multiple,
21021         output_pop_multiple): Use gcc_assert or gcc_unreachable as
21022         appropriate.
21023         * config/bfin/bfin.md (movsf splitter, beq, bne): Likewise.
21024
21025 2005-05-02  Dorit Naishlos  <dorit@il.ibm.com>
21026
21027         * doc/passes.texi: Document vectorization pass.
21028
21029 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
21030
21031         * tree-scalar-evolution.c (get_exit_conditions_rec,
21032         select_loops_exit_conditions,
21033         number_of_iterations_for_all_loops,
21034         analyze_scalar_evolution_for_all_loop_phi_nodes,
21035         scev_analysis): Use VEC instead of VARRAY.
21036
21037 2005-05-02  Michael Matz  <matz@suse.de>
21038
21039         PR c++/19542
21040         * c-common.c (c_common_nodes_and_builtins): Create global null_node.
21041         (warn_strict_null_sentinel): Define.
21042         (check_function_sentinel): Check for null_node as valid sentinel too.
21043         * c-common.h (c_tree_index): Added CTI_NULL.
21044         (null_node) Define global_tree[CTI_NULL].
21045         (warn_strict_null_sentinel): Declare.
21046         * c-opts.c: (c_common_handle_option): Handle -Wstrict-null-sentinel.
21047         * c.opt: (Wstrict-null-sentinel): New C++ option.
21048         * doc/invoke.texi (C++ Options): Document -Wstrict-null-sentinel.
21049
21050 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
21051
21052         * gimplify.c (gimplify_compound_lval): Use VEC instead of
21053         VARRAY.
21054
21055         * global.c (calculate_reg_pav): Use VEC instead of VARRAY.
21056
21057         * dwarf2out.c (decl_scope_table, push_decl_scope,
21058         pop_decl_scope, scope_die_for, dwarf2out_init): Use VEC
21059         instead of VARRAY.
21060
21061 2005-05-01  Mark Mitchell  <mark@codesourcery.com>
21062
21063         PR C++/14391
21064         * c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1
21065         if !flag_weak.
21066         * doc/cpp.texi (__DEPRECATED): Document.
21067         (__EXCEPTIONS): Likewise.
21068         (__GXX_WEAK__): Likewise.
21069
21070         * function.c (INVOKE__main): Do not define.
21071         (expand_main_function): Check HAS_INIT_SECTION when determining
21072         whether or not to call __main.
21073
21074 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
21075
21076         * tree-ssa-loop-ivopts.c: Fix a comment typo.
21077
21078 2005-01-05  Paul Brook  <paul@codesourcery.com>
21079
21080         * config/arm/arm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define.
21081         (INITIALIZE_TRAMPOLINE): Use it.
21082         * config/arm/linux-gas.h (INITIALIZE_TRAMPOLINE): Remove.
21083         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Remove.
21084         * config/arm/netbsd-elf.h (INITIALIZE_TRAMPOLINE): Remove.
21085
21086 2005-05-01  Gerald Pfeifer  <gerald@pfeifer.com>
21087
21088         * doc/install.texi (Specific): Omit dots in the @anchors names
21089         for i?86-*-sco3.2v5*, i?86-*-solaris2.10, and sparc-sun-solaris2.7.
21090         Omit underscores for x86_64-*-* and the "all ELF targets" entry.
21091
21092 2005-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
21093
21094         PR tree-optimization/18316
21095         PR tree-optimization/19126
21096         * tree.c (build_int_cst_type): Avoid shift by size of type.
21097         * tree-scalar-evolution.c (simple_iv): Add allow_nonconstant_step
21098         argument.
21099         * tree-scalar-evolution.h (simple_iv): Declaration changed.
21100         * tree-ssa-loop-ivopts.c (struct iv_cand): Add depends_on
21101         field.
21102         (dump_cand): Dump depends_on information.
21103         (determine_biv_step): Add argument to simple_iv call.
21104         (contains_abnormal_ssa_name_p): Handle case expr == NULL.
21105         (find_bivs, find_givs_in_stmt_scev): Do not require step to be a
21106         constant.
21107         (add_candidate_1): Record depends_on for candidates.
21108         (tree_int_cst_sign_bit, constant_multiple_of): New functions.
21109         (get_computation_at, get_computation_cost_at, may_eliminate_iv):
21110         Handle ivs with nonconstant step.
21111         (iv_ca_set_remove_invariants, iv_ca_set_add_invariants): New functions.
21112         (iv_ca_set_no_cp, iv_ca_set_cp): Handle cand->depends_on.
21113         (create_new_iv): Unshare the step before passing it to create_iv.
21114         (free_loop_data): Free cand->depends_on.
21115         (build_addr_strip_iref): New function.
21116         (find_interesting_uses_address): Use build_addr_strip_iref.
21117         (strip_offset_1): Split the recursive part from strip_offset.
21118         Strip constant offset component_refs and array_refs.
21119         (strip_offset): Split the recursive part to strip_offset_1.
21120         (add_address_candidates): Removed.
21121         (add_derived_ivs_candidates): Do not use add_address_candidates.
21122         (add_iv_value_candidates): Add candidates with stripped constant
21123         offset.  Consider all candidates with initial value 0 important.
21124         (struct affine_tree_combination): New.
21125         (aff_combination_const, aff_combination_elt, aff_combination_scale,
21126         aff_combination_add_elt, aff_combination_add,
21127         tree_to_aff_combination, add_elt_to_tree, aff_combination_to_tree,
21128         fold_affine_sum): New functions.
21129         (get_computation_at): Use fold_affine_sum.
21130         * tree-ssa-loop-manip.c (create_iv): Handle ivs with nonconstant step.
21131         * tree-ssa-loop-niter.c (number_of_iterations_exit): Add argument
21132         to simple_iv call.
21133
21134 2005-04-30  Michael Matz  <matz@suse.de>
21135
21136         * config/i386/i386.md (movmemsi): Also active when
21137         TARGET_INLINE_ALL_STRINGOPS.
21138
21139 2005-04-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
21140
21141         PR bootstrap/20633
21142         * config/freebsd-spec.h (FBSD_CPP_SPEC): Add %(cpp_arch).
21143
21144 2005-04-30  Paul Brook  <paul@codesourcery.com>
21145
21146         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Always use .thumb_set in
21147         thumb mode.
21148         * config/arm/ieee754-df.S: Use __INTERWORKING_STUBS__.
21149         * config/arm/ieee754-sf.S: Ditto.
21150         * config/arm/lib1funcs.asm: Define and use __INTERWORKING_STUBS__.
21151         (FUNC_ALIAS): Use .thumb_set for thumb routines.
21152
21153 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
21154
21155         * tree-ssanames.c: Fix a comment typo.
21156         * doc/options.texi: Fix a typo.
21157
21158 2005-04-30  Nathan Sidwell  <nathan@codesourcery.com>
21159
21160         * config/h8300/h8300.c (byte_reg): Use gcc_assert and
21161         gcc_unreachable as appropriate.
21162         (split_adds_subs, cond_string, print_operand,
21163         h8300_initial_elimination_offset, h8300_classify_operand,
21164         h8300_unary_length, h8300_short_immediate_length,
21165         h8300_bitfield_length, h8300_binary_length,
21166         h8300_insn_length_from_table, compute_mov_length, output_plussi,
21167         compute_plussi_length, compute_plussi_cc, output_logical_op,
21168         compute_logical_op_length, compute_logical_op_cc,
21169         output_h8sx_shift, get_shift_alg, h8300_shift_needs_scratch_p,
21170         output_a_shift, compute_a_shift_length, compute_a_shift_cc,
21171         output_a_rotate, compute_a_rotate_length, fix_bit_operand,
21172         h8300_regs_ok_for_stm): Likewise.
21173         * config/h8300/h8300.md (*movsi_h8300, *movsf_h8300,
21174         monitor_prologue): Likewise.
21175
21176 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
21177
21178         * loop-invariant.c (invariants, create_new_invariant,
21179         get_inv_cost, best_gain_for_invariant,
21180         find_invariants_to_move, move_invariants,
21181         init_inv_motion_data, free_inv_motion_data): Use VEC instead
21182         of VARRAY.
21183
21184 2005-04-29  Richard Henderson  <rth@redhat.com>
21185
21186         * function.c (instantiate_decls): Remove valid_only argument.
21187         (instantiate_decls_1, instantiate_decl): Likewise.
21188         (instantiate_virtual_regs_1): Delete.
21189         (instantiate_virtual_regs_lossage): Delete.
21190         (instantiate_virtual_regs_in_rtx): New.
21191         (safe_insn_predicate): New.
21192         (instantiate_virtual_regs_in_insn): New.
21193         (instantiate_virtual_regs): Update to match all that.  Only run
21194         instantiate_decls once.
21195
21196 2005-04-29  Richard Henderson  <rth@redhat.com>
21197             Daniel Jacobowitz  <dan@codesourcery.com>
21198
21199         * gengtype.c (write_func_for_structure): Split out ...
21200         (output_type_enum): ... new function.  Fix thinko accessing
21201         TYPE_PARAM_STRUCT data.
21202
21203 2005-04-29  Tom Tromey  <tromey@redhat.com>
21204
21205         * tree.c (build_block): Removed unused 'tags' argument.
21206         * tree.h (build_block): Removed argument.
21207
21208 2005-04-29  Michael Matz  <matz@suse.de>
21209
21210         PR rtl-optimization/21144
21211         * postreload.c (reload_cse_move2add): Check for VOIDmode.
21212
21213 2005-04-29  Bob Wilson  <bob.wilson@acm.org>
21214
21215         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable
21216         flag_reorder_blocks.
21217
21218 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
21219
21220         PR tree-optimization/21030
21221         * tree-vrp.c (adjust_range_with_scev): Do not create invalid
21222         ranges where VR->MAX is smaller than VR->MIN.
21223
21224 2005-04-29  Devang Patel  <dpatel@apple.com>
21225
21226         PR tree-optimization/21272
21227         PR tree-optimization/21266
21228         * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.
21229
21230 2005-04-29  Kazu Hirata  <kazu@cs.umass.edu>
21231
21232         * tree-flow-inline.h: Fix a comment typo.
21233         * doc/tree-ssa.texi: Fix a typo.
21234
21235         * tree-flow-inline.h, tree-ssa-operands.c: Fix comment typos.
21236
21237 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
21238
21239         * config/fr30/fr30.c (fr30_expand_prologue): Use gcc_assert and
21240         gcc_unreachable as appropriate.
21241         (fr30_expand_epilogue, fr30_setup_incoming_varargs,
21242         fr30_print_operand, fr30_move_double): Likewise.
21243         * config/fr30/fr30.md (*movsi_internal, *movsf_internal): Likewise.
21244
21245 2005-04-29  Mark Mitchell  <mark@codesourcery.com>
21246
21247         * config/arm/arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a
21248         definition has already been provided.
21249         (ARM_EABI_DTORS_SECTION_OP): Likewise.
21250         * config/arm/symbian.h (ARM_EABI_CTORS_SECTION_OP): Define.
21251         (ARM_EABI_DTORS_SECTION_OP): Likewise.
21252
21253 2005-04-29  Jim Tison  <jtison@us.ibm.com>
21254
21255         * config/s390/s390.md ("prologue_tpf", "epilogue_tpf"): Alter
21256         trace hooks calls to improve performance.
21257
21258 2005-04-29  Julian Brown  <julian@codesourcery.com>
21259             Mark Mitchell  <mark@codesourcery.com>
21260             Paul Brook  <paul@codesourcery.com>
21261
21262         * crtstuff.c: Handle targets that use .init_array.
21263         * function.c (HAS_INIT_SECTION): Do not define. Instead, make sure
21264         that INVOKE__main is set correctly.
21265         (expand_main_function): Test INVOKE__main.
21266         * libgcc2.c: Do not define __main when using .init_array.
21267         * config/arm/arm.c (arm_elf_asm_constructor): New function.
21268         * config/arm/arm.h (CTORS_SECTION_ASM_OP): Define, with specialized
21269         libgcc version.
21270         (DTORS_SECTION_ASM_OP): Likewise.
21271         (CTOR_LIST_BEGIN): Define specially when in libgcc.
21272         (CTOR_LIST_END): Likewise.
21273         (DTOR_LIST_BEGIN): Likewise.
21274         (DTOR_LIST_END): Likewise.
21275         * config/arm/bpapi.h (INIT_SECTION_ASM_OP): Do not define it.
21276         (FINI_SECTION_ASM_OP): Likewise.
21277         (INIT_ARRAY_SECTION_ASM_OP): Define.
21278         (FINI_ARRAY_SECTION_ASM_OP): Likewise.
21279         * config/arm/elf.h (TARGET_ASM_CONSTRUCTOR): Define.
21280         (SUPPORTS_INIT_PRIORITY): Evaluate to false for EABI based targets.
21281         * doc/tm.texi (INIT_ARRAY_SECTION_ASM_OP): Document.
21282         (FINI_ARRAY_SECTION_ASM_OP): Likewise.
21283
21284 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
21285
21286         * config/m68k/m68k.c (m68k_initial_elimination_offset): Use
21287         gcc_assert and gcc_unreachable as appropriate.
21288         (output_dbcc_and_branch, output_scc_di, legitimize_pic_address,
21289         const_int_cost, output_move_const_into_data_reg,
21290         output_move_qimode, output_move_double, find_addr_reg,
21291         print_operand, print_operand_address): Likewise.
21292         * config/m68k/m68k.md (adddi3, subdi3, negsf2, negdf2, abssf2,
21293         absdf2, sordered, sunordered, suneq, sunge, sungt, sunle, sunlt,
21294         sltgt, bordered, bunordered, buneq, bunge, bungt, bunle, bunlt,
21295         bltgt, *bordered_rev, *bunordered_rev, *buneq_rev, *bunge_rev,
21296         *bunle_rev, *bunlt_rev, *bltgt_rev, negxf2, absxf2,
21297         conditional_trap): Likewise.
21298         * config/m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Remove unreachable code.
21299
21300 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
21301
21302         * config/xtensa/xtensa.c (gen_int_relational): Use gcc_assert and
21303         gcc_unreachable as appropriate.
21304         (gen_conditional_move, xtensa_split_operand_pair,
21305         xtensa_split_operand_pair, xtensa_copy_incoming_a7,
21306         xtensa_copy_incoming_a7, xtensa_copy_incoming_a7,
21307         xtensa_copy_incoming_a7, xtensa_output_literal,
21308         xtensa_output_literal, xtensa_output_literal): Likewise.
21309         * config/xtensa/xtensa.h (INITIAL_ELIMINATION_OFFSET): Likewise.
21310         * config/xtensa/xtensa.md (*btrue, *bfalse, *ubtrue, *ubfalse,
21311         *bittrue, *bitfalse, *masktrue, *maskfalse, movsicc_internal0,
21312         movsicc_internal1, movsfcc_internal0,
21313         movsfcc_internal1): Likewise.
21314
21315 2005-04-28  James E Wilson  <wilson@specifixinc.com>
21316
21317         * config/i386/i386.h (HI_REGISTER_NAMES): Fix typos in comment.
21318         (ADDITIONAL_REGISTER_NAMES): Delete obsolete mmx register entries.
21319
21320 2005-04-28  DJ Delorie  <dj@redhat.com>
21321
21322         * opt-functions.awk (var_set): Emit proper initializer for
21323         non-target bitfields.
21324
21325 2005-04-28  Devang Patel  <dpatel@apple.com>
21326
21327         * dbxout.c (have_used_extensions): Remove.
21328         (dbxout_type_fileds, dbxout_type, dbxout_symbol): Remove use of
21329         have_used_extensions.
21330
21331 2005-04-28  James E Wilson  <wilson@specifixinc.com>
21332
21333         * doc/install.texi: Update -enable-languages info.  Correct path to
21334         html docs.
21335
21336 2005-04-28  DJ Delorie  <dj@redhat.com>
21337
21338         * optc-gen.awk (END): Make sure no variable is defined more
21339         than once.
21340         * opth-gen.awk (END): Allocate bits on a per-variable basis.
21341         Allow for bitfield variables other than target_flags.
21342         * doc/options.text (Mask): Document that you may specify a
21343         variable other than target_flags.
21344
21345 2005-04-28  Martin Koegler <mkoegler@auto.tuwien.ac.at>
21346
21347         PR rtl-optimization/18877
21348         * reload.c (decompose) <case REG, case SUBREG>: Handle pseudo reg
21349         number in val.start.
21350
21351 2005-04-28  David Edelsohn  <edelsohn@gnu.org>
21352
21353         PR target/20813
21354         * config/rs6000/aix43.h (SUBSUBTARGET_SWITCHES, aix64): Add
21355         MASK_PPC_GFXOPT.
21356         * config/rs6000/aix51.h (SUBSUBTARGET_SWITCHES, aix64): Same.
21357         * config/rs6000/aix52.h (SUBSUBTARGET_SWITCHES, aix64): Same.
21358         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES, 64): Same.
21359
21360 2005-04-28  Richard Earnshaw  <richard.earnshaw@arm.com>
21361
21362         * arm.c (legitimize_pic_address): Fix sense of assertion test for
21363         creating pseudos when the base offset is too large.
21364
21365 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
21366
21367         * global.c (earlyclobber_regclass): Change the type to
21368         VEC(int,heap).
21369         (check_earlyclobber): Update uses of earlyclobber_regclass.
21370         (mark_reg_use_for_earlyclobber): Likewise.
21371         (calculate_local_reg_bb_info): Allocate and free
21372         earlyclobber_regclass using the VEC API.
21373
21374 2005-04-28  Nathan Sidwell  <nathan@codesourcery.com>
21375
21376         * tree-ssa-alias.c (push_fields_onto_fieldstack): Remove bogus
21377         assert.
21378
21379 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
21380
21381         * modulo-sched.c, tree-stdarg.c: Use targetm.foo instead of
21382         (*targetm.foo).
21383
21384         * config.gcc: Obsolete c4x-* and tic4x-*.
21385
21386         * tree.h (edge_def): Remove.
21387
21388         * bt-load.c, cfgexpand.c, dwarf2out.c, emit-rtl.c, expr.c,
21389         function.c, global.c, lcm.c, loop-invariant.c, optabs.c,
21390         reorg.c, resource.c, tree-ssa-loop-ivopts.c, value-prof.c: Use
21391         JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P
21392         where appropriate.
21393
21394         * attribs.c, c-pragma.c, caller-save.c, cfghooks.h,
21395         coverage.c, cselib.h, domwalk.c, domwalk.h, errors.c,
21396         errors.h, gcov-dump.c, gcov-io.c, gcov-io.h, gen-protos.c,
21397         genattrtab.h, genextract.c, gthr-win32.h, insn-notes.def,
21398         integrate.c, lambda-mat.c, lambda.h, libgcov.c, local-alloc.c,
21399         machmode.def, mips-tfile.c, params.c, pretty-print.c,
21400         print-rtl.c, protoize.c, regmove.c, sched-vis.c, tree-chrec.h,
21401         tree-data-ref.h, vec.h, config/darwin-c.c, config/sol2-c.c,
21402         config/sol2.c, config/arm/arm-cores.def, config/arm/cirrus.md,
21403         config/arm/symbian.h, config/c4x/c4x.c, config/c4x/c4x.h,
21404         config/i386/cygming.h, config/i386/djgpp.h,
21405         config/i386/lynx.h, config/i386/netware.c,
21406         config/i386/winnt.c, config/ia64/ia64-c.c,
21407         config/iq2000/iq2000.c, config/m32r/little.h,
21408         config/m68k/m68k-protos.h, config/m68k/m68k.h,
21409         config/m68k/m68k.md, config/mcore/mcore.c,
21410         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.md,
21411         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
21412         config/mn10300/mn10300.h, config/ns32k/netbsd.h,
21413         config/ns32k/ns32k.c, config/ns32k/ns32k.h,
21414         config/pa/pa-hpux11.h, config/pdp11/pdp11.c,
21415         config/pdp11/pdp11.h, config/rs6000/darwin.h,
21416         config/rs6000/default64.h, config/rs6000/rs6000-c.c,
21417         config/s390/2064.md, config/s390/2084.md,
21418         config/s390/s390-modes.def, config/s390/s390-protos.h,
21419         config/s390/tpf.h, config/sh/sh.h, config/sh/symbian.c,
21420         config/stormy16/stormy16.c, config/vax/vax-protos.h,
21421         config/vax/vax.c, config/vax/vax.h,
21422         config/xtensa/lib1funcs.asm, config/xtensa/xtensa.md: Update
21423         copyright.
21424
21425 2005-04-28  Joseph S. Myers  <joseph@codesourcery.com>
21426
21427         * c-typeck.c (build_compound_expr): Correct logic in last change.
21428
21429 2005-04-27  James E. Wilson  <wilson@specifixinc.com>
21430
21431         * config/ia64/ia64.c (update_set_flags): Delete ppred and pcond
21432         parameters.  Replace conditional move code with assert checking for
21433         ar.lc.  Delete obsolete comments.
21434         (set_src_needs_barrier): Delete cond parameter, and code using it.
21435         (rtx_needs_barrier): Delete initialization of cond.  Fix typo in
21436         assert checking for PR_REGS.  Fix calls to update_set_flags and
21437         set_src_needs_barrier.
21438         (group_barrier_needed): Renamed from group_barrier_needed_p.  Fix all
21439         callers.  Rewrite explanatory comment before the function.
21440         (safe_group_barrier_needed): Renamed from safe_group_barrier_needed_p.
21441         Fix all callers.
21442
21443 2005-04-27  Mike Stump  <mrs@apple.com>
21444
21445         * doc/cpp.texi: gcc now implements universal character names.
21446
21447 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
21448
21449         PR c/21159
21450         * c-typeck.c (build_compound_expr): Don't warn for left-hand side
21451         being a compound expression whose right-hand side is cast to void.
21452
21453 2005-04-27  Caroline Tice  <ctice@apple.com>
21454
21455         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
21456         Remove targetm.have_named_sections test.
21457         (fix_edges_for_rarely_executed_code): Likewise.
21458         (insert_section_boundary_note): Likewise.
21459         (reorder_basic_blocks): Check partitioning flag before calling
21460         verify_hot_cold_block_grouping.
21461         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
21462         the function struct rather than global variables.
21463         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
21464         (COLD_END_LABEL): Likewise
21465         (cold_text_section_label): New static global variable.
21466         (cold_end_label): Likewise.
21467         (dwarf2out_switch_text_section): Get hot/cold section labels from
21468         the function struct rather than global variables; test to make sure
21469         cfun is defined.
21470         (output_aranges): Use cold_text_section_label and cold_end_label;
21471         check partitioning flag before putting out delta.
21472         (output_ranges): Remove incorrect code attempting to use
21473         hot/cold labels.
21474         (output_line_info): Get cold section label from function struct; test
21475         to make sure cfun is defined.
21476         (add_location_or_const_value_attribute): Likewise.
21477         (dwarf2out_var_location): Likewise.
21478         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
21479         write out cold_text_section_label if partition flag is set.
21480         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
21481         * function.h (struct function): Add new fields to point to hot/cold
21482         section labels: hot_section_label, cold_section_label,
21483         hot_section_end_label and cold_section_end_label; also add new field
21484         for cold text section name, unlikely_text_section_name.
21485         * opts.c (decode_options): Turn off partitioning flag if
21486         !targetm.have_named_sections.
21487         * output.h (hot_section_label): Remove.
21488         (hot_section_end_label): Remove.
21489         (cold_section_end_label): Remove.
21490         (unlikely_section_label): Remove.
21491         (unlikely_text_section_name): Remove.
21492         * passes.c (rest_of_handle_final):  Remove extra blank line.
21493         * varasm.c (unlikely_section_label): Remove.
21494         (hot_section_label): Remove.
21495         (hot_section_end_label): Remove.
21496         (cold_section_end_label): Remove.
21497         (unlikely_text_section_name):  Remove.
21498         (initialize_cold_section_name): Modify to call
21499         targetm.strip_name_encoding; to store cold section name in current
21500         function struct, if it exists; and to only use the decl_section_name
21501         if flag_named_sections is true.
21502         (unlikely_text_section): Modify to get section name out of current
21503         function struct, if there is one; otherwise build it from
21504         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
21505         (in_unlikely_text_section): Likewise.
21506         (named_section): Modify to get/put cold section name in current function
21507         struct, if there is one.
21508         (function_section):  Change 'bool unlikely' to 'int reloc'; check
21509         targetm.have_named_sections before calling named_section.
21510         (current_function_section): Likewise.
21511         (assemble_start_function): Modify to get/put unlikely_text_section_name
21512         in current function struct; modify to get hot/cold section labels
21513         from function struct; initialize labels using
21514         ASM_GENERATE_INTERNAL_LABEL;
21515         test partitioning flag before writing out hot section label.
21516         (assemble_end_function): Test partitioning flag before writing out
21517         hot/cold section labels.
21518         (default_section_type_flags_1):  Get cold text section name from
21519         function struct if there is one; Set flags correctly for
21520         cold text section if there is not a current function struct.
21521
21522 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
21523
21524         * tree-ssa-propagate.c (set_rhs): Revert last change.
21525
21526 2005-04-27  Steve Ellcey  <sje@cup.hp.com>
21527
21528         * explow.c (convert_memory_address): Add gcc_assert.
21529
21530 2005-04-27  Mark Mitchell  <mark@codesourcery.com>
21531
21532         * configure.ac: Check for ld --sysroot support.
21533         * gcc.c: Document %R specifier for specs.
21534         (SYSROOT_SPEC): New macro.
21535         (sysroot_spec): New variable.
21536         (static_specs): Add sysroot_spec.
21537         (main): Pass the sysroot spec to the linker if appropriate.
21538         * configure: Regenerated.
21539         * config.in: Likewise.
21540
21541 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
21542
21543         * fold-const.c (fold_binary): Use build_fold_addr_expr
21544         for address calculation and INDIRECT_REF handling.
21545
21546 2005-04-27  Andrew Haley  <aph@redhat.com>
21547
21548         * postreload-gcse.c (hash_scan_set): Remove bogus assertion.
21549
21550 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
21551
21552         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Reserve arm frame
21553         pointer when thumb backtracing is on.
21554
21555         * config/fp-bit.c (abort): Revert change.
21556
21557 2005-04-27  Ian Lance Taylor  <ian@airs.com>
21558
21559         * c-semantics.c (add_stmt): Don't test STATEMENT_CODE_P.
21560
21561 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
21562
21563         * tree-ssa-dce.c: Fix a comment typo.
21564
21565 2005-04-27  David S. Miller  <davem@davemloft.net>
21566
21567         * explow.c (allocate_dynamic_stack_space SETJMP_VIA_SAVE_AREA):
21568         Kill setjmpless_size.  current_function_calls_setjmp is completely
21569         computed when we are called, so just use the optimized size value
21570         instead of using REG_SAVE_AREA notes.
21571         (optimize_save_area_alloca): Delete....
21572         * rtl.h (optimize_save_area_alloca): Likewise...
21573         * passes.c (rest_of_compilation): and don't call it any more.
21574         * reg-notes.def (SAVE_AREA): Delete.
21575
21576 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
21577
21578         * config/fp-bit.c (abort): Add noreturn attribute.
21579
21580         * config/avr/avr.c (avr_naked_function_p): Use gcc_assert and
21581         gcc_unreachable as appropriate.
21582         (ptrreg_to_str, cond_string, avr_normalize_condition): Likewise.
21583         * config/avr/avr.h (ASM_OUTPUT_REG_PUSH,
21584         ASM_OUTPUT_REG_POP): Likewise.
21585
21586 2005-04-27  Paolo Bonzini  <bonzini@gnu.org>
21587
21588         * tree-complex.c (expand_vector_operations_1): Do not build
21589         VIEW_CONVERT_EXPR's for the lhs.
21590
21591 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
21592
21593         * config/pa/pa.h (PRINT_OPERAND_ADDRESS): Use gcc_assert, remove
21594         unnecessary noncanonical RTL handling.
21595         * config/pa/pa64-linux.h (INITIAL_ELIMINATION_OFFSET): Use
21596         gcc_assert and gcc_unreachable.
21597
21598         * config/arm/arm.h (ARM_PRINT_OPERAND_ADDRESS): Use gcc_assert and
21599         gcc_unreachable as appropriate.
21600         (THUMB_PRINT_OPERAND_ADDRESS): Likewise.
21601         * config/arm/arm.c (arm_override_options, arm_compute_func_type,
21602         use_return_insn, const_ok_for_op, arm_gen_constant,
21603         arm_canonicalize_comparison, legitimize_pic_address,
21604         thumb_find_work_register, arm_load_pic_register, arm_rtx_costs_1,
21605         arm_cirrus_insn_p, cirrus_reorg, minmax_code,
21606         load_multiple_sequence, emit_ldm_seq, store_multiple_sequence,
21607         emit_stm_seq, arm_gen_movmemqi, arm_select_dominance_cc_mode,
21608         arm_select_cc_mode, arm_reload_in_hi, arm_reload_out_hi,
21609         move_minipool_fix_forward_ref, move_minipool_fix_backward_ref,
21610         dump_minipool, create_fix_barrier, push_minipool_fix, arm_reorg,
21611         fp_immediate_constant, fp_const_from_val, vfp_output_fstmx,
21612         output_call, output_mov_long_double_fpa_from_arm,
21613         output_mov_long_double_arm_from_fpa,
21614         output_mov_double_fpa_from_arm, output_mov_double_arm_from_fpa,
21615         output_move_double, arithmetic_instr, shift_op, int_log2,
21616         output_return_instruction, arm_output_function_prologue,
21617         arm_output_epilogue, arm_output_function_epilogue,
21618         emit_multi_reg_push, arm_get_frame_offsets,
21619         arm_compute_initial_elimination_offset, arm_expand_prologue,
21620         arm_print_operand, arm_assemble_integer, get_arm_condition_code,
21621         arm_final_prescan_insn, arm_init_iwmmxt_builtins,
21622         arm_expand_binop_builtin, thumb_pushpop, thumb_far_jump_used_p,
21623         thumb_compute_initial_elimination_offset,
21624         thumb_output_function_prologue, thumb_load_double_from_address,
21625         thumb_output_move_mem_multiple, thumb_reload_out_hi,
21626         arm_emit_vector_const, arm_dbx_register_number): Likewise.
21627         * config/arm/pe.c (arm_mark_dllexport, arm_mark_dllimport): Likewise.
21628         * config/arm/arm.md (thumb_extendhisi2,
21629         *thumb_extendhisi2_insn_v6, *thumb_extendqisi2,
21630         *thumb_extendqisi2_v6, movhi, *thumb_movhi_insn,
21631         thumb_movhi_clobber, movqi, *arm_buneq, *arm_bltgt,
21632         *arm_buneq_reversed, *arm_bltgt_reversed, suneq, sltgt): Likewise.
21633         * config/arm/cirrus.md (*cirrus_arm_movdi,
21634         *cirrus_movdf_hard_insn): Likewise.
21635         * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
21636
21637 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
21638
21639         * tree-flow.h (ssa_names): Change the type to VEC(tree,gc).
21640         (num_ssa_names): Use VEC_length.
21641         (ssa_names): Use VEC_index.
21642         * tree-ssanames.c (ssa_names): Change the type to
21643         VEC(tree,gc).
21644         (init_ssanames, fini_ssa_names, make_ssanames,
21645         release_ssa_name): Update uses of ssa_names.
21646
21647         * dojump.c, emit-rtl.c, expmed.c, expr.c, stmt.c, stor-layout.c:
21648         Use fold_buildN instead of fold (buildN (...)).
21649
21650 2005-04-27  Devang Patel <dpatel@apple.com>
21651
21652         * dbxout.c (dbxout_type): Check use_gnu_debug_info_extensions.
21653
21654 2005-04-27  Matt Thomas <matt@3am-software.com>
21655             Jan-Benedict Glaw <jbglaw@microdata-pos.de>
21656
21657         * config/vax/vax.c (vax_rtx_costs): Whitespace cleanup.
21658         (vax_output_mi_thunk): Ditto.
21659         (vax_notice_cc_update): Ditto.
21660         (INDEX_REGISTER_P): Add trailing \.
21661         (BASE_REGISTER_P): Add trailing \.
21662         (legitimate_address_p): Whitespace cleanup.  Remove trailing \.
21663
21664 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
21665
21666         * tree-ssa-propagate.c (set_rhs): Check operand of
21667         ADDR_EXPR for gimpliness, too.
21668
21669 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
21670
21671         * tree-ssa-pre.c: Fix a comment typo.
21672
21673 2005-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
21674
21675         PR tree-optimization/21171
21676         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not
21677         record address uses if the reference is volatile.
21678
21679 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
21680
21681         * tree-complex.c (expand_vector_operation): New, extracted from
21682         expand_vector_operations_1.
21683         (tree_vec_extract): Build a NOP_EXPR.
21684         (expand_vec_parallel): Do not care about returning the correct type.
21685         (expand_vector_operations_1): Call expand_vector_operation.
21686         Build the VIEW_CONVERT_EXPR on the left side of MODIFY_EXPRs.
21687
21688         * tree-complex.c (gate_expand_vector_operations): New.
21689         (pass_lower_vector_ssa): Use it.
21690         * tree-optimize.c (init_tree_optimization_passes): Include
21691         pass_lower_vector_ssa.
21692         * tree-vect-transform.c (vect_min_worthwhile_factor): New.
21693         (vectorizable_operation): Use it.
21694         * tree-vectorizer.c (get_vectype_for_scalar_type): Accept
21695         integer modes for the vector type.
21696
21697         * defaults.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
21698         * tree-vect-analyze.c (vect_enhance_data_refs_alignment):
21699         Do not cope with UNITS_PER_SIMD_WORD == 0.
21700         * tree-vectorizer.c (get_vectype_for_scalar_type): Check
21701         if the scalar type is not bigger than UNITS_PER_SIMD_WORD.
21702         (vectorize_loops): Do not check that UNITS_PER_SIMD_WORD > 0.
21703         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
21704         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
21705         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
21706         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
21707
21708         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): Remove.
21709         * config/bfin/bfin.h (UNITS_PER_SIMD_WORD): Remove.
21710         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): Remove.
21711
21712         * doc/tm.texi (UNITS_PER_WORD): Rephrase more accurately.
21713         (UNITS_PER_SIMD_WORD): New.
21714
21715 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
21716
21717         * config/ia64/ia64.c (ia64_encode_addr_area): Use gcc_assert and
21718         gcc_unreachable as appropriate.
21719         (ia64_expand_load_address, ia64_expand_tls_address,
21720         ia64_split_tmode, ia64_split_tmode_move, ia64_expand_compare,
21721         ia64_expand_vecint_compare, ia64_expand_vecint_minmax,
21722         next_scratch_gr_reg, ia64_initial_elimination_offset,
21723         ia64_expand_prologue, ia64_expand_epilogue,
21724         ia64_output_dwarf_dtprel, ia64_print_operand,
21725         ia64_register_move_cost, first_instruction, rws_access_regno,
21726         update_set_flags, rtx_needs_barrier, group_barrier_needed_p,
21727         ia64_sched_init, ia64_variable_issue,
21728         ia64_first_cycle_multipass_dfs_lookahead_guard,
21729         ia64_dfa_new_cycle, issue_nops_and_insn, get_template, bundling,
21730         ia64_st_address_bypass_p, ia64_ld_address_bypass_p, process_set,
21731         process_for_unwind_directive, ia64_hpux_file_end): Likewise.
21732         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
21733         * config/ia64/ia64.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
21734         * config/ia64/predicates.md (got_symbolic_operand,
21735         sdata_symbolic_operand): Likewise.
21736         * config/ia64/vect.md (vcondv2sf): Likewise.
21737
21738 2005-04-27  Matt Thomas <matt@3am-software.com>
21739
21740         * config/vax/vax.c (legitimate_constant_address_p): New.  Formerly
21741         CONSTANT_ADDRESS_P in config/vax/vax.h
21742         (legitimate_constant_p): Added.  Formerly CONSTANT_P in vax.h.
21743         (INDEX_REGISTER_P): New.
21744         (BASE_REGISTER_P): New.
21745         (indirectable_constant_address_p): New.  Adapted from
21746         INDIRECTABLE_CONSTANT_ADDRESS_P in vax.h. Use SYMBOL_REF_LOCAL_P.
21747         (indirectable_address_p): New.  Adapted from
21748         INDIRECTABLE_ADDRESS_P in vax.h.
21749         (nonindexed_address_p): New.  Adapted from
21750         GO_IF_NONINDEXED_ADDRESS in vax.h.
21751         (index_temp_p): New.  Adapted from INDEX_TERM_P in vax.h.
21752         (reg_plus_index_p): New.  Adapted from GO_IF_REG_PLUS_INDEX in vax.h.
21753         (legitimate_address_p): New.  Adapted from
21754         GO_IF_LEGITIMATE_ADDRESS in vax.h.
21755         (vax_mode_dependent_address_p): New.  Adapted from
21756         GO_IF_MODE_DEPENDENT_ADDRESS in vax.h.
21757         * config/vax/vax.h (CONSTANT_ADDRESS_P): Use
21758         legitimate_constant_address_p.
21759         (CONSTANT_P): Use legitimate_constant_p.
21760         (INDIRECTABLE_CONSTANT_ADDRESS_P): Removed.
21761         (INDIRECTABLE_ADDRESS_P): Removed.
21762         (GO_IF_NONINDEXED_ADDRESS): Removed.
21763         (INDEX_TEMP_P): Removed.
21764         (GO_IF_REG_PLUS_INDEX): Removed.
21765         (GO_IF_LEGITIMATE_ADDRESS): Use legitimate_address_p. Two
21766         definitions, depending on whether REG_OK_STRICT is defined.
21767         (GO_IF_MODE_DEPENDENT_ADDRESS): Use vax_mode_dependent_address_p.
21768         Two definitions, depending on whether REG_OK_STRICT is defined.
21769         * config/vax/vax-protos.h (legitimate_constant_address_p): Prototype
21770         added.
21771         (legitimate_constant_p): Prototype added.
21772         (legitimate_address_p): Prototype added.
21773         (vax_mode_dependent_address_p): Prototype added.
21774
21775 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
21776
21777         * tree.h (phi_arg_d): Expand a comment in phi_arg_d.
21778
21779 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
21780
21781         PR c/21213
21782         * c-decl.c (finish_struct): Don't dereference NULL TYPE_FIELDS of
21783         transparent union.
21784
21785 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
21786
21787         PR c/20740
21788         * c-format.c (init_dynamic_asm_fprintf_info): Give errors, not
21789         assertion failures, if __gcc_host_wide_int__ is not properly
21790         defined.
21791         (init_dynamic_diag_info): Give errors, not assertion failures, if
21792         location_t, tree or __gcc_host_wide_int__ are not properly
21793         defined.
21794
21795 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
21796
21797         * tree-ssa-loop-ivopts.c (ivopts_data, decl_rtl_to_reset,
21798         n_iv_uses, iv_use, n_iv_cands, iv_cand,
21799         tree_ssa_iv_optimize_init, record_use, add_candidate_1,
21800         prepare_decl_rtl, free_loop_data,
21801         tree_ssa_iv_optimize_finalize): Use the VEC API instead of
21802         VARRAY.
21803
21804         * tree.h (tree_phi_node): Add a comment about the order of PHI
21805         arguments.
21806
21807 2005-04-26  Paul Brook  <paul@codesourcery.com>
21808
21809         * config/arm/arm.md (thumb_mulsi3): Use two-operand assembly form.
21810
21811 2005-04-26  Nathan Sidwell  <nathan@codesourcery.com>
21812
21813         * config/mips.mips.c (mips_legitimize_tls_address): Use
21814         gcc_unreachable.
21815
21816         * config/mmix/mmix.c (mmix_assemble_integer): Use gcc_assert.
21817         * config/mmix/crti.asm (_init): Reword comment to avoid 'abort'.
21818         * config/mmix/mmix.md (nonlocal_goto_receiver): Likewise.
21819
21820         * config/sparc/sparc.h (enum reg_class): Reword comment to avoid
21821         'abort'.
21822
21823 2005-04-26  Jeff Law  <law@redhat.com>
21824
21825         * tree-flow-inline.h (op_iter_next_must_and_may_def): New.
21826         (op_iter_init_must_and_may_def): Likewise.
21827         (unmodifiable_var_p): Move to a later point in the file.
21828         * tree-ssa-operands.h (FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): New.
21829         * tree-ssa-dse.c (need_imm_uses_for): Remove, no longer needed.
21830         (dse_record_phis): Directly check for virtual operands rather than
21831         using need_imm_uses_for.
21832         (dse_optimize_stmt): Handle V_MUST_DEF operands.  Handle case where
21833         store has multiple V_{MAY,MUST}_DEF operands.
21834
21835 2005-04-26  Andrew MacLeod  <amacleod@redhat.com>
21836
21837         * tree-cfg.c (bsi_replace): Delink immediate uses for the original
21838         stmt.
21839
21840 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
21841
21842         * tree-cfg.c (lv_adjust_loop_header_phi): Speed up moving a
21843         call to find_edge outside a loop to go through a PHI chain.
21844
21845 2004-04-26  Richard Guenther  <rguenth@gcc.gnu.org>
21846
21847         PR tree-optimization/17598
21848         * fold-const.c (fold_binary): Fold comparisons of addresses
21849         of COMPONENT_REFs which reference the same field to
21850         comparisons of the addresses of the base objects.
21851
21852 2005-04-26  Julian Brown  <julian@codesourcery.com>
21853
21854         * config/arm/arm.c (arm_return_in_msb): New function.
21855         (arm_must_pass_in_stack): New function.
21856         (TARGET_RETURN_IN_MSB): Define target hook.
21857         (TARGET_MUST_PASS_IN_STACK): Define target hook.
21858         (arm_function_value): Pad small aggregate return.
21859         (arm_pad_arg_upward): New function.
21860         (arm_pad_reg_upward): New function.
21861         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Include complex values.
21862         (FUNCTION_ARG_PADDING): Define macro.
21863         (BLOCK_REG_PADDING): Define macro.
21864         (PAD_VARARGS_DOWN): Correct padding for AAPCS.
21865         * config/arm/arm-protos.h (arm_pad_arg_upward): Declare function.
21866         (arm_pad_reg_upward): Declare function.
21867
21868 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
21869
21870         * basic-block.h (ei_cond): New.
21871         (FOR_EACH_EDGE): Call ei_cond.
21872
21873         PR tree-optimization/21047
21874         * fold-const.c (fold_binary): Abort on ASSERT_EXPR.
21875         (fold): Don't handle ASSERT_EXPR.
21876
21877 2005-04-25  Roger Sayle  <roger@eyesopen.com>
21878
21879         * sched-deps.c (sched_analyze_1): On STACK_REGS targets, x87, treat
21880         all writes to any stack register as a read/write dependency on
21881         FIRST_STACK_REG.
21882         (sched_analyze_2): Likewise, for reads from any stack register.
21883
21884 2005-04-25  Richard Henderson  <rth@redhat.com>
21885
21886         * final.c (output_addr_const): Revert 2005-04-09 change.
21887
21888 2005-04-25  Mike Stump  <mrs@apple.com>
21889
21890         * config/darwin.c (darwin_encode_section_info): Always set
21891         MACHO_SYMBOL_STATIC for all ! TREE_PUBLIC symbols.
21892
21893 2005-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21894
21895         * collect2.c, gcc.c, gcov-dump.c, gcov.c, gen-protos.c,
21896         gensupport.c, protoize.c, toplev.c: Replace calls to
21897         `unlock_stream' with `unlock_std_streams'.
21898
21899 2005-04-25  Devang Patel <dpatel@apple.com>
21900
21901         * dbxout.c (dbxout_type): Emit attribute vector.
21902
21903 2005-04-05  Paul Brook  <paul@codesourcery.com>
21904
21905         * target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
21906         * target.h (struct gcc_target): Add cxx.use_aeabi_atexit.
21907         * config/arm/arm.c (arm_cxx_atexit_name): New function.
21908         (TARGET_CXX_USE_AEABI_ATEXIT): New macro.
21909         * cp/decl.c (get_atexit_node): Reorder arguments for __aeabi_atexit.
21910         (register_dtor_fn): Likewise.
21911         * doc/tm.texi: Document TARGET_CXX_USE_AEABI_ATEXIT.
21912
21913 2005-04-25  Ian Lance Taylor  <ian@airs.com>
21914
21915         * c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
21916         * c-common.h (EXPR_STMT_EXPR): Don't define.
21917         (c_common_stmt_codes): Don't define.
21918         * c-dump.c (c_dump_tree): Remove EXPR_STMT case.
21919         * c-gimplify.c (gimplify_expr_stmt): Remove.
21920         (c_gimplify_expr): Remove EXPR_STMT case.
21921         * c-objc-common.c (c_objc_common_init): Remove stmt_codes and call
21922         to INIT_STATEMENT_CODES.
21923         * c-pretty-print.c (pp_c_statement): Just call dump_generic_node.
21924
21925 2005-04-25  Jan Hubicka  <jh@suse.cz>
21926
21927         * tree-cfg.c (tree_duplicate_bb): Duplicate EH region too.
21928
21929         * except.c: Include diagnostic.h
21930         (dump_eh_tree, verify_eh_tree): New functions.
21931         * except.h (verify_eh_tree, dump_eh_tree, verify_eh_edges): Declare.
21932         * tree-cfg.c (tree_verify_flow_info): verify eh edges.
21933         (dump_function_to_file): dump eh tree.
21934         * tree-eh.c (mark_eh_edge): New function.
21935         (mark_eh_edge_found_error): New static variable.
21936         (verify_eh_edges): New function.
21937
21938 2005-04-25  Nathan Sidwell  <nathan@codesourcery.com>
21939
21940         * tree-ssa-alias.c (fieldoff_t): Remove.
21941         (fieldoff_s): typedef the structure itself.  Create a vector of
21942         objects.
21943         (push_fields_onto_fieldstack): Return count of fields pushed.
21944         Remove peeling of first field.  Adjust.
21945         (fieldoff_compare): Adjust.
21946         (create_overlap_variables_for): Adjust.
21947
21948 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
21949
21950         * doc/invoke.texi (Blackfin Options): Avoid empty @opindex line.
21951
21952 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
21953
21954         PR bootstrap/21215
21955         * doc/install.texi: Document correct assembler and linker to use
21956         on i?86-*-solaris2.10.
21957
21958 2005-04-25  Steven Bosscher  <stevenb@suse.de>
21959
21960         Fix PR tree-optimization/21173
21961
21962         * tree-ssa-pre.c (create_expression_by_pieces): Simplify code.
21963         Unshare expression we pass to force_gimple_operand.
21964
21965 2005-04-25  J"orn Rennecke <joern.rennecke@st.com>
21966             Stephen Clarke <stevec@superh.com>
21967             Roger Sayle <roger@eyesopen.com>
21968
21969         PR rtl-optimization/20413
21970         * cfgrtl.c (redirect_edge_and_branch): Use Pmode instead of
21971         VOIDmode for LABEL_REF.
21972         * final.c (shorten_branches): Likewise.
21973         * jump.c (mark_all_labels, redirect_exp_1): Likewise.
21974         * loop.c (reg_dead_after_loop): Likewise.
21975         * varasm.c (decode_addr_const): Likewise.
21976         * doc/rtl.texi: Document mode requirement for LABEL_REF.
21977
21978 2005-04-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
21979
21980         * config.gcc (avr-*-*): Remove redundant "case".
21981
21982 2005-04-25  Kazu Hirata  <kazu@cs.umass.edu>
21983
21984         * tree-vect-analyze.c (vect_mark_relevant): Take
21985         VEC(tree,heap) instead of varray_type as an argument.
21986         (vect_mark_stmts_to_be_vectorized): Change the type of
21987         worklist to VEC(tree,heap).  Adjust uses of worklist.
21988
21989 2005-04-24  Devang Patel  <dpatel@apple.com>
21990
21991         *  config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
21992
21993 2005-04-24  Ian Lance Taylor  <ian@airs.com>
21994
21995         * c-semantics.c (build_stmt): Remove test of specific tree codes
21996         for TREE_SIDE_EFFECTS handling.
21997
21998 2005-04-24  Per Bothner  <per@bothner.com>
21999
22000         * c-opts.c (finish_options):  Make the line-number of the <built-in>
22001         location 0, as assumed elsewhere, rather than 1.
22002
22003 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
22004
22005         * tree-ssa-uncprop.c (equiv_stack): Change the type o
22006         VEC(tree,heap).
22007         (tree_ssa_uncprop, uncprop_finalize_block,
22008         uncprop_initialize_block): Update uses of equiv_stack.
22009
22010 2005-04-24  Richard Henderson  <rth@redhat.com>
22011
22012         PR rtl-opt/21163
22013         * simplify-rtx.c (simplify_binary_operation) <IOR>: Check
22014         for SCALAR_INT_MODE_P instead of not MODE_CC before returning
22015         constm1_rtx.
22016         <AND, LSHIFTRT, UMIN>: Use CONST0_RTX.
22017         <UDIV, UMOD>: Use CONST0_RTX and CONST1_RTX.
22018         <DIV, MOD>: Likewise.
22019
22020 2005-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22021
22022         * collect2.c (main): Unlock the stdio streams.
22023         * gcc.c (main): Likewise.
22024         * gcov-dump.c (main): Likewise.
22025         * gcov.c (main): Likewise.
22026         * gen-protos.c (main): Likewise.
22027         * gensupport.c (init_md_reader_args_cb): Likewise.
22028         * protoize.c (main): Likewise.
22029         * toplev.c (general_init): Likewise.
22030
22031 2005-04-24  Jakub Jelinek  <jakub@redhat.com>
22032
22033         PR middle-end/20991
22034         * cgraph.h (cgraph_local_info): Add vtable_method field.
22035         * varasm.c (mark_decl_referenced): If cgraph_global_info_ready
22036         and node is vtable_method, finalized and not reachable, don't do
22037         anything.
22038
22039 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
22040
22041         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use
22042         COMPARISON_CLASS_P.
22043         * tree-ssa-pre.c (create_value_expr_from): Use
22044         CONSTANT_CLASS_P and REFERENCE_CLASS_P.
22045         * tree-ssa-propagate.c (stmt_makes_single_load,
22046         stmt_makes_single_store): Use REFERENCE_CLASS_P.
22047         * tree-vect-transform.c (vect_is_simple_cond): Use
22048         COMPARISON_CLASS_P.
22049         * tree-vrp.c (extract_range_from_assert,
22050         build_assert_expr_for, fp_predicate, has_assert_expr): Use
22051         COMPARISON_CLASS_P.
22052
22053         * tree-ssa-live.c (build_tree_conflict_graph): Change the type
22054         of tpa_to_clear to VEC(int,heap).  Update uses of
22055         tpa_to_clear.  Free tpa_to_clear at the end.
22056
22057 2005-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
22058
22059         * tree.h (TREE_THIS_VOLATILE): Document the effect on a
22060         function decl.
22061
22062 2005-04-24  Nathan Sidwell  <nathan@codesourcery.com>
22063
22064         * config/rs6000/rs6000.c (rs6000_override_options): Use gcc_assert
22065         and gcc_unreachable as appropriate.
22066         (num_insns_constant, output_vec_const_move,
22067         build_mask64_2_operands, rs6000_output_dwarf_dtprel,
22068         rs6000_emit_set_const, rs6000_emit_move,
22069         spe_build_register_parallel, function_arg,
22070         rs6000_move_block_from_reg, altivec_expand_predicate_builtin,
22071         spe_expand_predicate_builtin, spe_expand_evsel_builtin,
22072         rs6000_expand_builtin, spe_init_builtins, altivec_init_builtins,
22073         rs6000_common_init_builtins, expand_block_clear,
22074         expand_block_move, validate_condition_mode, ccr_bit, extract_MB,
22075         extract_ME, rs6000_get_some_local_dynamic_name,
22076         rs6000_output_function_entry, print_operand,
22077         print_operand_address, rs6000_generate_compare, rs6000_emit_sCOND,
22078         output_cbranch, output_e500_flip_gt_bit,
22079         rs6000_emit_vector_compare, rs6000_emit_vector_compare,
22080         rs6000_emit_cmove, rs6000_emit_minmax, rs6000_split_multireg_move,
22081         compute_save_world_info, rs6000_stack_info,
22082         rs6000_emit_load_toc_table, rs6000_frame_related,
22083         spe_synthesize_frame_save, rs6000_emit_epilogue,
22084         rs6000_output_function_epilogue, rs6000_hash_constant, output_toc,
22085         output_function_profiler, rs6000_trampoline_size,
22086         rs6000_initialize_trampoline, find_addr_reg,
22087         rs6000_machopic_legitimize_pic_address,
22088         rs6000_initial_elimination_offset,
22089         rs6000_dbx_register_number): Likewise.
22090         * config/rs6000/rs6000.md (*fix_truncdfsi2_internal,
22091         *movdf_hardfloat32, *movdf_softfloat32, *fix_trunctfsi2_internal,
22092         *movti_power, *movti_string, call, call_value, sibcall,
22093         sibcall_value): Likewise.
22094         * config/rs6000/spe.md (*movdf_e500_double,
22095         *movv2si_internal): Likewise.
22096         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Remove 'abort'
22097         from comment.
22098
22099 2005-04-24  Richard Henderson  <rth@redhat.com>
22100
22101         PR target/21101
22102         * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Move guts to ...
22103         * config/i386/i386.c (ix86_cannot_change_mode_class): ... here.
22104         Deny modes smaller than 4 bytes.
22105         * config/i386/i386-protos.h: Update.
22106
22107 2005-04-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
22108
22109         * config.gcc (h8300-*-rtems*): Add h8300-*-rtemscoff*.
22110         Switch h8300-*-rtems* to ELF.
22111
22112 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
22113
22114         * vec.h (VEC_safe_grow): Replace grow with safe_grow.
22115
22116 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
22117
22118         * ipa-inline.c, tree-ssa-operands.h: Fix comment typos.
22119
22120 2005-04-23  Richard Guenther  <rguenth@gcc.gnu.org>
22121
22122         PR middle-end/21082
22123         * fold-const.c: Fold &a[i]-&a[j] to i-j.
22124
22125 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
22126
22127         * tree-ssa-loop-niter.c (tree_simplify_using_condition): Expand simple
22128         definitions of ssa names in condition.  Split recusive part to ...
22129         (tree_simplify_using_condition_1): New function.
22130         (expand_simple_operations): New function.
22131
22132 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
22133
22134         * tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
22135         (find_interesting_uses_cond): Do not use integer_zerop and
22136         integer_nonzerop to check for integer constants.
22137         (set_use_iv_cost): Record the value field.
22138         (determine_use_iv_cost_generic, determine_use_iv_cost_address,
22139         determine_use_iv_cost_outer): Set the value field of the cost pair.
22140         (may_eliminate_iv): Do not return the comparison code.
22141         (iv_elimination_compare): New function.
22142         (determine_use_iv_cost_condition): Set the value field.  Record
22143         noneliminable invariants correctly.
22144         (rewrite_use_compare, rewrite_use_outer): Use the value field.
22145
22146 2005-04-23  DJ Delorie  <dj@redhat.com>
22147
22148         * diagnostic.c (warning): Accept parameter to classify warning option.
22149         (warning0): New, for when a pointer to an error() like function is needed.
22150         * errors.c (warning): Likewise.
22151         * errors.h (warning, warning0): Adjust prototypes.
22152         * toplev.h (warning, warning0): Likewise.
22153
22154         * attribs.c, builtins.c, c-common.c, c-decl.c, c-format.c,
22155         c-gimplify.c, c-lex.c, c-objc-common.c, c-opts.c, c-parser.c,
22156         c-pragma.c, c-typeck.c, calls.c, cgraph.c, coverage.c, emit-rtl.c,
22157         fold-const.c, fortran/trans-decl.c, function.c, gcse.c,
22158         genautomata.c, haifa-sched.c, opts.c, passes.c, regclass.c,
22159         reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
22160         tree-dump.c, tree-inline.c, tree-mudflap.c, tree-optimize.c,
22161         tree-ssa.c, tree.c, varasm.c: Adjust warning() callers.
22162
22163         * config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
22164         config/avr/avr.c, config/bfin/bfin.c, config/c4x/c4x-c.c,
22165         config/c4x/c4x.c, config/cris/cris.c, config/darwin-c.c,
22166         config/darwin.c, config/darwin.h, config/h8300/h8300.c,
22167         config/i386/cygming.h, config/i386/djgpp.h, config/i386/i386.c,
22168         config/i386/winnt.c, config/ia64/ia64-c.c, config/ia64/ia64.c,
22169         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
22170         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.c,
22171         config/mmix/mmix.c, config/ns32k/ns32k.c, config/pa/pa-hpux11.h,
22172         config/pa/pa.c, config/rs6000/aix43.h, config/rs6000/aix51.h,
22173         config/rs6000/aix52.h, config/rs6000/darwin.h,
22174         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
22175         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
22176         config/sh/symbian.c, config/sol2-c.c, config/sol2.c,
22177         config/stormy16/stormy16.c, config/v850/v850-c.c,
22178         config/v850/v850.c, config/xtensa/xtensa.c: Adjust warning()
22179         callers.
22180
22181 2005-04-23  Richard Henderson  <rth@redhat.com>
22182
22183         PR rtl-opt/21102
22184         * simplify-rtx.c (simplify_binary_operation): Fix mode check before
22185         performing some integral scalar simplifications.
22186
22187 2005-04-23  Richard Henderson  <rth@redhat.com>
22188
22189         PR target/21099
22190         * config/i386/i386.c (ix86_split_to_parts): Use proper mode when
22191         simplifying CONST_VECTOR.
22192
22193 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
22194
22195         * tree-ssa-live.c (live_worklist): Take a stack allocated on
22196         heap as an argument.  Update uses of stack.
22197         (calculate_live_on_entry): Allocate stack on heap.
22198
22199         * tree-ssa-live.c (build_tree_conflict_graph): Allocate
22200         partition_link and tpa_nodes on heap.
22201
22202         * tree-ssa-dce.c (worklist): Change to VEC(tree,heap).
22203         (mark_stmt_necessary, propagate_necessity,
22204         mark_really_necessary_kill_operand_phis): Update uses of
22205         worklist.
22206         (tree_dce_init): Allocate worklist using VEC_alloc.
22207         (tree_dce_done): Free worklist using VEC_free.
22208
22209 2005-04-23  Mike Stump  <mrs@apple.com>
22210
22211         * config/darwin.c (machopic_indirection_name): Don't use
22212         quotes needlessly.
22213         (darwin_emit_unwind_label): Use user_label_prefix instead of
22214         "_".
22215
22216 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
22217
22218         * final.c, ipa-inline.c, varasm.c: Fix comment typos.
22219
22220 2005-04-23  Hans-Peter Nilsson  <hp@axis.com>
22221
22222         * config.gcc <cris-*>: Specify .opt files.
22223         * config/cris/cris.opt, config/cris/elf.opt, config/cris/aout.opt,
22224         config/cris/linux.opt: New files.
22225         * config/cris/aout.h (CRIS_SUBTARGET_SWITCHES)
22226         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
22227         (TARGET_ELF): Override to 0.
22228         (CRIS_SUBTARGET_HANDLE_OPTION): Override to handle -melinux and
22229         -melinux-stacksize=N.
22230         * config/cris/cris.c: (cris_handle_option): New function.
22231         (TARGET_DEFAULT_TARGET_FLAGS): Override.
22232         (TARGET_HANDLE_OPTION): Override to cris_handle_option.
22233         (cris_override_options): Use MASK_*, not TARGET_MASK_*.
22234         * config/cris/cris.h (TARGET_MASK_SVINTO, TARGET_SVINTO,
22235         (TARGET_MASK_CCINIT, TARGET_CCINIT, TARGET_MASK_PDEBUG)
22236         (TARGET_PDEBUG, TARGET_MASK_SIDE_EFFECT_PREFIXES)
22237         (TARGET_SIDE_EFFECT_PREFIXES, TARGET_MASK_EXPAND_MUL)
22238         (TARGET_EXPAND_MUL, TARGET_MASK_STACK_ALIGN, TARGET_STACK_ALIGN)
22239         (TARGET_MASK_CONST_ALIGN, TARGET_CONST_ALIGN)
22240         (TARGET_MASK_DATA_ALIGN, TARGET_DATA_ALIGN)
22241         (TARGET_MASK_PROLOGUE_EPILOGUE, TARGET_PROLOGUE_EPILOGUE)
22242         (TARGET_MASK_ETRAX4_ADD, TARGET_ETRAX4_ADD)
22243         (TARGET_MASK_ALIGN_BY_32, TARGET_ALIGN_BY_32, TARGET_MASK_ELF)
22244         (TARGET_ELF, TARGET_MASK_LINUX, TARGET_LINUX)
22245         (TARGET_MASK_AVOID_GOTPLT, TARGET_AVOID_GOTPLT)
22246         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG, TARGET_SWITCHES)
22247         (CRIS_SUBTARGET_SWITCHES, TARGET_OPTIONS)
22248         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
22249         (TARGET_LINUX): Define 0.
22250         (TARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
22251         (CRIS_SUBTARGET_DEFAULT): Define to 0, not TARGET_MASK_ELF.
22252         (CRIS_SUBTARGET_DEFAULT): New empty default macro.
22253         * config/cris/linux.h (CRIS_SUBTARGET_SWITCHES): Don't define.
22254         (TARGET_LINUX): Override to 1.
22255         (CRIS_SUBTARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
22256
22257 2005-04-23  Nathan Sidwell  <nathan@codesourcery.com>
22258
22259         * haifa-sched.c (schedule_block): Fix thinko in previous
22260         assertification patch.
22261
22262 2005-04-23  Richard Sandiford  <rsandifo@redhat.com>
22263
22264         * config.gcc (hppa[12]*-*-hpux10*): Add pa/pa-hpux.opt to
22265         $extra_options.  Also add pa/pa-hpux1010.opt for hpux10.[1-9]*.
22266         (hppa*64*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
22267         pa/pa-hpux.opt, pa/pa-hpux1010.opt and pa/pa64-hpux.opt to
22268         $extra_options.  Also add pa/pa-hpux1111.opt for hpux11.[1-9]*.
22269         (hppa[12]*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
22270         pa/pa-hpux.opt to $extra_options.  Also add pa/pa-hpux1111.opt
22271         for hpux11.[1-9]*.
22272         * config/pa/pa.h (architecture_type, rtx_def, pa_arch_string, pa_arch)
22273         (pa_fixed_range_string, pa_cpu_string, pa_unix_string, target_flags)
22274         (MASK_PA_11, MASK_DISABLE_FPREGS, TARGET_DISABLE_FPREGS)
22275         (MASK_NO_SPACE_REGS, TARGET_NO_SPACE_REGS, MASK_JUMP_IN_DELAY)
22276         (TARGET_JUMP_IN_DELAY, MASK_DISABLE_INDEXING, TARGET_DISABLE_INDEXING)
22277         (MASK_PORTABLE_RUNTIME, TARGET_PORTABLE_RUNTIME, MASK_GAS, TARGET_GAS)
22278         (MASK_SOFT_FLOAT, TARGET_SOFT_FLOAT, MASK_LONG_LOAD_STORE)
22279         (TARGET_LONG_LOAD_STORE, MASK_FAST_INDIRECT_CALLS)
22280         (TARGET_FAST_INDIRECT_CALLS, MASK_BIG_SWITCH, TARGET_BIG_SWITCH)
22281         (MASK_PA_20, MASK_SIO, TARGET_SIO, MASK_GNU_LD, TARGET_GNU_LD)
22282         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_PA_11, TARGET_PA_20)
22283         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS)
22284         (SUBTARGET_OPTIONS): Delete.
22285         (TARGET_PA_10): Redefine in terms of TARGET_PA_11 and TARGET_PA_20.
22286         (TARGET_SCHED_DEFAULT): Define to a PROCESSOR_* enum (PROCESSOR_8000)
22287         instead of a string.
22288         * config/pa/pa.c (pa_arch, pa_arch_string, pa_fixed_range_string)
22289         (pa_cpu_string, pa_unix_string): Delete.
22290         (pa_cpu): Initialize to TARGET_SCHED_DEFAULT.
22291         (flag_pa_unix): Initialize based on TARGET_HPUX_11_11 and
22292         TARGET_HPUX_10_10.
22293         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
22294         (pa_handle_option): New function.
22295         (override_options): Remove handling of -march=, -mfixed-range=,
22296         -mschedule= and -munix=.
22297         * config/pa/pa-hpux.h (SUBTARGET_SWITCHES): Delete.
22298         * config/pa/pa-hpux1010.h (SUBTARGET_OPTIONS): Delete.
22299         * config/pa/pa-hpux10.h (SUBTARGET_OPTIONS): Delete.
22300         * config/pa/pa-hpux1111.h (SUBTARGET_OPTIONS): Delete.
22301         * config/pa/pa-hpux11.h (SUBTARGET_OPTIONS): Delete.
22302         * config/pa/pa64-hpux.h (SUBTARGET_SWITCHES): Delete.
22303         * config/pa/pa64-start.h (TARGET_PA_11, TARGET_PA_20): #undef before
22304         redefining.
22305         * config/pa/pa.opt: New file.
22306         * config/pa/pa-hpux.opt: New file.
22307         * config/pa/pa-hpux1010.opt: New file.
22308         * config/pa/pa-hpux1111.opt: New file.
22309         * config/pa/pa64-hpux.opt: New file.
22310
22311 2005-04-22  David S. Miller  <davem@davemloft.net>
22312
22313         * rtl.h (CONST_DOUBLE): Fix comment, a CONST_DOUBLE holds an
22314         integer when it's mode is VOIDmode not DImode.
22315
22316 2005-04-22  Geoffrey Keating  <geoffk@apple.com>
22317
22318         * config/rs6000/rs6000.md (sync_add<mode>_internal,
22319         sync_addshort_internal, sync_sub<mode>_internal, sync_andsi_internal,
22320         sync_anddi_internal, sync_boolsi_internal, sync_booldi_internal,
22321         sync_boolc<mode>_internal, sync_boolc<mode>_internal2,
22322         sync_boolcc<mode>_internal, sync_lock_test_and_set<mode>): Use
22323         "bne- $-xxx" rather than local labels.
22324         (sync_lock_release<mode>): Add second operand.
22325         (lwsync): Use .long rather than a more meaningful opcode.
22326         * doc/md.texi (Standard Names): Add description of second
22327         parameter to sync_lock_test_and_set.
22328
22329 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
22330
22331         PR tree-optimization/21088
22332         * fold-const.c (fold_unary, fold_binary, fold_ternary):
22333         Export.
22334         * tree-vrp.c (compare_values): Use fold_binary to compare
22335         pointers.  Use boolean_type_node as the type of a comparison
22336         expression being folded.
22337         * tree.h: Add prototypes for fold_unary, fold_binary,
22338         fold_ternary.
22339
22340         * tree-ssa-dom.c: Fix formatting.
22341
22342 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
22343
22344         * Makefile.in (tree-into-ssa.o): Add dependency on PARAMS_H.
22345         * lambda-code.c (perfect_nestify): Mark virtual operands in
22346         the moved statement for renaming.
22347         * params.def (PARAM_MIN_VIRTUAL_MAPPINGS): Define.
22348         (PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
22349         * params.h (MIN_VIRTUAL_MAPPINGS): Define.
22350         (VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
22351         * tree-flow.h (struct var_ann_d): Update comments.
22352         (rewrite_to_new_ssa_names_bb, rewrite_to_new_ssa_names,
22353         allocate_ssa_names, find_phi_node_for, dump_tree_ssa,
22354         debug_tree_ssa, debug_def_blocks, dump_tree_ssa_stats,
22355         debug_tree_ssa_stats, rewrite_ssa_into_ssa,
22356         dump_repl_tbl, debug_repl_tbl, dump_names_replaced_by,
22357         debug_names_replaced_by): Remove declarations.
22358         (delete_update_ssa, get_current_def, set_current_def): Declare.
22359         (rewrite_into_loop_closed_ssa): Add new argument.  Update
22360         all callers.
22361         * tree-into-ssa.c: Include params.h.
22362         (old_virtual_ssa_names): Remove.  Update all users.
22363         (need_to_replace_names_p): Remove.  Update all users.
22364         (struct update_ssa_stats_d): Declare.
22365         (update_ssa_stats): New local.
22366         (dump_tree_ssa, debug_tree_ssa, debug_def_blocks,
22367         dump_tree_ssa_stats, debug_tree_ssa_stats,
22368         dump_update_ssa, debug_update_ssa,
22369         dump_names_replaced_by, debug_names_replaced_by): Declare.
22370         (get_current_def, set current_def): Make extern.
22371         (is_old_name, is_new_name): Protect against references
22372         past the end of the sets.
22373         (add_new_name_mapping): Assert that OLD and NEW are
22374         different SSA names for the same symbol.
22375         When adding a virtual mapping, update stats for virtual
22376         mapping heuristic.
22377         (insert_phi_nodes_for): If UPDATE_P is true, create the
22378         LHS of the new PHI by duplicating SSA name VAR.
22379         (insert_phi_nodes_1): Remove.  Update all users.
22380         (insert_phi_nodes): Remove second argument.  Update all
22381         users.
22382         (maybe_replace_use, maybe_replace_def): New.
22383         (rewrite_update_stmt): Call them.
22384         (mark_def_interesting): Remove calls to is_gimple_reg.
22385         (prepare_phi_args_for_update): Remove.  Update all users.
22386         (prepare_block_for_update): Only process virtual operands
22387         and GIMPLE registers in normal form.
22388         (prepare_use_sites_for): New.
22389         (prepare_names_to_update): Rename from prepare_def_sites.
22390         Call prepare_use_sites_for.
22391         (dump_update_ssa): Rename from dump_repl_tbl.
22392         Update all users.
22393         Show statistics for virtual mapping heuristic.
22394         (debug_update_ssa): Rename from debug_debug_repl_tbl.
22395         (init_update_ssa): Initialize UPDATE_SSA_STATS.
22396         (delete_update_ssa): Make extern.
22397         (mark_set_for_renaming): If the set is empty, do nothing.
22398         (release_ssa_name_after_update_ssa): Update comment.
22399         (insert_updated_phi_nodes_for): Do not remove existing
22400         PHI nodes for symbols.
22401         (switch_virtuals_to_full_rewrite_p): New.
22402         (switch_virtuals_to_full_rewrite): New.
22403         (update_ssa): Call them.
22404         Clear REWRITE_THIS_STMT and REGISTER_DEFS_IN_THIS_STMT
22405         for every statement before updating.
22406         If all the names in NEW_SSA_NAMES have been marked for
22407         removal, do nothing.
22408         Only start at the top of the CFG if there are symbols in
22409         SYMS_TO_RENAME.
22410         (ssa_rewrite_finalize_block): Remove.
22411         (ssa_register_new_def): Remove.
22412         (ssa_rewrite_stmt): Remove.
22413         (ssa_rewrite_phi_arguments): Remove.
22414         (ssa_rewrite_initialize_block): Remove.
22415         (ssa_mark_def_sites): Remove.
22416         (ssa_mark_def_sites_initialize_block): Remove.
22417         (ssa_mark_phi_uses): Remove.
22418         (rewrite_ssa_into_ssa): Remove.
22419         * tree-phinodes.c (find_phi_node_for): Remove.
22420         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
22421         Call update_ssa.
22422         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops):
22423         Remove calls to verify_dominators and
22424         verify_loop_structure.
22425         (tree_unswitch_single_loop): Call update_ssa.
22426         * tree-ssa.c (verify_ssa): Assert that need_ssa_update_p
22427         returns false.
22428         Call verify_stmts.
22429         (delete_tree_ssa): Assert that need_ssa_update_p returns
22430         false.
22431         * tree-vect-transform.c (vect_transform_loop): Call update_ssa.
22432         * tree-vectorizer.c (allocate_new_names, rename_def_op,
22433         free_new_names): Remove.  Update all users.
22434         (rename_use_op): Call get_current_def.
22435         (rename_variables_in_bb): Do not handle any real or
22436         virtual definition.
22437         (slpeel_update_phis_for_duplicate_loop): Call
22438         get_current_def and set_current_def instead of using
22439         SSA_NAME_AUX.
22440         (slpeel_update_phi_nodes_for_guard2): Reformat comments.
22441         (slpeel_can_duplicate_loop_p): Call need_ssa_update_p,
22442         ssa_names_to_replace and delete_update_ssa.
22443         * doc/invoke.texi: Document --param min-virtual-mappings
22444         and --param virtual-mappings-ratio.
22445
22446 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
22447
22448         * tree-cfg.c (tree_duplicate_bb): Call create_new_def_for
22449         for newly created PHI nodes.
22450         Call create_new_def_for for every new V_MAY_DEF and
22451         V_MUST_DEF on the copied statement.
22452         (struct ssa_name_map_entry): Remove.
22453         (ssa_name_map_entry_hash): Remove.
22454         (ssa_name_map_entry_eq): Remove.
22455         (allocate_ssa_names): Remove.
22456         (rewrite_to_new_ssa_names_def): Remove.
22457         (rewrite_to_new_ssa_names_use): Remove.
22458         (rewrite_to_new_ssa_names_bb): Remove.
22459         (rewrite_to_new_ssa_names): Remove.
22460         (tree_duplicate_sese_region): Remove variables ver,
22461         definitions, phi, ssa_name_map and bi.
22462         Call need_ssa_update_p instead of any_marked_for_rewrite_p.
22463         Call update_ssa.
22464         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
22465         update_ssa instead of rewrite_ssa_into_ssa.
22466         * tree-ssa-loop-manip.c (add_exit_phis_edge): Call
22467         create_new_def_for.
22468         (find_uses_to_rename_use): Add argument 'need_phis'.
22469         (find_uses_to_rename_stmt): Do not scan virtual operands.
22470         (find_uses_to_rename): Only scan PHI nodes for
22471         non-virtual names.
22472         (rewrite_into_loop_closed_ssa): Call update_ssa.
22473         (check_loop_closed_ssa_use): Ignore virtual operands.
22474         (check_loop_closed_ssa_stmt): Likewise.
22475         (verify_loop_closed_ssa): Do nothing if CURRENT_LOOPS is
22476         NULL.
22477         (rename_variables, set_phi_def_stmts): Remove.
22478         (tree_duplicate_loop_to_header_edge): Reformat comment.
22479         Remove variables BB, I and DEFINITIONS.
22480         Call need_ssa_update_p.
22481         Call update_ssa.
22482         (lv_adjust_loop_header_phi): Reformat comment.
22483         * tree-ssanames.c (ssa_names_to_rewrite): Remove.
22484         (marked_for_rewrite_p, any_marked_for_rewrite_p,
22485         mark_for_rewrite, unmark_all_for_rewrite,
22486         marked_ssa_names): Remove.  Update all users.
22487         (release_ssa_name): If VAR has been registered for SSA
22488         updating, do nothing.
22489         * tree-vrp.c (new_ssa_names, old_ssa_names): Remove.
22490         (build_assert_expr_for): Call register_new_name_mapping.
22491         (insert_range_assertions): Update call to update_ssa.
22492         * tree.h (mark_for_rewrite, unmark_all_for_rewrite,
22493         marked_for_rewrite_p, any_marked_for_rewrite_p,
22494         marked_ssa_names): Remove.
22495
22496 2005-04-22  Jeff Law  <law@redhat.com>
22497
22498         * tree-ssa-dom.c (block_defs_stack): Remove, no longer needed.
22499         (restore_currdefs_to_original_value): Likewise.
22500         (register_definitions_for_stmt): Likewise.
22501         (tree_ssa_dominator_optimize): No longer initialize CURRENT_DEF
22502         for each variable.  Do not allocate/free block_defs_stack either.
22503         Do not iterate if we just thread jumps.  Only iterate if the
22504         tree_cleanup_cfg does useful work (temporary).
22505         (dom_opt_initialize_block): No longer push a marker on
22506         BLOCK_DEFS_STACK.
22507         (dom_opt_finalize_block): Removal call to restore currdefs.
22508         Relax restrictions for recording edge equivalences.
22509         (record_equivalences_from_phis): No longer need to track
22510         CURRENT_DEF.
22511         (optimize_stmt): Similarly.
22512         (thread_across_edge): Simplify by removing the requirement that
22513         statements in the block we are threading through must be nops.
22514         (initialize_hash_element): Handle GOTO_EXPR.
22515
22516 2005-04-22  David S. Miller  <davem@davemloft.net>
22517
22518         * sched-vis.c (print_value): Use CONST_DOUBLE_LOW and
22519         CONST_DOUBLE_HIGH.
22520         * config/sparc/sparc.c (sparc_rtx_costs): Likewise, and
22521         fix check on CONST_DOUBLE mode.  It should be VOIDmode
22522         when it is representing an integer.
22523
22524 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
22525
22526         * builtins.c (gimplify_va_arg_expr): Reword comments to avoid
22527         'abort'. Use gcc_assert and gcc_unreachable as appropriate.
22528         * c-format.c (get_constant, decode_format_attr, get_flag_spec,
22529         find_char_info_specifier_index,
22530         find_length_info_modifier_index): Likewise.
22531         * c-typeck.c (composite_type, pop_init_level): Likewise.
22532         * combine.c (cant_combine_insn_p, try_combine): Likewise.
22533         * cse.c (cse_insn): Likewise
22534         * dominance.c (calc_dfs_tree): Likewise
22535         dwarf2out.c (loc_descriptor_from_tree_1,
22536         add_abstract_origin_attribute, force_decl_die,
22537         force_type_die): Likewise
22538         emit-rtl.c (operand_subword_force): Likewise
22539         explow.c (hard_function_value): Likewise
22540         expmed.c (store_bit_field, expand_divmod,
22541         emit_store_flag_force): Likewise
22542         expr.c (emit_move_multi_word, store_expr,
22543         expand_expr_real_1): Likewise
22544         final.c (this_is_asm_operands, shorten_branches, final_scan_insn,
22545         output_operand): Likewise
22546         flow.c (recompute_reg_usage): Likewise
22547         * function.c (assign_stack_temp_for_type, assign_temp,
22548         handle_epilogue_set): Likewise
22549         * genextract.c (main): Likewise
22550         * gimplify.c (mostly_copy_tree_r, gimplify_return_expr,
22551         gimplify_modify_expr_rhs, gimplify_expr): Likewise
22552         * haifa-sched.c (ready_lastpos, ready_remove_first, ready_element,
22553         ready_remove, rm_line_notes, rm_other_notes,
22554         schedule_block): Likewise
22555         mips-tfile.c (copy_object, out_of_bounds): Likewise
22556
22557 2005-04-22 David Edelsohn  <edelsohn@gnu.org>
22558
22559         PR target/20813
22560         * config/rs6000/default64.h (TARGET_DEFAULT): Add MASK_PPC_GFXOPT.
22561         * config/rs6000/rs6000.c (processor_target_table): Rename rs64a to
22562         rs64.  Add MASK_PPC_GFXOPT to powerpc64 and rs64.
22563         (rs6000_init_libfuncs): Set TFmode optabs to xlq names if
22564         TARGET_XL_COMPAT.
22565         * doc/invoke.texi (PowerPC options): Change rs64a to rs64.
22566
22567 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
22568
22569         * lambda-code.c: Define VEC(int,heap), VEC(lambda_loop,heap).
22570         (gcc_tree_to_linear_expression): Convert to heap allocated
22571         vectors.
22572         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
22573         lbv_to_gcc_expression, lle_to_gcc_expression,
22574         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
22575         perfect_nestify): Likewise.
22576         lambda.h (gcc_loopnest_to_lambda_loopnest,
22577         lambda_loopnest_to_gcc_loopnest): Likewise.
22578         tree-loop-linear.c (linear_transform_loops): Likewise.
22579
22580 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
22581
22582         * config/sparc/predicates.md (arith_double_operand): Use
22583         trunc_int_for_mode if HOST_BITS_PER_WIDE_INT >=64.
22584         * config/sparc/sparc.md (movqi, movhi, movsi, movqi): Use gen_int_mode.
22585         (DImode, DFmode constant splitters): Likewise.  Remove code for
22586         TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT < 64.
22587         (logical constant splitters): Use const_int_operand predicate.
22588         (lshrsi3_extend): Remove code for TARGET_ARCH64 &&
22589         HOST_BITS_PER_WIDE_INT < 64.
22590
22591 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
22592
22593         * config/pa/pa.c (legitimize_pic_address): Use gcc_assert and
22594         gcc_unreachable as appropriate.
22595         (force_mode, emit_move_sequence, singlemove_string,
22596         output_move_double, output_fp_move_double, find_addr_reg,
22597         output_block_move, output_block_clear, output_and,
22598         output_64bit_and, output_ior, output_64bit_ior, store_reg_modify,
22599         pa_adjust_cost, pa_issue_rate, print_operand,
22600         output_global_address, output_arg_descriptor, output_cbranch,
22601         output_lbranch, output_bb, output_bvb, output_dbra, output_movb,
22602         output_call): Likewise.
22603         * config/pa/pa.md (call, call_value, sibcall, sibcall_value,
22604         prefetch, prefetch_cc, prefetch_nocc): Likewise.
22605
22606 2005-04-22  Zdenek Dvorak  <dvorakz@suse.cz>
22607
22608         * Makefile.in (LIBGCOV): Add _gcov_interval_profiler,
22609         _gcov_pow2_profiler and _gcov_one_value_profiler.
22610         (tree-profile.o): Add GGC_H and gt-tree-profile.h dependency.
22611         (GTFILES): Add $(srcdir)/tree-profile.c.
22612         * gcov-io.h (__gcov_interval_profiler, __gcov_pow2_profiler,
22613         __gcov_one_value_profiler): Declare.
22614         * gimplify.c (force_gimple_operand): Check whether the statements
22615         should be produced in ssa form.
22616         (force_gimple_operand_bsi): New function.
22617         * libgcov.c (__gcov_interval_profiler, __gcov_pow2_profiler,
22618         __gcov_one_value_profiler): New functions.
22619         * rtl-profile.c (rtl_gen_pow2_profiler): Only measure whether
22620         the profiled value is a power of two or not.
22621         * tree-cfg.c (tree_block_ends_with_condjump_p): Handle empty blocks.
22622         * tree-flow.h (in_ssa_p): Declare.
22623         (force_gimple_operand_bsi): Declare.
22624         * tree-into-ssa.c (in_ssa_p): New variable.
22625         (rewrite_into_ssa): Set in_ssa_p.
22626         * tree-outof-ssa.c (rewrite_out_of_ssa): Set in_ssa_p.
22627         * tree-profile.c: Include ggc.h and gt-tree-profile.h.
22628         (gcov_type_node, tree_interval_profiler_fn, tree_pow2_profiler_fn,
22629         tree_one_value_profiler_fn): New variables.
22630         (tree_init_edge_profiler): Initialize the profiler function decls.
22631         (tree_gen_edge_profiler): Use global gcov_type_node.
22632         (prepare_instrumented_value): New function.
22633         (tree_gen_interval_profiler, tree_gen_interval_profiler,
22634         tree_gen_one_value_profiler): Call the library functions instead of
22635         creating instrumentation code.
22636         * tree.c (build_fn_decl): New function.
22637         * tree.h (build_fn_decl): Declare.
22638         * value-prof.c (rtl_divmod_values_to_profile,
22639         rtl_find_values_to_profile, rtl_mod_pow2_value_transform,
22640         tree_mod_pow2_value_transform, tree_find_values_to_profile):
22641         Do not handle may_be_other and precise values of exponents at pow2
22642         profiler.
22643         (tree_mod_subtract_transform): Reflect that value field of
22644         histogram has changed meaning.
22645         (tree_divmod_values_to_profile): Record the values correctly.
22646         (tree_values_to_profile): Update comment.
22647         * value-prof.h (struct histogram_value_t): Remove pow2 data.
22648
22649 2005-04-22  Joseph S. Myers  <joseph@codesourcery.com>
22650
22651         * varasm.c (do_assemble_alias): Return early if TREE_ASM_WRITTEN
22652         (decl).
22653
22654 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
22655
22656         * config/i386/i386.md (length_immediate): Use gcc_assert or
22657         gcc_unreachable, as appropriate.
22658         (*movsi_1, *movqi_1, reload_outqi, *movdi_1_rex64, *pushsf,
22659         *pushsf_rex64, *truncxfsf2_mixed, *truncxfsf2_i387,
22660         *truncxfdf2_mixed, *truncxfdf2_i387, *adddi_1_rex64,
22661         *adddi_2_rex64, *adddi_3_rex64, *adddi_4_rex64, *adddi_5_rex64,
22662         *addsi_1, addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
22663         *addsi_3_zext, *addsi_4, *addsi_5, *addhi_1_lea, *addhi_1,
22664         *addhi_2, *addhi_3, *addhi_4, *addhi_5, *addqi_1_lea, *addqi_1,
22665         *addqi_1_slp, *addqi_2, *addqi_3, *addqi_4, *addqi_5, addqi_ext_1,
22666         *addqi_ext_1_rex64, *anddi_1_rex64, *andsi_1, *andhi_1,
22667         *ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashlsi3_1, *ashlsi3_1_zext,
22668         *ashlsi3_cmp, *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1,
22669         *ashlhi3_cmp, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
22670         pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64,
22671         pro_epilogue_adjust_stack_rex64_2, prefetch, *prefetch_sse,
22672         *prefetch_sse_rex): Likewise.
22673         * config/i386/predicates.md (x86_64_immediate_operand,
22674         x86_64_zext_immediate_operand, symbolic_operand,
22675         no_seg_address_operand, aligned_operand,
22676         memory_displacement_operand): Likewise.
22677         * config/i386/sse.md (*mov<mode>_internal,
22678         *movv2df_internal): Likewise.
22679
22680 2005-04-22  Jan Hubicka  <jh@suse.cz>
22681
22682         * Makefile.in (ipa.o, ipa-inline.o): New files.
22683         * cgraph.h (cgraph_remove_unreachable_nodes, cgraph_postorder,
22684         cgraph_decide_inlining_incrementally, cgraph_clone_inlined_nodes,
22685         cgraph_mark_inline_edge, cgraph_default_inline_p): Declare.
22686         * cgraphunit.c (cgraph_default_inline_p,
22687         cgraph_decide_inlining_incrementally,  ncalls_inlined,
22688         nfunctions_inlined, initial_insns, overall_insns,
22689         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
22690         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
22691         cgraph_mark_inline, cgraph_check_inline_limits,
22692         cgraph_default_inline_p, cgraph_recursive_inlining_p,
22693         update_callee_keys, lookup_recursive_calls,
22694         cgraph_decide_recursive_inlining, cgraph_set_inline_failed,
22695         cgraph_decide_inlining_of_small_functions, cgraph_decide_inlining,
22696         cgraph_decide_inlining_incrementally, cgraph_gate_inlining,
22697         pass_ipa_inline): Move to ipa-inline.c
22698         (cgraph_postorder, cgraph_remove_unreachable_nodes): Move to ipa.c
22699         * ipa.c: New file.
22700         * ipa-inline.c: New file.
22701
22702 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
22703
22704         * doc/invoke.texi (SPARC options): Document that -mapp-regs
22705         is turned off by default on Solaris.
22706
22707 2005-04-21  Roger Sayle  <roger@eyesopen.com>
22708
22709         * c-common.h (objc_build_method_signature): Update prototype.
22710         * stub-objc.c (objc_build_method_signature): Update the stub
22711         implementation to accept and ignore additional parameter.
22712         * c-parser.c (c_parser_objc_method_decl): Reorgnize to pass
22713         the value of ellipsis to objc_build_method_signature instead
22714         of setting TREE_OVERFLOW on the parms TREE_LIST node.
22715
22716 2005-04-21  Geoffrey Keating  <geoffk@apple.com>
22717
22718         * config/rs6000/rs6000-protos.h (rs6000_emit_sync): New.
22719         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Use
22720         gen_rtx_* not gen_rtx_fmt_*.
22721         (rs6000_emit_vector_select): Likewise.
22722         (rs6000_emit_sync): New.
22723         * config/rs6000/rs6000.md (GPR, INT, INT1): New mode macros.
22724         (larx, stcx, cmp): New mode substitutions.
22725         (UNSPEC_SYNC, UNSPEC_SYNC_OP, UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC,
22726         UNSPEC_ISYNC): New constants.
22727         (rlwinm): Give name.
22728         (memory_barrier, isync, lwsync): New insns.
22729         (sync_compare_and_swap<mode>, sync_lock_test_and_set<mode>): New insn.
22730         (sync_lock_release<mode>): New expander.
22731         (sync_add<mode>, sync_sub<mode>, sync_ior<mode>, sync_and<mode>,
22732         sync_xor<mode>, sync_nand<mode>, sync_old_add<mode>,
22733         sync_old_sub<mode>, sync_old_ior<mode>, sync_old_and<mode>,
22734         sync_old_xor<mode>, sync_old_nand<mode>, sync_new_add<mode>,
22735         sync_new_sub<mode>, sync_new_ior<mode>, sync_new_and<mode>,
22736         sync_new_xor<mode>, sync_new_nand<mode>): New expanders.
22737         (sync_add<mode>_internal, sync_addshort_internal,
22738         sync_sub<mode>_internal, sync_andsi_internal, sync_anddi_internal,
22739         sync_boolsi_internal, sync_booldi_internal, sync_boolc<mode>_internal,
22740         sync_boolc<mode>_internal2, sync_boolcc<mode>_internal): New insns.
22741
22742         * doc/md.texi (Standard Names): sync_compare_and_swap's operand 0
22743         is the memory before, not after, the operation.  Clarify
22744         barrier requirements.
22745
22746 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
22747
22748         * cfghooks.h (struct cfg_hooks): Reword comments to avoid 'abort'.
22749         * lambda.h (lambda_vector_min_nz): Likewise.
22750         * langhooks.h (struct lang_hooks_for_types,
22751         struct lang_hooks): Likewise.
22752         * output.h (assemble_integer, this_is_asm_operands): Likewise.
22753         * tree.h: Likewise.
22754         * vec.h: Likewise.
22755         * tree-flow-inline.h (relink_imm_use): Use gcc_assert.
22756
22757         * optabs.c (prepare_cmp_insn, emit_cmp_and_jump_insns): Reword
22758         comments to avoid 'abort'.  Use gcc_assert as necessary.
22759         * opts.c (common_handle_option): Likewise.
22760         * pretty-print.c (pp_base_format_text): Likewise.
22761         * print-rtl.c (print_rtx): Likewise.
22762         * read-rtl.c (read_rtx_filename, read_rtx_1): Likewise.
22763         * regmove.c (try_auto_increment): Likewise.
22764         * reload.c (find_valid_class, find_reloads_toplev,
22765         find_equiv_reg): Likewise.
22766         * reload1.c (reload, forget_old_reloads_1, function_invariant_p,
22767         merge_assigned_reloads): Likewise.
22768         * tree-inline.c (inline_forbidden_p_1,
22769         estimate_num_insns_1): Likewise.
22770         * tree-optimize.c (execute_todo): Likewise.
22771         * tree-outof-ssa.c (eliminate_phi): Likewise.
22772         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
22773         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Likewise.
22774         * tree-ssa-operands.c (parse_ssa_operands,
22775         get_indirect_ref_operands, create_ssa_artficial_load_stmt): Likewise.
22776         * tree-ssa-pre.c (find_or_generate_expression): Likewise.
22777         * tree-ssanames.c (release_ssa_name): Likewise.
22778         * tree.c (int_bit_position, int_byte_position, tree_low_cst,
22779         walk_tree): Likewise.
22780
22781         * tree-ssa-operands.c (verify_abort): Fold into ..
22782         (verify_imm_links): ... here.
22783
22784 2005-04-21  Richard Henderson  <rth@redhat.com>
22785
22786         * config/alpha/sync.md (sync_new_nand<I48MODE>): Fix constraints
22787         on non-memory operand for previous inversion.
22788
22789 2005-04-21  Devang Patel  <dpatel@apple.com>
22790
22791         PR optimization/20994
22792         * tree-if-conv.c (find_phi_replacement_condition): Avoid generating
22793         x = !(a == b) : p , q;.
22794         (pass_if_conversion): Verify stmts and flow.
22795
22796 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
22797
22798         * optabs.c (gen_conditional_trap): Restore #define.
22799
22800         * alias.c (true_dependence): Remove 'abort' from comments. Use
22801         gcc_assert and gcc_unreachable as appropriate.
22802         (canon_true_dependence): Likewise.
22803         * bb-reorder.c (connect_traces): Likewise.
22804         * c-common.c (c_add_case_label): Likewise.
22805         * c-decl.c (finish_function): Likewise.
22806         * caller-save.c (insert_restore, insert_save): Likewise.
22807         * cfg.c (update_bb_profile_for_threading): Likewise.
22808         * cfganal.c (flow_active_insn_p): Likewise.
22809         * cfgexpand.c (add_reg_br_prob_note): Likewise.
22810         * cfgrtl.c (rtl_redirect_edge_and_branch_force, rtl_split_edge,
22811         cfg_layout_merge_blocks): Likewise.
22812         * ifcvt.c (cond_exec_process_insns, merge_if_block,
22813         find_if_block): Likewise.
22814         * integrate.c (allocate_initial_values): Likewise.
22815         * jump.c (reverse_condition, reverse_condition_maybe_unordered,
22816         swap_condition, unsigned_condition, signed_condition,
22817         mark_jump_label, invert_jump_1, rtx_renumbered_equal_p,
22818         reg_or_subregno): Likewise.
22819         * lambda-code.c (lambda_compute_auxillary_space,
22820         lambda_transform_legal_p): Likewise.
22821         * lambda-mat.c (lambda_matrix_inverse_hard): Likewise.
22822         * langhooks.c (lhd_set_decl_assembler_name, lhd_type_promotes_to,
22823         lhd_incomplete_type_error, lhd_expand_expr,
22824         lhd_types_compatible_p, lhd_tree_size): Likewise.
22825         * lcm.c (create_pre_exit, optimize_mode_switching): Likewise.
22826         * local-alloc.c (update_equiv_regs): Likewise.
22827         * loop-unroll.c (peel_loop_completely
22828         unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
22829         peel_loop_simple, unroll_loop_stupid,
22830         analyze_iv_to_split_insn): Likewise.
22831         * loop.c (gen_prefetch, find_and_verify_loops,
22832         basic_induction_var): Likewise.
22833         * modulo-sched.c (normalize_sched_times, check_nodes_order): Likewise.
22834         * value-prof.c (tree_find_values_to_profile): Likewise.
22835         * varasm.c (named_section, default_assemble_integer,
22836         decode_addr_const): Likewise.
22837
22838 2005-04-21 Alan Modra  <amodra@bigpond.net.au>
22839            Fariborz Jahanian <fjahanian@apple.com>
22840
22841         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Fix size of
22842         portion of argument passed in fpr.
22843         * expr.c (emit_push_insn): Fix computation of 'offset' used to
22844         decide on partial argument save on stack.
22845
22846 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
22847
22848         * config/sparc/predicates.md, config/sparc/sparc.md: Fix
22849         comment typos.
22850
22851 2005-04-21  Jan Hubicka  <jh@suse.cz>
22852
22853         * cgraphunit.c: Include tree-pass.h
22854         (cgraph_decide_recursive_inlining,
22855         cgraph_decide_inlining_of_small_function, cgraph_set_inline_failed,
22856         cgraph_decide_inlining): Dump goes to dump_file.
22857         (cgraph_optimize): Call ipa passes instead of inliner.
22858         (cgraph_gate_inlining, pass_ipa_inline): New.
22859         * tree-optimize.c (all_ipa_passes): New static variable.
22860         (register_one_dump_file): Dead with IPA passes.
22861         (register_dump_files): Likewise.
22862         (init_tree_optimization_passes): Initialize IPA passes.
22863         (execute_todo): Do cgraph dump when asked to, do not dump function body
22864         for IPA pass.
22865         * tree-pass.h (TODO_dump_cgraph): New macro.
22866         (ipa_passes): Declare.
22867         * Makefile.in (cgraphunit.o): Add dependency on cgraphunit.h
22868
22869 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
22870
22871         * config/i386/i386.c (type_natural_mode): Use gcc_unreachable and
22872         gcc_assert instead of abort.
22873         (classify_argument, examine_argument, construct_container,
22874         contains_128bit_aligned_vector_p, ix86_check_movabs,
22875         standard_80387_constant_opcode, standard_80387_constant_rtx,
22876         ix86_initial_elimination_offset, ix86_compute_frame_layout,
22877         pro_epilogue_adjust_stack, ix86_expand_epilogue,
22878         ix86_address_cost, legitimate_address_p, legitimize_pic_address,
22879         legitimize_tls_address, output_pic_addr_const,
22880         i386_output_dwarf_dtprel, put_condition_code, print_reg,
22881         get_some_local_dynamic_name, print_operand, print_operand_address,
22882         output_387_binary_op, emit_i387_cw_initialization,
22883         output_fix_trunc, output_fp_compare, ix86_output_addr_vec_elt,
22884         ix86_expand_clear, ix86_expand_binary_operator,
22885         ix86_expand_unary_operator, ix86_match_ccmode, ix86_cc_mode,
22886         ix86_cc_modes_compatible, ix86_fp_comparison_codes,
22887         ix86_fp_comparison_arithmetics_cost, ix86_expand_fp_compare,
22888         ix86_expand_branch, ix86_expand_setcc,
22889         ix86_expand_carry_flag_compare, ix86_expand_fp_movcc,
22890         ix86_expand_int_addcc, ix86_split_to_parts, ix86_split_long_move,
22891         ix86_expand_movmem, ix86_expand_call, assign_386_stack_local,
22892         memory_address_length, ix86_attr_length_immediate_default,
22893         ix86_attr_length_address_default, ix86_agi_dependant,
22894         x86_initialize_trampoline, ix86_init_mmx_sse_builtins,
22895         ix86_expand_binop_builtin, ix86_force_to_memory,
22896         ix86_secondary_memory_needed, ix86_avoid_jump_misspredicts,
22897         x86_emit_floatuns): Likewise.
22898         * config/i386/netware.c (gen_regparm_prefix,
22899         i386_nlm_strip_name_encoding): Likewise.
22900         * config/i386/winnt.c (i386_pe_mark_dllexport): Likewise.
22901
22902 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
22903
22904         * optabs.c (gen_condiational_trap): Remove #define.
22905         (add_equal_note): Assertify. Remove explicit indirection from
22906         call via function pointer.
22907         (expand_ternary_op, expand_simple_binop, expand_binop,
22908         expand_twoval_unop, expand_twoval_binop,
22909         expand_twoval_binop_libfunc, expand_simple_unop expand_unop,
22910         emit_unop_insn,  emit_no_conflict_block,  prepare_cmp_insn,
22911         prepare_operand emit_cmp_and_jump_insn_1, emit_cmp_and_jump_insns,
22912         prepare_float_lib_cmp, emit_conditional_move,
22913         emit_conditional_add, gen_add2_insn, gen_add3_insn,
22914         have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn,
22915         expand_float, expand_fix, debug_optab_libfuncs, gen_cond_trap,
22916         vector_compare_rtx, expand_vec_cond_expr): Likewise.
22917
22918 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
22919
22920         * vec.h: Update API to separate allocation mechanism from type.
22921         (VEC_safe_grow): New.
22922         * vec.c (calculate_allocation): New.
22923         (vec_gc_o_reserve, vec_heap_o_reserve): Adjust.
22924         (vec_gc_free, vec_heap_free): Remove.
22925         * gengtype-lex.l (DEF_VEC_): Process mult-argument macros.  Adjust.
22926         (VEC): Likewise.
22927         (mangle_macro_name): New.
22928         (struct macro_def): New.
22929         (struct macro): Add multiple argument values.
22930         (macro_expans_end): New.
22931         (push_macro_expansion):  Chain on new macro. Process multiple
22932         args, create follow on expansion. Return follow on argument.
22933         (macro_input): Deal with multiple arguments.
22934
22935         * tree.h: Define VEC(tree,heap) and VEC(tree,gc).
22936         (struct tree_binfo): Adjust.
22937         * basic-block.h: Define VEC(edge,gc).
22938         (struct edge_def): Adjust.
22939         (struct basic_block_def, struct edge_iterator): Likewise.
22940         (ei_container, ei_start_1, ei_last_1): Likewise.
22941         * cfg.c (connect_src, connect_dest): Likewise.
22942         * cfgrtl.c (force_nonfallthru_and_redirect)
22943         * dbxout.c (dbxout_type)
22944         * dwarf2out.c (gen_member_die)
22945         * lambda-code.c: Define VEC(int,gc), VEC(lambda_loop,gc).
22946         (gcc_tree_to_linear_expression): Adjust.
22947         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
22948         lbv_to_gcc_expression, lle_to_gcc_expression,
22949         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
22950         perfect_nestify): Likewise.
22951         * lambda.h (gcc_loopnest_to_lambda_loopnest,
22952         lambda_loopnest_to_gcc_loopnest): Adjust prototypes.
22953         * profile.c (instrument_values): Adjust.
22954         * tree-cfg.c (modified_noreturn_calls): Adjust.
22955         (remove_fallthru_edge): Likewise.
22956         * tree-dump.c (dequeue_and_dump): Adjust.
22957         * tree-flow-inline.h (mark_stmt_modified): Adjust.
22958         * tree-flow.h (modified_noreturn_calls): Adjust.
22959         (tree_on_heap): Remove. (yay!)
22960         (register_new_def): Adjust.
22961         * tree-into-ssa.c: Define VEC(int,heap).
22962         (block_defs_stack): Adjust.
22963         (find_idf, insert_phi_nodes, register_new_def,
22964         rewrite_initialize_block, rewrite_finalize_block,
22965         register_new_update_single, rewrite_update_init_block,
22966         rewrite_update_fini_block, rewrite_blocks,
22967         ssa_rewrite_finalize_block, ssa_register_new_def,
22968         ssa_rewrite_initialize_block, rewrite_ssa_into_ssa): Likewise.
22969         * tree-loop-linear.c (linear_transform_loops): Adjust.
22970         * tree-ssa-alias.c: Define VEC(fieldoff_t,heap).
22971         (push_fields_onto_fieldstack, create_overlap_variables_for): Adjust.
22972         * tree-ssa-dom.c (avail_exprs_stack, block_defs_stack,
22973         stmts_to_rescan, const_and_copies_stack, nonzero_vars_stack,
22974         vrp_variables_stack): Adjust declarations.
22975         (tree_ssa_dominator_optimize): Adjust.
22976         (dom_opt_initialize_block, remove_local_expressions_from_table,
22977         restore_nonzero_vars_to_original_value,
22978         restore_vars_to_original_value,
22979         restore_currdefs_to_original_value, dom_opt_finalize_block,
22980         record_var_is_nonzero, record_cond, record_const_or_copy_1,
22981         optimize_stmt, update_rhs_and_lookup_avail_expr,
22982         lookup_avail_expr, record_range): Likewise.
22983         * tree-ssa-pre.c: Define VEC(basic_block,heap).
22984         (compute_antic_aux): Adjust.
22985         (inserted_exprs, create_expression_by_pieces,
22986         insert_into_preds_of_block, eliminate, mark_operand_necessary,
22987         remove_dead_inserted_code, fini_pre): Likewise.
22988         * tree-ssa-propagate.c (interesting_ssa_edges): Adjust.
22989         (varying_ssa_edges, add_ssa_edge, process_ssa_edge_worklist.
22990         ssa_prop_init): Likewise.
22991         * tree-ssa.c: Define VEC(bitmap,heap).
22992         (verify_name_tags): Adjust.
22993         * value-prof.c (rtl_divmod_values_to_profile): Adjust.
22994         (insn_prefetch_values_to_profile, rtl_find_values_to_profile,
22995         tree_divmod_values_to_profile, tree_find_values_to_profile,
22996         value_profile_transformations): Likewise.
22997         * value-prof.h: Define VEC(histogram_value,heap).
22998         * varasm.c: Remove alias_pair pointer typedef, define
22999         VEC(alias_pair,gc).
23000         (finish_aliases_1, finish_aliases_2, assemble_alias): Adjust.
23001
23002         * config/pa/pa.c (typedef extern_symbol): Typedef the structure,
23003         not a pointer to it.  Create an object vector.
23004         (extern_symbols): Turn into an object vector.
23005         (pa_hpux_asm_output_external, pa_hpux_file_end): Adjust.
23006
23007 2005-04-21  Sebastian Pop  <pop@cri.ensmp.fr>
23008
23009         PR/20742
23010         * Makefile.in (tree-chrec.o): Depend on params.h.
23011         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): New parameter with
23012         default value 20.
23013         * tree-chrec.c: Depend on params.h.  Replace build with buildN,
23014         and fold build with fold_buildN.
23015         (chrec_fold_plus_1): Fail with a chrec_don_know when the size of
23016         the expression exceeds PARAM_SCEV_MAX_EXPR_SIZE.
23017         (tree_contains_chrecs): Compute an estimation of the size of the
23018         given expression.
23019         * tree-chrec.h (tree_contains_chrecs): Modify its declaration.
23020         (tree_does_not_contain_chrecs): Update the use of tree_contains_chrecs.
23021         * tree-scalar-evolution.c (simple_iv): Ditto.
23022         * doc/invoke.texi (scev-max-expr-size): Documented.
23023
23024 2005-04-21  Richard Sandiford  <rsandifo@redhat.com>
23025
23026         * config.gcc (*-*-darwin*): Add darwin.opt to $extra_options.
23027         (i[34567]86-pc-msdosdjgpp*): Likewise i386/djgpp.opt.
23028         (i[34567]86-*-lynxos*, powerpc-*-lynxos*): Likewise lynx.opt.
23029         (i[34567]86-*-sco3.2v5*): Likewise i386/sco5.opt.
23030         (i[34567]86-*-pe, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
23031         (i[34567]86-*-uwin*): Likewise i386/cygming.opt.
23032         * config/darwin.h (darwin_one_byte_bool, darwin_fix_and_continue)
23033         (darwin_fix_and_continue_switch, SUBTARGET_OPTIONS): Delete.
23034         * config/darwin.c (darwin_one_byte_bool, darwin_fix_and_continue)
23035         (darwin_fix_and_continue_switch): Delete.
23036         * config/lynx.h (SUBTARGET_OS_LYNX_SWITCHES): Delete.
23037         (SUBTARGET_SWITCHES): Delete.
23038         * config/i386/i386.h (target_flags, MASK_80387, MASK_RTD)
23039         (MASK_ALIGN_DOUBLE, MASK_SVR3_SHLIB, MASK_IEEE_FP, MASK_FLOAT_RETURNS)
23040         (MASK_NO_FANCY_MATH_387, MASK_OMIT_LEAF_FRAME_POINTER)
23041         (MASK_STACK_PROBE, MASK_NO_ALIGN_STROPS, MASK_INLINE_ALL_STROPS)
23042         (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS, MASK_MMX)
23043         (MASK_SSE, MASK_SSE2, MASK_SSE3, MASK_3DNOW, MASK_3DNOW_A)
23044         (MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT)
23045         (MASK_TLS_DIRECT_SEG_REFS, MASK_NO_RED_ZONE, TARGET_80387)
23046         (TARGET_RTD, TARGET_ALIGN_DOUBLE, TARGET_PUSH_ARGS)
23047         (TARGET_ACCUMULATE_OUTGOING_ARGS, TARGET_SVR3_SHLIB, TARGET_IEEE_FP)
23048         (TARGET_128BIT_LONG_DOUBLE, TARGET_NO_FANCY_MATH_387)
23049         (TARGET_USE_FANCY_MATH_387, TARGET_OMIT_LEAF_FRAME_POINTER)
23050         (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Delete.
23051         (TARGET_FLOAT_RETURNS_IN_80387): Make an alias of TARGET_FLOAT_RETURNS.
23052         (TARGET_64BIT): Undef before redefining.
23053         (TARGET_TLS_DIRECT_SEG_REFS, TARGET_STACK_PROBE)
23054         (TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS, TARGET_SSE)
23055         (TARGET_SSE2, TARGET_SSE3, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A)
23056         (TARGET_RED_ZONE, TARGET_USE_MS_BITFIELD_LAYOUT, TARGET_SWITCHES)
23057         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS)
23058         (ix86_fpmath_string, ix86_tls_dialect_string, ix86_cmodel_string)
23059         (ix86_asm_string, ix86_regparm, ix86_regparm_string)
23060         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
23061         (ix86_debug_arg_string, ix86_debug_addr_string)
23062         (ix86_align_loops_string, ix86_align_jumps_string)
23063         (ix86_align_funcs_string): Delete.
23064         * config/i386/cygming.h (MASK_NOP_FUN_DLLIMPORT)
23065         (TARGET_NOP_FUN_DLLIMPORT, SUBTARGET_SWITCHES): Delete.
23066         * config/i386/djgpp.h (MASK_BNU210, SUBTARGET_SWITCHES): Delete.
23067         (SUBTARGET_OVERRIDE_OPTIONS): Check TARGET_BNU210.
23068         * config/i386/lynx.h (SUBTARGET_SWITCHES): Delete.
23069         * config/i386/sco5.h (MASK_COFF, TARGET_ELF)
23070         (SUBTARGET_SWITCHES): Delete.
23071         * config/i386/i386.c (ix86_debug_arg_string): Delete.
23072         (ix86_debug_addr_string): Delete.
23073         (ix86_cmodel_string, ix86_asm_string, ix86_tls_dialect_string)
23074         (ix86_fpmath_string, ix86_regparm_string, ix86_regparm)
23075         (ix86_align_loops_string, ix86_align_jumps_string)
23076         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
23077         (ix86_align_funcs_string): Make static.
23078         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
23079         (ix86_handle_option): New function.
23080         (TARGET_USE_MS_BITFIELD_LAYOUT): Delete.
23081         (ix86_ms_bitfield_layout_p): Check TARGET_MS_BITFIELD_LAYOUT.
23082         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove handling
23083         of darwin_fix_and_continue_switch.
23084         (darwin_one_byte_bool): Delete.
23085         * config/rs6000/lynx.h (EXTRA_SUBTARGET_SWITCHES): Delete.
23086         * config/rs6000/rs6000.c (rs6000_override_options): Update assignment
23087         to darwin_one_byte_bool.
23088         * config/darwin.opt, config/lynx.opt, config/i386/cygming.opt,
23089         * config/i386/djgpp.opt, config/i386/i386.opt,
23090         * config/i386/sco5.opt: New files.
23091
23092 2005-04-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
23093
23094         * config/sparc/sparc.c (reg_or_0_operand, const1_operand,
23095         fp_zero_operand, fp_register_operand, intreg_operand,
23096         fcc_reg_operand, fcc0_reg_operand, icc_or_fcc_reg_operand,
23097         call_operand, call_operand_address, tgd_symbolic_operand,
23098         tld_symbolic_operand, tie_symbolic_operand, tle_symbolic_operand,
23099         symbolic_operand, symbolic_memory_operand, label_ref_operand,
23100         sp64_medium_pic_operand, data_segment_operand,
23101         text_segment_operand, splittable_symbolic_memory_operand,
23102         reg_or_nonsymb_mem_operand, splittable_immediate_memory_operand,
23103         eq_or_neq, normal_comp_operator, noov_compare_op,
23104         noov_compare64_op, v9_regcmp_op, extend_op, cc_arithop,
23105         cc_arithopn, arith_operand, arith_4096_operand, arith_add_operand,
23106         const64_operand, const64_high_operand, arith11_operand,
23107         arith10_operand, arith_double_operand, arith_double_4096_operand,
23108         arith_double_add_operand, arith11_double_operand,
23109         arith10_double_operand, small_int, small_int_or_double,
23110         uns_small_int, uns_arith_operand, clobbered_register,
23111         input_operand, compare_operand): Delete.
23112         (sparc_emit_set_const32): Use predicates in assertion.  Remove special
23113         code for TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT != 64.
23114         (sparc_emit_set_const64): Call gcc_unreachable if H_B_P_W_I == 32.
23115         (GEN_HIGHINT64, GEN_INT64): Delete.
23116         (sparc_emit_set_safe_HIGH64, gen_safe_SET64, gen_safe_OR64,
23117         gen_safe_XOR64): Adjust for above deletion.
23118         (sparc_emit_set_const64): Support only H_B_P_W_I == 64 and CONST_INTs.
23119         Use 'unsigned HOST_WIDE_INT' instead of 'long' for bitmask.
23120         (legitimate_constant_p): Use const_zero_operand instead.
23121         (sparc_extra_constraint_check): Likewise.
23122         * config/sparc/sparc.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'O'.
23123         (PREFERRED_RELOAD_CLASS): Use const_zero_operand.
23124         (PREDICATE_CODES): Delete.
23125         * config/sparc/sparc.md: Include predicates.md.
23126         (All patterns): Adjust for new predicate names.
23127         (cmpdi, cmpdi_sp64): Use arith_operand predicate.
23128         (movhi_const64_special, movsi_const64_special): Add 'K' constraint.
23129         (movdi): Use general_operand predicate.
23130         (movdi_sp64_dbl): Delete.
23131         (movdi_const64_special): Add 'N' constraint.
23132         (movdicc): Use arith10_operand predicate.
23133         (movdi_cc_sp64, movdi_cc_sp64_trunc): Use arith11_operand predicate.
23134         (movdi_cc_reg_sp64): Use arith10_operand predicate.
23135         (movdi_cc_reg_sp64_trunc): Delete.
23136         (cmp_zero_extract, cmp_zero_extract_sp64): Use small_int_operand.
23137         (adddi3_sp64, cmp_ccx_plus, cmp_ccx_plus_set): Use arith_operand.
23138         (subdi3_sp32): Delete.
23139         (subdi3_insn_sp32): Change to define_insn_and_split.
23140         (subdi3_sp64, cmp_minus_ccx, cmp_minus_ccx_set): Use arith_operand.
23141         (muldi3, muldi3_sp64, muldi3_v8plus): Likewise.
23142         (smulsi3_highpart_v8plus, const_smulsi3_highpart_v8plus,
23143         umulsi3_highpart_v8plus, const_umulsi3_highpart_v8plus): Use
23144         small_int_operand predicate.
23145         (divdi3, udivdi3): Use arith_operand predicate.
23146         (udivsi3, udivsi3_sp32, udivsi3_sp64): Use nonimmediate_operand.
23147         (and<V64I>3_sp64, ior<V64I>3_sp64, xor<V64I:mode>3_sp64,
23148         xor_not_<V64I:mode>_sp64) : Use arith_operand predicate.
23149         (xordi3_sp64_dbl): Delete.
23150         (cmp_ccx_arith_op, cmp_ccx_arith_op_set, cmp_ccx_xor_not,
23151         cmp_ccx_xor_not_set, cmp_ccx_arith_op_not, cmp_ccx_arith_op_not_set,
23152         cmp_ccx_neg, cmp_ccx_set_neg, one_cmpl<V64I>2_sp64, cmp_ccx_not,
23153         cmp_ccx_set_not): Use arith_operand predicate.
23154         (ashrsi3_extend2, lshrsi3_extend2 et al.): Use small_int_operand.
23155         * config/sparc/predicates.md: New file.
23156
23157 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
23158
23159         PR tree-optimization/14846
23160         * fold-const.c (fold_single_bit_test_into_sign_test): New,
23161         split out from ...
23162         (fold_single_bit_test): ... here.
23163         (fold_binary): Call fold_single_bit_test_into_sign_test
23164         instead of fold_single_bit_test.
23165
23166 2005-04-20  James E Wilson  <wilson@specifixinc.com>
23167
23168         PR c++/20805
23169         * dwarf2out.c (gen_variable_die): Don't emit a specification if this
23170         is another declaration.
23171
23172 2005-04-21  Hans-Peter Nilsson  <hp@axis.com>
23173
23174         * config/cris/predicates.md: New file.
23175         * config/cris/cris-protos.h (cris_store_multiple_op_p)
23176         (cris_movem_load_rest_p): Declare.
23177         * config/cris/cris.c (cris_store_multiple_op): Return bool, not int.
23178         (cris_movem_load_rest_p): Ditto.  Globalize.
23179         (cris_bdap_operand, cris_bdap_biap_operand,
23180         cris_orthogonal_operator, cris_commutative_orth_op,
23181         cris_operand_extend_operator,
23182         cris_additive_operand_extend_operator, cris_extend_operator,
23183         cris_plus_or_bound_operator, cris_mem_op,
23184         cris_general_operand_or_symbol,
23185         cris_general_operand_or_gotless_symbol,
23186         cris_general_operand_or_plt_symbol, cris_mem_call_operand,
23187         cris_load_multiple_op): Remove predicate functions.
23188         (cris_symbol, cris_gotless_symbol) <case UNSPEC>: Return 0, don't
23189         abort, for UNSPECs other than CRIS_UNSPEC_PLT.
23190         * config/cris/cris.h (PREDICATE_CODES): Don't define.
23191         * config/cris/cris.md: Include predicates.md.
23192         ("call", "call_value"): Generate CONSTs of Pmode, not VOIDmode.
23193
23194 2005-04-20  Ian Lance Taylor  <ian@airs.com>
23195
23196         * c-common.def: Remove STMT_EXPR (moved to cp/cp-tree.def).
23197         * c-common.h (STMT_EXPR_STMT): Don't define.
23198         (STMT_EXPR_NO_SCOPE): Don't define.
23199         * c-dump.c (c_dump_tree): Don't handle STMT_EXPR.
23200         * c-pretty-print.c (pp_c_primary_expression): Likewise.
23201         (pp_c_expression): Likewise.
23202
23203 2005-04-20  Richard Henderson  <rth@redhat.com>
23204
23205         PR target/21100
23206         * config/i386/mmx.md (push<MMXMODE>1): Fix predicate thinko.
23207
23208 2005-04-20  Jeff Law  <law@redhat.com>
23209
23210         * reload1.c (reload): Ignore equivalences between pseudos and
23211         read only memory.
23212
23213 2005-04-20  Joseph S. Myers  <joseph@codesourcery.com>
23214
23215         PR c/12913
23216         * c-tree.h (struct c_label_list): Update comment.
23217         (struct c_label_context): Rename to struct c_label_context_se.
23218         (label_context_stack): Rename to label_context_stack_se.
23219         (C_DECL_UNJUMPABLE_VM, C_DECL_UNDEFINABLE_VM, struct
23220         c_label_context_vm, label_context_stack_vm, c_begin_vm_scope,
23221         c_end_vm_scope): New.
23222         (C_DECL_DECLARED_BUILTIN, C_DECL_USED): Use FUNCTION_DECL_CHECK.
23223         * c-decl.c (pop_scope): Call c_end_vm_scope.
23224         (pushdecl): Call c_begin_vm_scope for variably modified
23225         declarations.
23226         (define_label): Check for jumping into scope of identifier with
23227         variably modified type.  Push label on stack for those defined at
23228         current context of identifiers with variably modified type.
23229         (start_function): Create stack level for context of identifiers
23230         with variably modified type.
23231         (finish_function): Pop stack level for context of identifiers with
23232         variably modified type.
23233         * c-typeck.c (label_context_stack): Rename to
23234         label_context_stack_se.
23235         (label_context_stack_vm, c_begin_vm_scope, c_end_vm_scope): New.
23236         (c_finish_goto_label): Check for jumping into scope of identifier
23237         with variably modified type.  Push label on stack for those jumped
23238         to from current context of identifiers with variably modified
23239         type.
23240         (struct c_switch): Add blocked_vm.
23241         (c_start_case): Initialize blocked_vm.
23242         (do_case): Check blocked_vm.
23243         (c_finish_case): Add comment.
23244         (c_begin_stmt_expr, c_finish_stmt_expr): Update for renamed
23245         variable label_context_stack.
23246
23247 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
23248
23249         * tree-ssa-phiopt.c (tree_ssa_phi_opt): Update calls to
23250         conditional_replacement, value_replacement, abs_replacement,
23251         minmax_replacement.
23252         (replace_phi_edge_with_variable): Remove argument BB.
23253         (conditional_replacement, value_replacement,
23254         minmax_replacement, abs_replacement): Remove argument PHI_BB.
23255         Update a call to replace_phi_edge_with_variable.
23256
23257         * tree-ssa-phiopt.c: Fix comments.
23258
23259 2005-04-20  Michael Matz  <matz@suse.de>
23260
23261         PR20973
23262         * reload.c (push_reload, find_dummy_reload): Check for uninitialized
23263         pseudos.
23264
23265 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
23266
23267         * tree-ssa-phiopt.c: Fix comment typos.
23268
23269         PR tree-optimization/21116
23270         * tree-ssa-phiopt.c: Fix a typo.
23271
23272 2005-04-19  Richard Henderson  <rth@redhat.com>
23273
23274         * builtins.c (expand_builtin_sync_operation): Revert last change.
23275         * optabs.c (expand_bool_compare_and_swap): Compare vs old value,
23276         not vs new value.
23277         (expand_compare_and_swap_loop): Likewise.
23278         (expand_sync_operation): Remove fallback from NAND to AND; invert
23279         memory operand when expanding from cmpxchg.
23280         (expand_sync_fetch_operation): Likewise.
23281         * doc/extend.texi (Atomic Builtins): Fix docs for nand and
23282         compare-and-swap.
23283
23284         * config/alpha/alpha.c (alpha_split_atomic_op): Invert memory operand
23285         when implementing NAND.  Fix double-add for AFTER.
23286         * config/alpha/sync.md (sync_nand<I48MODE>): Invert memory operand.
23287         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
23288         (sync_compare_and_swap<I48MODE>): Fix compare vs zero.  Return old
23289         memory value.
23290         (sync_lock_test_and_set<I48MODE>): Remove extra label and last
23291         memory barrier.
23292
23293         * config/i386/sync.md (sync_compare_and_swap<IMODE>): Fix pattern
23294         to return old memory value.
23295         (sync_compare_and_swap_cc<IMODE>): Likewise.
23296
23297         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Early
23298         return pre-reload.  Don't consider output or anti dependencies.
23299         * config/ia64/sync.md (IMODE): New.
23300         (modesuffix): Add QI and HI.
23301         (memory_barrier): Simplify expansion.
23302         (sync_compare_and_swap<IMODE>): Use IMODE, not I48MODE.
23303         (cmpxchg_acq_<IMODE>): Likewise.
23304         (sync_lock_test_and_set<IMODE>): Likewise.
23305         (sync_lock_release<IMODE>): Likewise.
23306
23307 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
23308
23309         * fold-const.c (fold_binary): Fold ~(X ^ Y) to ~X ^ Y or X ^ ~Y if
23310         ~X or ~Y simplify.
23311
23312 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
23313
23314         * fold-const (fold_binary):  Fold ~X ^ ~ Y to X ^ Y.
23315
23316 2005-04-20  Michael Pogue  <michael.pogue@sun.com>
23317             Joseph S. Myers  <joseph@codesourcery.com>
23318
23319         * c.opt (Wint-to-pointer-cast, Wpointer-to-int-cast): New options.
23320         * c-typeck.c (build_c_cast): Check these options.
23321         * doc/invoke.texi: Document these options.
23322
23323 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
23324
23325         * tree-ssa-phiopt.c: Update a comment about the pass.
23326
23327 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
23328
23329         * tree-ssa-phiopt.c, config/arm/arm.c, config/fr30/fr30.md,
23330         config/mcore/mcore.c: Fix comment typos.
23331
23332 2005-04-19  Daniel Jacobowitz  <dan@codesourcery.com>
23333
23334         * Makefile.in (libgcc.mk): Pass GCC_FOR_TARGET.
23335         * mklibgcc.in: Use $GCC_FOR_TARGET instead of ./xgcc.
23336
23337 2005-04-19  Paul Brook  <paul@codesourcery.com>
23338
23339         * config/arm/arm.c (arm_init_libfuncs): Clear mod optabs.
23340
23341 2005-04-19  Andrew Haley  <aph@redhat.com>
23342
23343         PR java/21022
23344         * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before
23345         looking at a field's bitpos.
23346
23347 2005-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23348
23349         * system.h (fopen, fdopen, freopen): Define these to the unlocked
23350         libiberty functions.
23351
23352 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
23353
23354         PR tree-optimization/21096
23355         * tree-ssa-copy.c (fini_copy_prop): Free cached_last_copy_of.
23356
23357 2005-04-19  Alan Modra  <amodra@bigpond.net.au>
23358
23359         PR target/21098
23360         * config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
23361         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.
23362
23363 2005-04-19  Alexandre Oliva  <aoliva@redhat.com>
23364
23365         * tree-cfg.c (dump_function_to_file): Use cfun info only if it
23366         refers to the function being dumped.
23367
23368 2005-04-18  Daniel Jacobowitz  <dan@codesourcery.com>
23369
23370         * varasm.c (assemble_start_function): Remove reset of in_section.
23371
23372 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
23373
23374         PR tree-optimization/21085
23375         * fold-const (fold_binary): Don't change X % -C to X % C if C has
23376         overflowed.
23377
23378 2005-04-19  Ben Elliston  <bje@au.ibm.com>
23379
23380         * doc/invoke.texi (Optimize Options): Refer to the correct
23381         optimisation flag -ftree-dominator-opts, not -ftree-dom.
23382
23383 2005-04-18  Christopher Jaillet <christophe.jaillet@wanadoo.fr>
23384
23385         * config/rs6000/rs6000.c (machopic_output_stub):  Increase
23386         alloca argument to be big enough.
23387
23388 2005-04-18  Alexandre Oliva  <aoliva@redhat.com>
23389
23390         PR middle-end/21049
23391         * tree-cfg.c (dump_function_to_file): Do not crash if cfun or
23392         cfun->cfg are NULL.
23393
23394 2005-04-18  Tom Tromey  <tromey@redhat.com>
23395
23396         * cgraphunit.c (cgraph_finalize_compilation_unit): Fix a comment
23397         typo.
23398
23399 2005-04-18  Richard Henderson  <rth@redhat.com>
23400
23401         * config/alpha/alpha.c (alpha_split_atomic_op): New.
23402         (alphaev5_insn_pipe): Add LD_L, ST_C, MB types.
23403         (alphaev4_insn_pipe): Likewise.  Correct IST and LDSYM pipes.
23404         * config/alpha/alpha-protos.h: Update.
23405         * config/alpha/alpha.md (UNSPECV_MB, UNSPECV_LL, UNSPECV_SC): New.
23406         (UNSPECV_ATOMIC, UNSPECV_CMPXCHG, UNSPECV_XCHG): New.
23407         (attr type): Add ld_l, st_c, mb.
23408         (andsi_internal, andnotsi3, iorsi_internal, one_cmplsi_internal,
23409         iornotsi3, xorsi_internal, xornotsi3): New.
23410         * config/alpha/ev4.md (ev4_ld): Add ld_l.
23411         (ev4_ist_c, ev4_mb): New.
23412         * config/alpha/ev5.md (ev5_st): Add st_c, mb.
23413         (ev5_ld_l): New.
23414         * config/alpha/ev6.md (ev6_ild): Add ld_l.
23415         (ev6_ist): Add st_c.
23416         (ev6_mb): New.
23417         * config/alpha/sync.md: New file.
23418
23419 2005-04-18  Richard Henderson  <rth@redhat.com>
23420
23421         * builtins.c (expand_builtin_sync_operation): Fold nand to and
23422         for constants.
23423
23424         * optabs.c (expand_sync_operation): Fix typo expanding nand to and.
23425
23426 2005-04-18  Devang Patel  <dpatel@apple.com>
23427
23428         * config/rs6000/atlivec.md (mulv4si3): New pattern.
23429
23430 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
23431
23432         PR tree-optimization/20922
23433         * fold-const.c (fold_binary): Fold X - c > X and X + c < X to false.
23434         Fold X + c >= X and fold X - c <= X to true.
23435
23436 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
23437
23438         * config/ia64/unwind-ia64.c (emergency_reg_state_free): Make an
23439         unsigned int.
23440         (emergency_labeled_state_free): Likewise.
23441
23442 2005-04-18  Nick Clifton  <nickc@redhat.com>
23443
23444         * config/h8300/h8300.md (jump): Remove prescan parameter from
23445         calls to final_scan_insn.
23446
23447         * config/arc/arc.c (arc_output_function_epilogue): Remove prescan
23448         parameter from calls to final_scan_insn.
23449
23450         * config.gcc (m68hc12): Use the m68hc11.opt file for target
23451         specific options.
23452         (v850e, v850e1): Use the v850.opt file for target specific
23453         options.
23454
23455 2005-04-18  Kazu Hirata  <kazu@cs.umass.edu>
23456
23457         PR tree-optimization/21001
23458         * tree-optimize.c (init_tree_optimization_passes): Move the
23459         first pass_forwprop immediately before pass_vrp.
23460
23461 2005-04-17  Ian Lance Taylor  <ian@airs.com>
23462
23463         * c-common.def (SIZEOF_EXPR, ARROW_EXPR, ALIGNOF_EXPR): Remove.
23464         * c-common.c (c_sizeof_or_alignof_type): Change second parameter
23465         from enum tree_code op to bool is_sizeof.
23466         * c-common.h (c_sizeof_or_alignof_type): Update declaration.
23467         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
23468         * c-pretty-print.c (pp_c_postfix_expression): Remove ARROW_EXPR
23469         case.
23470         (pp_c_unary_expression): Remove SIZEOF_EXPR and ALIGNOF_EXPR
23471         cases.
23472         (pp_c_expression): Remove ARROW_EXPR, SIZEOF_EXPR, and
23473         ALIGNOF_EXPR cases.
23474
23475 2005-04-17  Ian Lance Taylor  <ian@airs.com>
23476
23477         * system.h: Poison DONT_ACCESS_GBLS_AFTER_EPILOGUE.
23478
23479 2005-04-17  Richard Henderson  <rth@redhat.com>
23480
23481         * config/alpha/alpha.c (va_list_skip_additions): Only define if
23482         TARGET_ABI_OSF.
23483         (TARGET_STDARG_OPTIMIZE_HOOK): Likewise.
23484         (alpha_stdarg_optimize_hook): Likewise.  Allow for one more round
23485         of indirection through ssa names while looking for the gpr counter
23486         field.
23487         (alpha_setup_incoming_varargs) <TARGET_ABI_OSF>: Make use of the
23488         saved va_list_gpr_size and va_list_fpr_size.
23489
23490 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
23491
23492         * tree-vrp.c (compare_values): Check that VAL1 and VAL2 are
23493         both pointers or both integers.
23494
23495         * tree-vrp.c (maybe_add_assert_expr): Don't assert
23496         ASSERT_EXPRs for single-use variable.
23497
23498         * tree-into-ssa.c: Fix a comment typo.
23499
23500 2005-04-17  Richard Sandiford  <rsandifo@redhat.com>
23501
23502         * config/mips/iris6.h (DRIVER_SELF_SPECS): Check -march as well as
23503         -mipsN before forcing a default of -mips2.
23504
23505 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
23506
23507         * predict.h (IS_TAKEN): Remove.
23508         * rtl.h (NOTE_PREDICTION): Likewise.
23509
23510         * modulo-sched.c (CFG_HOOKS): Remove.
23511
23512         * c-parser.c (N_C_TTYPES): Remove.
23513
23514         * tree-flow-inline.h (get_stmt_operands): Remove.
23515         * lambda-code.c, tree-ssa-loop-unswitch.c,
23516         tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa-propagate.c,
23517         tree-ssa-sink.c, tree-ssa.c, tree-tailcall.c,
23518         tree-vect-transform.c, tree-vectorizer.c, tree-vrp.c): Remove
23519         calls to get_stmt_operands.
23520         * doc/tree-ssa.texi: Don't mention get_stmt_operands.
23521
23522 2005-04-17  Richard Henderson  <rth@redhat.com>
23523
23524         PR target/20375
23525         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Advance a copy
23526         of CUMULATIVE_ARGS past the last named argument.
23527         (alpha_va_start): Expect pretend_args_size only if strictly less than
23528         6 named arguments.
23529
23530 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
23531
23532         PR middle-end/21024
23533         * builtins.c (expand_builtin_strcat): Convert the result of
23534         strlen to the right type.
23535         * fold-const.c (fold_binary) <PLUS_EXPR>: Use fold_convert to
23536         avoid creating type mismatches.
23537         <GE_EXPR>: Pass op0 and op1 to fold_build2 to avoid creating
23538         type mismatches.
23539
23540         * c-lex.c (WCHAR_TYPE_SIZE, WCHAR_BYTES): Remove.
23541
23542 2005-04-16  Richard Henderson  <rth@redhat.com>
23543
23544         PR target/21051
23545         * builtins.c (expand_builtin) <BUILT_IN_BOOL_COMPARE_AND_SWAP_*>:
23546         Use the mode of boolean_type_node when the user doesn't provide one.
23547         * config/ia64/sync.md (sync_lock_release<I48MODE>): Use operand 1.
23548
23549 2005-04-16  Alexandre Oliva  <aoliva@redhat.com>
23550
23551         PR target/20126
23552         * loop.c (loop_givs_rescan): Handle non-replaceable (plus (reg)
23553         (const)).
23554
23555         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Fix typo in
23556         comment.
23557
23558 2005-04-16  Roger Sayle  <roger@eyesopen.com>
23559             Steven Bosscher  <stevenb@suse.de>
23560
23561         * fold-const.c (fold_binary_to_constant): Delete obsolete comment.
23562         (fold_unary_to_constant): Likewise.
23563
23564 2005-04-16  Kazu Hirata  <kazu@cs.umass.edu>
23565
23566         * basic-block.h: Adjust the value of PROP_SCAN_DEAD_STORES,
23567         PROP_ASM_SCAN.
23568
23569 2005-04-16  Gerald Pfeifer  <gerald@pfeifer.com>
23570
23571         * doc/install.texi (Specific): Avoid using asterisks in @anchor
23572         names related to target triplets.
23573         Remove i?86-*-esix from platform directory.
23574         Remove powerpc-*-eabiaix from platform directory.
23575
23576 2005-04-16  Joseph S. Myers  <joseph@codesourcery.com>
23577
23578         PR middle-end/20491
23579         * config/ia64/ia64.c (rtx_needs_barrier): Recurse instead of
23580         falling through from SUBREG case to REG.
23581
23582 2005-04-15  Roger Sayle  <roger@eyesopen.com>
23583
23584         * fold-const.c (fold_relational_hi_lo): Delete function and prototype.
23585         (fold_binary): Update comment mentioning fold_relational_hi_lo.
23586         (fold_binary_to_constant): Simplify using fold_binary.
23587         (fold_unary_to_constant): Likewise, simplify using fold_unary.
23588
23589 2005-04-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
23590
23591         * gthr-posix.c (pthread_cancel): Define.
23592         (pthread_mutexattr_init): Likewise.
23593         (pthread_mutexattr_settype): Likewise.
23594         (pthread_mutexattr_destroy): Likewise.
23595
23596 2005-04-15  David S. Miller  <davem@davemloft.net>
23597
23598         PR target/20673
23599         * config/sparc/sparc.h (sparc_hard_reg_printed): Mark as GTY(()).
23600
23601 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
23602
23603         PR tree-optimization/21031
23604         * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): New.
23605         (forward_propagate_into_cond_1): Call it.  Forward propagate
23606         integer-integer casts into COND_EXPRs.
23607
23608 2005-04-15  Dave Korn  <dave.korn@artimi.com>
23609
23610         * gcc.c (default_compilers): Clarify obscure error message when
23611         reading from standard input.
23612
23613 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
23614
23615         * basic-block.h (PROP_EQUAL_NOTES): Remove.
23616         * flow.c (propagate_one_insn): Don't use PROP_EQUAL_NOTES.
23617
23618         * tree-ssa-alias.c (init_alias_info): Remove a call to
23619         get_stmt_operands.
23620
23621 2005-04-15  Andrew MacLeod  <amacleod@redhat.com>
23622
23623         * tree-vect-analyze.c (vect_stmt_relevant_p): Process immediate uses
23624         of non-virtual PHI nodes like we use to.
23625
23626 2005-05-15  Paolo Bonzini  <bonzini@gnu.org>
23627
23628         * genattrtab.c (ATTR_EQ_ATTR_P): Remove.
23629         (attr_copy_rtx): Do not use it.
23630
23631 2005-04-15  Andrew Macleod  <amacleod@redhat.com>
23632
23633         * doc/tree-ssa.texi: Grammer/abbreviation updates.
23634
23635 2005-04-15  Diego Novillo  <dnovillo@redhat.com>
23636
23637         * tree-vect-transform.c (vectorizable_store): Mark necessary
23638         objects in the vectorized store needing renaming.  Update the
23639         SSA graph for V_MAY_DEF operands in the original store.
23640
23641 2005-04-14  Daniel Berlin <dberlin@dberlin.org>
23642
23643         * tree-ssa-pre.c (compute_avail): It's okay to have
23644         TREE_INVARIANT's here, and value number the resulting expressions.
23645         (create_expression_by_pieces): Make sure operands that were
23646         min_invariant when we started, stay that way.
23647
23648 2005-04-15  David Edelsohn  <edelsohn@gnu.org>
23649
23650         * doc/install.texi (*-ibm-aix*): Add comment about system limits.
23651
23652 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
23653
23654         PR tree-optimization/20936.
23655         * tree-ssa-ccp.c (visit_assignment): Fix a typo.
23656
23657 2005-04-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
23658
23659         * doc/invoke.texi: Fix typos.
23660         * doc/md.texi: Likewise.
23661         * doc/rtl.texi: Likewise.
23662         * doc/sourcebuild.texi: Likewise.
23663         * doc/tm.texi: Likewise.
23664
23665 2005-04-15  Uros Bizjak  <uros@kss-loka.si>
23666
23667         PR tree-optimization/21004
23668         * convert.c (convert_to_integer): Convert ceilf, ceill, floorf
23669         and floorl in c99 mode only.
23670         * builtins.c (expand_builtin_int_roundingfn): Assert that
23671         fallback_fndecl is not NULL_TREE.
23672
23673 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
23674
23675         * cfgrtl.c (purge_all_dead_edge): Remove an unused argument.
23676         * basic-block.h: Update the prototype for
23677         purge_all_dead_edges.
23678         * cfgexpand.c (tree_expand_cfg): Update a call to
23679         purge_all_dead_edges.
23680         * combine.c (combine_instructions): Likewise.
23681         * passes.c (rest_of_handle_old_regalloc, rest_of_handle_cse,
23682         rest_of_handle_cse2, rest_of_handle_gcse,
23683         rest_of_handle_postreload): likewise.
23684
23685 2005-04-15  Alexandre Oliva  <aoliva@redhat.com>
23686
23687         PR middle-end/20739
23688         * gimplify.c (gimplify_addr_expr): Compensate for removal of
23689         e.g. cv-qualification conversions.
23690
23691 2005-04-14  Mike Stump  <mrs@apple.com>
23692
23693         * config/darwin-c.c (framework_construct_pathname): We must
23694         find all headers of a framework in the first instance of it
23695         found in the seach path.
23696
23697 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
23698
23699         PR tree-optimization/21021
23700         * tree-vrp.c (compare_values): Work around a bug in the front
23701         end that produces a comparison of mismatched types.
23702
23703 2004-04-14  Richard Henderson  <rth@redhat.com>
23704
23705         * config/ia64/ia64.h (enum fetchop_code): Remove.
23706         (enum ia64_builtins): Move ...
23707         * config/ia64/ia64.c (enum ia64_builtins): ... here.  Remove all
23708         members except BSP and FLUSHRS.
23709         (ia64_init_builtins): Remove __sync builtins.
23710         (ia64_expand_builtin): Likewise.
23711         (ia64_expand_fetch_and_op, ia64_expand_op_and_fetch): Remove.
23712         (ia64_expand_compare_and_swap, ia64_expand_lock_test_and_set): Remove.
23713         (ia64_expand_lock_release): Remove.
23714         * config/ia64/ia64.md (mf): Move to sync.md.
23715         (mf_internal, fetchadd_acq_si, fetchadd_acq_di, cmpxchg_acq_si,
23716         cmpxchg_acq_di, xchgsi, xchgdi): Likewise.
23717         * config/ia64/sync.md: New file.
23718         (memory_barrier): Rename from mf.
23719         (fetchadd_acq_<I48MODE>): Macroize from _si/_di patterns.
23720         (cmpxchg_acq_<I48MODE>): Likewise.
23721         (sync_lock_test_and_set<I48MODE>): Likewise.
23722
23723         * config/ia64/ia64intrin.h: Define nothing for C; limit #defines
23724         to c++.  Remove __sync* declarations.  s/_si/_4/.  s/_di/_8/.
23725
23726 2004-04-14  Richard Henderson  <rth@redhat.com>
23727
23728         * config/i386/i386.c (x86_cmpxchg, x86_xadd): New.
23729         (ix86_compare_emitted): New.
23730         (ix86_expand_compare): Use ix86_compare_emitted if set.
23731         (ix86_expand_setcc): Only emit REG_EQUAL if both ix86_compare_op0
23732         and ix86_compare_op0 are set.
23733         * config/i386/i386.h (x86_cmpxchg, x86_xadd): Declare.
23734         (TARGET_CMPXCHG, TARGET_XADD): New.
23735         (ix86_compare_emitted): Declare.
23736         * config/i386/i386.md: Include sync.md
23737         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2): New.
23738         (UNSPECV_XCHG, UNSPECV_LOCK): New.
23739         * config/i386/sync.md: New file.
23740
23741 2004-04-14  Richard Henderson  <rth@redhat.com>
23742
23743         PR middle-end/14311
23744         * builtin-types.def (BT_BOOL, BT_VOLATILE_PTR, BT_I1, BT_I2,
23745         BT_I4, BT_I8, BT_FN_VOID_VPTR, BT_FN_I1_VPTR_I1, BT_FN_I2_VPTR_I2,
23746         BT_FN_I4_VPTR_I4, BT_FN_I8_VPTR_I8, BT_FN_BOOL_VPTR_I1_I1,
23747         BT_FN_BOOL_VPTR_I2_I2, BT_FN_BOOL_VPTR_I4_I4, BT_FN_BOOL_VPTR_I8_I8,
23748         BT_FN_I1_VPTR_I1_I1, BT_FN_I2_VPTR_I2_I2, BT_FN_I4_VPTR_I4_I4,
23749         BT_FN_I8_VPTR_I8_I8): New.
23750         * builtins.def (DEF_SYNC_BUILTIN): New.
23751         (BUILT_IN_FETCH_AND_ADD_N, BUILT_IN_FETCH_AND_ADD_1,
23752         BUILT_IN_FETCH_AND_ADD_2, BUILT_IN_FETCH_AND_ADD_4,
23753         BUILT_IN_FETCH_AND_ADD_8, BUILT_IN_FETCH_AND_SUB_N,
23754         BUILT_IN_FETCH_AND_SUB_1, BUILT_IN_FETCH_AND_SUB_2,
23755         BUILT_IN_FETCH_AND_SUB_4, BUILT_IN_FETCH_AND_SUB_8,
23756         BUILT_IN_FETCH_AND_OR_N, BUILT_IN_FETCH_AND_OR_1,
23757         BUILT_IN_FETCH_AND_OR_2, BUILT_IN_FETCH_AND_OR_4,
23758         BUILT_IN_FETCH_AND_OR_8, BUILT_IN_FETCH_AND_AND_N,
23759         BUILT_IN_FETCH_AND_AND_1, BUILT_IN_FETCH_AND_AND_2,
23760         BUILT_IN_FETCH_AND_AND_4, BUILT_IN_FETCH_AND_AND_8,
23761         BUILT_IN_FETCH_AND_XOR_N, BUILT_IN_FETCH_AND_XOR_1,
23762         BUILT_IN_FETCH_AND_XOR_2, BUILT_IN_FETCH_AND_XOR_4,
23763         BUILT_IN_FETCH_AND_XOR_8, BUILT_IN_FETCH_AND_NAND_N,
23764         BUILT_IN_FETCH_AND_NAND_1, BUILT_IN_FETCH_AND_NAND_2,
23765         BUILT_IN_FETCH_AND_NAND_4, BUILT_IN_FETCH_AND_NAND_8,
23766         BUILT_IN_ADD_AND_FETCH_N, BUILT_IN_ADD_AND_FETCH_1,
23767         BUILT_IN_ADD_AND_FETCH_2, BUILT_IN_ADD_AND_FETCH_4,
23768         BUILT_IN_ADD_AND_FETCH_8, BUILT_IN_SUB_AND_FETCH_N,
23769         BUILT_IN_SUB_AND_FETCH_1, BUILT_IN_SUB_AND_FETCH_2,
23770         BUILT_IN_SUB_AND_FETCH_4, BUILT_IN_SUB_AND_FETCH_8,
23771         BUILT_IN_OR_AND_FETCH_N, BUILT_IN_OR_AND_FETCH_1,
23772         BUILT_IN_OR_AND_FETCH_2, BUILT_IN_OR_AND_FETCH_4,
23773         BUILT_IN_OR_AND_FETCH_8, BUILT_IN_AND_AND_FETCH_N,
23774         BUILT_IN_AND_AND_FETCH_1, BUILT_IN_AND_AND_FETCH_2,
23775         BUILT_IN_AND_AND_FETCH_4, BUILT_IN_AND_AND_FETCH_8,
23776         BUILT_IN_XOR_AND_FETCH_N, BUILT_IN_XOR_AND_FETCH_1,
23777         BUILT_IN_XOR_AND_FETCH_2, BUILT_IN_XOR_AND_FETCH_4,
23778         BUILT_IN_XOR_AND_FETCH_8, BUILT_IN_NAND_AND_FETCH_N,
23779         BUILT_IN_NAND_AND_FETCH_1, BUILT_IN_NAND_AND_FETCH_2,
23780         BUILT_IN_NAND_AND_FETCH_4, BUILT_IN_NAND_AND_FETCH_8,
23781         BUILT_IN_BOOL_COMPARE_AND_SWAP_N, BUILT_IN_BOOL_COMPARE_AND_SWAP_1,
23782         BUILT_IN_BOOL_COMPARE_AND_SWAP_2, BUILT_IN_BOOL_COMPARE_AND_SWAP_4,
23783         BUILT_IN_BOOL_COMPARE_AND_SWAP_8, BUILT_IN_VAL_COMPARE_AND_SWAP_N,
23784         BUILT_IN_VAL_COMPARE_AND_SWAP_1, BUILT_IN_VAL_COMPARE_AND_SWAP_2,
23785         BUILT_IN_VAL_COMPARE_AND_SWAP_4, BUILT_IN_VAL_COMPARE_AND_SWAP_8,
23786         BUILT_IN_LOCK_TEST_AND_SET_N, BUILT_IN_LOCK_TEST_AND_SET_1,
23787         BUILT_IN_LOCK_TEST_AND_SET_2, BUILT_IN_LOCK_TEST_AND_SET_4,
23788         BUILT_IN_LOCK_TEST_AND_SET_8, BUILT_IN_LOCK_RELEASE_N,
23789         BUILT_IN_LOCK_RELEASE_1, BUILT_IN_LOCK_RELEASE_2,
23790         BUILT_IN_LOCK_RELEASE_4, BUILT_IN_LOCK_RELEASE_8,
23791         BUILT_IN_SYNCHRONIZE: New.
23792         * builtins.c (called_as_built_in): Rewrite from CALLED_AS_BUILT_IN
23793         as a function.  Accept __sync_ as a prefix as well.
23794         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
23795         expand_builtin_lock_test_and_set, expand_builtin_synchronize,
23796         expand_builtin_lock_release): New.
23797         (expand_builtin): Call them.
23798         * c-common.c (DEF_BUILTIN): Don't require __builtin_ prefix if
23799         neither BOTH_P nor FALLBACK_P are defined.
23800         (builtin_type_for_size): New.
23801         (sync_resolve_size, sync_resolve_params, sync_resolve_return): New.
23802         (resolve_overloaded_builtin): New.
23803         * c-common.h (resolve_overloaded_builtin): Declare.
23804         (builtin_type_for_size): Declare.
23805         * c-typeck.c (build_function_call): Invoke resolve_overloaded_builtin.
23806         * expr.c (sync_add_optab, sync_sub_optab, sync_ior_optab,
23807         sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab,
23808         sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab,
23809         sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab,
23810         sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab,
23811         sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap,
23812         sync_compare_and_swap_cc, sync_lock_test_and_set,
23813         sync_lock_release): New.
23814         * optabs.h: Declare them.
23815         * expr.h (expand_val_compare_and_swap, expand_bool_compare_and_swap,
23816         expand_sync_operation, expand_sync_fetch_operation,
23817         expand_sync_lock_test_and_set): Declare.
23818         * genopinit.c (optabs): Add sync optabs.
23819         * optabs.c (init_optabs): Initialize sync optabs.
23820         (expand_val_compare_and_swap_1, expand_val_compare_and_swap,
23821         expand_bool_compare_and_swap, expand_compare_and_swap_loop,
23822         expand_sync_operation, expand_sync_fetch_operation,
23823         expand_sync_lock_test_and_set): New.
23824         * doc/extend.texi (Atomic Builtins): New section
23825         * doc/md.texi (Standard Names): Add sync patterns.
23826
23827 2005-04-14  Alexandre Oliva  <aoliva@redhat.com>
23828
23829         * tree-eh.c (lower_try_finally_copy): Generate new code in
23830         response to goto_queue entries as if the queue was sorted by
23831         index, not pointers.
23832         (lower_try_finally_switch): Likewise.
23833
23834 2005-04-14  Richard Henderson  <rth@redhat.com>
23835
23836         * config/i386/i386.c (ix86_expand_sse_cmp): Split out from ...
23837         (ix86_expand_sse_movcc): ... here.  Take cmp as a pre-computed
23838         register.
23839         (ix86_expand_fp_movcc): Update to match.
23840         (ix86_expand_fp_vcond, ix86_expand_int_vcond): New.
23841         * config/i386/i386-protos.h: Update.
23842         * config/i386/sse.md (vcondv4sf, vcondv2df): New.
23843         (vcond<SSEMODE124>, vcondu<SSEMODE12>): New.
23844
23845 2005-04-14  Joseph S. Myers  <joseph@codesourcery.com>
23846
23847         * doc/cpp.texi, doc/install.texi: Change references to GCC 3.5 to
23848         refer to 4.0.
23849
23850 2005-04-14  Julian Brown  <julian@codesourcery.com>
23851
23852         * Revert elfos.h part of my patch from 2005-04-13 for causing libstdc++
23853         link failures on ppc64 Linux.
23854
23855 2005-04-14  Andreas Krebbel  <krebbel1@de.ibm.com>
23856
23857         * config.gcc: Set cpu_type for s390.
23858
23859 2005-04-14  Daniel Berlin  <dberlin@dberlin.org>
23860
23861         Fix PR tree-optimization/20963
23862         * tree-ssa-pre.c (compute_avail): Remove special case for
23863         TREE_INVARIANT.
23864         (create_expression_by_pieces): Add value numbers for forced out
23865         statements.
23866
23867 2005-04-14  Hans-Peter Nilsson  <hp@axis.com>
23868
23869         * config/cris/cris.md: Replace references to (reg:SI 16) with
23870         (reg:SI CRIS_SRP_REGNUM).
23871
23872 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
23873
23874         PR tree-optimization/20657
23875         * tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
23876         create an appropriate range from it.
23877
23878 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
23879
23880         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST_FLOOR> and
23881         <UNSPEC_FIST_CEIL> case.
23882
23883         * config/i386/i386.md (UNSPEC_FIST_FLOOR, UNSPEC_FIST_CEIL): New.
23884         (*fist<mode>2_floor_1, fistdi2_floor, fistdi2_floor_with_temp)
23885         (fist<mode>2_floor, fist<mode>2_floor_with_temp): New isns patterns
23886         to implement lfloor and llfloor built-ins as x87 intrinsic function.
23887         (fistdi2_floor, fist<mode>2_floor splitters): New splitters.
23888         (lfloor<mode>2): New expanders.
23889         (*fist<mode>2_ceil_1, fistdi2_ceil, fistdi2_ceil_with_temp)
23890         (fist<mode>2_ceil, fist<mode>2_ceil_with_temp): New isns patterns
23891         to implement lceil and llceil built-ins as x87 intrinsic function.
23892         (fistdi2_ceil, fist<mode>2_ceil splitters): New splitters.
23893         (lceil<mode>2): New expanders.
23894
23895 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
23896
23897         * convert.c (convert_to_integer): Convert (long int)trunc{,f,l},
23898         and (long long int)ceil{,f,l} into FIX_TRUNC_EXPR.
23899
23900 2005-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
23901
23902         PR target/20927
23903         * config/s390/s390-modes.def: Define TFmode.
23904
23905 2005-04-13  Richard Sandiford  <rsandifo@redhat.com>
23906
23907         * config/mips/mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
23908         (JUMP_TABLES_IN_TEXT_SECTION): Define.
23909         * config/mips/mips.c (mips16_insn_length): Remove reference to
23910         JUMP_TABLES_IN_TEXT_SECTION.
23911
23912 2005-04-13 Fariborz Jahanian <fjahanian@apple.com>
23913
23914         * simplify-rtx.c (simplify_binary_operation_1): Return
23915         scalar or vector of constant 0, depending on the xor's
23916         mode.
23917
23918 2005-04-13  Dale Johannesen  <dalej@apple.com>
23919
23920         * objc/Make-lang.in (objc-lang.o):  Depend on tree-gimple.h.
23921         (objc-act.o):  Ditto.
23922         * objc/objc-act.c (objc_gimplify_expr):  New.
23923         (objc_get_callee_fndecl):  New.
23924         * objc/objc-act.h:  Include tree-gimple.h.  Declare new functions.
23925         * objc/objc-lang.c (LANG_HOOKS_GIMPLIFY_EXPR):  Define.
23926         (LANG_HOOKS_GET_CALLEE_FNDECL):  Define.
23927
23928 2005-04-13  Devang Patel  <dpatel@apple.com>
23929
23930         * tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
23931         temp variables.
23932
23933 2005-04-13  Hans-Peter Nilsson  <hp@axis.com>
23934
23935         CRIS prologue as RTL.
23936         * config/cris/cris-protos.h (cris_emit_movem_store)
23937         (cris_expand_prologue): Prototype.
23938         * config/cris/cris.c (struct machine_function): New member
23939         stdarg_regs.
23940         (cfa_label_num, cris_target_asm_function_prologue): Remove.
23941         (TARGET_ASM_FUNCTION_PROLOGUE): Don't override.
23942         (cris_general_operand_or_gotless_symbol): Accept CRIS_UNSPEC_GOT.
23943         (cris_load_multiple_op, cris_return_address_on_stack)
23944         (cris_return_address_on_stack_for_return): ISO-Cify.
23945         (cris_store_multiple_op): New predicate function.
23946         (cris_expand_prologue, cris_emit_movem_store): New functions.
23947         (cris_print_operand) <case 'O'>: Handle modifications other than
23948         post-increment.
23949         (cris_symbol, cris_got_symbol): Return 0 for CRIS_UNSPEC_GOT.
23950         (cris_gotless_symbol): Return 1 for CRIS_UNSPEC_GOT.
23951         (cris_gen_movem_load): Rearrange slightly to make local variable
23952         src a parameter, removing osrc.
23953         (cris_setup_incoming_varargs): Set machine_function member
23954         stdarg_regs to correspond to the number of registers that need to
23955         be saved.
23956         * config/cris/cris.h (EXTRA_CONSTRAINT_S): Accept
23957         CRIS_UNSPEC_GOT.
23958         (PREDICATE_CODES): Add cris_store_multiple_op.  Make
23959         cris_general_operand_or_gotless_symbol accept UNSPEC.
23960         * config/cris/cris.md (CRIS_UNSPEC_GOT): New constant.
23961         ("*movsi_internal") <alternative 8>: Handle CRIS_UNSPEC_GOT.
23962         ("*cris_store_multiple"): New pattern.  Tweak common comment above
23963         this and "*cris_load_multiple".
23964         ("prologue"): New define_expand.
23965
23966         * config/cris/cris.md ("epilogue"): Conditionalize on
23967         TARGET_PROLOGUE_EPILOGUE.
23968
23969 2005-04-13  Steve Ellcey  <sje@cup.hp.com>
23970
23971         PR target/20924
23972         * config/ia64/ia64.md (divsf3_internal_lat): Generate frcpa with
23973         fpsr 0 instead of fpsr 1.
23974         (divsf3_internal_thr): Ditto.
23975         (divdf3_internal_lat): Ditto.
23976         (divdf3_internal_thr): Ditto.
23977         (divxf3_internal_lat): Ditto.
23978         (divxf3_internal_thr): Ditto.
23979
23980 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
23981
23982         PR tree-optimization/20913
23983         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.
23984
23985         PR tree-optimization/20702
23986         * tree-vrp.c (maybe_add_assert_expr): Recurse into
23987         dominator children that haven't been walked into.
23988
23989 2005-04-13  Julian Brown  <julian@codesourcery.com>
23990
23991         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from
23992         being used for symbols with vague linkage when HAVE_GAS_COMDAT_GROUP
23993         is true.
23994
23995 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
23996
23997         * basic-block.h, tree-ssa-uncprop.c, varasm.c,
23998         config/i386/sse.md: Fix comment typos.
23999
24000         * genattrtab.c (NULL_ATTR): Remove.
24001         * ifcvt.c (NULL_EDGE): Likewise.
24002
24003         * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
24004
24005         * rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
24006         NOTE_PREDICT): Remove.
24007
24008 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
24009
24010         * configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
24011         * configure: Regenerate.
24012         * config.in: Likewise.
24013         * system.h: Declare vsnprintf if not already declared.
24014
24015 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
24016
24017         * optc-gen.awk: Handle stand-alone Mask records.
24018         * opth-gen.awk: Likewise.
24019         * doc/options.texi (Option file format): Document them.
24020         * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
24021         sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
24022         (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
24023         * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
24024         MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
24025         MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
24026         MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
24027         MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
24028         MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
24029         (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
24030         TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
24031         TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
24032         TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
24033         TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
24034         TARGET_LONG_DOUBLE_128): Likewise.
24035         (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
24036         (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
24037         * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
24038         * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
24039         * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
24040         * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
24041         * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
24042         * config/sparc/sparc.c (fpu_option_set): New global.
24043         (sparc_handle_option): New function.
24044         (sparc_override_options): Test fpu_option_set.
24045         (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
24046         (TARGET_HANDLE_OPTION): Set to sparc_handle_option.
24047         * config/sparc/sparc.opt: New file.
24048         * config/sparc/little-endian.opt: Likewise.
24049         * config/sparc/long-double-switch.opt: Likewise.
24050
24051 2005-04-13  Bernd Schmidt  <bernd.schmidt@analog.com>
24052
24053         * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
24054         (bfin_handle_options): Set it if -mshared-library-id= is seen.
24055         * config/bfin/bfin.opt (mshared-library-id=): Lose
24056         Var(bfin_lib_id_given).
24057
24058 2005-04-13  Matt Thomas  <matt@3am-software.com>
24059
24060         * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
24061         defining.
24062
24063 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
24064
24065         * rtl.h (CLEAR_RTX_FLAGS): Remove.
24066
24067         * cgraphunit.c (INSNS_PER_CALL): Remove.
24068
24069         * tree-ssa-forwprop.c (vars,
24070         record_single_argument_cond_exprs,
24071         substitute_single_use_vars): Remove.
24072         (forward_propagate_into_cond_1, forward_propagate_into_cond):
24073         New.
24074         (tree_ssa_forward_propagate_single_use_vars): Call
24075         forward_propagate_into_cond for each COND_EXPR.
24076
24077         * tree-inline.c (INSNS_PER_STMT): Remove.
24078
24079 2005-04-12  Richard Henderson  <rth@redhat.com>
24080
24081         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
24082         (ix86_expand_sse_fp_minmax): ... from ...
24083         (ix86_expand_fp_movcc): ... here.
24084         (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
24085         * config/i386/i386-protos.h: Update.
24086         * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
24087         (sse_setccsf, sse_setccdf): Allow before reload.
24088         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
24089         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
24090         (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
24091         * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
24092         (anddf3, nanddf3, iordf3, xordf3): New.
24093
24094 2005-04-12  Jeff Law  <law@redhat.com>
24095
24096         * Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
24097         (tree-ssa-uncprop.o): Add dependencies.
24098         * tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
24099         * tree-flow.h (remove_useless_stmts): Remove prototype.
24100         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
24101         remove_useless_stmts.
24102         * timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
24103         * tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
24104         * tree-pass.h (pass_uncprop): Declare.
24105         * tree-ssa-uncprop.c: New file.
24106
24107 2005-04-12  James E. Wilson  <wilson@specifixinc.com>
24108
24109         PR target/20670
24110         * unwind-ia64.c (uw_intall_context): Add missing load of r27.
24111
24112 2005-04-12  Caroline Tice  <ctice@apple.com>
24113
24114         Temporary fix for partitioning problems.
24115         * passes.c (rest_of_handle_final): Remove code that
24116         frees unlikely_text_section_name,
24117         * varasm.c (assemble_start_function): Test for partitioning
24118         flag before writing out section labels.
24119         (assemble_end_function): Test for partitioning flag before
24120         writing out section labels.
24121
24122 2005-04-12  Steven Bosscher  <stevenb@suse.de>
24123             Stuart Hastings <stuart@apple.com>
24124             Jan Hubicka  <jh@suse.cz>
24125
24126         * Makefile.in: Add function.h to BASIC_BLOCK_H.  Remove all
24127         references to gt-tree-cfg.h.
24128         * basic-block.h (struct basic_block_def): Don't skip rbi
24129         for garbage collection.
24130         (struct reorder_block_def): Make GTY-able.
24131         (struct control_flow_graph): New structure.
24132         (n_edges, n_basic_blocks, last_basic_block, basic_block_info,
24133         BASIC_BLOCK, EXIT_BLOCK_PTR, ENTRY_BLOCK_PTR): No longer vars,
24134         but instead defines to the control_flow_graph for cfun.
24135         (label_to_block_map): New define, points to the label map of
24136         the control_flow_graph for cfun.
24137         (n_edges_for_function, n_basic_blocks_for_function,
24138         last_basic_block_for_function, basic_block_info_for_function,
24139         EXIT_BLOCK_PTR_FOR_FUNCTION, ENTRY_BLOCK_PTR_FOR_FUNCTION,
24140         basic_block_info_for_function, label_to_block_map_for_function):
24141         Counterparts for the above, taking a struct function as an extra
24142         argument.
24143         (alloc_rbi_pool, free_rbi_pool): Remove prototypes.
24144         * cfg.c: (n_edges, n_basic_blocks, last_basic_block,
24145         basic_block_info, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Remove.
24146         (alloc_rbi_pool, free_rbi_pool): Remove.
24147         (initialize_bb_rbi): Use ggc_alloc_cleared instead of pool_alloc.
24148         * cfglayout.c: (cfg_layout_initialize): Don't allocate the rbi pool
24149         here...
24150         (cfg_layout_finalize) ... and don't free it here.
24151         * cfgrtl.c (cfg_layout_delete_block): Zero out rbi so it gets
24152         garbage collected.
24153         * flow.c (free_basic_block_vars): Set label_to_block_map and
24154         n_edges to zero too.
24155         * function.h (struct function): Add cfg field.
24156         * function.c (allocate_struct_function): Allocate the cfg.
24157         * tree-cfg.c (label_to_block_map): Remove.
24158         (build_tree_cfg): Don't allocate the rbi pool here...
24159         (delete_tree_cfg_annotations): ...and don't free it here.
24160         Also don't nullify label_to_block_map for cfun.
24161
24162 2005-04-12  Caroline Tice  <ctice@apple.com>
24163
24164         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
24165         Revert my patch from April 9.
24166         (fix_edges_for_rarely_executed_code): Revert my patch from April 9.
24167         (reorder_basic_blocks): Revert my patch from April 9.
24168         (insert_section_boundary_note): Revert my patch from April 9.
24169         * dbxout.c (dbxout_function_end): Revert my patch from April 9.
24170         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): Revert my patch from April 9.
24171         (COLD_END_LABEL):  Revert my patch from April 9.
24172         (cold_text_section_label):  Revert my patch from April 9.
24173         (cold_end_label): Revert my patch from April 9.
24174         (dwarf2out_switch_text_section): Revert my patch from April 9.
24175         (output_aranges): Revert my patch from April 9.
24176         (output_ranges):  Revert my patch from April 9.
24177         (output_line_info): Revert my patch from April 9.
24178         (add_location_or_const_value_attribute):  Revert my patch from April 9.
24179         (dwarf2out_var_location): Revert my patch from April 9.
24180         (dwarf2out_init):  Revert my patch from April 9.
24181         (dwarf2out_finish): Revert my patch from April 9.
24182         * function.h (struct function): Revert my patch from April 9.
24183         * opts.c (decode_options): Revert my patch from April 9.
24184         * output.h (unlikely_section_label, hot_section_label,
24185         hot_section_end_label, cold_section_end_label,
24186         unlikely_text_section_name): Revert my patch from April 9.
24187         * passes.c (rest_of_handle_final): Revert my patch from April 9.
24188         * varasm.c (unlikely_section_label, hot_section_label,
24189         hot_section_end_label, cold_section_end_label,
24190         unlikely_text_section_name): Revert my patch from April 9.
24191         (initialize_cold_section_name): Revert my patch from April 9.
24192         (unlikely_text_section): Revert my patch from April 9.
24193         (in_unlikely_text_section): Revert my patch from April 9.
24194         (named_section): Revert my patch from April 9.
24195         (function_section): Revert my patch from April 9.
24196         (current_function_section): Revert my patch from April 9.
24197         (assemble_start_function): Revert my patch from April 9.
24198         (assemble_end_function): Revert my patch from April 9.
24199         (default_section_type_flags_1): Revert my patch from April 9.
24200
24201 2005-04-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
24202
24203         * config/sparc/sparc.h (APPLY_RESULT_SIZE): Set to 24 in 64-bit mode.
24204         * config/sparc/sparc.md (untyped_call): Save the registers manually.
24205
24206         * config/sparc/sparc.c (legitimate_address_p): Use TARGET_ARCH32.
24207
24208 2005-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
24209
24210         PR middle-end/20917
24211         * config/s390/s390.md ("*set_tp"): Use SET in pattern.
24212         ("set_tp_64", "set_tp_31"): Adapt expanded pattern.
24213
24214 2004-04-12  Richard Henderson  <rth@redhat.com>
24215
24216         * config/i386/i386.md (UNSPEC_FIX, UNSPEC_MOVA, UNSPEC_SHUFFLE,
24217         UNSPEC_PSHUFLW, UNSPEC_PSHUFHW, UNSPEC_ADDSUB, UNSPEC_HADD,
24218         UNSPEC_HSUB, UNSPEC_MOVSHDUP, UNSPEC_MOVSLDUP, UNSPEC_MOVDDUP): Remove.
24219         (UNSPEC_*, UNSPECV_*): Renumber.
24220
24221 2005-04-12  Frank Ch. Eigler  <fche@redhat.com>
24222
24223         PR mudflap/19266
24224         From Richard Henderson <rth@redhat.com>:
24225         * tree-mudflap.c (mf_build_check_statement_for): Correct block
24226         splitting logic.
24227
24228 2005-04-12  Dorit Naishlos  <dorit@il.ibm.com>
24229
24230         * tree-cfg.c (tree_verify_flow_info): Use LABEL_EXPR_LABEL.
24231
24232 2005-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
24233
24234         * config/bfin/bfin.c (bfin_library_id_string): Remove.
24235         (bfin_library_id): New variable.
24236         (bfin_expand_prologue): Use bfin_library_id and bfin_lib_id_given
24237         instead of bfin_library_id_string.
24238         (bfin_handle_option): New function.
24239         (override_options): Remove most code to deal with shared library IDs,
24240         just check they aren't used without -mid-shared-library.
24241         (TARGET_HANDLE_OPTION): Define.
24242         * config/bfin/bfin.h (TARGET_OPTIONS): Delete macro.
24243         * config/bfin/bfin.opt (mshared-library-id=): New.
24244
24245 2005-04-12  Kazu Hirata  <kazu@cs.umass.edu>
24246
24247         * tree-vect-transform.c: Fix comment typos.
24248
24249 2005-04-12 Mostafa Hagog <mustafa@il.ibm.com>
24250
24251         * postreload-gcse.c (eliminate_partially_redundant_load): Don't
24252         split critical edges when not possible/profitable.
24253
24254 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
24255
24256         * config/ns32k/ns32k.h (target_flags, MASK_32081, MASK_RTD)
24257         (MASK_REGPARM, MASK_32532, MASK_32332, MASK_NO_SB, MASK_NO_BITFIELD)
24258         (MASK_HIMEM, MASK_32381, MASK_MULT_ADD, MASK_SRC, MASK_IEEE_COMPARE)
24259         (TARGET_32081, TARGET_32381, TARGET_MULT_ADD, TARGET_RTD)
24260         (TARGET_REGPARM, TARGET_32532, TARGET_32332, TARGET_SB, TARGET_HIMEM)
24261         (TARGET_BITFIELD, TARGET_IEEE_COMPARE, TARGET_SWITCHES): Delete.
24262         (OVERRIDE_OPTIONS): Clear MASK_SB instead of setting MASK_NO_SB.
24263         * config/ns32k/netbsd.h (TARGET_DEFAULT): Remove MASK_NO_SB and
24264         MASK_NO_BITFIELD.
24265         * config/ns32k/ns32k.c (ns32k_handle_option): New function.
24266         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
24267         * config/ns32k/ns32k.opt: New file.
24268
24269 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
24270
24271         * config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.
24272         * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020)
24273         (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY)
24274         (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200)
24275         (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x)
24276         (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881)
24277         (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT)
24278         (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL)
24279         (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD)
24280         (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY)
24281         (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES)
24282         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete.
24283         (MASK_COLDFIRE): Formatting fixes.
24284         (TARGET_COLDFIRE): Turn into a boolean value for consistency.
24285         * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete.
24286         * config/m68k/m68k.c (m68k_library_id_string): Initialize to
24287         "_current_shared_library_a5_offset_".
24288         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
24289         (MASK_ALL_CPU_BITS): New macro.
24290         (m68k_handle_option): New function.
24291         (override_options): Remove handling of m68k_library_id_string.
24292         * config/m68k/m68k.opt: New file.
24293         * config/m68k/ieee.opt: New file.
24294
24295 2005-04-11  Mark Mitchell  <mark@codesourcery.com>
24296
24297         * target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
24298         (TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
24299         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
24300         (TARGET_CXX): Adjust accordingly.
24301         * target.h (struct gcc_target): Remove epxort_class_data.  Add
24302         determine_class_data_visibility and class_data_always_comdat.
24303         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
24304         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
24305         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
24306         * config/arm/arm.c (arm_cxx_export_class_data): Remove.
24307         (arm_cxx_determine_class_data_visibility): New.
24308         (arm_cxx_class_data_always_comdat): Likewise.
24309         (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
24310         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
24311         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
24312         * config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
24313         * config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
24314         Define.
24315
24316 2005-04-11  Devang Patel  <dpatel@apple.com>
24317
24318         * tree-data-ref.c (build_classic_dist_vector,
24319         compute_subscript_distance): Make externally visible.
24320         * tree-data-ref.h (build_classic_dist_vector,
24321         compute_subscript_distance): Same.
24322         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
24323         Check distance vector against vectorization factor.
24324         (vect_analyze_loop): Determine vectorizaion factor before
24325         analyzing data dependences.
24326         * tree-vectorizer.c (loops_num): Make it externally visible and
24327         rename ...
24328         * tree-vectorizer.c (vect_loops_num): ... new name.
24329         * tree-vectorizer.h  (vect_loops_num): New.
24330
24331 2005-04-11  Devang Patel  <dpatel@apple.com>
24332
24333         * tree-vect-analyze.c (vect_analyze_operations): Check
24334         vectorizable codition.
24335         * tree-vect-transform.c (vect_is_simple_cond): New function.
24336         (vectorizable_condition): New function.
24337         (vect_transform_stmt): Handle condition_vec_info_type.
24338         * tree-vectorizer.h (enum stmt_vec_info_type): Add
24339         condition_vec_info_type.
24340         (vectorizable_condition): New.
24341
24342 2005-04-11  Geoffrey Keating  <geoffk@apple.com>
24343
24344         * config/i386/i386.h (TARGET_FPMATH_DEFAULT): New.
24345         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT): New.
24346         * config/i386/i386.c (override_options): Use TARGET_FPMATH_DEFAULT.
24347
24348         * config/i386/darwin.h (ASM_SPEC): Use -arch i386 not -arch i686.
24349         (SUBTARGET_EXTRA_SPECS): Always 'i386'.
24350
24351         * dwarf2out.c (output_line_info): Don't try to dereference
24352         a NULL current_function_decl.
24353
24354         * config/t-slibgcc-darwin: Don't put shared libraries in
24355         directories other than $(slibdir).
24356         * config/rs6000/darwin.h: Find -m64 libgcc under the name the
24357         OS uses for it.
24358
24359 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
24360
24361         PR tree-optimization/20933
24362         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Move
24363         logic to reject aliases between read-only and writable
24364         variables ...
24365         (may_alias_p): ... here.
24366         (get_tmt_for): Do not associate read-only tags to pointers
24367         whose pointed-to type is not read-only.
24368         * tree-ssa.c (verify_ssa): Check that memory stores have at
24369         least one V_MAY_DEF or V_MUST_DEF.
24370
24371 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24372
24373         PR/17092
24374         * configure.ac (gcc_UNLOCKED_FUNCS): New.
24375         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
24376         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
24377         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
24378         _unlocked function.
24379         (fwrite_unlocked): Fix prototype.
24380
24381         * configure, config.in: Regenerate.
24382
24383 2005-04-11  David Edelsohn  <edelsohn@gnu.org>
24384
24385         * tree-ssa-loop-im.c: Include real.h.
24386         (determine_invariantness_stmt): If real division divisor is
24387         invariant and flag_unsafe_math_optimizations enabled, generate
24388         invariant reciprocal for hoisting.
24389         * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
24390
24391 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
24392
24393         Fix PR tree-optimization/20926
24394
24395         * tree-ssa-alias.c (add_type_alias): Handle subvars.
24396
24397 2005-04-11  Devang Patel  <dpatel@apple.com>
24398
24399         * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
24400         operand ordering.
24401
24402 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
24403
24404         * fold-const.c (fold_binary_op_with_conditional_arg):
24405         use fold_buildN instead of "fold (buildN" in some
24406         non obvious places.
24407         (fold_unary): Likewise.
24408         (fold_binary): Likewise.
24409
24410 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
24411
24412         Fix PR tree-optimization/20612
24413         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
24414         handling
24415         (perfect_nestify): preheaderbb is *not* part of loop of the
24416         old destination.
24417
24418 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
24419
24420         * tree-ssa-alias.c (may_alias_p): If the variable
24421         is a global variable and the pointer is parameter
24422         and -fargument-noalias-global is used, then
24423         the pointer cannot alias the variable.
24424
24425 2005-04-11  James A. Morrison  <phython@gcc.gnu.org>
24426
24427         * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
24428         * config/sparc/sparc.h: Likewise.
24429         * config/sparc/sparc.md: Likewise.
24430
24431 2005-04-11  Kazu Hirata  <kazu@cs.umass.edu>
24432
24433         * tree-vrp.c (maybe_add_assert_expr): Move a comment.
24434
24435         * tree-vrp.c: Fix a comment typo.
24436
24437 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
24438
24439         PR tree-optimization/20920
24440         * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
24441         SSA_NAME flows through an abnormal edge.
24442         * tree-vrp.c (infer_value_range): Ignore SSA names that flow
24443         through abnormal edges.
24444         (maybe_add_assert_expr): Likewise.
24445
24446 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
24447
24448         * config/s390/s390.h (s390_tune_string, s390_arch_string)
24449         (s390_warn_framesize_string, s390_warn_dynamicstack_string)
24450         (s390_stack_size_string, s390_stack_guard_string, target_flags)
24451         (MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
24452         (MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
24453         (MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
24454         (TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
24455         (TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
24456         (TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
24457         (TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
24458         * config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
24459         (TARGET_HANDLE_OPTION): Likewise.
24460         (s390_tune): Initialize to PROCESSOR_max.
24461         (s390_arch_string): Make static.
24462         (s390_tune_string, s390_warn_framesize_string): Delete.
24463         (s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
24464         (s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
24465         (s390_handle_arch_option, s390_handle_option): New functions.
24466         (override_options): Remove parsing of option strings.
24467         * config/s390/s390.opt: New file.
24468
24469 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
24470
24471         * tree-complex.c (expand_vector_operations): Call
24472         update_stmt_if_modified.
24473
24474 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
24475
24476         * tree-vect-analyze (vect_determine_vectorization_factor):
24477         Do not use GET_MODE_NUNITS.
24478         * tree-vect-transform.c (vect_get_vec_def_for_operand,
24479         (vectorizable_load, vect_transform_loop): Likewise.
24480
24481 2005-04-11  Uros Bizjak  <uros@kss-loka.si>
24482
24483         * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL)
24484         (BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
24485         * optabs.h (enum optab_index): Add new OTI_lceil.
24486         (lceil_optab): Define corresponding macro.
24487         * optabs.c (init_optabs): Initialize lceil_optab.
24488         * genopinit.c (optabs): Implement lceil_optab using lceilsi2
24489         and lceildi2 patterns.
24490         * builtins.c (expand_builtin_int_roundingfn): Handle
24491         BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
24492         (fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
24493         BUILT_IN_LLCEIL{,F,L}.
24494         (fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
24495         BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
24496         (mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
24497         (expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
24498         BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
24499         * convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
24500         into lceil built-in function and (long long int)ceil{,f,l} into
24501         llceil built-in function.
24502         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
24503         BUILT_IN_LLCEIL.
24504
24505 2005-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24506
24507         * pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
24508         zero.
24509
24510 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
24511
24512         * config/arm/arm.c: Fix a comment typo.
24513         * doc/tree-ssa.texi: Fix a typo.
24514
24515 2005-04-10  Steven Bosscher  <stevenb@suse.de>
24516
24517         * cselib.c (clear_table): Rename to cselib_clear_table.
24518         * cselib.h (cselib_clear_table): Add prototype.
24519         * gcse.c (gcse_main): Make 'f' argument unused.
24520         (alloc_gcse_mem): Do not walk the insn chain, walk the contents
24521         of each basic block instead.
24522         (compute_sets, compute_hash_table_work): Likewise.
24523         (constprop_register): Change int 'alter_jumps' argument to bool.
24524         (do_local_cprop): Likewise.
24525         (local_cprop_pass): Likewise.  Also walk basic blocks instead of
24526         the insn chain.  Explicitly clear the cselib tables after finishing
24527         one basic block.  Make sure there are no unterminated libcall blocks.
24528         Update compute_sets call.
24529         (cprop): Walk basic blocks instead of the insn chain.
24530         (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
24531         Likewise.
24532         (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
24533         one_cprop_pass calls.
24534
24535 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
24536
24537         * combine.c (combine_simplify_rtx): Remove a transformation that
24538         relies on an invalid assumption about rtl sign-extension semantics.
24539
24540 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
24541
24542         * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
24543         to build_int_cst_wide.
24544
24545 2005-04-09  Alexandre Oliva  <aoliva@redhat.com>
24546
24547         PR target/20126
24548         * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
24549         set the original address pseudo to the correct value before the
24550         original insn, if possible, and leave the insn alone, otherwise
24551         create a new pseudo, set it and replace it in the insn.
24552         * recog.c (validate_change_maybe_volatile): New.
24553         * recog.h (validate_change_maybe_volatile): Declare.
24554
24555 2005-04-09  Caroline Tice  <ctice@apple.com>
24556
24557         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
24558         Remove targetm.have_named_sections test.
24559         (fix_edges_for_rarely_executed_code): Likewise.
24560         (insert_section_boundary_note): Likewise.
24561         (reorder_basic_blocks): Check partitioning flag before calling
24562         verify_hot_cold_block_grouping.
24563         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
24564         the function struct rather than global variables.
24565         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
24566         (COLD_END_LABEL): Likewise
24567         (cold_text_section_label): New static global variable.
24568         (cold_end_label): Likewise.
24569         (dwarf2out_switch_text_section): Get hot/cold section labels from
24570         the function struct rather than global variables.
24571         (output_aranges): Use cold_text_section_label and cold_end_label;
24572         check partitioning flag before putting out delta.
24573         (output_ranges): Remove incorrect code attempting to use
24574         hot/cold labels.
24575         (output_line_info): Get cold section label from function struct.
24576         (add_location_or_const_value_attribute): Likewise.
24577         (get_subprogram_die): Get hot/cold section labels from function struct.
24578         (dwarf2out_var_location): Likewise.
24579         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
24580         write out cold_text_section_label if partition flag is set.
24581         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
24582         * function.h (struct function): Add new fields to point to hot/cold
24583         section labels: hot_section_label, cold_section_label,
24584         hot_section_end_label and cold_section_end_label; also add new field
24585         for cold text section name, unlikely_text_section_name.
24586         * opts.c (decode_options): Turn off partitioning flag if
24587         !targetm.have_named_sections.
24588         * output.h (hot_section_label): Remove.
24589         (hot_section_end_label): Remove.
24590         (cold_section_end_label): Remove.
24591         (unlikely_section_label): Remove.
24592         (unlikely_text_section_name): Remove.
24593         * passes.c (rest_of_handle_final):  Remove code that frees
24594         unlikely_text_section_name.
24595         * varasm.c (unlikely_section_label): Remove.
24596         (hot_section_label): Remove.
24597         (hot_section_end_label): Remove.
24598         (cold_section_end_label): Remove.
24599         (unlikely_text_section_name):  Remove.
24600         (initialize_cold_section_name): Modify to call
24601         targetm.strip_name_encoding; to store cold section name in current
24602         function struct, if it exists; and to only use the decl_section_name
24603         if flag_named_sections is true.
24604         (unlikely_text_section): Modify to get section name out of current
24605         function struct, if there is one; otherwise build it from
24606         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
24607         (in_unlikely_text_section): Likewise.
24608         (named_section): Modify to get/put cold section name in current function
24609         struct, if there is one.
24610         (function_section):  Change 'bool unlikely' to 'int reloc'; check
24611         targetm.have_named_sections before calling named_section.
24612         (current_function_section): Likewise.
24613         (assemble_start_function): Modify to get/put unlikely_text_section_name
24614         in current function struct; modify to get hot/cold section labels
24615         from function struct; initialize labels using
24616         ASM_GENERATE_INTERNAL_LABEL;
24617         test partitioning flag before writing out hot section label.
24618         (assemble_end_function): Test partitioning flag before writing out
24619         hot/cold section labels.
24620         (default_section_type_flags_1):  Modify to use array instead of
24621          char* for unlikely_text_section_name; set flags correctly for
24622          cold text section if there is not a current function decl.
24623
24624 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
24625
24626         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
24627         and TI_VA_LIST_FPR_COUNTER_FIELD.
24628         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
24629         * tree-pass.h (pass_stdarg): Add.
24630         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
24631         * tree-stdarg.c: New file.
24632         * tree-stdarg.h: New file.
24633         * Makefile.in (OBJS-common): Add tree-stdarg.o.
24634         (tree-stdarg.o): Add dependencies.
24635         * function.h (struct function): Add va_list_gpr_size and
24636         va_list_fpr_size fields.
24637         * function.c (allocate_struct_function): Initialize them.
24638         * target.h (struct gcc_target): Add stdarg_optimize_hook.
24639         * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
24640         (TARGET_INITIALIZER): Add it.
24641
24642         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
24643         va_list_{g,f}pr_counter_field.
24644         (ix86_setup_incoming_varargs): Don't do anything if reg_save
24645         area will not be used.  Only save registers that tree-stdarg.c
24646         detected they need saving.
24647         (ix86_va_start): Don't set up fields that won't be used.
24648
24649         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
24650         va_list_{g,f}pr_counter_field.
24651         (setup_incoming_varargs): Don't do anything if reg_save
24652         area will not be used.  Only save registers that tree-stdarg.c
24653         detected they need saving.
24654         (rs6000_va_start): Don't set up fields that won't be used.
24655
24656         * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
24657         (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
24658         (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
24659         (TARGET_STDARG_OPTIMIZE_HOOK): Define.
24660
24661 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
24662
24663         PR target/20795
24664         * config/i386/i386.c (construct_container): Pass empty aligned
24665         struct, union or class in memory.
24666
24667 2005-04-09  Kazu Hirata  <kazu@cs.umass.edu>
24668
24669         * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
24670         tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
24671         config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
24672         config/rs6000/predicates.md: Fix comment typos.
24673
24674         * sched-int.h (haifa_insn_data): Remove blockage and units.
24675         (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
24676         ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
24677         MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
24678
24679 2005-04-09  Jan Hubicka  <jh@suse.cz>
24680             Steven Bosscher  <stevenb@suse.de>
24681
24682         * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
24683         * cfgloop.c (get_loop_exit_edges): Likewise.
24684         * cfgloopmanip.c (fix_irreducible_loops): Likewise.
24685         (unloop): Likewise.
24686         * loop-unroll.c (analyze_insns_in_loop): Likewise.
24687         * tree-cfg.c (dump_cfg_status): Likewise.
24688
24689 2005-04-09  David Edelsohn  <edelsohn@gnu.org>
24690
24691         * config/rs6000/predicates.md (altivec_register_operand): Remove
24692         redundant match_code test.
24693         (gpc_reg_operand): Same.
24694         (cc_reg_operand): Same.
24695         (cc_reg_not_cr0_operand): Same.
24696
24697 2005-04-09  Jan Hubicka  <jh@suse.cz>
24698
24699         Forgotten hunk from my last merge patch:
24700         * final.c (output_addr_const): Do not call mark_referenced.
24701
24702 2005-04-09  Andrew MacLeod  <amacleod@redhat.com>
24703
24704         * doc/tree-ssa.texi: Add immediate use documentation.
24705
24706 2005-04-09  Richard Earnshaw <richard.earnshaw@arm.com>
24707
24708         * arm.c (FL_WBUF): Define.
24709         (arm_tune_strongarm): Renamed from arm_is_strong.  All uses changed.
24710         (arm_is_6_or_7): Delete.
24711         (arm_tune_wbuf): New.
24712         (arm_override_options): Set arm_tune_wbuf.
24713         * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
24714         (arm_is_6_or_7): Delete declaration.
24715         (arm_tune_wbuf): New declartion.
24716         * arm.md (is_strongarm): Derive from arm_tune_strongarm.
24717         (model_wbuf): Derive from arm_tune_wbuf.
24718         * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
24719         (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
24720         (arm740t): Mark CPUs as having a write buffer.
24721
24722 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
24723
24724         * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
24725         of 'const_double_operand' in operand 2 constraints.  Update enable
24726         condition.
24727
24728 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
24729
24730         * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
24731         (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
24732         * optabs.h (enum optab_index): Add new OTI_lfloor.
24733         (lfloor_optab): Define corresponding macro.
24734         * optabs.c (init_optabs): Initialize lfloor_optab.
24735         * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
24736         and lfloordi2 patterns.
24737         * builtins.c (expand_builtin_int_roundingfn): New prototype.
24738         (expand_builtin_int_roundingfn): New function.
24739         (fold_builtin_int_roundingfn): New prototype.
24740         (fold_builtin_int_roundingfn): New function, renamed from
24741         fold_builtin_lround.
24742         Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
24743         BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
24744         (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
24745         BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
24746         (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
24747         (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
24748         BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
24749         * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
24750         into lfloor built-in function and (long long int)floor{,f,l} into
24751         llfloor built-in function.
24752         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
24753         BUILT_IN_LLFLOOR.
24754
24755 2005-04-08  Ian Lance Taylor  <ian@airs.com>
24756
24757         * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
24758         CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
24759         * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
24760         (DO_COND, DO_BODY): Likewise.
24761         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
24762         (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
24763         (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
24764         BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
24765         (build_continue_stmt, build_break_stmt): Don't declare.
24766         (c_do_switch_warnings): Update declaration.
24767         * c-gimplify.c (enum bc_t): Remove.
24768         (struct c_gimplify_ctx, ctxp): Remove.
24769         (push_context, pop_context): Remove static functions.
24770         (c_genericize): Don't call push_context or pop_context.
24771         (begin_bc_block, finish_bc_block): Remove static functions.
24772         (build_bc_goto): Likewise.
24773         (gimplify_c_loop): Likewise.
24774         (gimplify_for_stmt, gimplify_while_stmt): Likewise.
24775         (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
24776         (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
24777         DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
24778         * c-common.c (c_do_switch_warnings): Rename from
24779         c_do_switch_warnings_1.
24780         (c_do_switch_warnings) [old version]: Remove.
24781         (c_do_switch_expr_warnings): Remove.
24782         * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
24783         function instead of c_do_switch_expr_warnings.
24784         * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
24785         CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
24786         * c-pretty-print.c (pp_c_statement): Likewise.
24787         * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
24788
24789 2005-04-08  Devang Patel  <dpatel@apple.com>
24790
24791         * tree-if-conv.c (find_phi_replacement_condition): New parameter, loop.
24792         While selecting replacement condition pay attention to loop header.
24793
24794 2005-04-08  Diego Novillo  <dnovillo@redhat.com>
24795
24796         Merge from tree-cleanup-branch: VRP, store CCP, store
24797             copy-prop, incremental SSA updating of FUD chains and
24798             newly exposed symbols.
24799
24800         * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
24801         (OBJS-common): Add tree-vrp.o.
24802         (tree-vrp.o): New rule.
24803         * basic-block.h (nearest_common_dominator_for_set): Declare.
24804         * common.opt (ftree-store-ccp): New flag.
24805         (ftree-copy-prop): New flag.
24806         (ftree-vrp): New flag.
24807         (ftree-store-copy-prop): New flag.
24808         * dominance.c (nearest_common_dominator_for_set): New.
24809         * domwalk.c (walk_dominator_tree): Only traverse
24810         statements in blocks marked in walk_data->interesting_blocks.
24811         * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
24812         * fold-const.c (fold): Handle ASSERT_EXPR.
24813         * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
24814         Set flag_tree_store_ccp, flag_tree_store_copy_prop and
24815         flag_tree_vrp at -O2.
24816         * timevar.def (TV_TREE_VRP): Define.
24817         (TV_TREE_COPY_PROP): Define.
24818         (TV_TREE_STORE_COPY_PROP): Define.
24819         (TV_TREE_SSA_INCREMENTAL): Define.
24820         (TV_TREE_STORE_CCP): Define.
24821         * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
24822         to kill_redundant_phi_nodes from comment.
24823         (verify_expr): Handle ASSERT_EXPR.
24824         * tree-dfa.c (mark_new_vars_to_rename): Remove second
24825         argument.  Update all users.
24826         (mark_call_clobbered_vars_to_rename): Remove.  Update all
24827         users.
24828         * tree-flow-inline.h (unmodifiable_var_p): New.
24829         * tree-flow.h (enum value_range_type): Declare.
24830         (struct value_range_def): Declare.
24831         (value_range): Declare.
24832         (remove_all_phi_nodes_for): Remove.  Update all users.
24833         (find_phi_node_for): Declare.
24834         (add_type_alias): Declare.
24835         (count_uses_and_derefs): Declare.
24836         (kill_redundant_phi_nodes): Remove.
24837         (rewrite_into_ssa): Remove.
24838         (rewrite_def_def_chains): Remove.
24839         (update_ssa, register_new_name_mapping, create_new_def_for,
24840         need_ssa_update_p, name_registered_for_update_p,
24841         release_ssa_name_after_update_ssa, dump_repl_tbl,
24842         debug_repl_tbl, dump_names_replaced_by,
24843         debug_names_replaced_by, mark_sym_for_renaming,
24844         mark_set_for_renaming, get_current_def, set_current_def,
24845         get_value_range, dump_value_range, debug_value_range,
24846         dump_all_value_ranges, debug_all_value_ranges,
24847         expr_computes_nonzero, loop_depth_of_name,
24848         unmodifiable_var_p): Declare.
24849         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
24850         ASSERT_EXPR.
24851         * tree-into-ssa.c (block_defs_stack): Update comment.
24852         (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
24853         syms_to_rename, names_to_release, repl_tbl,
24854         need_to_initialize_update_ssa_p, need_to_update_vops_p,
24855         need_to_replace_names_p): New locals.
24856         (NAME_SETS_GROWTH_FACTOR): Define.
24857         (struct repl_map_d): Declare.
24858         (struct mark_def_sites_global_data): Add field
24859         interesting_blocks.
24860         (enum rewrite_mode): Declare.
24861         (REGISTER_DEFS_IN_THIS_STMT): Define.
24862         (compute_global_livein): Use last_basic_block instead of
24863         n_basic_blocks.
24864         (set_def_block): Remove last argument.  Update all callers.
24865         (prepare_use_operand_for_rename): Remove.  Update all callers.
24866         (prepare_def_operand_for_rename): Remove.  Update all callers.
24867         (symbol_marked_for_renaming): New.
24868         (is_old_name): New.
24869         (is_new_name): New.
24870         (repl_map_hash): New.
24871         (repl_map_eq): New.
24872         (repl_map_free): New.
24873         (names_replaced_by): New.
24874         (add_to_repl_tbl): New.
24875         (add_new_name_mapping): New.
24876         (mark_def_sites): Assume that all the operands in the
24877         statement are in normal form.
24878         (find_idf): Assert that the block in the stack is valid.
24879         (get_default_def_for): New.
24880         (insert_phi_nodes_for): Add new argument 'update_p'.
24881         Add documentation.
24882         If update_p is true, add a new mapping between the LHS of
24883         each new PHI and the name that it replaces.
24884         (insert_phi_nodes_1): Only call find_idf if needed.
24885         (get_reaching_def): Call get_default_def_for.
24886         (rewrite_operand): Remove.
24887         (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
24888         and REWRITE_THIS_STMT are false.
24889         Assume that all the operands in the statement are in
24890         normal form.
24891         (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
24892         (rewrite_virtual_phi_arguments): Remove.
24893         (invalidate_name_tags): Remove.
24894         (register_new_update_single, register_new_update_set,
24895         rewrite_update_init_block, replace_use,
24896         rewrite_update_fini_block, rewrite_update_stmt,
24897         rewrite_update_phi_arguments): New.
24898         rewrite_blocks): Remove argument 'fix_virtual_phis'.
24899         Add arguments 'entry', 'what' and 'blocks'.
24900         Initialize the dominator walker according to 'what' and
24901         'blocks'.
24902         Start the dominator walk at 'entry'.
24903         (mark_def_site_blocks): Add argument 'interesting_blocks'.
24904         Use it to configure the dominator walker.
24905         (rewrite_into_ssa): Remove argument 'all'.
24906         Make internal.
24907         (rewrite_all_into_ssa): Remove.
24908         (rewrite_def_def_chains): Remove.
24909         (mark_def_interesting, mark_use_interesting,
24910         prepare_phi_args_for_update, prepare_block_for_update,
24911         prepare_def_site_for, prepare_def_sites,
24912         dump_names_replaced_by, debug_names_replaced_by,
24913         dump_repl_tbl, debug_repl_tbl, init_update_ssa,
24914         delete_update_ssa, create_new_def_for,
24915         register_new_name_mapping, mark_sym_for_renaming,
24916         mark_set_for_renaming, need_ssa_update_p,
24917         name_registered_for_update_p, ssa_names_to_replace,
24918         release_ssa_name_after_update_ssa,
24919         insert_updated_phi_nodes_for, update_ssa): New.
24920         * tree-loop-linear.c (linear_transform_loops): Call
24921         update_ssa instead of rewrite_into_ssa.
24922         * tree-optimize.c (vars_to_rename): Remove.
24923         Update all users.
24924         (init_tree_optimization_passes): Replace
24925         pass_redundant_phi with pass_copy_prop.
24926         Add pass_vrp.
24927         Replace pass_ccp with pass_store_ccp.
24928         Add pass_store_copy_prop after pass_store_ccp.
24929         (execute_todo): If the TODO_ flags don't include updating
24930         the SSA form, assert that it does not need to be updated.
24931         Call update_ssa instead of rewrite_into_ssa and
24932         rewrite_def_def_chains.
24933         If TODO_verify_loops is set, call verify_loop_closed_ssa.
24934         (tree_rest_of_compilation):
24935         * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
24936         TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
24937         TODO_cleanup_cfg): Renumber.
24938         (TODO_verify_loops, TODO_update_ssa,
24939         TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
24940         TODO_update_ssa_only_virtuals): Define.
24941         (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
24942         Declare.
24943         * tree-phinodes.c (make_phi_node): Update documentation.
24944         (remove_all_phi_nodes_for): Remove.
24945         (find_phi_node_for): New.
24946         * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
24947         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
24948         (interpret_rhs_modify_expr): Likewise.
24949         * tree-sra.c (decide_instantiations): Mark all symbols in
24950         SRA_CANDIDATES for renaming.
24951         (mark_all_v_defs_1): Rename from mark_all_v_defs.
24952         (mark_all_v_defs): New function.  Update all users to call it
24953         with the whole list of scalarized statements, not just the
24954         first one.
24955         * tree-ssa-alias.c (count_ptr_derefs): Make extern.
24956         (compute_flow_insensitive_aliasing): If the tag is
24957         unmodifiable and the variable isn't or vice-versa, don't
24958         make them alias of each other.
24959         (setup_pointers_and_addressables): If the type tag for
24960         VAR is about to change, mark the old one for renaming.
24961         (add_type_alias): New.
24962         * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
24963         (ccp_lattice_t): Rename from latticevalue.
24964         (value): Remove.  Update all users.
24965         (const_val): New local variable.
24966         (do_store_ccp): New local variable.
24967         (dump_lattice_value): Handle UNINITIALIZED.
24968         (debug_lattice_value): New.
24969         (get_default_value): Re-write.
24970         (set_lattice_value): Re-write.
24971         (def_to_varying): Remove.  Update all users.
24972         (likely_value): Return VARYING for statements that make
24973         stores when STORE_CCP is false.
24974         Return VARYING for any statement other than MODIFY_EXPR,
24975         COND_EXPR and SWITCH_EXPR.
24976         (ccp_initialize): Re-write.
24977         (replace_uses_in, replace_vuse_in, substitute_and_fold):
24978         Move to tree-ssa-propagate.c.
24979         (ccp_lattice_meet): Handle memory stores when
24980         DO_STORE_CCP is true.
24981         (ccp_visit_phi_node): Likewise.
24982         (ccp_fold): Likewise.
24983         (evaluate_stmt): Likewise.
24984         (visit_assignment): Likewise.
24985         (ccp_visit_stmt): Likewise.
24986         (execute_ssa_ccp): Add argument 'store_ccp'.  Copy it
24987         into DO_STORE_CCP.
24988         (do_ssa_ccp): New.
24989         (pass_ccp): Use it.
24990         (do_ssa_store_ccp): New.
24991         (gate_store_ccp): New.
24992         (pass_store_ccp): Declare.
24993         * tree-ssa-copy.c: Include tree-ssa-propagate.h.
24994         (may_propagate_copy): Reformat.
24995         Don't abort if ORIG is a virtual and DEST isn't.
24996         If NEW does not have alias information but DEST does,
24997         copy it.
24998         (copy_of, cached_last_copy_of, do_store_copy_prop, enum
24999         copy_prop_kind, which_copy_prop): Declare.
25000         (stmt_may_generate_copy, get_copy_of_val,
25001         get_last_copy_of, set_copy_of_val, dump_copy_of,
25002         copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
25003         copy_prop_visit_stmt, copy_prop_visit_phi_node,
25004         init_copy_prop, fini_copy_prop, execute_copy_prop,
25005         gate_copy_prop, do_copy_prop, gate_store_copy_prop,
25006         store_copy_prop): New.
25007         (pass_copy_prop, pass_store_copy_prop): Declare.
25008         * tree-ssa-dom.c (struct opt_stats_d): Add fields
25009         'num_const_prop' and 'num_copy_prop'.
25010         (cprop_operand): Update them.
25011         (dump_dominator_optimization_stats): Dump them.
25012         (tree_ssa_dominator_optimize): Call update_ssa instead of
25013         rewrite_into_ssa.
25014         (loop_depth_of_name): Declare extern.
25015         (simplify_cond_and_lookup_avail_expr): Guard against NULL
25016         values for LOW or HIGH.
25017         (cprop_into_successor_phis): Only propagate if NEW != ORIG.
25018         (record_equivalences_from_stmt): Call expr_computes_nonzero.
25019         (cprop_operand): Only propagate if VAL != OP.
25020         * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
25021         statement for renaming.
25022         * tree-ssa-loop-im.c (move_computations): Call update_ssa.
25023         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
25024         add_type_alias if necessary.
25025         Call mark_new_vars_to_rename.
25026         (tree_ssa_iv_optimize): If new symbols need to be renamed,
25027         mark every statement updated, call update_ssa and
25028         rewrite_into_loop_closed_ssa.
25029         * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
25030         from LIVEIN if VAR is a virtual.
25031         * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
25032         * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
25033         (get_call_expr_operands): Reformat statement.
25034         (add_stmt_operand): Don't create V_MAY_DEFs for read-only
25035         symbols.
25036         * tree-ssa-propagate.c (ssa_prop_init): Initialize
25037         SSA_NAME_VALUE for every name.
25038         (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
25039         get_value_loaded_by): New.
25040         (replace_uses_in, replace_vuses_in, replace_phi_args_in,
25041         substitute_and_fold): Move from tree-ssa-ccp.c.
25042         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
25043         first_vdef, stmt_makes_single_load, stmt_makes_single_store,
25044         get_value_loaded_by, replace_uses_in, substitute_and_fold):
25045         Declare.
25046         * tree-ssa.c (verify_use): Fix error message.
25047         (propagate_into_addr, replace_immediate_uses, get_eq_name,
25048         check_phi_redundancy, kill_redundant_phi_nodes,
25049         pass_redundant_phi): Remove.  Update all users.
25050         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
25051         add_type_alias, if necessary.
25052         * tree-vectorizer.h (struct _stmt_vect_info): Update
25053         documentation for field 'memtag'.
25054         * tree-vrp.c: New file.
25055         * tree.def (ASSERT_EXPR): Define.
25056         * tree.h (ASSERT_EXPR_VAR): Define.
25057         (ASSERT_EXPR_COND): Define.
25058         (SSA_NAME_VALUE_RANGE): Define.
25059         (struct tree_ssa_name): Add field 'value_range'.
25060         (PHI_REWRITTEN): Remove.
25061         (struct tree_phi_node): Remove field 'rewritten'.
25062         * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
25063         -ftree-store-copy-prop): Document.
25064         * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
25065         Document usage of update_ssa.
25066
25067 2005-04-08  David Edelsohn  <edelsohn@gnu.org>
25068
25069         PR target/20814
25070         * config/rs6000/predicates.md (altivec_register_operand): Accept
25071         SUBREG.
25072         (and64_operand): Do not limit CONST_INT to mask64_operand.
25073         (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
25074         (and_operand): Do not limit CONST_INT to mask_operand.
25075
25076 2005-04-09  Hans-Peter Nilsson  <hp@axis.com>
25077
25078         PR rtl-optimization/20466
25079         * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
25080         for overlap of the address of each list member.
25081         (mark_set_1): Call invalidate_mems_from_set for MEMs too.
25082
25083 2005-04-08  Mike Stump  <mrs@apple.com>
25084
25085         * config/darwin.c (indirect_data): Fix typo in strncmp logic.
25086
25087         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
25088         instead of 4.
25089
25090 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
25091
25092         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
25093
25094         * function.c (push_function_context_to): Don't set
25095         contains_functions.
25096         * function.h (function): Remove contains_functions.
25097         (current_function_contains_functions): Remove.
25098
25099         * function.h (function): Remove instrument_entry_exit.
25100         (current_function_instrument_entry_exit): Remove.
25101
25102         * function.h (nonlocal_labels): Remove.
25103
25104         * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
25105
25106         * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
25107         (check_attr_value, write_attr_get, write_expr_attr_cache,
25108         find_attr, make_internal_attr): Don't reference negative_ok or
25109         unsigned_p.
25110         * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
25111         ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
25112         (ATTR_STATIC): Adjust the value.
25113
25114         * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
25115
25116 2005-04-08  Ulrich Weigand  <uweigand@de.ibm.com>
25117
25118         * config/s390/tpf.h (ASM_SPEC): Define.
25119
25120 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
25121
25122         * tree-flow.h: Remove the prototype for
25123         redirect_immediate_uses.
25124         (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
25125
25126 2005-04-08  Richard Earnshaw  <richard.earnshaw@arm.com>
25127
25128         * arm.c (arm_const_double_by_parts): New function.
25129         * arm-protos.h (arm_const_double_by_parts): Add prototype.
25130         * arm.md (define_split for 64-bit constants): Add another one.
25131
25132 2005-04-08  Andrew MacLeod  <amacleod@redhat.com>
25133
25134         * tree-ssa-operands.c (correct_use_link): Remove linear scan.
25135
25136 2005-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25137
25138         * system.h: Revert last change.
25139
25140 2005-04-08  Richard Sandiford  <rsandifo@redhat.com>
25141
25142         * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
25143         (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
25144         (TARGET_SWITCHES): Delete.
25145         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
25146         * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
25147         TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
25148         * config/xtensa/xtensa.opt: New file.
25149
25150 2005-04-08  Ben Elliston  <bje@au.ibm.com>
25151
25152         * config/fp-bit.c: Include L_mul_tf in #endif comment.
25153         * config/fp-bit.h: Tidy comments.
25154
25155 2005-04-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25156
25157         * system.h: Poison PARAMS.
25158
25159 2005-04-07  Richard Sandiford  <rsandifo@redhat.com>
25160
25161         * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
25162         (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
25163         (TARGET_SWITCHES): Delete.
25164         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
25165         * config/vax/vax.opt: New file.
25166
25167 2005-04-07  Daniel Berlin  <dberlin@dberlin.org>
25168
25169         * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
25170
25171 2005-04-07  Ian Lance Taylor  <ian@airs.com>
25172
25173         * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
25174         define.
25175         * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
25176         * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
25177         Likewise.
25178
25179 2005-04-07  Kazu Hirata  <kazu@cs.umass.edu>
25180
25181         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
25182         all immediate uses in PHI nodes.
25183
25184 2005-04-07  Richard Earnshaw  <richard.earnshaw@arm.com>
25185
25186         * arm.c (arm_const_double_inline_cost): Handle any constant by
25187         using gen_lowpart and gen_highpart_mode.
25188         (note_invalid_constants): All constants in an RTX with a constraint
25189         that permits memory are now pushed to the constant pool.
25190         (output_move_double): Delete code to handle reg to reg and
25191         constant to reg moves.
25192         (const_double_needs_minipool, output_mov_immediate): Delete.
25193         * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
25194         CONST_INT and CONST_VECTOR.
25195         * arm.md (ANY64): New mode macro.
25196         (arm_movdi): Split reg-reg and const-reg moves.  Simplify constraints.
25197         (movdf_soft_insn): Split reg-reg and const-reg moves.
25198         (split patterns for 64-bit constant and register moves): New.
25199         * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
25200         (cirrus_movdf_hard_insn): Likewise.
25201         * fpa.md (movdf_fpa): Likewise.
25202         * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
25203         (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
25204         constraints.
25205         (movv2si_internal_2): Likewise.
25206         * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
25207         (movdf_vfp): Likewise.
25208         * arm-protos.h (output_mov_immediate): Delete prototype.
25209
25210 2005-04-07  Joseph S. Myers  <joseph@codesourcery.com>
25211
25212         PR target/20093
25213         * simplify-rtx.c (simplify_unary_operation_1): Check
25214         SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
25215
25216 2005-04-06  James E Wilson  <wilson@specifixinc.com>
25217
25218         PR target/20717
25219         * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
25220         ADDR_EXPR.
25221
25222 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
25223
25224         * coverage.h (GCOV_TYPE_NODE): Delete.
25225         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
25226         (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
25227         * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
25228         (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
25229         * value-prof.c (tree_divmod_fixed_value_transform): Delete.
25230
25231 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
25232
25233         PR other/20792
25234         * Makefile.in (gcc.pot): Remove options.c dependency.
25235         * optc-gen.awk: Don't quote help strings with N_().
25236
25237 2005-04-06  James A. Morrison  <phython@gcc.gnu.org>
25238
25239         * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
25240         the function returns a pointer type.
25241
25242 2005-04-06  Daniel Berlin  <dberlin@dberlin.org>
25243
25244         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
25245         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
25246         * doc/invoke.texi: Documnet salias-max-implicit-fields.
25247         * tree-ssa-alias.c (struct used_part): Add implicit_uses and
25248         explicit_uses members.
25249         (get_or_create_used_part_for): Initialize new fields.
25250         (fieldoff_compare): New function.
25251         (create_overlap_variables_for): Count number of fields, use
25252         heuristic to determine whether to create subvars for vars with
25253         only implicit uses.
25254         Sort the field list by offset and avoid creating duplicate SFT's.
25255
25256 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
25257
25258         * c.opt (-F): Remove trailing whitespace from help string.
25259         (-finput-charset): Use a tab to separate the switch name and help
25260         string.
25261         * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
25262         (-ftree-vectorizer-verbose): Likewise.
25263
25264 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
25265
25266         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
25267         a PHI argument where a use occurs instead of all PHI arguments.
25268
25269 2005-04-06  Joseph S. Myers  <joseph@codesourcery.com>
25270
25271         * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
25272         scope.
25273
25274 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
25275
25276         * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
25277         tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
25278         config/bfin/bfin.h: Fix comment typos.
25279
25280 2005-04-06  Ranjit Mathew  <rmathew@hotmail.com>
25281
25282         * doc/install.texi: Update the URL for Jacks.
25283         * doc/sourcebuild.texi: Likewise.
25284
25285 2005-04-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
25286
25287         PR target/17245
25288         * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
25289         Revert 2004-10-08 patch.  Reject TFmode LO_SUM in 32-bit mode.
25290
25291 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
25292
25293         * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
25294
25295 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
25296
25297         * config/v850/v850-protos.h (override_options): Delete.
25298         * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
25299         (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
25300         (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
25301         (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
25302         (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
25303         (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
25304         (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
25305         (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
25306         (OVERRIDE_OPTIONS): Delete.
25307         (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
25308         (small_memory_info): Remove the value field.
25309         (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
25310         TARGET_NO_APP_REGS.
25311         * config/v850/v850.c (small_memory): Remove the value field.
25312         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
25313         (override_options): Delete.
25314         (v850_handle_memory_option, v850_handle_option): New functions.
25315         * config/v850/v850.opt: New file.
25316
25317 2005-04-06  Geoffrey Keating  <geoffk@apple.com>
25318
25319         * config.host: Add a section for generic hosts, and a subsection
25320         for Darwin.  Add a case for x86-darwin.  Update ppc-darwin case.
25321         * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
25322         * config/host-darwin.h: New.
25323         * config/x-darwin: New.
25324         * config/i386/host-i386-darwin.c: New.
25325         * config/i386/x-darwin: New.
25326         * config/rs6000/host-darwin.c: Include host-darwin.h.
25327         (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
25328         (darwin_rs6000_gt_pch_use_address): Likewise.
25329         * config/rs6000/x-darwin: Change name of .o built, update
25330         dependencies for changes to rs6000/host-darwin.c.
25331
25332 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
25333
25334         PR target/17824
25335         * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
25336
25337 2005-04-06  Dorit Naishlos  <dorit@il.ibm.com>
25338
25339         * tree-vect-analyze.c (vect_analyze_loop_form): Call
25340         split_loop_exit_edge instead of loop_split_edge_with.
25341
25342 2005-04-06  Paolo Bonzini  <bonzini@gnu.org>
25343
25344         * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
25345         UNSPEC_SET_VSCR): New constants, used throughout.
25346         (*andc3_v4sf): New.
25347         (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
25348         Replace with...
25349         (altivec_vspltis<VI_char>): ... this pattern, using
25350         a QImode const_int_operand for the immediate.
25351         (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
25352         define_expands.
25353
25354 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
25355
25356         PR target/17822
25357         * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
25358
25359 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
25360
25361         * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
25362
25363 2005-04-06  Ben Elliston  <bje@au.ibm.com>
25364
25365         * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
25366         DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
25367         macros as living in "this file" and not gcc.h.
25368
25369 2005-04-06  Ben Elliston  <bje@au.ibm.com>
25370
25371         * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
25372         -ftree-live_range_split.  Perhaps renamed at some point?
25373
25374 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
25375
25376         PR target/20625
25377         * tree-ssa-loop-ivopts.c (generic_type_for): New function.
25378         (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
25379
25380 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
25381
25382         * tree-flow.h (number_of_iterations_cond): Declaration removed.
25383         * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
25384         (number_of_iterations_special): New function.
25385         (number_of_iterations_exit): Use number_of_iterations_special.
25386         Use simplify_using_outer_evolutions only at -O3.
25387         (number_of_iterations_cond, tree_simplify_using_condition,
25388         simplify_using_initial_conditions, loop_niter_by_eval,
25389         compare_trees, can_count_iv_in_wider_type_bound,
25390         simplify_using_outer_evolutions): Use fold_build.
25391
25392 2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
25393
25394         * doc/install.texi (Configuration): Document --with-java-home.
25395
25396 2005-04-05  Richard Henderson  <rth@redhat.com>
25397
25398         PR target/20342
25399         PR target/20447
25400         * config/i386/i386.c (print_operand): Handle vector zeros.
25401         (ix86_split_to_parts): Handle CONST_VECTOR.
25402         (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
25403         (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
25404         what modes to tie for MMX and SSE registers.
25405         * config/i386/i386.h (MMX_REG_MODE_P): Remove.
25406         * config/i386/i386.md: Extend move 0 -> xor peephole to apply
25407         to vector modes as well.
25408         * config/i386/predicates.md (const0_operand): Handle VOIDmode
25409         properly as an input mode.
25410
25411 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
25412
25413         * tree-ssa-operands.c (verify_abort): Use %p for pointers.
25414
25415 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
25416
25417         * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
25418
25419 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
25420
25421         * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
25422         and local functions, set sse_nregs to 8 and float_in_sse.
25423         (function_arg_advance, function_arg): If float_in_sse, pass
25424         SFmode and DFmode arguments in SSE registers.
25425         * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
25426
25427         * config/i386/i386.c (ix86_value_regno): Only optimize local functions
25428         of -funit-at-a-time.
25429
25430 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
25431
25432         * config/i386/i386-protos.h (ix86_function_value): Accept two
25433         arguments, like the target macro.
25434         * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
25435         * config/i386/i386.c (ix86_function_value): Accept the second
25436         argument of the target macro.
25437         (ix86_function_ok_for_sibcall): Pass a function pointer to
25438         ix86_function_value.
25439         (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
25440         call to ix86_value_regno).
25441         (ix86_value_regno): Add support for returning floating point values
25442         in SSE registers.
25443
25444 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
25445
25446         PR tree-optimization/20076
25447         * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
25448         that call __builtin_return or __builtin_apply_args.
25449
25450 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
25451
25452         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
25453         Use immediate use iterator.
25454         (stmt_is_bumper_for_loop): Use immediate use iterator.
25455         * predict.c (strip_builtin_expect): Use update_stmt.
25456         * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
25457         on all elements of a STATEMENT_LIST.
25458         (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
25459         (bsi_remove): Remove imm_use links and mark the stmt as modified.
25460         (bsi_replace): Mark stmt as modified and the update it.
25461         * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
25462         (expand_complex_libcal): Call update_stmt.
25463         (expand_complex_comparison): Call mark_stmt_modified.
25464         (expand_complex_operations_1): Call update_stmt_if_modified.
25465         (expand_vector_operations_1): Call mark_stmt_modified.
25466         * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
25467         compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
25468         add_immediate_use, redirect_immediate_use,
25469         redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
25470         dump_immediate_uses_for, debug_immediate_uses_for): Delete.
25471         (mark_new_vars_to_rename): Call update_stmt.
25472         * tree-dump.c (dump_option_value_in): Add "stmtaddr".
25473         * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.
25474         Ignore PHI nodes.
25475         (unmodify_stmt): Delete.
25476         (update_stmt): New.  Force an update of a stmt.
25477         (update_stmt_if_modified): update a stmt if it is out of date.
25478         (get_stmt_operands): Verify stmt is NOT modified.
25479         (stmt_modified_p): Update comment.
25480         (delink_imm_use): Remove a use node from its immuse list.
25481         (link_imm_use_to_list): Link a use node to a specific list.
25482         (link_imm_use): Link a node to the correct list.
25483         (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
25484         it in the correct list, if appropriate.
25485         (link_imm_use_stmt): Link a use node, and set the stmt pointer.
25486         (relink_imm_use): Link a use node in place of another node in a list.
25487         (relink_imm_use_stmt): LInk a node in place of another node, and set
25488         the stmt pointer.
25489         (end_safe_imm_use_traverse): New.  Terminate a safe immuse iterator.
25490         (end_safe_imm_use_p): New.  Check for the end of a safe immuse iterator.
25491         (first_safe_imm_use): New.  Initialize a safe immuse iterator.
25492         (next_safe_imm_use): New.  Proceed to next safe immuse iterator value.
25493         (end_readonly_imm_use_p): New.  Check for end of a fast immuse iterator.
25494         (first_readonly_imm_use): New.  Initialize a fast immuse iterator.
25495         (next_readonly_imm_use): New.  Get the next fast immuse iterator value.
25496         (has_zero_uses): New.  Return true if there are no uses of a var.
25497         (has_single_use): New.  Return true if there is only a single use of a
25498         variable.
25499         (single_imm_use): New.  Return the simgle immediate use.
25500         (num_imm_uses): New.  Return the number of immediate uses.
25501         (get_v_must_def_ops): Use is now a pointer.
25502         (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
25503         get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of
25504         the use node.
25505         (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
25506         (delink_stmt_imm_use): Delink all immuses from a stmt.
25507         (phi_arg_index_from_use): New.  Return a phi arg index for a use.
25508         * tree-flow.h (struct dataflow_d): Delete.
25509         (immediate_use_iterator_d): New.  Immediate use iterator struct.
25510         (FOR_EACH_IMM_USE_FAST): New.  Macro for read only immuse iteration.
25511         (FOR_EACH_IMM_USE_SAFE): New.  Macro for write-safe immuse iteration.
25512         (BREAK_FROM_SAFE_IMM_USE): New.  Macro for earlyu exit from write-safe
25513         iteration.
25514         (struct stmt_ann_d): Remove dataflow_t from struct.
25515         * tree-if-conv.c (tree_if_conversion).  Don't call free_df.
25516         (if_convertible_phi_p): Use FAST immuse iterator.
25517         (if_convertible_loop_p): Don't call compute_immediate_uses.
25518         (replace_phi_with_cond_modify_expr): Call update_stmt.
25519         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call
25520         update_stmt_if_modified.
25521         (rewrite_all_into_ssa): Initialize ssa operands.
25522         * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
25523         compute_immediate_uses.
25524         * tree-optimize.c (execute_todo): Call verify_ssa whenever the
25525         ssa_property is available.
25526         (execute_one_pass):  Change parameters passed to execute_todo.
25527         * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
25528         (remove_ssa_form): Call fini_ssa_operands.
25529         (insert_backedge_copies): Delete call to modify_stmt.
25530         * tree-phinodes.c (make_phi_node): Initialize use nodes.
25531         (release_phi_node): Delink any use nodes before releasing.
25532         (resize_phi_node): Relink any use nodes.
25533         (remove_phi_arg_num): Delink the use node.
25534         (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
25535         (remove_all_phi_nodes_for): Release phi node first.
25536         * tree-pretty-print.c (dump_generic_node): Print stmt address.
25537         * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
25538         (scalarize_use, scalarize_copy): Call update_stmt.
25539         * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
25540         (compute_points_to_and_addr_escape): Call mark_stmt_modified.
25541         * tree-ssa-cpp.c (need_imm_uses_for): Delete.
25542         (ccp_initialize): Remove call to compute_immediate_uses.
25543         (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
25544         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified
25545         stmts.
25546         (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
25547         (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
25548         (eliminate_redundant_computations): Call mark_stmt_modified.
25549         (cprop_operand): Call mark_stmt_modified.
25550         (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
25551         * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
25552         (dse_optimize_stmt): Use new immuse interface.
25553         (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
25554         * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
25555         (substitute_single_use_vars): Use new immuse interface.
25556         (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
25557         and compute_immediate_uses.
25558         * tree-ssa-loop-im.c (single_reachable_address): Use new immuse
25559         interface.
25560         (rewrite_mem_refs): Call update_stmt.
25561         (determine_lsm): Remove call to compute_imm_uses and free_df.
25562         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
25563         (try_unroll_loop_completely): Call update_stmt.
25564         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
25565         (rewrite_use_compare): Call update_stmt.
25566         (compute_phi_arg_on_exit): Insert each stmt before trying to process.
25567         (rewrite_use) : Call update_stmt.
25568         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
25569         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call
25570         update_stmt.
25571         * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
25572         (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
25573         (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
25574         use nodes.
25575         (initialize_vuse_operand): New.  Initialize a vuse operand.
25576         (initialize_v_may_def_operand): New.  Initialize a maydef operand.
25577         (initialize_v_must_def_operand): New.  Initialize a mustdef operand.
25578         (finalize_ssa_defs): Use stmt parameter.
25579         (correct_use_link): Ensure a use node is in the correct list, and has
25580         the correct stmt pointer.
25581         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
25582         finalize_ssa_v_must_defs): Also initialize use nodes.
25583         (finalize_ssa_stmt_operands): Pass extra stmt operands.
25584         (build_ssa_operands): Seperate parsing from final operand construction.
25585         (parse_ssa_operands): New.  Parse entry point for operand building.
25586         (swap_tree_operands): New.  Swap 2 tree operands.
25587         (update_stmt_operands): Ranamed from get_stmt_operands.  Always builds
25588         operands.
25589         (get_expr_operands): Call swap_tree_operands when needed.
25590         (copy_virtual_operands): Use initialize routines for virtual use ops.
25591         (create_ssa_artficial_load_stmt): Add extra stmt parameter.
25592         (verify_abort): New.  Issue imm_use error.
25593         (verify_imm_links): New Verify imm_use links for a var.
25594         (dump_immediate_uses_for): New.  Dump imm_uses for a var to file.
25595         (dump_immediate_uses): New.  Dump imm_uses for all vars to file.
25596         (debug_immediate_uses): New.  Dump imm_uses for all vars to stderr.
25597         (debug_immediate_uses_for): New.  Dump imm_uses for a var to stderr.
25598         * tree-ssa-operands.h (struct use_operand_ptr): Delete.
25599         (NULL_USE_OPERAND_P) Define.
25600         (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
25601         use node.
25602         (struct vuse_operand_type): New struct.
25603         (SET_USE): Call set_ssa_use_from_ptr.
25604         (USE_STMT): Define.
25605         (PHI_ARG_INDEX_FROM_USE): Define.
25606         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi
25607         argument via SET_USE, not PHI_ARG_DEF_TREE.
25608         * tree-ssa-pre.c (eliminate): Call update_stmt.
25609         * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators.  Don't
25610         call free_df.
25611         * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
25612         (nearest_common_dominator_of_uses): Use imm_use iterator.
25613         (statement_sink_location): Use imm_use iterator and interface.
25614         (execute_sink_code): Don't call compute_immediate_uses or free-df.
25615         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
25616         PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
25617         * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
25618         (verify_ssa): Ensure no stmt is marked modify after optimization pass
25619         if new parameter is true.
25620         (init_tree_ssa): Don't initialize operand cache here.
25621         (delete_tree_ssa): Don't destroy operand cache here.
25622         (propagate_into_addr): Pass in a use pointer, return true if anything
25623         was changed.
25624         (replace_immediate_uses): Use imm_use iterator, call update_stmt.
25625         (check_phi_redundancy): Use imm_use iterator.
25626         (kill_redundant_phi_nodes): Don't call compute_immediate_uses or
25627         free_df.
25628         * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
25629         (release_ssa_name): Delink node and all elements in its imm_use list.
25630         * tree-tailcall.c (adjust_return_value): Call update_stmt.
25631         * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
25632         * tree-vectorizer.c (need_imm_uses_for): Delete.
25633         (vectorize_loops): Dont call compute_immediate_uses or free_df.
25634         * tree.h (struct ssa_imm_use_d): Define.
25635         (SSA_NAME_IMM_USE_NODE): Define.
25636         (struct tree_ssa_name): Add imm_use node.
25637         (PHI_DF): Delete.
25638         (PHI_ARG_IMM_USE_NODE): Define.
25639         (struct phi_arg_d): Add imm_use node.
25640         (struct tree_phi_node): Remove struct dataflow_d element.
25641         (TDF_STMTADDR): Define.
25642
25643 2005-04-05  Dale Johannesen  <dalej@apple.com>
25644
25645         * doc/invoke.texi (Optimization Options):  Remove
25646         duplicate -fcse-follow-jumps.  Add -fweb.
25647         (-ftree-lim):  Fix spelling (-ftree-loop-im, invariants).
25648         (-fivcanon):  Fix spelling (-ftree-loop-ivcanon).
25649
25650 2005-04-05  Per Bothner  <per@bothner.com>
25651
25652         * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
25653         to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
25654         (warn_uninit): Get EXPR_LOCUS from context now instead.
25655         This fixes a USE_MAPPED_LOCATION testsuite failure.
25656
25657         * tree-ssa.c (warn_uninitialized_var): Remove useless local.
25658
25659 2005-04-05  Per Bothner  <per@bothner.com>
25660
25661         * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
25662         of the artification 'return 0' in main() to BUILTINS_LOCATION.
25663         * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
25664         before warning.
25665
25666 2004-04-05  Devang Patel  <dpatel@apple.com>
25667
25668         * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
25669         (lhsr<mode>3): ... new name.
25670         (altivec_vsra<VI_char>): Rename to ..
25671         (ashr<mode>3): ... new name.
25672         * config/rs6000/rs6000.c (builtin_description): Rename shift
25673         operations.
25674
25675 2004-04-05  Paolo Bonzini  <bonzini@gnu.org>
25676
25677         * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
25678         gen_lowpart_for_combine.
25679         * cse.c (gen_lowpart_if_possible): Move...
25680         * rtlhooks.c (gen_lowpart_if_possible): ... here.  Also try
25681         gen_lowpart_SUBREG.
25682         (gen_lowpart_no_emit_general): Use it.
25683
25684 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
25685
25686         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
25687         overriding.
25688
25689 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
25690
25691         * system.h: Fix typo.
25692
25693 2005-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
25694
25695         * config/bfin/bfin-modes.def: New file.
25696         * config/bfin/bfin-protos.h: New file.
25697         * config/bfin/bfin.c: New file.
25698         * config/bfin/bfin.h: New file.
25699         * config/bfin/bfin.md: New file.
25700         * config/bfin/bfin.opt: New file.
25701         * config/bfin/crti.s: New file.
25702         * config/bfin/crtn.s: New file.
25703         * config/bfin/elf.h: New file.
25704         * config/bfin/lib1funcs.asm: New file.
25705         * config/bfin/predicates.md: New file.
25706         * config/bfin/t-bfin: New file.
25707         * config/bfin/t-bfin-elf: New file.
25708         * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
25709         Document new attributes.
25710         (interrupt, interrupt_handler, saveall): Update documentation for
25711         these attributes.
25712         * doc/install.texi (Specific): Add entry for the Blackfin.
25713         * doc/invoke.texi (Blackfin Options): New section.
25714         * doc/md.texi (Blackfin family): New section to document constraints.
25715         * config.gcc: Add bfin*-* and bfin*-elf configurations.
25716
25717 2005-04-05  Olivier Hainque  <hainque@adacore.com>
25718
25719         * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
25720         match what the system unwinder expects.
25721         * config/mips/mips.c (mips_frame_set): If we're saving the return
25722         address register and the dwarf return address column number differs
25723         from the hard register number, adjust the note reg to refer to the
25724         former.
25725
25726 2004-04-05  Richard Sandiford  <rsandifo@redhat.com>
25727
25728         * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
25729         * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
25730         (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
25731         (processor_type): New enum.
25732         (mn10300_processor): New variable.
25733         (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
25734         (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
25735         * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
25736         (PROCESSOR_DEFAULT): New macro.
25737         * config/mn10300/mn10300.c (mn10300_processor): New variable.
25738         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
25739         (mn10300_handle_option, mn10300_override_options): New functions.
25740         * config/mn10300/mn10300.opt: New file.
25741
25742 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
25743             Sebastian Pop <sebastian.pop@cri.ensmp.fr>
25744
25745         PR tree-optimization/19903
25746         * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
25747         that don't fit in their type after conversion.
25748
25749 2005-04-05  Uros Bizjak <uros@kss-loka.si>
25750
25751         PR target/20421
25752         * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
25753         (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
25754         Allocate local stack slots here.  Set ix86_optimize_mode_switching.
25755         flag here. Implement using define_insn_and_split.
25756         (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
25757         (frndintxf2_mask_pm_i387): New insn patterns.
25758         (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
25759         Do not set ix86_optimize_mode_switching flag.
25760         (ceilsf2, ceildf2, ceilxf2): Same.
25761         (btruncsf2, btruncdf2, btruncxf2): Same.
25762         (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
25763
25764 2005-04-05  Ian Lance Taylor  <ian@airs.com>
25765
25766         PR debug/9963
25767         * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
25768         i386_pe_record_external_function.
25769         (i386_pe_record_external_function): Update declaration.
25770         * config/i386/winnt.c (struct extern_list): Add decl field.
25771         (i386_pe_record_external_function): Add decl parameter.
25772         (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
25773         identifier.
25774         * config/i386/i386-protos.h (i386_pe_record_external_function):
25775         Update declaration.
25776
25777 2005-04-05  Kazu Hirata  <kazu@cs.umass.edu>
25778
25779         * config/m68k/m68k-protos.h: Add a prototype for
25780         valid_dbcc_comparison_p_2.
25781         * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
25782         extend_operator, const_uint32_operand, const_sint32_operand,
25783         general_src_operand, nonimmediate_src_operand,
25784         memory_src_operand, post_inc_operand, pre_dec_operand,
25785         pcrel_address): Move to predicates to predicates.md.
25786         * config/m68k/m68k.h (PREDICATE_CODES): Remove.
25787         * config/m68k/m68k.md: Include predicates.md.
25788         * config/m68k/predicates.md: New.
25789
25790 2005-04-04  Roger Sayle  <roger@eyesopen.com>
25791
25792         * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
25793
25794         * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
25795
25796 2005-04-04  Ian Lance Taylor  <ian@airs.com>
25797
25798         * c-typeck.c (struct c_switch): Rename switch_stmt field to
25799         switch_expr.
25800         (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
25801         (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
25802         (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
25803         Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
25804         * c-common.c (c_do_switch_warnings_1): New static function broken
25805         out of c_do_switch_warnings.
25806         (c_do_switch_warnings): Call c_do_switch_warnings_1.
25807         (c_do_switch_expr_warnings): New function.
25808         * c-common.h (c_do_switch_expr_warnings): Declare.
25809
25810 2005-04-04  David Edelsohn  <edelsohn@gnu.org>
25811             Daniel Jacobowitz  <dan@codesourcery.com>
25812
25813         * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
25814         trapping divide.
25815         * rtlanal.c (may_trap_p): Same.
25816
25817 2005-04-04  Dale Johannesen  <dalej@apple.com>
25818
25819         * ChangeLog:  remove reference to ChangeLog.12.
25820
25821 2005-04-05  Hans-Peter Nilsson  <hp@axis.com>
25822
25823         CRIS epilogue as RTL.
25824         * config/cris/cris.md: Change all 0 in unspec 0 to
25825         CRIS_UNSPEC_PLT.
25826         (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
25827         ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
25828         patterns.
25829         ("return"): Change to define_expand.  Call cris_expand_return for
25830         actual expansion.
25831         ("*return_expanded"): New pattern.
25832         ("epilogue"): New define_expand.
25833         * config/cris/cris.h (PREDICATE_CODES): Add
25834         cris_load_multiple_op.
25835         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
25836         type.
25837         (enum cris_retinsn_type): New.
25838         (struct machine_function): New member return_type.
25839         (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
25840         (cris_target_asm_function_epilogue): Remove, moving RTLified
25841         contents to...
25842         (cris_expand_epilogue): New function.
25843         (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
25844         (cris_gen_movem_load, cris_load_multiple_op)
25845         (cris_return_address_on_stack_for_return, cris_expand_return): New
25846         functions.
25847         (cris_target_asm_function_prologue)
25848         (cris_initial_frame_pointer_offset): Call
25849         cris_reg_saved_in_regsave_area instead of complicated expression.
25850         Call cris_return_address_on_stack instead of an expression.
25851         (cris_print_operand) <case 'o', case 'O'>: New cases.
25852         (cris_return_address_on_stack): Change return-type to bool.
25853         (cris_simple_epilogue): Ditto.  Return false if registers are
25854         saved.
25855         * config/cris/cris-protos.h (cris_simple_epilogue)
25856         (cris_return_address_on_stack): Adjust prototype return type.
25857         (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
25858         (cris_return_address_on_stack_for_return): New prototypes.
25859
25860 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
25861
25862         * config/frv/frv.h (PREDICATE_CODES): Add CONST to
25863         gpr_or_int12_operand.
25864
25865         * config/frv/frv-protos.h: Add a prototype to
25866         frv_legitimate_memory_operand and frv_const_unspec_p.
25867         (frv_unspec): Move from frv.c.
25868         * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
25869         (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
25870         (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
25871         gpr_or_fpr_operand, gpr_or_int12_operand,
25872         gpr_fpr_or_int12_operand, fpr_or_int6_operand,
25873         gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
25874         int6_operand, int5_operand, uint5_operand, uint4_operand,
25875         uint1_operand, int_2word_operand, uint16_operand,
25876         upper_int16_operand, integer_register_operand,
25877         gpr_no_subreg_operand, fpr_operand, even_reg_operand,
25878         odd_reg_operand, even_gpr_operand, odd_gpr_operand,
25879         quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
25880         dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
25881         move_destination_operand, movcc_fp_destination_operand,
25882         frv_function_symbol_referenced_p, move_source_operand,
25883         condexec_dest_operand, condexec_source_operand,
25884         reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
25885         const_unspec_operand, gpr_or_memory_operand,
25886         gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
25887         icc_operand, fcc_operand, cc_operand, icr_operand,
25888         fcr_operand, cr_operand, call_operand, sibcall_operand,
25889         symbolic_operand, relational_operator,
25890         integer_relational_operator, float_relational_operator,
25891         ccr_eqne_operator, minmax_operator,
25892         condexec_si_binary_operator, condexec_si_media_operator,
25893         condexec_si_divide_operator, condexec_si_unary_operator,
25894         condexec_sf_conv_operator, condexec_sf_add_operator,
25895         condexec_memory_operand, intop_compare_operator, acc_operand,
25896         even_acc_operand, quad_acc_operand, accg_operand: Move to
25897         predicates.md.
25898         * config/frv/frv.h (PREDICATE_CODES): Remove.
25899         * config/frv/frv.md: Include predicates.md.
25900         * config/frv/predicates.md: New.
25901
25902 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
25903
25904         PR target/19537
25905         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
25906         * tree-ssa-loop-ivopts.c: Include langhooks.h.
25907         (add_standard_iv_candidates_for_size): New function, extracting code
25908         from add_standard_iv_candidates and parameterizing it by type size.
25909         (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
25910
25911 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
25912
25913         * system.h (GCOV_SIZE_TYPE): Unposion.
25914         * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
25915         (GCOV_TYPE_SIZE): ...this new macro.
25916         * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
25917         * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
25918         (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
25919         (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
25920         (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
25921         instead of unsigned_intSI_type_node.
25922         * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
25923         (rtl_gen_one_value_profiler_no_edge_manipulation)
25924         (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
25925         * value-prof.c: Include coverage.h.
25926
25927 2005-04-02  Daniel Berlin  <dberlin@dberlin.org>
25928             Diego Novillo <dnovillo@redhat.com>
25929
25930         Fix PR tree-optimization/20703
25931         Fix PR tree-optimization/20725
25932
25933         * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
25934         (create_expression_by_pieces): Ditto.
25935         (valid_in_set): Ditto. Also handle tcc_declaration.
25936         (find_or_generate_expression): Handle comparison class.
25937         (insert_into_preds_of_block): Ditto.
25938         (insert_aux): Ditto.
25939         (create_value_expr_from): Handle comparison class, recursively
25940         handle reference nodes.
25941         (compute_avail): Handle comparison classes, rewrite a little cleaner.
25942         (execute_pre): Fix spacing.
25943         (do_fre): Renamed to execute_fre.
25944
25945 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
25946
25947         * doc/invoke.texi (SPARC options): Document that
25948         -mlittle-endian is not supported on Linux either.
25949
25950 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
25951
25952         PR target/4198
25953         PR target/12027
25954         * config.gcc (Obsolete configurations): Remove
25955         sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
25956         (sparclite-*-coff*): Delete.
25957         (sparclite-*-elf*): Likewise.
25958         (sparc86x-*-elf*): Likewise.
25959         (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
25960         * config/sparc/lite.h: Delete.
25961         * config/sparc/litecoff.h: Likewise.
25962         * config/sparc/liteelf.h: Likewise.
25963         * config/sparc/sp86x-elf.h: Likewise.
25964         * config/sparc/t-sparclite: Likewise.
25965         * config/sparc/t-sp86x: Likewise.
25966
25967 2005-04-04  Adrian Straetling  <straetling@de.ibm.com>
25968
25969         * config/s390/s390-protos.h: (s390_comparison,
25970         s390_alc_comparison, s390_slb_comparison, const0_operand,
25971         consttable_operand, larl_operand, s_operand,
25972         shift_count_operand, bras_sym_operand, load_multiple_operation,
25973         store_multiple_operation, s390_plus_operand): Remove prototypes.
25974         (s390_legitimate_address_without_index_p): New prototype.
25975         * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
25976         to s390.h.
25977         (s390_comparison, s390_alc_comparison, s390_slb_comparison,
25978         const0_operand, consttable_operand, larl_operand, s_operand,
25979         shift_count_operand, bras_sym_operand, load_multiple_operation,
25980         store_multiple_operation, s390_plus_operand): Move to
25981         predicates.md.
25982         (check_mode): Remove.
25983         (s390_branch_condition_mask): Remove 'static'. Move prototype to
25984         s390-protos.h.
25985         (s390_legitimate_address_without_index_p): New.
25986         * config/s390/s390.h (PREDICATE_CODES): Remove.
25987         * config/s390/s390.md: Include predicates.md.
25988         * config/s390/predicates.md: New.
25989
25990 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
25991
25992         PR target/20446
25993         * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
25994         * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
25995         (NEED_INDICATE_EXEC_STACK): Define to 1.
25996         * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
25997         (NEED_INDICATE_EXEC_STACK): Define to 1.
25998         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
25999         (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
26000         (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
26001         (pic_helper_emitted_p): New global.
26002         (emit_pic_helper): New function extracted from...
26003         (load_pic_register): ...here.  Add 'delay_pic_helper' parameter.
26004         Do not call emit_pic_helper if delay_pic_helper is true.
26005         (sparc_expand_prologue): Pass 'false' to load_pic_register.
26006         (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
26007         (sparc_file_end): New function.
26008
26009 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
26010
26011         * config/mcore/mcore-protos.h: Remove the prototypes for
26012         mcore_arith_reg_operand, mcore_general_movsrc_operand,
26013         mcore_general_movdst_operand, mcore_reload_operand,
26014         mcore_arith_J_operand, mcore_arith_K_operand,
26015         mcore_arith_K_operand_not_0, mcore_arith_M_operand,
26016         mcore_arith_K_S_operand, mcore_arith_imm_operand,
26017         mcore_arith_any_imm_operand, mcore_arith_O_operand,
26018         mcore_literal_K_operand, mcore_addsub_operand,
26019         mcore_compare_operand, mcore_load_multiple_operation,
26020         mcore_store_multiple_operation, mcore_call_address_operand.
26021         Add a prototype for const_ok_for_mcore.
26022         * config/mcore/mcore.c (mcore_call_address_operand,
26023         mcore_general_movsrc_operand, mcore_general_movdst_operand,
26024         mcore_arith_reg_operand, mcore_reload_operand,
26025         mcore_arith_J_operand, mcore_arith_K_operand,
26026         mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
26027         mcore_arith_M_operand, mcore_arith_imm_operand,
26028         mcore_arith_any_imm_operand, mcore_arith_O_operand,
26029         mcore_literal_K_operand, mcore_addsub_operand,
26030         mcore_compare_operand, mcore_load_multiple_operation,
26031         mcore_store_multiple_operation): Move to predicates.md.
26032         (const_ok_for_mcore): Export.
26033         * config/mcore/mcore.h (PREDICATE_CODES): Remove.
26034         * config/mcore/mcore.md: Include predicates.md.
26035         * config/mcore/predicates.md: New.
26036
26037         * config/mcore/predicates.md: Fix a comment typo.
26038
26039 2005-04-04  Andreas Krebbel  <krebbel1@de.ibm.com>
26040             Adrian Straetling  <straetling@de.ibm.com>
26041
26042         * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
26043         * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
26044         * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
26045         attribute.
26046         ("imul"): Removed from "type" attribute.
26047         ("*muldi3_sign", "muldi3"): Changed type to imuldi.
26048         ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
26049         Changed type to imulsi.
26050         ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
26051
26052 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
26053
26054         * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
26055         (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
26056         (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
26057         (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
26058         (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
26059         (TARGET_SWITCHES, mcore_stack_increment_string)
26060         (TARGET_OPTIONS): Delete.
26061         (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
26062         than *_BIT constants.
26063         (TARGET_8ALIGN): #undef old definition before redefining to 1.
26064         * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
26065         (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
26066         (mcore_override_options): Delete mcore_stack_increment code.
26067         Change use of M340_BIT to MASK_M340.
26068         * config/mcore/mcore.opt: New file.
26069
26070 2005-04-04  Ian Lance Taylor  <ian@airs.com>
26071
26072         * config/arm/arm.c (replace_symbols_in_block): Remove static
26073         function.
26074
26075 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
26076
26077         * config/fr30/fr30-protos.h: Remove the prototypes for
26078         stack_add_operand, add_immediate_operand,
26079         high_register_operand, low_register_operand, call_operand,
26080         di_operand, and nonimmediate_di_operand.
26081         * config/fr30/fr30.c (stack_add_operand,
26082         add_immediate_operand, high_register_operand,
26083         low_register_operand, call_operand, di_operand,
26084         nonimmediate_di_operand): Move to predicates.md.
26085         * config/fr30/fr30.h (PREDICATE_CODES): Remove.
26086         * config/fr30/fr30.md: Include predicates.md.
26087         * config/fr30/predicates.md: New.
26088
26089         * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
26090         LABEL_REF to mcore_general_movsrc_operand.  Add SYMBOL_REF to
26091         mcore_call_address_operand.
26092
26093         * config/sh/sh.h (PREDICATE_CODES): Add CONST to
26094         general_movsrc_operand.
26095
26096 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
26097
26098         * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
26099         after freeing.
26100
26101 2005-04-04  Richard Earnshaw  <richard.earnshaw@arm.com>
26102
26103         PR target/14812
26104         * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
26105         a negated value.
26106
26107 2005-04-04  Richard Henderson  <rth@redhat.com>
26108             Jakub Jelinek  <jakub@redhat.com>
26109
26110         PR rtl-optimization/16104
26111         * fold-const.c (fold_unary): Fix folding of vector conversions.
26112
26113 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
26114
26115         * config.gcc (xstormy16-*-elf): Set extra_options.
26116         * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
26117         * config/stormy16/stormy16.opt: New file.
26118
26119 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
26120
26121         * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
26122         (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
26123         (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
26124         (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
26125         (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
26126         (TARGET_UNIX_ASM): Delete.
26127         (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
26128         * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
26129         * config/pdp11/pdp11.c (pdp11_handle_option): New function.
26130         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
26131         * config/pdp11/pdp11.opt: New file.
26132
26133 2005-04-03  Roger Sayle  <roger@eyesopen.com>
26134             Alexandre Oliva  <aoliva@redhat.com>
26135
26136         PR c++/19199
26137         * fold-const.c (non_lvalue): Split tests into...
26138         (maybe_lvalue_p): New function.
26139         (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
26140         C++ front-end prior to lowering into gimple form.
26141
26142 2005-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26143
26144         * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
26145         BUILT_IN_STRNCASECMP): New.
26146         * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
26147         and strndup.
26148
26149 2005-04-03  Richard Earnshaw  <richard.earnshaw@arm.com>
26150
26151         PR target/14812
26152         * arm.md (addsi3_compare0_for_combiner): Delete.
26153         (addsi3_compare0_scratch_for_combiner): Delete.
26154         (cmpsi_neg_shiftsi): Delete.
26155         (compare_negsi_si): New pattern.
26156         (cmpsi_negshiftsi_si): New pattern.
26157         (negated_cbranchsi4): Restrict to equality_operator.
26158
26159         * arm.md (movhi_insn_arch4): delete trailing white space from assembler
26160         template.
26161
26162 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
26163
26164         * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
26165         Fix comment typos.
26166
26167         * doc/install.texi: Fix a typo.
26168
26169 2005-04-03  Steven Bosscher  <stevenb@suse.de>
26170
26171         PR middle-end/20648
26172         * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
26173         a computed goto if the edge to the computed goto block has
26174         incoming abnormal edges.  Clarify how the function works.
26175
26176 2005-04-03  Nathan Sidwell  <nathan@codesourcery.com>
26177
26178         * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
26179         * passes.c (open_dump_file, rest_of_handle_final): Likewise.
26180         * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
26181         hash_scan_set, reg_set_between_after_reload_p,
26182         reg_used_between_after_reload_p, get_avail_load_store_reg,
26183         eliminate_partially_redundant_load): Likewise.
26184         * postreload.c (reload_cse_simplify_set,
26185         reload_combine_note_use): Likewise.
26186         * predict.c (predict_insn, expected_value_to_br_prob,
26187         propagate_freq, expensive_function_p): Likewise.
26188         * print-rtl.c (print_rtx): Likewise.
26189         * profile.c (instrument_edges, instrument_values,
26190         compute_branch_probabilities, branch_prob, union_groups,
26191         tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
26192         * protoize.c (in_system_include_dir, file_could_be_converted,
26193         file_normally_convertible, gen_aux_info_file, seek_to_line,
26194         do_cleaning): Likewise.
26195         * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
26196         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
26197         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
26198
26199 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
26200
26201         * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
26202         * modulo-sched.c (undo_replace_buff_elem): New structure.
26203         (kernel_number_of_cycles, ps_unschedule_node,
26204         undo_generate_reg_moves,free_undo_replace_buff,
26205         undo_permute_partial_schedule,  loop_single_full_bb_p,
26206         SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
26207         build_loops_structure, get_sched_window): New.
26208         (generate_reg_moves): Return undo_replace_buff_elem and other
26209         fixes.
26210         (generate_prolog_epilog): Remove old loop versioning.
26211         (sms_schedule): Use loop information and loop_version.
26212         (sms_schedule_by_order): Split part of it to get_sched_window.
26213         * passes.c (rest_of_handle_sms): call cfg_layout_initialize
26214         cfg_layout_finalize and free_dominance_info before/after SMS.
26215
26216 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
26217
26218         * cfghooks.c (lv_flush_pending_stmts,
26219         cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
26220         lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
26221         * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
26222         lv_add_condition_to_bb,
26223         lv_adjust_loop_header_phi, extract_cond_bb_edges,
26224         flush_pending_stmts): New in cfg_hooks structure.
26225         (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
26226         extract_cond_bb_edges, lv_adjust_loop_header_phi,
26227         lv_add_condition_to_bb): New declarations.
26228         * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
26229         bool.
26230         (loop_version): Declare.
26231         * cfgloopmanip.c (cfghooks.h): Include.
26232         (duplicate_loop_to_header_edge): Change return type to bool.
26233         (loop_version, lv_adjust_loop_entry_edge): Move here.
26234         * cfgrtl.c (cfgloop.h): Include.
26235         (rtl_verify_flow_info_1): Fix.
26236         (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
26237         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
26238         initialization.
26239         * tree-cfg.c (tree_lv_adjust_loop_header_phi,
26240         tree_lv_add_condition_to_bb): New.
26241         (tree_cfg_hooks): Add new hooks to initialization.
26242         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
26243         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
26244
26245 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
26246
26247         * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
26248         xstormy16_below100_or_register,
26249         xstormy16_splittable_below100_or_register, and
26250         nonimmediate_nonstack_operand.
26251
26252         * config/stormy16/stormy16-protos.h: Remove the prototypes for
26253         xstormy16_ineqsi_operator, equality_operator,
26254         inequality_operator, shift_operator,
26255         xstormy16_below100_operand, xstormy16_below100_or_register,
26256         xstormy16_splittable_below100_or_register,
26257         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
26258         * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
26259         equality_operator, inequality_operator,
26260         xstormy16_below100_operand, xstormy16_below100_or_register,
26261         xstormy16_splittable_below100_or_register,
26262         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
26263         nonimmediate_nonstack_operand, shift_operator): Move to
26264         predicates.md.
26265         * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
26266         * config/stormy16/stormy16.md: Include predicates.md.
26267         * config/stormy16/predicates.md: New.
26268
26269 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
26270
26271         * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
26272         small_int, large_int, reg_or_0_operand, simple_memory_operand,
26273         equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
26274         move_operand, power_of_2_operand): Move to predicates.md.
26275         * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
26276         PREDICATE_CODE): Remove.
26277         * config/iq2000/iq2000.md: Include predicates.md.
26278         * config/iq2000/predicates.md: New.
26279
26280 2005-04-02  Richard Sandiford  <rsandifo@redhat.com>
26281
26282         * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
26283         (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
26284         (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
26285         (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
26286         (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
26287         (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
26288         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
26289         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
26290         (TARGET_M68HC11): Delete.
26291         (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
26292         * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
26293         * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
26294         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
26295         (nb_soft_regs): Delete.
26296         (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
26297         (m68hc11_override_options): Remove the code that caters for MASK_M6811
26298         and MASK_M6812 being set simultaneously.  Change the code that sets
26299         the default m68hc11_soft_reg_count to use integers instead of strings.
26300         (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
26301         m68hc11_soft_reg_count (which now has an int type) as the number
26302         of soft registers.
26303         * config/m68hc11/m68hc11.opt: New file.
26304
26305 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
26306
26307         * config/fr30/fr30.h (PREDICATE_CODES): Remove
26308         fp_displacement_operand, sp_displacement_operand.
26309
26310         * config/m68hc11/m68hc11-protos.h: Add a prototype for
26311         m68hcc_auto_inc_p.
26312         Remove the prototypes for tst_operand, cmp_operand,
26313         stack_register_operand, d_register_operand,
26314         hard_addr_reg_operand, splitable_operand,
26315         m68hc11_logical_operator, m68hc11_arith_operator,
26316         m68hc11_non_shift_operator, m68hc11_shift_operator,
26317         m68hc11_unary_operator, m68hc11_eq_compare_operator,
26318         non_push_operand, hard_reg_operand, and
26319         reg_or_some_mem_operand.
26320         * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
26321         extern.
26322         (tst_operand, cmp_operand, non_push_operand,
26323         splitable_operand, reg_or_some_mem_operand,
26324         stack_register_operand, d_register_operand,
26325         hard_addr_reg_operand, hard_reg_operand,
26326         m68hc11_eq_compare_operator, m68hc11_logical_operator,
26327         m68hc11_arith_operator, m68hc11_non_shift_operator,
26328         m68hc11_shift_operator, m68hc11_unary_operator): Move to
26329         predicates.md.
26330         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
26331         * config/m68hc11/m68hc11.md: Include predicates.md.
26332         * config/m68hc11/predicates.md: New.
26333
26334 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
26335
26336         PR debug/19345
26337         * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
26338         change checked in along with 2005-03-03's patch for debug/20253.
26339         * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
26340         (remap_decl): Insert type decl in map earlier.
26341
26342 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
26343
26344         PR tree-optimization/20640
26345         * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
26346         post-dominator if it has phi nodes.
26347         (eliminate_unnecessary_stmts): Remove dead phis in all blocks
26348         before dead statements.
26349
26350 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
26351
26352         PR middle-end/20491
26353         * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
26354
26355 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
26356
26357         PR rtl-optimization/20290
26358         * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
26359         in every iteration if the entry point is the exit test.
26360
26361 2005-04-02  Hans-Peter Nilsson  <hp@axis.com>
26362
26363         * config/cris/cris.md (attribute "length"): Define.
26364
26365 2005-04-02  Geoffrey Keating  <geoffk@apple.com>
26366
26367         * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
26368         (word_offset_memref_operand): New.
26369         * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
26370         (indexed_or_indirect_operand): Delete.
26371         * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
26372         (indexed_or_indirect_operand): Delete.
26373
26374         * config/rs6000/t-darwin8: Comment out ppc64 multilib.
26375
26376         PR 20650
26377         * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
26378         a register.
26379
26380         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
26381         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
26382
26383 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26384
26385         * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
26386
26387 2005-04-01  Ian Lance Taylor  <ian@airs.com>
26388
26389         * gcc.c: Don't include <sys/resource.h> or declare getrusage.
26390         (rus, prus): Remove static variables.
26391         (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
26392         (process_command): Permit report_times and use_pipes together.
26393
26394 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
26395
26396         * c-decl.c (validate_proto_after_old_defn): Look at
26397         TYPE_MAIN_VARIANT of argument types.
26398
26399 2005-04-01  Paul Brook  <paul@codesourcery.com>
26400
26401         * config/arm/arm.c (thumb_call_via_label): Include space for SP.
26402         (arm_output_function_epilogue): Allow call_via_SP.
26403         (thumb_call_via_reg, arm_file_end): Ditto.
26404         * config/arm/arm.h (struct machine_function): Include space for SP.
26405         (thumb_call_via_label): Update declaration.
26406
26407 2005-04-01  Ian Lance Taylor  <ian@airs.com>
26408
26409         * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
26410         doing a peephole optimization, once again put any notes in the
26411         proper position.
26412
26413 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26414
26415         * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
26416
26417 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
26418
26419         * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
26420         (block_alloc, find_free_reg): Likewise.
26421         * loop-doloop.c (doloop_modify): Likewise.
26422         * loop-invariant.c (record_use): Likewise.
26423         * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
26424         get_iv_value, canon_condition, eliminate_implied_condition,
26425         eliminate_implied_condition, simplify_using_initial_values,
26426         shorten_into_mode, canonicalize_iv_subregs,
26427         iv_number_of_iterations): Likewise.
26428         * loop-unroll.c (expand_var_during_unrolling): Likewise.
26429         * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
26430         unswitch_loop): Likewise.
26431         * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
26432         move_movables, replace_call_address, find_and_verify_loops,
26433         rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
26434         record_giv, final_giv_value, general_induction_var,
26435         simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
26436         loop_giv_dump): Likewise.
26437
26438         * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
26439         GCOV_CHECK_WRITING): Remove.
26440         (gcov_position, gcov_rewrite): Use gcc_assert.
26441         * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
26442         gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
26443         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
26444         gcc_assert.
26445
26446 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26447
26448         * tree-inline.c: Fix a typo.
26449
26450 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
26451
26452         * configure.ac (enable-checking): Explicitly set all variables for
26453         collective switch values.  Alphabetize variables. Rename
26454         ac_checking_valgrind to ac_valgrind_checking.  Allow 'none' as
26455         synonym for 'no'.
26456         * doc/install.texi (enable-checking): Update documentation.
26457         * configure: Rebuilt.
26458
26459 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26460
26461         * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
26462         possible.
26463
26464 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
26465
26466         * arm.c (adjacent_mem_locations): Reject volatile memory refs.
26467         Also reject cases where this pattern will cause load delay stalls
26468         unless optimizing for size and it will produce a shorter sequence.
26469         * arm.md (arith_adjacent_mem): Make better use of ldm addressing
26470         variants to avoid pre-adjusting the base when possible.
26471
26472 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
26473
26474         * arm.md (minmax_arithsi): Reject all eliminable registers, not just
26475         the frame and argument pointers.
26476         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
26477         (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
26478         (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
26479         (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
26480         (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
26481         (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
26482
26483 2005-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
26484
26485         * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
26486         with entry for selectany attribute.
26487         * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
26488         Declare.
26489         * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
26490         (i386_pe_asm_named_section): Handle sections generated by
26491         selectany attribute.
26492         * doc/extend.texi (selectany): Document attribute.
26493
26494 2005-04-01  Paolo Bonzini  <bonzini@gnu.org>
26495             Jan Hubicka  <jh@suse.cz>
26496
26497         * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
26498         to fix addresses involving EBP and ESP.
26499         (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
26500         for SUBREGed registers.
26501         (legitimate_address_p): Accept SUBREGed registers.
26502
26503 2005-04-01  Jakub Jelinek  <jakub@redhat.com>
26504
26505         PR c++/19406
26506         * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
26507         (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
26508         for FIELD_DECLs.
26509
26510 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26511
26512         * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
26513
26514 2005-04-01  James E Wilson  <wilson@specifixinc.com>
26515
26516         PR c++/20505
26517         * dwarf2out.c (rtl_for_decl_init): New function.
26518         (rtl_for_decl_location): Extracted from here.
26519         (tree_add_const_value_attribute): Call rtl_for_decl_init and
26520         add_const_value_attribute.  Delete initializer_constant_valid_p call.
26521
26522 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26523
26524         * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
26525         lambda-code.c, loop.c, machmode.def, mips-tfile.c,
26526         modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
26527         tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
26528         config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
26529         config/i386/i386.md, config/rs6000/predicates.md,
26530         config/rs6000/rs6000.c, config/s390/fixdfdi.h,
26531         config/s390/s390.c, config/stormy16/stormy16.c,
26532         config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
26533         typos.
26534
26535 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
26536
26537         PR c/17855
26538         * gimplify.c (gimplify_expr): Create a temporary for lvalue
26539         COND_EXPR and CALL_EXPR.
26540
26541 2005-03-31  Vladimir Makarov  <vmakarov@redhat.com>
26542
26543         PR target/20632
26544         * genautomata.c (first_cycle_unit_presence): Check all alternative
26545         states for unit presence.
26546
26547         * doc/md.texi: Remove remark about impossibility to query unit
26548         presence in non nondeterministic automaton state.
26549
26550         * config/ia64/ia64.c (get_template): Change order of unit querying.
26551
26552 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
26553
26554         * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
26555         obsolete comment.
26556
26557 2005-03-31  Zdenek Dvorak  <dvorakz@suse.cz>
26558
26559         * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
26560         flag for edges outside any loops.
26561
26562 2005-03-31  Janis Johnson  <janis187@us.ibm.com>
26563
26564         * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
26565
26566 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
26567
26568         * tree-ssa-alias.c: Follow spelling conventions.
26569         * doc/tree-ssa.texi: Fix a typo.
26570
26571 2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
26572
26573         * postreload-gcse.c: Include target.h.
26574         (gcse_after_reload_main): Return early if we cannot modify jumps.
26575         * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
26576
26577 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
26578
26579         * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
26580         expensive operations.
26581
26582 2005-03-31  Ian Lance Taylor  <ian@airs.com>
26583
26584         * collect2.c (lderrout): New variable.
26585         (collect_exit): Dump ldout to stdout.  Dump and unlink lderrout,
26586         if it is set, to stderr.
26587         (handler): Unlink lderrout if it is set.
26588         (dump_file): Add "to" parameter.  Change all callers.
26589         (main): Initialize lderrout.
26590         (collect_execute): Add errname parameter.  Change all callers.
26591         Rename redir parameter to outname.  Never pass
26592         PEX_STDERR_TO_STDOUT to pex_run.
26593         * collect2.h (collect_execute, dump_file): Update declarations.
26594         * tlink.c (tlink_execute): Add errname parameter.  Change all
26595         callers.
26596         (do_tlink): Check lderrout as well as ldout.
26597
26598 2005-03-31  Caroline Tice  <ctice@apple.com>
26599
26600         * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
26601         (bb-reorder.o): Add errors.h to list of requirements.
26602         (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
26603         profiledbootstrap flags.
26604         * bb-reorder.c (errors.h): Add new include.
26605         (struct bbro_basic_block_data_def): Add new field, in_trace.
26606         (add_unlikely_executed_notes):  Remove function.
26607         (mark_bb_for_unlikely_executed_section): Remove function.
26608         (insert_section_boundary_note): New function.
26609         (verify_hot_cold_block_grouping): New function.
26610         (push_to_next_round_p): Remove variables and tests that push all
26611         cold blocks to last round.
26612         (find_traces): Remove code that added extra round of trace finding
26613         when doing partitioning.
26614         (find_traces_1_round) :  Remove variable last_round;  add code to
26615         update new struct field, in_trace; correct trace_length where it was
26616         incorrect before (after call to copy_bb); change code that pushed all
26617         cold blocks to last round. Instead verify that all blocks going into
26618         a trace belong in the same partition.
26619         (connect_traces): Modify to connect the traces in two passes, if the
26620         function contains both hot and cold blocks.  The first pass connects
26621         all the traces for blocks in the partition that the first block in
26622         the function belongs to; the second pass connnects all the traces
26623         containing blocks that belong in the other partition.
26624         (find_rarely_executed_basic_blocks_and_crossing_edges):  Remove
26625         code that automatically put the first block in a function into the
26626         hot partition if the function had any hot blocks.
26627         (fix_crossing_unconditional_branches): Check number of succ edges
26628         before attempting to get one.
26629         (fix_edges_for_rarely_executed_code):  Update comment describing
26630         function.
26631         (reorder_basic_blocks):  Add code to initialize new field (in_trace);
26632         remove call to add_unlikely_executed_notes; add call to
26633         verify_hot_cold_block_grouping.
26634         (duplicate_computed_gotos): Don't change computed goto if it's a
26635         crossing edge.
26636         (partition_hot_cold_basic_blocks):  Update function comment.
26637         * cfgcleanup.c (try_simplify_condjump): Remove redundacy from
26638         condition.
26639         (try_forward_edges): Likewise.
26640         (merge_blocks_move_predecessor_nojumps): Likewise.
26641         (merge_blocks_move_successor_nojumps): Likewise.
26642         (merge_blocks_move): Likewise.
26643         (try_crossjump_bb): Likewise.
26644         * cfglayout.c (update_unlikely_executed_notes): Remove function.
26645         (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
26646         notes to cold bb's; remove call to update_unlikely_executed_notes.
26647         (duplicate_insn_chain):  change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
26648         NOTE_INSN_SWITCH_TEXT_SECTIONS.
26649         * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
26650         function declaration.
26651         * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
26652         from consideration.
26653         (rtl_can_merge_blocks): Remove redundancy from condition.
26654         (try_redirect_by_replacing_jump): Likewise.
26655         (force_nonfallthru_and_redirect): Remove code for adding
26656         UNLIKELY_EXECUTED_CODE notes to cold bb's.
26657         (commit_one_edge_insertion): Likewise.
26658         (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
26659         * dbxout.c (FORCE_TEXT): Replace function_section with
26660         current_function_section.
26661         (struct dbx_debug_h): Add do_nothing function for new debug_hooks
26662         function, switch_text_section.
26663         (struct xcoff_debug): Likewise.
26664         (dbxout_function_end): Add code to put out label diffs for both
26665         hot and cold sections.
26666         * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
26667         for new debug_hooks funciton, switch_text_section..
26668         * debug.h (struct gcc_debug_hooks):  Add new function to debug_hooks,
26669         switch_text_section.
26670         * dwarf2out.c (struct dw_fde_struct):  Add five new fields:
26671         dw_fde_hot_section_label, dw_fde_hot_section_end_label,
26672         dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and
26673         dw_fde_switched_sections.
26674         (output_call_frame_info):  Add test to see if function switches text
26675         sections in the middle; if so, use appropriate extra hot and cold
26676         section labels to compute size deltas for the hot and cold sections.
26677         (dwarf2out_begin_prologue): Add code to initialize new fields in
26678         dw_fde_struct.
26679         (dwarf2out_switch_text_section): New function (invoked through
26680         debug_hook); updates new fields in dw_fde_struct appropriately and
26681         increments separate_line_info_table_in_use.
26682         (dwarf2_debug_hooks): Initialize switch_text_section function to be
26683         dwarf2out_switch_text_section.
26684         (struct var_loc_node): Add new field, section_label.
26685         (output_aranges): Add code to check whether in hot or cold section and
26686         use the appropriate label in calculating deltas.
26687         (output_ranges): Likewise.
26688         (output_line_info): Add code to check which section we're in and
26689         use appropriate hot/cold label.
26690         (add_location_or_constant_value_attribute): Likewise.
26691         (gen_subprogam_die): Modify arange attributes to use correct labels.
26692         (dwarf2out_begin_block): Change call to function_section into call to
26693         current_function_section.
26694         (dwarf2out_end_block): Likewise.
26695         (dwarf2out_source_line): Likewise.
26696         (dwarf2out_var_location): Add code to check whether in hot or cold
26697         section and use the appropriate label.
26698         * except.c (output_function_exception_table): Change call to
26699         function_section into call to current_function_section.
26700         * final.c (profile_function): Likewise.
26701         (scan_ahead_for_unlikely_executed_note): Remove function.
26702         (final_scan_insn):  Remove calls to
26703         scan_ahead_for_unlikely_executed_note, and related code for switching
26704         to cold section, except for the single time
26705         NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered;  add calls to
26706         debug_hooks->switch_text_sections; replace appropriate calls to
26707         function_section with calls to current_function_section.
26708         * ifcvt.c (find_if_case_1): Remove redundancy from condition, add
26709         test_bb to condition.
26710         (find_if_case_2): Likewise.
26711         * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
26712         NOTE_INSN_SWITCH_TEXT_SECTIONS.  Update comment appropriately.
26713         * opts.c (decode_options): Change warning about hot/cold partitioning
26714         with exceptionss to inform (so as not to cause bootstrap failures);
26715         remove warning about partitioning with DWARF debug info.
26716         * output.h (current_function_section): Add new function decl.
26717         (insert_section_boundary_note): Likewise.
26718         (enum in_section): Move this declaration here from varasm.c.
26719         (unlikely_section_label): Likewise.
26720         (unlikely_text_section_name): Likewise.
26721         (last_text_section_name): New global variable.
26722         (last_text_section): Likewise.
26723         (hot_section_label): Likewise.
26724         (hot_section_end_label): Likewise.
26725         (cold_section_end_label): Likewise.
26726         * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
26727         * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
26728         to NOTE_INSN_SWITCH_TEXT_SECTIONS.
26729         * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note
26730         insn from consideration.
26731         * sdbout.c (sdb_debug_hooks): Add do_nothing for new function,
26732         switch_text_section.
26733         * varasm.c (basic-block.h): Add new include.
26734         (unlikely_section_label_printed): Remove global variable.
26735         (unlikely_section_label): Make global variable not be static any more.
26736         (unlikely_text_section_name): Likewise.
26737         (hot_section_end_label): New global variable (not static)
26738         (first_function_block_is_cold): Likewise.
26739         (hot_section_label): Likewise.
26740         (cold_section_end_label): Likewise..
26741         (last_text_section): New global variable, not static.
26742         (last_text_section_name): New global variable, not static.
26743         (initialize_cold_section_name): New function.
26744         (enum in_section): Move declaration to output.h.
26745         (text_section): Update last_text_section.
26746         (unlikely_text_section): Replace code to determine cold section name
26747         with call to initialize_cold_section_name; Add code to update
26748         last_text_section; remove code for printing out label.
26749         (named_section_real): Add code to update last_text_section and
26750         last_text_section_name as appropriate.
26751         (function_section): Change test for 'unlikely' to depend on
26752         first_function_block_is_cold (moved old test to
26753         current_function_section).
26754         (current_function_section): New function.
26755         (assemble_start_function): Move code that frees
26756         unlikely_text_section_name; initialize hot_section_end_label;
26757         print hot and cold section labels at the start of the function;
26758         set first_function_block_is_cold, if appropriate; initialize l
26759         ast_text_section; add call to insert_section_boundary_note.
26760         (assemble_end_function):  Add code to write out hot and cold section
26761         end labels.
26762         *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
26763         switch_text_section.
26764         * config/darwin.c (machopic_select_section): Replace incorrect
26765         function in base_funs; update reloc for cold sections if necessary.
26766         * config/darwin.h (SECTION_FUNCTION):  Add code to update
26767         last_text_section if appropriate.
26768         (text_unlikely_section): Remove.
26769         * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
26770         * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
26771         * config/xtensa/xtensa.c (override_options): Turn off hot/cold
26772         partitioning for this architecture.
26773
26774 2005-03-31  Olivier Hainque  <hainque@adacore.com>
26775
26776         * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
26777         defined and non-zero.
26778
26779 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
26780
26781         PR c++/18644
26782         * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
26783         semantics.
26784
26785 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
26786
26787         PR target/20611
26788         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
26789         label operand.  Remove (use (unspec..)).  Don't emit a label on
26790         the offset word.
26791         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
26792         generate inline label for load_toc_v4_PIC_1b.
26793         (rs6000_emit_load_toc_table): Likewise.
26794
26795 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
26796
26797         * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
26798         ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
26799
26800 2005-03-29  Devang Patel  <dpatel@apple.com>
26801
26802         * tree-sra.c (decide_block_copy): Disable scalarization of
26803         sub-elements.
26804
26805 2005-03-30  Stuart Hastings  <stuart@apple.com>
26806             Dale Johannesen  <dalej@apple.com>
26807
26808         * Makefile.in (print-tree.o):  Depend on tree-iterator.h.
26809         * print-tree.c (print_node):  Add case STATEMENT_LIST.
26810
26811 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
26812
26813         * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
26814         (powerpc64-*-linux*): Use it.  Rearrange tm_file assignment.
26815         (powerpc-*-linux*): Build a biarch compiler when --enable-targets
26816         is given with "powerpc64*" or "all", or when --with-cpu chooses
26817         a 64-bit cpu.
26818
26819 2005-03-30  James E. Wilson  <wilson@specifixinc.com>
26820
26821         PR debug/20268
26822         * dwarf2out.c (add_high_low_attributes): New function, extracted from
26823         gen_lexical_block_die.
26824         (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
26825
26826 2005-03-31  Jan Hubicka  <jh@suse.cz>
26827
26828         2004-11-02  Jan Hubicka  <jh@suse.cz>
26829
26830         * cgraph.c (cgraph_varpool_node_name): New function.
26831         (dump_cgraph_varpool_node): New function.
26832         (dump_varpool): New function.
26833         * cgraphunit.c (cgraph_optimize): Dump varpool.
26834
26835         2004-10-16  Jan Hubicka  <jh@suse.cz>
26836
26837         * cgraph.c (decide_is_variable_needed): New function.
26838         (cgraph_varpool_finalize_decl): Use it.
26839         * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
26840         unit-at-a-time.
26841         * final.c (output_addr_const): Do not call mark_referenced.
26842         * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
26843         always go via cgraph.
26844         * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
26845         (check_global_declarations): Ifdef out code clearing DECL_RTL.
26846         * tree-optimize.c (execute_inline): Mark functions called.
26847         * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
26848
26849         2004-10-11  Jan Hubicka  <jh@suse.cz>
26850
26851         * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
26852         (cgraph_varpool_last_needed_node): New static variable.
26853         (enqueue_needed_varpool_node): Break out from ...; add items to the
26854         end of queue; update first pointers.
26855         (cgraph_varpool_mark_needed_node): ... here.
26856         (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
26857         (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
26858         * cgraph.h (cgraph_varpool_node): Add analyzed field.
26859         (cgraph_varpool_first_unanalyzed_node): Declare.
26860         * cgraphunit.c: Include output.h.
26861         (cgraph_varpool_analyze_pending_decls): New function.
26862         (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
26863         for errors, analyze pending decls.
26864         (cgraph_finalize_compilation_unit): Only analyze decls.
26865         (cgraph_optimize): Assemble the decls after expanding.
26866
26867 2005-03-30  Daniel Berlin  <dberlin@dberlin.org>
26868
26869         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
26870         subvars get marked properly in tags for grouping.
26871         (add_pointed_to_var): Mark only actual pointed to
26872         variables/subvars in addresses needed.
26873         (create_overlap_variables_for): Clear call clobbered on original
26874         variable.
26875         * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
26876         addresable vars with subvars into list.
26877         * tree-ssa.c (verify_ssa_name): Verify original is not used where
26878         subvar should be.
26879
26880 2005-03-30  Richard Henderson  <rth@redhat.com>
26881
26882         * cgraph.h (struct cgraph_node): Add alias.
26883         * varasm.c (assemble_alias): Set it.
26884         * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
26885         avoid calling cgraph_expand_function.
26886
26887 2005-03-30  Tom Tromey  <tromey@redhat.com>
26888
26889         * tree.def (FILE_TYPE): Removed.
26890         * typeclass.h (enum type_class): Removed file_type_class.
26891         * dwarf2out.c (is_base_type): Updated.
26892         (gen_type_die): Likewise.
26893         * dbxout.c (dbxout_type): Updated.
26894         * builtins.c (type_to_class): Updated.
26895         * tree.c (type_contains_placeholder_1): Updated.
26896         * config/sparc/sparc.c (sparc_type_code): Updated.
26897         * config/ia64/ia64.c (hfa_element_mode): Updated.
26898         * expr.c (count_type_elements): Updated.
26899         * stor-layout.c (layout_type): Updated.
26900         * tree-inline.c (remap_type): Updated.
26901         * tree-pretty-print.c (dump_generic_node): Updated.
26902
26903 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
26904
26905         * builtins.c (expand_builtin_powi): Fix mode of
26906         2nd argument to match int.
26907         * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
26908         2nd argument type to int.
26909         * libgcc2.c: Change prototype of __powi* functions to use
26910         int.
26911
26912 2005-03-30  Dale Johannesen  <dalej@apple.com>
26913
26914         PR middle-end/19225
26915         * calls.c (expand_call):  Flush pending deferrals before
26916         throwing call.
26917
26918 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
26919
26920         PR c/772
26921         PR c/17913
26922         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
26923         C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
26924         c_label_context, label_context_stack): New.
26925         * c-decl.c (define_label): Check for jumps into statement
26926         expressions.  Add label to list of defined labels.
26927         (start_function): Push context on label_context_stack.
26928         (finish_function): Pop context from label_context_stack.
26929         * c-typeck.c (label_context_stack): New.
26930         (c_finish_goto_label): Check for jumps into statement
26931         expressions.  Add label to list of jumped to labels.
26932         (struct c_switch): Add blocked_stmt_expr.
26933         (c_start_case): Initialize it.
26934         (do_case): Check it.
26935         (c_finish_case): Verify !blocked_stmt_expr.
26936         (c_begin_stmt_expr):  Push context on label_context_stack.
26937         Increment blocked_stmt_expr.  Mark labels jumped to from outside
26938         as undefinable.
26939         (c_finish_stmt_expr): December blocked_stmt_expr.  Mark labels
26940         defined in the statement expression and no longer jumpable to.
26941         Mark labels jumped to from just outside the statement expression
26942         as again definable.  Pop context from label_context_stack.
26943         * doc/extend.texi (Statement Exprs): Update.
26944
26945 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
26946
26947         PR c/20368
26948         * c-decl.c (start_function): Check for old_decl being
26949         error_mark_node.
26950
26951 2005-03-30  Ian Lance Taylor  <ian@airs.com>
26952
26953         * final.c (final): Remove prescan parameter.  Change all callers.
26954         (final_scan_insn): Remove prescan parameter.  Change all callers.
26955
26956 2005-03-30  Kazu Hirata  <kazu@cs.umass.edu>
26957
26958         * tree-vectorizer.c: Fix comment typos.
26959
26960 2005-03-30  Sebastian Pop  <pop@cri.ensmp.fr>
26961
26962         * tree-scalar-evolution.c (instantiate_parameters_1): Return
26963         as soon as a chrec_dont_know is detected.
26964
26965 2005-03-31  Danny Smith  <dannysmith@users.sourceforge.net>
26966
26967         Merge from csl-arm-branch.
26968         2004-02-12  Mark Mitchell  <mark@codesourcery.com>
26969
26970         * tlink.c (recompile_files): Do not assume that "rename" can
26971         overwrite an existing file.
26972
26973 2005-03-31  Paolo Bonzini  <bonzini@gnu.org>
26974
26975         * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
26976         * gcc/configure: Regenerate.
26977
26978 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
26979
26980         * doc/install.texi: Update binutils requirement for powerpc*-linux.
26981
26982         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
26983
26984         * calls.c (struct arg_data): Update "partial" comment.
26985         (load_register_parameters): Update "nregs" comment.
26986
26987 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
26988
26989         * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
26990         (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
26991         (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
26992         (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
26993         (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
26994         (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
26995         than target_flags & 0.
26996         * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
26997         (iq2000_arch, iq2000_parse_cpu): Delete.
26998         (TARGET_HANDLE_OPTION): Override default.
26999         (iq2000_handle_option): New function.
27000         (override_options): Remove -march= and -mcpu= handling.
27001         * config/iq2000/iq2000.opt: New file.
27002
27003 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
27004
27005         * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
27006         * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
27007         (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
27008         (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
27009         (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
27010         (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
27011         (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
27012         (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
27013         (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
27014         (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
27015         (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
27016         (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
27017         (c4x_rpts_cycles_string, c4x_cpu_version_string)
27018         (TARGET_OPTIONS): Delete.
27019         (c4x_rpts_cycles, c4x_cpu_version): Declare.
27020         (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
27021         (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
27022         * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
27023         (c4x_cpu_version_string): Delete.
27024         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
27025         (c4x_handle_option): New function.  Map -m3x and -m4x options to the
27026         equivalent -mcpu= option.
27027         (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
27028         Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
27029         TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
27030         or clearing the appropriate MASK_* bit.
27031         (c4x_file_start): Use c4x_cpu_version.
27032         * config/c4x/c4x.opt: New file.
27033
27034 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
27035
27036         * doc/options.texi: Document the new MaskExists flag.
27037         * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
27038         if the option has the MaskExists flag.
27039
27040 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
27041
27042         * opt-functions.awk (flag_set_p, test_flag): New functions.
27043         (switch_flags): Use them.
27044         * opth-gen.awk: Use flag_set_p to check for flags.
27045         * optc-gen.awk: Likewise.  Use opt_args to check for Init(...) flags.
27046
27047 2005-03-30  Ian Lance Taylor  <ian@airs.com>
27048
27049         * config.host (i[34567]86-*-mingw32*): Don't set
27050         host_can_use_collect2 to no.
27051
27052 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
27053
27054         PR target/20203
27055         * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
27056         Remove convert_memory_address call duplicating that in memory_address.
27057
27058 2005-03-29  Richard Henderson  <rth@redhat.com>
27059
27060         PR c/20519
27061         * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
27062         (build_compound_literal): Likewise.  Propagate decl type into the
27063         initializer.
27064         (finish_decl): Likewise.  Use new return value from complete_array_type
27065         for zero sized arrays.
27066         (complete_array_type): Move ...
27067         * c-common.c (complete_array_type): ... here.  Change first argument
27068         to pointer-to-type-node.  Consistently use sizetype for the index
27069         except for zero sized arrays.  Detect zero sized arrays for pedantic
27070         mode diagnostics.  Create a new type node instead of modifying the
27071         old node in place.
27072         * c-tree.h (complete_array_type): Move decl ...
27073         * c-common.h (complete_array_type): ... here.
27074
27075 2005-03-29  Richard Henderson  <rth@redhat.com>
27076
27077         PR tree-opt/19108
27078         * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
27079
27080 2005-03-29  Kazu Hirata  <kazu@cs.umass.edu>
27081
27082         * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
27083         debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
27084         rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
27085         tree-profile.c, tsystem.h, value-prof.h: Update copyright.
27086
27087 2005-03-29  Eric Christopher  <echristo@redhat.com>
27088
27089         * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
27090         truthvalue conversion removal.
27091
27092 2005-03-29  Ian Lance Taylor  <ian@airs.com>
27093
27094         PR bootstrap/14316
27095         * collect2.c: Never include <vfork.h>.
27096         (VFORK_STRING, vfork): Don't define.
27097         (pid): Remove global variable.
27098         (handler): Call raise instead of kill (getpid(), ...).
27099         (collect_wait): Add pex parameter.  Change all callers.  Use
27100         pex_get_status rather than pwait.
27101         (do_wait): Add pex parameter.  Change all callers.
27102         (collect_execute): Return struct pex_obj * rather than void.  Use
27103         pex routines rather than pexecute.
27104         (fork_execute): Get pex_obj from collect_execute, and pass it to
27105         do_wait.
27106         (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
27107         Only declare quit_handler if SIGQUIT is defined.
27108         (scan_libraries): Likewise.
27109         * collect2.h (collect_execute): Update declaration.
27110         (collect_wait): Update declaration.
27111         * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
27112         pass it to collect_wait.
27113
27114 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
27115
27116         PR c/20672
27117         * c-parser.c (c_parser_compound_statement_nostart): Give error
27118         message for EOF instead of just setting parser->error.
27119
27120 2005-03-29  Dorit Naishlos  <dorit@il.ibm.com>
27121
27122         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
27123         (slpeel_update_phi_nodes_for_guard1): New function.
27124         (slpeel_update_phi_nodes_for_guard2): New function.
27125         (slpeel_tree_peel_loop_to_edge): Call above new functions instead
27126         of slpeel_update_phi_nodes_for_guard.
27127         (vectorize_loops): Remove call to loop_closed_rewrite.
27128         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
27129         assertion.
27130
27131 2005-03-29  Richard Sandiford  <rsandifo@redhat.com>
27132
27133         * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
27134         (TARGET_LITTLE_ENDIAN): New macro.
27135         * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
27136         (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
27137         (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
27138         (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
27139         (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
27140         (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
27141         (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
27142         (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
27143         (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
27144         (TARGET_OPTIONS): Delete.
27145         (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
27146         (CACHE_FLUSH_TRAP): Turn into an integer.
27147         (TARGET_LITTLE_ENDIAN): Define to 0 by default.
27148         (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
27149         -mflush-trap is in use.
27150         * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
27151         (m32r_cache_flush_trap_string): Delete.
27152         (m32r_model) Initialize to M32R_MODEL_DEFAULT.
27153         (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
27154         (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
27155         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
27156         (m32r_handle_option): New function.  Move -mflush-trap=, -mflush-func=,
27157         -mmodel= and -msdata= handling from...
27158         (m32r_init): ...here.
27159         * config/m32r/m32r.opt: New file.
27160
27161 2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
27162
27163         * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
27164         (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
27165         * tree-vect-analyze.c (vect_object_analysis): additional parm
27166         pass back a "struct ptr_info_def *" with the points-to info.
27167         (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
27168         statement using info returned from vect_object_analysis.
27169         * tree-vect-transform.c (update_vuses_to_preheader): New function.
27170         (vect_create_data_ref_ptr): Remove updates to vars_to_rename
27171         for virtual uses and defs when creating a replacement vector
27172         reference.  Call duplicate_ssa_name_ptr_info to define points-to
27173         info for vector pointer replacement using STMT_VINFO_PTR_INFO.
27174         (vectorizable_store): copy_virtual_operands and update
27175         definition statements.
27176         (vectorizable_load): copy_virtual_operands.  Remove call to
27177         mark_call_clobbered_vars_to_rename for call to "const" builtin.
27178         * tree-vectorizer.c (vectorize_loops): Remove calls to
27179         rewrite_into_ssa and bitmap_clear (vars_to_rename).
27180         (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
27181         * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
27182         define macro STMT_VINFO_PTR_INFO for use in accessing.
27183         * tree.h add export of duplicate_ssa_name_ptr_info.
27184         * rs6000.c (altivec_init_builtins): Declare builtin function
27185         __builtin_altivec_mask_for_load to be "const".
27186
27187 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
27188
27189         PR middle-end/20622
27190         * cgraph.h (struct cgraph_varpool_node): Add alias field.
27191         * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
27192         assemble_variable on aliases.
27193         * varasm.c (assemble_alias): Set node->alias.
27194         * toplev.c (wrapup_global_declarations): Don't call
27195         rest_of_decl_compilation on aliases again.
27196
27197 2005-03-29  Paul Brook  <paul@codesourcery.com>
27198
27199         * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
27200         * config/arm/arm.c (arm_dbx_register_number): New function.
27201         * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
27202
27203 2005-03-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
27204
27205         PR middle-end/20263
27206         * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
27207         the DECL_NAME, not the DECL_ASSEMBLER_NAME.
27208
27209 2005-03-29  Dale Johannesen <dalej@apple.com>
27210
27211         * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
27212         $(TREE_H) and $(COVERAGE_H).
27213         * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
27214         * opts.c (common_handle_option): Enable tree-based value transforms.
27215         * toplev.c (process_options): Ditto.
27216         * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
27217         refers to references to this type.
27218         * tree-flow.h: (struct stmt_ann_d): Add histograms field.
27219         * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
27220         for may_be_more, may_be_less.
27221         (rtl_gen_pow2_profiler): Adjust.
27222         (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
27223         (rtl_gen_one_value_profiler): Adjust.
27224         (rtl_gen_const_delta_profiler): Adjust.
27225         * tree-profile.c (tree_gen_interval_profiler): Implement.
27226         (tree_gen_pow2_profiler): Ditto.
27227         (tree_gen_one_value_profiler): Ditto.
27228         (tree_profiling): New.
27229         (pass_tree_profile): Reference it.
27230         * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
27231         tree.h, gcov-io.h.
27232         (insn_divmod_values_to_profile): Rename to
27233         rtl_divmod_values_to_profile. Adjust.
27234         (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
27235         (insn_prefetch_values_to_profile): Adjust.
27236         (rtl_value_profile_transformations): Adjust.
27237         (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
27238         (gen_mod_pow2): Rename to rtl_mod_pow2.
27239         (gen_mod_subtract): Rename to rtl_mod_subtract.
27240         (divmod_fixed_value_transform): Rename to
27241         rtl_divmod_fixed_value_transform.
27242         (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
27243         (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
27244         (rtl_find_values_to_profile): Adjust.
27245         (tree_value_profile_transformations): Implement.
27246         (tree_divmod_values_to_profile): New.
27247         (tree_values_to_profile): New.
27248         (tree_divmod_fixed_value): New.
27249         (tree_mod_pow2): New.
27250         (tree_mod_subtract): New.
27251         (tree_divmod_fixed_value_transform): New.
27252         (tree_mod_pow2_value_transform): New.
27253         (tree_mod_subtract_transform): New.
27254         (tree_find_values_to_profile): Implement.
27255         * profile.c (instrument_values):  Free histograms.
27256         (compute_value_histograms): Adjust. Implement tree version.
27257
27258 2005-03-29  Uros Bizjak  <uros@kss-loka.si>
27259
27260         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
27261         * config/i386/i386.c (output_fix_trunc): Add new round_mode
27262         variable.  Output "fldcw" depending on round_mode.
27263         * config/i386/i386.md (UNSPEC_FIST): New.
27264         (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
27265         New isns patterns to implement lrint and llrint built-ins as x87
27266         intrinsic function.
27267         (fistdi2, fist<mode>2 splitters): New splitters.
27268         (lrint<mode>2): New expanders.
27269
27270 2005-03-28  Ian Lance Taylor  <ian@airs.com>
27271
27272         * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
27273         0 when calling final_scan_insn.
27274
27275 2005-03-28  Jan Hubicka  <jh@suse.cz>
27276
27277         PR middle-end/20635
27278         * varasm.c (mark_decl_referenced): Do not mark extern inline functions
27279         as needed.
27280
27281         * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
27282         types where possible.
27283
27284 2005-03-26  Per Bothner  <per@bothner.com>
27285
27286         Make -f[no-]show-column also control non-cpp diagnostics.
27287         * c.opt (fshow-column): Move option from here ...
27288         * common.opt (fshow-column): ... to here.
27289         * diagnostic.c (diagnostic_build_prefix): Only print column number
27290         if flag_show_column.
27291
27292 2005-03-27  Steven Bosscher  <stevenb@suse.de>
27293
27294         * vax-protos.h (vax_output_int_move, vax_output_int_add,
27295         vax_output_conditional_branch): New prototypes.
27296         * vax.c (vax_output_int_move, vax_output_int_add): New functions,
27297         extracted from vax.md mov and add patterns.
27298         (vax_output_conditional_branch): New function to output conditional
27299         branch instructions.
27300         * vax.md: Use mode macros for arithmetic and mov patterns.
27301         Use code macros for the jump patterns.
27302
27303 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
27304
27305         * Makefile.in (libbackend.o): Depend on version files;
27306         add custom generation command.
27307
27308 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
27309
27310         PR target/20636
27311         * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
27312         sure that we have a REG before getting its REGNO.
27313
27314 2005-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27315
27316         * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
27317         * builtins.def (BUILT_IN_STRNDUP): New.
27318
27319 2005-03-25  Pat Haugen  <pthaugen@us.ibm.com>
27320
27321         PR tree-optimization/20470
27322         * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
27323         ABS(x-y).
27324
27325 2005-03-25  Mike Stump  <mrs@apple.com>
27326
27327         * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
27328         sized objects.
27329
27330 2005-03-25  Geoffrey Keating  <geoffk@apple.com>
27331
27332         * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
27333         Use our own structure definitions.
27334
27335         * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
27336         (fix_truncdfsi2): Allow registers or memory as destination.
27337         When TARGET_PPC_GFXOPT, generate simplified pattern.
27338         (fix_truncdfsi2_internal): Use define_insn_and_split.
27339         (fix_truncdfsi2_internal_gfxopt): New.
27340         (fctiwz): Don't confuse register allocation by giving it no choices.
27341         (stfiwx): New.
27342         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
27343         (EXTRA_MEMORY_CONSTRAINT): Likewise.
27344         * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
27345         * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
27346
27347 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
27348
27349         * dominance.c (free_dominance_info): Speed up by freeing et
27350         data structures without maintaining other nodes.
27351         * et-forest.c (et_free_tree_force): New.
27352         * et-forest.h: Add a prototype for et_free_tree_force.
27353
27354         * tree.c (get_set_constructor_bits,
27355         get_set_constructor_bytes): Remove.
27356         * tree.h: Remove the corresponding prototypes.
27357
27358 2005-03-25  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
27359
27360         PR target/15491
27361         * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
27362         (vax_rtx_costs): Return false when passed unsupported rtx's.  Handle
27363         FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE.  Fix costs for POST_INC,
27364         PRE_DEC, NEG and NOT.
27365
27366 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
27367
27368         * fold-const.c: Convert uses of fold (build (...)) to
27369         fold_buildN.
27370
27371 2005-03-25  Zdenek Dvorak  <dvorakz@suse.cz>
27372
27373         PR rtl-optimization/20249
27374         * cse.c (insert_regs): Do not record equivalence of registers in
27375         different modes.
27376
27377 2005-03-24  Kazu Hirata  <kazu@cs.umass.edu>
27378
27379         * emit-rtl.c (reverse_comparison): Remove.
27380         * rtl.h: Remove the corresponding prototype.
27381
27382 2005-03-24  James E Wilson  <wilson@specifixinc.com>
27383
27384         * doc/install.texi (--enable-altivec): Delete docs.
27385
27386 2005-03-24  David Edelsohn  <edelsohn@gnu.org>
27387
27388         * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
27389         SFmode and DFmode before reload when
27390         flag_unsafe_math_optimizations not enabled.
27391
27392 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
27393
27394         * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
27395
27396         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
27397         MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
27398
27399 2005-03-24  Nathan Sidwell  <nathan@codesourcery.com>
27400
27401         * configure.ac (enable-checking): Add 'runtime' option.
27402         * doc/install.texi (enable-checking): Document 'runtime' checking.
27403         * tsystem.h (gcc_assert, gcc_unreachable): Define.
27404         * config.in: Regenerated.
27405         * configure: Regenerated.
27406
27407 2005-03-23  Uros Bizjak  <uros@kss-loka.si>
27408
27409         * optabs.h (enum optab_index): Remove OTI_llrint.
27410         (llrint_optab): Remove macro.
27411         * optabs.c (init_optabs): Remove llrint_optab initialization.
27412         * genopinit.c (optabs): Remove llrint_optab implementation.
27413         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
27414         using lrint_optab.
27415
27416 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
27417
27418         PR rtl-optimization/20532
27419         * simplify-rtx.c (simplify_binary_operation_1): Protect from
27420         overflow when adding coefficients for PLUS or MINUS.
27421         (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
27422         two as multiplier.
27423
27424 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
27425
27426         * langhooks.h (truthvalue_conversion): Remove.
27427         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
27428         LANG_HOOKS_TRUTHVALUE_CONVERSION.
27429         * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
27430         * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
27431         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
27432
27433 2005-03-23  Kazu Hirata  <kazu@cs.umass.edu>
27434
27435         * params.def: Fix a typo.
27436         * config/mips/mips.c: Follow the spelling convensions.
27437         * doc/invoke.texi: Fix typos.
27438
27439 2005-03-23  Daniel Berlin  <dberlin@dberlin.org>
27440
27441         Fix PR tree-optimization/20601
27442
27443         * tree-ssa-pre.c (insert_aux): Add missing condition to
27444         constification.
27445
27446 2005-03-23  Ian Lance Taylor  <ian@airs.com>
27447
27448         * final.c (final_scan_insn): Don't remove no-op instructions.
27449         * reload1.c (reload): Remove simple no-op instructions even when
27450         not optimizing.
27451
27452 2005-03-23  Dorit Naishlos  <dorit@il.ib.com>
27453
27454         PR tree-optimization/20501
27455         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
27456         reporting that peeling for alignment is applied moved to...
27457         * (vect_analyze_data_refs_alignment): Here.
27458
27459 2005-03-23  Ian Lance Taylor  <ian@airs.com>
27460
27461         * reorg.c (dbr_schedule): Remove #if 0 code to call final.
27462
27463 2005-03-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
27464
27465         * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
27466         Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
27467
27468 2005-03-23  Hans-Peter Nilsson  <hp@axis.com>
27469
27470         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
27471         imply that this is called once, independent of asms in code.
27472         Adjust to now being pased output and input lists.  Mention helper
27473         function decl_overlaps_hard_reg_set_p.
27474         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
27475         hook_tree_tree_identity and to take three trees, returning third.
27476         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
27477         prototype.
27478         * stmt.c: include hard-reg-set.h before tree.h.
27479         (decl_overlaps_hard_reg_set_p): New function, broken out from...
27480         (decl_conflicts_with_clobbers_p): Call
27481         decl_overlaps_hard_reg_set_p.
27482         (expand_asm_operands): Pass output and input lists in call to
27483         targetm.md_asm_clobbers.
27484         * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
27485         hook_tree_tree_tree_tree_3rd_identity.
27486         * target.h (struct gcc_target.md_asm_clobbers): Take three tree
27487         parameters.
27488         * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
27489         * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
27490         parameters, first two unused.
27491         * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
27492         parameters.  Only add MOF to clobbers if there's no 'h' mentioned
27493         in constraint letters and MOF is not mentioned as a asm-declared
27494         register in neither of the input and output lists.
27495
27496 2005-03-23  DJ Delorie  <dj@redhat.com>
27497
27498         * optabs.c (expand_binop): Make sure the first subword's result
27499         gets stored.
27500
27501 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
27502
27503         * c-common.c (c_common_truthvalue_conversion): Adjust comment.
27504         Call c_common_truthvalue_conversion rather than
27505         lang_hooks.truthvalue_conversion.
27506         * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
27507         * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
27508         c-typeck.c.
27509         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
27510         c_common_truthvalue_conversion.
27511         * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
27512         c_parser_conditional_expression, c_parser_binary_expression): Call
27513         c_objc_common_truthvalue_conversion.
27514         * c-typeck.c (build_unary_op): Call
27515         c_objc_common_truthvalue_conversion.
27516         (build_conditional_expr): Do not call
27517         lang_hooks.truthvalue_conversion.
27518         (build_binary_op): Call c_common_truthvalue_conversion.
27519         (c_objc_common_truthvalue_conversion): Moved from
27520         c-objc-common.c.  Call default_function_array_conversion instead
27521         of default_conversion.
27522
27523 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
27524
27525         * c-common.h (default_conversion): Remove.
27526         (perform_integral_promotions): Add.
27527         * c-tree.h (default_conversion): Add.
27528         * c-typeck.c (perform_integral_promotions): New, split out from
27529         default_conversion.
27530         * c-common.c (check_case_value): Use perform_integral_promotions,
27531         not default_conversion.
27532         (c_add_case_label): Don't continue processing case label after
27533         found to be pointer.
27534
27535 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
27536
27537         * gcc.c (do_spec_1): Do not add a -L path for a directory in
27538         the prefix list if we have already added a multilib directory
27539         based on that path.
27540         (main): Do not add MD_EXEC_PREFIX to the list of directories to
27541         search with -L.
27542
27543 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
27544
27545         * reload1.c (indirect_symref_ok, reload_obstack): Make them
27546         static.
27547         * reload.h: Remove the prototype for indirect_symref_ok.
27548
27549         * reload1.c (indirect_symref_ok): Make it global.
27550         * reload.h: Add a prototype for indirect_symref_ok.
27551
27552 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
27553
27554         * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
27555         ashlhi3 expander.
27556
27557 2005-03-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
27558
27559         * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
27560
27561 2005-03-22  Daniel Berlin  <dberlin@dberlin.org>
27562
27563         * c-opts.c (c_common_parse_file): Only start/end main source file
27564         if debug hooks says the writer wants it.
27565         * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
27566         member.
27567         (xcoff_debug_hooks): Ditto.
27568         * debug.c (do_nothing_hooks): Ditto.
27569         * debug.h (gcc_debug_hooks): Ditto.
27570         * dwarf2out.c (dwarf2_debug_hooks): Ditto.
27571         * sdbout.c (sdb_debug_hooks): Ditto.
27572         * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
27573
27574 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
27575
27576         * doc/extend.texi: Deprecate C++ min/max operators.
27577
27578 2005-03-22  Zdenek Dvorak  <dvorakz@suse.cz>
27579
27580         * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
27581         artificial original candidates.
27582
27583 2005-03-22  Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
27584             Jan Hubicka  <jh@suse.cz>
27585             Steven Bosscher <stevenb@suse.de>
27586
27587         * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
27588         call cost based on argument sizes.
27589         (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
27590         inlining.
27591         * params.def: (max-inline-inssn-single): Set to 450.
27592         (max-inline-insns-auto): Set to 90.
27593         (max-inline-insns-recursive): Set to 450
27594         (max-inline-insns-recursive-auto): Set to 450.
27595         (large-function-insns): Set to 2700.
27596         (inline-call-cost): New parameter.
27597         * tree-inline.c (estimate_move_cost): New function.
27598         (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
27599         for non-gimple-regs, set cost to 0 for gimple-regs.  Compute call size
27600         based on arguments.
27601         * tree-inline.h (estimate_move_cost): Declare.
27602         * invoke.texi: (max-inline-inssn-single): Change default to 450.
27603         (max-inline-insns-auto): Change default to 90.
27604         (max-inline-insns-recursive): Change default to 450
27605         (max-inline-insns-recursive-auto): Change default to 450.
27606         (large-function-insns): Change default to 2700.
27607         (inline-call-cost): Document new parameter.
27608
27609 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
27610
27611         * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
27612         (TARGET_DEFAULT): Delete.
27613         * config/i860/i860.opt: New file.
27614
27615 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
27616
27617         * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
27618         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
27619         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
27620         (frv_sched_lookahead): Delete.
27621         * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
27622         (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
27623         (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
27624         (MASK_LIBPIC, MASK_ACC_4,  MASK_PACK, MASK_LONG_CALLS)
27625         (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
27626         (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
27627         (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
27628         (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
27629         (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
27630         (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
27631         (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
27632         (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
27633         (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
27634         (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
27635         (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
27636         (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
27637         (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
27638         (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
27639         (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
27640         (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
27641         (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
27642         (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
27643         * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
27644         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
27645         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
27646         (frv_sched_lookahead): Delete.
27647         (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
27648         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
27649         (frv_handle_option): New function.  Move -mcpu= handling from...
27650         (frv_override_options): ...here.  Remove handling of other
27651         TARGET_OPTIONS.
27652         (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
27653         TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
27654         (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
27655         and TARGET_NO_MULTI_CE.
27656         (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
27657         !TARGET_VLIW_BRANCH.
27658         * config/frv/frv.opt: New file.
27659
27660 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
27661
27662         * fold-const.c (fold_ternary): Take decomposed arguments of
27663         CALL_EXPR.
27664         (fold): Update a call to fold_ternary.
27665
27666         * fold-const.c (fold_build1, fold_build2, fold_build3): New.
27667         * tree.h: Add corresponding prototypes.
27668
27669 2005-03-22  Jakub Jelinek  <jakub@redhat.com>
27670
27671         PR target/20561
27672         * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
27673         between jump table and its label.
27674         * final.c (shorten_branches): Handle notes in between ADDR_VEC
27675         resp. ADDR_DIFF_VEC and the label preceeding it.
27676         (final_scan_insn): Likewise.  Ensure ADDR_VEC resp. ADDR_DIFF_VEC
27677         is emitted in the right section.
27678
27679 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
27680
27681         * fold-const.c (fold_unary, fold_binary): Update comments
27682         about arguments.
27683
27684 2005-03-22  Hans-Peter Nilsson  <hp@axis.com>
27685
27686         PR rtl-optimization/20527
27687         * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
27688         REG_INC note, test that the register also isn't mentioned in PRED
27689         or SUCC.
27690
27691 2005-03-22  Ben Elliston  <bje@au.ibm.com>
27692
27693         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
27694         and definition.
27695
27696 2005-03-21  Mike Stump  <mrs@apple.com>
27697
27698         * varasm.c (default_assemble_visibility): Remove extra ().
27699
27700 2005-03-21  Roger Sayle  <roger@eyesopen.com>
27701
27702         PR middle-end/20557
27703         * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
27704         to determine whether a block can be duplicated, rather than test
27705         whether the block contains noncopyable insns ourselves.
27706
27707 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
27708
27709         * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
27710         predicates.
27711
27712 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
27713
27714         * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
27715
27716 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
27717
27718         * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
27719         (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
27720         * config/fr30/fr30.opt: New file.
27721
27722 2005-03-18  Daniel Berlin  <dberlin@dberlin.org>
27723
27724         Fix PR tree-optimization/20542
27725
27726         * tree-flow-inline.h (overlap_subvar): Move to here.
27727         * tree-ssa-operands.c: From here.
27728         * tree-flow.h (overlap_subvar): Declare.
27729         * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
27730         * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
27731         for variables with subvars.
27732
27733 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
27734
27735         PR middle-end/20177
27736         * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
27737         * modulo-sched.c (const_iteration_count): Return on NULL
27738         pre-header.
27739         (print_node_sched_params): Return on NULL dump_file.
27740         (generate_reg_moves): Handle reg-anti dependencies and disregard
27741         closing branch when generating register moves.
27742         (sms_schedule): Mark the SMSed block dirty.
27743         * passes.c (rest_of_handle_sms): Call update_life_info for all
27744         basic-blocks.
27745         * testsuite/gcc.dg/20050321-1.c: New test.
27746
27747 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
27748
27749         * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
27750         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
27751         movqi_internal): Likewise.
27752
27753 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
27754
27755         * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
27756         xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
27757         xtensa_b4const): Delete prototypes.
27758         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
27759         xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
27760         (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
27761         xtensa_extra_constraint): New prototypes.
27762         (add_operand, arith_operand, nonimmed_operand, mem_operand,
27763         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
27764         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
27765         move_operand, const_float_1_operand, fpmem_offset_operand,
27766         branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
27767         * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
27768         (xtensa_b4const_or_zero): ...this.  Change return type to bool and
27769         argument type to HOST_WIDE_INT.
27770         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
27771         xtensa_mask_immediate): Likewise.
27772         (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
27773         Likewise.  Also make these functions static.
27774         (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
27775         (xtensa_const_ok_for_letter_p): New.
27776         (add_operand, arith_operand, nonimmed_operand, mem_operand,
27777         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
27778         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
27779         move_operand, const_float_1_operand, fpmem_offset_operand,
27780         branch_operator, ubranch_operator, boolean_operator): Move to
27781         predicates.md.
27782         (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
27783         (xtensa_mem_offset): Change return type to bool.
27784         (xtensa_extra_constraint): New.
27785         (gen_int_relational): Update type of const_range_p function pointer.
27786         Use xtensa_b4const_or_zero.
27787         * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
27788         xtensa_const_ok_for_letter_p.  Update comments.
27789         (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
27790         (PREDICATE_CODES): Delete.
27791         * config/xtensa/xtensa.md: Include predicates.md.
27792         * config/xtensa/predicates.md: New file.
27793
27794 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
27795
27796         * config/v850/v850-protos.h: Remove the prototypes for
27797         reg_or_int9_operand, reg_or_const_operand,
27798         pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
27799         reg_or_0_operand, reg_or_int5_operand, call_address_operand,
27800         movsi_source_operand, power_of_two_operand,
27801         not_power_of_two_operand, special_symbolref_operand,
27802         pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
27803         register_is_ok_for_epilogue.
27804         * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
27805         reg_or_int9_operand, reg_or_const_operand,
27806         call_address_operand, special_symbolref_operand,
27807         movsi_source_operand, power_of_two_operand,
27808         not_power_of_two_operand, register_is_ok_for_epilogue,
27809         pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
27810         pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
27811         predicates.md.
27812         * config/v850/v850.h (PREDICATE_CODES): Remove.
27813         * config/v850/v850.md: Include predicates.md.
27814         * config/v850/predicates.md: New.
27815
27816 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
27817
27818         * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
27819         (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
27820         (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
27821         (itoolsdir, itoolsdatadir): Move definition above new first use.
27822         (install-itoolsdirs): New rule.
27823         (install-mkheaders): Depend on install-itoolsdirs, not
27824         install-include-dir.
27825
27826 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
27827
27828         * tree-into-ssa.c: Remove obsolete comments.
27829
27830 2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>
27831
27832         * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
27833         unrolling if -fpeel-loops is specified, too.
27834         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
27835         Remove superfluous check for flag_unroll_loops.
27836
27837 2005-03-21  Uros Bizjak  <uros@kss-loka.si>
27838
27839         * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
27840         (lrint_optab, llrint_optab): Define corresponding macros.
27841         * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
27842         * genopinit.c (optabs): Implement lrint_optab using lrintsi2
27843         pattern and llrint_optab using llrintdi2 patterns.
27844         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
27845         using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
27846         (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
27847         BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
27848         flag_unsafe_math_optimizations is set.
27849
27850 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
27851
27852         * combine.c (combine_simplify_rtx, simplify_if_then_else,
27853         simplify_logical, if_then_else_cond, known_cond,
27854         simplify_comparison): Adjust calls to reverse_comparison.
27855         Don't use combine_reversed_comparison_code).
27856         (combine_reversed_comparison_code): Remove.
27857         (reversed_comparison): Using reversed_comparison_code, move it...
27858         * jump.c (reversed_comparison): ... here.
27859         * rtl.h (reversed_comparison): Add prototype.
27860
27861 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
27862
27863         * builtins.c (fold_builtin): Take decomposed arguments of
27864         CALL_EXPR.
27865         * fold-const.c (fold_ternary): Update a call to fold_builtin.
27866         * gimplify.c (gimplify_call_expr): Likewise.
27867         * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
27868         * tree.h: Update the prototype of fold_builtin.
27869
27870 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
27871
27872         * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
27873         * rtlhooks.c (gen_lowpart_no_emit_general): New.
27874         * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
27875         (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
27876         * simplify-rtx.c (simplify_binary_operation_1): Use it.
27877
27878 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
27879
27880         * builtins.c (fold_builtin_1): Take decomposed arguments of
27881         CALL_EXPR.
27882         (fold_builtin): Update a call to fold_builtin_1.
27883
27884 2005-03-21  Nathan Sidwell  <nathan@codesourcery.com>
27885
27886         PR other/20564
27887         * gcov.c (output_lines): Only output function block summary when
27888         outputting branch information.
27889         * doc/gcov.texi: Document format of preamble and additional block
27890         information lines.
27891
27892 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
27893
27894         * libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
27895         (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make
27896         the defaults false if BITS_PER_UNIT != 8.
27897         (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI)
27898         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather
27899         than BITS_PER_UNIT != 8.
27900         (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi)
27901         (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi)
27902         (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove
27903         #undefs.
27904         * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI)
27905         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE.
27906
27907 2005-03-20  Roger Sayle  <roger@eyesopen.com>
27908
27909         PR middle-end/20539
27910         * fold-const.c (fold_binary): Fix type mismatch between
27911         TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types.
27912         (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue
27913         for non-truth-valued expressions.
27914
27915         * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK
27916         and FUNCTION_DECL in the main switch.
27917         <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
27918         TRUTH_XOR_EXPR>: When changing the result type of these tree nodes,
27919         we also need to convert their operands to match.
27920         <TRUTH_NOT_EXPR>: Likewise.
27921
27922 2005-03-21  Joseph S. Myers  <joseph@codesourcery.com>
27923
27924         * c-common.c (lvalue_or_else): Replace by lvalue_error; only give
27925         diagnostic without checking whether an lvalue.
27926         * c-common.h (lvalue_p): Remove.
27927         (enum lvalue_use): Update comment.
27928         (lvalue_or_else): Replace by lvalue_error.
27929         * c-typeck.c (lvalue_p): Make static.
27930         (lvalue_or_else): New.  Call lvalue_error.
27931
27932 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
27933
27934         * config/rs6000/rs6000.c (rs6000_parm_start): New function.
27935         (function_arg_advance): Use rs6000_parm_start.
27936         (function_arg, rs6000_arg_partial_bytes): Likewise.
27937
27938 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
27939
27940         * c-common.c (check_case_value): Adjust comment about stripping
27941         NOPs.
27942         (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
27943         * c-typeck.c (default_conversion, convert_arguments,
27944         build_modify_expr, convert_for_assignment, store_init_value,
27945         digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
27946         manually.  Remove inaccurate comments.
27947
27948 2005-03-20  Roger Sayle  <roger@eyesopen.com>
27949             Joseph S. Myers  <joseph@codesourcery.com>
27950
27951         * varasm.c (do_assemble_alias): Restore comment describing function.
27952         Annotate the target parameter as potentially unused.
27953
27954 2005-03-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
27955
27956         PR target/18551
27957         * config/avr/avr.c (avr_output_function_prologue): Do not use
27958         current_function_name() in a label, use a local label instead.
27959
27960 2005-03-20  David Edelsohn  <edelsohn@gnu.org>
27961
27962         * config/rs6000/rs6000.c (rs6000_generate_compare): Test
27963         flag_finite_math_only, not flag_unsafe_math_optimizations.
27964
27965 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
27966
27967         * builtins.c (fold_builtin_1): Update a call to
27968         targetm.fold_builtin.
27969         * hooks.c (hook_tree_tree_bool_null): Rename to
27970         hook_tree_tree_tree_bool_null.  Take one more argument of type
27971         tree.
27972         * hooks.h: Update the prototype of hook_tree_tree_bool_null.
27973         * target-def.h (TARGET_FOLD_BUILTIN): Define it as
27974         hook_tree_tree_tree_bool_null.
27975         * target.h (gcc_target): Update the prototype of fold_builtin.
27976         * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
27977         arguments of CALL_EXPR.
27978         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update.  Mention the
27979         new prototype.
27980
27981 2005-03-20  Jan Hubicka  <jh@suse.cz>
27982
27983         * cgraph.h (cgraph_node): Add prev_clone pointer.
27984         * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
27985         (cgraph_clone_node): Produce doubly linked chain.
27986
27987 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
27988
27989         * c-common.c (handle_aligned_attribute, check_function_sentinel,
27990         get_nonnull_operand, handle_sentinel_attribute,
27991         check_function_arguments_recurse): Do not strip NOPS from
27992         INTEGER_CSTs.
27993         * c-decl.c (check_bitfield_type_and_width, build_enumerator):
27994         Likewise.
27995         * c-format.c (get_constant): Likewise.
27996         * c-parser.c (c_parser_postfix_expression): Likewise.
27997         * c-typeck.c (set_init_index): Likewise.
27998         (convert_arguments): Don't check for NOP_EXPR containing integer
27999         constant.
28000
28001 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
28002
28003         * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
28004         fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
28005         Take decomposed arguments of CALL_EXPR.
28006         (fold_builtin_1): Update calls to the functions mentioned
28007         above.
28008
28009 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
28010
28011         * c-decl.c (check_bitfield_type_and_width): Require bit-field
28012         width to have integer type.
28013         (build_enumerator): Require enumerator value to have integer type.
28014
28015 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
28016
28017         * doc/extend.texi (__builtin_inf): Move statement about INFINITY
28018         to __builtin_inff.
28019
28020 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
28021
28022         * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
28023         std=iso9899:199x): Correct descriptions.
28024
28025 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
28026
28027         * config.gcc: Consistently use solaris2.1[0-9]* instead of
28028         solaris2.1[0-9].
28029
28030 2005-03-19  Kazu Hirata  <kazu@cs.umass.edu>
28031
28032         * builtins.c (fold_builtin_memcpy): Take decomposed arguments
28033         of CALL_EXPR.
28034         (expand_builtin_memcpy, fold_builtin_1): Update calls to
28035         fold_builtin_memcpy.
28036
28037         * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
28038         arguments of CALL_EXPR.
28039         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
28040         fold_builtin_found, fold_builtin_1): Update calls to
28041         fold_trunc_transparent_mathfn.
28042
28043 2005-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28044
28045         PR middle-end/20493
28046         * fold-const.c (fold_widened_comparison): Don't optimize casts of
28047         function pointers on targets that require function pointer
28048         canonicalization.
28049         (fold_sign_changed_comparison): Likewise.
28050
28051 2005-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
28052
28053         * combine.c (try_combine): When changing the mode of a hard reg, make
28054         sure that doing so is valid.
28055
28056 2005-03-19  Richard Sandiford  <rsandifo@redhat.com>
28057
28058         * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
28059         (TARGET_HANDLE_OPTION): Override default.
28060         (avr_handle_option): New function.
28061         * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
28062         (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
28063         (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
28064         (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
28065         (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
28066         (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
28067         (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
28068         (TARGET_OPTIONS): Delete.
28069         * config/avr/avr.opt: New file.
28070
28071 2005-03-18  2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28072
28073         * config/m32r/m32r-protos.h: Remove the prototypes for
28074         call_address_operand, symbolic_operand, seth_add3_operand,
28075         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
28076         reg_or_uint16_operand, reg_or_cmp_int16_operand,
28077         two_insn_const_operand, move_src_operand,
28078         move_double_src_operand, move_dest_operand,
28079         eqne_comparison_operator, signed_comparison_operator,
28080         large_insn_p, conditional_move_operand, carry_compare_operand,
28081         m32r_block_immediate_operand, extend_operand,
28082         reg_or_eq_int16_operand, int8_operand, and
28083         reg_or_zero_operand.
28084         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
28085         seth_add3_operand, int8_operand, cmp_int16_operand,
28086         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
28087         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
28088         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
28089         move_double_src_operand, move_dest_operand,
28090         eqne_comparison_operator, signed_comparison_operator,
28091         extend_operand, small_insn_p, large_insn_p,
28092         conditional_move_operand, carry_compare_operand,
28093         m32r_block_immediate_operand): Move to predicates.md.
28094         (MAX_MOVE_BYTES): Move to m32r.h.
28095         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
28096         * config/m32r/m32r.md: Include predicates.md.
28097         * config/m32r/predicates.md: New.
28098
28099 2005-03-18  James E Wilson  <wilson@specifixinc.com>
28100
28101         PR c++/19769
28102         * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
28103         origin.
28104
28105 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28106
28107         * config/mn10300/mn10300-protos.h: Remove the prototypes for
28108         call_address_operand, const_8bit_operand.
28109         * config/mn10300/mn10300.c (call_address_operand,
28110         const_8bit_operand, const_1f_operand): Move to predicates.md.
28111         * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
28112         * config/mn10300/mn10300.md: Include predicates.md.
28113         * config/mn10300/predicates.md: New.
28114
28115 2005-03-18  Joseph S. Myers  <joseph@codesourcery.com>
28116
28117         * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
28118         declarations in diagnostics and %E for identifiers, not %s.
28119
28120 2005-03-18  Jan Hubicka  <jh@suse.cz>
28121             Dale Johannesen  <dalej@apple.com>
28122
28123         * basic-block.h (scale_bbs_frequencies_int,
28124         scale_bbs_frequencies_gcov_type): Declare.
28125         * cfg.c (RDIV): New macro.
28126         (update_bb_frequency_for_threading): Fix.
28127         * basic-block.h (scale_bbs_frequencies_int,
28128         scale_bbs_frequencies_gcov_type): New.
28129         * cfgloopmanip.c (scale_bbs_frequencies): Kill.
28130         (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
28131         scale_bbs_frequencies_int.
28132         * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
28133
28134 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28135
28136         * config/m32r/m32r-protos.h: Remove the prototypes for
28137         call_address_operand, symbolic_operand, seth_add3_operand,
28138         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
28139         reg_or_uint16_operand, reg_or_cmp_int16_operand,
28140         two_insn_const_operand, move_src_operand,
28141         move_double_src_operand, move_dest_operand,
28142         eqne_comparison_operator, signed_comparison_operator,
28143         large_insn_p, conditional_move_operand, carry_compare_operand,
28144         m32r_block_immediate_operand, extend_operand,
28145         reg_or_eq_int16_operand, int8_operand, and
28146         reg_or_zero_operand.
28147         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
28148         seth_add3_operand, int8_operand, cmp_int16_operand,
28149         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
28150         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
28151         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
28152         move_double_src_operand, move_dest_operand,
28153         eqne_comparison_operator, signed_comparison_operator,
28154         extend_operand, small_insn_p, large_insn_p,
28155         conditional_move_operand, carry_compare_operand,
28156         m32r_block_immediate_operand): Move to predicates.md.
28157         (MAX_MOVE_BYTES): Move to m32r.h.
28158         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
28159         * config/m32r/m32r.md: Include predicates.md.
28160         * config/m32r/predicates.md: New.
28161
28162         * config/pa/pa-protos.h: Add prototypes for magic_milli and
28163         shadd_constant_p.
28164         * config/pa/pa.c (reg_or_0_operand, call_operand_address,
28165         symbolic_operand, symbolic_memory_operand,
28166         reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
28167         indexed_memory_operand, move_dest_operand, move_src_operand,
28168         prefetch_cc_operand, prefetch_nocc_operand,
28169         reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
28170         arith_operand, arith11_operand, pre_cint_operand,
28171         post_cint_operan, arith_double_operand, ireg_or_int5_operand,
28172         ireg_operand, int5_operand, uint5_operand, int11_operand,
28173         uint32_operand, arith5_operand, and_operand, ior_operand,
28174         lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
28175         pc_or_label_operand, div_operand, plus_xor_ior_operator,
28176         shadd_operand, movb_comparison_operator,
28177         cmpib_comparison_operator): Move to predicates.md.
28178         (magic_milli, shadd_constant_p): Make it extern.
28179         * config/pa/pa.h (PREDICATE_CODES): Remove.
28180         * config/pa/pa.md: Include predicates.md.
28181         * config/pa/predicates.md: New.
28182
28183         * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
28184         predicate.
28185
28186 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28187
28188         * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
28189         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
28190         config/alpha/freebsd.h, config/alpha/linux.h,
28191         config/alpha/netbsd.h, config/alpha/osf5.h,
28192         config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
28193         config/h8300/h8300-protos.h, config/h8300/h8300.c,
28194         config/h8300/h8300.h, config/ia64/unwind-ia64.c,
28195         doc/cppopts.texi: Update copyright.
28196
28197 2005-03-18  Jan Hubicka  <jh@suse.cz>
28198
28199         PR middle-end/20225
28200         * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
28201         too late.
28202         * varasm.c (find_decl_and_mark_needed): Mark needed only when not
28203         called too late.
28204
28205 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28206
28207         * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
28208         VEC_safe_push.
28209
28210 2005-03-18  Paolo Bonzini  <bonzini@gnu.org>
28211
28212         * combine.c (gen_binary): Remove.
28213         (known_cond, simplify_shift_const, find_split_point,
28214         combine_simplify_rtx, simplify_if_then_else, simplify_set,
28215         simplify_logical, expand_field_assignment, extract_left_shift,
28216         force_to_mode, if_then_else_cond, apply_distributive_law,
28217         simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
28218         simplify_comparison, reversed_comparison): Replace with
28219         simplify_gen_binary, simplify_gen_relational or
28220         distribute_and_simplify_rtx.
28221         (distribute_and_simplify_rtx): New function.
28222
28223 2005-03-18  Alexey Neyman  <alex.neyman@auriga.ru>
28224             Paolo Bonzini  <gcc.gnu.org>
28225
28226         * calls.c (setjmp_call_p, special_function_p): Update comments
28227         at the head of the functions.
28228
28229 2005-03-18  Jan Hubicka  <jh@suse.cz>
28230
28231         * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
28232
28233         * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
28234         function body should be released; do not proactively release function
28235         bodies in non-unit-at-a-time mode.
28236
28237 2005-03-18  Ralf Corsepius  <ralf.corsepius@rtems.org>
28238
28239         * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
28240         mno-fp-ret-in-387 multilib variants.
28241
28242 2005-03-18  Richard Sandiford  <rsandifo@redhat.com>
28243
28244         * common.opt (m): Remove.
28245         * opts.c (handle_option): Pass 'm' options to set_target_switch if
28246         table lookup fails.
28247         (common_handle_option): Remove OPT_m case.
28248
28249 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
28250
28251         * builtins.c (fold_builtin_bitop): Take decomposed arguments
28252         of CALL_EXPR.
28253         (fold_builtin_1): Update a call to fold_builtin_bitop.
28254
28255         * builtins.c (fold_builtin_signbit): Take decomposed arguments
28256         of CALL_EXPR.
28257         (fold_builtin_1): Update a call to fold_builtin_signbit.
28258
28259 2005-03-17  Dorit Naishlos  <dorit@il.ibm.com>
28260
28261         PR tree-optimization/20474
28262         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
28263         size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
28264
28265 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
28266
28267         * config/h8300/h8300-protos.h: Remove prototypes for
28268         general_operand_src, general_operand_dst, single_one_operand,
28269         single_zero_operand, call_insn_operand,
28270         two_insn_adds_subs_operand, small_call_insn_operand,
28271         jump_address_operand, bit_operand, bit_memory_operand,
28272         stack_pointer_operand, const_int_gt_2_operand,
28273         const_int_ge_8_operand, const_int_qi_operand,
28274         const_int_hi_operand, incdec_operand, bit_operator,
28275         nshift_operator, eqne_operator, gtle_operator,
28276         gtuleu_operator, iorxor_operator.
28277         Add prototypes for h8sx_shift_type h8sx_classify_shift and
28278         h8300_ldm_stm_parallel.
28279         * config/h8300/h8300.c (h8sx_shift_type,): Move to
28280         h8300-protos.h.
28281         (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
28282         SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
28283         (h8300_ldm_stm_parallel): Make it extern.
28284         (h8300_ldm_parallel, h8300_stm_parallel,
28285         h8300_return_parallel, general_operand_src,
28286         general_operand_dst, h8300_dst_operand, h8300_src_operand,
28287         nibble_operand, reg_or_nibble_operand, single_one_operand,
28288         single_zero_operand, call_insn_operand,
28289         two_insn_adds_subs_operand, small_call_insn_operand,
28290         jump_address_operand, bit_operand, bit_memory_operand,
28291         stack_pointer_operand, const_int_gt_2_operand,
28292         const_int_ge_8_operand, const_int_qi_operand,
28293         const_int_hi_operand, incdec_operand, eqne_operator,
28294         gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
28295         h8sx_binary_memory_operator, h8sx_unary_memory_operator,
28296         h8sx_unary_shift_operator, h8sx_binary_shift_operator,
28297         nshift_operator): Move to predicates.md.
28298         * config/h8300/h8300.h (PREDICATE_CODES): Remove.
28299         * config/h8300/h8300.md: Include predicates.md.
28300         * config/h8300/predicates.md: New.
28301
28302 2005-03-17  Richard Henderson  <rth@redhat.com>
28303
28304         * config.gcc (ia64*-*-hpux*): Add extra_options.
28305         * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
28306         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
28307         * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
28308         (ia64_tls_size_string, ia64_tune_string): Remove.
28309         (ia64_tune): Init to PROCESSOR_ITANIUM2.
28310         (TARGET_DEFAULT_TARGET_FLAGS): New.
28311         (TARGET_HANDLE_OPTION): New.
28312         (ia64_override_options): Move options parsing ...
28313         (ia64_handle_option): ... here.  New.
28314         * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
28315         MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
28316         MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
28317         MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
28318         MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
28319         MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
28320         MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
28321         TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
28322         TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
28323         TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
28324         TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
28325         TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
28326         TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
28327         TARGET_EARLY_STOP_BITS): Remove.
28328         (TARGET_ILP32): Default false.
28329         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
28330         (enum ia64_inline_type): New.
28331         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
28332         * config/ia64/ia64.md: Update for new definitions of
28333         TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
28334         * config/ia64/ia64.opt: New file.
28335         * config/ia64/ilp32.opt: New file.
28336
28337 2005-03-17  H.J. Lu  <hongjiu.lu@intel.com>
28338
28339         PR target/18380
28340         * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
28341
28342 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
28343
28344         * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
28345         instead of MASK_H8300S.
28346         * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
28347         MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
28348         MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
28349         MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
28350         TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
28351         TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
28352         TARGET_SWITCHES): Remove.
28353         (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
28354         TARGET_H8300SX.
28355         * config/h8300/h8300.opt: New.
28356
28357         * config/alpha/alpha.opt, config/arc/arc.opt,
28358         config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
28359         notices.
28360
28361 2005-03-17  Ian Lance Taylor  <ian@airs.com>
28362
28363         * gmon.c: Remove.
28364
28365 2005-03-17  Richard Sandiford  <rsandifo@redhat.com>
28366
28367         * config/arc/arc.c (arc_cpu_string): Make static.  Default to "base"
28368         (arc_text_string, arc_data_string, arc_rodata_string): Make static.
28369         (TARGET_HANDLE_OPTION): Override default.
28370         (arc_handle_option): New function.
28371         (arc_init): Remove code to set arch_cpu_string.
28372         * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
28373         (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
28374         (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
28375         (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
28376         (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
28377         (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
28378         (arc_rodata_string, TARGET_OPTIONS): Delete.
28379         * config/arc/arc.opt: New file.
28380
28381 2005-03-17  Richard Henderson  <rth@redhat.com>
28382
28383         * doc/extend.texi (Weak Pragmas): New section.
28384         (attribute alias): Clarify that target must be in the same
28385         translation unit.
28386
28387 2005-03-17  Richard Henderson  <rth@redhat.com>
28388
28389         * config/alpha/alpha.opt: New file.
28390         * config/alpha/alpha.c (alpha_tune): New.  Rename all existing uses
28391         of alpha_cpu.
28392         (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
28393         alpha_fprm_string, alpha_fptm_string): Make static.
28394         (alpha_tls_size_string): Remove.
28395         (alpha_handle_option): New.
28396         (override_options): Update for alpha_cpu/alpha_tune split.
28397         (alpha_file_start): Likewise.
28398         (TARGET_DEFAULT_TARGET_FLAGS): New.
28399         (TARGET_HANDLE_OPTION): New.
28400         * config/alpha/alpha.h (alpha_tune): Declare.
28401         (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
28402         MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
28403         MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
28404         TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
28405         TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
28406         TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
28407         MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
28408         MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
28409         TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
28410         TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
28411         (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
28412         (TARGET_DEFAULT): Remove MASK_FP.
28413         (TARGET_FP): Redefined based on TARGET_SOFT_FP.
28414         (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
28415         (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
28416         alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
28417         alpha_tls_size_string): Remove.
28418         * config/alpha/alpha.md (prefetch): Use alpha_cpu.
28419         (attribute tune): Rename from attribute cpu.
28420         * config/alpha/ev4.md: Update to match.
28421         * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
28422         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
28423         * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
28424         * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
28425         * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
28426         * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
28427
28428 2005-03-16  James E. Wilson  <wilson@specifixinc.com>
28429
28430         * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
28431         and return without creating new state if before_nops_num is nonzero.
28432         * config/ia64/ia64.md (first_insn): New attribute.
28433         (alloc): Set it to yes.
28434
28435 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
28436
28437         * tree-vectorizer.c (new_vec_stmt_info): Initialize
28438         STMT_VINFO_SUBVARS to NULL.
28439         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
28440
28441 2005-03-16 Dale Johannesen  <dalej@apple.com>
28442
28443         * rtlanal.c (find_first_parameter_load):  Rewrite to
28444         return actual first param load or the call if none,
28445         instead of first in block, when not all loads exist.
28446
28447 2005-03-16  Roger Sayle  <roger@eyesopen.com>
28448
28449         * optabs.c (expand_copysign_absneg): Make static.
28450         * optabs.h (expand_copysign_absneg): Delete prototype.
28451         * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
28452
28453 2005-03-16  Richard Henderson  <rth@redhat.com>
28454
28455         PR middle-end/15700
28456         * varasm.c (struct alias_pair): Rename from struct output_def_pair.
28457         (alias_pairs): Rename from output_defs.
28458         (find_decl_and_mark_needed): Split out from assemble_alias.
28459         (do_assemble_alias): New.
28460         (assemble_output_def): Remove.
28461         (finish_aliases_1, finish_aliases_2): New.
28462         (process_pending_assemble_output_defs): Remove.
28463         (assemble_alias): Defer aliases for which we don't yet have a
28464         non-external decl for the target symbol.
28465         * passes.c (rest_of_decl_compilation): Register variables with cgraph.
28466         * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
28467         * toplev.c (compile_file): Use finish_aliases_2 instead of
28468         process_pending_assemble_output_defs.
28469         * tree.h (finish_aliases_1, finish_aliases_2): Declare.
28470         (process_pending_assemble_output_defs): Remove.
28471
28472 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
28473
28474         Fix PR tree-optimization/20489
28475
28476         * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
28477         for empty structures.
28478
28479 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
28480
28481         Fix PR tree-optimization/20490
28482
28483         * tree-ssa-pre.c (create_expression_by_pieces): Use
28484         force_gimple_operand on result of fold.
28485
28486 2005-03-16  Andrew Pinski  <pinskia@physics.uc.edu>
28487
28488         * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
28489         of closing parenthesis.
28490
28491 2005-03-16  Kazu Hirata  <kazu@cs.umass.edu>
28492
28493         * builtins.c (expand_movstr): Update a call to
28494         fold_builtin_strcpy.
28495         (expand_builtin_strncpy): Update a call to
28496         fold_builtin_strncpy.
28497         (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
28498         arguments of CALL_EXPR.
28499         (fold_builtin_1): Update calls to fold_builtin_strcpy and
28500         fold_builtin_strncpy.
28501         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
28502         * tree.h: Update the prototypes of fold_builtin_strcpy and
28503         fold_builtin_strncpy.
28504
28505 2005-03-16  Steven Bosscher  <stevenb@suse.de>
28506             Dorit Naishlos  <dorit@il.ibm.com>
28507
28508         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
28509         UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
28510         error.
28511
28512 2005-03-16  Steven Bosscher  <stevenb@suse.de>
28513
28514         * tree-inline.c (walk_type_fields, walk_tree,
28515         walk_tree_without_duplicates): Move from here...
28516         * tree.c: ...to here.
28517
28518 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
28519
28520         * BASE-VER, DATESTAMP, DEV-PHASE: New files.
28521         * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
28522         (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
28523         (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
28524         (version): Define using $(BASEVER_c).
28525         (Makefile, config.status, build/gcov-iov.o): No longer depends on
28526         version.c.
28527         (version.o): Depend on version files; add custom generation command.
28528         (prefix.o): Define BASEVER on command line.
28529         (s-iov): Depend on version files; adjust command.
28530         (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
28531         Add gcc-vers.texi.
28532         (gcc-vers.texi): New rule.
28533         (doc/%.info, doc/%.dvi): Add -I . to command line.
28534         (doc/gccinstall.dvi): Likewise.
28535         (PACKAGE): Delete.  All uses replaced with "gcc".
28536         * aclocal.m4: Do not include gcc-version.m4.
28537         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
28538         Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
28539         Set is_release based on contents of DEV-PHASE.
28540         Set gcc_version based on contents of BASE-VER.
28541         Define WIN32_REGISTRY_KEY only if the user overrode the default.
28542         * config.in, configure: Regenerate.
28543         * gccbug.in: Determine version of GCC in use at runtime.
28544         * gcov-iov.c: Get version number and development phase from
28545         command line, not by including version.c.
28546         * intl.c: Replace all uses of PACKAGE with "gcc".
28547         * libada-mk.in: Delete unused "gcc_version" variable.
28548         * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
28549         * version.c: (VERSUFFIX): New hook for redistributors; adjust
28550         commentary to match.
28551         (version_string): Put together from pieces.
28552         * config/alpha/x-vms: Do not use $(gcc_version).
28553         * config/i386/t-nwld: Likewise.
28554         * doc/include/gcc-common.texi: Include gcc-vers.texi for
28555         version-GCC and DEVELOPMENT.
28556
28557 2005-03-15  Roger Sayle  <roger@eyesopen.com>
28558
28559         PR tree-optimization/17454
28560         * tree.c (tree_size): Add case for TREE_BINFO.
28561         * fold-const.c (fold_checksum_tree): Only clear the overloaded
28562         field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
28563
28564 2005-03-15  Roger Sayle  <roger@eyesopen.com>
28565
28566         * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
28567         op1 whilst expanding the signed widenening multiply variant.
28568
28569 2005-03-15  Richard Sandiford  <rsandifo@redhat.com>
28570
28571         * toplev.c (display_target_options): Avoid unused variable warning if
28572         TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
28573         * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
28574         (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
28575         (mips_isa): Initialize to MIPS_ABI_DEFAULT.
28576         (mips_isa_info): New variable.
28577         (mips_parse_cpu): Remove the first argument and leave the caller
28578         to report errors.
28579         (TARGET_HANDLE_OPTION): Override default.
28580         (mips_handle_option): New function.  Move option validation code from...
28581         (override_options): ...here.  Update calls to mips_parse_cpu.
28582         * config/mips/mips.h (mips_arch_string, mips_tune_string)
28583         (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
28584         (SUBTARGET_TARGET_OPTIONS): Delete.
28585         * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
28586         (mno-flush-func, mtune=): New options.
28587
28588 2005-03-15  Roger Sayle  <roger@eyesopen.com>
28589             Richard Henderson  <rth@redhat.com>
28590
28591         * real.c (c4x_single_format, c4x_extended_format): Provide values
28592         for signbit_ro for c4x's single and extended floating point formats.
28593         * optabs.c (expand_copysign): Use the floating point format's
28594         signbit_ro for expanding via expand_copysign_absneg, and it's
28595         signbit_rw field for expanding via expand_copysign_bit.
28596
28597 2005-03-15  Dorit Naishlos  <dorit@il.ibm.com>
28598
28599         * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
28600         known_alignment_for_access_p.
28601         (known_alignment_for_access_p): New.
28602         (do_peeling_for_alignment): Field made int instead of bool and renamed
28603         to peeling_for_alignment.
28604         (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
28605         * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
28606         functionality used to be in vect_analyze_operations.
28607         (vect_analyze_operations): Code to determine vectorization factor was
28608         moved to vect_determine_vectorization_factor.
28609         (vect_enhance_data_refs_alignment): Update to correct alignment when it
28610         is known instead of -1.  Set LOOP_PEELING_FOR_ALIGNMENT to peeling
28611         factor.
28612         (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
28613         be part of vect_analyze_operations).
28614         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
28615         creating the guard condition, as the number of iterations may be
28616         constant.
28617         (slpeel_tree_peel_loop_to_edge): Use new name of
28618         LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
28619         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
28620         alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
28621         (vect_do_peeling_for_alignment): Use fold.
28622         (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
28623
28624         (vect_update_inits_of_dr): Renamed to
28625         vect_update_init_of_dr.
28626         (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
28627         (vectorizable_store): Fix assertion to use == instead of =.
28628
28629 2005-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
28630
28631         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
28632         call_used_regs for wCG registers.
28633
28634 2005-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
28635
28636         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
28637         for non-offsettable memory references to cope with outstanding reload
28638         replacements, take 2.
28639
28640 2005-03-15  Uros Bizjak  <uros@kss-loka.si>
28641
28642         PR target/18668
28643         * config/i386/i386.h (x86_fisttp): New.
28644         (TARGET_FISTTP): New macro.
28645         * config/i386/i386.c (x86_fisttp): Set for NOCONA.
28646         (output_fix_trunc): Add fisttp parameter.  Generate fisttp x87
28647         instruction when fisttp flag is set.
28648         * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
28649
28650         * config/i386/i386.md (type attribute): Add fisttp.
28651         (unit attribute): Set to i387 for fisttp type.
28652         (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
28653         (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
28654         TARGET_FISTTP.
28655         (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
28656         Generate fisttp patterns for TARGET_FISTTP. Implement using mode
28657         macros.
28658         (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
28659         patterns for TARGET_FISTTP.  Enable patterns for
28660         (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
28661         (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
28662         fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
28663         implement fisttp x87 insn.
28664         (fix_trunc*_i387_fisttp splitters): New patterns.
28665         (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
28666         Rename to *fix_trunc<mode>_i387_1.  Implement using mode macros.
28667         Disable patterns for TARGET_FISTTP.  Add comment about FLAGS_REG
28668         clobber.
28669         (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
28670         Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
28671         Implement using mode macros. Disable patterns for TARGET_FISTTP.
28672         (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
28673         fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
28674         fix_trunc<mode>_i387_with_temp. Implement using mode macros.
28675         Disable patterns for TARGET_FISTTP.
28676         (fix_trunc*_i387 splitters): Implement usign mode macros.
28677         (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
28678         fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
28679         (fix_trunx*_sse peephole2s): Implement using mode macros.
28680
28681 2005-03-15  J"orn Rennecke <joern.rennecke@st.com>
28682
28683         PR rtl-optimization/20291
28684         * combine.c (try_combine): If splitting fails, re-try with
28685         original combined pattern, i.e. before clobber stripping.
28686
28687 2005-03-14  Eric Christopher  <echristo@redhat.com>
28688
28689         * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
28690         STACK_GROWS_DOWNWARD.
28691
28692 2005-03-14  Roger Sayle  <roger@eyesopen.com>
28693
28694         * real.h (struct real_format): Split the signbit field into two
28695         two fields, signbit_ro and signbit_rw.
28696         * real.c (ieee_single_format, mips_single_format, ieee_double_format,
28697         mips_double_format, ieee_extended_motorola_format,
28698         ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
28699         ieee_extended_intel_128_format, ibm_extended_format,
28700         mips_extended_format, ieee_quad_format, mips_quad_format,
28701         vax_f_format, vax_d_format, vax_g_format, i370_single_format,
28702         i370_double_format, c4x_single_format, c4x_extended_format,
28703         real_internal_format): Update initializers for new field.
28704         * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
28705         real_format structure.
28706         * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
28707         field of the real_format structure.
28708
28709 2005-03-14  Daniel Berlin <dberlin@dberlin.org>
28710
28711         Fix PR tree-optimization/20458
28712
28713         * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
28714         DECL_EXTERNAL on STRUCT_FIELD tags.
28715         (clear_call_clobbered): Ditto.
28716         * tree-ssa-operands.c (note_addressable): Make sure the original
28717         variable doesn't slip into the addressable list if we have
28718         subvars.
28719         * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
28720         tags too.
28721
28722 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
28723
28724         * doc/cppopts.texi (-fexec-charset): Add concept index entry.
28725         (-fwide-exec-charset): Likewise.
28726         (-finput-charset): Likewise.
28727         * doc/invoke.texi (Warning Options): Document -Wnormalized=.
28728         * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
28729         * c.opt (Wnormalized): New.
28730
28731 2005-03-14  Devang Patel  <dpatel@apple.com>
28732
28733         * doc/invoke.texi: Add reference to Visibility document.
28734
28735 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
28736
28737         * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
28738         MASK_SPLIT_ADDRESSES.
28739         * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
28740         (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
28741         (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
28742         (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
28743         (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
28744         (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
28745         (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
28746         (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
28747         (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
28748         (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
28749         (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
28750         (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
28751         (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
28752         (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
28753         (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
28754         (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
28755         (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
28756         (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
28757         (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
28758         (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
28759         (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
28760         (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
28761         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
28762         (TARGET_EXPLICIT_RELOCS): Delete.
28763         (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
28764         (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
28765         * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
28766         (override_options): Set MASK_LONG64 if -mint64 is given and no
28767         -mlongXX option is.  Complain about -mint64 -mlong32.
28768         (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
28769         MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
28770         * config/mips/mips.opt: New file.
28771
28772 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
28773
28774         * config.gcc (extra_options): New variable for listing option files.
28775         Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
28776         * configure.ac (extra_opt_files): New AC_SUBST variable.
28777         (tm_file_list, tm_include_list): Include options.h first.
28778         * configure: Regenerate.
28779         * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
28780         (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
28781         (s-options-h): New rule.
28782         (options.h): Depend on it.
28783         (TEXI_GCCINT_FILES): Add options.texi.
28784         * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
28785         * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
28786         * target.h (gcc_target): Add default_target_flags and handle_option.
28787         * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
28788         (TARGET_HANDLE_OPTION): New macros.
28789         (TARGET_INITIALIZER): Include them.
28790         * opt-functions.awk (opt_args, nth_arg): New functions.
28791         (switch_flags): Handle the "Target" flag.
28792         (var_args): Delete.
28793         (var_name): Use opt_args and nth_arg.
28794         (var_set, var_ref): Likewise.  Handle "Mask" and "InverseMask".
28795         * opth-gen.awk: Declare target_flags.  Declare MASK_* and TARGET_*
28796         macros for the "Mask" and "InverseMask" options.
28797         * opts.h (cl_var_cond): New enum.
28798         (cl_option): Replace the "has_set_value" and "set_value" fields with
28799         "var_cond" and "var_value".
28800         (CL_TARGET): New macro.
28801         (option_enabled, print_filtered_help): Declare.
28802         (decode_options): Move definition.
28803         * opts.c (handle_option): Search for the original option before
28804         removing any "no-" prefix.  Handle CL_TARGET.  Adjust for the new
28805         var_cond and var_value fields.  Use targetm.handle_option to handle
28806         target options.
28807         (decode_options): Set target_flags to targetm.default_target_flags.
28808         (print_filtered_help): Make global.  Handle CL_TARGET.
28809         (option_enabled): New function.
28810         * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
28811         (display_target_options, set_target_switch, print_switch_values)
28812         (default_pch_valid_p): Guard uses of target_switches with
28813         #ifdef TARGET_SWITCHES.  Also...
28814         (display_target_options): Display the CL_TARGET entries in cl_options.
28815         (set_target_option): Don't complain about the "" option when
28816         TARGET_SWITCHES is undefined.
28817         (print_switch_values): Use option_enabled.
28818         (default_pch_valid_p): Check cl_options[] when looking for something
28819         that has changed the value of target_flags.
28820         * c.opt: Remove documentation from top of file.
28821         * doc/gccint.texi: Add an "Options" chapter.  Include options.texi.
28822         * doc/sourecebuild.texi: Refer to the new options documentation
28823         instead of c.opt.  Document machine-specific .opt files.
28824         * doc/tm.texi (target_flags): Say that this variable is declared
28825         by options.h.
28826         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
28827         (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
28828         an alternative.
28829         * doc/options.texi: New file.
28830
28831 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
28832
28833         PR middle-end/18628
28834         * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
28835         register.
28836
28837 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
28838
28839         PR c++/20280
28840         * gimplify.c (gimplify_cond_expr): Add fallback argument.  Use a
28841         temporary variable of pointer type if an lvalues is required.
28842         (gimplify_modify_expr_rhs): Request an rvalue from it.
28843         (gimplify_expr): Pass fallback on.
28844
28845 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
28846
28847         * cfgbuild.c: Update comments.
28848
28849 2005-03-14  Roger Sayle  <roger@eyesopen.com>
28850
28851         PR rtl-optimization/17236
28852         * optabs.c (expand_doubleword_mult): New helper function split out
28853         from expand_binop.  Permute the order in which instructions are
28854         emitted to minimize the number of simultaneously live registers.
28855         (expand_binop): Call expand_doubleword_mult to synthesize a double
28856         word multiplication.
28857
28858 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
28859
28860         * basic-block.h: Update the prototypes of cached_make_edge and
28861         rtl_make_eh_edge.
28862         * cfg.c (cached_make_edge): Take edge_cache representing one
28863         row of the adjacency matrix of edges.
28864         * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
28865         (make_edges): Initialize edge_cache to represent one row of
28866         the adjacency matrix of edges.
28867
28868 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
28869
28870         * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
28871         New functions.
28872         (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
28873         Remove unused removed_phis variable.
28874         (conditional_replacement): Use build1/build2.
28875         (abs_replacement): Use last_and_only_stmt and build1/build2.
28876
28877 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
28878
28879         * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
28880         ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
28881         * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
28882         (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
28883         * c-common.c (handle_novops_attribute): New function.
28884         (c_common_attribute_table): Add "no vops" entry.
28885         * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
28886         * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
28887         * tree-ssa-operands.c (get_call_expr_operands): Do not
28888         create virtual operands for calls with ECF_NOVOPS flag.
28889         * tree.h (DECL_IS_NOVOPS): New macro.
28890         (struct tree_decl): Add novops_flag.
28891         (ECF_NOVOPS): New constant.
28892
28893 2005-03-14  Uros Bizjak  <uros@kss-loka.si>
28894
28895         PR target/17688
28896         * config/i386/i386.c (x86_use_himode_fiop): New.
28897         (x86_use_simode_fiop): Rename from x86_use_fiop.
28898         * config/i386/i386.h (x86_use_himode_fiop): Declare.
28899         (TARGET_USE_HIMODE_FIOP): New.
28900         (x86_use_simode_fiop): Rename from x86_use_fiop.
28901         (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
28902
28903         * config/i386/i386.md (X87MODEI12): New mode macro define.
28904         (*cmpfp_<mode>): Rename from *cmpfp_si.  Use X87MODEI12 mode macro
28905         to implement x87 FP compare with HImode input operands.
28906         (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
28907         Use X87MODEI12 mode macro to handle HImode input operands.
28908         (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
28909         *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
28910         Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
28911         *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
28912         macro to implement x87 operators with HImode input operands.
28913         (fop splitters): Use X87MODEI12 mode macro to handle HImode
28914         input operands.
28915
28916 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
28917
28918         * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
28919         integer_zerop.
28920         * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
28921         constants invariant.
28922
28923 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
28924
28925         * basic-block.h (BB_VISITED): Removed.
28926         * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
28927
28928 2005-03-14  Falk Hueffner  <falk@debian.org>
28929
28930         PR bootstrap/20424
28931         * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
28932
28933 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
28934
28935         * ggc-zone.c: Fix comment typos.
28936
28937         * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
28938         stringpool.c, config/mips/mips-protos.h: Update copyright.
28939
28940 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
28941
28942         * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
28943         throughout with its typedef, "rtx".
28944         * config/rs6000/rs6000.c: Likewise.  Formatting fixes.
28945         (rs6000_tls_symbol_ref_1): Remove inline keyword.
28946         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting.  Reorder
28947         regs in comment to match code.
28948
28949 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
28950
28951         * except.c (check_handled): Make it static.
28952         * except.h: Remove the corresponding prototype.
28953
28954         * function.c (get_func_frame_size): Make it static.
28955         * function.h: Remove the corresponding type.
28956
28957         * regclass.c (reg_class_superclasses, reg_class_subclasses):
28958         Make them static.
28959         * hard-reg-set.h: Remove the corresponding declarations.
28960
28961         * tree-cfg.c (verify_stmts): Check that
28962         bb_for_stmt (stmt) == bb for every PHI node and statement.
28963
28964 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
28965
28966         * config.gcc: Remove excess indentation.
28967         (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
28968
28969 2005-03-13  Roger Sayle  <roger@eyesopen.com>
28970
28971         PR middle-end/19331
28972         * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
28973         * fold-const.c (fold_sign_changed_comparison): Likewise.
28974         (fold_binary): Optimize comparisons against widened operands if
28975         the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
28976
28977 2005-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
28978
28979         * config/sparc/sparc.c (struct_value_alias_set): New global variable.
28980         (sparc_override_options): Initialize it.
28981         (sparc_struct_value_rtx): Set it on the MEM to be returned.
28982
28983 2005-03-13  David Edelsohn  <edelsohn@gnu.org>
28984
28985         * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
28986         (reg_or_none500mem_operand): New predicate.
28987         (zero_reg_mem_operand): New predicate.
28988         * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
28989         to reg_or_none500mem_operand.
28990         (extendsfdf2_fpr): Add MEM alternative.
28991         (extenddftf2_internal): Change operand2 predicate to
28992         zero_reg_mem_operand.
28993
28994 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
28995
28996         * ggc-zone.c: Rewritten.
28997
28998         * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
28999         if there are none.
29000         * configure.ac: Define GGC_ZONE for --with-gc=zone.
29001         * config.in: Regenerated.
29002         * configure: Regenerated.
29003         * gengtype.c (write_types_process_field, write_func_for_structure):
29004         Pass new argument to gt_pch_note_object.
29005         * ggc-common.c (struct ptr_data): Add TYPE.
29006         (gt_pch_note_object): Take TYPE argument and save it.
29007         (call_count): Update call to ggc_pch_count_object.
29008         (call_alloc): Update call to ggc_pch_alloc_object.
29009         (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
29010         file.
29011         * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
29012         * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
29013         (ggc_alloc_zone_stat): Delete.
29014         (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
29015         * ggc.h (gt_pch_note_object, ggc_pch_count_object)
29016         (ggc_pch_alloc_object): Update prototypes.
29017         (garbage_zone): Delete.
29018         (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
29019         GGC_ZONE conditional.  Update.  Change tree_zone and rtl_zone into
29020         pointers.
29021         (tree_id_zone): New variable.
29022         (ggc_alloc_cleared_zone): Remove unused.
29023         (ggc_alloc_zone): Define.
29024         (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
29025         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
29026         ggc_alloc_zone_stat.
29027         * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
29028         * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
29029         (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
29030         (make_node_stat): Likewise.  Use tree_id_zone.
29031
29032 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
29033             Joseph S. Myers  <joseph@codesourcery.com>
29034
29035         * configure.ac: Check for MIPS TLS.
29036         * configure: Regenerated.
29037         * config/mips/mips-protos.h (enum mips_symbol_type): Add
29038         SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
29039         SYMBOL_GOTTPREL, and SYMBOL_TPREL.
29040         * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
29041         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
29042         (mips_classify_symbol, mips_symbolic_constant_p)
29043         (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
29044         (mips_tls_operand_p, mips_call_tls_get_addr)
29045         (mips_legitimize_tls_address, mips_cannot_force_const_mem)
29046         (mips_tls_symbol_ref_1): New functions.
29047         (mips_legitimize_address, mips_legitimize_const_move): Call
29048         mips_legitimize_tls_address.
29049         (override_options): Handle V1_REG and TLS symbols.  Disable TLS
29050         for MIPS16.
29051         * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
29052         (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
29053         (mips_char_to_class): Document V1_REG.
29054         (HAVE_AS_TLS): Provide default.
29055         * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
29056         constants.
29057         (load_got<mode>): Renamed from *load_got<mode>.  Allow when
29058         !TARGET_ABICALLS.
29059         (tls_get_tp_<mode>): New instruction.
29060
29061 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
29062
29063         * configure.ac: Update checks for target tools.
29064         * configure: Regenerated.
29065
29066 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
29067
29068         * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
29069
29070 2005-03-13  Roger Sayle  <roger@eyesopen.com>
29071
29072         * expmed.c (expand_mult): Use synthetic multiplication sequences for
29073         more classes of DImode multiplication by constant.  Allow both
29074         multiplication by small negative constants (by performing a
29075         multiplication by a positive constant and negating the result) and
29076         multiplications by large powers of two, by using a left shift.
29077
29078 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
29079
29080         * tree-into-ssa.c (find_idf): Speed up by putting the indexes
29081         of basic blocks into work_stack.
29082
29083         * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
29084         config/mips/vr.h: Update copyright.
29085
29086         * c-decl.c (c_init_decl_processing): Remove useless calls to
29087         build_function_type.
29088
29089         * builtins.c (fold_trunc_transparent_mathfn,
29090         fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
29091         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
29092         fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
29093         fold_builtin_strcpy, fold_builtin_strncpy,
29094         fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
29095         TREE_TYPE (exp).
29096
29097         * builtins.c (expand_builtin_mathfn_3): Remove local variable
29098         before_call.
29099
29100         * lambda-code.c (lambda_compute_auxillary_space): Remove local
29101         variable determinant.
29102
29103         * tree-cfg.c (group_case_labels): Remove local variable type.
29104
29105         * tree-ssa-live.c (build_tree_conflict_graph): Remove local
29106         variable ann.
29107
29108         * tree-ssa-phiopt.c (value_replacement): Remove local variable
29109         result.
29110
29111 2005-03-13  Andy Hutchinson  <HutchinsonAndy@netscape.net>
29112
29113         PR target/18251
29114         * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
29115         (*movmemqi_insn): Delete.
29116         (*movmemhi): Delete.
29117
29118 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
29119
29120         * builtins.c (fold_builtin_classify): Take decomposed
29121         arguments of CALL_EXPR.
29122         (fold_builtin_1): Update a call to fold_builtin_classify.
29123
29124 2005-03-13  Joseph S. Myers  <joseph@codesourcery.com>
29125
29126         PR c/20402
29127         * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
29128         through into call to parser_xref_tag after parse error.
29129         (c_parser_struct_declaration): Consistently return NULL_TREE on
29130         error.
29131
29132 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
29133
29134         * tree-flow-inline.h (ref_contains_array_ref): New function.
29135         (lookup_subvars_for_var): Ditto.
29136         (get_subvars_for_var): Ditto.
29137         (var_can_have_subvars): Ditto.
29138
29139         * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
29140         (struct subvar): New type.
29141
29142         * tree-dfa.c (okay_component_ref_for_subvars): New function.
29143
29144         * tree-optimize.c (init_tree_optimization_passes): Call
29145         pass_create_structure_vars.
29146
29147         * tree-ssa-alias.c: Include vec.h.
29148         (init_alias_info): Don't auto-clear call clobbered on struct-field
29149         tags.
29150         (compute_flow_insensitive_aliasing): Handle subvars.
29151         (group_aliases): Handle STRUCT_FIELD aliases.
29152         (setup_pointers_and_addressables): Ditto.
29153         Don't mark variables non-addressable if they still have
29154         addressable subvars.
29155         Also mark subvars addressable when the real variable is marked
29156         addressable.
29157         (add_pointed_to_var): Try to prune the pointed-to set by only
29158         pointing to subvars when possible.
29159         Otherwise, make sure we set addresses_needed and pt_vars to
29160         properly include subvars.
29161         (bitpos_of_field): New function.
29162         (push_fields_onto_fieldstack): Ditto.
29163         (get_or_create_used_part_for): Ditto.
29164         (create_overlap_variables_for): Ditto.
29165         (find_used_portions): Ditto.
29166         (create_structure_vars): Ditto.
29167         (pass_create_structure_vars): New structure.
29168
29169         * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
29170         (get_expr_operands): Handle subvars.  Also try to turn
29171         COMPONENT_REF accesses into must-defs now that we can accurately
29172         portray it.
29173         (note_addressable): Try to only mark as addressable those subvars
29174         we know a COMPONENT_REF touches.
29175         (overlap_subvar): New function.
29176
29177         * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
29178         Handle subvar storing.
29179         (vect_address_analysis): Update caller of vect_object_analysis.
29180
29181         * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
29182
29183         * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
29184         (STMT_VINFO_SUBVARS): New macro.
29185
29186         * common.opts: add flag_tree_salias.
29187
29188         * opts.c (decode_options): flag_tree_salias defaults to on.
29189
29190         * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
29191
29192         * doc/tree-ssa.texi: Document structural alias analysis.
29193
29194 2005-03-12  Steven Bosscher  <stevenb@suse.de>
29195
29196         * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
29197         * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
29198         * tree-ssa-operands.c (get_expr_operands): Likewise.
29199         (get_expr_operands): Likewise for ERROR_MARK.
29200
29201 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
29202
29203         * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
29204         var.
29205
29206         * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
29207         removed_phis.
29208
29209         * tree-ssa-pre.c (compute_avail): Remove local variable val.
29210         (mark_operand_necessary): Remove local variable ver.
29211
29212         * tree-vect-transform.c (vect_get_new_vect_var): Remove local
29213         variable prefix_len.
29214
29215         * value-prof.c (mod_subtract_transform): Remove local variable
29216         value.
29217
29218         * builtins.c (fold_builtin_exponent): Take decomposed
29219         arguments of CALL_EXPR.
29220         (fold_builtin_1): Update a call to fold_builtin_exponent.
29221
29222         * builtins.c (fold_builtin_logarithm): Take decomposed
29223         arguments of CALL_EXPR.
29224         (fold_builtin_1): Update a call to fold_builtin_logarithm.
29225
29226         * c-decl.c (c_init_decl_processing): Remove local variables
29227         ptr_ftype_void and ptr_ftype_ptr.
29228
29229         * gimplify.c (gimplify_expr): Remove local variables r0 and
29230         r1.
29231
29232         * reg-stack.c (move_for_stack_reg): Remove local variable
29233         push_insn.
29234         (compare_for_stack_reg): Remove local variable flags_user.
29235         (convert_regs_1): Remove local variable deleted.
29236
29237         * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
29238         variable new_cond.
29239         (combine_blocks): Remove local variables exits and new_e.
29240
29241         * tree-inline.c (expand_call_inline): Remove local variable
29242         decl.
29243
29244         * tree-ssa-live.c (create_ssa_var_map,
29245         calculate_live_on_entry): Remove local variable snn.
29246
29247 2005-03-12  Geoffrey Keating  <geoffk@apple.com>
29248
29249         * c-lex.c (c_lex_with_flags): Add parameter to call to
29250         cpp_spell_token.
29251
29252 2005-03-11  Per Bothner  <per@bothner.com>
29253
29254         * c-tree.h (struct c_declarator): New id_loc field.
29255         * c-pragma.h (c_lex_with_flags): Take position reference.
29256         * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
29257         iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
29258         (c_lex): Pass dummy location to c_lex_with_flags.
29259         * c-parser.c (c_lex_one_token): Set c_token's location using
29260         c_lex_with_flags, instead of input_location, which might be "ahead".
29261         (c_parser_direct_declarator): Set declarator's id_loc from
29262         c_token's id_loc.
29263         * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
29264         declarator's id_loc, rather than probably-imprecise input_location.
29265         (build_id_declarator): Initialize c_declarator's id_loc field.
29266
29267 2005-03-11  Roger Sayle  <roger@eyesopen.com>
29268
29269         PR middle-end/20419
29270         * builtins.c (expand_builtin_signbit): Force the signbit's word
29271         into an integer register to avoid SUBREGs of floating point modes.
29272
29273 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
29274
29275         * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
29276         target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
29277         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
29278         config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
29279
29280 2005-03-11  David Edelsohn  <edelsohn@gnu.org>
29281
29282         PR rtl-optimization/20306
29283         * expr.c (emit_move_complex): Set try_int false if mode is
29284         MODE_COMPLEX_FLOAT and mov_optab exists for inner mode.  Only try
29285         emit_block_move if try_int is true.
29286
29287 2005-03-11  Richard Henderson  <rth@redhat.com>
29288
29289         PR target/20415
29290         * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
29291         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
29292         to match.
29293
29294 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
29295
29296         * config/mips/mips.h (mips_fix_vr4130_string): Declare.
29297         (TARGET_FIX_VR4130): New macro.
29298         (TARGET_OPTIONS): Add -mfix-vr4130.
29299         (ISA_HAS_MACCHI): New macro.
29300         (ASM_SPEC): Add -mfix-vr4130.
29301         * config/mips/mips.c (mips_fix_vr4130_string): New variable.
29302         (override_options): Handle mips_fix_vr4130_string.
29303         (mips_avoid_hazards): Clear all_noreorder_p
29304         if we're working around VR4130 errata and the macc alternatives
29305         are not available.
29306         * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
29307         (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
29308         * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
29309         (MULTILIB_DEFAULTS): Remove leading "march=".
29310         (DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
29311         if no architecture option is given.
29312         * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
29313         VR4130 multilibs.
29314         (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
29315         * doc/invoke.texi: Document -mfix-vr4130.
29316
29317 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
29318
29319         * config/mips/mips.c (override_options): Only warn about -mint64
29320         deprecation if TARGET_INT64.
29321
29322 2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29323
29324         * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
29325         ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
29326         ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
29327         are non-specific regarding the nonnull parameter positions.
29328         (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
29329         ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
29330         ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
29331         ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
29332
29333         * builtins.def: Use the non-specific "nonnull" attibute lists.
29334
29335 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
29336
29337         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
29338         single_pred_edge, single_succ, single_pred): Improve comments.
29339
29340 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
29341
29342         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
29343         single_pred_edge, single_succ, single_pred): New inline functions.
29344         * bb-reorder.c (rotate_loop, find_traces_1_round,
29345         add_labels_and_missing_jumps, fix_up_fall_thru_edges,
29346         duplicate_computed_gotos): Use the single_succ/pred functions.
29347         * cfganal.c (forwarder_block_p): Ditto.
29348         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
29349         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
29350         outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
29351         merge_seq_blocks): Ditto.
29352         * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
29353         * cfglayout.c (fixup_reorder_chain): Ditto.
29354         * cfgloop.c (mark_single_exit_loops, update_latch_info,
29355         canonicalize_loop_headers, verify_loop_structure): Ditto.
29356         * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
29357         mfb_update_loops, create_preheader, force_single_succ_latches,
29358         create_loop_notes): Ditto.
29359         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
29360         force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
29361         commit_one_edge_insertion, purge_dead_edges,
29362         cfg_layout_can_merge_blocks_p): Ditto.
29363         * except.c (sjlj_emit_function_enter): Ditto.
29364         * flow.c (init_propagate_block_info): Ditto.
29365         * function.c (thread_prologue_and_epilogue_insns): Ditto.
29366         * gcse.c (find_implicit_sets, bypass_conditional_jumps,
29367         insert_insn_end_bb): Ditto.
29368         * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
29369         find_if_case_2): Ditto.
29370         * lambda-code.c (perfect_nestify): Ditto.
29371         * lcm.c (optimize_mode_switching): Ditto.
29372         * loop-doloop.c (doloop_modify): Ditto.
29373         * loop-init.c (loop_optimizer_init): Ditto.
29374         * loop-iv.c (simplify_using_initial_values): Ditto.
29375         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
29376         * loop-unswitch.c (unswitch_loop): Ditto.
29377         * modulo-sched.c (generate_prolog_epilog): Ditto.
29378         * predict.c (combine_predictions_for_insn, estimate_probability,
29379         tree_estimate_probability, last_basic_block_p,
29380         estimate_bb_frequencies): Ditto.
29381         * profile.c (branch_prob): Ditto.
29382         * regrename.c (copyprop_hardreg_forward): Ditto.
29383         * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
29384         * tracer.c (layout_superblocks): Ditto.
29385         * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
29386         cfg_remove_useless_stmts_bb, cleanup_control_flow,
29387         cleanup_control_expr_graph, disband_implicit_edges,
29388         tree_find_edge_insert_loc, bsi_commit_edge_inserts,
29389         tree_verify_flow_info, tree_make_forwarder_block,
29390         tree_forwarder_block_p, remove_forwarder_block,
29391         remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
29392         * tree-if-conv.c (tree_if_conversion): Ditto.
29393         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
29394         * tree-ssa-dce.c (remove_dead_stmt): Ditto.
29395         * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
29396         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
29397         copy_loop_headers): Ditto.
29398         * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
29399         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
29400         * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
29401         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
29402         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
29403         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
29404         * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
29405         * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
29406         * tree-ssa-threadupdate.c (redirect_edges): Ditto.
29407         * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
29408         eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
29409         * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
29410         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
29411         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
29412         slpeel_add_loop_guard): Ditto.
29413
29414 2005-03-11  James A. Morrison  <phython@gcc.gnu.org>
29415
29416         PR tree-optimization/15784
29417         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
29418         and -1 - A to ~A.
29419
29420         * stmt.c (expand_case): Don't change index_type.  Convert minval
29421         to the proper type.
29422
29423         PR tree-optimization/20130
29424         * fold-const.c (fold): Fold x * -1 into -x.
29425
29426 2005-03-11  Kaz Kojima  <kkojima@gcc.gnu.org>
29427
29428         PR rtl-optimization/20331
29429         * rtlanal.c (modified_between_p): Check its address first for MEM.
29430         (modified_in_p): Likewise.
29431
29432 2005-03-11  Joseph S. Myers  <joseph@codesourcery.com>
29433
29434         * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
29435
29436 2005-03-10  Steven Bosscher  <stevenb@suse.de>
29437
29438         * expr.c (expand_expr_real_1): If possible, use a conditional
29439         move for expanding MIN_EXPR and MAX_EXPR.
29440         Use temp for moving around rtx-en.
29441
29442 2005-03-10  Andrew Pinski  <pinskia@physics.uc.edu>
29443
29444         PR rtl-opt/20412
29445         * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
29446         correct mode.
29447
29448 2005-03-10  Roger Sayle  <roger@eyesopen.com>
29449
29450         * builtins.c (expand_builtin_signbit): Extend to handle floating
29451         point modes wider than the largest integer type, using the
29452         operand_subword_force function to obtain the signbit's word.
29453
29454 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
29455
29456         PR target/20322
29457         * combine.c (try_combine): If recog_for_combine added CLOBBERs
29458         to NEWI2PAT, fail to combine if they are used by NEWPAT.
29459
29460 2005-03-10  Aldy Hernandez  <aldyh@redhat.com>
29461
29462         * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
29463
29464 2005-03-10  Kazu Hirata  <kazu@cs.umass.edu>
29465
29466         * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
29467         type void.
29468         (perform_edge_inserts): Unconditionally call
29469         free_dominator_info.
29470
29471         * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
29472
29473 2005-03-10  Bob Wilson  <bob.wilson@acm.org>
29474
29475         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
29476
29477 2005-03-10  Nathan Sidwell  <nathan@codesourcery.com>
29478
29479         * bitmap.c (bitmap_copy): Remove manual loop unrolling.
29480
29481         * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
29482         gcc_unreachable.
29483         (rtl_register_value_prof_hooks,
29484         tree_value_profile_transformations,
29485         tree_register_value_prof_hooks): Likewise.
29486         * var-tracking.c (stack_adjust_offset_pre_post,
29487         variable_htab_free, variable_union, dataflow_set_different_2,
29488         count_uses, variable_was_changed, set_frame_base_location,
29489         set_variable_part, emit_note_insn_var_location, vt_emit_notes,
29490         vt_add_function_parameters): Likewise.
29491         * varasm.c (named_section_real, named_section, make_decl_rtl,
29492         asm_emit_uninitialised, assemble_integer, decode_addr_const,
29493         const_hash_1, compare_constant, copy_constant, force_const_mem,
29494         output_constant_pool_2, output_constant_pool_1, output_constant,
29495         output_constructor, make_decl_one_only, decl_tls_model,
29496         default_no_named_section, default_elf_select_section_1,
29497         default_unique_section_1): Likewise.
29498         * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
29499         * vmsdbgout.c (addr_const_to_string): Likewise.
29500
29501         PR c++/20375
29502         * function.c (struct assign_parm_data_one): Remove last_named
29503         field.
29504         (assign_parm_find_data_types): Don't determine last_named.
29505         Reorder named_parm determination.
29506         (assign_parms): Only setup varargs on the last non-varadic
29507         parameter.
29508
29509 2005-03-10  Kazuhiro Inaoka  <inaoka.lazuhiro@renesas.com>
29510
29511         * config/m32r/m32r.md (load_sda_base_32): New pattern.  Loads
29512         sda base address on medium model.
29513
29514 2005-03-10  Zdenek Dvorak  <dvorakz@suse.cz>
29515
29516         * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
29517         * cfgloop.c (flow_loop_nodes_find): Export.
29518         * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
29519         Declare.
29520         * cfgloopmanip.c (fix_loop_structure): New function.
29521         * predict.c (predict_loops): Clean up the loops information.
29522         * tree-cfg.c (cleanup_tree_cfg_loop): New function.
29523         (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
29524         loop structure.
29525         * tree-flow.h (cleanup_tree_cfg_loop): Declare.
29526         (rewrite_into_loop_closed_ssa): Declaration changed.
29527         * tree-loop-linear.c (linear_transform_loops): Add argument to
29528         rewrite_into_loop_closed_ssa call.
29529         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
29530         * tree-ssa-loop-im.c (move_computations): Ditto.
29531         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
29532         * tree-vectorizer.c (vectorize_loops): Ditto.
29533         * tree-optimize.c: Include cfgloop.h.
29534         (execute_todo): Choose whether to call cleanup_tree_cfg or
29535         cleanup_tree_cfg_loop.
29536         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
29537         (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
29538         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
29539         cleanup_tree_cfg_loop call.
29540         * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
29541         (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
29542         work on part of cfg.
29543
29544 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
29545
29546         PR inline-asm/20314
29547         * gimplify.c (gimplify_asm_expr): Handle input/output constraints
29548         with multiple alternatives.
29549
29550         * stmt.c (parse_output_constraint): Fix a typo.
29551
29552 2005-03-09  Bob Wilson  <bob.wilson@acm.org>
29553
29554         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
29555         assembly directive instead of deprecated "no-generics".
29556
29557 2005-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
29558
29559         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
29560         for non-offsettable memory references to cope with outstanding reload
29561         replacements.
29562         * config/s390/s390.md ("reload_outti"): Call find_replacement to
29563         avoid losing outstanding address reloads.
29564         ("reload_outdi", "reload_outdf"): Likewise.
29565
29566 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29567
29568         * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
29569         code.  Add more cbrt transformations.
29570
29571 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29572
29573         * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
29574
29575 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
29576
29577         * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
29578         NULL_TREE when a given tree is not simplified.
29579         (fold): Return the original tree when any of the functions
29580         mentioned above NULL_TREE.
29581
29582         * fold-const.c (fold_unary, fold_binary): Take decomposed
29583         arguments, code, type, op0, and op1 in case of fold_binary.
29584         (fold): Update calls to fold_unary and fold_binary.
29585
29586 2005-03-09  Roger Sayle  <roger@eyesopen.com>
29587
29588         * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
29589         a fndecl and an arglist instead of a CALL_EXPR, exp.
29590
29591 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
29592
29593         * cfglayout.c (fixup_reorder_chain): Remove old_bb.
29594
29595         * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
29596
29597         * expr.c (expand_assignment): Remove orig_to_rtx.
29598
29599         * fold-const.c (int_const_binop): Remove no_overflow.
29600
29601         * ifcvt.c (noce_emit_move_insn): Remove inmode.
29602
29603         * loop-iv.c (get_biv_step_1): Remove lhs.
29604
29605         * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
29606
29607         * real.c (real_nan): Remove neg.
29608
29609         * function.c (thread_prologue_and_epilogue_insns): Remove i
29610         and newinsn.
29611
29612         * tree-data-ref.c (array_base_name_differ_p): Remove ta and
29613         tb.
29614
29615         * tree-eh.c (tree_could_trap_p): Remove idx.
29616
29617         * tree-into-ssa.c (ann): Remove ann.
29618
29619         * tree-outof-ssa.c (num_nodes): Remove num_nodes.
29620
29621         * tree-sra.c (decide_block_copy): Remove inst_count.
29622
29623         * tree-ssa-alias.c (may_alias_p): Remove v_ann.
29624
29625         * tree-ssa-loop-im.c (lhs): Remove.
29626
29627         * cfgbuild.c (state, STATE, SET_STATE,
29628         BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
29629         make_edges.
29630         (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
29631         (find_basic_blocks): Set the state of each basic block to
29632         BLOCK_NEW.
29633
29634 2005-03-08  Jeff Law  <law@redhat.com>
29635
29636         * tree-cfg.c (cleanup_control_flow): If removal of a computed
29637         goto results in the removal of edges in the CFG, then we need
29638         to recompute dominators.
29639
29640 2005-03-09  Ben Elliston  <bje@au.ibm.com>
29641
29642         * c-common.c (c_do_switch_warnings): Comment fix.
29643
29644 2005-03-08  Julian Brown  <julian@codesourcery.com>
29645
29646         * Patch from 2005-03-08 reverted for causing regressions and
29647         ppc-darwin bootstrap failure.
29648
29649 2005-03-08  Fariborz Jahanian <fjahanian@apple.com>
29650
29651         * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
29652         Define the real function for ppc-darwin.
29653         * c-typeck.c (convert_arguments): Check for target-specific
29654         invalid argument call to unprototyped function.
29655         * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
29656         New Macro.
29657         * target.h (invalid_arg_for_unprototyped_fn): New field
29658         in struct calls.
29659         * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
29660         default target hook.
29661         * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
29662         Declare.
29663
29664 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
29665
29666         * c-typeck.c (constructor_stack, constructor_range_stack,
29667         initializer_stack): Make them static.
29668
29669         * cfg.c (rbi_pool): Make it static.
29670
29671         * gimple-low.c (lower_stmt_body): Make it static.
29672         * tree-flow.h: Remove the corresponding prototype.  Don't
29673         declare lower_data.
29674
29675         * sched-deps.c (cache_size): Make it static.
29676
29677         * stor-layout.c (lang_adjust_rli): Make it static.
29678
29679 2005-03-08  Julian Brown  <julian@codesourcery.com>
29680
29681         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
29682         from being used for symbols with vague linkage when
29683         HAVE_GAS_COMDAT_GROUP is true.
29684
29685 2005-03-08  J"orn Rennecke <joern.rennecke@st.com>
29686
29687         * jump.c (invert_jump_1): Don't call redirect_jump_1 with
29688         nlabel == JUMP_LABEL (jump).
29689
29690 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
29691
29692         * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
29693         gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
29694         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
29695         tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
29696
29697 2005-03-08  Alexey Neyman  <alex.neyman@auriga.ru>
29698
29699         PR c/14411
29700         * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
29701         * c-common.c (handle_returns_twice): New function.
29702         (c_common_attribute_table): Declare eturns_twice' attribute.
29703         * doc/extend.texi: Document eturns_twice' attribute.
29704         * tree.h (DECL_IS_RETURNS_TWICE): New macro.
29705         (struct tree_decl): Add returns_twice_flag.
29706
29707 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
29708
29709         * tree-ssa-phiopt.c: Fix a comment typo.
29710
29711         * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
29712         loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
29713         config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
29714         copyright.
29715
29716 2005-03-08  Richard Henderson  <rth@redhat.com>
29717
29718         * config/alpha/alpha.c (code_for_builtin): Replace special-case
29719         builtin codes with ctzdi2, clzdi2, popcountdi2.
29720         (struct alpha_builtin_def): Add is_const.
29721         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
29722         (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
29723         (alpha_init_builtins): Init them.  Set nothrow and const attributes
29724         on builtins.
29725         (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
29726         alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
29727         alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
29728         alpha_fold_vector_minmax, alpha_fold_builtin_perr,
29729         alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
29730         alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
29731         alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
29732         alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
29733         (TARGET_FOLD_BUILTIN): New.
29734         * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
29735         (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
29736         (ffsdi2): Use ctz.
29737         (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
29738
29739 2005-03-08  Ira Rosen  <irar@il.ibm.com>
29740
29741         PR tree-optimization/20122
29742         * tree-vect-analyze.c (vect_object_analysis): Analyze initial
29743         condition of access function instead of base.
29744
29745 2005-03-07  Jeff Law  <law@redhat.com>
29746             Steven Bosscher  <stevenb@suse.de>
29747
29748         * tree-cfg.c (find_taken_edge_computed_goto): New function.
29749         (find_taken_edge): Call find_taken_edge_computed_goto as
29750         appropriate.  Allow any gimple invariant rather than just
29751         INTEGER_CST for VAL.
29752         (cleanup_control_flow): Cleanup a computed goto which has turned
29753         into a simple goto.
29754         (tree_merge_blocks): If block B has any forced labels, move
29755         them to the start of block A.
29756         * tree-ssa-dom.c (thread_across_edge): Allow threading across
29757         computed gotos as well.
29758         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
29759         removal of unnecessary computed gotos too.
29760         (lookup_redirection_data): Fix type of INSERT argument.  Callers
29761         updated.
29762
29763 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
29764
29765         * tree-ssa-phiopt.c: Update copyright.  Fix indentations.
29766         Remove trailing spaces.
29767
29768         * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
29769         unshare_all_trees): Make them static.
29770         * tree-gimple.h: Remove the corresponding prototypes.
29771
29772         * diagnostic.h: Remove unused prototype
29773         debug_output_buffer.
29774         * modulo-sched.c: Remove unused prototype
29775         set_row_column_for_ps.
29776
29777         * tree-ssa-phiopt.c (tree_ssa_phiopt,
29778         replace_phi_edge_with_variable): Remove unused variable i.
29779
29780 2005-03-07  Per Bothner  <per@bothner.com>
29781
29782         * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
29783
29784 2005-03-06  Andrew Pinski  <pinskia@physics.uc.edu>
29785
29786         PR tree-opt/17671
29787         * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
29788         bbs on the COND_EXPR instead of the PHI_NODEs.
29789         (candidate_bb_for_phi_optimization): Remove.
29790         (replace_phi_with_stmt): Rename to ...
29791         (replace_phi_edge_with_variable): this and change so that we
29792         replace the phi argument instead of removing the PHI.
29793         (conditional_replacement): Change so we deal with PHI with more
29794         than two arguments.
29795         (value_replacement): Likewise.
29796         (abs_replacement): Likewise.
29797
29798 2005-03-07  Aldy Hernandez  <aldyh@redhat.com>
29799
29800         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
29801         output_e500_flip_gt_bit.
29802
29803         * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
29804         as bit 31.
29805         (rs6000_generate_compare): Fix logic to look at the correct bits.
29806         (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
29807         Look at GT bit.
29808         (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
29809         gen_e500_flip_gt_bit.  Rename gen_move_from_CR_eq_bit to
29810         gen_move_from_CR_gt_bit.
29811
29812         * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
29813         ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
29814         (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
29815
29816         * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
29817         (E500_CR_IOR_COMPARE): New constant.
29818
29819 2005-03-08  Earl Chew <earl_chew@agilent.com>
29820             David Billinghurst <David.Billinghurst@riotinto.com>
29821
29822         * config/i386/host-cygwin.c: New file to support precompiled
29823         headers on cygwin
29824         * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
29825         * config.host: Use above files for cygwin host.
29826
29827 2005-03-07  David Edelsohn  <edelsohn@gnu.org>
29828
29829         * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
29830         ordering ops from earlier change.
29831
29832 2005-03-07  Per Bothner  <per@bothner.com>
29833
29834         Various fixes to allow us to again build if --enable-mapped-location:
29835         * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
29836         unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
29837         * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
29838         local variable loc. Change logic appropriately.
29839         * tree-vect-transform.c (vect_finish_stmt_generation): Use
29840         EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
29841         * c-parser.c (c_parser_for_statement): Initialize loc variable.
29842         * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
29843         DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
29844
29845 2005-03-07  Richard Sandiford  <rsandifo@redhat.com>
29846
29847         PR rtl-optimization/19683
29848         * reload1.c (choose_reload_regs): Pass the number of bits, not the
29849         number of bytes, to smallest_int_for_mode.  Fix arguments to
29850         REG_CANNOT_CHANGE_MODE_P.
29851
29852 2005-03-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
29853
29854         * reorg.c (relax_delay_slots): Check that the jump is
29855         conditional before trying to invert it.
29856
29857 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
29858
29859         * bb-reorder.c (max_entry_frequency, max_entry_frequency):
29860         Make them static.
29861
29862         * calls (stack_arg_under_construction): Make it static.
29863
29864         * flow.c (regs_live_at_setjmp): Make it static.
29865         * flow.h: Remove the corresponding prototype.
29866
29867         * reload1.c (reload_startobj, reload_firstobj,
29868         something_needs_operands_changed, reload_inherited,
29869         reload_inheritance_insn, reload_override_in,
29870         reload_spill_index): Make them static.
29871
29872         * recog.c (verify_changes): Make it static.
29873         * recog.h: Remove the corresponding prototype.
29874
29875         * cfgbuild.c (find_sub_basic_blocks): Remove.
29876         * basic-block.h: Remove the corresponding prototype.
29877         * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
29878         in comments.
29879         * doc/cfg.texi: Don't mention find_sub_basic_blocks.
29880
29881         * tree-ssa-operands.c (check_build_stmt): Remove.
29882
29883         * stor-layout.c (set_alignment): Remove.
29884         * tree.h: Remove the corresponding prototype.
29885
29886         * tree-ssa-pre.c (has_abnormal_preds): Make it static.
29887
29888         * tree-ssa-dce.c (control_dependence_map,
29889         visited_control_parents): Make them static.
29890
29891         * cfghooks.c (verify_flow_info): Remove local variable
29892         num_bb_notes.
29893
29894         * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
29895         last_bb_seen.
29896
29897         * loop-unswitch.c (unswitch_loop): Remove local variable src.
29898
29899 2005-03-07  David Billinghurst <David.Billinghurst@riotinto.com>
29900
29901         * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
29902
29903 2005-03-07  Joseph S. Myers  <joseph@codesourcery.com>
29904
29905         * config/ia64/hpux.h (LINK_SPEC): Add -z.
29906         * config/ia64/ia64.c (ia64_function_value): Return a REG not a
29907         PARALLEL for an empty structure.
29908
29909 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
29910
29911         * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
29912
29913         * fold-const.c (fold_binary): Unroll the very first "for"
29914         loop.
29915
29916 2005-03-06  David Edelsohn  <edelsohn@gnu.org>
29917
29918         * config/rs6000/predicates.md (branch_comparison_operator): Remove
29919         redundant match_code test.
29920         (scc_comparison_operator): Swap match_operand and match_code
29921         tests.
29922         (branch_positive_comparison_operator): Same.
29923         (trap_comparison_operator): Use comparison_operator and swap with
29924         match_code test.
29925
29926 2005-03-06  Marek Michalkiewicz  <marekm@amelek.gda.pl>
29927
29928         PR target/20288
29929         * config/avr/avr.c (print_operand): Add 'p' and 'r'.
29930         (out_movhi_r_mr): Read low byte of volatile MEM first.
29931         (out_movhi_mr_r): Write high byte of volatile MEM first.
29932
29933 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
29934
29935         * cselib.c (reg_values, reg_values_size): Make them static.
29936
29937         * cse.c (cse_reg_info_table): Make it static.
29938
29939         * fold-const.c (fold_unary): Use build1 instead of copy_node.
29940
29941 2005-03-06  Zdenek Dvorak  <dvorakz@suse.cz>
29942
29943         * cse.c (find_best_addr): Use canon_for_address.
29944
29945 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
29946
29947         * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
29948         (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
29949         SUBREG and MEM, respectively.
29950
29951         * fold-const.c (fold_binary): Use code instead of t.
29952
29953         * fold-const.c (optimize_minmax_comparison): Take decomposed
29954         arguments code, type, op0, and op1 instead of t.
29955         (fold_binary): Update a call to optimize_minmax_comparison.
29956
29957         * fold-const.c (fold_range_test): Take decomposed arguments
29958         code, type, op0, and op1 instead of t.
29959         (fold_binary): Update a call to fold_range_test.
29960
29961         * fold-const.c (fold_binary_op_with_conditional_arg): Take
29962         decomposed arguments code, type, op0, and op1 instead of t.
29963         (fold_binary): Update a call to fold_range_test.
29964
29965 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
29966
29967         * fold-const.c (fold_binary): Avoid directly using the original
29968         expression t as much as possible.
29969
29970 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
29971
29972         * c-semantics.c (build_stmt): Use TYPE_P instead of
29973         IS_NON_TYPE_CODE_CLASS.
29974         * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
29975         (NON_TYPE_CHECK): Use TYPE_P instead of
29976         IS_NON_TYPE_CODE_CLASS.
29977
29978         * fold-const.c (fold): Remove handling of binary expressions.
29979
29980 2005-03-05  James A. Morrison  <phython@gcc.gnu.org>
29981
29982         * doc/c-tree.texi: Wrap comments in @r{}.
29983         * doc/cpp.texi: Likewise.
29984         * doc/cppinternals.texi: Likewise.
29985         * doc/extend.texi: Likewise.
29986         * doc/md.texi: Likewise.
29987         * doc/objc.texi: Likewise.
29988         * doc/sourcebuild.texi: Likewise.
29989         * doc/tm.texi: Likewise.
29990         * doc/tree-ssa.texi
29991
29992 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
29993
29994         * predict.c (apply_return_prediction): Standardize PHI chain
29995         walking.
29996         * tree-ssa.c (ssa_redirect_edge): Likewise.
29997
29998         * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
29999         gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
30000         Update copyright.
30001
30002         * tree-phinodes.c (remove_phi_node): Drop the last argument.
30003         * tree-flow.h: Adjust the prototype for remove_phi_node.
30004         * lambda-code.c (perfect_nestify): Adjust a call to
30005         remove_phi_node.
30006         * tree-cfg.c
30007         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
30008         * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
30009         Likewise.
30010         * tree-ssa-dce.c (remove_dead_phis): Likewise.
30011         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
30012         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
30013         * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
30014
30015         * combine.c (simplify_and_const_int): Use gen_int_mode instead
30016         of GEN_INT (trunc_int_for_mode (...)).
30017         * loop-iv.c (iv_number_of_iterations): Likewise.
30018         * postreload.c (reload_cse_move2add): Likewise.
30019         * simplify-rtx.c (simplify_const_unary_operation,
30020         simplify_const_binary_operation): Likewise.
30021         * stor-layout.c (get_mode_bounds): Likewise.
30022
30023         * fold-const.c (fold_binary): New.
30024         (fold): Call fold_binary on binary expressions.
30025
30026 2005-03-05  Richard Sandiford  <rsandifo@redhat.com>
30027
30028         * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
30029         * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
30030         (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
30031         (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
30032         (ASM_SPEC): Pass down -msym32 and -mno-sym32.
30033
30034 2005-03-04  Devang Patel  <dpatel@apple.com>
30035
30036         PR tree-optimization/18815
30037         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
30038         loops with zero exit edges.
30039
30040 2005-03-04  Devang Patel  <dpatel@apple.com>
30041
30042         * doc/invoke.texi: Remove reference to webpage that does not exist.
30043
30044 2005-03-04  John David Anglin  <dave.danglin@nrc-cnrc.gc.ca>
30045             Joseph S. Myers  <joseph@codesourcery.com>
30046
30047         PR c++/19797
30048         * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
30049         (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
30050         * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
30051         * pa.c (get_plabel): Change argument to symbol_ref.  Call
30052         maybe_get_identifier instead of get_identifier.
30053         (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
30054         (struct deferred_plabel): Replace name field with symbol field.
30055         (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
30056         ASM_OUTPUT_EXTERNAL_REAL is defined.
30057         (output_global_address): Use output_addr_const for output of all
30058         symbol_refs.
30059         (output_deferred_plabels): Use symbol_ref instead of name for address
30060         output.
30061         * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
30062         ASM_OUTPUT_SYMBOL_REF): New macros.
30063         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw.  Update
30064         comment.
30065         (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
30066         label.
30067
30068 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
30069
30070         * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
30071         *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
30072
30073 2005-03-04  Jeff Law  <law@redhat.com>
30074
30075         * basic-block.h (rediscover_loops_after_threading): Declare.
30076         * tree-ssa-dom.c: Include cfgloop.h.
30077         (tree_ssa_dominator_optimize): Discover loops and some basic
30078         properties.  Remove forwarder blocks recreated by loop header
30079         canonicalization.  Also mark backedges in the CFG.
30080         * tree-ssa-threadupdate.c: Include cfgloop.h
30081         (rediscover_loops_after_threading): Define.
30082         (struct local_info): New field, JUMP_THREADED.
30083         (prune_undesirable_thread_requests): New function.
30084         (redirect_edges): Clear EDGE_ABNORMAL.  If edges were threaded
30085         then record that fact for the callers of redirct_edges.
30086         (thread_block): If BB has incoming backedges, then call
30087         prune_undesirable_thraed_requests.    Note when we are
30088         going to have to rediscover loop information.  Return a
30089         boolean indicating if any jumps were threaded.
30090         (thread_through_all_blocks): Bubble up boolean indicating
30091         if any jumps were threaded.
30092         * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
30093         (tree-ssa-threadupdate.o): Similarly.
30094
30095 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
30096
30097         * fold-const.c (fold_ternary): Unroll the "for" loop to
30098         extract operands.
30099
30100 2005-03-04  Andrew Haley  <aph@redhat.com>
30101
30102         * unwind-dw2-fde-glibc.c (struct
30103         unw_eh_callback_data.check_cache): New field.
30104         (frame_hdr_cache): New.
30105         (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
30106         Cache frame header info.
30107
30108 2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
30109
30110         * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
30111         (print_c_condition): Declare.
30112         * read-rtl.c (ptr_loc): New structure.
30113         (ptr_locs, ptr_loc_obstack, joined_conditions)
30114         (joined_conditions_obstack): New variables.
30115         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
30116         (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
30117         (join_c_conditions, print_c_condition): New functions.
30118         (apply_macro_to_string): Associate the new string with the same
30119         source location as the old one.
30120         (add_condition_to_string): Use join_c_conditions.
30121         (read_string): Use set_rtx_ptr_loc to record a filename and line
30122         number for the string.
30123         (read_rtx): Initialize the new variables above.
30124         * genattrtab.c (write_test_expr, write_attr_value): Use
30125         print_c_condition.
30126         * genconditions.c (write_header): Don't define MAYBE_EVAL.  Move its
30127         comment above the GCC_VERSION check.
30128         (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
30129         Inline the definition of MAYBE_EVAL.
30130         * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
30131         * genoutput.c (process_template): Likewise.
30132         * genpreds.c (write_predicate_subfunction): Likewise.
30133         (write_predicate_expr): Use print_c_condition.
30134         * genrecog.c (write_cond): Likewise.
30135         * gensupport.c (process_rtx): Use join_c_conditions to join the
30136         conditions of a define_insn_and_split.  Record a source location
30137         for the string after the "&&".
30138         (alter_test_for_insn): Use join_c_conditions.
30139
30140 2005-03-04  Andrew Pinski  <pinskia@physics.uc.edu>
30141
30142         Revert for now:
30143         2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
30144         PR tree-optimization/15784
30145         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
30146         and -1 - A to ~A.
30147
30148 2005-03-04  Ben Elliston  <bje@au.ibm.com>
30149
30150         * gcc.c (option_map): Add --coverage.
30151         (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
30152         (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
30153         * config/darwin.h: Pass -lgcov for `coverage'.
30154         * doc/invoke.texi (Debugging Options): Document --coverage.
30155
30156 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
30157
30158         * gcse.c (bypass_block): Use find_edge wherever possible.
30159
30160 2005-03-03  Daniel Berlin <dberlin@dbrelin.org>
30161
30162         Fix PR debug/20253
30163
30164         * c-opts.c (c_common_parse_file): Call start_source_file
30165         and end_source_file at the approriate times.
30166
30167         * dwarf2out.c (dwarf2out_finish): Don't auto-end
30168         the main file, it will be done for us now.
30169
30170 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
30171
30172         * fold-const.c (fold_ternary): New.
30173         (fold): Call fold_ternary on ternary expressions.  Remove
30174         handling of ternary expressions.
30175
30176 2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
30177
30178         PR tree-optimization/15784
30179         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
30180         and -1 - A to ~A.
30181
30182 2005-03-03  David Edelsohn  <edelsohn@gnu.org>
30183
30184         * config/rs6000/predicates.md (branch_comparison_operator):
30185         Convert from C block to conditional format.
30186
30187 2005-03-03  Jan Hubicka  <jh@suse.cz>
30188
30189         * tree-dfa.c (add_referenced_var): Don't walk initializer of external
30190         and non-constant public variables.
30191
30192 2005-03-03  Kazu Hirata  <kazu@cs.umass.edu>
30193
30194         * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
30195         with LABEL_EXPR.
30196
30197         * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
30198         EDGE_I.
30199
30200         * tree-phinodes.c (remove_phi_node): Clean up by factoring out
30201         calls to release_ssa_name and release_phi_node.
30202
30203         * fold-const.c (fold): Remove handling of unary expressions.
30204
30205         * fold-const.c (fold_unary): Avoid directly using the original
30206         expression t as much as possible.
30207
30208 2005-03-03  Roger Sayle  <roger@eyesopen.com>
30209             Andrew Pinski  <pinskia@physics.uc.edu>
30210
30211         * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
30212         RETURN rtx, and not a LABEL_REF containing a NULL pointer.
30213
30214 2005-03-03  Hans-Peter Nilsson  <hp@axis.com>
30215
30216         Describe special registers SRP and MOF as allocatable registers.
30217         * config/cris/cris.c (cris_md_asm_clobbers): New function.
30218         (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
30219         (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
30220         TARGET_HAS_MUL_INSNS.
30221         (cris_print_operand) <case 'd'>: New case.
30222         <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
30223         * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
30224         define.
30225         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
30226         (REG_ALLOC_ORDER): Update for MOF.
30227         (enum reg_class): New members MOF_REGS, GENERAL_REGS and
30228         SPECIAL_REGS.
30229         (GENERAL_REGS): No longer a define of ALL_REGS.
30230         (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
30231         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
30232         Adjust accordingly.
30233         (CRIS_SPECIAL_REGS_CONTENTS): New macro.
30234         (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
30235         (SECONDARY_RELOAD_CLASS): Define.
30236         (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
30237         (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
30238         (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
30239         (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
30240         (REGISTER_MOVE_COST): Define.
30241         (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
30242         * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
30243         (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
30244         (CRIS_MOF_REGNUM): New define_constants.
30245         ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
30246         special registers.
30247         ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
30248         New patterns.
30249         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
30250         ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
30251         Adjust for MOF being properly described as a register.
30252         (indir_to_reg_split): Name this split.  Conditionalize on the
30253         destination register being a general register.
30254         (movei): Conditionalize on on operands 0 and 1 having the same
30255         register class.
30256
30257 2005-03-03  Alan Modra  <amodra@bigpond.net.au>
30258
30259         PR target/20277
30260         * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
30261         -mcpu to override any other explicitly given flags.
30262
30263 2005-03-02  J"orn Rennecke <joern.rennecke@st.com>
30264
30265         * recog.c (verify_changes, confirm_change_group): New functions,
30266         broken out of apply_change_group.
30267         (apply_change_group): Use them.
30268         * recog.h (verify_change, confirm_change_group): Declare.
30269         * rtl.h (redirect_jump_2): Declare.
30270         * jump.c (redirect_exp, invert_exp): Delete.
30271         (invert_exp_1): Take second parameter.  Return value.  Changed caller.
30272         (redirect_jump_2): New function, broken out of redirect_jump.
30273         (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
30274         (invert_jump): Use invert_jump_1 and redirect_jump_2.
30275         * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
30276
30277 2005-03-02  Geoffrey Keating  <geoffk@apple.com>
30278
30279         * varasm.c (named_section): Use xstrdup rather than doing it by
30280         hand.
30281
30282         * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
30283
30284 2005-03-02  Devang Patel  <dpatel@apple.com>
30285
30286         Undo PR tree-optimization/18815 fix.
30287
30288 2005-03-02  Devang Patel  <dpatel@apple.com>
30289
30290         PR tree-optimization/18815
30291         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
30292         loops with zero exit edges.
30293
30294 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
30295
30296         * cfg.c (connect_src, connect_dest, disconnect_src,
30297         disconnct_dest): New.
30298         (unchecked_make_edge, remove_edge, redirect_edge_succ,
30299         redirect_edge_pred): Use the new functions.
30300
30301         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
30302         free_dominance_info only when needed.
30303
30304 2005-03-02  David Edelsohn  <edelsohn@gnu.org>
30305
30306         PR target/20276
30307         * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
30308         (reg_or_sub_cint64_operand): Same.
30309
30310 2005-03-02  Jeff Law  <law@redhat.com>
30311
30312         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
30313         CFG_ALTERED in the main DOM iteration loop.
30314
30315 2005-03-02  Mark Mitchell  <mark@codesourcery.com>
30316
30317         PR c++/19916
30318         * varasm.c (initializer_constant_valid_p): Allow conversions
30319         between OFFSET_TYPEs.  Tidy.
30320
30321 2005-03-02  Hans-Peter Nilsson  <hp@axis.com>
30322
30323         * config/cris/cris.md ("return"): Remove epilogue delay list
30324         sanity check.
30325
30326 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
30327
30328         * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
30329         for Thumb.
30330         * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
30331
30332 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
30333
30334         * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
30335         loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
30336         config/m68k/m68k.c, config/mips/mips.h,
30337         config/rs6000/rs6000-protos.h, doc/contrib.texi,
30338         doc/include/gcc-common.texi: Update copyright.
30339
30340         PR middle-end/18029 and PR middle-end/18030
30341         * expr.c (optimize_bitfield_assignment_op): Add a special case
30342         to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
30343
30344         * fold-const.c (fold_unary): New.
30345         (fold): Call fold_unary on unary expressions.
30346
30347 2005-03-02  Richard Guenther  <rguenth@gcc.gnu.org>
30348
30349         * cgraph.h (struct cgraph_edge): Add prev_caller and
30350         prev_callee fields.
30351         (cgraph_node_remove_callees): Export.
30352         * cgraph.c (cgraph_create_edge): Initialize prev_caller
30353         and prev_callee.
30354         (cgraph_edge_remove_callee): New function.
30355         (cgraph_edge_remove_caller): Likewise.
30356         (cgraph_remove_edge): Use.
30357         (cgraph_redirect_edge_callee): Likewise.
30358         (cgraph_node_remove_callees): New function.
30359         (cgraph_node_remove_callers): Likewise.
30360         (cgraph_remove_node): Use.
30361         * tree-optimize.c (tree_rest_of_compilation): Use
30362         cgraph_node_remove_callees instead of manual loop.
30363         * cgraphunit.c (cgraph_finalize_function): Likewise.
30364         (cgraph_expand_function): Likewise.
30365         (cgraph_remove_unreachable_nodes): Likewise.
30366
30367 2005-03-02  Joseph S. Myers  <joseph@codesourcery.com>
30368
30369         PR c/8927
30370         * c-tree.h (undeclared_variable, build_external_ref): Add extra
30371         argument.
30372         * c-decl.c (undeclared_variable): Take location as argument.
30373         * c-typeck.c (build_external_ref): Likewise.
30374         * c-parser.c (c_parser_postfix_expression): Pass location of
30375         identifier to build_external_ref.
30376
30377 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
30378
30379         * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
30380         CCEQ mode for branch_positive_comparison_operator test.
30381         * config/rs6000/predicates (branch_comparison_operator): Revert to
30382         define_predicate.
30383         (scc_comparison_operator): Same.
30384         (branch_positive_comparison_operator): Same.
30385
30386 2005-03-01  Hans-Peter Nilsson  <hp@axis.com>
30387
30388         * config/cris/cris.c (cris_eligible_for_epilogue_delay)
30389         (cris_delay_slots_for_epilogue): Remove.
30390         (save_last): Move into cris_target_asm_function_epilogue.
30391         (cris_target_asm_function_epilogue): Remove tests for file being
30392         NULL.
30393         * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
30394         (cris_delay_slots_for_epilogue): Remove prototypes.
30395         * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
30396         (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
30397
30398 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
30399
30400         * config/rs6000/predicates.md (branch_comparison_operator): Change
30401         to define_special_predicate.
30402         (scc_comparison_operator): Same.
30403         (branch_positive_comparison_operator): Same.
30404
30405 2005-03-01  Daniel Berlin <dberlin@dberlin.org>
30406
30407         * Makefile.in (tree-ssa-sink.o): New.
30408         (OBJS-common): Add tree-ssa-sink.o.
30409         * common.opt: Add -ftree-sink
30410         * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
30411         * timevar.def (TV_TREE_SINK): new timevar.
30412         * tree-flow.h (is_hidden_global_store): Prototype.
30413         * tree-optimize.c (init_tree_optimization_passes): Add
30414         pass_sink_code.
30415         * tree-pass.h (pass_sink_code): New.
30416         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
30417         for non-obvious global store store to is_hidden_global_store, and
30418         call that new function.
30419         * tree-ssa-sink.c: New file.
30420         * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
30421         * doc/passes.texi: Document forward store motion.
30422         * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
30423         * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
30424         * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
30425         * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
30426
30427 2005-03-01  Per Bothner  <per@bothner.com>
30428
30429         * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
30430         and we have a non-zero column-number, add it to the message.
30431         Also factor out the diagnostic_kind_text.
30432
30433 2005-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
30434
30435         * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
30436         flow_loop_pre_header_scan, flow_loop_pre_header_find,
30437         flow_loop_scan): Removed.
30438         (flow_loop_dump): Do not dump removed fields.
30439         (flow_loop_free): Do not free removed fields.
30440         (flow_loops_find): Flags argument removed.  Do not call flow_loop_scan.
30441         (loop_exit_edge_p): New function.
30442         * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
30443         num_pre_header_edges, entry_edges, num_entries, exit_edges,
30444         num_exits, exits_doms.
30445         (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
30446         LOOP_EDGES, LOOP_ALL): Removed.
30447         (flow_loop_scan): Declaration removed.
30448         (loop_exit_edge_p, mark_loop_exit_edges): Declare.
30449         * cfgloopmanip.c (create_loop_notes): Do not pass flags to
30450         flow_loops_find.
30451         * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
30452         (if_convert): Call flow_loops_find and flow_loops_free
30453         when calling mark_loop_exit_edges.
30454         * cfgloopanal.c (mark_loop_exit_edges): Moved from
30455         ifcvt.c.  Removed the flow_loops_find, flow_loops_free and
30456         free_dominance_info calls.
30457         * loop-init.c (flow_loops_find): Ditto.
30458         * passes.c (rest_of_handle_branch_prob): Ditto.
30459         * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
30460         * loop-unroll.c (analyze_insns_in_loop): Do not use
30461         EDGE_LOOP_EXIT.
30462         * predict.c (predict_loops): Do not call flow_loop_scan.
30463         Use get_loop_exit_edges.
30464         (tree_estimate_probability): Do not pass flags to flow_loops_find.
30465         * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
30466         Do not use EDGE_LOOP_EXIT.
30467         (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
30468         to bb_with_exit_edge_p.
30469         (if_convertible_loop_p): Do not call flow_loop_scan.  Use
30470         loop->single_exit.  Do not use EDGE_LOOP_EXIT.  Pass loop
30471         to bb_with_exit_edge_p.
30472         (combine_blocks): Pass loop to bb_with_exit_edge_p.  Do not use
30473         EDGE_LOOP_EXIT.
30474         * tree-loop-linear.c (linear_transform_loops): Do not call
30475         flow_loop_scan.  Use loop->single_exit.
30476         * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
30477         (vect_analyze_loop_form): Do not call flow_loop_scan.
30478         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
30479         loop->single_exit.
30480         (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
30481         loop->single_exit.
30482         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
30483         slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
30484         slpeel_tree_duplicate_loop_to_edge_cfg,
30485         slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
30486         Use loop_preheader_edge and loop->single_exit.  Do not call
30487         flow_loop_scan.
30488
30489 2005-03-01  Nick Clifton  <nickc@redhat.com>
30490
30491         * config/arm/arm.c (thumb_find_work_register): Check all of the
30492         argument registers to see if they are free, and a couple of
30493         special cases where the last argument register but can be proved
30494         to be available during the function's prologue.
30495         (print_multi_reg, arm_compute_save_reg0_reg12_mask,
30496         output_return_instruction, emit_multi_reg_push, thumb_pushpop,
30497         thumb_unexpanded_epilogue): Use unsigned long as the type for the
30498         register bit-mask.
30499         (thumb_compute_save_reg_mask): Likewise.  Also use
30500         thumb_find_work_register() to ensure that there is agreement about
30501         which work register is going to be used in the prologue.
30502         (thumb_output_function_prologue): Use unsigned long as the type
30503         for the register bit-mask.  Also delay pushing the link register if
30504         other high registers are going to be pushed.
30505         (thumb_compute_save_reg_mask, emit_multi_reg_push,
30506         print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
30507         redundant prototypes.
30508
30509 2005-02-28  John David Anglin  <dave.anglin#nrc-cnrc.gc.ca>
30510
30511         PR target/19819
30512         * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
30513         and after reload in REG+REG indexed addresses without REG_POINTER
30514         set in the base and not set in the index.
30515
30516 2005-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
30517
30518         * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
30519         Don't undefine here.
30520         (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
30521         (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
30522         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
30523         (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
30524         LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
30525         Delete.
30526         * config.gcc (sh*-*-linux*): Use config/linux.h.
30527
30528 2005-02-28  Dale Johannesen  <dalej@apple.com>
30529             Stan Shebs  <shebs@apple.com>
30530
30531         Rewrite of 64-bit Darwin structure-by-value pass/return.
30532         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
30533         intoffset, use_stack, named.
30534         * config/rs6000/rs6000.c (rs6000_darwin64_function_arg):  Remove.
30535         (rs6000_darwin64_record_arg_advance_flush):  New.
30536         (rs6000_darwin64_record_arg_advance_recurse): New.
30537         (rs6000_darwin64_record_arg_flush):  New.
30538         (rs6000_darwin64_record_arg_recurse):  New.
30539         (rs6000_darwin64_record_arg):  New.
30540         (rs6000_return_in_memory):  Remove AGGREGATE_TYPE_P check.
30541         (function_arg_boundary):  Handle 128-bit aligned structs.
30542         (function_arg_advance):  Rewrite darwin64 struct handling.
30543         (function_arg):  Call rs6000_darwin64_record_arg.
30544         (function_arg_partial_nregs):  Handle darwin64 structs.
30545         (rs6000_darwin64_function_value):  Remove.
30546         (rs6000_function_value):  Call rs6000_darwin64_record_arg.
30547
30548 2005-02-28  Roger Sayle  <roger@eyesopen.com>
30549
30550         PR tree-optimization/20216
30551         * tree-chrec.c (tree_fold_factorial): Delete.
30552         (tree_fold_binomial): Change argument list to take a return type
30553         and change the type of K to unsigned int.  Rewrite to avoid explicit
30554         evaluation of factorials, and (recursively) calling fold to perform
30555         compile-time arithmetic.  Return NULL on (internal) overflow.
30556         (chrec_evaluate): Change type of K to an unsigned int.  Avoid
30557         calling tree_fold_binomial unnecessarily.  Return chrec_dont_know
30558         if any intermediate calculation overflows.
30559         (chrec_apply): Update call to chrec_evaluate.
30560
30561 2005-02-28  James E Wilson  <wilson@specifixinc.com>
30562
30563         * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
30564
30565 2005-02-28  Joseph S. Myers  <joseph@codesourcery.com>
30566
30567         PR c/20245
30568         * c-parser.c (c_parser_compound_statement): Return error_mark_node
30569         instead of NULL_TREE on error.
30570
30571 2005-02-28  David Edelsohn  <edelsohn@gnu.org>
30572
30573         * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
30574         (EASY_VECTOR_15_ADD_SELF): Remove.
30575         (num_insns_constant_wide): Not static.
30576         (validate_condition_mode): Not static.
30577         (toc_relative_expr_p): Not static.
30578         (legitimate_indirect_address_p): Not static.
30579         (macho_lo_sum_memory_operand): Not static.
30580         (invalid_e500_subreg): Not static.
30581         (easy_vector_same): Not static.
30582         (easy_vector_splat_const): Not static.
30583         (RS6000_SYMBOL_REF_TLS_P): Remove.
30584         (any_operand): Delete.
30585         (any_parallel_operand): Delete.
30586         (count_register_operand): Delete.
30587         (altivec_register_operand): Delete.
30588         (xer_operand): Delete.
30589         (s8bit_cint_operand): Delete.
30590         (short_cint_operand): Delete.
30591         (u_short_cint_operand): Delete.
30592         (non_short_cint_operand): Delete.
30593         (exact_log2_cint_operand): Delete.
30594         (gpc_reg_operand): Delete.
30595         (cc_reg_operand): Delete.
30596         (cc_reg_not_cr0_operand): Delete.
30597         (reg_or_short_operand): Delete.
30598         (reg_or_neg_short_operand): Delete.
30599         (reg_or_aligned_short_operand): Delete.
30600         (reg_or_u_short_operand): Delete.
30601         (reg_or_cint_operand): Delete.
30602         (reg_or_arith_cint_operand): Delete.
30603         (reg_or_add_cint64_operand): Delete.
30604         (reg_or_sub_cint64_operand): Delete.
30605         (reg_or_logical_cint_operand): Delete.
30606         (got_operand): Delete.
30607         (got_no_const_operand): Delete.
30608         (easy_fp_constant): Delete.
30609         (easy_vector_constant): Delete.
30610         (easy_vector_constant_add_self): Delete.
30611         (zero_constant): Delete.
30612         (zero_fp_constant): Delete.
30613         (volatile_mem_operand): Delete.
30614         (offsettable_mem_operand): Delete.
30615         (mem_or_easy_const_operand): Delete.
30616         (add_operand): Delete.
30617         (non_add_cint_operand): Delete.
30618         (logical_operand): Delete.
30619         (non_logical_cint_operand): Delete.
30620         (mask_operand): Delete.
30621         (mask_operand_wrap): Delete.
30622         (mask64_operand): Delete.
30623         (mask64_2_operand): Delete.
30624         (and64_operand): Delete.
30625         (and64_2_operand): Delete.
30626         (and_operand): Delete.
30627         (reg_or_mem_operand): Delete.
30628         (lwa_operand): Delete.
30629         (symbol_ref_operand): Delete.
30630         (call_operand): Delete.
30631         (current_file_function_operand): Delete.
30632         (input_operand): Delete.
30633         (rs6000_nonimmediate_operand): Delete.
30634         (rs6000_tls_symbol_ref): Delete.
30635         (save_world_operation): Delete.
30636         (restore_world_operation): Delete.
30637         (load_multiple_operation): Delete.
30638         (store_multiple_operation): Delete.
30639         (vrsave_operation): Delete.
30640         (mfcr_operation): Delete.
30641         (mtcrf_operation): Delete.
30642         (lmw_operation): Delete.
30643         (stmw_operation): Delete.
30644         (branch_comparison_operator): Delete.
30645         (branch_positive_comparison_operator): Delete.
30646         (scc_comparison_operator): Delete.
30647         (trap_comparison_operator): Delete.
30648         (boolean_operator): Delete.
30649         (boolean_or_operator): Delete.
30650         (min_max_operator): Delete.
30651         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
30652         (EASY_VECTOR_15): Moved to here.
30653         (EASY_VECTOR_15_ADD_SELF): Move to here.
30654         (PREDICATE_CODES): Delete.
30655         * config/rs6000/rs6000-protos.h: Delete predicate functions.
30656         Declare functions no longer static.
30657         * config/rs6000/predicates.md: New.
30658         * config/rs6000/rs6000.md: Include predicates.md
30659
30660 2005-02-28  Kazu Hirata  <kazu@cs.umass.edu>
30661
30662         * calls.c (emit_call_1): Don't use  REG_ALWAYS_RETURN.
30663         (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
30664         REG_ALWAYS_RETURN.
30665         * cfgrtl.c (need_fake_edge_p): Likewise.
30666         * combine.c (distribute_notes): Likewise.
30667         * emit-rtl.c (try_split): Likewise.
30668         * recog.c (peephole2_opimize): Likewise.
30669         * reg-notes.def (ALWAYS_RETURN): Remove.
30670         * rtl.h (LCT_ALWAYS_RETURN): Remove.
30671         * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
30672         * tree.h (ECF_ALWAYS_RETURN): Remove.
30673
30674 2005-02-28  Roger Sayle  <roger@eyesopen.com>
30675
30676         PR middle-end/19874
30677         * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
30678         between different machine modes is never a "useless" conversion.
30679
30680 2005-02-28  Geert Bosch  <bosch@gnat.com>
30681
30682         PR ada/15977
30683         * doc/contrib.texi: List contributors for Ada front end
30684
30685 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
30686
30687         * simplify-rtx.c (simplify_unary_operation_1,
30688         simplify_const_unary_operation): New, extracted from...
30689         (simplify_unary_operation): ... this one.
30690         (simplify_binary_operation_1,
30691         simplify_const_binary_operation): New, extracted from...
30692         (simplify_binary_operation): ... this one.
30693         * rtl.h (simplify_const_unary_operation,
30694         simplify_const_binary_operation): Add prototypes.
30695
30696 2005-02-28  Julian Brown  <julian@codesourcery.com>
30697
30698         * config/elfos.h: Revert my patch from 2005-02-25 since it broke
30699         building libjava and caused PR regression/20228.
30700
30701 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
30702
30703         PR bootstrap/17383
30704         * Makefile.in (host_subdir): New.
30705         (build_objdir): New.  Replace ../$(build_subdir) with it throughout.
30706         * configure: Regenerate.
30707
30708 2005-02-27  Zack Weinberg  <zack@codesourcery.com>
30709
30710         * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
30711         * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
30712         installation directory first.
30713
30714 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
30715
30716         PR target/19065.
30717         * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
30718         not including (reg). Do not check for reg being CRIS_PC_REGNUM.
30719         (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
30720         * config/cris/cris.md: Tweak comments referring to Q.
30721         ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
30722         ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
30723         ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
30724         ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
30725         ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
30726         Insert spaces in constraints to align alternatives vertically for
30727         readability.
30728         ("cmphi"): Ditto.  Add separate alternative for operand 0 "r",
30729         operand 1: "M".
30730
30731 2005-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30732
30733         PR rtl-optimization/17728
30734         * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
30735         operand 0 from general_operand to move_dest_operand.
30736
30737 2005-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30738
30739         * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
30740         instead of trying to save and restore TREE_SYMBOL_REFERENCED.
30741         * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
30742         (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
30743
30744 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
30745
30746         * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
30747         * configure: Regenerate.
30748         * libada-mk.in: Remove CC; rename
30749         cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
30750
30751 2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>
30752
30753         PR tree-opt/20188
30754         * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
30755         for the lhs, also walk over the tree.  Likewise for rhs.
30756
30757 2005-02-26  Zdenek Dvorak  <dvorakz@suse.cz>
30758
30759         * tree-ssa-dom.c (simple_iv_increment_p): New function.
30760         (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
30761         Do not propagate value of iv before increment over the increment.
30762
30763 2005-02-25  Joseph S. Myers  <joseph@codesourcery.com>
30764
30765         * c-parser.c: New file.
30766         * c-parse.in: Remove.
30767         * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
30768         Remove.
30769         (c-parser.o): Add dependencies.
30770         (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
30771         maintainer-clean, TAGS): Update.
30772         * c-config-lang.in (gtfiles): Update.
30773         * gengtype-lex.l: Don't handle "@@".
30774         * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
30775         objc_build_synchronized, objc_begin_try_stmt,
30776         objc_begin_catch_clause, objc_finish_catch_clause,
30777         objc_build_finally_clause, objc_finish_try_stmt): New.
30778         * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
30779         type_seen_p.
30780         (c_parse_init): Update comment.
30781         * c-decl.c (c_init_decl_processing): Update comment.
30782         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
30783         declspecs_add_scspec, declspecs_add_attrs): Initialize and update
30784         new c_declspecs members.
30785
30786 2005-02-25  Julian Brown  <julian@codesourcery.com>
30787
30788         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
30789         from being used for symbols with vague linkage when
30790         HAVE_GAS_COMDAT_GROUP is true.
30791
30792 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
30793
30794         * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
30795
30796 2005-02-25  Steve Ellcey  <sje@cup.hp.com>
30797
30798         PR target/19930
30799         * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
30800         (LIBGCC2_HAS_DF_MODE): New.
30801         (LIBGCC2_HAS_XF_MODE): New.
30802         (LIBGCC2_HAS_TF_MODE): New.
30803         * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
30804         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
30805         * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
30806         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
30807         (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
30808         * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
30809         and add _fixtfdi, _fixunstfdi, _floatditf
30810         * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
30811         L_fixunstfdi, L_floatditf.
30812         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
30813         (LIBGCC2_HAS_TF_MODE): Define.
30814
30815 2005-02-25  Diego Novillo  <dnovillo@redhat.com>
30816
30817         PR tree-optimization/20204
30818         * tree-into-ssa.c (insert_phi_nodes_for): Do not use
30819         REWRITE_THIS_STMT markers on PHI nodes.
30820         (rewrite_initialize_block): Likewise.
30821
30822 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
30823
30824         * version.c (version_string): Update to 4.1.
30825
30826 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
30827
30828         * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
30829         Clarify that the alternative way doesn't work in GNU C++.
30830
30831 2005-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
30832
30833         PR tree-optimization/19937
30834         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
30835         to the type of the induction variable.
30836
30837 2005-02-25  Kaz Kojima  <kkojima@gcc.gnu.org>
30838
30839         PR rtl-optimization/20117
30840         * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
30841         the block including noncopyable insn.
30842
30843 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
30844
30845         * cse.c (delete_trivially_dead_insns): Speed up by minimizing
30846         calls to find_reg_note.
30847
30848 2005-02-24  Richard Henderson  <rth@redhat.com>
30849
30850         PR tree-opt/20127
30851         * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
30852         the type.
30853
30854 2005-02-24  Fariborz Jahanian <fjahanian@apple.com>
30855
30856         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
30857         vector types if to use base reg for misaligned non-word ld/std.
30858
30859 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
30860
30861         PR target/14619
30862         * config/cris/cris.c (cris_target_asm_function_prologue): Create
30863         dwarf2 label manually and put it after, not before the prologue.
30864
30865 2005-02-24  David Edelsohn  <edelsohn@gnu.org>
30866
30867         PR target/19019
30868         * reload.c (operands_match_p): Only increment register number for
30869         SCALAR_INT_MODE_P modes in multiple hard registers.
30870
30871         * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
30872         Fix formatting.
30873
30874 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
30875
30876         * ChangeLog.5: Fix log message typo(s).
30877         * ChangeLog.7: Likewise.
30878         * ChangeLog.tree-ssa: Likewise.
30879         * cfgexpand.c: Fix comment typo(s).
30880         * conflict.c: Likewise.
30881         * defaults.h: Likewise.
30882         * dwarf2out.c: Likewise.
30883         * gcse.c: Likewise.
30884         * ggc-page.c: Likewise.
30885         * tree-eh.c: Likewise.
30886         * tree-ssa-dom.c: Likewise.
30887
30888 2005-02-24  Jakub Jelinek  <jakub@redhat.com>
30889
30890         PR target/19019
30891         * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
30892         * config/rs6000/darwin-ldouble.c: Only use the .symver directives
30893         if SHARED is defined.
30894
30895         PR target/20196
30896         * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
30897         allow splitting only if operands 0 and 3 don't overlap.
30898
30899 2005-02-24  Richard Henderson  <rth@redhat.com>
30900
30901         PR middle-end/19953
30902         * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
30903         (fold_builtin_1): Call them.
30904         * fold-const.c (fold_complex_mult_parts): Split out from ...
30905         (fold_complex_mult): ... here.  Fix typo in both imaginary case.
30906         (fold_complex_div_parts, fold_complex_div): New.
30907         (fold): Use them.
30908         * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
30909
30910 2005-02-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30911
30912         * tree-ssa-ccp.c (visit_assignment): Verify that result of
30913         VIEW_CONVERT_EXPR is_gimple_min_invariant.
30914
30915         * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
30916         (print_node): Likewise.
30917         Print TYPE_SIZES_GIMPLIFIED.
30918
30919 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
30920
30921         * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
30922         ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
30923         operands as commutative in constraints.
30924
30925 2005-02-24  Diego Novillo  <dnovillo@redhat.com>
30926
30927         * tree-into-ssa.c: Re-organize internal functions.
30928
30929 2005-02-24  Richard Henderson  <rth@redhat.com>
30930
30931         PR middle-end/18902
30932         * c-opts.c (c_common_post_options): Set flag_complex_method to 2
30933         for c99.
30934         * common.opt (fcx-limited-range): New.
30935         * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
30936         * toplev.c (flag_complex_method): Initialize to 1.
30937         (process_options): Set flag_complex_method to 0 if
30938         flag_cx_limited_range.
30939         * doc/invoke.texi (-fcx-limited-range): New.
30940
30941 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
30942
30943         * cse.c (delete_trivially_dead_insns): Speed up by using
30944         NEXT_INSN and PREV_INSN directly instead of next_real_insn and
30945         prev_real_insn.
30946
30947 2005-02-24  Andrea Tarani  <andrea.tarani@gilbarco.com>
30948
30949         * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
30950         functions when -mid-shared-library is being used.
30951
30952 2005-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
30953
30954         * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
30955         (LINK_LIBGCC_SPECIAL_1): Don't mention it.
30956         * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
30957         * system.h: Poison LINK_LIBGCC_SPECIAL.
30958
30959 2005-02-23  James E Wilson  <wilson@specifixinc.com>
30960
30961         * gengtype.c (note_insn_name): Make 1 element larger.
30962
30963 2005-02-23  Roger Sayle  <roger@eyesopen.com>
30964
30965         PR target/20018
30966         PR rtl-optimization/20097
30967         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
30968         BImode SUBREGs of SImode registers which confuse the ia64 backend.
30969
30970 2005-02-23  David Edelsohn  <edelsohn@gnu.org>
30971
30972         * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
30973         * t-aix52 (SHLIB_INSTALL): Same.
30974
30975 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
30976
30977         * genpreds.c: Update copyright.
30978
30979 2005-02-23  Michael Beach  <michaelb@ieee.org>
30980
30981         PR target/20159
30982         * config/sparc/t-elf (startup files): Assemble with CPP.
30983
30984 2005-02-23  Paolo Bonzini  <bonzini@gnu.org>
30985
30986         * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
30987         (write_predicate_expr): Likewise.
30988
30989 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
30990
30991         PR tree-optimization/20100
30992         PR tree-optimization/20115
30993         * tree-optimize.c (init_tree_optimization_passes): Remove
30994         pass_maybe_create_global_var.
30995         * tree-pass.h (pass_maybe_create_global_var): Remove.
30996         * tree-ssa-alias.c (aliases_computed_p): Declare.
30997         (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
30998         (count_calls_and_maybe_create_global_var): Remove.
30999         (pass_maybe_create_global_var): Remove.
31000         (init_alias_info): Do not declare aliases_computed_p.
31001         (maybe_create_global_var): If the function contains no
31002         call-clobbered variables and a mix of pure/const and regular
31003         function calls, create .GLOBAL_VAR.
31004         Mark all call-clobbered variables for renaming.
31005         (merge_pointed_to_info): Update comment.
31006         (add_pointed_to_var): Likewise.
31007         (is_escape_site): Likewise.
31008         Accept struct alias_info * instead of size_t *.
31009         Update all users.
31010         Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
31011         as necessary.
31012         * tree-ssa-operands.c (get_call_expr_operands): If
31013         ALIASES_COMPUTED_P is false, do not add call-clobbering
31014         operands.
31015         * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
31016         (delete_tree_ssa): Likewise.
31017
31018 2005-02-22  James E Wilson  <wilson@specifixinc.com>
31019
31020         * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
31021         (do_compile): Do call it here.
31022
31023 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
31024
31025         PR rtl-optimization/20017.
31026         * passes.c (rest_of_handle_combine, rest_of_handle_cse,
31027         rest_of_handle_cse2, rest_of_handle_gcse): Call
31028         delete_dead_jumptables immediately before calling cleanup_cfg.
31029
31030 2005-02-22  Devang Patel  <dpatel@apple.com>
31031
31032         PR 19952
31033         * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
31034         all labels
31035
31036 2005-02-22  David Edelsohn  <edelsohn@gnu.org>
31037
31038         * config/rs6000/aix.h (WINT_TYPE): Define.
31039
31040 2005-02-22  Stan Shebs  <shebs@apple.com>
31041
31042         * config/rs6000/rs6000.c (rs6000_override_options): Default to
31043         natural alignment for 64-bit Darwin.
31044         (rs6000_parse_alignment_option): Warn about uses of -malign-power
31045         on 64-bit Darwin.
31046         * doc/invoke.texi: Document this.
31047
31048 2005-02-22  DJ Delorie  <dj@redhat.com>
31049
31050         * c-common.c (c_common_type_for_mode): Pass the mode's precision
31051         to make_[un]signed_type, not the mode itself.
31052
31053 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
31054
31055         * cfg.c (cached_make_edge): Call make_edge if edge cache is
31056         not available.  Use tail calls wherever possible.
31057         (make_edge): Call unchecked_make_edge to create an edge.
31058
31059         * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
31060         (coalesce_ssa_name): Don't check for
31061         SSANORM_USE_COALESCE_LIST.
31062         (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
31063
31064 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
31065
31066         * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
31067         (rewrite_into_ssa): ... here.
31068
31069 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
31070
31071         PR tree-optimization/19786
31072         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
31073         tag to another's may-alias bitmap when adding to the other's list.
31074
31075 2005-02-21  DJ Delorie  <dj@redhat.com>
31076
31077         * tree-ssa-loop-ivopts.c (computation_cost): Start register
31078         numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
31079         registers in unsupported ways.
31080         * expmed.c (init_expmed): Likewise.
31081
31082 2005-02-21  Stan Cox  <scox@redhat.com>
31083
31084         * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
31085
31086 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
31087
31088         * tree-cfg.c (fold_cond_expr_cond): New.
31089         (make_edges): Call fold_cond_expr_cond.
31090         (find_taken_edge): Accept nothing but INTEGER_CST.
31091         (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
31092         and 1.
31093         (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
31094
31095         * flow.c (delete_dead_jumptables): Speed up by scanning insns
31096         that do not belong to any basic block.
31097
31098 2005-02-21  Jeff Law  <law@redhat.com>
31099
31100         * cfganal.c (find_unreachable_blocks): Manually CSE load of
31101         e->dest.
31102
31103 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
31104
31105         * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
31106         (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
31107         Adjust their definitions.
31108         (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
31109         (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
31110
31111         * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
31112         genautomata.c, langhooks.c, langhooks.h, system.h,
31113         config/arm/lib1funcs.asm: Update copyright.
31114
31115 2005-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
31116
31117         * dbxout.c (dbxout_function_end): Emit Lscope label always.
31118
31119 2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>
31120
31121         PR bootstrap/13770
31122         * doc/install.texi: Document --with-gc.
31123
31124 2005-02-21  Paolo Bonzini  <bonzini@gnu.org>
31125
31126         * simplify-rtx.c (simplify_unary_operation): Add a missing
31127         "break" statement.
31128
31129 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
31130
31131         PR tree-optimization/18663
31132         * tree-ssa-dom.c (extract_range_from_cond): Return 0
31133         if the type has variable bounds.
31134
31135 2005-02-20  Kazu Hirata  <kazu@cs.umass.edu>
31136
31137         * gcse.c: Remove an obsolete comment.
31138
31139         * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
31140
31141 2005-02-20  Hans-Peter Nilsson  <hp@axis.com>
31142
31143         * doc/extend.texi (Function Attributes) <Attribute const>: The
31144         attribute "pure" is below this text, not above.
31145
31146 2005-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31147
31148         * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
31149         (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
31150         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
31151
31152 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
31153
31154         PR 18785
31155         * langhooks.h (struct lang_hooks): Add to_target_charset.
31156         * langhooks.c (lhd_to_target_charset): New function.
31157         * langhooks-def.h: Declare lhd_to_target_charset.
31158         (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
31159         (LANG_HOOKS_INITIALIZER): Update.
31160         * c-common.c (c_common_to_target_charset): New function.
31161         * c-common.h: Declare it.
31162         * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
31163         c_common_to_target_charset.
31164
31165         * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
31166         (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
31167         Delete definitions.
31168         * system.h: Poison them.
31169         * doc/tm.texi: Don't discuss them.
31170         * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
31171         * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
31172         (pp_c_char): Do not attempt to generate letter escapes for
31173         newline, tab, etc.
31174         * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
31175         * config/mips/mips.c (mips_output_ascii): Likewise.
31176
31177 2005-02-20  Dorit Naishlos  <dorit@il.ibm.com>
31178
31179         PR tree-optimization/19951
31180         * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
31181         is abnormal.
31182
31183 2005-02-19  Steven Bosscher  <stevenb@suse.de>
31184
31185         PR middle-end/19698
31186         * function.h (struct function): New field `max_loop_depth'.
31187         * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
31188         (flow_loops_find): Reset the max loop depth count before finding loops.
31189         * flow.c (MAX_LIVENESS_ROUNDS): New constant.
31190         (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
31191         (calculate_global_regs_live): Make sure the loop will terminate
31192         when the initial sets are not empty.
31193
31194 2005-02-19  Zack Weinberg  <zack@codesourcery.com>
31195
31196         * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
31197         object inside.
31198         * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
31199
31200 2005-02-19  Richard Sandiford  <rsandifo@redhat.com>
31201
31202         PR other/19525
31203         * doc/invoke.texi: Remove documentation of %M spec.
31204         * gcc.c: Likewise.
31205         (init_spec): Remove %M suffix from -lgcc_s.
31206         (do_spec_1): Remove 'M' case.
31207         * mklibgcc.in: Remove SHLIB_MULTILIB handling.  Expect SHLIB_LINK
31208         to put shared libraries in the multilib directory.  Remove the
31209         shlib_so_soname substitution variable.  Don't add a multilib encoding
31210         to shlib_base_name.  Set shlib_slibdir_qual to the full pathname
31211         reported by -print-multi-os-directory.  Pass @multilib_dir@ to
31212         SHLIB_INSTALL as well as SHLIB_LINK.
31213         * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
31214         (SHLIB_NAME): Delete.
31215         (SHLIB_DIR): New macro.
31216         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
31217         (SHLIB_INSTALL): Adjust accordingly.
31218         * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
31219         * config/t-slibgcc-sld: Likewise.
31220         * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
31221         (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
31222         (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
31223         in $(SHLIB_DIR).
31224         (SHLIBUNWIND_INSTALL): Adjust accordingly.
31225         * config/i386/t-nwld (SHLIB_SONAME): Delete.
31226         (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
31227         Use @shlib_base_name@ instead of @shlib_so_name@.
31228         * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
31229         and @shlib_base_name@.so in @multilib_dir@.
31230         (SHLIB_INSTALL): Adjust accordingly.  Add @shlib_slibdir_qual@
31231         to the install path.
31232         * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
31233         (SHLIB_LINK): Remove previous workaround.
31234         * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
31235         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
31236         (SHLIB_INSTALL): Adjust accordingly.  Add $(SHLIB_SLIBDIR_QUAL) to
31237         the install path.
31238         * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
31239         @multilib_dir@.  Use @multilib_dir@ to check for threading libraries.
31240         (SHLIB_INSTALL): Adjust accordingly.
31241         (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
31242         * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
31243         * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
31244         config/t-slibgcc-elf-ver.
31245
31246 2005-02-19  Zdenek Dvorak  <dvorakz@suse.cz>
31247             Jakub Jelinek  <jakub@redhat.com>
31248
31249         PR tree-optimization/19828
31250         * tree-ssa-loop-im.c: Add a TODO comment.
31251         (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
31252         without side-effects.
31253
31254 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
31255
31256         * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
31257         call fold_convert.
31258
31259 2005-02-18  James E. Wilson  <wilson@specifixinc.com>
31260
31261         * doc/invoke.texi (IA-64 Options): Delete -mb-step.
31262         * config/ia64/ia64.c (last_group, group_idx): Delete variables.
31263         (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
31264         functions.
31265         (ia64_reorg): Delete fixup_errata call.
31266         * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
31267         (TARGET_SWITCHES): Delete -mb-step entry.
31268
31269 2005-02-19  Jakub Jelinek  <jakub@redhat.com>
31270
31271         PR c/20043
31272         * c-typeck.c (composite_type): Handle quals in transparent unions.
31273         (type_lists_compatible_p): Likewise.
31274
31275 2005-02-18  Stan Shebs  <shebs@apple.com>
31276
31277         * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
31278         expressions in the .literal8 section.
31279
31280 2005-02-18  Geoffrey Keating  <geoffk@apple.com>
31281
31282         * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
31283
31284 2005-02-18  Roger Sayle  <roger@eyesopen.com>
31285
31286         * fold-const.c (constant_boolean_node): Always create values of the
31287         specified type, don't bother calling truthvalue_conversion.
31288
31289 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
31290
31291         * except.c (output_function_exception_table): Call
31292         assemble_external_libcall (eh_personality_libfunc).
31293
31294 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
31295
31296         PR target/19886
31297         * config/ia64/ia64.h (struct machine_function): Add state_num.
31298         * config/ia64/ia64.c (process_epilogue,
31299         process_for_unwind_directive): Use new unwind state numbers each
31300         time rather than state 1.
31301
31302 2005-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
31303
31304         PR target/20054
31305         * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
31306         before the "*llgt_didi" pattern.
31307
31308 2005-02-18  Jason Merrill  <jason@redhat.com>
31309
31310         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
31311
31312 2005-02-18  Richard Earnshaw  <rearnsha@arm.com>
31313
31314         * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
31315         (div0): Use it in place of ARM_FUNC_ALIAS.
31316         (lshrdi3, ashrdi3, ashlrdi3): Likewise.
31317
31318 2005-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
31319
31320         PR middle-end/20030
31321         * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
31322         access, the lower bound of the array type if it exists.
31323
31324 2005-02-18  Alexandre Oliva  <aoliva@redhat.com>
31325
31326         PR c++/20008
31327         * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
31328         cases that are out-of-range for the index type.
31329
31330 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
31331
31332         * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
31333         (estimate_case_costs): Don't call convert.
31334         * expmed.c (expand_shift): Likewise.
31335         (make_tree): Call fold_convert instead of convert.
31336
31337 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
31338
31339         PR c++/19813
31340         * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
31341         that ref to be marked MEM_READONLY_P doesn't have base that needs
31342         constructing.
31343
31344 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
31345
31346         * genautomata.c (output_get_cpu_unit_code_func,
31347         output_cpu_unit_reservation_p): Don't generate old-style function
31348         definitions.
31349
31350 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
31351
31352         PR c++/20023
31353         PR tree-optimization/20009
31354         * convert.c (convert_to_integer): Revert 2005-02-16 change.
31355
31356         PR tree-optimization/18947
31357         * cgraphunit.c (cgraph_finalize_function): When redefining an extern
31358         inline, remove all nodes that are inlined into the extern inline
31359         being redefined.
31360
31361 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
31362
31363         * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
31364         loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
31365         tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
31366         config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
31367         Update copyright.
31368
31369 2005-02-17  Roger Sayle  <roger@eyesopen.com>
31370
31371         PR tree-optimization/19917
31372         * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
31373         to be potentially trapping.
31374
31375 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
31376
31377         * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
31378
31379 2005-02-17  Andreas Krebbel  <krebbel1@de.ibm.com>
31380
31381         * builtins.c (expand_builtin_return_addr): Remove tem parameter.
31382         tem becomes a local variable which is set to the value of the
31383         back end defined INITIAL_FRAME_ADDRESS macro.
31384         (expand_builtin_frame_address): Omit the base parameter to
31385         expand_builtin_return_addr.
31386         (expand_builtin_profile_func): Likewise.
31387         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
31388         (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
31389         * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
31390
31391 2005-02-17  Jakub Jelinek  <jakub@redhat.com>
31392
31393         * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
31394         s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
31395         * config/frv/frv.c (frv_function_epilogue): Likewise.
31396
31397 2005-02-17  Daniel Berlin  <dberlin@dberlin.org>
31398
31399         * lambda-code (perfect_nestify): Remove mark/unmark
31400         for rewriting hack.
31401         * tree-loop-linear.c (linear_transform_loops): Add
31402         rewrite_into_ssa call so that ssa is correct for
31403         rewriting into loop closed.
31404
31405 2005-02-17  Nathan Sidwell  <nathan@codesourcery.com>
31406
31407         * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
31408         * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
31409         BITMAP_FREE.
31410         * bt-load.c (btr_def_live_range, combine_btr_defs,
31411         migrate_btr_def, migrate_btr_defs): Likewise.
31412         * cfgcleanup.c (thread_jump): Likewise.
31413         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
31414         * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
31415         df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
31416         df_rd_local_compute, df_reg_info_compute): Likewise.
31417         * dominance.c (init_dom_info, free_dom_info): Likewise.
31418         * flow.c (init_propagate_block_info,
31419         free_propagate_block_info): Likewise.
31420         * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
31421         * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
31422         modify_reg_pav): Likewise.
31423         * loop-invariant.c (find_defs, find_invariant_insn,
31424         find_invariants, free_inv_motion_data): Likewise.
31425         * predict.c (tree_predict_by_opcode,
31426         estimate_bb_frequencies): Likewise.
31427         * stmt.c (expand_case): Likewise.
31428         * tree-cfg.c (tree_duplicate_sese_region): Likewise.
31429         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
31430         * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
31431         * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
31432         get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
31433         rewrite_ssa_into_ssa): Likewise.
31434         * tree-optimize.c (tree_rest_of_compilation): Likewise.
31435         * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
31436         analyze_edges_for_bb, perform_edge_inserts): Likewise.
31437         * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
31438         * tree-sra.c (tree_sra): Likewise.
31439         * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
31440         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
31441         * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
31442         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
31443         * tree-ssa-dse.c (tree_ssa_dse): Likewise.
31444         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
31445         Likewise.
31446         * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
31447         calculate_live_on_entry, calculate_live_on_exit,
31448         build_tree_conflict_graph): Likewise.
31449         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
31450         record_important_candidates, set_use_iv_cost, find_depends,
31451         determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
31452         tree_ssa_iv_optimize_finalize): Likewise.
31453         * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
31454         find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
31455         tree_duplicate_loop_to_header_edge): Likewise.
31456         * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
31457         * tree-ssa.c (verify_flow_insensitive_alias_info,
31458         verify_name_tags, verify_ssa, init_tree_ssa,
31459         delete_tree_ssa): Likewise.
31460         * tree-ssanames.c (marked_ssa_names, init_ssanames,
31461         fini_ssanames): Likewise.
31462         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
31463
31464 2005-02-17  Ralf Corsepius  <ralf.corsepius@rtems.org>
31465
31466         * config/rs6000/t-rtems: Completely reworked.
31467
31468 2005-02-17  Ira Rosen  <irar@il.ibm.com>
31469
31470         * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
31471
31472 2005-02-17  Ira Rosen  <irar@il.ibm.com>
31473
31474         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
31475         POINTER_TYPE_P when checking that type is a pointer.
31476         (vect_get_memtag): Remove.
31477         (vect_address_analysis): Use POINTER_TYPE_P. Call
31478         vect_object_analysis with dummy parameter for memtag.
31479         (vect_object_analysis): Extract memtag (functionality that
31480         used to be in vect_get_memtag and moved here). Fix printings.
31481         (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
31482         with correct parameters. Remove call to vect_get_memtag.
31483
31484 2005-02-17  Dorit Naishlos  <dorit@il.ibm.com>
31485
31486         * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
31487         (tree-vectorizer.o): Added missing dependencies.
31488
31489         * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
31490         decleration.
31491         (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
31492         declaration in tree-vectorizer.c, now has an extern declaration in
31493         tree-vectorizer.h).
31494         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
31495         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
31496         get_vectype_for_scalar_type, vect_is_simple_use,
31497         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
31498         vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
31499         new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
31500         vectorizable_store, vectorizable_operation, vectorizable_assignment,
31501         vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
31502         find_loop_location): Likewise.
31503
31504         * tree-vectorizer.c (langhooks.h): #include removed.
31505         (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
31506         moved to tree-vectorized.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,
31512         destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
31513         vect_set_verbosity_level, find_loop_location): Likewise.
31514
31515         (vect_analyze_loop): Function externalized. Declaration moved to
31516         tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
31517         (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
31518         (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
31519         vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
31520         vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
31521         vect_enhance_data_refs_alignment, vect_analyze_operations,
31522         exist_non_indexing_operands_for_use_p, vect_mark_relevant,
31523         vect_stmt_relevant_p, vect_get_loop_niters,
31524         vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
31525         vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
31526         vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
31527         vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
31528         vect_get_memtag): Likewise.
31529
31530         (vectorizable_load): Function externalized. Declaration moved to
31531         tree-vectorized.h. Function definition moved to tree-vect-transform.c.
31532         (vectorizable_store, vectorizable_operation, vectorizable_assignment,
31533         vect_transform_loop): Likewise.
31534         (vect_transform_stmt): Moved to tree-vect-transform.c.
31535         (vect_align_data_ref, vect_create_destination_var,
31536         vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
31537         vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
31538         vect_get_vec_def_for_operand, vect_init_vector,
31539         vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
31540         vect_build_loop_niters, vect_update_ivs_after_vectorizer,
31541         vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
31542         vect_update_inits_of_drs, vect_do_peeling_for_alignment,
31543         vect_do_peeling_for_loop_bound): Likewise.
31544
31545         * tree-vect-analyze.c: New file.
31546         * tree-vect-transform.c: New file.
31547
31548 2005-02-17  Jason Merrill  <jason@redhat.com>
31549
31550         PR mudflap/19319, c++/19317
31551         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
31552         slot explicit.
31553
31554 2005-02-17  Gerald Pfeifer  <gerald@pfeifer.com>
31555
31556         * doc/install.texi (Specific): Update link for Darwin-specific
31557         tool binary site.
31558
31559 2005-02-16  James A. Morrison  <phython@gcc.gnu.org>
31560
31561         * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
31562         constant_boolean_node.
31563
31564 2005-02-16  David Edelsohn  <edelsohn@gnu.org>
31565
31566         PR target/19019
31567         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
31568         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
31569
31570 2005-02-16  Richard Henderson  <rth@redhat.com>
31571
31572         PR 19920
31573         * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
31574         with W_TYPE_SIZE.
31575         (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
31576         replace uses with Wtype_MAXp1_F.
31577         (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
31578         L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
31579         L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
31580         L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
31581         and HAVE_TFMODE as appropriate.
31582         (__fixunssfDI): Provide an implementation that doesn't need DFmode.
31583         (__floatdisf): Likewise.
31584         * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
31585         (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
31586         (Wtype_MAXp1_F): New.
31587         (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
31588         __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
31589
31590 2005-02-16  Richard Earnshaw  <rearnsha@arm.com>
31591
31592         * PR target/19162
31593         * arm.c (arm_apply_result_size): New function.
31594         * arm.h (APPLY_RESULT_SIZE): Define.
31595         * arm-protos.h (arm_apply_result_size): Add prototype.
31596         * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
31597         (movxf): New expand.
31598         (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
31599         (call_value_symbol): Remove predicate for operand 0.
31600         (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
31601         (untyped_call): Rework to correclty return values for any type.
31602         (untyped_return): New expand.
31603         * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
31604
31605 2005-02-16  Stan Shebs  <shebs@apple.com>
31606
31607         * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
31608         * config/rs6000/t-darwin8: New, for 64-bit multilib.
31609
31610 2005-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
31611
31612         * doc/install.texi (sparc-sun-solaris2*): Document required GMP
31613         configure settings on Solaris 7 and later.
31614
31615 2005-02-16  Diego Novillo  <dnovillo@redhat.com>
31616
31617         PR tree-optimization/19865
31618         * tree-optimize.c (init_tree_optimization_passes): Run
31619         pass_may_alias after pass_sra.
31620
31621 2005-02-16  Richard Henderson  <rth@redhat.com>
31622             Stuart Hastings  <stuart@apple.com>
31623
31624         PR debug/19521
31625         * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
31626         Do nothing if debug info suppressed for this function.
31627         (dbxout_begin_function): Early exit if debug info suppressed for
31628         this function.
31629
31630 2005-02-16  Kazu Hirata  <kazu@cs.umass.edu>
31631
31632         PR target/20007
31633         * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
31634         find_basic_blocks.
31635         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
31636
31637         PR tree-optimization/19967
31638         * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
31639         expand_builtin_strchr, expand_builtin_strrchr): Take a new
31640         argument TYPE.  Adjust calls to fold_builtin_XXX.
31641         (expand_builtin, fold_builtin_1): Adjust calls to
31642         expand_builtin_XXX.
31643         (fold_builtin_strchr, fold_builtin_strpbrk,
31644         fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
31645         result to a requested type TYPE.
31646
31647 2005-02-16  Jakub Jelinek  <jakub@redhat.com>
31648
31649         PR middle-end/19857
31650         * fold-const.c (fold): Don't optimize (T)(x & cst) to
31651         (T)x & (T)cst if (T)cst overflows.
31652         * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
31653         TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
31654
31655 2005-02-15  Jeff Law  <law@redhat.com>
31656
31657         * gcse.c (blocks_with_calls): New bitmap.
31658         (alloc_gcse_mem): Allocate it.
31659         (free_gcse_mem): Free it.
31660         (clear_modifY_mem_tables): Clear it.
31661         (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
31662         when we encounter CALL_INSNs.
31663         (compute_transp, case MEM): Handle blocks with calls separate
31664         from blocks without calls.  Use bitmap iterators rather than
31665         FOR_EACH_BB.
31666
31667 2005-02-15  Peter O'Gorman  <peter@pogma.com>
31668
31669         PR bootstrap/18810
31670         * mklibgcc.in (vis_hide): Use a temporary object file, not
31671         -o /dev/null.
31672
31673 2005-02-15  Andy Hutchinson  <HutchinsonAndy@netscape.net>
31674
31675         PR target/19924
31676         * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
31677         access optimization.
31678
31679 2005-02-15  David Edelsohn  <edelsohn@gnu.org>
31680             Alan Modra  <amodra@bigpond.net.au>
31681
31682         PR target/19019
31683         * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
31684         (_xlqsub): Rename to __gcc_qsub.
31685         (_xlqmul): Rename to __gcc_qmul.
31686         (_xlqdiv): Rename to __gcc_qdiv.
31687         Provide versioned symbol aliases with old names.
31688         * config/rs6000/libgcc-ppc64.ver: Rename symbols.
31689         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
31690         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
31691         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
31692         * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
31693
31694 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
31695
31696         * fold-const.c (fold): Fold -(~A) to A + 1.  Fold ~(-A) to A - 1.
31697         Fold ~(A - 1) and ~(A + -1) to -A.
31698
31699 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
31700
31701         PR pch/14940
31702         PR target/19300
31703         * config/host-linux.c (linux_gt_pch_use_address): Copy from
31704         config/pa/pa-host.c:pa_gt_pch_use_address.
31705
31706 2005-02-15  Daniel Berlin  <dberlin@dberlin.org>
31707
31708         * tree-vn.c (get_value_handle): Make sure that given an
31709         is_gimple_min_invariant expression, we always return it.
31710
31711 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
31712
31713         * passes.c (rest_of_handle_gcse): Fix a comment.
31714
31715 2005-02-15  Jeff Law  <law@redhat.com>
31716
31717         * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
31718         bitmap.
31719         (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
31720         (canon_list_insert, record_last_mem_set_info): Similarly.
31721         (clear_modify_mem_tables): Similarly.
31722
31723 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
31724
31725         * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
31726         tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
31727         config/mips/mips.md, config/rs6000/aix.h,
31728         config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
31729
31730 2005-02-15  Richard Henderson  <rth@redhat.com>
31731
31732         * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
31733         call to be best_edge.
31734
31735 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
31736
31737         * basic-block.h: Adjust the prototype for find_basic_blocks.
31738         * cfgbuild.c (find_basic_blocks): Remove unused arguments.
31739         * passes.c (rest_of_handle_loop_optimize): Adjust the call to
31740         find_basic_blocks.
31741
31742         * flow.c (recompute_reg_usage): Remove all arguments.
31743         * passes.c (rest_of_compilation): Adjust the call to
31744         recompute_reg_usage.
31745         * rtl.h: Adjust the prototype for recompute_reg_usage.
31746
31747 2005-02-14  Daniel Berlin  <dberlin@dberlin.org>
31748
31749         * tree-dump.c (dump_files): Update to reflect new member
31750         of dump_file_info.
31751         (dump_register): Add new argument.
31752         Set glob name.
31753         (dump_switch_p_1): Check against glob name if doglob was passed.
31754         (dump_switch_p): Check against regular first, then glob if
31755         we didn't have any hits on the dump name.
31756         * tree-optimize.c (register_one_dump_file):
31757         Pass in glob name as well.
31758         * tree-pass.h (struct dump_file_info): Add glob
31759         member.
31760
31761 2005-02-14  Joseph S. Myers  <joseph@codesourcery.com>
31762
31763         PR preprocessor/16323
31764         * doc/invoke.texi: Document that -Wendif-labels is on by default.
31765
31766 2005-02-14  David Edelsohn  <edelsohn@gnu.org>
31767
31768         PR target/19019
31769         * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
31770         (trunctfdf2_internal1): New.
31771         (trunctfdf2_internal2): Renamed from trunctfdf2.
31772
31773 2005-02-14  Diego Novillo  <dnovillo@redhat.com>
31774
31775         PR tree-optimization/19853
31776         * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
31777
31778 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
31779
31780         * passes.c (rest_of_handle_loop_optimize): Remove calls to
31781         delete_dead_jumptables and cleanup_cfg.
31782
31783 2005-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
31784
31785         * reload.c (find_reloads): Swap address_reloaded flags when
31786         swapping commutative operands.
31787
31788 2005-02-14  Sebastian Pop  <pop@cri.ensmp.fr>
31789
31790         * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
31791         Use standard_iv_increment_position for computing the bsi position
31792         for create_iv.
31793         * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
31794         the bsi position.
31795
31796 2005-02-13  Zdenek Dvorak  <dvorakz@suse.cz>
31797
31798         PR target/17428
31799         * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
31800         life range of hard registers.
31801         * value-prof.c (insn_prefetch_values_to_profile): Only
31802         scan normal insns.
31803
31804         * value-prof.c (rtl_find_values_to_profile): Do not look for values to
31805         profile in libcalls.
31806
31807 2005-02-13  Nathan Sidwell  <nathan@codesourcery.com>
31808
31809         * bitmap.h (bitmap_and_compl_into): Return bool.
31810         * bitmap.c (bitmap_and_compl_into): Return changed flag.
31811
31812 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
31813
31814         PR tree-optimization/19944
31815         * fold-const.c (fold): Re-add ABS_EXPR folding.
31816
31817 2005-02-13  David Edelsohn  <edelsohn@gnu.org>
31818
31819         PR target/19019
31820         * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
31821         {TARGET,MASK}_XL_COMPAT.
31822         (SUBTARGET_SWITCHES): Rename xl-call to xl-compat.  Use
31823         MASK_XL_COMPAT.
31824         * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
31825         * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
31826         TARGET_XL_COMPAT.
31827         (rs6000_arg_partial_bytes): Same.
31828         (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
31829         and XL compatibility enabled.
31830         * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
31831         * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
31832         test to final condition.
31833         (cmptf_internal2): New.
31834         * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
31835         xl-compat.  Add TFmode information to description.
31836
31837 2005-02-13  Kazu Hirata  <kazu@cs.umass.edu>
31838
31839         * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
31840
31841 2005-02-13  Jason Merrill  <jason@redhat.com>
31842
31843         PR c++/16405
31844         * fold-const.c (fold_indirect_ref_1): Split out from...
31845         (build_fold_indirect_ref): Here.
31846         (fold_indirect_ref): New fn.
31847         * tree.h: Declare it.
31848         * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
31849         (gimplify_modify_expr_rhs): Likewise.
31850         (gimplify_expr): Likewise.
31851
31852 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
31853
31854         PR tree-optimization/14303
31855         PR tree-optimization/15784
31856         * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
31857         Fold ABS_EXPR<x> < 0 to false.  Fold ABS_EXPR<x> == 0 to x == 0 and
31858         ABS_EXPR<x> != 0 to x != 0.
31859
31860 2005-02-12  Kazu Hirata  <kazu@cs.umass.edu>
31861
31862         * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
31863         simplify-rtx.c, tree-ssa-live.h: Fix comment typos.  Follow
31864         spelling conventions.
31865
31866         * passes.c (rest_of_handle_gcse): Don't run cse_main and
31867         delete_trivially_dead_insns too many times.
31868
31869         * passes.c (rest_of_handle_gcse): Remove dead assignments to
31870         tem and tem2.
31871
31872 2005-02-12  Ira Rosen  <irar@il.ibm.com>
31873
31874         * tree-vectorizer.c (vect_get_base_and_offset): Remove.
31875         (vect_is_simple_iv_evolution): Remove redundant parameter
31876         and step check.
31877         (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
31878         without last parameter.
31879         (vect_analyze_pointer_ref_access): Get access_fn as parameter.
31880         Return pointer step. Call vect_is_simple_iv_evolution without
31881         last parameter. Check only that the step is multiple of size
31882         type. Remove stmt_vinfo updates.
31883         (vect_get_memtag_and_dr): Remove.
31884         (vect_get_memtag): New function.
31885         (vect_address_analysis): New function.
31886         (vect_object_analysis): New function.
31887         (vect_analyze_data_refs): Call vect_object_analysis and
31888         vect_get_memtag. Update stmt_vinfo fields.
31889
31890 2005-02-12  Ira Rosen  <irar@il.ibm.com>
31891
31892         * tree-data-ref.c (array_base_name_differ_p): Check that the bases
31893         exist and are objects. Remove checks for pointer.
31894         * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
31895         STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
31896         (vect_create_data_ref_ptr): Likewise.
31897         (vect_base_addr_differ_p): New function.
31898         (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
31899         (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
31900         Don't set the DR_BASE_NAME field of data-ref.
31901         (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
31902
31903 2005-02-12  Uros Bizjak  <uros@kss-loka.si>
31904
31905         * optabs.h (enum optab_index): Add new OTI_ldexp.
31906         (ldexp_optab): Define corresponding macro.
31907         * optabs.c (init_optabs): Initialize ldexp_optab.
31908         * genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
31909         patterns.
31910         * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
31911         using ldexp_optab.
31912         (expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
31913         expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
31914
31915         * config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
31916         to implement ldexpf, ldexp and ldexpl built-ins as inline x87
31917         intrinsics.
31918
31919 2005-02-12  Ira Rosen  <irar@il.ibm.com>
31920
31921         * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
31922         to base_address.
31923         * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
31924         stmt_vec_info.
31925         (vect_get_base_and_offset): Always return an address.
31926         (vect_create_addr_base_for_vector_ref): Remove treatment for
31927         different data reference types.
31928         (vect_compute_data_ref_alignment): Rename base to base_address in
31929         stmt_vec_info. Get the object in order to force its alignment.
31930         (vect_get_memtag_and_dr): Rename base to base_address in
31931         stmt_vec_info. Extract the object for memtag analysis.
31932
31933 2005-02-12  Hans-Peter Nilsson  <hp@axis.com>
31934
31935         PR regression/19898.
31936         * config/cris/cris.c (cris_notice_update_cc): When testing if insn
31937         changes cc_status, use apply modified_in_p to part of cc_status
31938         and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
31939         body.
31940
31941 2005-02-11  Richard Henderson  <rth@redhat.com>
31942
31943         * tree-complex.c (expand_complex_libcall): New.
31944         (expand_complex_multiplication): Use it for c99 compliance.
31945         (expand_complex_division): Likewise.
31946         * fold-const.c (fold_complex_add, fold_complex_mult): New.
31947         (fold): Call them.
31948         * builtins.c (built_in_names): Remove const.
31949         * tree.c (build_common_builtin_nodes): Build complex arithmetic
31950         builtins.
31951         * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
31952         (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
31953         (built_in_names): Remove const.
31954         * c-common.c (c_common_type_for_mode): Handle complex modes.
31955         * flags.h, toplev.c (flag_complex_method): Rename from
31956         flag_complex_divide_method.
31957         * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
31958         __mulsc3, __muldc3, __mulxc3, __multc3): New.
31959         * libgcc2.h: Declare them.
31960         * libgcc-std.ver: Export them.
31961         * mklibgcc.in (lib2funcs): Build them.
31962
31963 2005-02-11  Steven Bosscher  <stevenb@suse.de>
31964
31965         PR tree-optimization/19876
31966         Partially revert my change from 2005-01-14
31967         * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
31968         (compute_antic): ...and remove the loop here.
31969
31970 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
31971
31972         PR middle-end/19858
31973         * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
31974         is number of inner's bits, avoid creating a BIT_FIELD_REF.
31975
31976         * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
31977         crtend.o if -pie.  Use %{x:a;:b} spec syntax.
31978
31979 2005-02-11  Daniel Jacobowitz  <dan@codesourcery.com>
31980
31981         * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
31982         offsets for the big-endian 32-bit case.
31983
31984 2005-02-11  Joseph S. Myers  <joseph@codesourcery.com>
31985
31986         * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
31987
31988 2005-02-11  Dale Johannesen  <dalej@apple.com>
31989
31990         * cselib.c (cselib_process_insn):  Clear out regs where
31991         HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
31992         * reload.c (find_equiv_reg): Ditto.
31993
31994 2005-02-11  Ian Lance Taylor  <ian@airs.com>
31995
31996         * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
31997         with no elements.
31998
31999         * tree.c (build_function_type_list): Work correctly if there are
32000         no arguments.
32001
32002 2005-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
32003
32004         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
32005         "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
32006         ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
32007         TARGET_ZARCH instead of TARGET_64BIT.
32008
32009 2005-02-11  Ralf Corsepius  <ralf.corsepius@rtems.org>
32010
32011         * config/rs6000/t-rtems:
32012         (MULTILIB_OPTIONS): Remove mcpu=602.
32013         (MUTLILIB_DIRNAMES): Remove m602.
32014         (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
32015         Let mcpu=602 match mcpu=603.
32016         (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
32017
32018 2005-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32019
32020         * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
32021         signal trampolines.
32022
32023 2005-02-10  David Daney  <ddaney@avtrex.com>
32024
32025         * config/alpha/linux-unwind.h: Add exception clause to copyright.
32026         * config/i386/linux-unwind.h: Likewise.
32027         * config/ia64/linux-unwind.h: Likewise.
32028         * config/mips/linux-unwind.h: Likewise.
32029         * config/pa/linux-unwind.h: Likewise.
32030         * config/rs6000/linux-unwind.h: Likewise.
32031         * config/s390/linux-unwind.h: Likewise.
32032         * config/sh/linux-unwind.h: Likewise.
32033         * config/sparc/linux-unwind.h: Likewise.
32034
32035 2005-02-10  Steven Bosscher  <stevenb@suse.de>
32036
32037         PR tree-optimization/17549
32038         * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
32039         TER to replace a DEF with its expression if the DEF and the
32040         rhs of the expression we replace into have the same root
32041         variable.
32042
32043 2005-02-10  Richard Sandiford  <rsandifo@redhat.com>
32044
32045         * config/mips/mips.md: Fix the placement of the match_scratch in the
32046         lea64 peephole2.
32047
32048 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
32049
32050         * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
32051         Fix comment typos.
32052
32053 2005-02-10  Zdenek Dvorak  <dvorakz@suse.cz>
32054
32055         * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
32056         (strip_offset): Handle addresses.
32057         (add_address_candidates): Use strip_offset.
32058         (difference_cost): Reflect strip_offset change.
32059         (force_var_cost, difference_cost): Strip nops.
32060
32061 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
32062
32063         * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
32064
32065         * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
32066         tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
32067         config/cris/cris-protos.h, config/cris/cris.c: Update
32068         copyright.
32069
32070 2005-02-10  Jeff Law  <law@redhat.com>
32071
32072         * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
32073         (lookup_avail_expr): Similarly.
32074
32075 2005-02-10  Richard Guenther  <rguenth@gcc.gnu.org>
32076
32077         * builtins.c (fold_builtin_powi): New function.
32078         (fold_builtin_1): Call it.
32079
32080 2005-02-10  Steven Bosscher  <stevenb@suse.de>
32081
32082         PR documentation/19309
32083         * doc/cpp.texi: The __GNUC__ and related predefined macros
32084         are also defined for the "standalone" cpp.
32085         Some non-GCC compilers may also define __GNUC__.
32086
32087 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
32088
32089         PR c/19342
32090         * c-typeck.c (common_type): New routine.  Old common_type renamed
32091         to...
32092         (c_common_type): ...this.
32093         (build_conditional_expr, build_binary_op): Use c_common_type instead
32094         of common_type.
32095
32096 2005-02-10  Steven Bosscher  <stevenb@suse.de>
32097
32098         * doc/md.texi: Replace @samp{length} with @code{length}.
32099
32100 2005-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
32101
32102         PR tree-optimization/18687
32103         * tree-flow.h (find_loop_niter): Declare.
32104         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
32105         Try using scev even for loops with more than one exit.
32106         * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
32107         (struct ivopts_data): Added niters field.
32108         (struct nfe_cache_elt): New.
32109         (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
32110         functions.
32111         (tree_ssa_iv_optimize_init): Initialize niters cache.
32112         (determine_number_of_iterations): Removed.
32113         (find_induction_variables): Do not call determine_number_of_iterations.
32114         Access niters for single exit through niter_for_single_dom_exit.
32115         (add_iv_outer_candidates): Access niters for single exit through
32116         niter_for_single_dom_exit.
32117         (may_eliminate_iv): Take data argument.  Use niter_for_exit.  Do not use
32118         number_of_iterations_cond.
32119         (iv_period): New function.
32120         (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
32121         (may_replace_final_value): Take data argument.  Use
32122         niter_for_single_dom_exit.
32123         (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
32124         (rewrite_use_compare): Pass data to may_eliminate_iv.
32125         (rewrite_use_outer): Pass data to may_replace_final_value.
32126         (free_loop_data): Clean up the niters cache.
32127         (tree_ssa_iv_optimize_finalize): Free the niters cache.
32128         (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
32129         * tree-ssa-loop-niter.c (find_loop_niter): New function.
32130         (find_loop_niter_by_eval): Use tree_int_cst_lt.
32131         (num_ending_zeros): Moved to tree.c.
32132         * tree.h (num_ending_zeros): Declare.
32133         * tree.c (num_ending_zeros): Moved from tree.c.
32134
32135 2005-02-09  Richard Henderson  <rth@redhat.com>
32136
32137         * builtins.c (DEF_BUILTIN): Add COND argument.
32138         * tree.h (DEF_BUILTIN): Likewise.
32139         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
32140         DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
32141         match.
32142         (DEF_BUILTIN_STUB): New.
32143         (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
32144         BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
32145         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
32146         * c-common.c (DEF_BUILTIN): Add COND argument.
32147         * tree.c (local_define_builtin): New.
32148         (build_common_builtin_nodes): New.
32149
32150 2005-02-09  Roger Sayle  <roger@eyesopen.com>
32151
32152         * fold-const.c (fold_strip_sign_ops): New function to simplify a
32153         floating point expression ignoring the sign of the result.
32154         (fold) <ABS_EXPR>: Use it to simplify fabs(x).
32155         (fold) <MULT_EXPR>: Use it to simplify x*x.
32156         * tree.h (fold_strip_sign_ops): Prototype here.
32157         * builtins.c (fold_builtin_copysign): Take an additional FNDECL
32158         argument.  Use fold_strip_sign_ops to simplify the first argument.
32159         (fold_builtin_pow):  Use fold_strip_sign_ops to simplify the
32160         first argument when the second argument is an even integer
32161         constant, but only with -funsafe_math_optimizations.
32162         (fold_builtin_1): Update call to fold_builtin_copysign.
32163
32164 2005-02-09  Ian Lance Taylor  <ian@airs.com>
32165
32166         PR middle-end/19583
32167         * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
32168         just check whether EH_FILTER_FAILURE falls through.
32169
32170 2005-02-09  Andreas Krebbel  <krebbel1@de.ibm.com>
32171
32172         * gcc/haifa-sched.c (schedule_block): Make queued sched group
32173         insns return to ready list in the next turn.
32174
32175 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
32176
32177         PR middle-end/19402
32178         * builtins.def: New __builtin_powi[lf].
32179         * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
32180         (expand_builtin_powi): New function.
32181         (expand_builtin): Dispatch to expand_builtin_powi.
32182         * libgcc2.h: Add prototypes for __builtin_powi[lf].
32183         * libgcc2.c: Add __builtin_powi[lf] implementation.
32184         * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
32185         * optabs.h: Add powi_optab.
32186         * optabs.c (init_optabs): Initialize powi_optab.
32187         * doc/extend.texi: Document __builtin_powi[lf].
32188
32189 2005-02-09  Dorit Naishlos  <dorit@il.ibm.com>
32190
32191         * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file
32192         exists.
32193
32194 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
32195
32196         PR middle-end/19854
32197         * fold-const.c (try_move_mult_to_index): Remove redundant
32198         type argument.  Create ADDR_EXPR with correct type.
32199         (fold): Update callers of try_move_mult_to_index.  Convert
32200         result to the appropriate type.
32201
32202 2005-02-09  Roger Sayle  <roger@eyesopen.com>
32203
32204         PR target/19597
32205         * config/avr/avr.c (default_rtx_costs): Delete.
32206         (avr_operand_rtx_cost): New function.
32207         (avr_rtx_costs): Completely rewrite.
32208
32209 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
32210
32211         PR target/19806
32212         * config/cris/cris.c (in_code): New variable.
32213         (cris_output_addr_const): Now a static function, a wrapper for
32214         output_addr_const.
32215         (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
32216         case from old cris_output_addr_const.
32217         (cris_asm_output_label_ref): Similar for LABEL_REF.
32218         (cris_output_addr_const_extra): Similar for UNSPEC.
32219         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
32220         (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
32221         * config/cris/cris-protos.h (cris_output_addr_const): Remove
32222         declaration.
32223         (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
32224         (cris_asm_output_label_ref): Declare.
32225
32226 2005-02-08  Paolo Bonzini  <bonzini@gnu.org>
32227
32228         PR preprocessor/19801
32229         * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
32230         filenames that changed when libcpp was moved to the toplevel.
32231
32232 2005-02-07  Roger Sayle  <roger@eyesopen.com>
32233
32234         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
32235         zero extensions of BImode operands.  Call lowpart_subreg instead
32236         of gen_lowpart_common and gen_lowpart_SUBREG.
32237
32238 2005-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
32239
32240         PR ada/19489
32241         * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
32242         * configure.ac: Set cc_for_cross_gnattools.
32243         * configure: Regenerate.
32244
32245 2005-02-08  Alan Modra  <amodra@bigpond.net.au>
32246
32247         PR target/19803
32248         * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
32249
32250 2005-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
32251
32252         PR debug/19327
32253         * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
32254         of nested functions.
32255
32256 2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>
32257
32258         * doc/extend.texi: Document deprecated extensions allowing
32259         static floating-point members to have initializers and allowing
32260         floating-point literals in integral constant expressions.
32261
32262 2005-02-07  Kazu Hirata  <kazu@cs.umass.edu>
32263
32264         * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
32265         config/darwin7.h, config/mips/mips.c,
32266         config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
32267         Update copyright.
32268
32269         * cse.c: Update comments.
32270
32271 2005-02-07  Richard Guenther  <rguenth@gcc.gnu.org>
32272
32273         PR middle-end/19775
32274         * builtins.c (fold_builtin_sqrt): Transform
32275         sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
32276         pow(x,y*0.5).
32277
32278 2005-02-07  Leehod Baruch  <leehod@il.ibm.com>
32279             Dorit Naishlos  <dorit@il.ibm.com>
32280
32281         * doc/invoke.texi (ftree-vectorizer-verbose): New.
32282         * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
32283         * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
32284         was added.
32285         * tree.h (vect_set_verbosity_level): New extern function declaration
32286         added.
32287         * tree-vectorizer.h (verbosity_levels): New enum type.
32288         * tree-vectorizer.c (vect_debug_stats): Function removed.
32289         (vect_debug_details): Likewise.
32290         (vect_verbosity_level): Global variable was defined and initialized.
32291         (vect_dump): Global variable definition.
32292         (vect_print_dump_info): New function.
32293         (vect_set_dump_settings): New function.
32294         (vect_set_verbosity_level): New function.
32295         (vectorize_loops): Add call to vect_set_dump_settings.
32296
32297         (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
32298         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
32299         (slpeel_tree_peel_loop_to_edge): Likewise.
32300
32301         (vect_analyze_offset_expr): Call to vect_print_dump_info with
32302         appropriate verbosity level instead of call to vect_debug_details
32303         or vect_debug_stats.
32304         (vect_get_base_and_offset):
32305         (vect_create_addr_base_for_vector_ref):
32306         (get_vectype_for_scalar_type):
32307         (vect_create_data_ref_ptr):
32308         (vect_init_vector):
32309         (vect_get_vec_def_for_operand):
32310         (vect_finish_stmt_generation):
32311         (vectorizable_assignment):
32312         (vectorizable_operation):
32313         (vectorizable_store):
32314         (vectorizable_load):
32315         (vect_transform_stmt):
32316         (vect_update_ivs_after_vectorizer):
32317         (vect_do_peeling_for_loop_bound):
32318         (vect_update_inits_of_drs):
32319         (vect_do_peeling_for_alignment):
32320         (vect_transform_loop):
32321         (vect_is_simple_use):
32322         (vect_analyze_operations):
32323         (vect_is_simple_iv_evolution):
32324         (vect_analyze_scalar_cycles):
32325         (vect_analyze_data_ref_dependence):
32326         (vect_analyze_data_ref_dependences):
32327         (vect_compute_data_ref_alignment):
32328         (vect_enhance_data_refs_alignment):
32329         (vect_analyze_data_refs_alignment):
32330         (vect_analyze_data_ref_access):
32331         (vect_analyze_data_ref_accesses):
32332         (vect_analyze_pointer_ref_access):
32333         (vect_get_memtag_and_dr):
32334         (vect_analyze_data_refs):
32335         (vect_mark_relevant):
32336         (vect_stmt_relevant_p):
32337         (vect_mark_stmts_to_be_vectorized):
32338         (vect_can_advance_ivs_p):
32339         (vect_get_loop_niters):
32340         (vect_analyze_loop_form):
32341         (vect_analyze_loop):
32342         (vectorize_loops): Likewise.
32343
32344         (vect_do_peeling_for_loop_bound): Dump format slightly changed.
32345         (vect_update_inits_of_drs):
32346         (vect_do_peeling_for_alignment):
32347         (vect_transform_loop):
32348         (vect_analyze_operations):
32349         (vect_analyze_scalar_cycles):
32350         (vect_analyze_data_ref_dependences):
32351         (vect_analyze_data_refs_alignment):
32352         (vect_analyze_data_ref_accesses):
32353         (vect_analyze_data_refs):
32354         (vect_mark_stmts_to_be_vectorized):
32355         (vect_get_loop_niters):
32356         (vect_analyze_loop_form):
32357         (vect_analyze_loop): Likewise.
32358         (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
32359
32360 2005-02-07  Richard Sandiford  <rsandifo@redhat.com>
32361
32362         PR bootstrap/19796
32363         Revert:
32364         2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
32365         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
32366         either -ffast-math or -funsafe-math-optimizations is in use.
32367
32368         2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
32369         * config/mips/irix-csr.c: New file.
32370         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
32371         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
32372         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
32373         executables.
32374
32375 2005-02-07  Alexandre Oliva  <aoliva@redhat.com>
32376
32377         * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
32378         redundant, incorrect definitions.
32379
32380         * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
32381         expand.
32382         ("*tls_indirect_call"): New, reference hard regs directly.
32383         * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
32384
32385 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
32386
32387         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC):
32388         Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
32389
32390 2005-02-06  Roger Sayle  <roger@eyesopen.com>
32391
32392         PR rtl-optimization/19800
32393         * simplify_rtx.c (simplify_relational_operation_1): Explicitly
32394         call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
32395         gen_lowpart.
32396
32397 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
32398
32399         * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
32400
32401 2005-02-07  Joseph S. Myers  <joseph@codesourcery.com>
32402
32403         PR other/17135
32404         * doc/invoke.texi: Correct documentation of -freorder-functions.
32405
32406 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
32407
32408         PR other/14402
32409         * doc/invoke.texi: Don't mention gccbug.
32410
32411 2005-02-06  Roger Sayle  <roger@eyesopen.com>
32412             Andrew Pinski  <pinskia@physics.uc.edu>
32413             Paolo Bonzini  <paolo.bonzini@lu.unisi.ch>
32414
32415         * simplify-rtx.c (simplify_relational_operation_1): Simplify
32416         (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
32417         into just (zero_extract:SI FOO (const_int 1) BAR).
32418
32419 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
32420
32421         * doc/cpp.texi: Include gcc-common.texi.  Don't define gcctabopt
32422         macro locally.  Don't give last revision date.  Use GCC version
32423         number from gcc-common.texi.
32424         * doc/cppinternals.texi: Include gcc-common.texi.  Don't give last
32425         revision date.  Use GCC version number from gcc-common.texi.
32426         Describe being a library as current state rather than as 3.x
32427         history.
32428         * doc/gcc.texi: Remove last update date.
32429         * doc/gccint.texi: Likewise.  Update copyright dates.
32430         * doc/install.texi: Update copyright dates.
32431
32432 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
32433
32434         PR other/7549
32435         * doc/invoke.texi: Mention for each option included in -Wall that
32436         it is included in -Wall.
32437         * doc/gcc.texi: Update copyright and last modification date.
32438
32439 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
32440
32441         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
32442         unnecessary cast to original induction variable increments.
32443
32444 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
32445
32446         PR tree-optimization/18219
32447         * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
32448         in distributed form.
32449
32450 2005-02-06  Richard Sandiford  <rsandifo@redhat.com>
32451
32452         * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
32453         Set bitpos and offset later in the function.  Do nothing if the
32454         target is a register and if the bitfield lies completely outside
32455         that register.
32456         (extract_bit_field): Make the same SUBREG, bitpos and offset changes
32457         here.  Return an uninitialised register if the source value is stored
32458         in a register and the bitfield lies completely outside that register.
32459
32460 2005-02-06  Steven Bosscher  <stevenb@suse.de>
32461
32462         * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
32463         not SET_DEST.
32464
32465 2005-02-06  Marcin Dalecki  <martin@dalecki.de>
32466
32467         * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
32468
32469 2005-02-06  Geoffrey Keating  <geoffk@apple.com>
32470
32471         * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
32472         * config/darwin8.h: New.
32473         * config/darwin7.h: Update comment.
32474
32475 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
32476             Dorit Naishlos  <dorit@il.ibm.com>
32477
32478         * tree-vectorizer.h (LOC): New type.
32479         (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
32480         (loop_line_number): New field in struct _loop_vec_info.
32481         (LOOP_VINFO_LOC, LOOP_LOC): New macros.
32482
32483         * tree-vectorizer.c (input.h): Included.
32484         (find_loop_location): New function.
32485         (vect_debug_stats): Argument changed from loop to LOC. Computation of
32486         loop line number removed.
32487         (vect_debug_details): Likewise.
32488         (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
32489
32490         (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
32491         call to vect_debug_details/stats changed from loop to loop_loc.
32492         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
32493         (slpeel_tree_peel_loop_to_edge): Likewise.
32494
32495         (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
32496         changed from NULL to UNKNOWN_LOC.
32497         (vect_get_base_and_offset):
32498         (vect_create_addr_base_for_vector_ref):
32499         (get_vectype_for_scalar_type):
32500         (vect_create_data_ref_ptr):
32501         (vect_init_vector):
32502         (vect_get_vec_def_for_operand):
32503         (vect_finish_stmt_generation):
32504         (vectorizable_assignment):
32505         (vectorizable_operation):
32506         (vectorizable_store):
32507         (vectorizable_load):
32508         (vect_transform_stmt):
32509         (vect_update_ivs_after_vectorizer):
32510         (vect_do_peeling_for_loop_bound):
32511         (vect_do_peeling_for_alignment):
32512         (vect_transform_loop):
32513         (vect_is_simple_use):
32514         (vect_analyze_operations):
32515         (vect_is_simple_iv_evolution):
32516         (vect_analyze_scalar_cycles):
32517         (vect_analyze_data_ref_dependences):
32518         (vect_compute_data_ref_alignment):
32519         (vect_enhance_data_refs_alignment):
32520         (vect_analyze_data_ref_access):
32521         (vect_analyze_data_ref_accesses):
32522         (vect_analyze_pointer_ref_access):
32523         (vect_get_memtag_and_dr):
32524         (vect_analyze_data_refs):
32525         (vect_mark_relevant):
32526         (vect_stmt_relevant_p):
32527         (vect_mark_stmts_to_be_vectorized):
32528         (vect_can_advance_ivs_p):
32529         (vect_get_loop_niters):
32530         (vect_analyze_loop):
32531         (vectorize_loops): Likewise.
32532
32533         (vectorizable_load): Argument in call to vect_debug_details/stats
32534         changed from loop to LOOP_LOC (loop_vinfo).
32535         (vect_transform_loop):
32536         (vect_analyze_operations):
32537         (vect_analyze_scalar_cycles):
32538         (vect_analyze_data_ref_dependence):
32539         (vect_enhance_data_refs_alignment):
32540         (vect_analyze_data_ref_accesses):
32541         (vect_analyze_pointer_ref_access):
32542         (vect_analyze_data_refs):
32543         (vect_analyze_loop): Likewise.
32544
32545         (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
32546         changed from loop to loop_loc.
32547
32548         (vect_enhance_data_refs_alignment): Removed unused variable loop.
32549
32550 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
32551             Dorit Naishlos  <dorit@il.ibm.com>
32552
32553         * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
32554         declaration added.
32555         (vect_analyze_data_ref_dependences): Likewise.
32556
32557         (vect_is_simple_use): Argument changed from loop structure to
32558         loop_vect_info structure.
32559         (vect_can_advance_ivs_p): Likewise.
32560         (vect_create_index_for_vector_ref): Likewise.
32561         (vect_update_ivs_after_vectorizer): Likewise.
32562         (new_stmt_vec_info): Likewise.
32563
32564         (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
32565         changed from loop to loop_vinfo.
32566         (vect_create_data_ref_ptr): First argument in call to
32567         vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
32568         (vectorizable_assignment): Second argument in call to vect_is_simple_use
32569         was changed from loop to loop_vinfo.
32570         (vectorizable_operation): Likewise.
32571         (vectorizable_store): Likewise.
32572         (vect_mark_stmts_to_be_vectorized): Likewise.
32573         (vect_do_peeling_for_loop_bound): First argument in call to
32574         vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
32575         (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
32576         was changed from loop to loop_vinfo.
32577         (vect_analyze_data_ref_dependences): Third argument in call to
32578         vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
32579
32580         (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
32581         (vect_create_data_ref_ptr): Likewise.
32582         (vect_init_vector): Likewise.
32583         (vect_get_vec_def_for_operand): Likewise.
32584         (vectorizable_assignment): Likewise.
32585         (vectorizable_operation): Likewise.
32586         (vectorizable_store): Likewise.
32587         (vectorizable_load): Likewise.
32588         (vect_update_ivs_after_vectorizer): Likewise.
32589         (vect_is_simple_use): Likewise.
32590         (vect_analyze_data_ref_dependence): Likewise.
32591         (vect_analyze_pointer_ref_access): Likewise.
32592         (vect_can_advance_ivs_p): Likewise.
32593
32594         * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
32595         before _stmt_vec_info.
32596         (_stmt_vec_info): Loop field replaced by loop_vec_info.
32597         (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
32598         (new_stmt_vec_info): Argument changed from loop structure to
32599         loop_vect_info structure
32600
32601         (vect_analyze_data_ref_dependences): Unnecessary line was removed.
32602         (vect_analyze_offset_expr): Avoid 80 columns overflow.
32603         (vect_create_addr_base_for_vector_ref): Likewise.
32604         (vect_analyze_pointer_ref_access): Likewise.
32605
32606 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
32607
32608         PR tree-opt/19768
32609         * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
32610         phi flag if the phi is abnormal.
32611
32612 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
32613
32614         PR tree-opt/19736
32615         * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
32616         information for the new statement.
32617
32618 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
32619
32620         PR driver/19117
32621         * gcc.c (main): Include the target in -v output.
32622
32623 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
32624
32625         * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
32626         Do not drop the extend if we'd have to add a paradoxical subreg
32627         later.  Include optabs.h and insn-codes.h.
32628         * Makefile.in (combine.o): Depend on $(OPTABS_H).
32629
32630 2005-02-02  Roger Sayle  <roger@eyesopen.com>
32631
32632         PR middle-end/19405
32633         * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
32634         * fold-const.c (const_binop): Avoid constant folding floating
32635         point operations in modes that use composite representations.
32636         * simplify-rtx.c (simplify_binary_operation): Likewise.
32637
32638 2005-02-02  Geoffrey Keating  <geoffk@apple.com>
32639
32640         * config/rs6000/altivec.md (altivec_dst): Make the first operand
32641         a REG, not a MEM.
32642         (altivec_dstt): Likewise.
32643         (altivec_dstst): Likewise.
32644         (altivec_dststt): Likewise.
32645         * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
32646         of first operand.
32647
32648 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
32649
32650         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
32651         EXPR_LOCUS from orig_cond to the new cond_stmt.
32652         (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
32653         the new vec_stmt.
32654
32655 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
32656
32657         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
32658         standard_iv_increment_position. Remove call to bsi_next
32659         (no need to bump the iterator anymore).
32660         (vect_create_index_for_vector_ref): Call
32661         standard_iv_increment_position. Remove second function argument.
32662         (vect_finish_stmt_generation): Remove call to bsi_next
32663         (no need to bump the iterator anymore).
32664         (vect_create_data_ref_ptr): Remove second argument (bsi) in call
32665         to vect_create_index_for_vector_ref.
32666
32667 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
32668
32669         * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
32670         phis are used out of the loop.
32671
32672 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
32673
32674         PR c/17807
32675         * c-decl.c (undef_nested_function): New variable.
32676         (pop_scope): Diagnose undefined nested functions.
32677         (finish_function): Don't attempt cgraph processing or genericizing
32678         if current top-level function contained an undefined nested
32679         function.  Reset undef_nested_function at the end of a top-level
32680         function.
32681
32682 2005-02-02  Zdenek Dvorak  <dvorakz@suse.cz>
32683
32684         * tree.c (build_int_cst_type): Take sign of the value into account
32685         when deciding whether sign extend the value.
32686
32687 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
32688
32689         PR c/18502
32690         * gcc.c (cpp_unique_options): Remove %{trigraphs}.
32691         (cpp_options, cc1_options): Change %{std*&ansi} to
32692         %{std*&ansi&trigraphs}.
32693
32694 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
32695
32696         * cse.c: Update comments.
32697
32698 2005-02-02  Aldy Hernandez  <aldyh@redhat.com>
32699
32700         * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
32701         arguments go on the stack.  Do not put complex doubles in odd/even
32702         pairs.
32703
32704 2005-02-02  Steven Bosscher  <stevenb@suse.de>
32705
32706         * doc/invoke.texi: Update the options enabled at -O1, -O2,
32707         and -O3.  Update the documentation for -fgcse-sm, -fgcse-las,
32708         -ftree-pre, and -fthread-jumps.
32709
32710 2005-02-02  Richard Sandiford  <rsandifo@redhat.com>
32711
32712         PR tree-optimization/19578
32713         * tree-flow.h (modified_noreturn_calls): Declare.
32714         (noreturn_call_p): Declare.
32715         * tree-flow-inline.h (noreturn_call_p): New function.
32716         (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
32717         * tree-cfg.c (modified_noreturn_calls): New variable.
32718         (cleanup_control_flow): Use noreturn_call_p.  Split basic blocks
32719         that contain a mid-block noreturn call.
32720         * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
32721
32722 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
32723
32724         * df.c (df_def_record_1, df_uses_record): Don't use
32725         DF_FOR_REGALLOC.
32726         * df.h (DF_FOR_REGALLOC): Remove.
32727
32728 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
32729
32730         PR c/19435
32731         * c-typeck.c (really_start_incremental_init): Reset
32732         constructor_max_index for arrays of incomplete type.
32733
32734 2005-02-02  Jeff Law  <law@redhat.com>
32735
32736         * gcse.c (struct reg_set): Store the block index where the register
32737         was set rather than the setting insn.
32738         (record_one_set, compute_transp): Corresponding changes.
32739         (pre_insert_copy_insn): Do not call replace_one_set.
32740         (replace_one_set): Remove.
32741
32742 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
32743
32744         PR other/15514
32745         * doc/gcov.texi: Fix typo.
32746
32747 2005-02-01  Richard Henderson  <rth@redhat.com
32748
32749         PR target/19680
32750         * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
32751         * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
32752         type to bool.
32753         (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
32754         * config/i386/i386-protos.h: Update.
32755
32756 2005-02-01  Steven Bosscher  <stevenb@suse.de>
32757
32758         PR tree-optimization/19217
32759         * tree-cfg.c (verify_expr): Use the data field to see if TP was
32760         seen inside a PHI node.  Do not do the ADDR_EXPR check if it was.
32761         (verify_stmts): Pass (void*)1 as data to verify_expr to signal
32762         that it is walking a PHI node.
32763
32764 2005-02-01  Joseph S. Myers  <joseph@codesourcery.com>
32765
32766         * doc/extend.texi (Nested Functions): Update.
32767
32768 2005-02-01  Richard Henderson  <rth@redhat.com>
32769
32770         PR 19696
32771         * optabs.c (expand_copysign_absneg): Export.
32772         * optabs.h (expand_copysign_absneg): Declare.
32773         * config/rs6000/rs6000.md (copysigntf3): New.
32774
32775 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
32776
32777         PR tree-optimization/19633
32778         * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
32779         * tree-ssa-alias.c (init_alias_info): Initialize.
32780         (merge_pointed_to_info): Set.
32781         (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
32782         (dump_points_to_info_for): Show value of pt_null.
32783         (struct count_ptr_d): Declare.
32784         (find_ptr_dereference): Remove.
32785         (ptr_is_dereferenced_by): Remove.
32786         (count_ptr_derefs): New local function.
32787         (count_uses_and_derefs): New local function.
32788         (compute_points_to_and_addr_escape): Call it.  If the number
32789         of dereferences is greater than zero, mark the pointer as
32790         dereferenced.  If there are fewer dereferences than uses of
32791         the pointer, the pointer's value escapes.
32792
32793 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
32794
32795         PR tree-optimization/19670
32796         * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
32797         here...
32798         (verify_use): ... set it here, instead.
32799
32800 2005-02-01  Janis Johnson  <janis187@us.ibm.com>
32801
32802         * doc/sourcebuild.texi (Test directives): Fix formatting.
32803
32804         * doc/sourcebuild.texi (Test directives): Describe selector
32805         expressions.
32806
32807 2005-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
32808
32809         * config.gcc (powerpc64-*-linux*): Default to -m64 also for
32810         specific 64-bit CPUs.
32811
32812 2005-02-01  Richard Earnshaw  <rearnsha@arm.com>
32813
32814         PR target/16201
32815         * arm.c (arm_eliminable_register): New function.
32816         (adjacent_mem_locations): Don't allow eliminable registers.  Use
32817         HOST_WIDE_INT for address offsets.
32818         * arm-protos.h (arm_eliminable_register): Add prototype.
32819
32820 2005-02-01  Steven Bosscher  <stevenb@suse.de>
32821
32822         PR optimization/15242
32823         * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
32824         * basic-block.h (duplicate_computed_gotos): Add prototype.
32825         * bb-reorder.c (duplicate_computed_gotos): New function to
32826         duplicate sufficiently small blocks ending in a computed jump.
32827         * passes.c (rest_of_compilation): Call duplicate_computed_gotos
32828         if not optimizing for size.
32829         * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
32830         never do tail merging for blocks ending in a computed jump.
32831         * doc/invoke.texi: Document the max-goto-duplication-insns param.
32832
32833 2005-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
32834
32835         Patch from Richard Sandiford <rsandifo@redhat.com>
32836         * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
32837         from inheriting a subreg equivalence with a non-spill register.
32838
32839         * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
32840
32841 2005-02-01  Alexandre Oliva  <aoliva@redhat.com>
32842
32843         * config/frv/frv.c (movcc_fp_destination_operand): New.
32844         (gpr_or_memory_operand): Fix typo in comment.
32845         (gpr_or_memory_operand_with_scratch): New.
32846         * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
32847         * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
32848         movcc_fp_destination_operand.
32849         (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
32850         Legitimize memory addresses using a scratch register.
32851
32852 2005-01-31  Jeff Law  <law@redhat.com>
32853
32854         * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
32855         bitmap a sparse bitmap instead of a simple bitmap.
32856         (mark_def_sites_initialize_block):  Corresponding changes.
32857         (ssa_mark_def_sites_initialize_block): Likewise.
32858         (ssa_mark_phi_uses): Likewise.
32859         (mark_def_site, ssa_mark_def_sites): Likewise.
32860         (mark_def_site_blocks): Likewise.
32861         (rewrite_ssa_into_ssa): Likewise.
32862
32863         * tree-ssa-dom.c (record_cond): Pass correct variable type
32864         for last argument to htab_find_slot_with_hash.
32865
32866         * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
32867         effects when optimizing 0 % X.  Do not try to optimize X % 0.
32868
32869 2005-01-31  James E. Wilson  <wilson@specifixinc.com>
32870
32871         * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
32872         1_mmalua.
32873
32874 2005-02-01  Eric Christopher  <echristo@redhat.com>
32875
32876         * config/mips/mips.c (override_options): Warn if -mint64
32877         is used.
32878         * doc/invoke.texi (MIPS Options): Document that -mint64 is
32879         deprecated.
32880
32881 2005-02-01  Kazu Hirata  <kazu@cs.umass.edu>
32882
32883         * cse.c (cse_reg_info): Remove hash_next, next, regno.  Add
32884         timestamp.
32885         (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
32886         REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
32887         cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
32888         (cached_regno): Initialize to INVALID_REGNUM.
32889         (cse_reg_info_table_size,
32890         cse_reg_info_table_first_uninitialized,
32891         cse_reg_info_timestamp): New.
32892         (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
32893         get_cse_reg_info.
32894         (init_cse_reg_info, get_cse_reg_info_1): New.
32895         (get_cse_reg_info): Cache the last look-up.
32896         (new_basic_block): Update the code to clear mappings from
32897         registers to cse_reg_info entries.
32898         (cse_main): Call init_cse_reg_info.
32899
32900         * cse.c (get_cse_reg_info): Update a comment.
32901
32902 2005-01-31  Steven Bosscher  <stevenb@suse.de>
32903
32904         PR c/19333
32905         * c-decl.c (start_decl): Do not warn about arrays of elements with
32906         an incomplete type here.
32907         (grokdeclarator): Do it here by making a pedwarn an error.
32908         * c-typeck.c (push_init_level): If there were previous errors with
32909         the constructor type, do not warn about braces for initializers.
32910         (process_init_element): Likewise for excess initializer elements.
32911
32912 2005-01-31  Kazu Hirata  <kazu@cs.umass.edu>
32913
32914         * cse.c (delete_trivially_dead_insn): Don't iterate.
32915
32916 2005-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
32917
32918         * config/rs6000/rs6000.md (copysignsf3): New expand.
32919         (copysigndf3): Likewise.
32920
32921 2005-01-31  Steven Bosscher  <stevenb@suse.de>
32922
32923         * recog.c (constrain_operands): Only look for earlyclobber operand
32924         conflicts if an '&' constraint was seen.
32925
32926 2005-01-31  Marc Espie <espie@openbsd.org>
32927
32928         * config.gcc: Don't include embedded systems fragment, switches default
32929         debugging format to ELF.
32930         * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
32931         longer pick it up there.
32932
32933 2005-01-31  Dale Johannesen  <dalej@apple.com>
32934
32935         * doc/extend.texi (nested functions): Fix linkage description.
32936         Clarify that static is not allowed.
32937
32938 2005-01-31  Dale Johannesen  <dalej@apple.com>
32939
32940         * config/rs6000/darwin.md (movsf_low_di):  Make work.
32941         (movdf_low_di):  Make work.
32942
32943 2005-01-31  Dale Johannesen  <dalej@apple.com>
32944
32945         * config/rs6000/darwin-tramp.asm (__trampoline_setup):
32946         Make work for 64 bit.
32947
32948 2005-01-31  Roger Sayle  <roger@eyesopen.com>
32949             Dale Johannesen  <dalej@apple.com>
32950
32951         PR middle-end/19650
32952         * fold-const.c (fold_binary_op_with_conditional_arg):
32953         Make types match original operands, before STRIP_NOPS.
32954
32955 2005-01-31  Alan Modra  <amodra@bigpond.net.au>
32956
32957         * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
32958         (struct gcc_regs): Rename from gcc_pt_regs.  Add more regs.
32959         (struct gcc_sigcontext): Delete.  Merge contents to..
32960         (struct gcc_ucontext): ..here.
32961         (get_sigcontext): Delete.
32962         (get_regs): New function, like get_sigcontext but return regs ptr.
32963         64-bit version finds regs from r1 to support vdso.
32964         (ppc_linux_aux_vector): New function.
32965         (ppc_fallback_frame_state): Modify for get_regs.  Restore fprs
32966         and vector regs.
32967
32968 2005-01-31  Ira Rosen  <irar@il.ibm.com>
32969
32970         * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
32971         sizetype.
32972         (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
32973         redundant fold. Fix misalignment for MINUS_EXPR.
32974         (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
32975         (vect_analyze_pointer_ref_access): Likewise.
32976         (vect_get_memtag_and_dr): Likewise.
32977
32978 2005-01-31  Richard Henderson  <rth@redhat.com>
32979
32980         * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
32981         (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
32982         absnegdf2_i387, absnegxf2_i387): Likewise.
32983
32984 2005-01-31  Richard Henderson  <rth@redhat.com>
32985
32986         PR 19696
32987         * optabs.c (expand_copysign_absneg): New.
32988         (expand_copysign_bit): Split out from ...
32989         (expand_copysign): ... here.  Use expand_copysign_absneg.
32990
32991 2005-01-30  Roger Sayle  <roger@eyesopen.com>
32992
32993         PR middle-end/19697
32994         * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
32995         constant as the second operand and a register as the third.
32996
32997 2005-01-31  Danny Smith  <dannysmith@users.sourceforge.net>
32998
32999         PR target/19704
33000         * config/i386/i386.c (ix86_function_ok_for_sibcall):  Also check
33001         that dllimport'd functions do not use all call-clobbered registers
33002         to pass parameters.
33003
33004 2005-01-30  Richard Henderson  <rth@redhat.com>
33005
33006         PR 19696
33007         * optabs.c (expand_absneg_bit): Split out from expand_unop and
33008         expand_abs_nojump and generalize.  Use operand_subword and
33009         emit_no_conflict_block.  Support large modes.
33010         (expand_abs_nojump): Use it.  Use HONOR_SIGNED_ZEROS to fall
33011         back to maximum.
33012         (expand_unop): Likewise.  Use HONOR_SIGNED_ZEROS to fall back
33013         negation to subtraction.
33014         (expand_copysign): Check that the format has signed zeros.
33015         Use operand_subword and emit_no_conflict_block.  Support large modes.
33016
33017 2005-01-30  Daniel Berlin  <dberlin@dberlin.org>
33018
33019         Fix PR tree-optimization/19624
33020
33021         * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
33022         * tree-ssa-pre.c: Add cfgloop.h.
33023         Update comment.
33024         (pre_stats): New member, constified.
33025         (inserted_exprs): New static variable.
33026         (NECESSARY): New macro.
33027         (create_expression_by_pieces): Fold the expression, and
33028         mark it as defaulting to not necessary. Also put in
33029         inserted_exprs.
33030         (fully_constant_expression): New function.
33031         (insert_into_preds_of_block): Modify to not insert phis when we
33032         are playing with induction variables.
33033         Push phis onto the inserted_exprs vector, and mark them as not
33034         necessary by default.
33035         (insert_aux): Call fully_constant_expression on eprime.
33036         If all edges produce the same value, mark it constant.
33037         (mark_operand_necessary): New function.
33038         (remove_dead_inserted_code): New function.
33039         (init_pre): Init loop optimizer to get loop info.
33040         (fini_pre): Free loop_optimizer, and inserted_exprs vec.
33041         (execute_pre): Commit edge inserts, then remove dead code.
33042
33043 2005-01-30  Richard Henderson  <rth@redhat.com>
33044
33045         * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
33046         * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
33047
33048 2005-01-30  Richard Henderson  <rth@redhat.com>
33049
33050         PR target/19700
33051         * config/i386/i386.c (ix86_expand_copysign): New.
33052         (ix86_split_copysign_const): New.
33053         (ix86_split_copysign_var): Rename from ix86_split_copysign,
33054         rearrange op1/nmask operands.
33055         * config/i386/i386-protos.h: Update.
33056         * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
33057         (copysigndf3): Likewise.
33058         (copysignsf3_const, copysigndf3_const): New.
33059         (copysignsf3_var): Rename from copysignsf3, split out splitter
33060         and fix split predicate for X constraint.
33061         (copysigndf3_var): Similarly.
33062
33063 2005-01-30  Kazu Hirata  <kazu@cs.umass.edu>
33064
33065         * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
33066         doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
33067         doc/tm.texi, doc/tree-ssa.texi: Update copyright.
33068
33069 2005-01-29  Richard Henderson  <rth@redhat.com>
33070
33071         PR target/19690
33072         * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
33073         of # and * in constraints.
33074
33075 2005-01-29  Richard Henderson  <rth@redhat.com>
33076
33077         PR middle-end/19689
33078         * expr.c (store_field): Don't strip sub-mode cast when the input
33079         data is even smaller.
33080
33081 2005-01-29  Richard Henderson  <rth@redhat.com>
33082
33083         PR middle-end/19687
33084         * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
33085         union being empty.
33086
33087 2005-01-29  Richard Henderson  <rth@redhat.com>
33088
33089         * combine.c (make_field_assignment): Fix argument order
33090         to gen_int_mode.
33091
33092 2005-01-29  Richard Guenther <richard.guenther@uni-tuebingen.de>
33093
33094         PR tree-optimization/15791
33095         * fold-const.c (extract_array_ref): New function.
33096         (fold): Fold comparisons between &a[i] and &a[j] or
33097         semantically equivalent trees.
33098
33099 2005-01-29  Jeff Law  <law@redhat.com>
33100
33101         * gcse.c (insert_expr_in_table): Revamp handling of available
33102         and anticipatable occurrence lists to avoid unnecessary list
33103         walking.
33104         (insert_set_in_table): Similarly.
33105
33106 2005-01-29  Joseph S. Myers  <joseph@codesourcery.com>
33107
33108         * c-common.c (fix_string_type): Just use c_build_qualified_type to
33109         build string type.
33110         (c_build_qualified_type): Build qualified array types with
33111         TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
33112         * c-decl.c (c_make_fname_decl): Build unqualified array type
33113         before qualified type.
33114         (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
33115         type is qualified, not just if type itself is.  Don't apply
33116         qualifiers to array type when declarator is processed.  Apply
33117         qualifiers to field type whether or not it is an array type.
33118         Don't handle array types specially for applying qualifiers to
33119         variables.
33120         * c-typeck.c (composite_type): Build unqualified element type and
33121         array type when forming composite of array types.
33122         (common_pointer_type, comptypes, comp_target_types,
33123         type_lists_compatible_p, build_indirect_ref, build_array_ref,
33124         convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
33125         types.
33126         (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
33127         (args2) in variables a1 and a2.
33128
33129 2005-01-29  Kazu Hirata  <kazu@cs.umass.edu>
33130
33131         * cse.c (n_elements_made, max_elements_made): Remove.
33132         (insert): Don't touch n_elements_made.
33133         (cse_main): Don't touch n_elements_made or max_elements_made.
33134
33135 2005-01-28  Stephane Carrez  <stcarrez@nerim.fr>
33136
33137         PR target/15384
33138         * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
33139         configuration part of dp-bit.c to be lost.
33140
33141 2005-01-28  Roger Sayle  <roger@eyesopen.com>
33142
33143         * expmed.c (expand_mult_highpart_optab): When attempting to use
33144         a non-widening multiplication in a wider mode, the operands need
33145         to be converted (zero or sign extended) to that mode.
33146
33147 2005-01-28  Ian Lance Taylor  <ian@airs.com>
33148
33149         PR middle-end/16558
33150         PR middle-end/19583
33151         * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
33152         through if both operands fall through.
33153
33154 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
33155
33156         * cse.c (fold_rtx) <PC>: Don't optimize.
33157
33158 2005-01-28  Jeff Law  <law@redhat.com>
33159
33160         * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
33161         (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
33162
33163 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
33164
33165         * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
33166         cse_reg_info_used_list_end): Remove.
33167         (cse_reg_info_list, cse_reg_info_list_free): New.
33168         (get_cse_reg_info): When allocating an instance of
33169         cse_reg_info, add it to the beginning of the cse_reg_info_list
33170         list.  Remove code to maintain cse_reg_info_used_list.
33171         (new_basic_block): Reset the free list to the beginning of
33172         cse_reg_info_list.
33173
33174 2005-01-28  Richard Sandiford  <rsandifo@redhat.com>
33175
33176         * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
33177         (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
33178         (frv_expand_mdpackh_builtin): New function.
33179         (frv_expand_builtin): Use it to expand __MDPACKH.
33180         * doc/extend.texi (__MDPACKH): Update documentation.
33181
33182 2005-01-28  Uros Bizjak  <uros@kss-loka.si>
33183
33184         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
33185         SSE_FLOAT_MODE_P for use_sse computation.
33186
33187 2005-01-28  Ralf Corsepius  <ralf.corsepius@rtems.org>
33188
33189         PR target/19663
33190         * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
33191
33192 2005-01-27  Richard Henderson  <rth@redhat.com>
33193
33194         * builtins.c (expand_builtin_copysign): New.
33195         (expand_builtin): Call it.
33196         * genopinit.c (optabs): Add copysign_optab.
33197         * optabs.c (init_optabs): Initialize it.
33198         (expand_copysign): New.
33199         * optabs.h (OTI_copysign, copysign_optab): New.
33200         (expand_copysign): Declare.
33201
33202         * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
33203         (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
33204
33205         * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
33206         (ix86_expand_fp_absneg_operator): ... here.
33207         (ix86_split_copysign): New.
33208         * config/i386/i386-protos.h: Update.
33209         * config/i386/i386.md (UNSPEC_COPYSIGN): New.
33210         (copysignsf3, copysigndf3): New.
33211
33212         * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
33213         (copysignsf3, ncopysignsf3): New.
33214         (copysigndf3, ncopysigndf3): New.
33215         (copysignxf3, ncopysignxf3): New.
33216         * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
33217
33218 2005-01-27  Arend Bayer  <arend.bayer@web.de>
33219             Kazu Hirata  <kazu@cs.umass.edu>
33220
33221         * cse.c: (find_best_addr): Don't call copy_rtx before calling
33222         fold_rtx.  Save cost recomputation if fold_rtx did nothing.
33223         (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
33224         NULL_RTX.
33225
33226 2005-01-27  Jeff Law  <law@redhat.com>
33227
33228         * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
33229         definitions of SSA_NAMEs which are not being rewritten.
33230         (rewrite_ssa_into_ssa): Only initialize the current definition
33231         of an SSA_NAME if that SSA_NAME has been marked for rewriting.
33232         If checking is enabled, assert that SSA_NAME_AUX is clear for all
33233         SSA_NAMEs before returning.
33234
33235 2005-01-27  Kazu Hirata  <kazu@cs.umass.edu>
33236
33237         * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
33238         cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
33239         tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
33240         config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
33241         config/mips/iris6.h, config/sh/sh.c: Update copyright.
33242
33243 2005-01-27  Steven Bosscher  <stevenb@suse.de>
33244
33245         PR middle-end/17278
33246         * opts.c (decode_options): Move flag_thread_jumps from -O1 and
33247         higher to -O2 and higher.  Likewise for tree PRE.
33248         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
33249         and better.
33250
33251 2005-01-27  Ian Lance Taylor  <ian@airs.com>
33252
33253         PR middle-end/19583
33254         * gimple-low.c (try_catch_may_fallthru): New static function.
33255         (block_may_fallthru): Handle TRY_CATCH_EXPR.
33256         * tree-inline.c (expand_call_inline): Don't warn about reaching
33257         the end of a non-void function being inlined if the function uses
33258         a return slot.
33259
33260 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
33261
33262         * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
33263
33264         PR c/18946
33265         * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
33266         (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
33267         (implicitly_declare): Handle error_mark_node.
33268
33269 2005-01-27  Richard Henderson  <rth@redhat.com>
33270
33271         PR tree-opt/14329
33272         * tree.h (struct tree_decl): Add debug_expr_is_from.
33273         (DECL_DEBUG_EXPR_IS_FROM): New.
33274         (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
33275         * dwarf2out.c (dwarf2out_var_location): Update to match.
33276         * tree-outof-ssa.c (create_temp): Likewise.
33277         * var-tracking.c (track_expr_p): Likewise.
33278         * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
33279         * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
33280         * toplev.c (default_tree_printer): Likewise.
33281
33282 2005-01-27  Alexandre Oliva  <aoliva@redhat.com>
33283
33284         * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
33285         GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
33286
33287 2005-01-27  Steven Bosscher  <stevenb@suse.de>
33288
33289         * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
33290         CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
33291         ASM_CLOBBERS): Add tree checks.
33292
33293         * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
33294         (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
33295         * c-common.def (SWITCH_STMT): Update to match.
33296         * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
33297         macros instead of SWITCH_EXPR ones.
33298         * c-dump.c (c_dump_tree): Likewise.
33299         * c-gimplify.c (gimplify_switch_stmt): Likewise.
33300         * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
33301
33302         * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
33303
33304 2005-01-27  Alan Modra  <amodra@bigpond.net.au>
33305
33306         * unwind-dw2.c (execute_stack_op): Add missing cases for
33307         DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
33308
33309 2005-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
33310
33311         * config.gcc (Obsolete configurations): Remove 'dummy', add
33312         sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
33313         sparc-*-openbsd*.
33314
33315 2005-01-26  Diego Novillo  <dnovillo@redhat.com>
33316
33317         PR tree-optimization/19633
33318         * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
33319         CALL_EXPRs.
33320         (maybe_create_global_var): Do not create .GLOBAL_VAR if there
33321         are no call-clobbered variables.
33322         * tree-outof-ssa.c (check_replaceable): Return false for calls
33323         with side-effects.
33324
33325 2005-01-26  Ulrich Weigand  <uweigand@de.ibm.com>
33326
33327         * dbxout.c (dbxout_symbol_location): Resolve constant pool references
33328         even for variables with NULL DECL_INITIAL.
33329
33330 2005-01-26  Stuart Hastings  <stuart@apple.com>
33331
33332         * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
33333
33334 2005-01-26  Richard Henderson  <rth@redhat.com>
33335
33336         PR middle-end/18008
33337         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
33338         field's type.
33339         * expr.c (store_field): Strip conversions to odd-bit-sized types
33340         if the destination field width matches.
33341
33342 2005-01-26  Richard Henderson  <rth@redhat.com>
33343
33344         * c-decl.c, expmed.c, expr.c: Revert last change.
33345
33346 2005-01-26  Richard Henderson  <rth@redhat.com>
33347
33348         PR middle-end/18008
33349         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
33350         field's type.
33351         * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
33352         if we don't need the bits above those present in the current mode.
33353         * expr.c (store_field): Strip conversions to odd-bit-sized types
33354         if the destination field width matches.
33355
33356 2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
33357
33358         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
33359         either -ffast-math or -funsafe-math-optimizations is in use.
33360
33361 2005-01-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
33362
33363         PR target/19293
33364         PR target/19329
33365         * config/avr/avr.c (notice_update_cc): Only set condition code for
33366         ashrqi3 if shift count > 0.
33367         (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
33368         (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
33369         ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
33370         count <= 0 as a no-op, and shift count >= width by copying zero
33371         or sign bit to all bits of the result.
33372         * config/avr/avr.md (all shifts): Add alternatives for zero shift
33373         count, with attribute "length" set to 0 and "cc" set to "none".
33374
33375 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
33376
33377         * doc/invoke.texi: Document -mTLS.
33378
33379         * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
33380         * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
33381         * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
33382         * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
33383         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
33384         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
33385         * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
33386         * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
33387
33388         * configure.ac: Check for a TLS capable gas.
33389
33390         * configure: Regenerate.
33391
33392 2005-01-26  Richard Henderson  <rth@redhat.com>
33393
33394         PR middle-end/18008
33395         * combine.c (make_field_assignment): Simplify store to zero_extract
33396         from a source with an overlapping mask.
33397
33398 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
33399
33400         2004-11-11  Eric Christopher  <echristo@redhat.com>
33401
33402         * config/frv/frv.md: Add fr400_integer automaton. Don't
33403         allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
33404         to TYPE_MACC.
33405
33406 2005-01-26  Steven Bosscher  <stevenb@suse.de>
33407
33408         PR middle-end/16585
33409         * cfgbuild.c (make_edges): Do not clear or set
33410         current_function_has_computed_jump.
33411         * function.h (struct function): Remove the has_computed_jump field.
33412         (current_function_has_computed_jump): Do not define.
33413         * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
33414         in a computed jump.  Ignore current_function_has_computed_jump.
33415
33416 2005-01-26  Richard Henderson  <rth@redhat.com>
33417
33418         PR middle-end/19515
33419         * expr.c (categorize_ctor_elements): New argument p_must_clear.
33420         (categorize_ctor_elements_1): Likewise.  Detect a union that isn't
33421         fully initialized.
33422         (mostly_zeros_p): Update for new categorize_ctor_elements argument.
33423         * gimplify.c (gimplify_init_constructor): Likewise.  Only shove
33424         objects into static storage if they have more than one non-zero value.
33425         * tree.h (categorize_ctor_elements): Update decl.
33426
33427 2005-01-26  Steven Bosscher  <stevenb@suse.de>
33428
33429         PR middle-end/19616
33430         * tree.h (CALL_EXPR_TAILCALL): Add comment.
33431         * calls.c (check_sibcall_argument_overlap_1): Revert the change
33432         to this function from 2004-07-10.
33433         * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
33434         the current function for tail call optimizations if the address
33435         of one of it its arguments is taken.
33436
33437 2005-01-26  Kazu Hirata  <kazu@cs.umass.edu>
33438
33439         * cse.c (fold_rtx): Call equiv_constant only when necessary.
33440
33441 2005-01-26  Bernd Schmidt  <bernd.schmidt@analog.com>
33442
33443         * function.c (expand_function_end): If current_function_calls_alloca,
33444         emit stack restore in a place that is reached when the function falls
33445         through at the end.
33446
33447 2005-01-26  Alexandre Oliva  <aoliva@redhat.com>
33448
33449         * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
33450         rule to avoid matching inappropriate suffix rule.
33451
33452 2005-01-26  Jan Hubicka  <jh@suse.cz>
33453
33454         PR tree-optimization/19241
33455         * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
33456
33457 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
33458
33459         * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
33460         -lsyssim.  Wrap -lc -lsyssim in --start-group --end-group instead
33461         of doubling.
33462         (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
33463         <sim*>: Always use crt1.o, regardless of N in simN.
33464         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
33465         (ENDFILE_SPEC): Add crtn.o, after crtend.o.
33466         (CRT_CALL_STATIC_FUNCTION): Remove.
33467         * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
33468         use crt1.o, regardless of N in simN.
33469         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
33470         (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
33471         (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
33472         case isystem setting.
33473         (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
33474
33475 2005-01-25  Ian Lance Taylor  <ian@airs.com>
33476
33477         * gimple-low.c (block_may_fallthru): Correct handling of
33478         SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
33479
33480 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
33481
33482         * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
33483         handlers to match indentation; nested under the mtune=* handler.
33484         Similar for mcpu= and march=.
33485
33486 2005-01-25  Daniel Jacobowitz  <dan@codesourcery.com>
33487
33488         * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
33489         * config/mips/linux64.h (LIB_SPEC): Likewise.
33490         * config/mn10300/linux.h (LIB_SPEC): Likewise.
33491         * config/sh/linux.h (LIB_SPEC): Likewise.
33492
33493 2005-01-25  Aldy Hernandez  <aldyh@redhat.com>
33494
33495         * config/frv/frv.c (frv_legitimize_tls_address): New.
33496         (TARGET_HAVE_TLS): Define.
33497         (FRV_SYMBOL_REF_TLS_P): Define.
33498         (frv_override_options): Handle new register classes.
33499         (frv_legitimate_address_p): Reject tls addresses.
33500         (frv_legitimize_address): Handle TLS addresses.
33501         (gen_inlined_tls_plt): New.
33502         (gen_tlsmoff): New.
33503         (frv_legitimize_tls_address): New.
33504         (unspec_got_name): Add TLS entries.
33505         (got12_operand): Add R_FRV_TLSMOFF12 case.
33506         (frv_emit_move): Fixup TLS addresses.
33507         (frv_emit_movsi): Legitimize TLS addresses.
33508
33509         * config/frv/frv.h (MASK_BIG_TLS): New.
33510         (TARGET_BIG_TLS): New.
33511         (HAVE_AS_TLS): Define.
33512         (TARGET_SWITCHES): Add -mTLS and -mtls options.
33513         (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
33514         (REG_CLASS_NAMES): Same.
33515         (REG_CLASS_CONTENTS): Same.
33516         (CONSTRAINT_LEN): New.
33517         (REG_CLASS_FROM_CONSTRAINT): New.
33518         (PREDICATE_CODES): Add symbolic_operand.
33519
33520         * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
33521         UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
33522         UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
33523         UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
33524         R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
33525         R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
33526         R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
33527         GR9_REG, GR14_REG, LRREG.
33528         (type): Add load_or_call attribute.
33529         ("load_or_call"): New reservation.
33530         ("call_gettlsoff"): New.
33531         ("tls_indirect_call"): New.
33532         ("tls_load_gottlsoff12"): New.
33533         ("tlsoff_hilo"): New.
33534         ("tls_tlsdesc_ldd"): New.
33535         ("tls_tlsoff_ld"): New.
33536         ("tls_lddi"): New.
33537
33538         * config/frv/frv-protos.h (symbolic_operand): Protoize.
33539
33540         2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
33541
33542         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
33543         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
33544         * config/frv/frv.c (TLS_BIAS): Define.
33545         (frv_output_dwarf_dtprel): New.
33546
33547 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
33548
33549         PR rtl-optimization/19579
33550         * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
33551         both A and B, see if they don't clobber registers the other expr uses.
33552
33553 2005-01-25  J"orn Rennecke <joern.rennecke@st.com>
33554
33555         * real.c (do_add): Initialize signalling and canonical members.
33556
33557         * real.c (real_from_integer): Zero out destination.
33558
33559 2005-01-18  Jan Hubicka  <jh@suse.cz>
33560
33561         PR tree-optimize/19337
33562         * tree-inline.c (initialize_inlined_parameters): Copy
33563         saved_static_chain_decl only.
33564
33565 2005-01-25  Richard Henderson  <rth@redhat.com>
33566
33567         PR target/19556
33568         PR target/19584
33569         * config/i386/i386.c (x86_inter_unit_moves): Zero.
33570         (ix86_preferred_reload_class): Rewrite fp-constant section, with
33571         80387 enabled, to return a proper subclass.  Return the subset that
33572         overlaps with GENERAL_REGS for PLUS.
33573         * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
33574
33575 2005-01-25  Richard Henderson  <rth@redhat.com>
33576
33577         PR middle-end/19609
33578         * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
33579
33580 2005-01-25  Roger Sayle  <roger@eyesopen.com>
33581
33582         * expmed.c (choose_multiplier): Change interface to return the
33583         multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
33584         (expand_divmod): Update calls to choose_multiplier.
33585
33586 2005-01-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33587
33588         PR middle-end/19330
33589         * expmed.c (extract_bit_field): Use adjust_address instead of
33590         gen_lowpart when op0 is a MEM.
33591
33592 2005-01-24  Steven Bosscher  <stevenb@suse.de>
33593
33594         * cfgexpand.c (expand_gimple_tailcall): Fix typo.
33595
33596 2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
33597
33598         * config/mips/irix-csr.c: New file.
33599         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
33600         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
33601         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
33602         executables.
33603
33604 2005-01-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
33605
33606         PR bootstrap/19364
33607         * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
33608         sparc/elf.h, add sparc/sp-elf.h.
33609         (sparc-*-rtems*): Likewise.
33610         (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
33611         tm-dwarf2.h, add sparc/sp-elf.h.
33612         (sparc86x-*-elf): Likewise.
33613         (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
33614         * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
33615         TARGET_OS_CPP_BUILTINS.
33616         * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
33617         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
33618         Undefine it.
33619         * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
33620         * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
33621         (SWITCH_TAKES_ARG): Likewise.
33622         (LOCAL_LABEL_PREFIX): Likewise.
33623         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
33624         (TARGET_N_FORMAT_TYPES): Delete.
33625         (TARGET_FORMAT_TYPES): Likewise.
33626         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
33627         * config/sparc/elf.h: Delete.
33628         * config/sparc/sp-elf.h: New file.
33629
33630 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
33631
33632         * tree-flow-inline.h (phi_arg_from_edge): Remove.
33633         * tree-flow.h: Remove the corresponding prototype.
33634         * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
33635         tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
33636
33637 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
33638
33639         PR target/17751
33640         * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
33641         for AIX ABI or ELF -fPIC.
33642         (rs6000_emit_load_toc_table): Don't create toc_section here.
33643         (rs6000_xcoff_file_start): Nor here.
33644
33645 2005-01-24  J"orn Rennecke <joern.rennecke@st.com>
33646
33647         * sh.c (ra.h): Don't #include.
33648         (hard_regs_intersect_p): New function, resurrected from ra.c.
33649
33650         * sh.c: Fix 1996 Copyright.
33651
33652 2005-01-24  Richard Henderson  <rth@redhat.com>
33653             Aldy Hernandez  <aldyh@redhat.com>
33654
33655         * regrename.c (note_sets): Handle subregs.
33656
33657 2005-01-24  Joseph S. Myers  <joseph@codesourcery.com>
33658
33659         PR bootstrap/18058
33660         * genconditions.c (write_header, write_conditions): Elide file if
33661         not GCC >= 3.0.1.
33662
33663 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
33664
33665         * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
33666         config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
33667         Update copyright.
33668
33669 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
33670
33671         * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
33672         expand_builtin_printf, expand_builtin_fprintf,
33673         expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
33674         checking against POINTER_TYPE.
33675         (validate_arglist): Handle POINTER_TYPE code by checking
33676         POINTER_TYPE_P.
33677
33678 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
33679
33680         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
33681         init_rtlanal): New.
33682         (for_each_rtx): Call for_each_rtx_1.
33683         * rtl.h (init_rtlanal): Declare.
33684         * toplev.c (backend_init): Call init_rtlanal.
33685
33686 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
33687
33688         * flow.c (propagate_one_insn): Formatting.
33689
33690         PR middle-end/19551
33691         * flow.c (libcall_dead_p): Be more conservative if unsure.
33692         If there are any instructions between insn and call, see if they are
33693         all dead before saying the libcall is dead.
33694
33695 2005-01-24  Uros Bizjak  <uros@kss-loka.si>
33696
33697         * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
33698         operand constraint for operand 0.
33699
33700 2005-01-23  Richard Henderson  <rth@redhat.com>
33701
33702         PR 19486
33703         * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
33704         edges leading to join block.
33705
33706 2005-01-23  Roger Sayle  <roger@eyesopen.com>
33707
33708         * expmed.c (expand_mult_highpart): Make static.  Change type of
33709         constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
33710         (expand_divmod): Updates calls to expand_mult_highpart by using
33711         gen_int_mode to pass a CONST_INT rtx.
33712         * rtl.h (expand_mult_highpart): Remove prototype.
33713
33714 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
33715
33716         * flow.c (regset_bytes, regset_size): Remove.
33717
33718         * cfganal.c: Fix a reference to Harvey's paper.
33719
33720 2005-01-23  Steven Bosscher  <stevenb@suse.de>
33721
33722         PR rtl-optimization/19464
33723         * tree-optimize.c (init_tree_optimization_passes): Add one more
33724         copyrename pass just before out-of-ssa.
33725
33726 2005-01-23  Joseph S. Myers  <joseph@codesourcery.com>
33727
33728         PR bootstrap/18058
33729         * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
33730         * ggc-none.c (ggc_free): Define.
33731
33732 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
33733
33734         * cse.c (max_reg, max_insn_uid): Remove.
33735         (cse_main): Don't access max_reg or max_insn_uid.
33736
33737         * c-common.c (explicit_flag_signed_bitfields,
33738         lang_statement_code_p, lang_expand_function_end): Remove.
33739         * c-common.h: Remove the corresponding declarations.
33740         * c-opts.c (c_common_handle_option): Remove all write access
33741         to explicit_flag_signed_bitfields.
33742
33743         * cgraph.c (cgraph_varpool_n_nodes): Remove.
33744         (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
33745         * cgraph.h: Remove the corresponding declaration.
33746
33747         * gcse.c (null_pointer_info): Remove.
33748
33749 2005-01-23  Roger Sayle  <roger@eyesopen.com>
33750             Eric Botcazou  <ebotcazou@libertysurf.fr>
33751
33752         * combine.c (simplify_logical): Only simplify logical expressions
33753         of the form ior(and(x,y),z) by the inverse distributive law if the
33754         result is cheaper than the original.
33755
33756 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
33757
33758         * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
33759         fold-const.c, gimplify.c, params.h, tree-data-ref.c,
33760         tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
33761         tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
33762         config/freebsd-spec.h, config/arm/arm.h,
33763         config/h8300/h8300.md, config/i386/i386.md,
33764         config/i386/predicates.md, config/i386/sse.md,
33765         config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
33766         config/vax/vax.md: Fix comment typos.  Follow spelling
33767         conventions.
33768
33769 2005-01-23  Steven Bosscher  <stevenb@suse.de>
33770
33771         * gengtype.c (walk_type): Produce `not equal to' compares for loop
33772         tests, instead of `less than'.
33773
33774 2005-01-23  Richard Sandiford  <rsandifo@redhat.com>
33775
33776         * function.c (assign_parm_setup_block): When creating a new stack slot
33777         for a parameter, get its alignment from the parameter's DECL_ALIGN
33778         rather than the type's TYPE_ALIGN.  Make sure that the parameter
33779         is at least word aligned.
33780
33781 2005-01-22  Roger Sayle  <roger@eyesopen.com>
33782
33783         PR middle-end/19378
33784         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
33785
33786 2005-01-22  Richard Henderson  <rth@redhat.com>
33787
33788         PR target/19506
33789         * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
33790         in both compare operands.
33791         (movdfcc_1_sse_max): Likewise.
33792         (movsfcc_1_sse): Likewise.  Add earlyclobber for scratch.
33793         (movdfcc_1_sse): Likewise.
33794         * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
33795         scratch register as needed.
33796
33797 2005-01-22  Richard Henderson  <rth@redhat.com>
33798
33799         * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
33800
33801         * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
33802
33803 2005-01-22  Richard Henderson  <rth@redhat.com>
33804
33805         * genopinit.c (optabs): Use smin/smax for floating point too.
33806         * doc/md.texi: Update to match.  Clarify that floating point
33807         results are undefined for +0/-0 and NaN.
33808         * doc/rtl.texi: Likewise.
33809         * rtl.def (SMIN, SMAX): Likewise
33810         * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
33811
33812         * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
33813         leading 's' to the name.
33814         * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
33815         smaxxf3, sminxf3): Likewise.
33816         * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
33817         Likewise.
33818
33819 2005-01-22  Paul Brook  <paul@codesourcery.com>
33820
33821         * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
33822
33823 2005-01-21  Mark Dettinger  <dettinge@de.ibm.com>
33824
33825         * config/s390/s390.c (struct processor_costs): New fields
33826         dlgr, dlr, dr, dsgfr, dsgr.
33827         (z900_cost, z990_cost): Values for new fields.
33828         (s390_rtx_costs): New cases MEM und COMPARE in switch
33829         statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
33830         DIV, MOD, UDIV, UMOD.
33831
33832 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
33833
33834         * config/s390/s390.md ("doloop_si64"): Reload input value directly
33835         into the register being decremented.
33836         ("doloop_si31", "doloop_di"): Likewise.
33837         ("*doloop_si_long"): Adapt pattern.
33838
33839 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
33840
33841         * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
33842         access registers.
33843         (CLASS_MAX_NREGS): Likewise.
33844
33845 2005-01-21  Daniel Berlin  <dberlin@dberlin.org>
33846
33847         * doc/tree-ssa.texi (Statement Operands): Add example for new
33848         must-def macro. Note deprecation of old operands interface.
33849
33850 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
33851
33852         PR tree-optimization/19484
33853         * tree-cfg.c (remove_fallthru_edge): New function.
33854         (cleanup_control_flow): Remove fallthru edges from calls that are
33855         now known not to return.
33856
33857 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
33858
33859         Fix PR tree-optimization/19038
33860         * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
33861         copies with loop variant ones.
33862
33863 2005-01-22  Kazu Hirata  <kazu@cs.umass.edu>
33864
33865         * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
33866         config/alpha/alpha-protos.h, config/alpha/alpha.h,
33867         config/alpha/alpha.md, config/alpha/predicates.md,
33868         config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
33869         config/sparc/sol2.h: Update copyright.
33870
33871         * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
33872         first label to see if it is a nonlocal label.
33873
33874 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
33875             Andrew Pinski  <pinskia@physics.uc.edu>
33876
33877         PR target/19491
33878         * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
33879         maximum number of GPRs.  Saturate n_fpr at maximum number of FPRs.
33880
33881 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
33882
33883         * config/rs6000/rtems.h: Update copyright.
33884
33885 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
33886
33887         PR target/19548
33888         * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
33889         (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
33890         (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
33891
33892 2005-01-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
33893
33894         PR c/18809
33895         * c-typeck.c (convert_arguments): Check for error_mark_node.
33896
33897 2005-01-21  Ian Lance Taylor  <ian@airs.com>
33898
33899         PR tree-optimization/13000
33900         * tree-inline.c: Include "tree-flow.h".
33901         (expand_call_inline): If warn_return_type, warn if non-void inline
33902         function falls through.
33903         * tree-cfg.c (execute_warn_function_return): Don't warn about
33904         control reaching end if TREE_NO_WARNING is set.  Set
33905         TREE_NO_WARNING.
33906         * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
33907         has been lowered.
33908         * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
33909         branch if we don't need one.
33910         * c-typeck.c: Include "tree-flow.h"
33911         (c_finish_bc_stmt): Don't add a goto if the current statement
33912         list doesn't fall through to the current point.
33913
33914 2005-01-21  Roger Sayle  <roger@eyesopen.com>
33915
33916         PR rtl-optimization/576
33917         * real.c (real_arithmetic): Change return type from void to bool
33918         to return an indication that the result may be inexact.
33919         * real.h (real_arithmeric): Update prototype.
33920         * fold-const.c (const_binop):  Don't constant fold floating
33921         point expressions when the user specifies -frounding-math and
33922         the result may depend upon the run-time rounding mode.
33923         (fold_convert_const_real_from_real): Clean-up.
33924         (fold_initializer): Ignore flag_rounding_math for initializers.
33925         * simplify-rtx.c (simplify_binary_operation): Likewise, don't
33926         constant fold FP operations with flag_rounding_math if the
33927         result may depend upon the run-time rounding mode.
33928
33929 2005-01-21  Tom Tromey  <tromey@redhat.com>
33930
33931         * c-cppbuiltin.c (define__GNUC__): Correct assertion.
33932
33933 2005-01-21  Kazu Hirata  <kazu@cs.umass.edu>
33934
33935         * tree-cfg.c: Fix comment typos.
33936
33937 2005-01-21  J"orn Rennecke <joern.rennecke@st.com>
33938
33939         * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
33940         around the call to rest_of_handle_branch_target_load_optimize.
33941
33942 2005-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
33943
33944         * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
33945         (sparc64-*-openbsd*): Likewise.
33946         (sparclite-*-elf*): Include tm-dwarf2.h.
33947         (sparc86x-*-elf*): Likewise.
33948         (sparc64-*-elf*): Likewise.
33949         * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
33950         (DBX_DEBUGGING_INFO): Likewise.
33951         * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
33952         (PREFERRED_DEBUGGING_TYPE): Likewise.
33953         * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
33954         * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
33955         (PREFERRED_DEBUGGING_TYPE): Likewise.
33956         * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
33957         (PREFERRED_DEBUGGING_TYPE): Likewise.
33958         * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
33959
33960 2005-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
33961
33962         PR target/18701
33963         * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
33964
33965 2005-01-20  Paul Brook  <paul@codesourcery.com>
33966
33967         * doc/rtl.texi: Document value extension requirements for CONST_INT.
33968
33969 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
33970
33971         * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
33972         label is first in a sequence of labels.
33973
33974         * tree-cfg.c (tree_verify_flow_info): Fix a typo.
33975
33976 2005-01-20  Janis Johnson  <janis187@us.ibm.com>
33977             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
33978
33979         * doc/sourcebuild.texi (Test Directives): New.
33980
33981 2005-01-20  Roger Sayle  <roger@eyesopen.com>
33982
33983         * real.c (real_floor): Don't leave the result uninitialized when
33984         mode is VOIDMode, but return the unrounded intermediate value.
33985         (real_ceil): Likewise.
33986
33987 2005-01-20  Paul Brook  <paul@codesourcery.com>
33988
33989         * config/arm/arm.md (insv): Use gen_int_mode.
33990
33991 2005-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
33992
33993         * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
33994         * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
33995         * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
33996         * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
33997         * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
33998
33999 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
34000
34001         Fix PR debug/19124
34002         * dwarf2out.c (concat_loc_descriptor): We don't know we can use
34003         fbreg, so we have to assume we can't.
34004         (loc_descriptor_from_tree_1): Ditto.
34005         (containing_function_has_frame_base): New function.
34006         (add_location_or_const_value_attribute): Use it.
34007         Also try to generate a frame_base from a single element location
34008         list.
34009
34010 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
34011
34012         PR tree-optimization/15349
34013         * timevar.def (TV_TREE_MERGE_PHI): New.
34014         * tree-cfg.c (tree_forwarder_block_p): Add a new argument
34015         PHI_WANTED.
34016         (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
34017         calls to tree_forwarder_block_p.
34018         (remove_forwarder_block_with_phi, merge_phi_nodes,
34019         gate_merge_phi, pass_merge_phi): New.
34020         * tree-optimize.c (init_tree_optimization_passes): Add
34021         pass_merge_phi.
34022         * tree-pass.h: Add an extern for pass_merge_phi;
34023
34024 2005-01-20  Richard Henderson  <rth@redhat.com>
34025
34026         PR target/19418
34027         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
34028         (_mm_castps_pd, _mm_castps_si128): New.
34029         (_mm_castsi128_ps, _mm_castsi128_pd): New.
34030
34031 2005-01-20  Richard Henderson  <rth@redhat.com>
34032
34033         PR target/19530
34034         * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
34035         __builtin_ia32_vec_init_v2si.
34036         (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
34037         * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
34038         (ix86_init_mmx_sse_builtins): Create it.
34039         (ix86_expand_builtin): Expand it.
34040         (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
34041         * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
34042         (vec_extractv2si_0, vec_extractv2si_1): New.
34043
34044 2005-01-20  Richard Henderson  <rth@redhat.com>
34045
34046         PR target/16533
34047         * config/i386/i386.c (ix86_expand_push): New.
34048         * config/i386/mmx.md (push<MMXMODE>1): New.
34049         * config/i386/sse.md (push<SSEMODE>1): New.
34050         * config/i386/i386-protos.h: Update.
34051
34052 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
34053
34054         * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
34055         copyright.
34056
34057 2005-01-20  Richard Henderson  <rth@redhat.com>
34058
34059         * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
34060         * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
34061
34062 2005-01-19  Richard Henderson  <rth@redhat.com>
34063
34064         PR target/19350
34065         * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
34066         to V4SFmode in SSE1 fallback load path.
34067
34068 2005-01-19  Richard Henderson  <rth@redhat.com>
34069
34070         * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
34071         in QImode expansion to ix86_expand_vector_set.
34072         (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
34073
34074 2005-01-19  Richard Henderson  <rth@redhat.com>
34075
34076         PR target/19511
34077         * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
34078         subclass of the input class.
34079         (ix86_secondary_memory_needed): Always true for cross-MMX classes.
34080         Always true for cross-SSE1 classes.  Rationalize conditionals.
34081         * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
34082         * config/i386/i386.md (movsi_1): Add MMX/SSE zeros.  Fix alternatives
34083         for SSE1.  Don't check TARGET_INTER_UNIT_MOVES.
34084         (movdi_2): Add MMX/SSE zeros.
34085         (movdi_1_rex64): Likewise.  Don't check TARGET_INTER_UNIT_MOVES.
34086         (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
34087         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
34088         (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
34089         (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
34090         (zero_extendsidi2_rex64_1): Remove.
34091         (MOV0 peephole): Check GENERAL_REG_P.
34092
34093 2005-01-19  Richard Henderson  <rth@redhat.com>
34094
34095         PR target/19427
34096         * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
34097         shufps elements.
34098         (ix86_expand_vector_extract): Likewise.
34099
34100 2005-01-19  Richard Henderson  <rth@redhat.com>
34101
34102         PR middle-end/19304
34103         * expr.c (emit_move_change_mode): New argument force; use
34104         simplify_gen_subreg if true.
34105         (emit_move_via_alt_mode): Merge into ...
34106         (emit_move_via_integer): ... here.
34107         (emit_move_ccmode): Use emit_move_change_mode directly.
34108
34109 2005-01-19  Richard Henderson  <rth@redhat.com>
34110
34111         PR target/19518
34112         * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
34113         (alpha_preferred_reload_class): Handle CONST_VECTOR.
34114         (alpha_emit_set_const_1): Add no_output parameter; don't emit
34115         rtl if true.
34116         (alpha_emit_set_const): Likewise.  Make static.
34117         (alpha_emit_set_long_const): Make static.
34118         (alpha_extract_integer): Split out from alpha_expand_mov.
34119         (alpha_split_const_mov): Likewise.
34120         (alpha_expand_mov): Use them.  Handle CONST_VECTOR.
34121         (alpha_legitimate_constant_p): New.
34122         * config/alpha/alpha-protos.h: Update.
34123         * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
34124         (LEGITIMATE_CONSTANT_P): Re-implement with a function.
34125         * config/alpha/alpha.md (movsi): Add n alternative.
34126         (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
34127         (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
34128         (splitters for all of the above): Use alpha_split_const_mov.
34129         * config/alpha/predicates.md (non_add_const_operand): New.
34130         (non_zero_const_operand): New.
34131         (input_operand): Use alpha_legitimate_constant_p after reload.
34132
34133 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
34134
34135         PR tree-optimization/19038
34136         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
34137         (add_candidate): Add ivs with increment in latch only if
34138         allow_ip_end_pos_p is true.
34139         (determine_iv_cost): Use empty_block_p.
34140
34141 2005-01-19  Daniel Berlin  <dberlin@dberlin.org>
34142
34143         * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
34144         (compute_dominance_frontiers): Ditto.
34145
34146 2005-01-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
34147
34148         PR target/19529
34149         * config/sh/t-rtems: New.
34150         * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
34151
34152 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
34153
34154         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
34155         the offset of the selected field.
34156
34157 2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
34158
34159         * tree-cfg.c (remove_forwarder_block): Fix the check to
34160         prevent a nonlocal label from appearing in the middle of a
34161         basic block.
34162
34163 2005-01-19  Hans-Peter Nilsson  <hp@axis.com>
34164
34165         PR rtl-optimization/19462
34166         * reorg.c (find_end_label): Create return insn only if
34167         current_function_epilogue_delay_list is empty.
34168
34169 2005-01-19  Paolo Bonzini  <bonzini@gnu.org>
34170
34171         * doc/passes.texi: Remove paragraph mentioning new-ra.
34172
34173 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
34174
34175         PR rtl-optimization/15139
34176         * combine.c: Include params.h.
34177         (count_rtxs): New function.
34178         (record_value_for_reg): If replace_rtx would replace at least
34179         2 occurrences of REG in VALUE and TEM is really large, replace REG with
34180         (clobber (const_int 0)) instead of TEM.
34181         * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
34182         * params.h (MAX_LAST_VALUE_RTL): New.
34183         * Makefile.in (combine.o): Depend on $(PARAMS_H).
34184         * doc/invoke.texi (--param max-last-value-rtl=N): Document.
34185
34186         PR c/17297
34187         * c-typeck.c (digest_init): Only call build_vector if all constructor
34188         elements are *_CST nodes.
34189         * gimplify.c (gimplify_init_constructor): Likewise.
34190
34191         PR middle-end/19164
34192         * c-typeck.c (digest_init): Only call build_vector if inside_init
34193         is a CONSTRUCTOR.
34194
34195 2005-01-18  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
34196
34197         * toplev.c (init_asm_output): Remove dead #ifdef.
34198
34199 2005-01-18  Kaz Kojima  <kkojima@gcc.gnu.org>
34200
34201         * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
34202
34203 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
34204
34205         * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
34206         accessing DECL_FUNCTION_CODE.
34207         * dojump.c (do_jump): Likewise.
34208         * gimplify.c (gimplify_call_expr): Likewise.
34209         * predict.c (expr_expected_value): Likewise.
34210         (strip_builtin_expect): Likewise.
34211         * tree-inline.c (estimate_num_insns_1): Likewise.
34212         * tree-ssa-loop-im.c (stmt_cost): Likewise
34213         * fold-const.c (fold): Test for BUILT_IN_NORMAL.
34214         (tree_expr_nonnegative_p): Likewise.
34215
34216 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
34217
34218         * config/sparc/sparc.c (load_pic_register): Emit the appropriate
34219         variant of the load_pcrel_sym pattern.
34220         * config/sparc/sparc.md (P macro): Move to the top.
34221         (load_pcrel_sym): Macroize using P.
34222         (save_register_window): Likewise.
34223
34224 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
34225
34226         * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
34227         ("sordered"): Same.
34228
34229 2005-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
34230
34231         PR C/19472
34232         * c-typeck.c (build_asm_expr): Strip nops off
34233         input memory operands.
34234
34235 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
34236
34237         * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
34238         _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
34239         * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
34240         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
34241
34242 2005-01-18  Joel Sherrill <joel.sherrill@oarcorp.com>
34243
34244         PR target/19379
34245         * config/i386/i386.c (override_options): If the 80387 is disabled,
34246         then do not return FP values using FP registers.
34247
34248 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
34249
34250         * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
34251         c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
34252         combine.c, config.gcc, coverage.h, cse.c, cselib.c,
34253         defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
34254         flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
34255         gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
34256         output.h, postreload-gcse.c, postreload.c, recog.c,
34257         resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
34258         targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
34259         tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
34260         tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
34261         tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
34262         tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
34263         tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
34264         unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
34265
34266         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
34267         config/alpha/alpha.c, config/arm/vfp.md,
34268         config/i386/emmintrin.h, config/i386/i386-modes.def,
34269         config/i386/i386-protos.h, config/i386/i386.h,
34270         config/i386/pmmintrin.h, config/i386/ppro.md,
34271         config/i386/predicates.md, config/i386/xmmintrin.h,
34272         config/i860/i860.c, config/ia64/ia64-modes.def,
34273         config/ia64/ia64-protos.h, config/ia64/ia64.h,
34274         config/ia64/ia64.md, config/ia64/itanium1.md,
34275         config/ia64/itanium2.md, config/ia64/predicates.md,
34276         config/iq2000/iq2000.h, config/mips/linux64.h,
34277         config/rs6000/aix41.h, config/rs6000/aix43.h,
34278         config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
34279         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
34280         config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
34281         config/sparc/linux64.h, config/sparc/litecoff.h,
34282         config/sparc/sp64-elf.h, config/sparc/sparc.c,
34283         config/sparc/sparc.h, config/sparc/sparc.md,
34284         config/sparc/sysv4-only.h: Update copyright.
34285
34286 2005-01-18  Richard Henderson  <rth@redhat.com>
34287
34288         PR target/19496
34289         * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
34290
34291 2005-01-18  Marc Espie  <espie@openbsd.org>
34292         * config/i386/openbsdelf.h: Typo.
34293
34294 2005-01-18  Richard Henderson  <rth@redhat.com>
34295
34296         * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
34297         special case for sse.
34298         * config/i386/predicates.md (sse_comparison_operator): Likewise.
34299
34300 2005-01-18  Dorit Naishlos  <dorit@il.ibm.com>
34301
34302         * tree-inline.c (estimate_num_insns_1): Added cases for
34303         ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
34304
34305 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
34306
34307         PR rtl-optimization/19296
34308         * combine.c (simplify_comparison): Rewrite the condition under
34309         which a non-paradoxical SUBREG of a PLUS can be lifted when
34310         compared against a constant.
34311
34312 2005-01-18  Andi Kleen <ak@muc.de>
34313
34314         * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
34315         * c.opt (-Wpointer-sign): Add.
34316         * doc/invoke.texi: (-Wpointer-sign): Add.
34317
34318 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
34319
34320         * config/i386/i386.c (override_options): Revert 2004-11-24 change.
34321         * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
34322         *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
34323         logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
34324         exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
34325         nearbyintsf2): Disable for TARGET_SSE_MATH.  Leave patterns enabled
34326         for TARGET_MIX_SSE_I387.
34327         (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
34328         sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
34329         atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
34330         log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
34331         floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
34332         (TARGET_SSE2 && TARGET_SSE_MATH).  Leave patterns enabled for
34333         TARGET_MIX_SSE_I387.
34334         (atan2sf3, atan2df3, atan2xf3): Remove register constraints
34335         from expander.
34336
34337 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
34338
34339         PR target/19424
34340         * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
34341         Add movaps alternative for xmm reg->reg move.
34342
34343 2005-01-17  Jeff Law  <law@redhat.com>
34344
34345         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
34346         at the end of the main DOM loop rather than just before DOM exits.
34347
34348 2005-01-17  Diego Novillo  <dnovillo@redhat.com>
34349
34350         PR tree-optimization/19121
34351         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
34352         adding aliases to a name tag, also add them to the pointer's
34353         type tag.
34354         * tree-ssa-copy.c (merge_alias_info): Do not merge flow
34355         sensitive alias info at all.  Only check that the two pointers
34356         have compatible pointed-to sets.
34357         * tree-ssa.c (verify_name_tags): Verify that the alias set of
34358         a pointer's type tag is a superset of the alias set of the
34359         pointer's name tag.
34360
34361 2005-01-17  James E Wilson  <wilson@specifixinc.com>
34362
34363         PR target/19357
34364         * config/ia64/ia64.md (movxf): Handle general register source.  Adjust
34365         comment to document why.
34366
34367 2005-01-17  Richard Henderson  <rth@redhat.com>
34368
34369         * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
34370         sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
34371         sse2_vmsmaxv2df3_finite, sminv2df3_finite,
34372         sse2_vmsminv2df3_finite): New.
34373         (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
34374         sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
34375         Force op1 into register.
34376
34377 2005-01-17  Kelley Cook  <kcook@gcc.gnu.org>
34378
34379         * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
34380         bubblestrap from always rebuilding build directory.
34381
34382 2005-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
34383
34384         * config/s390/s390.md ("*clc"): Remove incorrect '='.
34385         ("*cmpmem_short"): Likewise.
34386
34387 2005-01-17  Steven Bosscher  <stevenb@suse.de>
34388
34389         * basic-block.h: Document BB_* flags.
34390         * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
34391         use an sbitmap instead.
34392         * sched-rgn.c (compute_trg_info): Likewise.
34393
34394 2005-01-17  Richard Sandiford  <rsandifo@redhat.com>
34395
34396         * config.gcc (mips64*-*-linux*): Set the default abi to n32.  Remove
34397         redundant target_cpu_default and extra_parts lines.  Use the default
34398         "from-abi" ISA.
34399         * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
34400         (SUBTARGET_EXTRA_SPECS): Delete.
34401         (DRIVER_SELF_SPECS): Remove architecture lines.  Set the ABI directly.
34402         (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
34403         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
34404         and "n32" for -mabi=n32.
34405
34406 2005-01-17  Ian Lance Taylor  <ian@airs.com>
34407
34408         PR c/5675
34409         * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
34410         fold constant variables into initial values.
34411
34412 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
34413
34414         * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
34415
34416         * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
34417         through the statements backward.
34418
34419 2005-01-17  Ian Lance Taylor  <ian@airs.com>
34420
34421         PR middle-end/13127:
34422         * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
34423         a variable set to the return value of the inlined function.
34424
34425 2005-01-17  Mark Dettinger  <dettinge@de.ibm.com>
34426
34427         * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
34428         when modes are tieable.
34429
34430 2005-01-17  Ranjit Mathew  <rmathew@hotmail.com>
34431
34432         * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
34433         of pthread_create to find out if threads are enabled.
34434         * gthr-posix95.h (__gthread_active_p): Likewise.
34435
34436 2005-01-17  Paolo Bonzini  <bonzini@gnu.org>
34437
34438         * common.opt (-fnew-ra): Remove.
34439         * ra*.*: Remove.
34440         * toplev.h (flag_new_regalloc): Remove.
34441         * Makefile.in (ra*.*): Don't mention.
34442         * passes.c (rest_of_handle_new_regalloc): Remove.
34443         (rest_of_handle_combine, rest_of_compilation): Always consider
34444         flag_new_regalloc as false.
34445         * doc/invoke.texi: Don't document -fnew-ra.
34446
34447 2005-01-17  Paolo Bonzini <bonzini@gnu.org>
34448
34449         * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
34450         last parameter to reg_scan.
34451         * loop.c (loop_optimize): Likewise.
34452         * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
34453         rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
34454         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
34455         rest_of_handle_gcse, rest_of_handle_loop_optimize,
34456         rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
34457         * regclass.c (reg_scan): Likewise, for the declaration.
34458         * rtl.h (reg_scan): Likewise, for the prototype.
34459
34460 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
34461
34462         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
34463         mark_dfs_back_edges.
34464
34465 2005-01-16  Daniel Berlin  <dberlin@dberlin.org>
34466
34467         * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
34468         (compute_avail): Uses don't go in tmp_gen.
34469
34470 2005-01-16  Steven Bosscher  <stevenb@suse.de>
34471
34472         * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
34473         loop to look for a free slot in a page entry.
34474
34475 2005-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34476
34477         PR target/16304
34478         * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
34479         * toplev.c (compile_file): Call process_pending_assemble_output_defs
34480         just before targetm.asm_out.file_end.
34481         * tree.h (process_pending_assemble_output_defs): Declare.
34482         * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
34483         New functions.
34484         (assemble_alias): Defer generation of assembly code for defines when
34485         TARGET_DEFERRED_OUTPUT_DEFS is true.
34486         * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
34487         * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
34488         * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
34489
34490 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34491
34492         PR target/19336
34493         * pa.c (pa_scalar_mode_supported_p): New function.
34494         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
34495         * pa.h (MIN_UNITS_PER_WORD): Add comment.
34496
34497         * pa-protos.h (prefetch_operand): Delete.
34498         (prefetch_cc_operand, prefetch_nocc_operand): New declations.
34499         * pa.c (prefetch_operand): Delete.
34500         (prefetch_cc_operand, prefetch_nocc_operand): New functions.
34501         * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
34502         (PREDICATE_CODES): Delete prefetch_operand.  Add prefetch_cc_operand
34503         and prefetch_nocc_operand.
34504         * pa.md (prefetch): Rework to avoid reload problems handling short
34505         displacements when a cache control completer needs to be provided.
34506         (prefetch_32, prefetch_64): Delete.
34507         (prefetch_cc, prefetch_nocc): New patterns.
34508
34509 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
34510
34511         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
34512
34513 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34514
34515         PR ada/19388
34516         * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
34517         exceeds maximum alignment for global common data.
34518         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
34519         * som.h (MAX_OFILE_ALIGNMENT): Likewise.
34520
34521 2004-01-15  Roger Sayle  <roger@eyesopen.com>
34522
34523         * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
34524
34525 2004-01-15  Roger Sayle  <roger@eyesopen.com>
34526
34527         * harg-reg-set.h (reg_class_names): Prototype global array.
34528         * regclass.c (reg_class_names): Declare here and initialize to
34529         REG_CLASS_NAMES.
34530         (dump_regclass): Remove local declaration of reg_class_names.
34531         (regclass): Likewise.
34532         * cfg.c (dump_flow_info): Likewise.
34533         * ra-debug.c (reg_class_names): Likewise.
34534         * regrename.c (reg_class_names): Likewise.
34535         * reload.c (reg_class_names): Likewise.
34536         * reload1.c (spill_failure): Likewise.
34537         * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
34538
34539 2005-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
34540
34541         * config/s390/s390.md ("reload_outti"): Remove predicate for
34542         output operand.  Abort if operand is not a MEM.
34543         ("reload_outdi", "reload_outdf"): Likewise.
34544
34545 2005-01-15  Marc Espie  <espie@openbsd.org>
34546
34547         * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
34548         (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
34549         * config/openbsd.h:  Fix C++ includes for native configurations.
34550         Add proper OS_CPP_BUILTINS.  Fix libspec for recent OpenBSD.
34551         Add trampoline support.
34552         * config/i386/openbsdelf.h: New.
34553
34554 2005-01-15  Marc Espie  <espie@openbsd.org>
34555
34556         * collect2.c (main): Explicitly parse -dynamic-linker option.
34557
34558 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
34559
34560         PR tree-optimization/19060
34561         * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
34562         Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
34563         (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
34564         and handle extract_range_from_cond returning false.
34565         * fold-const.c (fold): Optimize comparisons with min/max even for
34566         width > HOST_BITS_PER_WIDE_INT.
34567
34568 2005-01-15  Ralf Corsepius  <ralf.corsepius@rtems.org>
34569
34570         * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
34571         * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
34572         Remove little endian multilib variants.
34573         Add mips32 multilib variant.
34574
34575 2005-01-15  Kazu Hirata  <kazu@cs.umass.edu>
34576
34577         * explow.c (copy_all_reg, stabilize): Remove.
34578         * expr.h: Remove the corresponding prototypes.
34579
34580         * rtlanal.c (regs_set_between_p): Remove.
34581         * rtl.h: Remove the corresponding prototype.
34582
34583 2005-01-14  David Edelsohn  <edelsohn@gnu.org>
34584
34585         * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
34586         to rs6000_nonimmediate_operand.
34587         * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
34588         rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
34589         * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
34590         rs6000_nonimmediate_operand.
34591         * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
34592         rs6000_nonimmediate_operand.
34593
34594 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
34595
34596         * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
34597
34598 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
34599
34600         * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
34601         on e500v2.
34602         (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
34603         (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
34604
34605         * config/rs6000/rs6000.c (invalid_e500_subreg): New.
34606         (rs6k_nonimmediate_operand): New.
34607         (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
34608         correctly.
34609         (legitimate_lo_sum_address_p): Same.
34610         (rs6000_legitimize_address): Same.
34611         (rs6000_legitimize_reload_address): Same.
34612         (rs6000_legitimate_address): Same.
34613         (spe_build_register_parallel): Pass DF and DC modes in a DI
34614         register.
34615
34616         * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
34617         to rs6k_nonimmediate_operand.
34618
34619         * config/rs6000/spe.md ("*frob_df_di"): New.
34620         ("*frob_di_df"): New.
34621         ("*frob_di_df_2"): New.
34622         ("*mov_sidf_e500_subreg0"): New.
34623         ("*mov_sidf_e500_subreg4"): New.
34624         ("*movdf_e500_double"): Change predicate to
34625         rs6k_nonimmediate_operand.
34626
34627 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
34628
34629         * postreload.c (move2add_note_store): Only call
34630         trunc_int_for_mode on scalar integers.
34631
34632 2005-01-14  Steven Bosscher  <stevenb@suse.de>
34633
34634         * tree-ssa-dce.c (visited_control_parents): New sbitmap to
34635         replace BB_VISITED uses.
34636         (find_obviously_necessary_stmts): Don't clear BB_VISITED.
34637         (propagate_necessity): Check the bitmap instead of BB_VISITED.
34638         (tree_dce_done): Free visited_control_parents.
34639         (perform_tree_ssa_dce): Allocate and clear it.
34640         * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
34641         (compute_antic): Iterate from here using a DFS.  Use an sbitmap
34642         instead of BB_VISITED.
34643
34644 2005-01-14  Kazu Hirata  <kazu@cs.umass.edu>
34645
34646         * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
34647         rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
34648         Remove unused prototypes.
34649
34650 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
34651
34652         * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
34653         64-bit register usage.
34654         (spe_func_has_64bit_regs_p): Add FIXME note.
34655
34656 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
34657
34658         * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
34659         flag_finite_math_only with flag_unsafe_math_optimizations.
34660
34661 2005-01-14  J. D. Johnston  <jjohnst@us.ibm.com>
34662
34663         * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
34664         end-of-stack check.
34665         (__tpf_eh_return): Copy TPF private stack area from the module
34666         boundary stack frame.  Add check for when module addresses are
34667         equal, but no stub address is found.
34668
34669 2005-01-14  Richard Earnshaw  <rearnsha@arm.com>
34670
34671         PR target/7525
34672         * arm.h (struct machine_function): Add call_via field.
34673         (thumb_call_via_label): Declare.
34674         * arm.c (thumb_call_via_label): New variable.
34675         (thumb_call_reg_needed): New variable.
34676         (arm_output_function_epilogue): For Thumb code, output any per-function
34677         call-indirect trampolines.
34678         (thumb_call_via_reg): New function.
34679         (arm_file_end): New function.
34680         (TARGET_ASM_FILE_END): Call arm_file_end.
34681         (aof_file_end): Likewise.
34682         * arm-protos.h (thumb_call_via_reg): Declare.
34683         * arm.md (call_reg_thumb, call_value_reg_thumb): Call
34684         thumb_call_via_reg in normal case.
34685
34686 2005-01-14  Jakub Jelinek  <jakub@redhat.com>
34687
34688         PR middle-end/19084
34689         PR rtl-optimization/19348
34690         * recog.c (peephole2_optimize): Do global life update if some peephole
34691         decides it doesn't need at least one of its inputs and that change
34692         influences liveness at the start of the basic block.
34693
34694         * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
34695         arguments instead of 1.
34696
34697 2005-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
34698
34699         PR middle-end/18820
34700         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
34701         zero for nested functions needing a static chain or functions
34702         with a non-constant address.
34703
34704 2005-01-13  Roger Sayle  <roger@eyesopen.com>
34705
34706         * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
34707         (and (sign_extend X) C) into (zero_extend (and X C)).
34708
34709 2005-01-13  David O'Brien  <obrien@FreeBSD.org>
34710
34711         * config/freebsd-spec.h:  Make KSE pthread lib logic the default.
34712
34713 2005-01-13  Richard Henderson  <rth@redhat.com>
34714
34715         PR target/19009
34716         PR target/19250
34717         PR target/19252
34718         * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
34719         bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
34720         not just TARGET_SSE.
34721         (cmpfp_i_387): Rename from cmpfp_i.  Move after sse patterns.
34722         (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
34723         (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
34724         (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
34725         (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
34726         (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
34727         (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
34728         fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
34729         (movdicc_c_rex64): Rename with '*'.
34730         (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
34731         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
34732         (movsfcc_1_387): Rename from movsfcc_1.
34733         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
34734         (movdfcc_1, movdfcc_1_rex64): Add check for 387.
34735         (sminsf3, smaxsf3, smindf3, smaxdf3): New.
34736         (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
34737         mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
34738         maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
34739         sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
34740         sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
34741         sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
34742         sse_movdfcc_const0_4): Remove.
34743         * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
34744         recognize min/max early.  Update for changed sse cmove patterns.
34745         (ix86_split_sse_movcc): New.
34746         * config/i386/i386-protos.h: Update.
34747
34748 2005-01-13  Steven Bosscher  <stevenb@suse.de>
34749
34750         * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
34751         (fix_stmt_v_may_defs): Likewise.
34752
34753 2005-01-13  Richard Henderson  <rth@redhat.com>
34754
34755         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
34756         for converting the mask.
34757
34758 2005-01-13  David Edelsohn  <edelsohn@gnu.org>
34759
34760         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
34761         definition to 600.
34762
34763 2005-01-13  Richard Henderson  <rth@redhat.com>
34764
34765         * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
34766         IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
34767         IX86_BUILTIN_MOVDQ2Q): Remove.
34768         (IX86_BUILTIN_VEC_EXT_V4SI): New.
34769         (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
34770         (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
34771         shuffling.
34772         * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
34773         (sse2_pextrw): Fix immediate constraint.
34774         (sse2_loadq, sse2_loadq_rex64): Remove.
34775         * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
34776         Use __builtin_ia32_vec_ext_<size>.
34777         (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
34778
34779 2005-01-13  Aldy Hernandez  <aldyh@redhat.com>
34780
34781         * function.c (assign_parm_setup_block): Look inside original
34782         entry_parm when inspecting PARALLEL.
34783
34784 2005-01-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
34785             Joel Sherrill  <joel@oarcorp.com>
34786
34787         PR target/19399
34788         * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
34789         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
34790         rtems_gxx_recursive_mutex_init.
34791         (__gthread_recursive_mutex_lock): New function.
34792         (__gthread_recursive_mutex_trylock): Likewise.
34793         (__gthread_recursive_mutex_unlock): Likewise.
34794
34795 2005-01-13  Ralf Corsepius <ralf.corsepius@rtems.org>
34796
34797         * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
34798
34799 2005-01-13  Jan Beulich  <jbeulich@novell.com>
34800
34801         * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
34802         (ashrti3_internal): Indicate output is early clobber. Generate result
34803         into output rather than first input. Use move for low word of output
34804         if shift count is exactly 64.
34805         (lshrti3_internal): Likewise.
34806
34807 2005-01-13  Hans-Peter Nilsson  <hp@bitrange.com>
34808
34809         PR target/18329
34810         PR target/18330
34811         * reload1.c (delete_output_reload): Don't delete an output reload
34812         if the pseudo lives longer than a single basic block.  Adjust and
34813         improve wording of comment.
34814
34815 2005-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
34816
34817         PR target/19334
34818         * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
34819         of TYPE_SIZE where we mean the number of bytes.
34820
34821 2005-01-12  Aldy Hernandez  <aldyh@redhat.com>
34822
34823         * function.c (assign_parm_setup_block): Relax condition on
34824         multi-register optimization.
34825
34826 2005-01-12  Nick Clifton  <nickc@redhat.com>
34827
34828         * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
34829         an "in_delay_slot" attribute of "no" to prevent them being used in
34830         delay slots.  This is forbidden because they might generate
34831         exceptions.
34832
34833 2005-01-12  Alan Modra  <amodra@bigpond.net.au>
34834
34835         PR target/19389
34836         * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
34837         with r->Y and Y->r.
34838
34839 2005-01-12  Nick Clifton  <nickc@redhat.com>
34840
34841         * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
34842         passed on to GAS) but do not define, as GAS no longer supports or
34843         needs the -m2000 option.
34844
34845 2005-01-11  Roger Sayle  <roger@eyesopen.com>
34846
34847         * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
34848         type as args of unprototyped builtins aren't automatically promoted.
34849         (fold_builtin_abs): Likewise.
34850
34851 2005-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
34852
34853         * Makefile.in: Set a `build-warn' variable.
34854
34855 2005-01-11  Zdenek Dvorak  <dvorakz@suse.cz>
34856
34857         PR tree-optimization/17949
34858         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
34859         (find_interesting_uses_address): Use it.
34860
34861 2005-01-11  Aldy Hernandez  <aldyh@redhat.com>
34862
34863         * regrename.c (kill_value): Handle subreg's that won't simplify.
34864
34865 2005-01-11  Richard Henderson  <rth@redhat.com>
34866
34867         PR target/13366
34868         * config/i386/i386.h (enum ix86_builtins): Move ...
34869         * config/i386/i386.c: ... here.
34870         (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
34871         IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
34872         IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
34873         IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
34874         IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD,  IX86_BUILTIN_STOREHPD,
34875         IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
34876         IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
34877         IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
34878         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
34879         IX86_BUILTIN_LOADDDUP): Remove.
34880         (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
34881         IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
34882         IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
34883         IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
34884         IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
34885         (ix86_init_builtins): Make static.
34886         (ix86_init_mmx_sse_builtins): Update for changed builtins.
34887         (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
34888         if all the modes match.  Otherwise, fake it.
34889         (get_element_number, ix86_expand_vec_init_builtin,
34890         ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
34891         (ix86_expand_builtin): Make static.  Update for changed builtins.
34892         (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
34893         operand instead of sse2_loadsd.  Cast sse1 fallback to V4SFmode.
34894         (ix86_expand_vector_init_duplicate): New.
34895         (ix86_expand_vector_init_low_nonzero): New.
34896         (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
34897         Split out from ix86_expand_vector_init; handle integer modes.
34898         (ix86_expand_vector_init): Use them.
34899         (ix86_expand_vector_set, ix86_expand_vector_extract): New.
34900         * config/i386/i386-protos.h: Update.
34901         * config/i386/predicates.md (reg_or_0_operand): New.
34902         * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
34903         (movv2sf_internal): Likewise.  And a splitter to match them all.
34904         (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
34905         vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
34906         vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
34907         vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
34908         (mmx_pinsrw): Fix operand ordering.
34909         * config/i386/sse.md (movv4sf splitter): Use direct pattern,
34910         rather than sse_loadss expander.
34911         (movv2df splitter): Similarly.
34912         (sse_loadss, sse_loadlss): Remove.
34913         (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
34914         (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
34915         (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
34916         (sse3_movddup): Rename with '*'.
34917         (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
34918         (sse2_loadsd): Remove.
34919         (vec_dupv2df_sse3): Rename from sse3_loadddup.
34920         (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
34921         (sse2_pinsrw): Fix argument ordering.
34922         (sse2_loadld, sse2_loadq): Add sse1 alternatives.
34923         (sse2_stored): Remove 'r' destination.
34924         (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
34925         vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
34926         vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
34927         vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
34928         vec_extractv16qi, vec_initv16qi): New.
34929
34930         * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
34931         (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x,
34932         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
34933         constructor form.
34934         (_mm_load_pd, _mm_store_pd): Use plain dereference.
34935         (_mm_load_si128, _mm_store_si128): Likewise.
34936         (_mm_load1_pd): Use _mm_set1_pd.
34937         (_mm_load_sd): Use _mm_set_sd.
34938         (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
34939         (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
34940         (_mm_set_epi64): Use _mm_set_epi64x.
34941         (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
34942         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
34943         _mm_setr_epi8): Use _mm_set_foo form.
34944         (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
34945         (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
34946         (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
34947         (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
34948         * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
34949         (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
34950         (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
34951         (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
34952         (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
34953         * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
34954         (_mm_movedup_pd): Use _mm_shuffle_pd.
34955         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
34956         _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
34957         (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
34958         _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
34959         Use _mm_setzero_ps.
34960         (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
34961         (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
34962         (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
34963         (_mm_store_ps): Use raw dereference.
34964         (_mm_store1_ps): Use _mm_storeu_ps.
34965         (_mm_storer_ps): Use _mm_store_ps.
34966         (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
34967         (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
34968
34969 2005-01-11  Stan Shebs  <shebs@apple.com>
34970
34971         * config/rs6000/rs6000.c (machopic_output_stub): Issue
34972         ldu instead of lwzu if 64-bit -mdynamic-no-pic.
34973
34974 2005-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
34975
34976         PR target/18761
34977         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
34978         Skip all DECLs except for FIELD_DECLs.
34979
34980 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
34981
34982         * config/s390/s390.c (override_options): Return error if
34983         -mbackchain, -mpacked-stack and -mhard-float are used together.
34984         (s390_va_start): Remove the backchain && packed-stack special case.
34985         (s390_gimplify_va_arg): Likewise.
34986         * doc/invoke.texi: Remove the ABI incompatibility note.
34987
34988 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
34989
34990         * config/s390/s390.c (struct s390_frame_layout): Remove
34991         save_backchain_p.
34992         (s390_frame_info, s390_emit_prologue): Replace occurrences of
34993         save_backchain_p with TARGET_BACKCHAIN.
34994
34995 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
34996
34997         PR target/18916
34998         * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
34999         * expr.h (struct locate_and_pad_arg_data): Add "boundary".
35000         * function.c (locate_and_pad_parm): Set new field.
35001         (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
35002         Tweak where_pad test to include "none".  Always set mem align for
35003         stack_parm.
35004         (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
35005         not sufficient for type.
35006         (assign_parm_setup_block): If stack_parm is zero on entry, always
35007         make a new stack local.  Block move old stack parm if necessary
35008         to new aligned stack local.
35009         (assign_parm_setup_stack): Use a block move to handle
35010         potentially misaligned entry_parm.
35011         (assign_parms_unsplit_complex): Specify required alignment when
35012         creating stack local.
35013         * calls.c (compute_argument_addresses): Override alignment of stack
35014         arg calculated from its type with the alignment given by
35015         FUNCTION_ARG_BOUNDARY.
35016         (store_one_arg): Likewise.
35017
35018 2005-01-11  Jan Beulich  <jbeulich@novell.com>
35019
35020         * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
35021         Change respective itanium_class attribute to ialu.
35022         (shladdp4_internal): New.
35023         * config/ia64/predicates.md (shladd_log2_operand): New.
35024
35025 2005-01-11  Richard Henderson  <rth@redhat.com>
35026
35027         * expr.c (store_constructor): Use rtvec_alloc instead of
35028         alloca+gen_rtvec_v, and an incorrect number passed to alloca.
35029
35030 2005-01-11  Kazu Hirata  <kazu@cs.umass.edu>
35031
35032         * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
35033
35034 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
35035
35036         * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
35037         * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
35038         (TARGET_RWRELOC): Define.
35039         (ia64_rwreloc_section_type_flags): Delete.
35040         (ia64_section_type_flags): New function.
35041         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
35042         (TARGET_RWRELOC): Define.
35043
35044 2005-01-10  David Mosberger  <davidm@hpl.hp.com>
35045
35046         PR target/18987
35047         * config/ia64/ia64.c (process_set): For alloc insn, only call
35048         process_epilogue is !frame_pointer_needed.
35049
35050 2005-01-10  Roger Sayle  <roger@eyesopen.com>
35051
35052         PR c++/19355
35053         * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
35054         unary operator and can't be treated as a binary/comparison operator.
35055
35056 2005-01-10  Richard Henderson  <rth@redhat.com>
35057
35058         * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
35059         (ix86_return_in_memory): Likewise.
35060         (function_arg_advance):  Likewise.  Mirror structure in function_arg
35061         for choosing register to advance.
35062
35063 2005-01-10  Kazu Hirata  <kazu@cs.umass.edu>
35064
35065         * tree-vectorizer.c, tree.def: Fix comment typos.
35066
35067 2005-01-10  Mark Dettinger  <dettinge@de.ibm.com>
35068
35069         * config/s390/s390.c (struct processor_costs): 4 new fields:
35070         ddbr, ddr, debr, der.
35071         (s390_rtx_costs): More precise handling of divide instructions.
35072
35073 2005-01-10  David Edelsohn  <edelsohn@gnu.org>
35074
35075         * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
35076
35077 2005-01-10  Jan Beulich  <jbeulich@novell.com>
35078
35079         * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
35080         names resulting from -ffunction-sections/-fdata-sections and linkonce
35081         ones.
35082         * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
35083         based on the section name. Rearrange the section name comparison logic
35084         slightly so that each section name is compared against at most once.
35085
35086 2005-01-10  Ben Elliston  <bje@au.ibm.com>
35087
35088         * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
35089         targets for which -fPIC reduces limitations on the GOT size.
35090
35091 2005-01-09  Falk Hueffner  <falk@debian.org>
35092
35093         * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
35094         X/C1 cmpop C2.
35095
35096 2005-01-09  David Edelsohn  <edelsohn@gnu.org>
35097
35098         PR target/18720
35099         * collect2.c (main): Set aixrtl_flag for -brtl option.
35100         (resolve_lib_name): Search for .so file extension before .a
35101         if aixrtl_flag set.
35102
35103 2005-01-09  Dorit Naishlos  <dorit@il.ibm.com>
35104
35105         * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
35106         (vect_analyze_data_refs_alignment): Add dump prints.
35107
35108 2005-01-09  Ira Rosen  <irar@il.ibm.com>
35109
35110         * tree-vectorizer.c (vect_analyze_offset_expr): Use
35111         expr_invariant_in_loop_p.
35112         Initialize outputs first thing in the function.
35113         (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
35114         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
35115         (vect_analyze_pointer_ref_access): Check that the initial condition of
35116         the access function is loop invariant.
35117
35118 2005-01-09  Richard Henderson  <rth@redhat.com>
35119
35120         * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
35121         (ix86_expand_builtin): Likewise.  Frob MASKMOVQ wrt the input mem
35122         just like MASKMOVDQU.  Return plain zero for MMX_ZERO.
35123         * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
35124         mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
35125         movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
35126         movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
35127         sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
35128         ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
35129         mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
35130         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
35131         sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
35132         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
35133         mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
35134         gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
35135         ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
35136         mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
35137         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
35138         mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
35139         eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
35140         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
35141         pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
35142         pswapdv2sf2): Move to mmx.md; rename as necessary with leading
35143         mmx_ prefix.
35144         (mmx_clrdi, pavgusb): Remove.
35145         (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
35146         with leading sse_ prefix.
35147         * config/i386/sse.md: Receive them.
35148         * config/i386/mmx.md: New file.
35149         (MMXMODE12, MMXMODE24, mmxvecsize): New.
35150         (subrv2sf3): Turn into expander for normal subtraction.
35151         (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
35152         mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
35153         mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
35154         mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
35155         commutative; use ix86_binary_operator_ok.
35156         (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
35157         mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
35158         mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
35159         mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
35160         mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
35161         Macroize from existing patterns; use ix86_binary_operator_ok.
35162         (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
35163         (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
35164         mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise.  Model
35165         with vec_select+vec_concat.
35166         (mmx_pshufw, mmx_pshufw_1): Likewise.
35167         (mmx_uavgv8qi3): Merge pavgusb.  Model correcty.
35168         (mmx_uavgv4hi3): Model correctly.
35169         * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
35170         _mm_xor_si64): Remove casts.
35171
35172 2005-01-09  Zdenek Dvorak  <dvorakz@suse.cz>
35173
35174         PR tree-optimization/19224
35175         * tree-scalar-evolution.c (get_instantiated_value,
35176         set_instantiated_value): New functions.
35177         (instantiate_parameters_1): Cache the results.
35178         (instantiate_parameters, resolve_mixers): Initialize and free
35179         the cache.
35180
35181 2005-01-08  David Edelsohn  <edelsohn@gnu.org>
35182
35183         * config/i386/i386.md (addhi_4): Correct reference in comment.
35184         (addqi_4): Same.
35185
35186 2005-01-08  Richard Henderson  <rth@redhat.com>
35187
35188         * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
35189         (_mm_cvtsi128_si64x): Likewise.
35190         (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
35191         _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
35192         the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
35193         * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
35194         * config/i386/i386-protos.h: Update.
35195         * config/i386/i386.c (print_operand): Add 'H'.
35196         (ix86_fixup_binary_operands): Split out from ...
35197         (ix86_expand_binary_operator): ... here.
35198         (ix86_fixup_binary_operands_no_copy): New.
35199         (ix86_expand_fp_absneg_operator): Handle vector mode results.
35200         (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
35201         (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
35202         (safe_vector_operand): Use CONST0_RTX.
35203         (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
35204         (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
35205         CODE_FOR_sse2_maskmovdqu.  Special case SSE version of MASKMOVDQU
35206         expansion.  Update names for sse{,2,3}_ prefixes.  Remove *maskncmp*
35207         special cases.
35208         * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
35209         (IX86_BUILTIN_CMPNGESS): New.
35210         * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
35211         (attr type): Add sselog1.
35212         (attr unit, attr memory): Handle it.
35213         (movti, movti_internal, movti_rex64): Move near other integer moves.
35214         (movtf, movtf_internal): Move near other fp moves.
35215         (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
35216         vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
35217         movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
35218         movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
35219         sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
35220         sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
35221         sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
35222         mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
35223         rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
35224         sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
35225         sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
35226         sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
35227         vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
35228         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
35229         cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
35230         cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
35231         vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
35232         vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
35233         sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
35234         sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
35235         cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
35236         cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
35237         cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
35238         cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
35239         ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
35240         subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
35241         smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
35242         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
35243         sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
35244         sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
35245         gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
35246         ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
35247         ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
35248         sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
35249         sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
35250         sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
35251         sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
35252         sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
35253         sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
35254         sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
35255         mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
35256         addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
35257         movsldup, lddqu, loadddup, movddup): Move to sse.md.  Any with
35258         non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
35259         same time.
35260         (SSEPUSH, push<SSEPUSH>): Remove.
35261         (MMXPUSH, push<MMXPUSH>): Remove.
35262         (sse_movaps, sse_movaps_1, sse_movups): Remove.
35263         (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
35264         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
35265         (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
35266         (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
35267         (maskncmpv2df3, vmmaskncmpv2df3): Remove.
35268         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
35269         (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
35270         * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
35271         (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
35272         * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
35273         (ppro_sse_log_V4SF_load): Similarly.  Handle sselog1.
35274         (ppro_sse_log_V4SF): Handle sselog1.
35275         * config/i386/predicates.md (const_0_to_1_operand): New.
35276         (const_0_to_255_mul_8_operand): New.
35277         (const_1_to_31_operand): Rename from const_int_1_31_operand.
35278         (const_2_to_3_operand, const_4_to_7_operand): New.
35279         * config/i386/sse.md: New file.
35280         (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
35281         (sse_movups): Rename from sse_movups_1.
35282         (sse_loadlss): Rename from sse_loadss_1.
35283         (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
35284         from the name.
35285         (negv4sf2): Use ix86_expand_fp_absneg_operator.
35286         (absv4sf2, negv2df, absv2df): New.
35287         (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
35288         (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
35289         iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
35290         smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
35291         umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
35292         (sse3_addsubv4sf3): Model correctly.
35293         sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
35294         sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
35295         (sse_movhlps): Model with vec_select+vec_concat.
35296         (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
35297         sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
35298         sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
35299         sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
35300         sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
35301         sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
35302         sse2_pshufhw_1): Likewise.
35303         (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
35304         (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
35305         sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
35306         ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
35307         sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
35308         ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
35309         (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
35310         sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
35311         mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
35312         sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
35313         sminv8hi3): Mark commutative
35314         operands.  Use ix86_binary_operator_ok.
35315         (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
35316         sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
35317         sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
35318         sse2_punpcklqdq): Allow operand2 in memory.
35319         (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
35320         sse2_movsd): Add memory alternatives.
35321         (sse_storelps): Turn expander into an insn; split after reload.
35322         (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
35323         (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
35324
35325 2005-01-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
35326
35327         * configure.ac (DWARF-2 debug_line): Use objdump.
35328         * configure: Regenerate.
35329
35330 2005-01-08  Jeff Law  <law@redhat.com>
35331             Diego Novillo  <dnovillo@redhat.com>
35332
35333         PR tree-optimization/18241
35334         * tree-nrv.c (tree_nrv): Ignore volatile return values.
35335         * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
35336         statements with volatile operands.
35337         * tree-ssa-operands.c (add_stmt_operand): Do add volatile
35338         operands after marking a statement with has_volatile_ops.
35339
35340 2005-01-08  Roger Sayle  <roger@eyesopen.com>
35341
35342         * tree.c (int_fits_type_p): Always honor integer constant
35343         TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
35344
35345 2005-01-08  Roger Sayle  <roger@eyesopen.com>
35346
35347         * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
35348         the latent bug in rtl_delete_block has been resolved.
35349
35350 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
35351
35352         * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
35353         (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
35354
35355 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
35356
35357         * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
35358         library as @multilib_dir@/$(SHLIB_SONAME).
35359
35360 2005-01-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
35361
35362         * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
35363         * configure: Regenerate.
35364
35365 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
35366
35367         * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
35368         TYPE_MODE.
35369
35370 2005-01-07  David Edelsohn  <edelsohn@gnu.org>
35371
35372         PR target/13674
35373         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
35374         Convert non-word aligned offset address using ld/std into
35375         indirect address.
35376
35377 2005-01-07  Richard Henderson  <rth@redhat.com>
35378
35379         * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
35380
35381 2005-01-07  Richard SAndiford  <rsandifo@redhat.com>
35382
35383         * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
35384
35385 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
35386
35387         PR tree-optimization/19283
35388         * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
35389         is not shorter than the original type.
35390
35391         PR rtl-optimization/19012
35392         * config/i386/i386.md (addqi_1_slp): Set memory attribute.
35393
35394         PR rtl-optimization/18861
35395         * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
35396         (FULL_STATE): Define.
35397         (mark_tablejump_edge): New function.
35398         (purge_dead_tablejump_edges): New function.
35399         (find_bb_boundaries): Use it.
35400
35401         PR tree-optimization/18828
35402         * builtins.c (expand_builtin_next_arg): Remove argument and all
35403         the argument checking.
35404         (expand_builtin): Adjust caller.
35405         (expand_builtin_va_start): Likewise.  Remove error for too many
35406         arguments.
35407         (fold_builtin_next_arg): Issue error for too many arguments.
35408         After checking arguments, replace them with magic arguments that
35409         prevent further checking of the args.
35410
35411 2005-01-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35412
35413         * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
35414
35415 2005-01-06  Roger Sayle  <roger@eyesopen.com>
35416
35417         PR target/6077
35418         * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
35419         and %{.S:...} (and their negative variants) to test whether the
35420         input file is assembler or pre-processed-assembler independent of
35421         the actual filename extension.
35422
35423 2005-01-06  Roger Sayle  <roger@eyesopen.com>
35424
35425         * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
35426         of sign or zero extended values.
35427
35428 2005-01-06  Geoffrey Keating  <geoffk@apple.com>
35429
35430         * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
35431         for IBM long double format correctly.
35432
35433 2005-01-06  Daniel Berlin <dberlin@dberlin.org>
35434
35435         Fix PR tree-optimization/18792
35436
35437         * tree-data-ref.c (build_classic_dist_vector): Change first_loop
35438         to first_loop_depth, and use loop depth instead of loop number.
35439         (build_classic_dir_vector): Ditto.
35440         (compute_data_dependences_for_loop): Use depth, not loop number.
35441         * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
35442         number. Pass in loops, instead of loop numbers.
35443         (gather_interchange_stats): Ditto.
35444         (linear_transform_loops): Ditto.
35445
35446 2005-01-06  Richard Sandiford  <rsandifo@redhat.com>
35447
35448         PR rtl-opt/13299
35449         * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
35450         biv_fits_mode_p, extension_within_bounds_p): New functions.
35451         (check_ext_dependent_givs): Use them.
35452
35453 2005-01-06  Roger Sayle  <roger@eyesopen.com>
35454
35455         * cfgrtl.c (rtl_delete_block): A basic block may be followed by
35456         more than one barrier, in which case we should delete them all.
35457
35458 2005-01-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
35459
35460         * gcc.c (process_command): Change year in 'gcc --version' to 2005.
35461
35462 2005-01-05  Daniel Berlin  <dberlin@dberlin.org>
35463
35464         Fix PR middle-end/19286
35465         Fix PR debug/19267
35466         * dwarf2out.c (gen_subprogram_die): If we've already tried to
35467         output this subprogram, simply ignore this attempt to do it again.
35468         (add_abstract_origin_attribute): Don't abort trying to add the abstract
35469         origin attribute if it's not possible.
35470         (gen_block_die): Don't ignore subblocks of "unused" blocks.
35471         (decls_for_scope): Ditto.
35472         * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
35473         (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
35474
35475 2005-01-05  Richard Henderson  <rth@redhat.com>
35476
35477         PR target/11327
35478         * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
35479         (bdesc_2arg): Use it.
35480         (ix86_expand_binop_builtin): Force operands into registers
35481         when optimizing.
35482         (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
35483         ix86_expand_sse_compare, ix86_expand_sse_comi,
35484         ix86_expand_builtin): Likewise.
35485
35486 2005-01-05  Richard Henderson  <rth@redhat.com>
35487
35488         * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
35489         and VEC_SELECT.
35490         * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
35491         (mulv4hi3): Set itanium_class mmmul.
35492         (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
35493         (fpack): Rename from fpack_sfsf.
35494
35495 2005-01-05  Richard Henderson  <rth@redhat.com>
35496
35497         PR rtl-opt/10692
35498         * reload1.c (do_input_reload): Restrict the optimization deleteing
35499         a previous output reload to RELOAD_FOR_INPUT.
35500
35501 2005-01-05  Steven Bosscher  <stevenb@suse.de>
35502
35503         * combine.c (expand_compound_operation)  <ZERO_EXTRACT>: Add
35504         comment that we fall through after case.
35505         (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
35506         (distribute_links): Likewise.
35507         * cse.c (cse_insn): Likewise.
35508         * cselib.c (cselib_invalidate_mem): Likewise.
35509         * df.c: Update comments at the top of the file.
35510         (read_modify_subreg_p): Update comments here too.
35511         (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
35512         * flow.c (mark_set_1): Likewise.
35513         (mark_used_regs): Likewise.
35514         * gcse.c (mems_conflict_for_gcse_p): Likewise.
35515         (canon_list_insert): Likewise.
35516         (mark_set): Likewise.
35517         (try_replace_reg): Likewise.
35518         (store_killed_in_insn): Likewise.
35519         * loop.c (count_one_set): Likewise.
35520         (basic_induction_var): Likewise.
35521         * postreload-gcse.c (find_mem_conflicts): Likewise.
35522         * postreload.c (reload_combine_note_store): Likewise.
35523         (move2add_note_store): Likewise.
35524         * reload.c (find_equiv_reg): Likewise.
35525         (mark_referenced_resources): Likewise.
35526         * rtlanal.c (set_noop_p): Likewise.
35527         (note_stores): Likewise.
35528         (note_uses): Likewise.
35529         * sched-deps.c (sched_analyze_1): Likewise.
35530         * sched-rgn.c (check_live_1): Likewise.
35531         (update_live_1): Likewise.
35532         * config/i860/i860.c: Likewise.
35533
35534         * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
35535         an lvalue.
35536         (ZERO_EXTRACT): Mention that this one can be an lvalue.
35537
35538         * doc/rtl.texi: Update documentation for bit-fields and SET.
35539
35540 2005-01-05  Roger Sayle  <roger@eyesopen.com>
35541
35542         * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
35543
35544 2005-01-05  Jan Hubicka  <jh@suse.cz>
35545             Richard Henderson  <rth@redhat.com>
35546
35547         PR target/18910
35548         * config/i386/i386.c (ix86_expand_move): Handle tls symbols
35549         with an offset.
35550
35551 2005-01-05  Richard Henderson  <rth@redhat.com>
35552
35553         PR target/12902
35554         * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
35555         (sse_shufps): Change operand 3 to const_int_operand.
35556         (sse2_storelps): Fix typo in template.
35557         (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
35558         * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
35559         (ix86_expand_builtin): Likewise.
35560
35561 2005-01-05  Julian Brown  <julian@codesourcery.com>
35562
35563         * config/arm/arm.c (arm_return_in_memory): Treat complex types
35564         as aggregates for AAPCS ABIs.
35565
35566 2005-01-05  Stan Shebs  <shebs@apple.com>
35567
35568         * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
35569         Mach-O getters if ppc64.
35570         * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
35571         size argument.
35572         * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
35573         signed four-byte field for global code case.
35574         (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
35575
35576 2005-01-05  Roger Sayle  <roger@eyesopen.com>
35577
35578         PR middle-end/19100
35579         * c-common.c: Include real.h.
35580         (c_common_truthvalue_conversion): Avoid destructively modifying expr.
35581         Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
35582         Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
35583         * Makefile.in (c-common.o): Update dependencies.
35584
35585 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
35586
35587         * c-parse.in (asm_string): Add trailing semicolon.
35588
35589 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
35590
35591         * c-parse.in (asm_string): New.  Don't allow wide strings in
35592         'asm'.
35593         (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
35594         asm_string instead of STRING.
35595
35596 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
35597
35598         * c-typeck.c (constructor_no_implicit): Remove.
35599         (set_designator, process_init_element): Don't check
35600         constructor_no_implicit.
35601
35602 2005-01-05  J"orn Rennecke <joern.rennecke@st.com>
35603             Kaz Kojima  <kkojima@gcc.gnu.org>
35604
35605         PR target/16482
35606         * lcm.c (create_pre_exit): New.
35607         (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
35608         ENTRY_EXIT_EXTRA to 3.  Use create_pre_exit.
35609
35610 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
35611
35612         * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
35613         -msoft-float in target_float_switch.
35614         * arm.c (arm_override_options): Fix processing of target_float_switch.
35615
35616 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
35617
35618         * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
35619         preferencing.
35620
35621 2004-01-05  Uros Bizjak  <uros@kss-loka.si>
35622
35623         * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
35624         Replace i387 with 'i386 compiler' in -mfpmath=sse option.
35625
35626 2005-01-04  Roger Sayle  <roger@eyesopen.com>
35627
35628         * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
35629         if deleting the then-block allows the test-block to fallthru to the
35630         else-block.
35631
35632 2005-01-04  Andrew Pinski  <pinskia@physics.uc.edu>
35633
35634         PR c/19152
35635         * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
35636         after the full declaration if the are in two different TUs.
35637
35638 2005-01-04  Richard Henderson  <rth@redhat.com>
35639
35640         PR tree-opt/19158
35641         * tree-sra.c (generate_one_element_init): Just
35642         call gimplify_and_add.
35643         (generate_element_init): Record the
35644         new referenced variables and mark them for renaming
35645         and split out to ...
35646         (generate_element_init_1): This.
35647         (scalarize_init): Don't call push_gimplify_context/
35648         pop_gimplify_context.
35649
35650 2005-01-04  Geoffrey Keating  <geoffk@apple.com>
35651
35652         * toplev.c (get_src_pwd): Handle failure of getpwd().
35653
35654 2005-01-04  Roger Sayle  <roger@eyesopen.com>
35655
35656         * fold-const.c (fold_single_bit_test): Delete unreachable handling
35657         of TRUTH_NOT_EXPR.
35658         (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
35659         all the cases handled by it are inverted by invert_truthvalue.
35660
35661 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
35662
35663         * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
35664         (save_register_windowsi): Likewise.
35665
35666 2005-01-04  Richard Henderson  <rth@redhat.com>
35667
35668         * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
35669
35670 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
35671
35672         PR middle-end/17767
35673         * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
35674         any simplifications of vector mode comparison operators.
35675         * simplify-rtx.c (simplify_relational_operation): Fix variable name.
35676
35677 2005-01-04  Paolo Bonzini  <bonzini@gnu.org>
35678             Devang Patel  <dpatel@apple.com>
35679
35680         PR tree-optimization/18308
35681         * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
35682         the operands before creating a new expression.
35683         * dojump.c (do_jump): Make drop_through_label available
35684         for all cases.  Add expansion of COND_EXPR.
35685
35686 2005-01-04  Ira Rosen  <irar@il.ibm.com>
35687
35688         * tree-vectorizer.c (vect_analyze_offset_expr): Test for
35689         INTEGER_CST instead of TREE_CONSTANT.
35690         (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
35691         instead of TREE_CONSTANT.
35692         (vect_analyze_pointer_ref_access): Test for INTEGER_CST
35693         instead of TREE_CONSTANT.
35694
35695 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
35696
35697         * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
35698
35699 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
35700
35701         PR target/19240
35702         * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
35703         (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
35704
35705 2005-01-03  Richard Henderson  <rth@redhat.com>
35706
35707         * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
35708         (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
35709         fold_convert_const_real_from_real): Split out from ...
35710         (fold_convert_const): ... here.
35711
35712 2005-01-03  Richard Henderson  <rth@redhat.com>
35713
35714         PR target/19235
35715         * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
35716         (mov<MMXMODEI>_internal): Likewise.
35717         (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
35718         Add V2SF case; use it for SSE1; don't use TI.
35719         (movdf_integer): Likewise.
35720         (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
35721
35722 2005-01-03  Ira Rosen  <irar@il.ibm.com>
35723
35724         * tree-vectorizer.c (vect_strip_conversions): New function.
35725         (vect_analyze_offset_expr): Call vect_strip_conversions. Add
35726         check for binary class.
35727
35728 2005-01-03  Daniel Berlin  <dberlin@dberlin.org>
35729
35730         Fix PR debug/17924
35731         Fix PR debug/19191
35732         * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
35733         is a decl.
35734         * gimple-low.c (mark_blocks_with_used_vars): New function.
35735         (mark_blocks_with_used_subblocks): Ditto.
35736         (mark_used_blocks): Ditto.
35737         (pass_mark_used_blocks): New pass.
35738         * tree-inline.c: Include debug.h.
35739         (expand_call_inline): Call outlining_inline_function here.
35740         * tree-optimize.c (init_tree_optimization_passes): Add
35741         pass_mark_used_blocks.
35742         * tree-pass.h (pass_mark_used_blocks): New.
35743         * Makefile.in (tree-inline.o): Add debug.h dependency.
35744
35745 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
35746
35747         * config/darwin.c (darwin_handle_weak_import_attribute): Permit
35748         VAR_DECLs to have weak_import attribute.
35749
35750         * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
35751         'struct ucontext'.
35752
35753 2004-01-03  Steven Bosscher  <stevenb@suse.de>
35754
35755         * passes.c (rest_of_compilation): Don't run regmove if only
35756         flag_expensive_optimizations, require flag_regmove instead.
35757
35758 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
35759
35760         * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
35761         register "sparc".
35762         * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
35763         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
35764         * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
35765         * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
35766
35767 2005-01-03  Richard Henderson  <rth@redhat.com>
35768
35769         * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
35770         (ia64_const_ok_for_letter_p): New.
35771         (ia64_const_double_ok_for_letter_p): New.
35772         (ia64_extra_constraint): New.
35773         (ia64_expand_vecint_compare): New.
35774         (ia64_expand_vcondu_v2si): New.
35775         (ia64_expand_vecint_cmov): New.
35776         (ia64_expand_vecint_minmax): New.
35777         (ia64_print_operand): Add 'v'.
35778         (ia64_preferred_reload_class): New.
35779         (ia64_vector_mode_supported_p): New.
35780         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
35781         (PREFERRED_RELOAD_CLASS): Move to function.
35782         (CONST_OK_FOR_LETTER_P): Move to function.
35783         (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
35784         (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
35785         (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
35786         (EXTRA_CONSTRAINT): Move to function.
35787         * config/ia64/ia64.md: Include vect.md.
35788         (itanium_class): Add mmalua.
35789         (type): Handle it.
35790         * config/ia64/itanium1.md (1_mmalua): New.  Add it to bypasses.
35791         (1b_mmalua): New.
35792         * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
35793         * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
35794         CONST0_RTX.
35795         (const_int_2bit_operand): New.
35796         (fr_reg_or_0_operand): New.
35797         * config/ia64/ia64-modes.def: Add vector modes.
35798         * config/ia64/ia64-protos.h: Update.
35799         * config/ia64/vect.md: New file.
35800
35801 2005-01-03  Richard Henderson  <rth@redhat.com>
35802
35803         * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
35804
35805 2005-01-03  Uros Bizjak  <uros@kss-loka.si>
35806
35807         PR target/19236
35808         * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
35809         to SFmode.
35810         (log1pdf2): Change mode of operands[0,1] to DFmode.
35811
35812 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
35813
35814         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
35815         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
35816         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
35817         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
35818         SPARC_RELAXED_ORDERING.
35819
35820 2005-01-03  Richard Henderson  <rth@redhat.com>
35821             Uros Bizjak  <uros@kss-loka.si>
35822
35823         PR target/14631
35824         * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
35825         IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
35826         * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
35827         handling.
35828         (*mmx_pinsrw, *sse2_pinsrw): New patterns.
35829         * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
35830         const_pow2_1_to_128_operand): New predicates.
35831
35832 2005-01-02  Greg McGary  <greg@mcgary.org>
35833
35834         * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
35835         anonymous decls.
35836         (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
35837         object.  [ptr_type]: Remove unused variable.
35838         Remember nearest addressable array-element or record-component
35839         when checking bitfield components.  Tolerate empty BIND_EXPR.
35840
35841 2005-01-01  Richard Henderson  <rth@redhat.com>
35842
35843         * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
35844         that don't narrow the value.  Fail for other conversions.
35845
35846 2005-01-01  Richard Henderson  <rth@redhat.com>
35847
35848         PR c/19031
35849         * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
35850         * c-lang.c (finish_file): Don't do it here.
35851         * objc/objc-act.c (objc_finish_file): Likewise.
35852
35853         * cgraph.c (decl_assembler_name_equal): New.
35854         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
35855         (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
35856         * cgraph.h (struct cgraph_varpool_node): Add next.
35857         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
35858         * varasm.c (assemble_alias): Mark the target as needed.
35859
35860 2005-01-01  Andrew Pinski  <pinskia@physics.uc.edu>
35861
35862         PR middle-end/19221
35863         * function.c (get_arg_pointer_save_area): Use entry_of_function
35864         instead of get_insns.
35865
35866 2005-01-01  Roger Sayle  <roger@eyesopen.com>
35867             Andrew Pinski  <pinskia@physics.uc.edu>
35868             James E. Wilson  <wilson@specifixinc.com>
35869
35870         PR rtl-optimization/12092
35871         * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
35872         is zero.
35873
35874 2005-01-01  Roger Sayle  <roger@eyesopen.com>
35875             Olivier Hainque  <hainque@act-europe.fr>
35876
35877         * tree.c (int_fits_type_p): A narrower type always fits in a
35878         wider one, except for negative values into unsigned types.
35879
35880 2005-01-01  Roger Sayle  <roger@eyesopen.com>
35881
35882         * tree.c (int_fits_type_p): Compare the result of force_fit_type
35883         with the original constant rather than require TREE_OVERFLOW.
35884
35885 2005-01-01  Steven Bosscher  <stevenb@suse.de>
35886
35887         PR middle-end/17544
35888         * c-decl.c (finish_function): If compiling C99, annotate the
35889         compiler generated return with the current file name and line 0.
35890         * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
35891         the source line is greater than 0.
35892         (remove_bb): Likewise.