OSDN Git Service

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