OSDN Git Service

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