OSDN Git Service

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