OSDN Git Service

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