OSDN Git Service

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