OSDN Git Service

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