OSDN Git Service

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