OSDN Git Service

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